]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(Fbury_buffer): Doc fix.
[gnu-emacs] / src / ChangeLog
1 2005-02-02 Steven Tamm <steventamm@mac.com>
2
3 * macfns.c (unwind_create_frame): Fixing compile error due to
4 xassert being uncondition, but predicate is.
5 * dispnew.c (update_window): Fixing compile error due to
6 xassert being uncondition, but predicate is.
7
8 2005-02-02 Miles Bader <miles@gnu.org>
9
10 * dispextern.h (xassert): Enable unconditionally.
11
12 2005-02-02 Kim F. Storm <storm@cua.dk>
13
14 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
15
16 2005-02-02 Kenichi Handa <handa@m17n.org>
17
18 * casefiddle.c (casify_object): Enable changing characters of
19 different byte length.
20 (casify_region): Fix loop condition, args to replace_range_2, and
21 update opoint_byte.
22
23 * insdel.c (replace_range_2): Fix bugs in adjusting markers and
24 point.
25
26 2005-02-01 Kim F. Storm <storm@cua.dk>
27
28 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
29 stack before calling handle_display_prop.
30
31 2005-01-31 Kim F. Storm <storm@cua.dk>
32
33 * undo.c (Qapply): New lisp var.
34 (syms_of_undo): Intern and staticpro it.
35 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
36 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
37
38 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
39
40 2005-01-30 Jesper Harder <harder@phys.au.dk>
41
42 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
43 <mac-emulate-three-button-mouse>: Fix docstring indentation.
44
45 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
46
47 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
48 Increase value to 3 Meg.
49
50 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
51
52 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
53 button events are not received otherwise.
54
55 2005-01-29 Richard M. Stallman <rms@gnu.org>
56
57 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
58
59 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
60
61 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
62
63 * keymap.c (access_keymap): YAILOM.
64
65 2005-01-27 Kim F. Storm <storm@cua.dk>
66
67 * xdisp.c (get_phys_cursor_geometry): New function to calculate
68 phys cursor position and size for hollow cursor. Position is
69 aligned with get_glyph_string_clip_rect and ensures that a hollow
70 cursor is shown, even when the actual glyph is not visible.
71
72 * dispextern.h (get_phys_cursor_geometry): Add prototype.
73
74 * xterm.c (x_clip_to_row): Ensure y >= 0.
75 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
76
77 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
78
79 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
80
81 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
84
85 2005-01-27 Kim F. Storm <storm@cua.dk>
86
87 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
88 glyph, even when row is only partially visible and actual cursor
89 position is not visible.
90
91 2005-01-24 Richard M. Stallman <rms@gnu.org>
92
93 * xterm.c (x_error_quitter): No longer static, and moved after
94 x_error_handler.
95
96 2005-01-24 Kim F. Storm <storm@cua.dk>
97
98 * xdisp.c (move_it_by_lines): If we move forward after going too
99 far back, cancel move if end position is same as start position.
100
101 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
102
103 * dispextern.h (struct glyph_string): New members clip_head and
104 clip_tail.
105
106 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
107 region to the area between clip_head and clip_tail.
108 (draw_glyphs): Record the area that need to be actually redrawn to
109 the new variables clip_head and clip_tail when there are
110 overhangs. Set values of these variables to the corresponding
111 members in struct glyph_string. Refine x coordinates for
112 notice_overwritten_cursor using clip_head and clip_tail.
113
114 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
115
116 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
117 QDTextBounds.
118 (x_draw_glyph_string): Don't fill the background of the successor
119 of a glyph with a right overhang if the successor will draw a cursor.
120 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
121 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
122
123 2005-01-24 Kim F. Storm <storm@cua.dk>
124
125 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
126 direction if window height was smaller than next-screen-context-lines.
127 Now always scroll at least one line in the requested direction.
128 Ensure that we actually do scroll backwards when requested to do so.
129
130 * xdisp.c (redisplay_window): Only try to make cursor line fully
131 visible once (to avoid redisplay loop).
132
133 2005-01-23 Kim F. Storm <storm@cua.dk>
134
135 * window.c (Fpos_visible_in_window_p): Simplify return value for
136 partially visible rows.
137 (window_scroll_pixel_based): Adapt to that change.
138
139 * window.c (window_scroll_pixel_based): Force moving to next line
140 if scrolling doesn't move start point, e.g. if looking at tall image.
141
142 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
143 Clear last_height before calling line_bottom_y to get real height.
144 Fix calculation of y.
145
146 2005-01-22 Steven Tamm <steventamm@mac.com>
147
148 * s/darwin.h: Removed PTY_ITERATION from here.
149 (DARWIN): Define.
150 * process.c (init_process): Default process-connection-type to
151 nil on darwin 6 or less, t if it is 7 or higher. This way the
152 broken pty behavior is still allowed on darwin 6 for interactive
153 processes for people that know what they are doing.
154
155 2005-01-22 Kim F. Storm <storm@cua.dk>
156
157 * window.c (auto_window_vscroll_p): New boolean.
158 (syms_of_window): DEFVAR_BOOL it.
159 (Fpos_visible_in_window_p): Extend return value to include RTOP
160 and RBOT values if FULLY is nil.
161 (window_scroll_pixel_based): Adjust vscroll for partially visible
162 rows if auto_window_vscroll_p is set.
163 (Fset_window_vscroll): Do nothing if vscroll is not modified.
164
165 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
166 to return number of partially invisible pixels at top and bottom
167 of the dislay row at POS.
168
169 * lisp.h (pos_visible_p): Fix prototype.
170
171 2005-01-21 Richard M. Stallman <rms@gnu.org>
172
173 * fileio.c (Fcopy_file): Doc fix.
174
175 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
176
177 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
178 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
179 start of function for older compilers.
180
181 2005-01-20 Richard M. Stallman <rms@gnu.org>
182
183 * editfns.c (Fmessage): If arg is "", return "" (as before).
184
185 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
186
187 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
188 variable.
189
190 2005-01-20 Steven Tamm <steventamm@mac.com>
191
192 * editfns.c (Voperating_system_release): Add.
193 (init_editfns): Assign new variable operating-system-release
194 based on call to uname if available.
195 (get_operating_system_release): Add function to
196 allow c-level access to operating system release.
197
198 * config.h: Regenerated.
199
200 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
201 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
202 using ptys as '7'.
203
204 2005-01-20 Kim F. Storm <storm@cua.dk>
205
206 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
207
208 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
209 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
210
211 * macterm.c (x_draw_glyph_string_box): Likewise.
212
213 * w32term.c (x_draw_glyph_string_box): Likewise.
214
215 * indent.c (Fvertical_motion): Temporarily disable selective display.
216
217 2005-01-19 Kim F. Storm <storm@cua.dk>
218
219 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
220 image property.
221
222 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
223
224 2005-01-18 Kim F. Storm <storm@cua.dk>
225
226 * xdisp.c (fast_find_position): Backtrack to find first row if
227 charpos is inside a display overlay that spans multiple lines.
228
229 2005-01-18 Kenichi Handa <handa@m17n.org>
230
231 * coding.c (decode_coding_iso2022): Translate invalid codes if
232 translation-table is specified.
233
234 2005-01-18 Kim F. Storm <storm@cua.dk>
235
236 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
237 change. If handle_display_prop indicates newline is replaced by
238 image or text, move back to start of relevant overlay or interval
239 and continue scan from there. Simplify.
240
241 2005-01-17 Kim F. Storm <storm@cua.dk>
242
243 * dispnew.c (mode_line_string, marginal_area_string):
244 Fix off-by-one error in search for glyph.
245
246 2005-01-16 Kim F. Storm <storm@cua.dk>
247
248 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
249
250 2005-01-16 Steven Tamm <steventamm@mac.com>
251
252 * macterm.c (mac_to_x_fontname): Remove spurious argument.
253
254 2005-01-16 Andreas Schwab <schwab@suse.de>
255
256 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
257
258 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
259
260 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
261 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
262
263 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
264
265 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
266 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
267 New flags for readable_events.
268 (get_filtered_input_pending, readable_filtered_events): Remove.
269 (tracking_off): Call readable_events and get_input_pending with
270 flag READABLE_EVENTS_DO_TIMERS_NOW.
271 (readable_events): Move code from old readable_filtered_events here,
272 but check new READABLE_EVENTS_* in argument flags instead of previous
273 two boolean arguments do_timers_now and filter_events.
274 If we are doing mouse tracking and the mouse moved, return only if
275 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
276 (swallow_events): Call get_input_pending with flag
277 READABLE_EVENTS_DO_TIMERS_NOW.
278 (get_input_pending): Move code from old get_filtered_input_pending
279 here. Replace boolean arguments do_timers_now, filter_events with
280 flags, and pass flags to readable_events. Document new
281 READABLE_EVENTS_* flags.
282 (detect_input_pending_ignore_squeezables): New function.
283 (detect_input_pending_run_timers): Call get_input_pending with flag
284 READABLE_EVENTS_DO_TIMERS_NOW.
285 (Finput_pending_p): Call get_input_pending with flags
286 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
287
288 * dispnew.c (update_window, update_frame_1): Replace calls to
289 detect_input_pending with detect_input_pending_ignore_squeezables
290 so that redisplay is not paused if the event queue contains only
291 mouse movements.
292
293 * lisp.h: Declare detect_input_pending_ignore_squeezables.
294
295 2005-01-15 Steven Tamm <steventamm@mac.com>
296
297 * macterm.c (Vmac_use_core_graphics): Declare variable for
298 mac-allow-anti-aliasing.
299 (syms_of_macterm): DEFVAR_LISP and initialize it.
300 (mac_draw_string_common): Use core graphics text rendering if
301 mac-allow-anti-aliasing is enabled.
302
303 * macfns.c (Fx_file_dialog): Save As dialog includes only the
304 file name in the text box.
305
306 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
307
308 * macfns.c (x_set_foreground_color, x_set_background_color):
309 Sync with xfns.c.
310 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
311 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
312 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
313
314 2005-01-14 Kim F. Storm <storm@cua.dk>
315
316 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
317
318 2005-01-13 Richard M. Stallman <rms@gnu.org>
319
320 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
321 if Voverriding_terminal_local_map is non-nil.
322
323 * keyboard.c (syms_of_keyboard): Doc fix.
324
325 2005-01-13 Kim F. Storm <storm@cua.dk>
326
327 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
328 (specify 0 for FACE instead). Reorder arg list. Doc fix.
329
330 2005-01-12 Richard M. Stallman <rms@gnu.org>
331
332 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
333 face property for characters that don't specify one.
334
335 * fns.c (Frequire): Record in load-history unconditionally.
336
337 2005-01-10 Kim F. Storm <storm@cua.dk>
338
339 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
340
341 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
342 Callers changed.
343 Add support to merge with lisp face id too (if face_name is t).
344
345 * xdisp.c (get_next_display_element, next_element_from_display_vector):
346 Don't lookup lface_id from display table glyphs here; instead use
347 merge_faces to merge the lisp face id into current face.
348
349 2005-01-09 Kim F. Storm <storm@cua.dk>
350
351 * dispextern.h (struct it): New member dpvec_face_id.
352 (merge_into_realized_face): Add prototype.
353
354 * xfaces.c (merge_into_realized_face): New function. Used to
355 merge escape-glyph face or face from display table into current face.
356
357 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
358 (syms_of_xdisp): DEFVAR_LISP it.
359 (escape_glyph_face): Remove var.
360 (redisplay_window): Don't initialize it.
361 (setup_for_ellipsis, get_next_display_element):
362 Set it->dpvec_face_id to -1.
363 (get_next_display_element): Test Vshow_nonbreak_escape.
364 Do not setup escape_glyph_face.
365 Properly merge escape-glyph face or face from display table with
366 current face for escape and control characters.
367 Set it->dpvec_face_id to relevant face id instead of adding it to each
368 element of display vector.
369 (next_element_from_display_vector): If it->dpvec_face_id is set,
370 use that instead of lface_id from glyph itself.
371
372 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
373
374 * xterm.h (struct x_output): New member, toolbar_detached.
375
376 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
377 38.
378 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
379 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
380 (xg_create_tool_bar): Initialize toolbar_detached.
381 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
382 toolbar_detached is zero.
383
384 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
385
386 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
387 gtk_menu_popup if not for_click, so callbacks for the menu are called.
388
389 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
390 (xg_tool_bar_callback, xg_tool_bar_help_callback)
391 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
392
393 * xselect.c (x_get_foreign_selection, x_fill_property_data)
394 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
395 XFLOAT_DATA to get extract number from Lisp object.
396
397 2005-01-07 Kim F. Storm <storm@cua.dk>
398
399 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
400 Set stop_charpos to current charpos instead of 0.
401
402 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
403
404 * xdisp.c (Fformat_mode_line): First arg now required.
405
406 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
407
408 * macterm.c (XLoadQueryFont): Correctly handle 0 size
409 font widths that are returned from some Japanese fonts.
410
411 2005-01-06 Kim F. Storm <storm@cua.dk>
412
413 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
414 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
415 (destroy_fringe_bitmap): Set fringe_faces element to nil.
416 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
417 fringe_faces array and init elements to nil.
418 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
419 non-persistent face id.
420 (mark_fringe_data): New function for GC.
421
422 * alloc.c (mark_fringe_data): Declare extern.
423 (Fgarbage_collect): Call mark_fringe_data.
424
425 * alloc.c (overrun_check_free): Invalidate freed memory if
426 XMALLOC_CLEAR_FREE_MEMORY is defined.
427
428 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
429
430 * macfns.c: Include sys/param.h.
431 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
432 and function.
433 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
434 of filename string. Set event callback function when creating
435 dialog boxes. Add code conversions for filenames. Don't dispose
436 apple event descriptor record if failed to create it.
437
438 * macterm.c: Include sys/param.h.
439 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
440 kEventWindowUpdate.
441 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
442 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
443 of FSSpec from apple event descriptor record.
444 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
445 size of filename string.
446 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
447 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
448 file dialog is in action.
449 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
450 Reject only when there are no filename items. Set background color
451 before (un)highlighting the window below the dragged items.
452 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
453
454 2005-01-05 Romain Francoise <romain@orebokech.com>
455
456 * term.c (encode_terminal_code): Fix buffer size computation.
457
458 2005-01-04 Richard M. Stallman <rms@gnu.org>
459
460 * xdisp.c (Fformat_mode_line): Doc fix.
461
462 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
463
464 * alloc.c (refill_memory_reserve): Move.
465 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
466 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
467
468 2005-01-03 Richard M. Stallman <rms@gnu.org>
469
470 * window.c (window_scroll_pixel_based): Don't correct preserve_y
471 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
472
473 2005-01-03 Jason Rumney <jasonr@gnu.org>
474
475 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
476 fontp->space_width to FONT_WIDTH so they are valid.
477
478 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
479 average width. Set fontp->average_width and fontp->space_width to
480 their appropriate values.
481
482 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
483 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
484 fontp->space_width.
485
486 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
487
488 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
489 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
490 metrics for max and min bounds.
491 (x_load_font): Correctly calculate average font width metrics.
492
493 2005-01-02 Richard M. Stallman <rms@gnu.org>
494
495 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
496
497 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
498
499 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
500
501 2004-12-31 Richard M. Stallman <rms@gnu.org>
502
503 * xdisp.c (setup_for_ellipsis, get_next_display_element):
504 Set it->ellipsis_p to 1 or 0.
505 (display_line): Record whether row ends in mid-ellipsis.
506 (set_cursor_from_row): If ends in ellipsis. find start of it.
507 (cursor_row_p): If PT's at the end of the ellipsis the row
508 ends within, don't display cursor on this row.
509
510 * dispextern.h (struct it): New element ellipsis_p.
511 (struct glyph_row): New element ends_in_ellipsis_p.
512
513 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
514 position if we're reading from something other than the buffer.
515
516 * window.c (window_scroll_pixel_based): Only look at
517 Vscroll_preserve_screen_position if the old PT can't be kept.
518 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
519
520 2004-12-30 Kim F. Storm <storm@cua.dk>
521
522 * xdisp.c (get_line_height_property): New function extracted from
523 original calc_line_height_property.
524 (calc_line_height_property): Rework. Handle t and (nil . ratio).
525 (x_produce_glyphs): Use them to handle line-height and
526 line-spacing according to new height spec.
527 (Qtotal): Remove.
528 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
529
530 2004-12-30 Kenichi Handa <handa@m17n.org>
531
532 * fileio.c (Finsert_file_contents): Don't use
533 current_buffer->buffer_file_coding_system even if REPLACE is
534 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
535
536 * fontset.h (struct font_info): New members space_width and
537 average_width.
538
539 * frame.h (struct frame): New member space_width.
540 (FRAME_SPACE_WIDTH): New macro.
541
542 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
543
544 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
545 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
546 fontp->space_width.
547 (x_load_font): Calculate fontp->space_width and fontp->average_width.
548 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
549
550 * xdisp.c (x_produce_glyphs): Calculate tab width by
551 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
552
553 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
554
555 * macterm.c (SelectionRange): Add Xcode position apple event struct.
556 (do_ae_open_documents): Handle Xcode-style file position open events.
557
558 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
559
560 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
561
562 2004-12-29 Richard M. Stallman <rms@gnu.org>
563
564 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
565
566 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
567
568 * macfns.c (install_window_handler): Modify extern to return OSErr
569 value.
570 (mac_window): Handle return value of install_window_handler.
571
572 * macterm.c (reflect_byte): Remove function.
573 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
574 Lookup table instead.
575 (mac_do_font_lists): Simplify calculation of the longest
576 nonspecial string.
577 (init_mac_drag_n_drop): Remove function and declaration.
578 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
579 init_mac_drag_n_drop.
580 (mac_do_track_drag): New function and declaration.
581 (install_window_handler): Return OSErr value.
582 (install_window_handler) [TARGET_API_MAC_CARBON]:
583 Register handlers for tracking/receiving drag-and-drop items.
584 (do_ae_open_documents): Generate unibyte strings for filenames.
585 <<<<<<< ChangeLog
586 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
587 Reject only non-filename items. Set event modifiers and return value.
588 =======
589 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
590 Reject only non-filename items. Set event modifiers, and return value.
591 >>>>>>> 1.4187
592
593 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
594
595 * coding.c (decode_coding): Fix previous change.
596
597 2004-12-28 Richard M. Stallman <rms@gnu.org>
598
599 * xdisp.c (back_to_previous_visible_line_start):
600 Don't call handle_display_prop.
601
602 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
603
604 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
605 (decode_coding_emacs_mule, encode_coding_emacs_mule)
606 (decode_coding_iso2022, encode_designation_at_bol)
607 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
608 (decode_coding): Constify arguments and local vars.
609
610 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
611
612 * xmenu.c (popup_get_selection): Only pop down dialogs
613 on C-g and Escape.
614 (popup_get_selection): Remove parameter down_on_keypress.
615 (create_and_show_popup_menu, create_and_show_dialog):
616 Remove parameter down_on_keypress to popup_get_selection.
617
618 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
619
620 * dispextern.h: Change HAVE_CARBON to MAC_OS.
621 (struct glyph_string): Likewise.
622
623 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
624 mac_initialize.
625
626 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
627 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
628
629 * fns.c (vector): Change MAC_OSX to MAC_OS.
630
631 * frame.c (x_set_frame_parameters, x_report_frame_params)
632 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
633 (x_set_border_width, Vdefault_frame_scroll_bars):
634 Change HAVE_CARBON to MAC_OS.
635
636 * image.c [MAC_OS]: Include sys/stat.h.
637 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
638 QuickTimeComponents.h.
639
640 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
641 [!MAC_OSX] (select): Use mac_wait_next_event.
642 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
643 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
644 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
645 (mac_clear_font_name_table): Add extern.
646 (Fmac_clear_font_name_table): New defun.
647 (syms_of_mac): Defsubr it.
648 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
649 [MAC_OSX] (select_and_poll_event): New function.
650 [MAC_OSX] (sys_select): Use it.
651 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
652 [MAC_OSX && SELECT_USE_CFSOCKET]
653 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
654 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
655 RunLoop for simultaneously monitoring two kinds of inputs, window
656 events and process outputs, without periodically polling.
657
658 * macfns.c (mac_initialized): Remove extern.
659 (stricmp): Put in #if 0. All callers changed to use xstricmp in
660 xfaces.c.
661 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
662 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
663 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
664 (mac_get_rdb_resource): New function (from w32reg.c).
665 (x_get_string_resource): Use it.
666 (install_window_handler): Add extern.
667 (mac_window): New function.
668 (Fx_create_frame): Use it instead of make_mac_frame.
669 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
670 (Fx_open_connection, Fx_close_connection): New defuns.
671 (syms_of_macfns): Defsubr them.
672 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
673 Add kWindowNoUpdatesAttribute to the window attribute.
674 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
675 (x_create_tip_frame): Don't call ShowWindow.
676 (Fx_show_tip): Call ShowWindow.
677 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
678 TARGET_API_MAC_CARBON'.
679 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
680 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
681
682 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
683 (Window): Typedef to WindowPtr and move outside `#if
684 TARGET_API_MAC_CARBON'.
685 (XSizeHints): New struct.
686
687 * macterm.c (x_update_begin, x_update_end)
688 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
689 frame.
690 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
691 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
692 (construct_mouse_click): Put in #if 0.
693 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
694 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
695 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
696 (activate_scroll_bars, deactivate_scroll_bars)
697 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
698 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
699 if the position is neither user-specified nor program-specified.
700 (x_free_frame_resources): Free size_hints.
701 <<<<<<< ChangeLog
702 (x_wm_set_size_hint): Allocate size_hints if needed.
703 Set size_hints.
704 =======
705 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
706 >>>>>>> 1.4187
707 (mac_clear_font_name_table): New function.
708 (mac_do_list_fonts): Initialize font_name_table if needed.
709 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
710 around mac_do_list_fonts.
711 (mac_unload_font): New function.
712 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
713 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
714 and definitions with #if TARGET_API_MAC_CARBON.
715 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
716 (install_window_handler): Add decl.
717 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
718 window. Use UpdateControls. Get the rectangle that should be
719 updated and restrict the target of expose_frame to it.
720 (do_grow_window): Set minimum height/width according to size_hints.
721 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
722 (do_zoom_window): Don't use x_set_window_size.
723 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
724 (install_window_handler): New function.
725 [!USE_CARBON_EVENTS] (mouse_region): New variable.
726 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
727 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
728 GetEventDispatcherTarget inside BLOCK_INPUT.
729 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
730 Update mouse_region when mouse is moved.
731 (make_mac_frame): Remove.
732 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
733 Initialize mouse pointer shapes. Change values of f->left_pos and
734 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
735 Don't call ShowWindow.
736 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
737 Vinvocation_name and Vsystem_name.
738 (mac_make_rdb): New function (from w32term.c).
739 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
740 already been opened. Don't pass argument to
741 mac_initialize_display_info. Don't set dpyinfo->height/width.
742 Add entries to x_display_list and x_display_name_list.
743 (x_delete_display): New function.
744 (mac_initialize): Don't call mac_initialize_display_info.
745 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
746
747 * macterm.h (check_mac): Add extern.
748 (struct mac_output): New member size_hints.
749 (FRAME_SIZE_HINTS): New macro.
750 (mac_unload_font): Add extern.
751
752 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
753
754 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
755
756 2004-12-27 Richard M. Stallman <rms@gnu.org>
757
758 <<<<<<< ChangeLog
759 * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el).
760 =======
761 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
762 >>>>>>> 1.4187
763 (syms_of_buffer): Don't defsubr it.
764
765 * process.c (list_processes_1): Set undo_list instead
766 of calling Fbuffer_disable_undo.
767
768 * xdisp.c (single_display_spec_string_p): Rename from
769 single_display_prop_string_p.
770 (single_display_spec_intangible_p): Rename from
771 single_display_prop_intangible_p.
772 (handle_single_display_spec): Rename from handle_single_display_prop.
773 Rewritten to be easier to understand.
774
775 Change in load-history format. Functions now get (defun . NAME),
776 and variables get just NAME.
777
778 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
779
780 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
781 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
782 (Qdefvar): Var deleted.
783 (syms_of_eval): Don't initialze it.
784
785 * lread.c (syms_of_lread) <load-history>: Doc fix.
786
787 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
788
789 * xmenu.c (popup_get_selection): Pop down on C-g.
790 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
791 pops down menu on C-g.
792 (xdialog_show): If dialog popped down and no button in the dialog was
793 pushed, call Fsignal to quit.
794 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
795 Fsignal to quit.
796
797 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
798
799 * gtkutil.c (xg_initialize): Install bindings for C-g so that
800 dialogs and menus pop down.
801
802 2004-12-27 Kenichi Handa <handa@m17n.org>
803
804 * coding.c (code_convert_region): Fix calculation of `ratio'.
805
806 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
807
808 * gtkutil.c (update_frame_tool_bar): Make the value of
809 tool-bar-button-margin control margins of images in tool bar.
810
811 * alloc.c (check_depth): New variable.
812 (overrun_check_malloc, overrun_check_realloc): Only add
813 overhead and write check pattern if check_depth is 1 (to handle
814 recursive calls). Increase/decrease check_depth in entry/exit.
815 (overrun_check_free): Only check for overhead if check_depth is 1.
816 Increase/decrease check_depth in entry/exit.
817
818 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
819
820 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
821 before touching input_available_clear_time, to avoid accessing it
822 from multiple threads.
823
824 2004-12-23 Jason Rumney <jasonr@gnu.org>
825
826 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
827 of JPEG library.
828
829 2004-12-22 Richard M. Stallman <rms@gnu.org>
830
831 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
832
833 * lisp.h (Vundo_outer_limit): Fix decl.
834
835 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
836 Uses changed.
837 (syms_of_undo): Initialize appropriately.
838 (truncate_undo_list): If it's nil, there's no limit.
839
840 2004-12-22 Kenichi Handa <handa@m17n.org>
841
842 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
843
844 2004-12-21 Richard M. Stallman <rms@gnu.org>
845
846 * eval.c (unwind_to_catch): Clear immediate_quit.
847
848 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
849 specially as `\ ' and `\-'.
850
851 * keyboard.c (kbd_buffer_store_event_hold):
852 In the code for while-no-input, handle immediate_quit.
853
854 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
855 Call that at the very start.
856 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
857 (syms_of_alloc): Don't define undo-limit,
858 undo-strong-limit and undo-outer-limit here.
859
860 * undo.c (truncate_undo_list): Return void.
861 Take just one argument, the buffer.
862 Make it current, and inhibit recursive GC.
863 Access and update the undo list directly; return void.
864 Refer to the undo...limit variables directly.
865 Test undo_outer_limit only after counting the whole current command.
866 When it's exceeded, call the function in undo-outer-limit-function.
867 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
868 (Vundo_outer_limit_function): New variable.
869 (syms_of_undo): Define undo-limit, undo-strong-limit
870 and undo-outer-limit here, and undo-outer-limit-function.
871 Doc fixes.
872
873 * lisp.h (truncate_undo_list): Update decl.
874
875 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
876
877 * fileio.c (Fread_file_name): Delete duplicates in
878 file-name-history when history_delete_duplicates is true.
879
880 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
881
882 * macterm.c (mac_do_list_fonts): Fix memory leak
883
884 2004-12-20 Richard M. Stallman <rms@gnu.org>
885
886 * regex.c (re_match_2_internal) <symend, wordend>:
887 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
888
889 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
890
891 * macterm.c (endif, x_font_name_to_mac_font_name):
892 Use maccentraleurroman instead of maccentraleuropean
893 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
894 quickly finding a specific font without needing regexps.
895
896 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
897
898 * syssignal.h: Declare main_thread.
899 (SIGNAL_THREAD_CHECK): New macro.
900
901 * keyboard.c (input_available_signal): Move thread checking code
902 to macro SIGNAL_THREAD_CHECK and call that macro.
903 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
904
905 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
906
907 * emacs.c: Define main_thread.
908 (main): Initialize main_thread.
909 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
910 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
911
912 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
913
914 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
915
916 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
917
918 * process.c (send_process_trap, sigchld_handler):
919 Call SIGNAL_THREAD_CHECK.
920
921 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
922
923 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
924
925 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
926 returning when xg_ignore_gtk_scrollbar is true.
927
928 2004-12-14 Kim F. Storm <storm@cua.dk>
929
930 * keyboard.c (read_char): Save and restore echo_string when
931 handling input method.
932
933 2004-12-13 Richard M. Stallman <rms@gnu.org>
934
935 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
936
937 * keyboard.c (Vthrow_on_input): New variable.
938 (syms_of_keyboard): Defvar and initialize it.
939 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
940
941 * lisp.h (QUIT): Check for Vthrow_on_input.
942 (Vthrow_on_input): Declare it.
943
944 2004-12-13 Kim F. Storm <storm@cua.dk>
945
946 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
947 vector.
948
949 2004-12-12 Richard M. Stallman <rms@gnu.org>
950
951 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
952
953 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
954 (Ftry_completion): Really use outer `zero'; eliminate inner one.
955
956 2004-12-12 Kenichi Handa <handa@m17n.org>
957
958 * term.c (encode_terminal_code): Fix previous change.
959
960 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
961
962 * keyboard.c (handle_async_input): Remove pthread mutex handling.
963 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
964
965 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
966 in macro arguments.
967
968 * minibuf.c (Ftry_completion, Fall_completions): Don't use
969 XFASTINT blindly.
970
971 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
972
973 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
974
975 * w32term.c (x_calc_absolute_position): Remove calculation of
976 difference between inner and outer window. Don't subtract difference
977 for left and top calculations.
978
979 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
980 for left and top calculations. Remove call to x_real_positions.
981 [Bug report by Drew Adams in November]
982 (x_check_expected_move): Do not set change_gravity to 1 when calling
983 x_set_offset.
984
985 2004-12-08 Richard M. Stallman <rms@gnu.org>
986
987 * xdisp.c (get_next_display_element): Use `escape-glyph' for
988 control chars and escaped octal codes.
989 (Qescape_glyph): New variable.
990 (syms_of_xdisp): Initialize it.
991 (escape_glyph_face): New variable.
992 (redisplay_window): Initialize it.
993
994 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
995
996 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
997 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
998
999 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1000
1001 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1002 reset_malloc_hooks.
1003
1004 * keyboard.c (handle_async_input, input_available_signal):
1005 Add ! defined (SYSTEM_MALLOC) around thread code.
1006
1007 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1008
1009 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
1010
1011 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1012
1013 * config.in: Regenerate.
1014
1015 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1016
1017 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1018 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1019 if not given by a mouse click to correspond with x-popup-menu
1020 documentation.
1021
1022 * config.in: Regenerate.
1023
1024 * gtkutil.c: Include signal.h and syssignal.h.
1025 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1026
1027 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1028 new variables main_thread and alloc_mutex,
1029 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1030 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1031 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1032 (UN)BLOCK_INPUT.
1033 (emacs_blocked_free, emacs_blocked_malloc)
1034 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1035 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1036 (reset_malloc_hooks): New function.
1037
1038 * lisp.h: Declare reset_malloc_hooks.
1039
1040 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1041
1042 * keyboard.c: Conditionally include pthread.h
1043 (handle_async_input, input_available_signalt): If not in the main
1044 thread, block signal, send signal to main thread and return.
1045
1046 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
1047 Set current folder in file chooser if default_filename is a directory.
1048
1049 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1052 Remove redundant correctness checks.
1053 (regex_compile): Fix up error codes for \{..\} expressions.
1054
1055 2004-12-05 Richard M. Stallman <rms@gnu.org>
1056
1057 * regex.c (regex_compile): Fix end-of-pattern case for space.
1058
1059 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1060
1061 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1062 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
1063 crashes with invalid characters.
1064 * macmenu.c (add_menu_item): Use it.
1065 * image.c (image_load_quartz2d): Likewise.
1066 * macfns.c (x_set_name, x_set_title): Likewise.
1067 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1068 creating them each time for labels.
1069
1070 2004-12-02 Richard M. Stallman <rms@gnu.org>
1071
1072 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1073 don't use it here.
1074
1075 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1076 (interactive_p): Skip Scalled_interactively_p frames
1077 like Sinteractive_p frames.
1078 (unwind_to_catch): Clear handling_signal.
1079
1080 * data.c (Fmake_variable_buffer_local): Doc fix.
1081 (Fmake_local_variable): Doc fix.
1082
1083 * insdel.c (insert_from_string_before_markers)
1084 (insert_from_string): Don't modify buffer on empty insertion.
1085
1086 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1087
1088 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1089
1090 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1091 menu text as UTF8 fails.
1092
1093 2004-12-01 Kim F. Storm <storm@cua.dk>
1094
1095 * alloc.c: Add commentary for last change.
1096 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1097 sizeof(size_t) != 4.
1098 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1099 Use them. Also clear header and trailer of freed memory.
1100 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1101 (string_overrun_cookie): Rename from string_overrun_pattern.
1102 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1103
1104 2004-12-01 Andreas Schwab <schwab@suse.de>
1105
1106 * lisp.h: Declare string_to_multibyte.
1107
1108 2004-12-01 Kenichi Handa <handa@m17n.org>
1109
1110 * w32console.c (w32con_write_glyphs): Decide coding here.
1111 Adjusted for the change of encode_terminal_code.
1112
1113 * term.c (encode_terminal_code): Don't make it "static".
1114
1115 2004-11-30 Kenichi Handa <handa@m17n.org>
1116
1117 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
1118 (encode_terminal_code): Argument changed. Encode all
1119 characters at once, and return a pointer to the result of encoding.
1120 (write_glyphs): Decide coding here. Adjusted for the above change.
1121 (insert_glyphs): Likewise.
1122 (term_init): Initialize encode_terminal_bufsize to 0.
1123
1124 * coding.c (Vcode_conversion_workbuf_name): New variable.
1125 (syms_of_coding): Initialize and staticpro it.
1126 (set_conversion_work_buffer): New function.
1127 (run_pre_post_conversion_on_str): Use it.
1128 (run_pre_write_conversin_on_c_str): New function.
1129
1130 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1131
1132 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1133
1134 * keyboard.c: Don't undef SIGIO
1135 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1136 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1137 (macfns.o): Don't depend on ccl.h.
1138 * macfns.c (mac_frame_parm_handlers): Set handlers for
1139 Qleft_fringe and Qright_fringe.
1140 * macterm.c (mac_fill_rectangle_to_pixmap)
1141 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1142 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1143 Put in #if 0.
1144 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1145 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1146 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1147 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1148 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1149 XDrawImageString. Always draw background and foreground separately.
1150 (x_draw_image_foreground): Use clipping instead of computing the
1151 intersection rectangle.
1152 (x_draw_image_glyph_string): Don't draw an image with mask to a
1153 pixmap.
1154 (x_redisplay_interface): Set flush_display_optional member to 0.
1155 (XTread_socket): Correctly reset the TEConverter
1156 object.
1157
1158 2004-11-30 Kim F. Storm <storm@cua.dk>
1159
1160 * lisp.h: New defines to enable buffer overrun checking.
1161 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1162 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1163
1164 * alloc.c: Add more checks for buffer overruns.
1165 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1166 xmalloc_overrun_check_trailer, overrun_check_malloc)
1167 overrun_check_realloc, overrun_check_free): Add.
1168 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1169 (check_sblock, allocate_string_data, compact_small_strings):
1170 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1171 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1172 (check_string_free_list): Add.
1173 (allocate_string, sweep_strings): Call check_string_free_list.
1174
1175 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1176 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1177
1178 2004-11-29 Kim F. Storm <storm@cua.dk>
1179
1180 * fns.c (concat): Use SAFE_ALLOCA.
1181
1182 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1183
1184 * sysdep.c (emacs_write): Don't use QUIT.
1185
1186 2004-11-29 Kenichi Handa <handa@m17n.org>
1187
1188 * buffer.c (init_buffer): Set current_buffer->directory to a
1189 multibyte string made by string_to_multibyte.
1190
1191 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
1192
1193 2004-11-27 Andreas Schwab <schwab@suse.de>
1194
1195 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1196
1197 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1198 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1199
1200 * filelock.c (lock_file_1): Call get_boot_time early.
1201 Increase buffer size.
1202
1203 2004-11-27 Eli Zaretskii <eliz@gnu.org>
1204
1205 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1206 is not defined.
1207
1208 2004-11-27 Kim F. Storm <storm@cua.dk>
1209
1210 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1211 marker out of doc string.
1212
1213 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1214
1215 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1216 which was not mentioned in the log.
1217
1218 2004-11-26 Kim F. Storm <storm@cua.dk>
1219
1220 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1221 angle bitmaps at top/bottom line.
1222
1223 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1224 set it when it->method is set to next_element_from_display_vector.
1225 (setup_for_ellipsis): Add LEN argument. Callers changed.
1226 Set it->saved_face_id.
1227 (get_next_display_element): Use loop instead of recursion.
1228 Set it->saved_face_id. Combine duplicate code for ctr chars.
1229 (next_element_from_display_vector): Do not set it->saved_face_id.
1230 (next_element_from_ellipsis): Use setup_for_ellipsis.
1231
1232 2004-11-26 Eli Zaretskii <eliz@gnu.org>
1233
1234 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1235 prevent compiler warnings.
1236
1237 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * keyboard.c (command_loop_1): Print a message describing the key
1240 the user just pressed when this key has no binding.
1241
1242 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1243 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1244
1245 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1246
1247 2004-11-24 Richard M. Stallman <rms@gnu.org>
1248
1249 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1250
1251 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1252
1253 2004-11-24 Kim F. Storm <storm@cua.dk>
1254
1255 * xdisp.c (move_it_in_display_line_to, display_line):
1256 Restore saved_face_id also when truncate-lines or hscrolled.
1257
1258 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1259
1260 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1261 x-use-old-gtk-file-dialog.
1262
1263 * xfns.c: Define x_use_old_gtk_file_dialog.
1264 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1265 outside ifdef USE_GTK.
1266
1267 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1268
1269 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1270 Don't use XFASTINT blindly.
1271
1272 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1273
1274 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1275 in macro arguments.
1276
1277 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1278
1279 * lread.c (oblookup): Don't use XFASTINT blindly.
1280
1281 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1282 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1283
1284 2004-11-23 Kim F. Storm <storm@cua.dk>
1285
1286 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1287 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1288
1289 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1290 signal_p is zero and face name is unknown.
1291 (Fx_list_fonts): Don't signal error in lookup_named_face.
1292 (Fface_font): Signal error in lookup_named_face.
1293 (ascii_face_of_lisp_face): Likewise.
1294
1295 * dispextern.h (lookup_named_face): Fix prototype.
1296
1297 * xdisp.c (handle_single_display_prop): Don't signal error in
1298 lookup_named_face for unknown fringe face name.
1299 (highlight_trailing_whitespace): Don't signal error in
1300 lookup_named_face if trailing-whitespace face unknown.
1301 (calc_line_height_property): Don't signal error in
1302 lookup_named_face if specified face name is unknown.
1303
1304 * fringe.c (update_window_fringes): Show top row indicator if
1305 window has header-line. Don't show arrow at bob and eob
1306 if the boundary indicators are not used.
1307 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1308
1309 * window.c (set_window_buffer): Clear display_error_modiff.
1310
1311 2004-11-22 Kim F. Storm <storm@cua.dk>
1312
1313 * fringe.c (update_window_fringes): Provide sensible fall-back
1314 value for non-nil indicate-buffer-boundaries setting.
1315
1316 2004-11-22 Markus Rost <rost@ias.edu>
1317
1318 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1319
1320 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1321
1322 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1323
1324 2004-11-21 Kim F. Storm <storm@cua.dk>
1325
1326 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1327
1328 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1329 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1330
1331 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1332 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1333
1334 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1335 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1336
1337 * xdisp.c (move_it_in_display_line_to, display_line):
1338 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1339 line is continued before or in middle of element from display vector.
1340
1341 * indent.c (Fvertical_motion): Fix last change. Use another
1342 method to detect if iterator moved too far ahead after reseat.
1343
1344 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1345 expand matrix width for overflow in zero-width area.
1346 (append_glyph, append_composite_glyph, produce_image_glyph)
1347 (append_stretch_glyph): Use it to avoid loop in redisplay.
1348 (note_mode_line_or_margin_highlight): Don't let help-echo from
1349 string override help-echo from image map.
1350
1351 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1352
1353 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
1354 * callint.c (Fcall_interactively): Ditto.
1355
1356 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
1357
1358 * minibuf.c (Fminibuffer_complete_and_exit):
1359 Fixup the case of the completed value, for case-indep completion.
1360
1361 2004-11-20 Richard M. Stallman <rms@gnu.org>
1362
1363 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1364
1365 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
1366 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
1367
1368 * search.c (Vsearch_spaces_regexp):
1369 Rename from Vsearch_whitespace_regexp. All uses changed.
1370
1371 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1372
1373 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1374
1375 2004-11-19 Richard M. Stallman <rms@gnu.org>
1376
1377 * search.c (Vsearch_whitespace_regexp): New variable.
1378 (syms_of_search): Defvar it.
1379 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1380 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1381 is non-nil.
1382 (struct regexp_cache): New element whitespace_regexp.
1383 (syms_of_search): Initialize whitespace_regexp elements.
1384 (compile_pattern): Compare whitespace_regexp elements.
1385 (compile_pattern_1): Set whitespace_regexp elements.
1386
1387 * regex.c (regex_compile): Substitute whitespace_regexp
1388 for spaces, if it is nonzero.
1389 (whitespace_regexp): New variable.
1390 (re_set_whitespace_regexp): New function.
1391
1392 2004-11-19 Kim F. Storm <storm@cua.dk>
1393
1394 * indent.c (Fvertical_motion): Fix last change.
1395
1396 2004-11-18 Kim F. Storm <storm@cua.dk>
1397
1398 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1399 Instead, move back again if reseating moves too far ahead.
1400
1401 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
1402
1403 * xdisp.c (message3): Call clear_message.
1404
1405 2004-11-17 Kim F. Storm <storm@cua.dk>
1406
1407 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1408
1409 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1410
1411 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
1412
1413 * xmenu.c (x_menu_in_use): Remove.
1414 (x_menu_set_in_use): Also set popup_activated_flag.
1415
1416 * xfns.c (Fx_file_dialog): Call popup_activated instead of
1417 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1418
1419 * xterm.h: (x_menu_in_use): Remove.
1420
1421 2004-11-16 Richard M. Stallman <rms@gnu.org>
1422
1423 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1424 Use map-keymap-internal to implement that.
1425
1426 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1427
1428 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1429
1430 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1431 a window before using XWINDOW.
1432
1433 * window.c (make_window, Fselect_window, make_dummy_parent)
1434 (save_window_save):
1435 * frame.c (make_frame):
1436 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1437
1438 * lisp.h (NILP): Use EQ rather than XFASTINT.
1439
1440 2004-11-16 Kim F. Storm <storm@cua.dk>
1441
1442 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
1443
1444 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1445 moving backwards.
1446
1447 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
1448
1449 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1450
1451 2004-11-16 Kenichi Handa <handa@m17n.org>
1452
1453 * xdisp.c (display_mode_element): Fix previous change (calculate
1454 end position of substring to display correctly).
1455
1456 2004-11-16 Kim F. Storm <storm@cua.dk>
1457
1458 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1459 Reported by Andrew M. Scott.
1460
1461 2004-11-15 Kim F. Storm <storm@cua.dk>
1462
1463 * fns.c (Fsafe_plist_get): New defun.
1464 (syms_of_fns): Defsubr it.
1465
1466 * lisp.h (Fsafe_plist_get): Add EXFUN.
1467
1468 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1469 Use Fsafe_plist_get.
1470 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1471 Fix image map element parsing. Use Fsafe_plist_get.
1472
1473 2004-11-15 Richard M. Stallman <rms@gnu.org>
1474
1475 * xdisp.c (get_next_display_element): Fix previous change.
1476
1477 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1478
1479 * window.c (shrink_windows): Handle special case of one window left
1480 when trying to shrink the final reminder. Grow windows if
1481 total_removed is less than total_shrink.
1482
1483 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1484 extract pointer from arg with XSAVE_VALUE.
1485 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1486 Construct arg to record_unwind_protect with make_save_value.
1487
1488 2004-11-13 Richard M. Stallman <rms@gnu.org>
1489
1490 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1491 (get_next_display_element): Fix previous change to apply only to \n.
1492
1493 * indent.c (Fvertical_motion): Scan to PT from start of line to
1494 make iterator consistent.
1495
1496 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1497
1498 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1499
1500 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1501
1502 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1503 Record unwind with clean_up_file_dialog.
1504
1505 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1506 Declare.
1507
1508 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1509
1510 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1511
1512 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
1513 (xg_file_sel_destroy): Remove.
1514 (xg_file_response_cb, pop_down_file_dialog)
1515 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
1516 New functions.
1517 (xg_get_file_with_chooser, xg_get_file_with_selection):
1518 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
1519 Move common code to xg_get_file_name. Return widget created.
1520 (xg_get_file_name): Set name, transient for, modal and destroy
1521 with parent here. Connect response signal to xg_file_response_cb,
1522 connect delete-event to gtk_true. Record pop_down_file_dialog
1523 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1524 (xg_create_widget): Make dialogs modal.
1525
1526 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1527 Lisp_Object.
1528 (popup_get_selection): Move unwind protect ...
1529 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1530 Move destroy of widget to pop_down_menu.
1531 (popup_widget_loop): Move unwind protect ...
1532 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1533 Move destroy of widget to pop_down_menu.
1534 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
1535 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
1536 x_mouse_leave and grabbed = 0 to pop_down_menu.
1537
1538 2004-11-13 Kim F. Storm <storm@cua.dk>
1539
1540 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1541 (syms_of_xdisp): DEFVAR_BOOL it.
1542 (make_cursor_line_fully_visible, try_cursor_movement)
1543 (try_window_id): Use it.
1544
1545 2004-11-12 Kim F. Storm <storm@cua.dk>
1546
1547 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1548 (struct it): New member max_extra_line_spacing.
1549 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1550 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1551 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1552 part of last line is only extra line spacing (so the text on the
1553 line is fully visible). Use helper macros.
1554 Add W arg (to use them). All callers changed.
1555 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1556 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1557
1558 * window.c (window_scroll_pixel_based, Frecenter):
1559 Use move_it_vertically_backward directly.
1560 (Frecenter): Fix calculation of new start pos for negative arg.
1561 Before, the new start pos was sometimes chosen too far back, so
1562 the last line became only partially visible, and thus would be
1563 either only semi-visible or automatically scrolled to the middle
1564 of the window by redisplay.
1565
1566 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1567 (move_it_vertically_backward): Don't recure to move further back.
1568 (move_it_vertically): Remove superfluous condition.
1569 (move_it_by_lines): Clear last_height when moved 0 lines.
1570 (resize_mini_window): Use it.max_extra_line_spacing.
1571 (display_tool_bar_line): Clear row->extra_line_spacing.
1572 (try_scrolling): Use move_it_vertically_backward directly.
1573 (redisplay_window): Likewise.
1574 (compute_line_metrics): Set row->extra_line_spacing.
1575 (display_line, display_string): Likewise.
1576 (x_produce_glyphs): Update it->max_extra_line_spacing.
1577
1578 * xmenu.c (pop_down_menu): Return nil.
1579
1580 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1581
1582 * xmenu.c (x_menu_wait_for_event): New function.
1583 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1584 to handle timers.
1585 (popup_widget_loop): Add argument do_timers.
1586 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1587 do_timers to popup_widget_loop.
1588 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1589 x_menu_wait_for_event is called by XMenuActivate.
1590 (create_and_show_popup_menu): Pass 1 for do_timers to
1591 popup_get_selection.
1592 (pop_down_menu): New function.
1593 (popup_get_selection, popup_widget_loop): Unwind protect to
1594 pop_down_menu.
1595 (popup_widget_loop): Add argument widget.
1596 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1597 argument widget to popup_widget_loop.
1598
1599 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1600
1601 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1602
1603 2004-11-09 Kim F. Storm <storm@cua.dk>
1604
1605 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1606 Fix various comments referring to XEvents instead of input events.
1607 (x_queue_event): Fix format strings.
1608 (x_stop_queuing_selection_requests): Likewise.
1609
1610 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1611 (pint2hrstr): Add extra braces to silence compiler.
1612
1613 * print.c (print_object): Fix format string.
1614
1615 * lread.c (read1): Fix next_char matching.
1616
1617 * lisp.h (Fdelete): Add EXFUN.
1618 (replace_range_2): Add prototype.
1619
1620 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1621
1622 * intervals.h (NULL_INTERVAL_P): Add separate version when
1623 ENABLE_CHECKING is not defined to silence compiler.
1624 (compare_string_intervals): Add prototype.
1625
1626 * fringe.c (destroy_fringe_bitmap): Fix return type.
1627 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1628
1629 * emacs.c (Fdump_emacs): Fix format string.
1630
1631 * doc.c: Include <ctype.h>.
1632 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1633
1634 * data.c (store_symval_forwarding): Remove unused variables.
1635
1636 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1637
1638 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1639
1640 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1641 to ${OLDXMENU}.
1642
1643 2004-11-09 Kim F. Storm <storm@cua.dk>
1644
1645 * process.c (Fmake_network_process): Remove kludge for interrupted
1646 connects on BSD. If connect is interrupted, just close socket and
1647 start over rather than sleeping and retry with same socket.
1648
1649 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1650
1651 * .cvsignore: Add buildobj.lst.
1652
1653 * doc.c: New variable Vbuild_files.
1654 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1655 file names from buildobh.lst. Only attach docstrings from files
1656 that are in Vbuild_files.
1657 (syms_of_doc): Defvar Vbuild_files.
1658
1659 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1660 and w32*.o.
1661 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
1662 (mostlyclean): Rm buildobj.lst
1663
1664 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1665 is linked.
1666
1667 2004-11-09 Kim F. Storm <storm@cua.dk>
1668
1669 * fringe.c (update_window_fringes): Update fringe bitmaps if
1670 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1671 also update previous row to get rid of misc. artifacts.
1672
1673 2004-11-08 Kim F. Storm <storm@cua.dk>
1674
1675 * xdisp.c (fast_find_position): Fix start pos if header line present.
1676 (note_mouse_highlight): Clear mouse face if we move out of text area.
1677
1678 2004-11-08 Eli Zaretskii <eliz@gnu.org>
1679
1680 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1681 Don't include <sys/time.h> explicitly.
1682 Include <stdio.h> unconditionally, not just on MacOS.
1683
1684 2004-11-08 Kenichi Handa <handa@m17n.org>
1685
1686 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1687 don't pay attention to '\' before '*'.
1688 (fontset_pattern_regexp): Change the meaning of the second arg.
1689 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1690 (check_fontset_name): Try NAME as literal at first, and if it
1691 failes, try NAME as pattern.
1692
1693 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1694
1695 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1696
1697 2004-11-07 Andreas Schwab <schwab@suse.de>
1698
1699 * lisp.h (Fmsdos_downcase_filename): Declare.
1700 * dired.c (Fmsdos_downcase_filename): Don't declare here.
1701 * fileio.c: Likewise.
1702
1703 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1704
1705 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1706 comparisons with integers instead of Lisp_Object address.
1707 (Fmsdos_set_keyboard): Declare argument allkeys.
1708
1709 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1710
1711 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
1712 int/Lisp_Object mixup.
1713
1714 * fileio.c: Ditto.
1715
1716 2004-11-06 Steven Tamm <steventamm@mac.com>
1717
1718 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1719
1720 2004-11-06 Richard M. Stallman <rms@gnu.org>
1721
1722 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1723
1724 * xfaces.c (merge_named_face): GCPRO the face_name in the
1725 named_merge_point struct that we make.
1726 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1727
1728 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1729 before deciding whether to inactivate mark.
1730
1731 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
1732
1733 * config.in: Regenerate (add HAVE_GETRUSAGE).
1734 * editfns.c (Fget_internal_run_time): New function.
1735 (syms_of_data): Defsubr it.
1736 * fns.c (sxhash): As far as possible, merge calculation of
1737 hash code for symbols and strings.
1738
1739 2004-11-06 Eli Zaretskii <eliz@gnu.org>
1740
1741 * frame.c (syms_of_frame): Fix the example in the doc string.
1742
1743 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1744
1745 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1746
1747 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1748 (create_and_show_dialog): Revert change from 2004-10-31.
1749
1750 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1751
1752 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1753
1754 2004-11-05 Kim F. Storm <storm@cua.dk>
1755
1756 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1757
1758 * fileio.c (Ffile_modes): Doc fix.
1759 (auto_save_1): Check for Ffile_modes nil value.
1760
1761 2004-11-05 Kim F. Storm <storm@cua.dk>
1762
1763 * xselect.c (struct selection_event_queue, selection_queue)
1764 (x_queue_selection_requests, x_queue_event)
1765 (x_start_queuing_selection_requests)
1766 (x_stop_queuing_selection_requests): Add new queue for selection
1767 input events to replace previous XEvent queue in xterm.c.
1768 (queue_selection_requests_unwind): Adapt to new queue.
1769 (x_reply_selection_request): Adapt to new queue.
1770 Unexpect wait_object in case of x errors (memory leak).
1771 (x_handle_selection_request, x_handle_selection_clear): Make static.
1772 (x_handle_selection_event): New function. May queue selection events.
1773 (wait_for_property_change_unwind): Use save_value instead of cons.
1774 Clear property_change_reply_object.
1775 (wait_for_property_change): Abort if already waiting.
1776 Use save_value instead of cons for unwind data.
1777 (x_handle_property_notify): Skip events already arrived, but don't
1778 free them, as "arrived" field is checked by wait_for_property_change,
1779 and it will be freed by unwind or explicit unexpect_property_change.
1780 (x_get_foreign_selection): Add to new queue.
1781 (receive_incremental_selection): Don't unexpect wait_object when done
1782 as it has already been freed by previous wait_for_property_change.
1783
1784 * xterm.h (x_start_queuing_selection_requests)
1785 (x_stop_queuing_selection_requests, x_handle_selection_request)
1786 (x_handle_selection_clear): Remove prototypes.
1787 (x_handle_selection_event): Add prototype.
1788
1789 * xterm.c (handle_one_xevent): Don't queue X selection events
1790 here, it may be too late if we start queuing after we have already
1791 stored some selection events into the kbd buffer.
1792 (struct selection_event_queue, queue, x_queue_selection_requests)
1793 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1794 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1795 (x_catch_errors_unwind): Block input around final XSync.
1796
1797 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1798
1799 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1800 (kbd_buffer_unget_event): New function.
1801 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1802 and use x_handle_selection_event.
1803 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1804
1805 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1806
1807 * xselect.c (TRACE3): New debug macro.
1808 (x_reply_selection_request): Use it.
1809 (receive_incremental_selection): In call to TRACE0, the name of
1810 a symbol is in xname.
1811
1812 2004-11-05 Kim F. Storm <storm@cua.dk>
1813
1814 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1815
1816 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1817
1818 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1819
1820 * gtkutil.h (use_old_gtk_file_dialog): Declare.
1821
1822 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
1823 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
1824 * xfns.c (syms_of_xfns): ... to here.
1825
1826 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1827 it doesn't start with /.
1828
1829 2004-11-04 Kenichi Handa <handa@m17n.org>
1830
1831 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1832 treat it as a literal character.
1833
1834 2004-11-03 Kim F. Storm <storm@cua.dk>
1835
1836 * .gdbinit (ppt): New function.
1837
1838 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1839
1840 * xterm.c (x_window_to_scroll_bar): Only call
1841 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1842
1843 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1844 of save.
1845
1846 2004-11-02 Andreas Schwab <schwab@suse.de>
1847
1848 * window.c (Fscroll_right): Fix last change.
1849
1850 2004-11-02 Kim F. Storm <storm@cua.dk>
1851
1852 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1853
1854 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1855
1856 * callproc.c (Fcall_process): Block input around vfork.
1857
1858 2004-11-02 Kim F. Storm <storm@cua.dk>
1859
1860 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1861 (syms_of_eval): Defsubr it.
1862
1863 2004-11-02 Richard M. Stallman <rms@gnu.org>
1864
1865 * insdel.c (replace_range_2): New function.
1866
1867 * casefiddle.c (casify_region): Handle changes in byte-length
1868 using replace_range_2.
1869
1870 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1871
1872 * xdisp.c (back_to_previous_visible_line_start):
1873 Subtract 1 from pos when checking previous newline for invisibility.
1874
1875 * window.c (window_scroll_pixel_based): Update preserve_y
1876 for header line if any.
1877 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1878 use a new second argument instead.
1879
1880 * eval.c (Fcall_interactive_p): New function.
1881 (interactive_p): Don't test INTERACTIVE here.
1882 (Finteractive_p): Doc fix.
1883
1884 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1885
1886 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1887
1888 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
1889 comparing font names.
1890
1891 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1892
1893 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1894 Fx_file_dialog if only directories should be read.
1895
1896 * lisp.h: Fx_file_dialog takes 5 parameters.
1897
1898 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1899 Add parameter only_dir_p.
1900 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1901 dialog, just text field part. Do not add DEFAULT_FILENAME
1902 to list of files if it isn't there.
1903 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1904
1905 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1906 Check only_dir_p instead of comparing prompt to "Dired". When using
1907 a save dialog, add option kNavDontConfirmReplacement, change title
1908 to "Enter name", change text for save button to "Ok".
1909
1910 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1911 Check only_dir_p instead of comparing prompt to "Dired".
1912
1913 * gtkutil.c (xg_get_file_with_chooser)
1914 (xg_get_file_with_selection): New functions, only defined ifdef
1915 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1916 respectively.
1917 (xg_get_file_name): Add parameter only_dir_p.
1918 Call xg_get_file_with_chooser or xg_get_file_with_selection
1919 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1920 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1921
1922 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1923
1924 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1925
1926 2004-11-01 Kim F. Storm <storm@cua.dk>
1927
1928 * process.c (connect_wait_mask, num_pending_connects):
1929 Only declare and use them if NON_BLOCKING_CONNECT is defined.
1930 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
1931 (IF_NON_BLOCKING_CONNECT): New helper macro.
1932 (wait_reading_process_output): Only declare and use local vars
1933 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
1934
1935 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1936
1937 * w32term.c (x_scroll_run): Delete region objects after use.
1938
1939 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1940
1941 * xmenu.c: Add prototypes for forward function declarations.
1942 (popup_get_selection): Remove parameter do_timers, remove call to
1943 timer_check.
1944 (create_and_show_popup_menu, create_and_show_dialog):
1945 Remove parameter do_timers from call to popup_get_selection.
1946
1947 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1948 tool_bar_items and assign the result to f->tool_bar_items if
1949 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1950 tool_bar_items to assignment of result.
1951
1952 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1953 pending_atmers is non-zero.
1954
1955 2004-10-31 Kim F. Storm <storm@cua.dk>
1956
1957 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1958
1959 2004-10-28 Will <will@glozer.net>
1960
1961 * macterm.c: allow user to assign key modifiers to the Mac Option
1962 key via a 'mac-option-modifier' variable.
1963
1964 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1965
1966 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1967 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1968 (x_handle_selection_request, x_handle_selection_clear)
1969 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1970
1971 2004-10-28 Richard M. Stallman <rms@gnu.org>
1972
1973 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1974
1975 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1976
1977 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1980 comment-starter over a 1-char one.
1981
1982 2004-10-27 Richard M. Stallman <rms@gnu.org>
1983
1984 * xdisp.c (get_next_display_element): In mode lines,
1985 treat newline and tab like other control characters.
1986
1987 * editfns.c (Fmessage): Doc fix.
1988
1989 * indent.c (vmotion): When moving up, check the newline before.
1990 Make prevline an int, not a Lisp_Object.
1991
1992 2004-10-27 Kim F. Storm <storm@cua.dk>
1993
1994 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1995 Only allocate info and discarded tables once.
1996
1997 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1998 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1999 (SAFE_FREE): Test it to determine if we need to unwind to free.
2000 Remove size arg. All users changed.
2001 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2002
2003 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2004
2005 * gtkutil.c: Put empty line between comment and function body.
2006 (xg_destroy_widgets): Rename from remove_from_container.
2007 Just destroy all widgets in list. Argument wcont removed.
2008 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2009 instead of remove_from_container.
2010 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2011 (free_frame_tool_bar): Add comment.
2012
2013 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2014 is not NULL before strcmp.
2015
2016 2004-10-26 Kim F. Storm <storm@cua.dk>
2017
2018 * callint.c (Fcall_interactively): Add 'U' code to get the
2019 up-event discarded by a previous 'k' or 'K' argument.
2020
2021 2004-10-26 David Kastrup <dak@gnu.org>
2022
2023 * buffer.c (syms_of_buffer): Fix a few typos.
2024
2025 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2026
2027 * xsmfns.c: Put empty line between comment and function body.
2028 Use two spaces before comment end.
2029
2030 2004-10-25 Kenichi Handa <handa@m17n.org>
2031
2032 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2033 PATTERN is full XLFD.
2034
2035 2004-10-24 Kenichi Handa <handa@m17n.org>
2036
2037 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2038
2039 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2040 (regex_compile): Return REG_ERANGEX if appropriate.
2041
2042 2004-10-22 Kenichi Handa <handa@m17n.org>
2043
2044 * editfns.c (Ftranslate_region_internal): New function.
2045 (syms_of_editfns): Defsubr it.
2046
2047 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2048
2049 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2050
2051 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
2052
2053 * xterm.h (x_output): New member `xic_base_fontname'.
2054 (FRAME_XIC_BASE_FONTNAME): New macro.
2055 (xic_free_xfontset): Declare.
2056
2057 * xfns.c (xic_create_xfontset): Share fontsets between frames
2058 based on base_fontname.
2059 (xic_free_xfontset): New function.
2060 (free_frame_xic): Use it.
2061 (xic_set_xfontset): Ditto.
2062
2063 * xterm.c (xim_destroy_callback): Ditto.
2064
2065
2066 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2067
2068 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2069
2070 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2071
2072 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2073 XSync.
2074
2075 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2076 New variables and constant.
2077 (main): Calculate heap_bss_diff. If we are dumping and the
2078 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2079 and exec ourself again.
2080 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2081 print a warning.
2082
2083 * lastfile.c: Make my_endbss and my_endbss_static available on all
2084 platforms.
2085
2086 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2087 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2088
2089 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2090
2091 * data.c (Flocal_variable_if_set_p): Doc fix.
2092
2093 2004-10-19 Jason Rumney <jasonr@gnu.org>
2094
2095 * w32.c (init_environment): Set emacs_dir correctly when running
2096 emacs from the build directory.
2097
2098 2004-10-19 Richard M. Stallman <rms@gnu.org>
2099
2100 * editfns.c (Fdelete_and_extract_region):
2101 If region is empty, return null string.
2102
2103 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2104
2105 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
2106 and canon_width.
2107 (xg_frame_cleared): Remove.
2108
2109 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2110 (xg_find_top_left_in_fixed): Remove.
2111 (xg_create_scroll_bar): Put an event box widget between
2112 the scroll bar widget and the edit widget.
2113 (xg_show_scroll_bar): Show the parent widget (the event box).
2114 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2115 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2116 Move the parent (the event box) widget inside the fixed widget.
2117 Move window clear to xterm.c.
2118
2119 * gtkutil.h (xg_frame_cleared): Remove.
2120
2121 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
2122 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2123 Remove arguments left and width to xg_update_scrollbar_pos.
2124 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2125
2126 2004-10-19 Kenichi Handa <handa@m17n.org>
2127
2128 * xdisp.c (display_mode_element): Fix display of wide chars.
2129
2130 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2131
2132 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2133 gdk_window_clear and move gdk_window_process_all_updates after
2134 clear so events are sent to the X server in correct order.
2135
2136 2004-10-18 Kenichi Handa <handa@m17n.org>
2137
2138 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2139 comparing font names.
2140 (fs_query_fontset): Use fast_string_match for comparing fontset names.
2141 (list_fontsets): Likewise.
2142
2143 * search.c (fast_string_match_ignore_case): New function.
2144
2145 * lisp.h (fast_string_match_ignore_case): Extern it.
2146
2147 2004-10-17 Kim F. Storm <storm@cua.dk>
2148
2149 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2150 than bitmap if there is not left fringe.
2151 (get_overlay_arrow_glyph_row): Also used on windows system.
2152 (display_line): Display overlay string if no left fringe.
2153
2154 2004-10-16 Jason Rumney <jasonr@gnu.org>
2155
2156 * w32fns.c (w32_font_match): Encode font name being matched.
2157
2158 2004-10-16 Richard M. Stallman <rms@gnu.org>
2159
2160 * window.c (Fspecial_display_p): Doc fix.
2161
2162 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
2163
2164 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2165 Don't ignore menus, because where-is-internal already does it for us.
2166
2167 2004-10-15 Kim F. Storm <storm@cua.dk>
2168
2169 * xdisp.c (redisplay_window): Only update fringes and vertical
2170 border on window frames.
2171
2172 2004-10-14 Andreas Schwab <schwab@suse.de>
2173
2174 * m/ia64.h (DATA_SEG_BITS): Don't define.
2175
2176 2004-10-14 Kim F. Storm <storm@cua.dk>
2177
2178 * xterm.h: Include Xutil.h after keysym.h to work around bug
2179 in some X versions.
2180
2181 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2182
2183 * fns.c (map_char_table): Add missing gcpros.
2184
2185 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2186
2187 * keymap.c (get_keymap): An autoload form is not a keymap.
2188
2189 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2190
2191 2004-10-13 Kim F. Storm <storm@cua.dk>
2192
2193 * callproc.c (Fcall_process): Simplify handling of display arg.
2194 Resume `display_on_the_fly' once a coding system is determined.
2195
2196 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2197
2198 2004-10-12 Kim F. Storm <storm@cua.dk>
2199
2200 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2201 caller, such as call-process, is not going to poll for input.
2202 (calc_line_height_property): Handle case where it->object is nil.
2203
2204 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2205
2206 2004-10-12 Kenichi Handa <handa@m17n.org>
2207
2208 * xdisp.c (get_next_display_element):
2209 If unibyte_display_via_language_environment is zero, display 8-bit
2210 chars in octal in unibyte buffer.
2211
2212 2004-10-12 Kim F. Storm <storm@cua.dk>
2213
2214 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2215 are no ordinary bindings.
2216
2217 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2218
2219 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
2220
2221 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2222
2223 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2224 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
2225 (make_mac_frame): Add BLOCK_INPUT around the making of a
2226 terminal frame.
2227 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2228 * macgui.h (mktime): Use emacs_mktime.
2229 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2230 Make a cancel file-open dialog be like C-g.
2231 * mac.c (mktime): Use emacs_mktime.
2232 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2233 (Fmac_paste_function): Add better error handling for carbon cut/paste.
2234
2235 2004-10-10 Kim F. Storm <storm@cua.dk>
2236
2237 * keyboard.c (timer_resume_idle): New function to resume idle
2238 timer without resetting timers on the idle list.
2239 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2240 (timer_start_idle, timer_stop_idle): Declare static.
2241 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2242
2243 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2244
2245 2004-10-08 Steven Tamm <steventamm@mac.com>
2246
2247 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
2248 * macterm.c (mac_check_for_quit_char): Remove warning for using
2249 NULL where 0 should be used.
2250 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2251 objc/malloc.h
2252 * mac.c: Include time.h for Tiger compatibility.
2253
2254 2004-10-07 Kim F. Storm <storm@cua.dk>
2255
2256 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2257 windows. Update vertical line after drawing window fringes, but
2258 only if actually drawing any bitmaps--or there is no fringe.
2259
2260 * xterm.c (x_update_window_end): Likewise.
2261 * macterm.c (x_update_window_end): Likewise.
2262 * w32term.c (x_update_window_end): Likewise.
2263
2264 * fringe.c (draw_window_fringes): Return value now indicates if
2265 any fringe bitmaps were redrawn (or there are no fringes).
2266
2267 * dispextern.h (draw_window_fringes): Update prototype.
2268
2269 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2270
2271 * macfns.c (mac_get_window_bounds): Add extern.
2272 (x_real_positions): Use mac_get_window_bounds.
2273
2274 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2275 xmenu.c (YAILOM).
2276
2277 * macterm.c [!MAC_OSX]: Include Windows.h.
2278 (front_emacs_window): Rename from mac_front_window. All uses
2279 changed. Return the frontmost non-tooltip emacs window.
2280 (mac_get_window_bounds): New function.
2281 (x_calc_absolute_position): Use the difference of width and height
2282 between the inner and outer window.
2283 (x_set_offset): Specify window position by the coordinae of the
2284 outer window. Adjust the position if the title bar is completely
2285 outside the screen.
2286 (app_is_suspended, app_sleep_time): Remove unused variables.
2287 (do_app_resume, do_app_suspend): Remove their contents because
2288 window-activate/deactivate events will do the job.
2289 (do_zoom_window): Remove unused variables. Make compliant to the
2290 standard way of zooming. Set f->left_pos and f->top_pos.
2291 (XTread_socket): Don't use argument `expected'. Don't use
2292 FrontWindow to determine the clicked window. Exclude unprocessed
2293 mouseUp cases in the early stage. Add parentheses to fix operator
2294 precedence.
2295 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2296
2297 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
2298
2299 * config.in: Regenerate.
2300
2301 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2302 HAVE_EXECSHIELD.
2303
2304 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2305
2306 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2307 a row if Alt or Meta has been found for that row. Also stop scanning
2308 for Keysyms for that row.
2309
2310 2004-10-04 Kim F. Storm <storm@cua.dk>
2311
2312 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2313 to list. Include overlay arrow bitmap in return value.
2314
2315 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2316 bars with fractional column width. If scroll bar separates two
2317 windows, move it towards the window it belongs to. Only update
2318 the padding area below the scroll bar widget when necessary,
2319 i.e. when scroll bar widget is created, moved, or resized.
2320
2321 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2322 while tracking/dragging mouse.
2323 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2324
2325 * window.c (coordinates_in_window): Relax check for cursor
2326 on vertial border between mode lines.
2327 (Fset_window_fringes): Do not allow negative widths.
2328 (Fset_window_scroll_bars): Likewise.
2329
2330 * .gdbinit (pp): Shorthand for p ARG + pr.
2331 (ff): New command: flush frame updates (X only).
2332
2333 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
2334
2335 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2336
2337 2004-09-30 Kenichi Handa <handa@m17n.org>
2338
2339 * process.c (send_process): Free composition data.
2340
2341 * fileio.c (Finsert_file_contents): Free composition data.
2342
2343 * coding.c (code_convert_region): Don't skip ASCIIs if there are
2344 compositions to encode.
2345 (encode_coding_string): Likewise. Free composition data.
2346
2347 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
2348
2349 * coding.c (code_convert_region): Free composition data.
2350
2351 2004-09-29 Kim F. Storm <storm@cua.dk>
2352
2353 * fringe.c: Remove limit on number of bitmaps.
2354 (fringe_bitmaps, fringe_faces): Change to pointers.
2355 (max_fringe_bitmaps): New var.
2356 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2357 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2358
2359 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2360 (struct glyph_row): Reorder fringe_bitmap related fields.
2361 (struct it): Likewise.
2362
2363 * w32term.c (fringe_bmp): Change to pointer.
2364 (max_fringe_bmp): New var.
2365 (w32_define_fringe_bitmap): Expand fringe_bmp.
2366 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2367 (w32_destroy_fringe_bitmap): Likewise.
2368
2369 2004-09-29 Kim F. Storm <storm@cua.dk>
2370
2371 * fringe.c: Simplify last change.
2372 (lookup_fringe_bitmap): New function.
2373 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2374 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2375 Keep standard bitmaps in Vfringe_bitmaps.
2376 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2377 (Fset_fringe_bitmap_face): Likewise.
2378
2379 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2380 (valid_fringe_bitmap_p): Remove prototype.
2381
2382 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2383
2384 2004-09-29 Kim F. Storm <storm@cua.dk>
2385
2386 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2387 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2388
2389 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2390
2391 * fringe.c (Vfringe_bitmaps): New variable.
2392 (syms_of_fringe): DEFVAR_LISP it.
2393 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2394 Change arg to Lisp_Object and fail if not an integer.
2395 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2396 (destroy_fringe_bitmap): New functions.
2397 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2398 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
2399 clear its fringe property.
2400 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2401 Fdestroy_fringe_bitmap.
2402 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2403 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2404 and set fringe property. Signal error if no free slots.
2405 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2406 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2407
2408 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2409 symbols with a fringe property.
2410
2411 2004-09-27 Kim F. Storm <storm@cua.dk>
2412
2413 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2414 Doc fix. Format may now be a symbol or alist, not a cons.
2415
2416 * fringe.c (update_window_fringes): Handle new formats of
2417 indicate-buffer-boundaries (symbol or alist). No longer
2418 allow a simple cons.
2419 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2420
2421 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2422
2423 * config.in: Rebuild.
2424
2425 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2426
2427 * config.in: Rebuild.
2428
2429 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
2430
2431 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2432
2433 * xterm.c (x_term_init): Work around a bug in some X servers.
2434
2435 2004-09-18 Richard M. Stallman <rms@gnu.org>
2436
2437 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2438
2439 * xdisp.c (try_window_reusing_current_matrix):
2440 Handle the case where we reach the old displayed text,
2441 out of sync with the old line boundary.
2442
2443 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
2444
2445 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2446 narrowed buffer.
2447
2448 2004-09-14 Kim F. Storm <storm@cua.dk>
2449
2450 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2451
2452 * xfaces.c (Qface_no_inherit): New var.
2453 (syms_of_xfaces): Intern and staticpro it.
2454 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2455 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2456 Don't increment face_change_count when face has non-nil
2457 face-no-inherit property.
2458
2459 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2462 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2463
2464 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
2465 before doing the mark_stack_check_gcpros since they're not on the stack.
2466
2467 2004-09-12 Kim F. Storm <storm@cua.dk>
2468
2469 * editfns.c (Fformat): Handle format strings with multiple text
2470 properties. Reverse text property list from the format string,
2471 so the positions are in increasing order.
2472
2473 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2474
2475 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2476 x_uncatch_errors so that possible protocol errors are delivered.
2477
2478 2004-09-10 Eli Zaretskii <eliz@gnu.org>
2479
2480 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2481 blockinput.h.
2482 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2483 charset.h, and coding.h
2484 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
2485 (term.o): Depend on window.h and keymap.h.
2486 (abbrev.o): Depend on syntax.h.
2487 (callint.o): Depend on keymap.h.
2488 (casefiddle.o): Depend on charset.h and keymap.h.
2489 (category.o): Depend on keymap.h.
2490 (coding.o): Depend on dispextern.h.
2491 (cmds.o): Depend on keyboard.h and keymap.h.
2492 (dispnew.o): Depend on indent.h and intervals.h.
2493 (doc.o): Depend on keymap.h.
2494 (editfns.o): Depend on frame.h.
2495 (emacs.o): Depend on dispextern.h.
2496 (fileio.o): Don't depend on ccl.h.
2497 (filelock.o): Depend on charset.h and coding.h.
2498 (frame.o): Depend on w32term.h and macterm.h.
2499 (insdel.o): Depend on region-cache.h.
2500 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2501 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2502 (search.o): Depend on $(INTERVALS_SRC).
2503 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2504 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2505 xterm.h, w32term.h, and macterm.h.
2506 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2507 w32term.h, and macterm.h.
2508 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2509 region-cache.h, xterm.h, w32term.h, and macterm.h.
2510 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2511 (data.o): Depend on frame.h.
2512 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2513 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2514 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2515 (intervals.o): Depend on keymap.h.
2516
2517 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2518 Add debugging print-out to termscript.
2519
2520 2004-09-09 Richard M. Stallman <rms@gnu.org>
2521
2522 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2523
2524 2004-09-08 Richard M. Stallman <rms@gnu.org>
2525
2526 * window.c (Fset_window_buffer): Doc fix.
2527
2528 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2529
2530 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2531
2532 * minibuf.c (history_delete_duplicates): New variable.
2533 (read_minibuf): Use it.
2534 (syms_of_minibuf): Create the corresponding lisp variable.
2535
2536 2004-09-08 Kim F. Storm <storm@cua.dk>
2537
2538 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2539 overlay just before point.
2540
2541 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2542
2543 * buffer.h (struct buffer): Add auto_save_file_format field.
2544 * buffer.c (reset_buffer, init_buffer_once):
2545 Handle auto_save_file_format field.
2546 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2547 `buffer-auto-save-file-format'.
2548 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2549 (build_annotations): Adapt to replacement of
2550 `auto-save-file-format' with the new buffer-local variable
2551 `buffer-auto-save-file-format'.
2552 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2553
2554 2004-09-07 Jason Rumney <jasonr@gnu.org>
2555
2556 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2557
2558 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2559 Handle Unicode menu titles.
2560
2561 2004-09-07 Kim F. Storm <storm@cua.dk>
2562
2563 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2564 property from text property or overlay strings at point.
2565
2566 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2567
2568 * xmenu.c (update_submenu_strings): YAILOM.
2569 (set_frame_menubar): Make sure last_i is initialized.
2570
2571 2004-09-03 Jason Rumney <jasonr@gnu.org>
2572
2573 * w32menu.c (_widget_value): Add lname and lkey.
2574 (digest_single_submenu): Set lname and lkey in widget_value
2575 instead of name and key.
2576 (update_submenu_strings): New function.
2577 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2578 call update_submenu_strings.
2579
2580 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2581 (digest_single_submenu, w32_menu_show): Encode menu strings as
2582 UTF-8 if Unicode API is available.
2583 (utf8to16): New function.
2584 (add_menu_item): Use it when calling Unicode API.
2585
2586 2004-09-03 Kim F. Storm <storm@cua.dk>
2587
2588 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2589 in overlay or text-property strings; set cursor on corresponding
2590 glyph rather than at end of the string.
2591
2592 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2593
2594 * macfns.c (x_real_positions): Save the current window port and
2595 set a new one before obtaining the global coordinate.
2596 Use FRAME_MAC_WINDOW.
2597 (x_set_name, x_set_title): Encode title to UTF8.
2598 Use SetWindowTitleWithCFString.
2599 (Fx_server_version): Get correct OS version.
2600
2601 * macmenu.c (add_menu_item): Remove unused variable `i'.
2602 Don't let separator items destroy refence constants of other menu items.
2603
2604 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2605 BLOCK_INPUT.
2606 (x_set_offset): Use FRAME_MAC_WINDOW.
2607
2608 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2609 nontext_cursor if it is on a scroll bar.
2610
2611 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2612 Carbon support.
2613 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2614 Use LIBS_CARBON.
2615
2616 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2617
2618 * xfns.c (x_set_name_internal): New function. Check if we shall call
2619 xfree before ENCODE_UTF_8.
2620 (x_set_name, x_set_title): Call x_set_name_internal.
2621
2622 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2623
2624 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2625 reload it.
2626
2627 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2628
2629 * macmenu.c (_widget_value): Add lname and lkey.
2630 (single_submenu): Set lname and lkey in widget_value
2631 instead of name and key.
2632 (update_submenu_strings): New function.
2633 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2634 call update_submenu_strings.
2635
2636 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2637 instead of name and key.
2638 (update_submenu_strings): New function.
2639 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2640 call update_submenu_strings.
2641
2642 * gtkutil.h (_widget_value): Added lname and lkey.
2643
2644 2004-08-30 Steven Tamm <steventamm@mac.com>
2645
2646 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2647 by using different names for inner loop variables.
2648
2649 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2650
2651 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2652 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2653
2654 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2655 tool bar items is 0.
2656
2657 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2658
2659 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2660 strings in menu items.
2661 (single_submenu): Use ENCODE_MENU_STRING
2662 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2663 button release isn't passed to event loop
2664 (add_menu_item): Use SetMenuItemWithCFString
2665
2666 2004-08-26 Steven Tamm <steventamm@mac.com>
2667
2668 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2669 tool-bar/menu click
2670 * macfns.c (Fx_file_dialog): Implemented using NavServices
2671
2672 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2673
2674 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2675
2676 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2677 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2678 (x_top_window_to_frame): Return 0 if wdesc is None.
2679
2680 2004-08-22 Richard M. Stallman <rms@gnu.org>
2681
2682 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2683 HAVE_TERMIOS]: If there's no char for this signal, drop through
2684 and use system calls.
2685
2686 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2687
2688 2004-08-20 Kim F. Storm <storm@cua.dk>
2689
2690 * process.c (wait_reading_process_output): Rename from
2691 wait_reading_process_input. All uses changed.
2692 (wait_reading_process_output_1): Rename from
2693 wait_reading_process_input_1. All uses changed.
2694
2695 * dispnew.c (Fsleep_for): Remove obsolete code.
2696
2697 2004-08-20 Kenichi Handa <handa@m17n.org>
2698
2699 * syntax.c (skip_chars): Fix for unibyte case.
2700
2701 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2702
2703 * syntax.c (char_quoted): Mixup byte/char pos.
2704 (back_comment): Fixup globals in all cases.
2705
2706 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2707
2708 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2709 passing it to gtk_window_set_title.
2710
2711 2004-08-19 Kim F. Storm <storm@cua.dk>
2712
2713 * process.c (wait_reading_process_input): Clean up.
2714 Add wait_for_cell, wait_proc, and just_wait_proc args
2715 to avoid overloading `read_kbd' and `do_display' args.
2716 Change read_kbd arg to int. All callers changed.
2717
2718 * process.c (process_send_signal): Use CDISABLE.
2719
2720 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2721
2722 2004-08-18 Kim F. Storm <storm@cua.dk>
2723
2724 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2725 forward to wait_reading_process_input via DO_DISPLAY arg.
2726 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2727 object, only process output from that process; also inhibit
2728 running timers if DO_DISPLAY==-2.
2729
2730 2004-08-17 Kim F. Storm <storm@cua.dk>
2731
2732 * process.c (process_send_signal): Fix last change--use
2733 _POSIX_VDISABLE instead of CVDISABLE when available.
2734
2735 2004-08-16 Richard M. Stallman <rms@gnu.org>
2736
2737 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2738 Set VQUIT and VINTR chars to the standard ones if they are unset.
2739 [AIX]: Don't do that here. And don't force VINTR to standard
2740 when SIGNALS_VIA_CHARACTERS.
2741
2742 * process.c (process_send_signal)
2743 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2744 Do nothing if the character is CVDISABLE.
2745
2746 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2747
2748 * intervals.c (move_if_not_intangible):
2749 Force POSITION to be between BEGV and ZV.
2750
2751 2004-08-14 John Paul Wallington <jpw@gnu.org>
2752
2753 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2754
2755 * fileio.c (Fread_file_name): Doc fix.
2756
2757 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2758
2759 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2760
2761 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2762
2763 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2764
2765 * keyboard.c: Declare Qdisabled_command_function instead of
2766 Qdisabled_command_hook.
2767 (Fcommand_execute): Use Qdisabled_command_function instead of
2768 Qdisabled_command_hook.
2769 (syms_of_keyboard): Ditto.
2770
2771 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2772
2773 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2774 (syms_of_keymap) <key-translation-map>: Doc fixes.
2775
2776 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2777
2778 * window.c (window_list_1): YAILOM.
2779
2780 * fileio.c (make_temp_name): Handle multibyte prefixes.
2781
2782 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2783
2784 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2785 Doc fix.
2786
2787 2004-08-03 Kenichi Handa <handa@m17n.org>
2788
2789 * coding.c (decode_coding_string): Adjust coding->consumed, and
2790 etc. with shrinked_bytes.
2791
2792 2004-08-03 Kim F. Storm <storm@cua.dk>
2793
2794 * indent.c (compute_motion): Fix check for full width window
2795 in non-window case. Do not count left truncation glyph on
2796 window systems.
2797
2798 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2799
2800 * data.c (Finteractive_form): Doc fix.
2801
2802 2004-08-02 Kim F. Storm <storm@cua.dk>
2803
2804 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2805 properly accounting for continuation glyph on non-window systems.
2806 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2807 actual window width/height if TOPOS is nil, properly accounting for
2808 continuation glyphs on non-window systems, and optional header lines.
2809 (vmotion): Let compute_motion calculate actual window width.
2810
2811 * window.c (window_scroll_line_based): Let compute_motion
2812 calculate actual window width.
2813
2814 2004-08-02 Kim F. Storm <storm@cua.dk>
2815
2816 * process.c (read_process_output): Use whole read buffer.
2817 Don't trigger adaptive read buffering on errors.
2818
2819 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2820
2821 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2822
2823 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2824
2825 * callint.c (Fcall_interactively): Doc fix.
2826
2827 2004-07-30 Richard M. Stallman <rms@gnu.org>
2828
2829 * abbrev.c (Fexpand_abbrev): Undo previous change.
2830
2831 2004-07-30 Kim F. Storm <storm@cua.dk>
2832
2833 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2834
2835 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2836
2837 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2838
2839 2004-07-27 Kim F. Storm <storm@cua.dk>
2840
2841 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2842 we have ensured that the glyph fits on the current line (or returned
2843 MOVE_LINE_CONTINUED otherwise).
2844
2845 2004-07-26 Kim F. Storm <storm@cua.dk>
2846
2847 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2848 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2849 if target position is at end of display line but char is not a newline.
2850
2851 2004-07-25 Richard M. Stallman <rms@gnu.org>
2852
2853 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2854 instead of ON_VERTICAL_BORDER, when on scroll bar.
2855 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2856
2857 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2858
2859 * window.c (Fcoordinates_in_window_p):
2860 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2861
2862 * alloc.c (check_cons_list): New function (contents commented out).
2863
2864 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2865
2866 * xfaces.c (Fcolor_supported_p): Doc fix.
2867
2868 * frame.c (Fselect_frame, Fset_frame_selected_window)
2869 (Fframe_visible_p, Fraise_frame): Doc fixes.
2870
2871 2004-07-24 Richard M. Stallman <rms@gnu.org>
2872
2873 * keyboard.h (not_single_kboard_state): Declare.
2874
2875 * fileio.c (Fwrite_region): Doc fix.
2876
2877 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2878
2879 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2880 only when a real abbrev is present.
2881
2882 * xfns.c (x_icon_verify): New function.
2883 (Fx_create_frame): Use it.
2884
2885 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2886
2887 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2888
2889 2004-07-21 Kim F. Storm <storm@cua.dk>
2890
2891 * window.h (struct glyph_matrix): New members nrows_scale_factor
2892 and ncols_scale_factor.
2893
2894 * window.c (make_window): Initialize nrows_scale_factor and
2895 ncols_scale_factor members.
2896
2897 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2898 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2899 (required_matrix_height): Apply nrows_scale_factor.
2900 (required_matrix_width): Apply ncols_scale_factor.
2901
2902 * xdisp.c (display_line): Increment nrows_scale_factor and set
2903 fonts_changed_p if past last allocated row.
2904 (append_glyph, append_composite_glyph, produce_image_glyph)
2905 (append_stretch_glyph): Increment ncols_scale_factor and set
2906 fonts_changed_p if current area is full.
2907
2908 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2909
2910 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2911
2912 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2913
2914 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2915 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2916 (Fset_window_start, Fscroll_up, Fscroll_down)
2917 (Fother_window_for_scrolling, Fscroll_other_window)
2918 (Fsave_window_excursion, Fset_window_vscroll)
2919 (syms_of_window) <window-size-fixed>: Doc fixes.
2920
2921 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2922
2923 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2924 ENCODE_SYSTEM for filenames.
2925
2926 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2927
2928 * mac.c (sys_select): Block input around call to
2929 ReceiveNextEvent to prevent breakage. Correctly handle
2930 blocking on event queue only by calling ReceiveNextEvent
2931 instead of select (since GUI events aren't on an fd).
2932 (sys_read): Remove function
2933 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2934
2935 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2936
2937 * mac.c (sys_select): Redo sys_select to use alarm-based
2938 polling instead of 1 sec timeouts (like solaris).
2939
2940 * macterm.c (x_make_frame_visible): Comment in polling on
2941 frame creation.
2942
2943 * keyboard.c: Undef SIGIO on Carbon
2944
2945 * atimer.c (alarm_signal_handler): Call alarm handlers after
2946 scheduling.
2947
2948 * eval.c (Feval): Remove quit_char test
2949
2950 * process.c (wait_reading_process_input): Remove clearing
2951 stdin for select call on process input.
2952
2953 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2954
2955 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2956 capitalization error in docstring.
2957
2958 2004-07-17 Juanma Barranquero <lektu@terra.es>
2959
2960 * keyboard.c (not_single_kboard_state): Do nothing unless
2961 MULTI_KBOARD is defined.
2962
2963 2004-07-17 Richard M. Stallman <rms@gnu.org>
2964
2965 * window.c (coordinates_in_window): Inside the window but outside
2966 its box to the L or R, return ON_VERTICAL_BORDER.
2967 (window_list_1): Rotate the list to start with WINDOW.
2968
2969 * print.c (print_preprocess): Test for print_depth at limit
2970 before entering in being_printed.
2971
2972 * keyboard.c (not_single_kboard_state): New function.
2973 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2974
2975 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2976 this kboard, and we delete its last frame, go to any_kboard_state.
2977
2978 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2979
2980 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2981
2982 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2983 system before passing them to OS functions for display.
2984
2985 2004-07-15 David Kastrup <dak@gnu.org>
2986
2987 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2988 Apparently fixes an abort condition.
2989
2990 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2991
2992 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2993 instead of a cons.
2994
2995 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2996
2997 * keyboard.c (echo_dash): Do nothing if there already is a dash
2998 at the end of the echo string.
2999
3000 2004-07-12 Kim F. Storm <storm@cua.dk>
3001
3002 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3003 if GC_MARK_STACK.
3004
3005 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3006
3007 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3008
3009 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3010 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3011 (Freplace_buffer_in_windows, Fset_window_buffer)
3012 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3013 (syms_of_window): Expand docstring of `display-buffer-function'.
3014
3015 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3016
3017 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3018 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3019 that time values of the type (HIGH . LOW) are considered obsolete.
3020
3021 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3022
3023 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3024 docstring.
3025
3026 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
3027
3028 2004-07-06 John Paul Wallington <jpw@gnu.org>
3029
3030 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3031
3032 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3033
3034 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3035
3036 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3037 instead of CGMainDisplayID (only in OSX 10.2 and later).
3038
3039 2004-07-04 John Paul Wallington <jpw@gnu.org>
3040
3041 * fileio.c (read_file_name_completion_ignore_case): New variable.
3042 (syms_of_fileio): Declare and initialise it.
3043 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3044
3045 2004-07-03 Eli Zaretskii <eliz@gnu.org>
3046
3047 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3048 for event.x and event.y.
3049
3050 2004-07-01 Kenichi Handa <handa@m17n.org>
3051
3052 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3053 after getting a new string by pre-write-conversion.
3054
3055 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3058 (x_calc_absolute_position): Remove unused var `child'.
3059
3060 * xfaces.c (x_supports_face_attributes_p)
3061 (Fdisplay_supports_face_attributes_p): YAILOM.
3062 (tty_supports_face_attributes_p): Remove unused var `i'.
3063
3064 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3065 back_unibyte_ok.
3066
3067 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3068
3069 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3070
3071 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3072
3073 2004-06-30 Andreas Schwab <schwab@suse.de>
3074
3075 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3076 (Finit_image_library): Pass LIBRARIES through to
3077 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3078 (lookup_image_type): Pass Qnil as second argument to
3079 Finit_image_library.
3080
3081 * lisp.h (Finit_image_library): Declare.
3082
3083 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3084
3085 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3086 (XTread_socket): Send mouse button events to the toolbox
3087 dispatcher even when the mouse is grabbed. Don't process window
3088 activate events for non-Emacs windows. Replace function calls to
3089 do_window_activate and do_window_deactivate with their contents.
3090 Reset mouse grabbing status when a window is deactivated.
3091
3092 2004-06-29 Steven Tamm <steventamm@mac.com>
3093
3094 * macterm.c (mac_get_emulated_btn)
3095 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3096 support to correctly mask out modifiers.
3097
3098 2004-06-29 David Kastrup <dak@gnu.org>
3099
3100 * search.c (Fset_match_data): Allow buffer before end of list
3101 which can happen if set-match-data is using a pre-consed list.
3102
3103 2004-06-28 Steven Tamm <steventamm@mac.com>
3104
3105 * macterm.c (XTread_socket): Correctly set the frame position
3106 after the window is moved.
3107
3108 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3109
3110 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3111 gpix and gmask just before return to avoid memory leak.
3112 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3113 so insensitive and activated icons look ok.
3114
3115 2004-06-27 Jason Rumney <jasonr@gnu.org>
3116
3117 * w32fns.c (file_dialog_callback): Disable edit control if set
3118 to directories only on CDN_INITDONE message.
3119 (Fx_file_dialog): Default to directories only when prompt starts
3120 with "Dired".
3121
3122 2004-06-25 Kim F. Storm <storm@cua.dk>
3123
3124 * alloc.c (allocate_misc): Update total_free_markers.
3125 (free_misc): New function.
3126 (safe_alloca_unwind, free_marker): Use it.
3127
3128 * lisp.h (free_misc): Add prototype.
3129
3130 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3131
3132 2004-06-24 Richard M. Stallman <rms@gnu.org>
3133
3134 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3135 (syms_of_emacs): Lisp variables deleted.
3136
3137 2004-06-23 David Kastrup <dak@gnu.org>
3138
3139 * search.c (Freplace_match): Adjust the match-data more thoroughly
3140 when replacing strings in the buffer.
3141 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3142 a buffer, add the buffer as last element to the match data.
3143 (Fset_match_data): If an additional element of the match-data is a
3144 buffer, restore it to last_thing_searched.
3145 (save_search_regs): Save last_thing_searched as part of the match data.
3146 (restore_match_data): Restore it again.
3147
3148 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3149
3150 * keymap.c (Ftext_char_description): Doc fix.
3151 * doc.c (Fsnarf_documentation): Doc fix.
3152
3153 2004-06-22 Kim F. Storm <storm@cua.dk>
3154
3155 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3156
3157 * lisp.h (struct Lisp_Save_Value): New member dogc.
3158 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3159 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3160 (SAFE_FREE_LISP): New macro.
3161
3162 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3163 (make_save_value): Init new dogc member.
3164 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3165
3166 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3167 SAFE_FREE_LISP macros.
3168
3169 2004-06-22 Kim F. Storm <storm@cua.dk>
3170
3171 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3172 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3173 in that memory area are unknown to GC. Add comments.
3174
3175 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3176
3177 2004-06-21 Kim F. Storm <storm@cua.dk>
3178
3179 * lisp.h (MAX_ALLOCA): Define here.
3180 (safe_alloca_unwind): Add prototype.
3181 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3182
3183 * alloc.c (safe_alloca_unwind): New function.
3184
3185 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3186
3187 * charset.c (Fstring): Use SAFE_ALLOCA.
3188
3189 * coding.c (MAX_ALLOCA): Remove define.
3190
3191 * data.c (MAX_ALLOCA): Remove define.
3192 (Faset): Use SAFE_ALLOCA.
3193
3194 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3195
3196 * fns.c (string_make_multibyte, string_to_multibyte)
3197 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3198 (MAX_ALLOCA): Remove define.
3199 (Fbase64_encode_region, Fbase64_encode_string)
3200 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3201 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3202 memory leak if encoding fails.
3203
3204 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3205
3206 2004-06-21 Eli Zaretskii <eliz@gnu.org>
3207
3208 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3209
3210 2004-06-20 Richard M. Stallman <rms@gnu.org>
3211
3212 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3213
3214 * search.c (match_limit): Cleaner err msg when no match data available.
3215
3216 * window.c (syms_of_window): Doc fix.
3217
3218 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3219 for Vtransient_mark_mode.
3220
3221 * buffer.c (syms_of_buffer): Doc fix.
3222
3223 2004-06-21 David Kastrup <dak@gnu.org>
3224
3225 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3226 and unbinding of `case-fold-search' according to
3227 `completion-ignore-case' around calls of string-match and
3228 predicates, respectively. Should give satisfactory performance
3229 in all relevant cases.
3230
3231 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3232
3233 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3234 clip_x/y_origin.
3235
3236 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3237
3238 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3239
3240 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3241 on Mac OSX.
3242
3243 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3244
3245 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3246
3247 2004-06-16 Kim F. Storm <storm@cua.dk>
3248
3249 * dispextern.h (Vimage_types): Remove extern.
3250
3251 2004-06-16 Miles Bader <miles@gnu.org>
3252
3253 * image.c (lookup_image_type): Initialize image type if necessary.
3254
3255 2004-06-15 Kim F. Storm <storm@cua.dk>
3256
3257 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3258 margin at top of window.
3259 (try_window_reusing_current_matrix): Calculate proper cursor position
3260 after scrolling up with non-zero scroll margin, as the old cursor
3261 position corresponds to value of PT before executing this command.
3262 (try_window_id): Consider scroll margin at bottom of window too;
3263 otherwise we fail to scroll when hl-line-mode is enabled.
3264
3265 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3266 proper format and class is a lower-case word.
3267
3268 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3269
3270 * gtkutil.c (xg_get_image_for_pixmap): New function.
3271 (xg_get_gdk_pixmap_and_mask): Remove.
3272 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3273 xg_get_gdk_pixmap_and_mask.
3274
3275 * xterm.h (struct x_display_info): Typo in comment fixed.
3276
3277 2004-06-14 Juanma Barranquero <lektu@terra.es>
3278
3279 * dispextern.h (Vimage_types): Make it conditional on
3280 HAVE_WINDOW_SYSTEM.
3281
3282 * image.c (Vimage_types): Move from xdisp.c.
3283 (Vimage_type_cache): New variable.
3284 (define_image_type): New argument indicating whether an image
3285 library was loaded; cache loaded status and return t on success,
3286 nil otherwise.
3287 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3288 (w32_delayed_load): New function to load an image library from a
3289 list of possible filenames.
3290 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3291 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
3292 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
3293 (Finit_image_library): New function, extracted from `init_image'.
3294 Try to initialize an image library on demand and cache whether we
3295 were successful or not.
3296 (syms_of_image): Initialize `Vimage_types' and
3297 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3298 Export `init-image-library'.
3299 (init_image): Remove initialization of all image types, except xbm
3300 and pbm.
3301
3302 * xdisp.c (Vimage_types): Delete (moved to image.c).
3303
3304 2004-06-14 Andreas Schwab <schwab@suse.de>
3305
3306 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3307 Avoid calling specbind when completion-regexp-list is empty.
3308
3309 2004-06-13 Richard M. Stallman <rms@gnu.org>
3310
3311 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3312 (re_wctype, re_iswctype, re_wctype_to_bit):
3313 Non-function definitions moved here from regex.c.
3314
3315 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3316 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3317 (re_wctype, re_iswctype, re_wctype_to_bit):
3318 Non-function definitions moved to regex.h.
3319
3320 * window.c (Fselect_window): Doc fix.
3321
3322 * syntax.c: Include regex.h.
3323 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3324 If requested, make a list of classes, then check the scanned
3325 chars for membership in them.
3326 (in_classes): New function.
3327 Doc fix.
3328
3329 * keyboard.c (cmd_error): Don't call any_kboard_state
3330 if inside a recursive edit level.
3331
3332 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3333
3334 * keyboard.c (command_loop): Call any_kboard_state before
3335 command_loop_2 when at top level.
3336
3337 2004-06-13 Andreas Schwab <schwab@suse.de>
3338
3339 * print.c (print_object): Always use %ld for printing EMACS_INT.
3340
3341 * keyboard.c (cancel_hourglass_unwind): Return a value.
3342 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3343 (Fexecute_extended_command): Likewise.
3344
3345 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3346 avoid clashes.
3347 (SYNTAX): Likewise.
3348 (SYNTAX_WITH_FLAGS): Likewise.
3349 (SYNTAX_MATCH): Likewise.
3350
3351 * syntax.c (char_quoted): Avoid warning about undefined operation.
3352 (find_defun_start): Likewise.
3353 (scan_lists): Likewise.
3354 (INC_FROM): Likewise.
3355 (scan_sexps_forward): Likewise.
3356
3357 * image.c: Include <ctype.h>.
3358
3359 * xfaces.c (face_attr_equal_p): Declare parameters.
3360
3361 2004-06-13 Kenichi Handa <handa@m17n.org>
3362
3363 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3364
3365 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3366
3367 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3368
3369 2004-06-12 Kenichi Handa <handa@m17n.org>
3370
3371 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3372 ccl_prog_stack_struct and update it.
3373 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3374 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3375 ccl->eof_ic on EOF.
3376 (ccl_debug_hook): New function.
3377 (struct ccl_prog_stack): New member eof_ic.
3378 (ccl_driver): Handle EOF in subrountine call correctly.
3379
3380 2004-06-11 Kenichi Handa <handa@m17n.org>
3381
3382 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3383
3384 2004-06-11 Kim F. Storm <storm@cua.dk>
3385
3386 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3387
3388 2004-06-11 Juanma Barranquero <lektu@terra.es>
3389
3390 * keyboard.c (Fposn_at_point): Doc fix.
3391
3392 2004-06-11 David Kastrup <dak@gnu.org>
3393
3394 * search.c (match_limit): Don't flag an error if match-data
3395 exceeding the allocated search_regs.num_regs gets requested, just
3396 return Qnil.
3397
3398 2004-06-08 Miles Bader <miles@gnu.org>
3399
3400 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3401
3402 2004-06-07 Juanma Barranquero <lektu@terra.es>
3403
3404 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3405 (Fcurrent_time_string, Fcurrent_time_zone)
3406 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3407
3408 2004-06-07 Miles Bader <miles@gnu.org>
3409
3410 * xfaces.c (struct named_merge_point): New type.
3411 (push_named_merge_point): New function.
3412 (merge_named_face): New function.
3413 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3414 Use `merge_named_face'.
3415 (merge_face_inheritance): Function removed.
3416 (merge_face_ref): Rename from `merge_face_vector_with_property'.
3417 Add new `err_msgs' and `named_merge_points' args. Return error
3418 status. Only print error messages if ERR_MSGS is true. Don't try to
3419 do :inherit attribute validation.
3420 (merge_face_heights): Handle `unspecified' in both directions.
3421 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3422 Call `merge_face_ref' instead of `merge_face_inheritance'.
3423 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3424 (compute_char_face, face_at_buffer_position)
3425 (face_at_string_position): Call `merge_face_ref' instead of
3426 `merge_face_vector_with_property'.
3427
3428 2004-06-07 Kenichi Handa <handa@m17n.org>
3429
3430 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3431 the necessary places.
3432
3433 2004-06-07 Kim F. Storm <storm@cua.dk>
3434
3435 * process.c (Fdelete_process): Undo 2004-05-28 change.
3436 Instead, call status_notify also for network process.
3437 (status_message): Use process instead of status as arg.
3438 Give messages "deleted" or "connection broken by remote peer" for
3439 an exited network process.
3440 (status_notify): Change call to status_message.
3441 (read_process_output): Increase readmax to 4096. Do not increase
3442 buffer size for datagram channels (default is now large enough).
3443
3444 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3445
3446 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3447 problem due to newly defined variable.
3448
3449 2004-06-06 Miles Bader <miles@gnu.org>
3450
3451 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3452 immediately if non-interactive or not initialized.
3453
3454 2004-06-05 Richard M. Stallman <rms@gnu.org>
3455
3456 * minibuf.c (Fcompleting_read): Doc fix.
3457
3458 2004-06-05 Andreas Schwab <schwab@suse.de>
3459
3460 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3461
3462 2004-06-05 Juanma Barranquero <lektu@terra.es>
3463
3464 * keymap.c (Fdescribe_vector): Fix docstring.
3465 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3466
3467 2004-06-05 Miles Bader <miles@gnu.org>
3468
3469 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3470 attributes have different values than the default face.
3471
3472 2004-06-04 Eli Zaretskii <eliz@gnu.org>
3473
3474 * xfaces.c (x_supports_face_attributes_p): Make this function
3475 conditional on HAVE_WINDOW_SYSTEM.
3476 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3477 Don't call x_supports_face_attributes_p if it was not compiled in.
3478
3479 2004-06-04 Miles Bader <miles@gnu.org>
3480
3481 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3482 from Ftty_supports_face_attributes_p.
3483 (x_supports_face_attributes_p): New function.
3484 (Ftty_supports_face_attributes_p): Function deleted.
3485 (Fdisplay_supports_face_attributes_p): New function.
3486 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
3487 (face_attr_equal_p): New function.
3488 (lface_equal_p): Use it.
3489
3490 2004-06-03 Juanma Barranquero <lektu@terra.es>
3491
3492 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3493 (Vw32_color_map): Fix typo in docstring.
3494 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3495 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3496 Make argument names match their use in docstring.
3497
3498 2004-06-02 Juanma Barranquero <lektu@terra.es>
3499
3500 Work around bugs/problems with MinGW builds of graphics libraries
3501 called from MSVC builds of Emacs.
3502
3503 * image.c (lookup_image): Make pointer to img static.
3504 (png_read_from_memory): Disable "global" optimization.
3505
3506 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3507
3508 * eval.c (Fcondition_case): Fix usage. Simplify.
3509
3510 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3511
3512 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3513
3514 * macfns.c: Don't include ccl.h.
3515 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
3516 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3517 TextUtils.h.
3518 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
3519 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3520 display height/width.
3521 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3522 (unwind_create_tip_frame, compute_tip_xy): New functions.
3523 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3524 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3525 and last_show_tip_args.
3526
3527 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3528 (Cursor, No_Cursor): New defines.
3529 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
3530 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3531
3532 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3533
3534 * macterm.c: Don't include Gestalt.h.
3535 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3536 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3537 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3538 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3539 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3540 (construct_mouse_click, XTmouse_position)
3541 (x_scroll_bar_report_motion, x_calc_absolute_position)
3542 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3543 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3544 (note_mouse_movement): Clear the mouse face and reset the pointer
3545 shape when the pointer goes outside the frame without grabbing.
3546 (mac_front_window): New function.
3547 (mac_window_to_frame): New macro.
3548 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3549 (do_window_activate, do_window_deactivate, do_app_resume)
3550 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3551 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3552 (mac_check_for_quit_char): Use mac_front_window and/or
3553 mac_window_to_frame.
3554 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3555 scroll-bar click event.
3556 (mac_define_frame_cursor): Change the pointer shape.
3557 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
3558 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
3559 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
3560 (do_window_update): Don't do anything if the updated window is the
3561 tooltip window.
3562 (do_mouse_moved): Handle mouse movement events here (previously in
3563 XTread_socket). Clear the mouse face if
3564 dpyinfo->mouse_face_hidden is set.
3565 (do_os_event, do_events): Remove (now in XTread_socket).
3566 (XTread_socket): Immediately return if interrupt_input_blocked.
3567 Loop until all the events in the queue are processed.
3568 Rearrange codes for mouse grabbing. Add tooltip support. Include the
3569 contents of do_os_event and do_events. Remove mouse movement
3570 handling (now in do_mouse_moved). Add the case where
3571 Vmouse_highlight has an integer value.
3572 (NewMacWindow): Remove.
3573 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3574 excess initializations.
3575 (make_mac_terminal_frame): Previous initializations in
3576 make_mac_frame are moved here.
3577 (mac_initialize_display_info):
3578 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
3579
3580 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3581 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3582
3583 2004-05-29 Richard M. Stallman <rms@gnu.org>
3584
3585 * lisp.h (truncate_undo_list): Update decl.
3586
3587 * alloc.c (undo_outer_limit): New variable.
3588 (syms_of_alloc): Defvar it.
3589 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3590
3591 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3592
3593 * alloc.c (lisp_align_malloc): Check for base == 0
3594 regardless of HAVE_POSIX_MEMALIGN.
3595 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3596
3597 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3598
3599 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3600 (marker_blocks_pending_free): Remove.
3601 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3602 Mark the undo lists after claning them up.
3603 Don't free block in marker_blocks_pending_free.
3604 (mark_buffer): Don't mark undo_list.
3605 (gc_sweep): Sweep hash-tables and strings first.
3606 Do free marker blocks that are empty.
3607
3608 2004-05-28 Jim Blandy <jimb@redhat.com>
3609
3610 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3611 after 'case wordend'. For symbeg and symend, print to stderr,
3612 like the other cases.
3613
3614 2004-05-28 Noah Friedman <friedman@splode.com>
3615
3616 * process.c (Fdelete_process): Do not call remove_process.
3617
3618 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * alloc.c (struct backtrace): Remove.
3621 (Fgarbage_collect): Use the new mark_backtrace.
3622
3623 * eval.c (mark_backtrace): New function.
3624
3625 * minibuf.c (run_exit_minibuf_hook): New function.
3626 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3627 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3628
3629 2004-05-27 Kim F. Storm <storm@cua.dk>
3630
3631 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3632 over display properties, e.g. images, that replace buffer text.
3633
3634 2004-05-25 Kim F. Storm <storm@cua.dk>
3635
3636 * alloc.c (marker_blocks_pending_free): New var.
3637 (gc_sweep): Store free marker blocks on that list.
3638 (Fgarbage_collect): Free them after undo-list cleanup.
3639
3640 * process.c (wait_reading_process_input): Check connect_wait_mask
3641 before actually accepting connection in case it has already been
3642 accepted due to recursion.
3643
3644 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3645
3646 * coding.c (Fset_safe_terminal_coding_system_internal):
3647 Set suppress_error in safe_terminal_coding, not terminal_coding.
3648
3649 2004-05-22 Richard M. Stallman <rms@gnu.org>
3650
3651 * alloc.c (Fmake_string): Doc fix.
3652
3653 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3654 and the alist pairs too.
3655
3656 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3657
3658 * emacs.c (main): Update copyright year.
3659
3660 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3661
3662 * insdel.c (del_range_2, replace_range): Don't write an anchor
3663 if the gap is empty.
3664
3665 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3666 scroll-down-aggressively is small but positive, put point
3667 near the screen edge.
3668
3669 2004-05-22 Juanma Barranquero <lektu@terra.es>
3670
3671 * keymap.c (Fdefine_key): Doc fix.
3672
3673 2004-05-22 Kim F. Storm <storm@cua.dk>
3674
3675 * alloc.c (struct backtrace): Add debug_on_exit member.
3676 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3677 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3678 the removed cons cells.
3679 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3680 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3681 any cons cells pointing to unallocated stings.
3682 Do not lisp_free any marker blocks, as there may still be pointers
3683 to them from buffer undo lists at this stage of GC.
3684
3685 * keyboard.c (struct backtrace): Add debug_on_exit member.
3686 (Fcommand_execute): Clear it.
3687
3688 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3689
3690 * intervals.c (lookup_char_property): Do not prematurely return nil.
3691
3692 2004-05-19 Jim Blandy <jimb@redhat.com>
3693
3694 Add support for new '\_<' and '\_>' regexp operators, matching the
3695 beginning and end of symbols.
3696
3697 * regex.c (enum syntaxcode): Add Ssymbol.
3698 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3699 (re_opcode_t): New opcodes `symbeg' and `symend'.
3700 (print_partial_compiled_pattern): Print the new opcodes properly.
3701 (regex_compile): Parse the new operators.
3702 (analyse_first): Skip sym(beg|end) (they match only the empty string).
3703 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3704 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3705 (re_match_2_internal): Match symbeg and symend.
3706
3707 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3708
3709 2004-05-19 Kim F. Storm <storm@cua.dk>
3710
3711 * .gdbinit (xsymbol): Fix last change.
3712
3713 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3714
3715 * .gdbinit (xprintstr): New fun.
3716 (xstring, xprintsym): Use it.
3717
3718 * w32proc.c (create_child): Use INTMASK.
3719
3720 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3721 unmarked elements of the undo list.
3722
3723 2004-05-18 David Ponce <david@dponce.com>
3724
3725 * print.c (print): Reset print_depth before to call print_object.
3726
3727 2004-05-18 Jason Rumney <jasonr@gnu.org>
3728
3729 * w32console.c: Prefix RIF functions with w32con_ to avoid
3730 namespace clash with functions in term.c and w32term.c.
3731
3732 * w32menu.c (add_menu_item, w32_menu_display_help)
3733 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3734
3735 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
3736
3737 2004-05-18 Eli Zaretskii <eliz@gnu.org>
3738
3739 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3740
3741 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3742 with make_number.
3743 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3744 with XINT.
3745
3746 2004-05-18 Kim F. Storm <storm@cua.dk>
3747
3748 * blockinput.h (INPUT_BLOCKED_P): New macros.
3749
3750 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3751 (Ftop_level): Unblock input if blocked.
3752
3753 * buffer.h (GET_OVERLAYS_AT): New macro.
3754 * msdos.c (IT_note_mouse_highlight): Use it.
3755 * textprop.c (get_char_property_and_overlay): Use it.
3756 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3757 * xfaces.c (face_at_buffer_position): Use it.
3758
3759 * print.c (print_object): Increase buf size.
3760
3761 2004-05-17 Jason Rumney <jasonr@gnu.org>
3762
3763 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3764 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3765 Lisp_Object using i member.
3766 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3767 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3768 consistently.
3769
3770 * w32proc.c (create_child): Use make_number instead of masking pid.
3771
3772 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3773 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3774 Use EQ to compare Lisp_Objects.
3775 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3776
3777 * w32term.c (w32_num_mouse_buttons): Rename from
3778 Vw32_num_mouse_buttons and make it an int.
3779
3780 * w32.c (init_environment): Use it.
3781
3782 * w32fns.c (w32_wnd_proc): Likewise.
3783
3784 * w32proc.c (w32_pipe_read_delay): Rename from
3785 Vw32_pipe_read_delay and make it an int.
3786
3787 * w32.c (_sys_read_ahead): Use it.
3788
3789 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3790
3791 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3792
3793 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3794 (key_event): Don't mix Lisp_Object and int.
3795
3796 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3797
3798 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3799 modifiers in language change event.
3800
3801 2004-05-17 Kim F. Storm <storm@cua.dk>
3802
3803 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3804 Such objects may be freed markers which still exist on an undo list.
3805
3806 2004-05-16 Juanma Barranquero <lektu@terra.es>
3807
3808 * data.c (Fset_default): Make argument names match their use in
3809 docstring.
3810
3811 2004-05-15 Andreas Schwab <schwab@suse.de>
3812
3813 * emacs.c (gdb_array_mark_flag): Define.
3814 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3815
3816 2004-05-15 Eli Zaretskii <eliz@gnu.org>
3817
3818 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3819 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3820 defined for the MS-DOS build.
3821
3822 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3823
3824 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3825
3826 2004-05-14 Kenichi Handa <handa@m17n.org>
3827
3828 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3829
3830 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3831
3832 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3833 section to frame.c section.
3834 (Fxw_display_color_p, Fx_file_dialog): Declare if
3835 HAVE_WINDOW_SYSTEM defined.
3836
3837 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
3838
3839 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
3840
3841 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3842 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3843 (XTread_socket): Fix int/Lisp_Object mixup.
3844 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
3845
3846 * macterm.h (struct frame, struct face, struct image)
3847 (display_x_get_resource, Fx_display_color_p)
3848 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3849 Add prototypes.
3850
3851 2004-05-14 Kim F. Storm <storm@cua.dk>
3852
3853 * process.c (wait_reading_process_input): Make reentrant.
3854 Make Available and Connecting non-static. Save and restore value
3855 of waiting_for_user_input_p.
3856
3857 2004-05-13 Kim F. Storm <storm@cua.dk>
3858
3859 * keyboard.c (mark_kboards): Don't mark x and y members
3860 that are overloaded in selection request events.
3861
3862 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3865
3866 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3867
3868 * window.c (Fdisplay_buffer, Fsplit_window)
3869 (split-height-threshold): Doc fix.
3870
3871 2004-05-13 Juanma Barranquero <lektu@terra.es>
3872
3873 * xfaces.c (Ftty_supports_face_attributes_p)
3874 (Finternal_copy_lisp_face): Fix typo in docstring.
3875 (Finternal_get_lisp_face_attribute): Fix docstring.
3876
3877 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3878
3879 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3880
3881 2004-05-11 Steven Tamm <steventamm@mac.com>
3882
3883 * macfns.c (Fx_create_frame): Default to using tool-bar by
3884 setting tool-bar-lines to 1 in default-frame-alist.
3885
3886 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3887
3888 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3889 (xpm_get_color_table_v, xpm_make_color_table_h)
3890 (xpm_put_color_table_h, xpm_get_color_table_h)
3891 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3892 (syms_of_image): Support XPM on Carbon Emacs. Does not
3893 depend on libXpm, but only supports XPM version 3 without extensions.
3894
3895 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3896
3897 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
3898 instead of FRAME_X_P
3899
3900 2004-05-11 Kim F. Storm <storm@cua.dk>
3901
3902 * process.c (read_process_output): Grow decoding_buf when needed;
3903 this could cause a crash in allocate_string and compact_small_strings.
3904
3905 2004-04-29 Jim Blandy <jimb@redhat.com>
3906
3907 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3908 against proper opcode.
3909
3910 2004-05-10 Juanma Barranquero <lektu@terra.es>
3911
3912 * process.c (Fstart_process): Fix docstring.
3913
3914 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3915 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3916 (Fsplit_char, Fchar_charset): Make argument names match their use
3917 in docstring.
3918
3919 2004-05-10 Richard M. Stallman <rms@gnu.org>
3920
3921 * print.c (print_preprocess): Use being_printed, loop_count and
3922 halftail to detect overdeep nesting and cyclic cdr chains.
3923
3924 2004-05-10 Andreas Schwab <schwab@suse.de>
3925
3926 * lisp.h (Fmake_symbolic_link): Declare.
3927
3928 * fileio.c (Frename_file): Remove extra argument in call to
3929 Fmake_symbolic_link.
3930
3931 2004-05-10 Kim F. Storm <storm@cua.dk>
3932
3933 * xdisp.c (calc_line_height_property): Use string position when
3934 object is a string.
3935
3936 2004-05-10 Kenichi Handa <handa@m17n.org>
3937
3938 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3939 inhibit-modification-hooks to t temporarily before calling
3940 Ferase_buffer.
3941
3942 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3943 inhibit-modification-hooks to t temporarily before calling
3944 Ferase_buffer.
3945
3946 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3947 inhibit-modification-hooks to t temporarily before calling
3948 Ferase_buffer.
3949
3950 * fns.c (count_combining): Delete it.
3951 (concat): Don't check combining bytes.
3952
3953 2004-05-09 Jason Rumney <jasonr@gnu.org>
3954
3955 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3956 (globals_of_w32fns): Set it.
3957
3958 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
3959
3960 * data.c (Fquo): Simplify.
3961
3962 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3963
3964 * data.c (Fquo): If any argument is float, do the computation in
3965 floating point.
3966
3967 2004-05-08 Juanma Barranquero <lektu@terra.es>
3968
3969 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3970 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3971 Fix spelling of Emacs on docstring.
3972 (Fset_process_coding_system, Fprocess_coding_system)
3973 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3974 Make argument names match their use in docstring.
3975 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3976 Fix docstring.
3977
3978 * editfns.c (Finsert_buffer_substring): Make argument names match their
3979 use in docstring.
3980
3981 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3982
3983 2004-05-07 Steven Tamm <steventamm@mac.com>
3984
3985 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3986 around call to ReceiveEvent to avoid certain crashes.
3987
3988 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3989
3990 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3991 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3992 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3993 Save/restore the current graphics port and device handle when
3994 drawing into an offscreen graphics world.
3995
3996 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3997 (gif_load): Likewise.
3998
3999 2004-05-07 Juanma Barranquero <lektu@terra.es>
4000
4001 * window.c (Fset_window_buffer): Fix docstring.
4002
4003 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4004
4005 * emacs.c (main) [VMS]: Fix var ref.
4006
4007 2004-05-06 Romain Francoise <romain@orebokech.com>
4008
4009 * data.c (Fsetq_default): Fix docstring.
4010
4011 2004-05-06 Jason Rumney <jasonr@gnu.org>
4012
4013 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4014 to avoid name clash.
4015
4016 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4017
4018 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4019 (Frename_file): Handle renaming of symlinks across file systems.
4020 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
4021
4022 2004-05-04 Kim F. Storm <storm@cua.dk>
4023
4024 * xdisp.c (Qtotal): New var.
4025 (syms_of_xdisp): Intern and staticpro it.
4026 (calc_line_height_property): New arg total. Set it if
4027 line-spacing property has format (total . VALUE).
4028 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4029 Handle total line-spacing property.
4030
4031 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4032
4033 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4034 "under" scroll bar when size/position changes.
4035
4036 2004-05-03 Jason Rumney <jasonr@gnu.org>
4037
4038 * makefile.nt: Remove.
4039
4040 2004-05-02 Eli Zaretskii <eliz@gnu.org>
4041
4042 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4043 Avoid compiler warnings.
4044
4045 * Makefile.in (region-cache.o): Depend on config.h.
4046
4047 2004-05-02 Romain Francoise <romain@orebokech.com>
4048
4049 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4050 with continuation lines, too.
4051
4052 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4053
4054 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4055
4056 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4057
4058 * xdisp.c (calc_line_height_property): YAILOM (yet another
4059 int/Lisp_Object mixup).
4060
4061 2004-05-01 Eli Zaretskii <eliz@gnu.org>
4062
4063 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4064 undo bad effect of pack(4) in some versions of system headers.
4065
4066 2004-05-01 Jason Rumney <jasonr@gnu.org>
4067
4068 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4069
4070 2004-04-30 Kim F. Storm <storm@cua.dk>
4071
4072 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4073 (syms_of_buffer) <cursor-type>: Doc fix.
4074
4075 * dispextern.h (struct it): Remove member use_default_face.
4076 Add members override_ascent, override_descent, override_boff.
4077
4078 * xdisp.c (init_iterator): Handle line-spacing float value.
4079 Initialize override_ascent member.
4080 (append_space_for_newline): Reset override_ascent.
4081 Remove use_default_face.
4082 (calc_line_height_property): New function to calculate value of
4083 line-height and line-spacing properties. Look at overlays, too.
4084 Set override_ascent, override_descent, override_boff members when
4085 using another face than the current face. Float values are now
4086 relative to the frame default font, by default; accept a cons
4087 of ratio and face name to specify value relative to a specific face.
4088 (x_produce_glyphs): Use calc_line_height_property.
4089 Use override_ascent etc. when set to handle different face heights.
4090 A negative line-spacing property value is interpreted as a total
4091 line height, rather than inter-line spacing.
4092 (note_mouse_highlight): Allocate room for 40 overlays initially.
4093
4094 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4095
4096 * data.c (Fsubr_name): New fun.
4097 (syms_of_data): Defsubr it.
4098
4099 2004-04-29 Kim F. Storm <storm@cua.dk>
4100
4101 * xdisp.c (null_glyph_slice): New var.
4102 (append_glyph, append_composite_glyph, append_stretch_glyph):
4103 Use it to initialize glyph slice.
4104
4105 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4106
4107 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4108 (on_hot_spot_p): Make sure we always return a value.
4109 (Flookup_image_map): Remove unused var ix and iy.
4110 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4111
4112 2004-04-27 Eli Zaretskii <eliz@gnu.org>
4113
4114 * msdos.c (init_environment): If one of the TMP... environment
4115 variables is set to a drive letter without a trailing slash,
4116 append a slash.
4117
4118 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4119
4120 * editfns.c (lisp_time_argument): Provide externally.
4121
4122 * fileio.c (Fset_file_times): New function.
4123 (syms_of_fileio): Intern and staticpro it.
4124
4125 2004-04-27 Kim F. Storm <storm@cua.dk>
4126
4127 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4128 header line strings.
4129
4130 * dispextern.h (struct it): New member use_default_face.
4131
4132 * xdisp.c (Qline_height): New variable.
4133 (syms_of_xdisp): Intern and staticpro it.
4134 (append_space_for_newline): Partially undo 2004-04-25 change;
4135 add default_face_p arg, and restore callers.
4136 Clear it->use_default_face after use.
4137 (x_produce_glyphs): Set default font for ascii char if
4138 it->use_default_font is set. Change line-spacing property to set
4139 just extra line spacing. Handle new line-height property.
4140
4141 2004-04-26 Andreas Schwab <schwab@suse.de>
4142
4143 * print.c (print_object): Print non-ascii characters in bool
4144 vector representation as octal escapes.
4145
4146 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4147 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4148 bool vectors.
4149 * lread.c (read1): Likewise.
4150 * alloc.c (Fmake_bool_vector): Likewise.
4151 * data.c (Faref, Faset): Likewise.
4152 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4153 (mapcar1): Likewise.
4154
4155 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4156
4157 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4158
4159 2004-04-26 Miles Bader <miles@gnu.org>
4160
4161 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4162
4163 2004-04-26 Juanma Barranquero <lektu@terra.es>
4164
4165 * buffer.c (Fpop_to_buffer): Fix docstring.
4166
4167 2004-04-26 Steven Tamm <steventamm@mac.com>
4168
4169 * lread.c (init_lread): Don't display missing lisp directory
4170 warnings with Carbon Emacs because self-contained bundled Emacs
4171 may be built without correct installation path.
4172
4173 2004-04-25 Kim F. Storm <storm@cua.dk>
4174
4175 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4176
4177 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4178
4179 * xdisp.c (append_space_for_newline): Rename from append_space.
4180 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4181 (x_produce_glyphs): Handle line-spacing property on newline char.
4182 If value is t, adjust ascent and descent to fit current row height.
4183 If value is an integer or float, set extra_line_spacing to integer
4184 value, or to float value x current line height.
4185
4186 2004-04-23 Kenichi Handa <handa@m17n.org>
4187
4188 * fontset.c (Finternal_char_font): If POSITION is nil, return
4189 font for displaying CH with the default face.
4190
4191 2004-04-23 Juanma Barranquero <lektu@terra.es>
4192
4193 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4194
4195 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4196
4197 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4198 Don't make assumptions about the relative place of i and val.
4199 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4200
4201 2004-04-21 Kim F. Storm <storm@cua.dk>
4202
4203 * dispextern.h (struct glyph_slice): New struct.
4204 (struct glyph): New member slice.
4205 (GLYPH_SLICE_EQUAL_P): New macro.
4206 (GLYPH_EQUAL_P): Use it.
4207 (struct glyph_string): New member slice.
4208 (struct it_slice): New struct.
4209 (struct it): New member slice, add member to stack too.
4210 New member constrain_row_ascent_descent_p.
4211 (image_ascent): Add prototype.
4212
4213 * dispnew.c (buffer_posn_from_coords): Return full image width
4214 and height even for image slices (posn is relative to full image).
4215 (marginal_area_string): Adjust x0,y0 for image slice.
4216
4217 * image.c (image_ascent): Add slice arg; calculate ascent for
4218 image slice (or full image).
4219
4220 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4221 (syms_of_keyboard): Defsubr them.
4222
4223 * lisp.h (pos_visible_p): Fix prototype.
4224
4225 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4226 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4227 (x_draw_image_foreground, x_draw_image_relief)
4228 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4229 Draw sliced images.
4230
4231 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4232 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4233 (x_draw_image_foreground, x_draw_image_relief)
4234 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4235 Draw sliced images.
4236
4237 * w32term.h (image_ascent): Remove prototype.
4238
4239 * window.c (Fpos_visible_in_window_p): Return pixel position if
4240 PARTIALLY arg is non-nil. Simplify. Doc fix.
4241 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4242 to return/set vscroll in pixels.
4243
4244 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4245
4246 * xdisp.c (Qslice): New variable.
4247 (syms_of_xdisp): Intern and staticpro it.
4248 (pos_visible_p): Return pixel position in new x and y args.
4249 (init_iterator): Reset it->slice info.
4250 (handle_display_prop): Parse (slice ...) property.
4251 (push_it, pop_it): Save/restore slice info.
4252 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4253 force repositioning of tall row if window is vscrolled, as that
4254 would reset vscroll.
4255 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4256 increasing row height if row is non-empty.
4257 (fill_image_glyph_string): Copy slice info.
4258 (take_vertical_position_into_account): Simplify.
4259 (produce_image_glyph): Handle iterator slice info, setup glyph
4260 slice info. Do not force minimum line height.
4261 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4262 do not increase height (ascent/descent) of non-empty row when
4263 adding normal character glyph; instead reduce glyph ascent/descent
4264 appropriately; if row is higher than current glyph, adjust glyph
4265 descent/ascent to reposition glyph within the existing row.
4266 Likewise, when char is newline, only set ascent/descent if row is
4267 currently empty.
4268 (note_mouse_highlight): Handle hotspots with sliced image.
4269
4270 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4271 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4272 (x_draw_image_foreground, x_draw_image_relief)
4273 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4274 Draw sliced images.
4275
4276 * xterm.h (image_ascent): Remove prototype.
4277
4278 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4279
4280 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4281
4282 2004-04-20 John Paul Wallington <jpw@gnu.org>
4283
4284 * fns.c (Fassoc, Feql): Fix indentation.
4285
4286 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4287
4288 2004-04-19 John Paul Wallington <jpw@gnu.org>
4289
4290 * fns.c (Feql): New function.
4291 (syms_of_fns): Defsubr it.
4292
4293 2004-04-18 Jason Rumney <jasonr@gnu.org>
4294
4295 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4296 after closing the clipboard.
4297
4298 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4299
4300 * buffer.c (Fbuffer_base_buffer): Doc fix.
4301
4302 2004-04-17 Kim F. Storm <storm@cua.dk>
4303
4304 * keymap.c (Fkey_description): Add optional PREFIX arg.
4305 Combine prefix with KEYS to make up the full key sequence to describe.
4306 Correlate meta_prefix_char and following (simple) key to describe
4307 as meta modifier. All callers changed.
4308 (describe_map): Rename arg `keys' to `prefix'. Remove local
4309 `elt_prefix' var. Use Fkey_description with prefix instead of
4310 elt_prefix combined with Fsingle_key_description.
4311 (describe_vector): Declare static. Replace arg `elt_prefix' with
4312 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4313 if !KEYMAP_P. Use Fkey_description with prefix instead of
4314 Fsingle_key_description.
4315
4316 * keymap.h (Fkey_description): Fix prototype.
4317 (describe_vector): Remove prototype.
4318
4319 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4320
4321 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4322 (png_load): Fix calculation of transparent background color on X
4323 and W32 platforms.
4324
4325 2004-04-16 Juanma Barranquero <lektu@terra.es>
4326
4327 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4328 not too large before computing how much to scroll.
4329
4330 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4331
4332 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4333
4334 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4335
4336 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4337 Add hyperlink to Elisp manual to the docstring.
4338
4339 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4340
4341 * callint.c (fix_command): Use XDCR.
4342
4343 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
4344
4345 * window.c (Fget_lru_window): Doc fix.
4346
4347 2004-04-14 Kim F. Storm <storm@cua.dk>
4348
4349 * editfns.c (Fformat): Fix allocation size of precision array.
4350
4351 * dispnew.c (update_window): Only set changed_p if
4352 scrolling_window actually did scroll.
4353 (scrolling_window): Only return 1 if we actually did scroll.
4354
4355 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4356 height to glyph height when cursor row is not fully visible.
4357 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4358 failure in case row is higher than window. Callers changed.
4359 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4360 Try to scroll partially visible, higher-than-window cursor row.
4361 (redisplay_window): Always try to scroll partially visible,
4362 higher-than-window cursor row - both initially and again with
4363 centering_position = 0.
4364 Clear desired matrix before retrying with centering_position = 0.
4365
4366 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4367
4368 * syntax.c (scan_lists): Simplify backward string scan.
4369 Fix off-by-one boundary check for string and comment fences.
4370
4371 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
4372
4373 * sheap.c, unexcw.c: New files.
4374
4375 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4376
4377 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4378 base buffer has been killed. Correct the error message if the
4379 base buffer does not exist.
4380
4381 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
4382
4383 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4384 Cygwin itself. Add support for Xaw3d scrollbars.
4385
4386 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4387
4388 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4389
4390 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4391 before Cygwin unexec.
4392
4393 * Makefile.in: Link changes for Cygwin unexec() support.
4394
4395 2004-04-12 Andreas Schwab <schwab@suse.de>
4396
4397 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4398
4399 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4400
4401 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4402 IGNORE argument equals NAME. Doc fix.
4403
4404 2004-04-11 Masatake YAMATO <jet@gyve.org>
4405
4406 * buffer.c (fix_start_end_in_overlays): Make overlays
4407 empty if they are backwards.
4408
4409 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4410
4411 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4412
4413 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4416
4417 2004-04-06 Kim F. Storm <storm@cua.dk>
4418
4419 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4420 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4421
4422 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4423 clearing highlight.
4424
4425 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4426
4427 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4428 clearing highlight.
4429
4430 * indent.c (vmotion): Do not reserve one column for continuation
4431 marks on window frames.
4432
4433 2004-04-04 Eli Zaretskii <eliz@gnu.org>
4434
4435 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4436 from GCC.
4437
4438 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4439
4440 * .gdbinit-union: Remove.
4441
4442 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4443 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4444 ($nonvalbits): Remove.
4445 ($valmask): Set it by calling xreload to avoid redundancy.
4446
4447 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4448 (gdb_emacs_intbits): Remove.
4449
4450 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4451
4452 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
4453
4454 2004-03-30 Kenichi Handa <handa@m17n.org>
4455
4456 * editfns.c (Fformat): Fix initialization of the array info.
4457
4458 2004-03-30 Kim F. Storm <storm@cua.dk>
4459
4460 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4461 (syms_of_xterm): DEFVAR_BOOL it.
4462 (ignore_next_mouse_click_timeout): New var.
4463 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4464 Use it to filter mouse clicks following focus event.
4465
4466 2004-03-29 David Ponce <david@dponce.com>
4467
4468 * callint.c (Fcall_interactively): Fix last change.
4469
4470 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4471
4472 * eval.c (Fcommandp): Simplify.
4473
4474 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4475 Extend to handle all kinds of functions.
4476
4477 * lisp.h (Finteractive_form): Declare.
4478
4479 * callint.c (Fcall_interactively): Use it.
4480
4481 2004-03-26 Kim F. Storm <storm@cua.dk>
4482
4483 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4484 to catch errors in calc_pixel_width_or_height during redisplay.
4485
4486 2004-03-26 Masatake YAMATO <jet@gyve.org>
4487
4488 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
4489
4490 * lisp.h (fix_start_end_in_overlays): Likewise.
4491
4492 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
4493
4494 * editfns.c (Ftranspose_regions): Likewise.
4495
4496 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4497
4498 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
4499
4500 2004-03-19 Richard M. Stallman <rms@gnu.org>
4501
4502 * s/sol2-6.h: Delete previous change.
4503
4504 2004-03-19 Kim F. Storm <storm@cua.dk>
4505
4506 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4507 to_charpos corresponds to newline in right fringe. Use local
4508 BUFFER_POS_REACHED_P macro.
4509
4510 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4511
4512 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4513 to compile on non-window system.
4514
4515 2004-03-19 Kim F. Storm <storm@cua.dk>
4516
4517 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4518
4519 * image.c (Qcenter): Move to xdisp.c.
4520
4521 * xdisp.c (Qcenter): Declare here.
4522 (syms_of_xdisp): Intern and staticpro it.
4523 (handle_single_display_prop): Allow space display property on all
4524 platforms.
4525 (display_mode_line): Set mode_line_p before displaying line.
4526 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4527 handling. Remove complex cases for fringes and scroll-bars.
4528 Add left, right, and center alignment positions. Add text (area)
4529 width/height. Return width or height for image specs.
4530 (produce_stretch_glyph): Improve handling of :align-to. Is now
4531 relative to left of text area by default, but other base offsets
4532 can be specified -- also for text lines.
4533
4534 * term.c (produce_glyphs): Handle IT_STRETCH.
4535 (produce_stretch_glyph): New function to handle space width and
4536 align-to display properties on non-window systems.
4537
4538 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4539
4540 * fileio.c (Fread_file_name): Set completion-ignore-case for
4541 case-insensitive systems.
4542
4543 2004-03-14 Masatake YAMATO <jet@gyve.org>
4544
4545 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4546 when keymap and cursor are setup.
4547
4548 2004-03-14 Steven Tamm <steventamm@mac.com>
4549
4550 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
4551
4552 2004-03-14 Kim F. Storm <storm@cua.dk>
4553
4554 * dispextern.h (x_find_image_file): Add prototype.
4555
4556 * image.c (x_find_image_file): Make extern.
4557
4558 * xfns.c (x_find_image_file): Remove prototype.
4559
4560 2004-03-13 Eli Zaretskii <eliz@gnu.org>
4561
4562 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
4563
4564 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
4565
4566 2004-03-12 Richard M. Stallman <rms@gnu.org>
4567
4568 * fns.c (internal_equal): New arg PROPS controls comparing
4569 text properties. All callers changed.
4570 (Fequal_including_properties): New function.
4571 (syms_of_fns): defsubr it.
4572
4573 2004-03-12 Kim F. Storm <storm@cua.dk>
4574
4575 Fix image support on MAC. From YAMAMOTO Mitsuharu.
4576
4577 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4578 (image_background, image_background_transparent): Fix prototypes.
4579
4580 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
4581
4582 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4583 (x_query_font, x_find_ccl_program, x_set_window_size)
4584 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4585 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4586 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4587
4588 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4589 (x_query_font, x_find_ccl_program, x_set_window_size)
4590 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4591 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4592 (mac_draw_line_to_pixmap): Add prototypes.
4593
4594 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4595
4596 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4597
4598 2004-03-11 Kim F. Storm <storm@cua.dk>
4599
4600 * dispextern.h: Move image related prototypes from xfns.c section
4601 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4602 HAVE_X_WINDOWS.
4603
4604 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
4605 Move gtkutil.o to new GTK_OBJ list.
4606 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4607 (GTK_OBJ) [USE_GTK]: New declaration.
4608 (obj): Add $(GTK_OBJ) to list.
4609
4610 2004-03-11 Steven Tamm <steventamm@mac.com>
4611
4612 * image.c [MAC_OSX]: Include sys/stat.h
4613
4614 * macfns.c (syms_of_macfns): Remove definitions of things now
4615 defined in image.c
4616
4617 2004-03-11 Kim F. Storm <storm@cua.dk>
4618
4619 The following changes consolidates the identical/similar image
4620 support code previously found in xfns.c, w32fns.c, and macfns.c
4621 into a new file image.c.
4622
4623 * makefile.w32-in (OBJ1): Add image.o.
4624 ($(BLD)/image.$(O)): Add dependencies.
4625
4626 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4627 (image.o): Add dependencies.
4628
4629 * image.c: New file with consolidated image support code.
4630 (COLOR_TABLE_SUPPORT): New define to control whether
4631 color table support is available (X only).
4632 (Bitmap_Record): Common name for x_bitmap_record,
4633 w32_bitmap_record, and mac_bitmap_record.
4634 (XImagePtr): Common name for pointer to XImage or equivalent.
4635 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4636 to XImagePtr on X+MAC, and to HDC on W32.
4637 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4638 (NO_PIXMAP): Common name for "None" or equivalent.
4639 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4640 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4641 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
4642 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4643 Define with suitable equivalents on W32 and MAC for code sharing.
4644 (XDrawLine): Define on MAC for code sharing.
4645 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4646 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4647 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4648 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4649 (x_reference_bitmap, x_create_bitmap_from_data)
4650 (x_create_bitmap_from_file, x_destroy_bitmap)
4651 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4652 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4653 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4654 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4655 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4656 (define_image_type, lookup_image_type, valid_image_p)
4657 (image_error, enum image_value_type, struct image_keyword)
4658 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4659 (make_image, free_image, prepare_image_for_display, image_ascent)
4660 (four_corners_best, image_background, image_background_transparent)
4661 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4662 (make_image_cache, free_image_cache, clear_image_cache)
4663 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4664 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4665 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4666 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4667 (init_image_func_pointer, image_load_quartz2d)
4668 (struct ct_color, init_color_table, free_color_table)
4669 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4670 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4671 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4672 (x_disable_image, x_build_heuristic_mask)
4673 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4674 (TIFF support, GIF support, Ghostscript support): Consolidate image
4675 code from xfns.c, w32fns.c, and macfns.c.
4676 (syms_of_image): Consolidate image related symbol setup here.
4677 (init_image): Consolidate image related initializations here.
4678
4679 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4680 and init_image. Remove call to init_xfns.
4681
4682 * macterm.h (struct mac_bitmap_record): Add file member.
4683 Not currently used, but simplifies code sharing.
4684
4685 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4686 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4687 (x_reference_bitmap, x_create_bitmap_from_data)
4688 (x_create_bitmap_from_file, x_destroy_bitmap)
4689 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4690 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4691 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4692 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4693 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4694 (define_image_type, lookup_image_type, valid_image_p)
4695 (image_error, enum image_value_type, struct image_keyword)
4696 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4697 (make_image, free_image, prepare_image_for_display, image_ascent)
4698 (four_corners_best, image_background, image_background_transparent)
4699 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4700 (make_image_cache, free_image_cache, clear_image_cache)
4701 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4702 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4703 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4704 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4705 (init_image_func_pointer, image_load_quartz2d)
4706 (struct ct_color, init_color_table, free_color_table)
4707 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4708 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4709 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4710 (x_disable_image, x_build_heuristic_mask)
4711 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4712 (TIFF support, GIF support, Ghostscript support): Merge with image
4713 code from xfns.c and macfns.c into image.c.
4714 (syms_of_xfns): Move image related symbols to image.c.
4715 (init_external_image_libraries, init_xfns): Remove; initialization
4716 moved to init_image in image.c.
4717
4718 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4719 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4720 (x_reference_bitmap, x_create_bitmap_from_data)
4721 (x_create_bitmap_from_file, x_destroy_bitmap)
4722 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4723 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4724 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4725 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4726 (define_image_type, lookup_image_type, valid_image_p)
4727 (image_error, enum image_value_type, struct image_keyword)
4728 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4729 (make_image, free_image, prepare_image_for_display, image_ascent)
4730 (four_corners_best, image_background, image_background_transparent)
4731 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4732 (make_image_cache, free_image_cache, clear_image_cache)
4733 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4734 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4735 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4736 (struct ct_color, init_color_table, free_color_table)
4737 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4738 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4739 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4740 (x_disable_image, x_build_heuristic_mask)
4741 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4742 (TIFF support, GIF support, Ghostscript support): Merge with image
4743 code from xfns.c and macfns.c into image.c.
4744 (syms_of_xfns): Move image related symbols to image.c.
4745 (init_external_image_libraries, init_xfns): Remove; initialization
4746 moved to init_image in image.c.
4747
4748 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4749 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4750 (x_reference_bitmap, x_create_bitmap_from_data)
4751 (x_create_bitmap_from_file, x_destroy_bitmap)
4752 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4753 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4754 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4755 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4756 (define_image_type, lookup_image_type, valid_image_p)
4757 (image_error, enum image_value_type, struct image_keyword)
4758 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4759 (make_image, free_image, prepare_image_for_display, image_ascent)
4760 (four_corners_best, image_background, image_background_transparent)
4761 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4762 (make_image_cache, free_image_cache, clear_image_cache)
4763 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4764 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4765 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4766 (struct ct_color, init_color_table, free_color_table)
4767 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4768 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4769 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4770 (x_disable_image, x_build_heuristic_mask)
4771 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4772 (TIFF support, GIF support, Ghostscript support): Merge with
4773 w32fns.c and macfns.c image code into image.c.
4774 (syms_of_xfns): Move image related symbols to image.c.
4775 (init_xfns): Remove; initialization moved to init_image in image.c.
4776
4777 * lisp.h (syms_of_image, init_image): Add protoypes.
4778 (init_xfns): Remove prototype.
4779
4780 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4781 (x_reference_bitmap, x_create_bitmap_from_data)
4782 (x_create_bitmap_from_file, x_destroy_bitmap)
4783 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4784 (gamma_correct) [MAC_OS]: Add prototype.
4785
4786 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4787 (x_reference_bitmap, x_create_bitmap_from_data)
4788 (x_create_bitmap_from_file, x_destroy_bitmap)
4789 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4790
4791 2004-03-09 Kenichi Handa <handa@etlken2>
4792
4793 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4794 correctly.
4795
4796 2004-03-04 Richard M. Stallman <rms@gnu.org>
4797
4798 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4799
4800 * window.c (Fdisplay_buffer): Doc fix.
4801
4802 * buffer.c (Fpop_to_buffer): Doc fix.
4803
4804 2004-03-03 Kim F. Storm <storm@cua.dk>
4805
4806 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4807
4808 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4809
4810 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4811
4812 2004-03-02 Richard M. Stallman <rms@gnu.org>
4813
4814 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4815
4816 2004-03-02 Kenichi Handa <handa@m17n.org>
4817
4818 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4819
4820 2004-03-02 Kim F. Storm <storm@cua.dk>
4821
4822 * window.h (struct window): New member overlay_arrow_bitmap.
4823
4824 * window.c (make_window): Initialize overlay_arrow_bitmap.
4825
4826 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4827 implement and integrate multiple overlay arrows with redisplay.
4828 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4829 (last_arrow_position, last_arrow_string): Replace by properties.
4830 (Qlast_arrow_position, Qlast_arrow_string)
4831 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4832 (syms_of_xdisp): Intern and staticpro them.
4833 (overlay_arrow_string_or_property, update_overlay_arrows)
4834 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4835 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4836 (redisplay_internal): Use them instead of directly accessing
4837 Voverlay_arrow_position etc. for multiple overlay arrows.
4838 (mark_window_display_accurate): Use update_overlay_arrows.
4839 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4840 (try_window_id): Use overlay_arrows_changed_p.
4841 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4842 (display_line): Use overlay_arrow_at_row to check multiple
4843 overlay arrows, and get relevant overlay-arrow-string and
4844 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
4845 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4846 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4847
4848 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4849 (update_window_fringes): Remove unused code.
4850
4851 2004-03-01 Jason Rumney <jasonr@gnu.org>
4852
4853 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4854
4855 2004-03-01 Juanma Barranquero <lektu@terra.es>
4856
4857 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4858
4859 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4860
4861 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4862
4863 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4864 how many colors can be displayed.
4865
4866 2004-03-01 Kenichi Handa <handa@m17n.org>
4867
4868 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4869 correctly.
4870
4871 2004-02-28 Kim F. Storm <storm@cua.dk>
4872
4873 * dispnew.c (update_window): Update header line also if there are
4874 no other changes in window (move code after set_cursor label).
4875
4876 * lisp.h (mark_window_display_accurate): Remove prototype.
4877
4878 * window.c (window_loop, Fforce_window_update): Force mode line
4879 updates by setting prevent_redisplay_optimizations_p and
4880 update_mode_lines.
4881
4882 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4883
4884 * xfns.c (x_window): Fix indentation.
4885
4886 * xterm.c (x_calc_absolute_position): Call x_real_positions
4887 to get WM window sizes and use those to calculate position.
4888 (x_set_offset): Remove code commented out.
4889
4890 2004-02-28 Miles Bader <miles@gnu.org>
4891
4892 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4893
4894 2004-02-28 Kim F. Storm <storm@cua.dk>
4895
4896 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4897 an event into kbd fifo, but with special handling of quit event;
4898 a quit event is saved for later, and further events are discarded
4899 until the saved quit event has been processed.
4900 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4901 (gen_help_event): Store help event in kbd fifo.
4902 (NREAD_INPUT_EVENTS): Remove.
4903 (read_avail_input): Adapt to new read_socket_hook interface.
4904 Remove allocation and initialization of local input_event buffer,
4905 as read_socket_hook stores events directly in fifo. Allocate and
4906 initialize local hold_quit event to handle postponed quit event
4907 (and store it if set by kbd_buffer_store_event_hold).
4908
4909 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4910 (gen_help_event): Fix prototype.
4911
4912 * macterm.c (XTread_socket): Remove bufp_r and
4913 numcharsp args. Add hold_quit arg.
4914 Rework to use just one, local, inev input_event. Store inev
4915 directly in fifo using kbd_buffer_store_event_hold.
4916
4917 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4918 (read_input_waiting): Adapt to new read_socket_hook interface.
4919 Remove allocation and initialization of local input_event buffer,
4920 as read_socket_hook stores events directly in fifo. Allocate and
4921 initialize local hold_quit event to handle postponed quit event
4922 (and store it if set by kbd_buffer_store_event_hold).
4923
4924 * term.c (read_socket_hook): Fix arg list.
4925
4926 * termhooks.h (read_socket_hook): Fix prototype.
4927
4928 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4929 numcharsp args. Add hold_quit arg.
4930 Rework to use just one, local, inev input_event. Store inev
4931 directly in fifo using kbd_buffer_store_event_hold.
4932
4933 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4934
4935 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
4936 Add hold_quit arg. Rework to use just one, local, inev
4937 input_event. Store inev directly in fifo using
4938 kbd_buffer_store_event_hold. Update count in one place.
4939 Postpone call to gen_help_event until inev is stored; use new
4940 local do_help for this.
4941 Remove local emacs_event in handing of ButtonPress event; just use
4942 inev instead (so no reason to copy it later).
4943
4944 * xsmfns.c (x_session_check_input): Remove numchars arg.
4945
4946 * xterm.c (x_focus_changed, x_detect_focus_change):
4947 Remove numchars arg. Always store event into bufp arg.
4948 Return nothing. Callers changed accordingly.
4949 (glyph_rect): Simplify.
4950 (STORE_KEYSYM_FOR_DEBUG): New macro.
4951 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4952 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4953 (current_hold_quit) [USE_GTK]: Add.
4954 (event_handler_gdk): Adapt to new handle_one_xevent.
4955 (handle_one_xevent): Remove bufp_r and numcharsp args.
4956 Add hold_quit arg. Rework to use just one, local, inev
4957 input_event. Store inev directly in fifo using
4958 kbd_buffer_store_event_hold. Update count in one place.
4959 Postpone call to gen_help_event until inev is stored; use new
4960 local do_help for this.
4961 Simplify handling of keysyms (consolidate common code). Fix bug
4962 where count was updated with nchars instead of nbytes.
4963 Remove local emacs_event in handing of ButtonPress event; just use
4964 inev instead (so no reason to copy it later).
4965 Remove `out' label. Rename label `ret' to `done'; add various
4966 `goto done' to clarify code flow in deeply nested blocks.
4967 (x_dispatch_event): Simplify as handle_one_xevent now calls
4968 kbd_buffer_store_event itself.
4969 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
4970 arg. Call handle_one_xevent with new arglist. Store event from
4971 x_session_check_input in fifo.
4972 [USE_GTK]: Setup current_hold_quit.
4973 Decrement handling_signal before unblocking input.
4974 (x_initialize) [USE_GTK]: Initialize current_count.
4975
4976 * xterm.h (x_session_check_input): Fix prototype.
4977
4978 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4979
4980 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
4981
4982 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4983 macgui.h).
4984
4985 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
4986
4987 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4988 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4989 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4990 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4991 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4992 (Bitmap): Remove typedef.
4993 (Pixmap): Change int to GWorldPtr.
4994
4995 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4996
4997 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4998 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4999 New #define to extract 16-bit depth color components from unsigned
5000 long representation.
5001 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5002 colors used for masks.
5003 (struct mac_display_info): Add color_p. Remove n_cbits.
5004
5005 * macfns.c: Include sys/types.h and sys/stat.h.
5006 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5007 Include QuickTime/QuickTime.h.
5008 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5009 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5010 functions defined in macterm.c.
5011 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5012 (ZPixmap): New #define for compatibility with xfns.c.
5013 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5014 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5015 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5016 New functions.
5017 (four_corners_best, x_create_x_image_and_pixmap)
5018 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5019 (x_edge_detection, init_color_table, colors_in_color_table)
5020 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5021 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5022 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5023 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5024 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5025 long mixup.
5026 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5027 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5028 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5029 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5030 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5031 (x_alloc_image_color, clear_image_cache, lookup_image)
5032 (x_find_image_file, xbm_read_bitmap_file_data)
5033 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5034 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5035 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5036 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5037 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
5038 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
5039 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5040 #if 0.
5041 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5042 #if 0. Free white_relief.gc and black_relief.gc.
5043 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5044 New functions (from xfns.c).
5045 (Fx_create_frame): Record unwind_create_frame.
5046 (Fxw_display_color_p): Use dpyinfo->color_p.
5047 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5048 dpyinfo->n_cbits.
5049 (Fx_display_color_cells): Use dpyinfo->n_planes;
5050 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5051 (Qheuristic, cross_disabled_images, emboss_matrix)
5052 (laplace_matrix): New variables (from xfns.c).
5053 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5054 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5055 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
5056 (image_background_transparent): New function (from xfns.c).
5057 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5058 (image_load_quicktime): Add declaration.
5059 [MAC_OSX] (image_load_quartz2d): Likewise.
5060 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5061 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
5062 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
5063 (xbm_load_image_from_file, x_laplace_read_row)
5064 (x_laplace_write_row, pbm_read_file): Remove functions.
5065 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5066 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5067 (colors_in_color_table): Sync with xfns.c (although not used).
5068 (lookup_rgb_color): Don't lookup color table. Just do gamma
5069 correction.
5070 (COLOR_INTENSITY): New #define (from xfns.c).
5071 (x_disable_image): New function (from xfns.c).
5072 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5073 (x_build_heuristic_mask): Sync with xfns.c.
5074 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5075 (HAVE_PBM): Remove #ifdef.
5076 (pbm_load): Sync with xfns.c. Set img->width and img->height
5077 before IMAGE_BACKGROUND.
5078 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
5079 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5080 Don't enclose with #if HAVE_PNG.
5081 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
5082 symbol _CGImageCreateWithPNGDataProvider is defined.
5083 Otherwise use image_load_quicktime.
5084 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
5085 [HAVE_PNG] (png_load): Sync with xfns.c.
5086 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5087 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5088 HAVE_JPEG.
5089 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5090 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5091 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5092 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5093 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5094 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5095 HAVE_TIFF.
5096 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5097 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5098 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
5099 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5100 New functions (from xfns.c).
5101 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
5102 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
5103 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5104 Don't enclose with #if HAVE_GIF.
5105 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5106 animated gif. Otherwise use image_load_quicktime.
5107 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5108 gif_DrawText to avoid conflict with QuickdrawText.h.
5109 [HAVE_GIF] (gif_load): Sync with xfns.c.
5110 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5111 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5112 Ghostscript is not supported yet).
5113 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5114 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5115 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5116 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5117 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5118 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5119 HAVE_PNG. Call EnterMovies to support animated gifs.
5120 Call init_image_func_pointer to bind a symbol
5121 _CGImageCreateWithPNGDataProvider if it is defined.
5122
5123 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5124 (x_draw_bar_cursor): Sync declaration with xterm.c.
5125 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5126 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5127 graphics).
5128 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5129 (mac_draw_line_to_pixmap, XCreatePixmap)
5130 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5131 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5132 New functions.
5133 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5134 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5135 Cast bits to char *.
5136 (reflect_byte): New function (from w32fns.c).
5137 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5138 due to byte alignment.
5139 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5140 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5141 (XSetForeground): Remove static (now used in macfns.c).
5142 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5143 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5144 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5145 (x_draw_glyph_string_box, x_draw_image_foreground)
5146 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5147 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5148 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5149 Sync with xterm.c.
5150 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5151 than the xterm.c version when a strictly horizontal or vertical
5152 line is drawn.
5153 (XTset_terminal_window): Add static.
5154 (x_make_frame_visible): Add UNBLOCK_INPUT.
5155 (x_free_frame_resources): New funcion (from xterm.c).
5156 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5157 occurs in tool bar area.
5158 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5159 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
5160 Initialize image cache.
5161 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5162 Enclose unused functions with #if 0.
5163 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5164 (decode_mac_font_name): New function to apply code conversions
5165 from a mac font name to an XLFD font name according to its script code.
5166 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
5167 font name to a mac font name according to REGISTRY and ENCODING fields.
5168 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5169 whose name starts with `.'.
5170 (init_font_name_table): Use decode_mac_font_name. Add both
5171 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5172 of a font is smJapanese.
5173 (mac_do_list_fonts): New function to list fonts that match a given
5174 pattern.
5175 (x_list_fonts, XLoadQueryFont): Use it.
5176 (XLoadQueryFont): Set rbearing field for each variable width
5177 character to avoid needless redraw.
5178 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5179
5180 2004-02-26 Kim F. Storm <storm@cua.dk>
5181
5182 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5183 as read_socket_hook handler on X aborts if buffer is too small
5184 and W32 handler doesn't always check buffer limit.
5185
5186 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5187 right-fringe similar to a display margin image. Specifically,
5188 the characters having the fringe prop are no longer shown, and
5189 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5190 do this. Set fringe bitmap face_id in it->face_id.
5191 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5192 still realize it->face (i.e. the fringe bitmap face).
5193
5194 2004-02-25 Miles Bader <miles@gnu.org>
5195
5196 * xdisp.c (check_it): Check string/string_pos consistency.
5197 (init_iterator): Initialize string-related fields properly.
5198
5199 2004-02-11 Miles Bader <miles@gnu.org>
5200
5201 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5202
5203 2004-02-10 Miles Bader <miles@gnu.org>
5204
5205 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5206 BLOCK_INPUT can be nested, so it doesn't make much sense.
5207
5208 2004-02-24 Michael Mauger <mmaug@yahoo.com>
5209
5210 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5211 (xbm_read_bitmap_data): Use unsigned char for image data.
5212
5213 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5214
5215 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5216
5217 2004-02-22 Jason Rumney <jasonr@gnu.org>
5218
5219 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5220 correctly over other bitmaps.
5221
5222 2004-02-21 Eli Zaretskii <eliz@gnu.org>
5223
5224 * emacs.c (USAGE1): Split into two halves.
5225 (USAGE2): Second half of the old USAGE1.
5226 (USAGE3): Rename from USAGE2.
5227 (USAGE4): Rename from USAGE3.
5228
5229 2004-02-21 Juri Linkov <juri@jurta.org>
5230
5231 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5232 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5233 --file. Fix -f, -l. Sort options. Untabify.
5234 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5235
5236 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5237
5238 * category.c (Fdefine_category, Fcategory_docstring)
5239 (Fget_unused_category, Fset_category_table)
5240 (Fcategory_set_mnemonics): Doc fixes.
5241
5242 2004-02-20 Kim F. Storm <storm@cua.dk>
5243
5244 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5245 The following changes are relative to the 2004-01-21 revision.
5246 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5247 in one call to read_socket_hook. Value is 8.
5248 (read_avail_input): Separate and rework handling of read_socket_hook
5249 and non-read_socket_hook cases. Use smaller input_event buffer
5250 in read_socket_hook case, and repeat if full buffer is read.
5251 Use new local variable 'discard' to skip input after C-g.
5252 In non-read_socket_hook case, just use a single input_event, and
5253 call kbd_buffer_store_event on the fly for each character.
5254
5255 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5256
5257 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5258 Remove unused `gu' alternative.
5259
5260 2004-02-19 Andreas Schwab <schwab@suse.de>
5261
5262 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5263 warning.
5264
5265 2004-02-18 Kim F. Storm <storm@cua.dk>
5266
5267 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5268 Fix last change.
5269
5270 2004-02-17 Kim F. Storm <storm@cua.dk>
5271
5272 * xdisp.c (fast_find_position): Fix return value of new version;
5273 it was inverted compared to the 21.1 version.
5274 (get_window_cursor_type): Don't look at glyph if NULL.
5275 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
5276
5277 * keyboard.c: Rework previous change; it didn't consider that the
5278 buf array was allocated on the stack.
5279 (prev_read): Remove variable.
5280 (read_avail_input_buf): New static event buffer array.
5281 (in_read_avail_input): New static variable to handle re-entrancy.
5282 (read_avail_input): Change buf to pinter to read_avail_input_buf.
5283 Use in_read_avail_input to handle re-entrance; when re-entered,
5284 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5285 Do not initialize read_avail_input_buf in full here; instead assume it
5286 is always cleared on entry. To ensure that, we clear (just) the
5287 entries that were used before we return.
5288 (init_keyboard): Initialize read_avail_input_buf here.
5289
5290 2004-02-16 Jesper Harder <harder@ifa.au.dk>
5291
5292 * cmds.c (Fend_of_line): Doc fix.
5293
5294 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5295
5296 * keyboard.c (prev_read): New static variable.
5297 (read_avail_input): Use it to zero out only those slots in buf[]
5298 that were used last time we were called.
5299
5300 2004-02-16 Eli Zaretskii <eliz@gnu.org>
5301
5302 * Makefile.in (obj): Move fringe.o from here...
5303 (XOBJ, MAC_OBJ): ...to here.
5304
5305 2004-02-16 Stephen Eglen <stephen@gnu.org>
5306
5307 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5308
5309 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5310
5311 * data.c (Fbyteorder):
5312 * fringe.c (Fdefine_fringe_bitmap):
5313 * xdisp.c (handle_single_display_prop):
5314 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5315
5316 2004-02-16 Jason Rumney <jasonr@gnu.org>
5317
5318 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5319
5320 2004-02-15 Steven Tamm <steventamm@mac.com>
5321
5322 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5323 controlling emulation of a three button mouse with option and
5324 command keys.
5325 (Qreverse, mac_get_enumlated_btn): Handle the emulation
5326 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
5327
5328 2004-02-15 Kim F. Storm <storm@cua.dk>
5329
5330 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5331
5332 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5333 Perform byte-swapping.
5334
5335 2004-02-14 Kim F. Storm <storm@cua.dk>
5336
5337 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5338 bits from char to short to facilitate wider bitmaps.
5339 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5340 member.
5341
5342 * fringe.c (struct fringe_bitmap): Change member bits from char to
5343 short to facilitate 16 bits wide bitmaps. Modify all standard
5344 bitmaps accordingly.
5345 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5346 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5347 (draw_fringe_bitmap): Ditto.
5348 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5349 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5350 handle up to 16 bits wide bitmaps.
5351 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
5352 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
5353
5354 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5355 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5356 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5357
5358 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5359 so it is no longer necessary to expand them here.
5360
5361 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5362
5363 2004-02-12 Kim F. Storm <storm@cua.dk>
5364
5365 * window.c (Fwindow_fringes): Doc fix.
5366
5367 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5368
5369 * xselect.c (x_get_foreign_selection): Add new optional parameter
5370 time_stamp.
5371 (Fx_get_selection_internal): Ditto, pass time_stamp to
5372 x_get_foreign_selection.
5373
5374 * data.c (Fbyteorder): New function.
5375
5376 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5377
5378 * atimer.c: Move include stdio.h to same place as in other files.
5379
5380 * region-cache.c: Ditto.
5381
5382 * sysdep.c: Ditto.
5383
5384 * xfaces.c: Ditto.
5385
5386 2004-02-09 Sam Steingold <sds@gnu.org>
5387
5388 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
5389
5390 2004-02-09 Kim F. Storm <storm@cua.dk>
5391
5392 * fringe.c: New file. Move original fringe related declarations
5393 and code from dispextern.h and xdisp.c here.
5394 Rework code to support user defined fringe bitmaps, redefining
5395 standard bitmaps, ability to overlay user defined bitmap with
5396 overlay arrow bitmap, and add faces to bitmaps.
5397 (Voverflow_newline_into_fringe): Declare here.
5398 (enum fringe_bitmap_align): New enum.
5399 (..._bits): All bitmaps are now defined without bitswapping; that
5400 is now done in init_fringe_once (if necessary).
5401 (standard_bitmaps): New array with specifications for the
5402 standard fringe bitmaps.
5403 (fringe_faces): New array.
5404 (valid_fringe_bitmap_id_p): New function.
5405 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5406 (draw_fringe_bitmap): New function which draws fringe bitmap,
5407 possibly overlaying bitmap with cursor in right fringe or the
5408 overlay arrow in the left fringe.
5409 (update_window_fringes): Do not handle overlay arrow here.
5410 Compare and copy fringe bitmap faces.
5411 (init_fringe_bitmap): New function.
5412 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5413 define and destroy user defined fringe bitmaps.
5414 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5415 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5416 (syms_of_fringe): New function. Defsubr new DEFUNs.
5417 DEFVAR_LISP Voverflow_newline_into_fringe.
5418 (init_fringe_once, init_fringe): New functions.
5419 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
5420
5421 * Makefile.in (obj): Add fringe.o.
5422 (fringe.o): New dependencies.
5423
5424 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5425 bits allocated to hold a fringe number. Increase number of bits
5426 from 4 to 8 to allow user defined fringe bitmaps.
5427 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5428 left_user_fringe_face_id, right_user_fringe_bitmap,
5429 right_user_fringe_face_id.
5430 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5431 Move to new file fringe.c.
5432 (MAX_FRINGE_BITMAPS): Define here.
5433 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5434 and overlay_p. Change member which to int.
5435 (struct redisplay_interface): New members define_fringe_bitmap
5436 and destroy_fringe_bitmap.
5437 (valid_fringe_bitmap_id_p): Add prototype.
5438 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5439
5440 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5441 arrows.
5442 (update_frame): Do flush_display if force_flush_display_p to
5443 ensure display (specifically fringes) are updated in a timely
5444 manner when resizing the frame by dragging the mouse.
5445 (update_window_line): Update row if overlay arrow changed.
5446 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5447 or overlay arrow changed.
5448
5449 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5450 syms_of_fringe, and init_fringe.
5451
5452 * frame.h (struct frame): New member force_flush_display_p.
5453
5454 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5455 Add prototypes.
5456
5457 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
5458 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
5459 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5460 Use cursor color for displaying cursor in fringe.
5461 (x_redisplay_interface): Add null handlers for
5462 define_fringe_bitmap and destroy_fringe_bitmap functions.
5463
5464 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5465 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5466 for displaying cursor in fringe.
5467 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5468 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5469 (w32_redisplay_interface): Add them to redisplay_interface.
5470 (w32_term_init): Call w32_init_fringe instead of explicitly
5471 defining fringe bitmaps in fringe_bmp array.
5472 (x_delete_display): Call w32_reset_fringes instead of explicitly
5473 destroying fringe bitmaps in fringe_bmp array.
5474
5475 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5476 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5477 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5478 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5479 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5480 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5481 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5482 Move fringe handling vars and code to new file fringe.c.
5483 (handle_display_prop): Handle left-fringe and right-fringe
5484 display properties; store user fringe bitmaps in iterator.
5485 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5486 (clear_garbaged_frames): Set force_flush_display_p if resized.
5487 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5488 (display_line): Handle cursor in fringe at eob.
5489 (display_line): Set row user fringe bitmaps from iterator.
5490
5491 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5492 Use cursor color for displaying cursor in fringe.
5493 (x_redisplay_interface): Add null handlers for
5494 define_fringe_bitmap and destroy_fringe_bitmap functions.
5495
5496 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5497
5498 * macfns.c (Fx_change_window_property): Make doc string and
5499 parameters same as for X version.
5500
5501 * w32fns.c (Fx_change_window_property): Ditto.
5502
5503 2004-02-07 Kim F. Storm <storm@cua.dk>
5504
5505 * xdisp.c (hscroll_window_tree): Position cursor near to right
5506 margin in hscrolled window when jumping to end of line (rather
5507 than centering cursor).
5508
5509 * process.c (wait_reading_process_input): Don't do adaptive read
5510 buffering if waiting for a specific process.
5511
5512 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5513
5514 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5515 (Fread_minibuffer, Feval_minibuffer)
5516 (Fread_string, Fread_no_blanks_input)
5517 (Fcompleting_read): Doc fixes.
5518 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5519 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5520 (read_minibuf): Fix initial comment.
5521 (Ftry_completion, Fall_completions, Ftest_completion): Bind
5522 case-fold-search to the value of completion-ignore-case when
5523 checking completion-regexp-list.
5524 (Fdisplay_completion_list): Make it handle arguments that are
5525 symbols. Doc fix.
5526
5527 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5528
5529 * xterm.h: Add declaration of free_frame_menubar.
5530
5531 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5532 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
5533 (Fx_change_window_property): Add declaration of parameters type and
5534 format. Remove unused variable cons.
5535
5536 * xselect.c: Include stdio,h.
5537
5538 2004-02-05 Kenichi Handa <handa@m17n.org>
5539
5540 * fns.c (Fset_char_table_range): Fix previous change.
5541
5542 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5543
5544 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5545
5546 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5547
5548 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5549
5550 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5551 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5552
5553 2004-02-04 Kenichi Handa <handa@m17n.org>
5554
5555 * fns.c (Fset_char_table_range): Handle charsets ascii,
5556 eight-bit-control, and eight-bit-graphic correctly.
5557
5558 2004-02-03 Jason Rumney <jasonr@gnu.org>
5559
5560 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5561
5562 * w32fns.c (x_to_w32_font): Likewise.
5563
5564 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5565
5566 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5567 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5568
5569 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5570 ClientMessages.
5571
5572 * xselect.c: Include termhooks.h and X11/Xproto.h
5573 (x_check_property_data, x_fill_property_data)
5574 (x_property_data_to_lisp, mouse_position_for_drop)
5575 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
5576 (Fx_send_client_event): Move here from xfns.c.
5577 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5578
5579 * xfns.c (x-send-client-message): Move to xselect.c
5580 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5581 OUTER_P.
5582 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5583 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5584 if vector_ret_p is true.
5585 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
5586
5587 2004-02-02 Eli Zaretskii <eliz@gnu.org>
5588
5589 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5590 basename of FILE relative to it, not FILE itself.
5591
5592 2004-02-02 Kenichi Handa <handa@m17n.org>
5593
5594 * coding.c (coding_restore_composition): Check invalid
5595 composition data more rigidly.
5596
5597 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5598
5599 * fileio.c (Fread_file_name_internal): Correctly handle the case
5600 where insert-default-directory is nil.
5601 (Fread_file_name): Always return an empty string if the user exits
5602 with an empty minibuffer. Adapt the docstring accordingly.
5603 (syms_of_fileio): Adapt the docstring of insert-default-directory
5604 to the change in Fread_file_name.
5605
5606 2004-01-29 Eli Zaretskii <eliz@gnu.org>
5607
5608 * alloca.c [!alloca]: Fix the prototype for xfree.
5609
5610 2004-01-29 Kenichi Handa <handa@m17n.org>
5611
5612 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5613 (string_byte_to_char): Likewise.
5614
5615 2004-01-28 Peter Runestig <peter@runestig.com>
5616
5617 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5618
5619 2004-01-27 Steven Tamm <steventamm@mac.com>
5620
5621 * unexmacosx.c (unexec_copy): Do not copy more than was
5622 requested to prevent overwriting during unexec.
5623
5624 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5625
5626 * process.c (sigchld_handler): Add comment about not calling malloc.
5627
5628 * process.h: Add extern to synch_process_termsig.
5629
5630 2004-01-27 Steven Tamm <steventamm@mac.com>
5631
5632 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5633 Move setting of scroll bars from make_mac_frame to
5634 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
5635
5636 2004-01-26 Richard M. Stallman <rms@gnu.org>
5637
5638 * search.c (Freplace_match): Handle nonexistent
5639 back-references properly.
5640
5641 2004-01-03 Richard M. Stallman <rms@gnu.org>
5642
5643 * window.c (decode_any_window): New function.
5644 (Fwindow_height, Fwindow_width, Fwindow_edges)
5645 (Fwindow_pixel_edges, Fwindow_inside_edges)
5646 (Fwindow_inside_pixel_edges): Use decode_any_window.
5647
5648 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5649
5650 * process.h: synch_process_termsig new variable.
5651
5652 * callproc.c: Define synch_process_termsig.
5653 (Fcall_process): Initiate synch_process_termsig to zero and
5654 check if non-zero and get signal name after subprocess has ended.
5655
5656 * process.c (sigchld_handler): Set synch_process_termsig
5657 if terminated by a signal. synch_process_death setting removed.
5658
5659 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5660
5661 2004-01-26 Andreas Schwab <schwab@suse.de>
5662
5663 * print.c (print_preprocess): Declare size as EMACS_INT to not
5664 lose bits.
5665 (print_object): Likewise.
5666 * alloc.c (Fpurecopy): Likewise.
5667
5668 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5669
5670 * window.c (Fwindow_minibuffer_p): Doc fix.
5671
5672 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5673
5674 * editfns.c (Fformat): Make both passes accept the same set of flags.
5675
5676 2004-01-23 Kenichi Handa <handa@m17n.org>
5677
5678 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5679 one, set buffer to OBJECT temporarily.
5680
5681 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5682
5683 * keyboard.c (kbd_buffer_gcpro): Remove.
5684 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5685 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5686 Don't initialize and/or maintain the variable any more. It was made
5687 redundant by my commit of 2003-06-15.
5688
5689 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5690
5691 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5692
5693 * lisp.h: Add undef DECL_ALIGN.
5694
5695 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5696
5697 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5698 Check interrupt_input_pending explicitly.
5699
5700 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5701
5702 * keyboard.c (handle_async_input): New fun,
5703 extracted from input_available_signal.
5704 (input_available_signal, reinvoke_input_signal): Use it.
5705
5706 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5707
5708 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5709
5710 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5711 manipulation macros for when tags are in the lower bits.
5712 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5713 (DECL_ALIGN): New macro.
5714 (DEFUN): Use it.
5715
5716 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5717
5718 * s/darwin.h (__attribute__): Remove outdated workaround.
5719
5720 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5721
5722 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5723 Don't check range of malloc address.
5724 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5725
5726 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5727
5728 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5729
5730 2004-01-19 Kenichi Handa <handa@m17n.org>
5731
5732 * fontset.c (fontset_font_pattern): Fix previous change.
5733
5734 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5735
5736 * xdisp.c (Voverflow_newline_into_fringe)
5737 (move_it_in_display_line_to, redisplay_internal)
5738 (update_window_fringes, redisplay_window, display_line, window):
5739 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5740 that it compiles without a window-system.
5741 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5742
5743 2004-01-16 Kim F. Storm <storm@cua.dk>
5744
5745 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5746
5747 * buffer.c (init_buffer_once): Set buffer_defaults and
5748 buffer_local_flags for indicate_buffer_boundaries.
5749 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5750 default- variable for it.
5751
5752 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5753 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
5754 New members exact_window_width_line_p and cursor_in_fringe_p for
5755 overflowing newlines into right fringe.
5756 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5757 and indicate_bottom_line_p for buffer boundaries and scrolling.
5758 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5759 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5760 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5761 and HOLLOW_SQUARE_BITMAP.
5762 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5763 Add prototypes.
5764
5765 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5766 instead of related indicator fields.
5767 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5768 (direct_output_for_insert): Handle exact width lines like
5769 contined lines. Call update_window_fringes.
5770 (update_window): Call update_window_fringes.
5771 (scrolling_window): Don't skip desired rows with changed bitmaps.
5772 Check if fringe bitmaps changes when assigning scrolled rows.
5773
5774 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5775 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5776 (move_it_in_display_line_to): Overflow newline into fringe for
5777 rows that are exactly as wide as the window.
5778 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5779 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5780 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5781 (fringe_bitmaps): Add new bitmaps.
5782 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5783 Select proper bitmap for cursor in fringe when appropriate.
5784 Handle alignment of bitmap to top or bottom of row.
5785 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5786 done by update_window_fringes.
5787 (update_window_fringes, draw_window_fringes): New functions.
5788 (redisplay_internal): Call update_window_fringes in case only
5789 cursor row is updated.
5790 (redisplay_window): Call update_window_fringes.
5791 Explicitly call draw_window_fringes if redisplay was done using
5792 the current matrix or the overlay arrow is in the window.
5793 (try_window_reusing_current_matrix): Mark scrolled rows for
5794 fringe update (to update buffer-boundaries / scrolling icons).
5795 (find_last_unchanged_at_beg_row): Handle exact width lines line
5796 continued lines.
5797 (display_line): Overflow newline into fringe for rows that are
5798 exactly as wide as the window. Don't append space for newline
5799 in this case.
5800 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5801 in fringe as if it had been overwritten.
5802 (erase_phys_cursor): Erase cursor bitmap in fringe.
5803 (syms_of_xdisp): Mark show-trailing-whitespace and
5804 void-text-area-pointer as user options.
5805 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
5806
5807 * xterm.c (x_update_window_end): Call draw_window_fringes.
5808 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5809 in row instead of actually drawing fringe bitmaps.
5810 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5811 (x_draw_window_cursor): Draw cursor in fringe.
5812
5813 * w32term.c (x_update_window_end): Call draw_window_fringes.
5814 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5815 in row instead of actually drawing fringe bitmaps.
5816 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5817 (w32_draw_window_cursor): Draw cursor in fringe.
5818
5819 * macterm.c (x_update_window_end): Call draw_window_fringes.
5820 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5821 in row instead of actually drawing fringe bitmaps.
5822 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5823 (mac_draw_window_cursor): Draw cursor in fringe.
5824
5825 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5826
5827 * xterm.c (handle_one_xevent): Don't handle characters that are part
5828 of an old style (XLookupString) compose sequence.
5829
5830 2004-01-15 Kenichi Handa <handa@m17n.org>
5831
5832 * search.c (Freplace_match): Use make_multibyte_string or
5833 make_unibyte_string according to the buffer multibyteness.
5834
5835 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5836
5837 * alloc.c (struct interval_block, struct string_block)
5838 (struct symbol_block, struct marker_block, live_string_p)
5839 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5840 Better preserve alignment for objects in blocks.
5841 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5842
5843 * lread.c (defvar_per_buffer): Remove dead declaration.
5844
5845 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5846 space size.
5847
5848 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5849
5850 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5851 if a key press should pop down. Only pop down if a key is pressed
5852 outside the menu/dialog.
5853 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5854 popup_get_selection.
5855 (create_and_show_dialog): Pass 1 for down_on_keypress to
5856 popup_get_selection.
5857
5858 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5859
5860 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5861 BLOCK/UNBLOCK_INPUT.
5862
5863 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5864
5865 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5866 specified.
5867
5868 2004-01-08 Kenichi Handa <handa@m17n.org>
5869
5870 * editfns.c (Fformat): Fix '&' to '&&'.
5871
5872 2004-01-08 Andreas Schwab <schwab@suse.de>
5873
5874 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5875 size if PSEUDOVECTOR_FLAG is set.
5876
5877 2004-01-07 Kenichi Handa <handa@m17n.org>
5878
5879 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5880
5881 * fontset.c (fontset_ref_via_base): Fix previous change.
5882
5883 2004-01-07 Kim F. Storm <storm@cua.dk>
5884
5885 * process.c (read_process_output): Only activate adaptive
5886 buffering if we read less than 256 bytes at a time.
5887
5888 2004-01-06 Kim F. Storm <storm@cua.dk>
5889
5890 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5891 object and image object. Return glyph width and height.
5892 (mode_line_string, marginal_area_string): Ditto.
5893
5894 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5895 (marginal_area_string): Fix prototypes.
5896
5897 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
5898 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
5899 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5900
5901 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5902 buffer_posn_from_coords, and marginal_area_string functions to
5903 include both string object and image object in the lispy position.
5904 Also add actual glyph width and height to position.
5905 (read_key_sequence): Use real buffer position from mouse
5906 event to find keymap property even when click is in marginal area.
5907
5908 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5909 mode_line_string and marginal_area_string functions to handle
5910 both string object and image object properties.
5911
5912 2004-01-06 Andreas Schwab <schwab@suse.de>
5913
5914 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5915 character.
5916
5917 2004-01-02 Andreas Schwab <schwab@suse.de>
5918
5919 * macterm.c (emacs_options, x_initialized, same_x_server):
5920 Remove unused (and duplicated) definitions.
5921
5922 2004-01-02 Kim F. Storm <storm@cua.dk>
5923
5924 * process.h (struct Lisp_Process): New members for adaptive read
5925 buffering: adaptive_read_buffering, read_output_delay, and
5926 read_output_skip.
5927
5928 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5929 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5930 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5931 (process_output_delay_count, process_output_skip): New vars.
5932 (Vprocess_adaptive_read_buffering): New variable.
5933 (make_process): Initialize adaptive read buffering members.
5934 (Fstart_process): Set adaptive_read_buffering member.
5935 (deactivate_process): Cleanup adaptive read buffering.
5936 (wait_reading_process_input): Temporarily omit delayed
5937 subprocesses from the set of file descriptors to read from;
5938 adjust the select timeout if we skipped any subprocesses.
5939 (read_process_output): Increase adaptive read buffering delay if
5940 we read less than a full buffer; reduce delay when we read a
5941 full buffer.
5942 (send_process): Simplify using local Lisp_Process var.
5943 Reset adaptive read buffering delay after write.
5944 (init_process): Initialize process_output_delay_count and
5945 process_output_skip.
5946 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5947
5948 2004-01-01 Jason Rumney <jasonr@gnu.org>
5949
5950 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
5951
5952 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5953
5954 * print.c (Ferror_message_string): Add hyperlink in the docstring
5955 to the definition of `signal' in the Elisp manual.
5956 * eval.c (Fsignal): Ditto.
5957
5958 2003-12-29 James Clark <jjc@jclark.com>
5959
5960 * fns.c (internal_equal): Return t for two NaN arguments.
5961
5962 2003-12-29 Richard M. Stallman <rms@gnu.org>
5963
5964 * data.c (store_symval_forwarding): Handle setting
5965 default-fill-column, etc., by changing the value in
5966 buffers that use the default.
5967
5968 * minibuf.c (Fset_minibuffer_window): Doc fix.
5969
5970 * fileio.c (choose_write_coding_system): Ignore auto_saving
5971 if using the visited file for auto saves.
5972 (Fwrite_region): Don't update SAVE_MODIFF
5973 if auto-saving in visited file.
5974
5975 2003-12-29 Kenichi Handa <handa@m17n.org>
5976
5977 * dispextern.h (face_font_available_p): Extern it.
5978
5979 * fontset.c (Voverriding_fontspec_alist): New variable.
5980 (lookup_overriding_fontspec): New function.
5981 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
5982 (fontset_font_pattern): Likewise.
5983 (regulalize_fontname): New function.
5984 (Fset_fontset_font): Call regulalize_fontname.
5985 (Fset_overriding_fontspec_internal): New function.
5986 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5987 Defsubr Sset_overriding_fontspec_internal.
5988
5989 * xfaces.c (face_font_available_p): New function.
5990
5991 2003-12-28 Richard M. Stallman <rms@gnu.org>
5992
5993 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5994 or if its name is nil.
5995
5996 * buffer.c (Fkill_buffer): Don't delete auto-save file
5997 if it's the same as the visited file.
5998
5999 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6000
6001 * coding.c (Fcheck_coding_system): Doc fix.
6002
6003 2003-12-28 Kim F. Storm <storm@cua.dk>
6004
6005 * Makefile.in (eval.o): Depend on dispextern.h.
6006
6007 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6008 image glyph using image's ascent.
6009 (mode_line_string): Return image glyph as object clicked on.
6010 Adjust y0 for image glyph using image's ascent.
6011
6012 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6013 (struct glyph): New members, ascent and descent. Used to save
6014 this glyph's ascent and descent, instead of having.
6015 (struct glyph): Declare member face_id using FACE_ID_BITS.
6016 (find_hot_spot): Add prototype.
6017
6018 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6019 (QCmap): Declare extern.
6020 (make_lispy_position): When position is inside image hot-spot,
6021 use hot-spot element's id as posn element.
6022
6023 * lisp.h (IMAGEP): New macro to test for image object type.
6024 (Qimage): Declare extern.
6025
6026 * macfns.c (Qimage): Remove extern (now in lisp.h).
6027 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6028
6029 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6030
6031 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6032 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6033
6034 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6035
6036 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6037
6038 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6039 pointer types.
6040 (Qrelative_width, Qalign_to): Remove unused variables.
6041 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6042 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6043 image maps.
6044 (x_y_to_hpos_vpos): Return glyph relative coordinates through
6045 new dx and dy args.
6046 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6047 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6048 than row's ascent and height, to get sensible height on tall rows.
6049 (build_desired_tool_bar_string): Remove Qimage extern.
6050 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6051 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6052 image glyph is alone on the last line.
6053 (append_glyph, append_composite_glyph, produce_image_glyph)
6054 (append_stretch_glyph): Set glyph's ascent and descent.
6055 (on_hot_spot_p): New function to check if position is inside an
6056 rectangular, circular, or polygon-shaped image hot-spot,
6057 (find_hot_spot): New function to search for image hot-spot.
6058 (Flookup_image_map): New defun to search for image hot-spot.
6059 (define_frame_cursor1): New aux function to determine frame pointer.
6060 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6061 Handle `pointer' text property and :pointer image property to
6062 control frame pointer shape. Detect image hot-spots for pointer
6063 and help_echo properties. Use define_frame_cursor1.
6064 (note_mouse_highlight): Use Vvoid_text_area_pointer.
6065 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
6066 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6067
6068 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6069
6070 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6071 (Qimage): Remove extern (now in lisp.h).
6072 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6073
6074 * xmenu.c (show_help_event): Remove unused code.
6075
6076 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6077 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6078 row's ascent and descent, to get a sensible height on tall rows.
6079
6080 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6081
6082 * minibuf.c (Fcompleting_read): Undo previous change.
6083
6084 2003-12-25 Lars Hansen <larsh@math.ku.dk>
6085
6086 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6087 Arguments GCPRO'ed in call to file name handler.
6088
6089 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6090
6091 * termcap.c (tgetst1): Scan for "%pN"; if all
6092 N are continuous in [1,9], remove all "%pN".
6093
6094 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6095
6096 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6097
6098 * xfaces.c (lface_fully_specified_p): Take into account that
6099 MAC OS always have unspecified stipple.
6100
6101 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6102
6103 * tparam.c (tparam1): Add handling for `%pN', which
6104 means use param N for the next substitution.
6105
6106 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6107
6108 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6109 In case `frame' is nil, consult the selected frame.
6110 (Fcolor_supported_p): Likewise.
6111
6112 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6113
6114 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6115 Doc fixes.
6116
6117 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6118 and an integer. Adapt the introductory comment accordingly.
6119 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6120 Doc fix.
6121 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6122 read_minibuf.
6123 (Fcompleting_read): Delete code moved into read_minibuf.
6124 (Ftest_completion): Make it handle obarrays and hash tables correctly.
6125
6126 2003-12-03 Kenichi Handa <handa@m17n.org>
6127
6128 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6129 encoding sequence.
6130
6131 2003-12-01 Kenichi Handa <handa@m17n.org>
6132
6133 * composite.c (syms_of_composite): Don't make the compostion hash
6134 table week.
6135
6136 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6137
6138 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6139 * textprop.c (Fget_char_property_and_overlay): New function.
6140 (syms_of_textprop): Defsubr it.
6141
6142 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6143
6144 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6145 to compile on terminal configuration.
6146
6147 * fileio.c (Fread_file_name): Check use_file_dialog also before
6148 calling Fx_file_dialog.
6149
6150 * fns.c: use_file_dialog: New variable.
6151 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6152
6153 2003-11-29 Kim F. Storm <storm@cua.dk>
6154
6155 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6156 (syms_of_msdos): Don't intern and staticpro them.
6157
6158 2003-11-27 Kim F. Storm <storm@cua.dk>
6159
6160 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6161 coordinates relative to glyph at posn. If glyph is an image,
6162 return that as object at posn. Callers changed.
6163 (mode_line_string, marginal_area_string): Calculate and return
6164 pixel coordinates relative to glyph. Callers changed.
6165
6166 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6167 (marginal_area_string): Fix prototypes.
6168 (window_box_left_offset, window_box_right_offset): Add prototypes.
6169
6170 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6171 Remove prototypes.
6172
6173 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6174
6175 * keyboard.c (make_lispy_position): Add x and y coordinates
6176 relative to the current glyph as 7th element of position.
6177 If glyph is an image, return it in the object element.
6178 (read_key_sequence): Skip checks for keymap property in cases
6179 where POSN_STRING is not a string (e.g. an image).
6180
6181 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6182 (Vshow_text_cursor_in_void): New variable.
6183 (glyph_to_pixel_coords): Don't use negative hpos.
6184 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6185 (append_stretch_glyph): Change ascent arg to be actual value
6186 in pixels rather than ratio to height. Callers changed.
6187 (calc_pixel_width_or_height): New aux function, implementing
6188 pixel based artihmetic for glyph widths and heights.
6189 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6190 :width, :height, :align-to, and :ascent, thus allowing these to
6191 be specified in pixels as well as multiples of characters.
6192 Don't produce stretch glyphs with zero width or height.
6193 (get_specified_cursor_type): Declare static.
6194 (get_window_cursor_type): Declare static. Add glyph arg to be
6195 able to know when cursor is on an image; always substitute
6196 hollow-box cursor for filled-box cursor on images, to avoid
6197 negative images and flicker when blinking the cursor.
6198 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6199 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6200 than vertical scroll-bar cursor in display margins.
6201 (note_mouse_highlight): Use non-text cursor rather than text
6202 cursor in fringes and over images in the text area.
6203 Use non-text cursor when mouse pointer is outside editable text,
6204 i.e. in the void after end-of-line or end-of-buffer; this was
6205 already done for W32, but is now standard for all systems --
6206 user can toggle show-text-cursor-in-void to get old behaviour.
6207 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6208 Vdisplay_pixels_per_inch.
6209
6210 2003-11-25 Andreas Schwab <schwab@suse.de>
6211
6212 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6213 EMACS_INT to not lose bits.
6214 (Ffillarray): Don't set bits beyond the size of a bool vector.
6215
6216 2003-11-25 Kim F. Storm <storm@cua.dk>
6217
6218 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6219 define this defun on systems that cannot use stderr as lvalue.
6220
6221 2003-11-24 Gerd Moellmann <gerd@gnu.org>
6222
6223 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6224 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6225 ld's default is incompatible with unexec.
6226
6227 2003-11-23 Kim F. Storm <storm@cua.dk>
6228
6229 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6230 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6231 (Fforce_window_update): New defun.
6232 (syms_of_window): Defsubr it.
6233 (Fset_window_margins, Fset_window_fringes): Doc fix.
6234
6235 * print.c (Fredirect_debugging_output): New defun.
6236 (syms_of_print): Defsubr it.
6237
6238 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6239
6240 * fns.c (Fset_char_table_parent): Doc fix.
6241
6242 2003-11-22 Kim F. Storm <storm@cua.dk>
6243
6244 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6245 for glyph clicked on, rather than (unused) pixel positions.
6246 (mode_line_string, marginal_area_string): Change X and Y args to
6247 pointers for returning actual row/column for glyph clicked on.
6248 Simplify and optimize loops.
6249
6250 * dispextern.h (mode_line_string, marginal_area_string):
6251 Update prototypes.
6252
6253 * keyboard.c (make_lispy_position): New function for generating
6254 mouse click positions from frame and pixel coordinates.
6255 Enhanced to return buffer position and actual row/column for
6256 events outside the text area using updated mode_line_string and
6257 marginal_area_string functions.
6258 Return left-fringe and right-fringe clicks as such, rather than
6259 clicks in text area.
6260 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6261 pixel_to_glyph_coords, as we never use the results.
6262 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6263 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6264 Eliminate unused code in WHEEL_EVENT handling.
6265 (make_lispy_movement): Use make_lispy_position.
6266
6267 * window.c (coordinates_in_window): Remove redundant tests.
6268 Fix returned X pixel value for left-margin.
6269
6270 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6271 mode_line_string and marginal_area_string parameters.
6272
6273 2003-11-22 Lars Hansen <larsh@math.ku.dk>
6274
6275 * w32.c (struct the_group, getgrgid): Add.
6276 * mac.c (struct my_group, getgrgid): Add.
6277
6278 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6279
6280 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6281
6282 2003-11-21 Lars Hansen <larsh@math.ku.dk>
6283
6284 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6285 include in call to file name handler. Optionally translate numeric
6286 UID and GID to strings. Update docstring.
6287 (directory_files_internal): Add parameter ID-FORMAT.
6288 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6289 include in call to file name handler and call to
6290 directory_files_internal. Update Docstring.
6291 (Fdirectory_files): Add dummy parameter in call to
6292 directory_files_internal.
6293 * lisp.h (Qinteger): Add.
6294 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6295 (Ffile_attributes): Add parameter.
6296 * data.c (Qinteger): Export.
6297
6298 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6299
6300 * fns.c (Freverse, Fnreverse): Doc fixes.
6301
6302 2003-11-19 Kim F. Storm <storm@cua.dk>
6303
6304 * xdisp.c (init_iterator): Initialize it->start to position
6305 before reseating (in case start position is invisible).
6306 (init_to_row_start): Set it->start to row-start.
6307 (redisplay_window): Accept optional_new_start if start position
6308 is invisible (in which case IT_CHARPOS overshoots PT).
6309 (display_line): Setup row->start from it->start (rather than
6310 it->current which is wrong if first char on line is invisible).
6311 When done, reseat it->start to it->current (= start of next row).
6312 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6313 is only partially visible.
6314
6315 * dispextern.h (struct it): New member start.
6316
6317 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6318
6319 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6320 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6321 of block_index outside of the macro call.
6322 (Fgarbage_collect): Remove null code.
6323
6324 * m/amdx86-64.h: Don't redefine XPNTR.
6325
6326 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6327 of VALMASK.
6328
6329 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6330 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6331 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6332
6333 * lisp.h (VALMASK): Only define for non-union type.
6334 (MARKBIT): Remove.
6335 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6336 (XTYPE): Define unconditionally.
6337 (XSETTYPE): Remove one more remnant.
6338 (EQ): Define differently for the union and non-union cases.
6339 (INTMASK): New bit mask.
6340 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6341 (GC_EQ): Delegate to EQ.
6342
6343 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6344
6345 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6346
6347 * xterm.c (x_window_to_scroll_bar): Move check of display to
6348 where window_id is compared.
6349
6350 2003-11-17 Kim F. Storm <storm@cua.dk>
6351
6352 * dispextern.h (struct it): New member first_vpos.
6353
6354 * xdisp.c (start_display): Set it->first_vpos.
6355 (try_window_id): Use first_vpos to start display in first _text_
6356 line if no reusable lines at start of window with header line.
6357
6358 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6359
6360 * w32fns.c (XPutPixel):
6361 * w32bdf.c (w32_init_bdf_font):
6362 * sunfns.c (sel_read):
6363 * process.c (Fmake_network_process):
6364 * frame.c (store_frame_param):
6365 * fontset.c (Fset_fontset_font):
6366 * emacs.c (shut_down_emacs):
6367 * ccl.c (ccl_driver): Remove period at end of error message.
6368
6369 * config.in: Regenerate.
6370
6371 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6372 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6373 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6374 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6375 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6376
6377 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6378
6379 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6380 (XTmouse_position, handle_one_xevent): Pass Display* to
6381 x_window_to_scroll_bar.
6382 (x_window_to_scroll_bar): Take a Display* argument.
6383 Check that display for frame is equal to Display* argument.
6384 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
6385 x_display_info_for_display instead. Use Display in xev instead
6386 of GDK_DISPLAY.
6387 (x_dispatch_event): Call x_display_info_for_display.
6388 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
6389 (x_connection_closed): Call xg_display_close for GTK.
6390 (x_term_init): Call xg_display_open for additional displays.
6391 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6392 for GTK.
6393
6394 * xmenu.c (single_menu_item, mouse_position_for_popup)
6395 (x_activate_menubar): Formatting adjustments.
6396
6397 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6398 adjustments.
6399
6400 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6401 (xg_display_close, xg_create_default_cursor)
6402 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6403 handling.
6404 (xg_left_ptr_cursor): Remove.
6405 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
6406 cursor here.
6407 (xg_win_to_widget): Take Display* argument, call
6408 gdk_xid_table_lookup_for_display.
6409 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6410 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6411 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6412 in FRAME_X_DISPLAY_INFO.
6413 (xg_get_scroll_id_for_window): Take Display* argument.
6414 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
6415 (xg_initialize): Remove xg_left_ptr_cursor.
6416
6417 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6418 Display* argument.
6419 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
6420
6421 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6422
6423 * xterm.c (x_detect_focus_change): Do not change focus frame for
6424 Enter/LeaveNotify if the current focus frame has explicit focus.
6425
6426 2003-11-14 Kim F. Storm <storm@cua.dk>
6427
6428 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6429 is active and first glyph is only partially visible.
6430
6431 2003-11-13 Kenichi Handa <handa@m17n.org>
6432
6433 * xdisp.c (select_frame_for_redisplay): New function.
6434 (redisplay_internal): Record also selected_frame for
6435 unwind_redisplay. Call select_frame_for_redisplay before
6436 redrawing each frame.
6437 (unwind_redisplay): Argument changed to a cons.
6438
6439 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6440
6441 * fns.c (Fstring_to_multibyte): Doc fix.
6442
6443 2003-11-11 Kenichi Handa <handa@m17n.org>
6444
6445 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6446
6447 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6448
6449 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6450 program specified positions.
6451
6452 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6453
6454 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6455
6456 2003-11-08 Kenichi Handa <handa@m17n.org>
6457
6458 * Makefile.in (lisp): Add kannada.el.
6459 (shortlisp): Likewise.
6460
6461 2003-11-07 Kenichi Handa <handa@m17n.org>
6462
6463 * coding.c (coding_allocate_composition_data):
6464 Reset coding->composing to COMPOSITION_NO.
6465 (coding_restore_composition): Detect invalid composition data.
6466 Give Fstring and Fvector a Lispy integer, not C int.
6467
6468 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * floatfns.c (Flogb): Don't use VALMASK.
6471
6472 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6473 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6474
6475 * lisp.h (XINT): Move the cast to clarify what is going on.
6476 (GCTYPEMASK, XSETTYPE): Remove.
6477 (XGCTYPE): Make it an alias of XTYPE.
6478
6479 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6480
6481 * xterm.c (x_term_init): Fix formatting.
6482
6483 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6484
6485 * gtkutil.h (xg_have_tear_offs): Declare.
6486 (xg_keep_popup, xg_did_tearoff): Remove.
6487
6488 * gtkutil.c: Remove variable xg_did_tearoff.
6489 (xg_have_tear_offs): New function.
6490 (tearoff_remove): Just decrease xg_detached_menus.
6491 (tearoff_activate): Increase xg_detached_menus and call
6492 tearoff_remove when tearoff is removed.
6493 (xg_keep_popup): Remove function.
6494 (create_menus): Give add_tearoff_p as argument to recursive
6495 call to create_menus.
6496 (xg_create_widget): Use variables instead of multiple
6497 strcmp. Tell create_menus to create tear off only for
6498 menu bar menus.
6499 (xg_update_menubar): Change title for a detached menu also.
6500 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6501 of deep_p.
6502 (xg_initialize): Initialize xg_detached_menus, remove
6503 initialization of xg_did_tearoff.
6504
6505 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6506 xg_have_tear_offs returns non-zero.
6507 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6508 call to xg_keep_popup.
6509
6510 2003-11-01 Andrew Choi <akochoi@shaw.ca>
6511
6512 * macterm.c (XTread_socket): Handle menubar selection and grow
6513 window only for mouseDown events.
6514
6515 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6516
6517 * xterm.c (x_term_init): For GTK part, increase x_initialized
6518 to check for more than one display. Use error instead of return 0.
6519
6520 2003-10-31 Andrew Choi <akochoi@shaw.ca>
6521
6522 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
6523 (copy_dysymtab): Call it.
6524
6525 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6526
6527 * eval.c (Fdefvaralias): Doc fix.
6528
6529 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
6530
6531 * data.c (Fsetplist): Doc fix.
6532
6533 2003-10-14 Lute Kamstra <lute@gnu.org>
6534
6535 * window.c (Fset_window_fringes): Clarify docstring.
6536
6537 2003-10-14 Kim F. Storm <storm@cua.dk>
6538
6539 * window.c (Fset_window_margins): Simplify arg checking.
6540
6541 2003-10-13 Richard M. Stallman <rms@gnu.org>
6542
6543 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6544 (print_partial_compiled_pattern): Replace assert with a printout.
6545 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6546
6547 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6548
6549 * window.c (Fset_window_margins): Allow only integers as args.
6550 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6551 Doc fixes.
6552
6553 2003-10-13 Lute Kamstra <lute@gnu.org>
6554
6555 * window.c (Fset_window_fringes): Elaborate docstring.
6556
6557 2003-10-12 Andrew Choi <akochoi@shaw.ca>
6558
6559 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
6560
6561 * s/darwin.h (GC_MARK_STACK): Define.
6562
6563 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6564
6565 * window.c (shrink_windows): New function.
6566 (size_window): Call shrink_windows to calculate window sizes when
6567 shrinking frame with more than one window.
6568
6569 2003-10-12 Kim F. Storm <storm@cua.dk>
6570
6571 * xdisp.c (compute_fringe_widths): Doc fix.
6572
6573 2003-10-08 Kenichi Handa <handa@m17n.org>
6574
6575 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
6576
6577 2003-10-07 Kenichi Handa <handa@m17n.org>
6578
6579 * coding.c (Qcoding_system_define_form): New variable.
6580 (syms_of_coding): Intern and staticpro it.
6581 (Fcheck_coding_system): Try to autoload the definition of
6582 CODING-SYSTEM.
6583
6584 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6585
6586 * fns.c (Frequire): Doc fix.
6587
6588 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6589
6590 * xfns.c (Fx_send_client_event): New function as a base for
6591 manipulating extended window manager hints.
6592 (Fx_send_client_event): Remove unused variable s.
6593
6594 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6595 that function is removed.
6596
6597 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6598 x/y_pixels_outer_diff.
6599 (x_check_expected_move): Calculate move_offset_left/top.
6600
6601 * xterm.h (struct x_output): New members: move_offset_top/left.
6602
6603 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
6604 call x_set_offset directly.
6605
6606 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6607
6608 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6609
6610 * xterm.c (x_delete_display): Free font names and font_encoder
6611 in dpyinfo->font_table.
6612
6613 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6614 Move xfree of font names to x_delete_display.
6615
6616 * xterm.h (struct x_display_info): New member, wm_type.
6617 (struct x_output): New members, expected_top/left and
6618 check_expected_move.
6619
6620 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6621 is received.
6622 (handle_one_xevent): Rename x_check_expected_move from
6623 x_check_fullscreen_move.
6624 (x_set_offset): Only add WM decoration sizes to modified_top/left
6625 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
6626 (x_check_expected_move): Rename from x_check_fullscreen_move.
6627 Removed fullscreen specific code. Use check_expected_move,
6628 expected_left/top instead. Also, set wm_type.
6629 (x_term_init): Initialize wm_type to unknown.
6630
6631 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6632 sizes to move_x/y.
6633
6634 2003-10-03 Kenichi Handa <handa@m17n.org>
6635
6636 * macterm.c (x_load_font): Clear all members of FONTP before start
6637 filling them.
6638
6639 2003-10-02 Kenichi Handa <handa@m17n.org>
6640
6641 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6642 before calling find_ccl_program_func. Call find_ccl_program_func
6643 only when fontp->font_encoder is not NULL.
6644
6645 * xterm.c (x_load_font): Clear all members of FONTP before start
6646 filling them.
6647
6648 2003-10-03 John Paul Wallington <jpw@gnu.org>
6649
6650 * keymap.c (map_keymap): Don't abort when binding is a vector.
6651
6652 2003-10-02 Jason Rumney <jasonr@gnu.org>
6653
6654 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6655 Sync dependencies with Makefile.in.
6656 (alloca.o): Remove.
6657
6658 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6659 filling them.
6660
6661 * w32bdf.c (w32_load_bdf_font): Likewise.
6662
6663 2003-09-30 Richard M. Stallman <rms@gnu.org>
6664
6665 * term.c (set_tty_color_mode): Calculate current_mode_spec
6666 regardless of value of VAL.
6667
6668 * intervals.c (graft_intervals_into_buffer):
6669 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6670 Handle over_used when splitting UNDER.
6671
6672 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6673
6674 * regex.c (regex_compile): Free the stack when returning from function.
6675
6676 2003-09-28 Kenichi Handa <handa@m17n.org>
6677
6678 * fontset.c (Finternal_char_font): Change return value to
6679 cons (FONT-NAME . GLYPH-CODE).
6680
6681 2003-09-28 Eli Zaretskii <eliz@gnu.org>
6682
6683 * term.c (tty_setup_colors): Treat any negative argument as -1.
6684
6685 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6686
6687 * process.c (send_process): Delete unused temp_buf.
6688
6689 2003-09-26 Dave Love <fx@gnu.org>
6690
6691 * xterm.c (x_bitmap_mask): Declare.
6692
6693 2003-09-25 Dave Love <fx@gnu.org>
6694
6695 * Makefile.in (fns.o): Depend on md5.h.
6696
6697 2003-09-25 Kim F. Storm <storm@cua.dk>
6698
6699 * window.c (set_window_buffer): Fix redisplay problems when
6700 switching between buffers with different display margin widths.
6701
6702 2003-09-23 Kim F. Storm <storm@cua.dk>
6703
6704 * process.c (set_socket_option): Fix :bindtodevice option.
6705 (Fset_network_process_option): Update process contact list when
6706 setting option succeeds.
6707 (Fmake_network_process): Doc fix.
6708
6709 2003-09-23 Dave Love <fx@gnu.org>
6710
6711 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
6712
6713 2003-09-22 Eli Zaretskii <eliz@gnu.org>
6714
6715 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6716 color mode is an integer number (it could be -1).
6717
6718 2003-09-22 Richard M. Stallman <rms@gnu.org>
6719
6720 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6721 in the case where OVER is longer than UNDER.
6722
6723 2003-09-22 Masatake YAMATO <jet@gyve.org>
6724
6725 * window.c (Fset_window_scroll_bars): Validate the value of
6726 `vertical_type'.
6727
6728 2003-09-21 Kim F. Storm <storm@cua.dk>
6729
6730 * frame.c (Vdefault_frame_scroll_bars): New variable.
6731 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6732 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6733 window-system default scroll bar position.
6734
6735 * window.c (Fwindow_scroll_bars): Doc fix.
6736
6737 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6738
6739 * xterm.c (x_set_offset): Take window manager decorations into account.
6740
6741 2003-09-19 Richard M. Stallman <rms@gnu.org>
6742
6743 * atimer.h: Don't include lisp.h.
6744 (P_): Define it here (as well as elsewhere).
6745
6746 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6747 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6748
6749 * data.c (Fvariable_binding_locus): New function.
6750 (syms_of_data): defsubr it.
6751 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6752
6753 2003-09-18 Dave Love <fx@gnu.org>
6754
6755 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6756
6757 * process.c (Fnetwork_interface_info): Fix type error.
6758 (Fnetwork_interface_list): Doc fix.
6759 (read_process_output, read_process_output): Delete unused var.
6760
6761 2003-09-17 Kim F. Storm <storm@cua.dk>
6762
6763 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6764 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6765 (Fnetwork_interface_info): Check that ifreq struct has required
6766 fields before accessing them; this requires that those fields are
6767 defined as macros, which may be too restrictive on some platforms,
6768 but it is better than failing on other platforms.
6769 (syms_of_process): Only defsubr above fns when included.
6770
6771 2003-09-17 Dave Love <fx@gnu.org>
6772
6773 * unexalpha.c: Don't include varargs.h.
6774
6775 2003-09-17 Kim F. Storm <storm@cua.dk>
6776
6777 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6778 for network process.
6779 (socket_options): Add `:' prefix to option names. Add optbit field.
6780 (set_socket_option): Remove no_error arg and special handling of s < 0.
6781 Return 1<<optbit for known option, 0 for unknown.
6782 Do not interpret 0 as false for boolean option (only nil).
6783 Pass failed option and value to report_file_error.
6784 (Fset_network_process_options): Replace by Fset_network_process_option.
6785 (Fset_network_process_option): New function to set just one option.
6786 (Fmake_network_process): Allow :coding arg to be a cons.
6787 Allow :server arg to be an integer specifying backlog size.
6788 Remove :options arg, and allow options to be specified directly
6789 as :KEY, VALUE pairs. Parse these options before binding socket.
6790 As before, :reuseaddr t is default for a server process, but this
6791 can now be disabled by specifying :reuseaddr nil.
6792 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6793 (init_process): Availability of network options is now checked with
6794 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6795 setup features.
6796 (syms_of_process): Fix defsubr's for the replaced functions.
6797
6798 2003-09-16 Dave Love <fx@gnu.org>
6799
6800 * Makefile.in: Depend on coding.h.
6801
6802 2003-09-14 Kim F. Storm <storm@cua.dk>
6803
6804 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6805 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6806 (syms_of_process): Defsubr them.
6807
6808 * config.in: Regenerate.
6809
6810 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6811
6812 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6813 * m/news-r6.h (XUNMARK): Remove.
6814 * m/mips.h (XUNMARK): Remove.
6815 * m/mips-siemens.h (XUNMARK): Remove.
6816 * m/iris4d.h (XUNMARK): Remove.
6817 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6818
6819 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6820
6821 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6822 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6823 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6824 (XTYPE): Use unsigned right-shift.
6825 (XMARKBIT, XMARK, XUNMARK): Remove.
6826
6827 * alloc.c (init_intervals, init_symbol, init_marker):
6828 Don't preallocate anything.
6829 (Fgarbage_collect, mark_object): Ignore the markbit.
6830
6831 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6832
6833 2003-09-08 Lute Kamstra <lute@gnu.org>
6834
6835 * xdisp.c (pint2hrstr): New function.
6836 (decode_mode_spec): Add `%i' and `%I' specs.
6837 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6838 for `mode-line-format'.
6839
6840 2003-09-07 Andreas Schwab <schwab@suse.de>
6841
6842 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6843 avoid warning.
6844
6845 2003-09-07 Eli Zaretskii <eliz@gnu.org>
6846
6847 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
6848
6849 2003-09-03 Kim F. Storm <storm@cua.dk>
6850
6851 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6852 change (superseded by 2002-08-30 change); the default blink-off
6853 cursor is now again "no cursor".
6854
6855 2003-09-01 Jason Rumney <jasonr@gnu.org>
6856
6857 * makefile.w32-in (alloca.o): Remove.
6858 (coding.o): Depend on intervals.h
6859 (emacs.o, bytecode.o): Depend on window.h
6860
6861 2003-09-01 Dave Love <fx@gnu.org>
6862
6863 * Makefile.in (alloca.o): Remove commands.
6864 (coding.o): Depend on intervals.h composite.h window.h.
6865 (emacs.o): Depend on window.h keyboard.h keymap.h.
6866 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6867 (bytecode.o): Depend on window.h.
6868
6869 2003-08-31 Jason Rumney <jasonr@gnu.org>
6870
6871 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6872 returned even when font_type is unknown.
6873
6874 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6875
6876 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6877
6878 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6879
6880 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6881 *_offset.
6882
6883 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6884 calculate pixel value.
6885
6886 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6887
6888 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6889 Don't tell redisplay display is accurate when it's actually been
6890 paused for pending input.
6891
6892 2003-08-29 Richard M. Stallman <rms@gnu.org>
6893
6894 * dispnew.c (adjust_glyph_matrix): Call window_box
6895 whenever W is nonzero.
6896
6897 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6898 (Fkill_local_variable, Fmake_variable_frame_local)
6899 (Flocal_variable_p, Flocal_variable_if_set_p):
6900 Use indirect_variable to trace thru variable aliases.
6901
6902 * config.in: Updated.
6903
6904 * callint.c (Fcall_interactively): Save and restore
6905 Vthis_command, Vthis_original_command, real_this_command,
6906 and current_kboard->Vlast_command.
6907
6908 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6909
6910 2003-08-29 Gerd Moellmann <gerd@gnu.org>
6911
6912 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6913
6914 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6915
6916 * coding.c (decode_coding_iso2022): Initialize local variable c2.
6917 (decode_coding_sjis_big5): Likewise.
6918
6919 2003-08-27 Jason Rumney <jasonr@gnu.org>
6920
6921 * w32.c (sys_pipe): Protect against file descriptor overflow.
6922
6923 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6924
6925 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6926
6927 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
6928
6929 * xfns.c (Vgtk_version_string): New variable.
6930 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6931
6932 2003-08-24 Eli Zaretskii <eliz@gnu.org>
6933
6934 * term.c (term_init): Remove `const' from buffer_size's declaration.
6935
6936 * Makefile.in (msdos.o): Depend on intervals.h.
6937
6938 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
6939
6940 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6941
6942 * xterm.h (struct x_display_info): New fields: client_leader_window
6943 and Xatom_wm_client_leader.
6944
6945 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6946 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6947
6948 * xsmfns.c (create_client_leader_window): New function.
6949 (x_session_initialize): Call create_client_leader_window, take
6950 dpyinfo as argument.
6951
6952 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6953
6954 * Makefile.in (xsmfns.o): Add more depenedencies.
6955
6956 2003-08-21 Dave Love <fx@gnu.org>
6957
6958 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6959
6960 2003-08-21 Kenichi Handa <handa@m17n.org>
6961
6962 * term.c (term_init): Fix previous change; don't rely on the
6963 length of `buffer' if TERMINFO is defined.
6964
6965 2003-08-20 Dave Love <fx@gnu.org>
6966
6967 * atimer.h: Include lisp.h.
6968
6969 * lisp.h (EMACS_LISP_H): New.
6970 (popup_activated_flag): Don't declare.
6971
6972 * alloca.c: Some merging with gnulib. Change logic and doc
6973 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6974 [DO_BLOCK_INPUT]: Don't include lisp.h.
6975 (xmalloc, xfree): Declare.
6976 (malloc): Don't declare.
6977
6978 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6979 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6980 atimer.h, blockinput.h.
6981
6982 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6983
6984 * alloca.s: Remove.
6985
6986 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6987
6988 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6989 use -lncurses.
6990
6991 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6992 FreeBSD returns something longer than 2044. Abort if the end of
6993 the buffer is overwritten.
6994
6995 2003-08-19 Miles Bader <miles@gnu.org>
6996
6997 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6998
6999 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7000
7001 * alloc.c (lisp_align_malloc): Check for memory full when
7002 allocating ablocks, which also avoids freeing a pointer into an
7003 ablocks structure.
7004
7005 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7006
7007 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
7008
7009 2003-08-16 Richard M. Stallman <rms@gnu.org>
7010
7011 * editfns.c (Fencode_time): Doc fix.
7012
7013 2003-08-16 David Ponce <david@dponce.com>
7014
7015 * fileio.c (Fwrite_region): Fix conditional expression to issue
7016 the right message.
7017
7018 2003-08-16 Juri Linkov <juri@jurta.org>
7019
7020 * syntax.c (Fforward_word): Argument changed to optional.
7021 Set default value to 1.
7022
7023 2003-08-15 Kenichi Handa <handa@m17n.org>
7024
7025 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7026 what autoscaled.
7027 (best_matching_font): Once we find a better scalable font, set
7028 non_scalable_has_exact_height_p to 1.
7029 (try_font_list): Call try_alternative_families to try any family
7030 with the given registry.
7031
7032 2003-08-09 Andreas Schwab <schwab@suse.de>
7033
7034 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7035
7036 * print.c (print_string): Fix printing of multibyte string with
7037 nontrivial printcharfun.
7038
7039 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7040
7041 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7042
7043 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7044
7045 2003-07-31 Kenichi Handa <handa@m17n.org>
7046
7047 * process.c (read_process_output): Return the actually read bytes
7048 instead of the result of decoding.
7049
7050 2003-07-31 Kenichi Handa <handa@m17n.org>
7051
7052 * xterm.h (struct x_bitmap_record): New member have_mask.
7053
7054 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7055 to 0.
7056 (x_create_bitmap_from_file): Likewise.
7057 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7058 (x_destroy_all_bitmaps): Likewise.
7059 (x_create_bitmap_mask): Set have_mask member to 1.
7060
7061 2003-07-30 Richard M. Stallman <rms@gnu.org>
7062
7063 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7064
7065 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7066
7067 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7068
7069 2003-07-29 Richard M. Stallman <rms@gnu.org>
7070
7071 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7072 Conditionalize XIM code on HAVE_XIM.
7073
7074 * fns.c (Fclear_string): New function.
7075 (syms_of_fns): defsubr it.
7076
7077 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7078
7079 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
7080
7081 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7082
7083 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7084
7085 * buffer.c (delete_all_overlays): New function.
7086 * buffer.h (delete_all_overlays): Declare.
7087 * coding.c (run_pre_post_conversion_on_str):
7088 * print.c (temp_output_buffer_setup):
7089 * fileio.c (Finsert_file_contents):
7090 * minibuf.c (get_minibuffer): Use it.
7091
7092 2003-07-22 Andrew Choi <akochoi@shaw.ca>
7093
7094 * unexmacosx.c (unexec_regions_sort_compare):
7095 (unexec_regions_merge): New functions. Sort and merge unexec
7096 regions before dumping them.
7097
7098 2003-07-22 Dave Love <fx@gnu.org>
7099
7100 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7101
7102 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7103
7104 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7105 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7106 MARKBIT as the gcmarkbit for strings.
7107
7108 2003-07-21 Richard M. Stallman <rms@gnu.org>
7109
7110 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7111
7112 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
7113 (syms_of_fns): Corresponding change.
7114
7115 * alloc.c (syms_of_alloc): Doc fixes.
7116
7117 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7118
7119 * s/netbsd.h: Use -Wl syntax.
7120
7121 2003-07-17 Richard M. Stallman <rms@gnu.org>
7122
7123 * xterm.c (xim_initialize): Redo 6/24 change.
7124
7125 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7126
7127 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7128 (Fswitch_to_buffer): Don't signal an error when switching to the same
7129 buffer in a dedicated window.
7130
7131 * alloc.c: Use bitmaps for cons, as was done for floats.
7132 (init_float, init_cons): Let the normal code allocate the first block.
7133 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7134 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7135 New macros.
7136 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7137 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7138 (live_cons_p): Check the pointer is not past the `conses' array.
7139 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7140 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7141 (survives_gc_p): Use CONS_MARKED_P and simplify.
7142 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7143
7144 2003-07-13 Paul Eggert <eggert@twinsun.com>
7145
7146 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7147 puts it into BSS instead, at least on Solaris 8 and 9.
7148 This is a valid optimization, and it may occur on other platforms,
7149 so Emacs should not assume that initializing a static variable to
7150 zero puts it into data.
7151 * alloc.c (pure, staticvec):
7152 Initialize these arrays to nonzero, so that they're not
7153 put into BSS by that optimization.
7154
7155 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7156
7157 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7158 (lisp_align_malloc): Use posix_memalign is available.
7159 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7160 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7161 for consistency. Update users.
7162
7163 2003-07-13 Richard M. Stallman <rms@gnu.org>
7164
7165 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7166
7167 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7168
7169 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7170 and use the Gtk+ function gtk_window_icon_from_file if available.
7171
7172 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7173 handle mask of bitmaps.
7174 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7175 mask property.
7176 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7177
7178 * xterm.h (xg_set_icon): New function.
7179
7180 2003-07-12 Paul Eggert <eggert@twinsun.com>
7181
7182 * unexelf.c (unexec): Consider a section to precede the .bss
7183 section if its addresses overlap that of .bss.
7184
7185 2003-07-12 Richard M. Stallman <rms@gnu.org>
7186
7187 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7188
7189 * config.in (HAVE_CRTIN): Add #undef.
7190 (INLINE): Really inline only if OPTIMIZE is defined.
7191
7192 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7193 END_FILES_1.
7194 (START_FILES_1, END_FILES_1): New macros (conditional).
7195 (LD_SWITCH_SYSTEM_TEMACS): Define.
7196
7197 * s/openbsd.h: Don't include bsd4-3.h.
7198 (TERMINFO): Define.
7199 (LIBS_TERMCAP): Define.
7200 (LD_SWITCH_SYSTEM): Define (two definitions).
7201
7202 * xfns.c: Include libpng/png.h instead of png.h.
7203
7204 2003-07-11 Andreas Schwab <schwab@suse.de>
7205
7206 * buffer.c (modify_overlay): Update prototype.
7207 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7208 Likewise.
7209
7210 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7211
7212 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7213 (struct interval): Move to intervals.h.
7214 (struct Lisp_Marker): Use EMACS_INT for position info.
7215 (forward_point): Remove prototype of defunct function.
7216 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7217 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7218 (syms_of_textprop, set_text_properties): Remove prototypes that are
7219 already in intervals.h.
7220
7221 * intervals.h (struct interval): Move from lisp.h.
7222 Use EMACS_INT for position and size info.
7223
7224 * coding.c: Include intervals.h for Fset_text_properties.
7225
7226 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7227 position and length information.
7228
7229 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7230
7231 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7232 position and length information.
7233
7234 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7235
7236 Change overlays_after and overlays_before so the overlays themselves
7237 are linked into lists, rather than using cons cells. After all each
7238 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7239 Lisp_Overlay for free and save up one cons cell per overlay (not
7240 to mention one indirection when traversing the list of overlay).
7241
7242 * lisp.h (struct Lisp_Overlay): New field `next'.
7243
7244 * buffer.h (struct buffer): Change overlays_before and overlays_after
7245 from Lisp lists of overlays to pointers to overlays.
7246
7247 * buffer.c (overlay_strings, recenter_overlay_lists):
7248 Fix typo in eassert in last commit.
7249 (unchain_overlay): New function.
7250 (add_overlay_mod_hooklist): Use AREF.
7251 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7252 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7253 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7254 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7255 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7256 Adjust to new type of overlays_(before|after).
7257
7258 * alloc.c (mark_object): Mark the new `next' field of overlays.
7259 (mark_buffer): Manually mark the overlays_(after|before) fields.
7260
7261 * coding.c (run_pre_post_conversion_on_str):
7262 * editfns.c (overlays_around):
7263 * xdisp.c (load_overlay_strings):
7264 * fileio.c (Finsert_file_contents):
7265 * indent.c (current_column):
7266 * insdel.c (signal_before_change, signal_after_change):
7267 * intervals.c (set_point_both):
7268 * print.c (temp_output_buffer_setup): Use new type for
7269 overlays_(before|after).
7270
7271 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7272
7273 * buffer.c (report_overlay_modification): Don't run hooks while
7274 traversing the list of overlays.
7275
7276 * buffer.h (struct buffer): Use an int for overlay_center.
7277 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7278 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7279
7280 * buffer.c (reset_buffer, recenter_overlay_lists)
7281 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7282 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7283 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7284 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7285 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7286
7287 * xdisp.c (fast_find_position): Remove unused var.
7288
7289 * cmds.c (Qexpand_abbrev): New sym.
7290 (syms_of_cmds): Initialize it.
7291 (internal_self_insert): Use it to call expand-abbrev.
7292
7293 2003-07-09 Kim F. Storm <storm@cua.dk>
7294
7295 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
7296 was configured with --without-xim.
7297 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
7298
7299 2003-07-07 Richard M. Stallman <rms@gnu.org>
7300
7301 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7302
7303 * alloc.c (Fgarbage_collect): Doc fix.
7304
7305 2003-07-07 Nozomu Ando <nand@mac.com>
7306
7307 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7308
7309 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7310
7311 * minibuf.c (read_minibuf): UNGCPRO before returning.
7312 (Ftry_completion, Fall_completions): Doc fix.
7313
7314 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7315 now that `floats' is not the last element of the struct any more.
7316
7317 2003-07-06 Jason Rumney <jasonr@gnu.org>
7318
7319 * w32term.h (ClipboardSequence_Proc): New type.
7320
7321 * w32fns.c (clipboard_sequence_fn): New variable.
7322 (globals_of_w32fns): Initialize it.
7323
7324 * w32select.c (last_clipboard_sequence_number): New variable.
7325 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7326 number if possible.
7327
7328 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7329
7330 * m/amdx86-64.h (MARKBIT):
7331 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7332 MARKBIT and ARRAY_MARK_FLAG any more.
7333
7334 * m/hp800.h (XSETMARKBIT):
7335 * m/sr2k.h (XSETMARKBIT):
7336 * lisp.h (XSETMARKBIT): Remove unused macro.
7337
7338 * lisp.h (mark_object): Change prototype.
7339
7340 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7341 (last_marked): Change accordingly.
7342 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7343 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7344 (mark_buffer): Update calls to mark_object.
7345
7346 * bytecode.c (mark_byte_stack):
7347 * fns.c (sweep_weak_table):
7348 * keyboard.c (mark_kboards): Update calls to mark_object.
7349
7350 2003-07-06 Jason Rumney <jasonr@gnu.org>
7351
7352 * alloc.c (struct ablock): Only include padding when there is some.
7353
7354 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7355
7356 * alloc.c (ALIGN): Add casts to simplify usage.
7357 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7358 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7359 (struct ablock, struct ablocks): New types.
7360 (free_ablock): New global var.
7361 (lisp_align_malloc, lisp_align_free): New functions.
7362 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7363 (struct float_block): Reorder and add gcmarkbits.
7364 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7365 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7366 (init_float, make_float): Use lisp_align_malloc.
7367 (free_float, live_float_p): Don't use `type' any more.
7368 (make_float): Use FLOAT_UNMARK to access to mark bit.
7369 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7370 Use FLOAT_MARKED_P to access the mark bit.
7371 (pure_alloc): Simplify use of ALIGN.
7372 (mark_object): Use FLOAT_MARK to access the mark bit.
7373 (gc_sweep): Use new macros to access the float's mark bit.
7374 (init_alloc_once): Init free_ablock.
7375
7376 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7377
7378 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7379
7380 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7381 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7382 (allocate_buffer): Move.
7383 (string_bytes): Don't mask markbit of `size_byte'.
7384 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7385 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7386 Use the `size' field of buffers (rather than the `name' field) for
7387 the mark bit, as is done for all other vectorlike objects.
7388 Use the new macros to access the mark bit of vectorlike objects.
7389
7390 2003-06-26 Richard M. Stallman <rms@gnu.org>
7391
7392 * puresize.h (BASE_PURESIZE): Increment base size.
7393
7394 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7395
7396 * xterm.c (xim_initialize): Undo previous change.
7397
7398 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7399
7400 * alloc.c (survives_gc_p): Simplify.
7401
7402 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7403
7404 * window.c (Fset_window_dedicated_p): Simplify.
7405 (display_buffer_1): Don't raise the win from which minibuf was entered.
7406 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7407 (Fminibuffer_selected_window): Simplify.
7408
7409 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7410
7411 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7412 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7413
7414 * insdel.c (check_markers, adjust_markers_for_delete)
7415 (adjust_markers_for_insert, adjust_markers_for_replace)
7416 (prepare_to_modify_buffer, RESTORE_VALUE):
7417 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7418 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7419 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7420 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7421 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7422 * editfns.c (save_excursion_restore, transpose_markers):
7423 * window.c (delete_window):
7424 * xdisp.c (message_dolog): Update for new types.
7425
7426 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7427
7428 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7429 (realize_default_face): Use default_face_done_p for the force_p
7430 argument to set_lface_from_font_name. Set default_face_done_p to one.
7431
7432 * frame.c (make_frame): Initialize default_face_done_p.
7433
7434 * frame.h (struct frame): Add default_face_done_p.
7435
7436 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7437 will be defined.
7438
7439 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7440
7441 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7442 Initialize the new field `gcmarkbit'.
7443 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7444 (mark_interval_tree): Don't mark the tree separately from the nodes.
7445 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7446 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7447 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7448
7449 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7450 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7451 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7452 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7453 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7454
7455 2003-06-24 Dave Love <fx@gnu.org>
7456
7457 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7458
7459 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7460 from gnulib.
7461
7462 2003-06-21 Richard M. Stallman <rms@gnu.org>
7463
7464 * fileio.c (Fwrite_region): Alternate messages
7465 for append and partial write.
7466
7467 * keyboard.c (read_key_sequence): When converting upcase fn key to
7468 downcase, update fkey and keytran so `backspace' gets translated.
7469
7470 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7471
7472 * process.c (wait_reading_process_input): Don't signal SIGIO
7473 in batch mode.
7474
7475 2003-06-17 Kenichi Handa <handa@m17n.org>
7476
7477 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7478 composite.h.
7479
7480 * xselect.c: Don't include charset.h, coding.h, composite.h.
7481 (Qforeign_selection): New variable.
7482 (syms_of_xselect): Intern and static it.
7483 (selection_data_to_lisp_data): Return a unibyte string made from
7484 data with `foreign-selection' text property.
7485
7486 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7487
7488 * termhooks.h (EVENT_INIT): New macro.
7489
7490 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7491
7492 * alloc.c (mark_kboards): Move to keyboard.c.
7493
7494 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7495 * xterm.c (x_dispatch_event):
7496 * xmenu.c (find_and_call_menu_selection):
7497 * xdisp.c (handle_tool_bar_click):
7498 * w32menu.c (menubar_selection_callback):
7499 * sysdep.c (kbd_input_ast, read_input_waiting):
7500 * msdos.c (dos_rawgetc):
7501 * macterm.c (mac_check_for_quit_char):
7502 * macmenu.c (menubar_selection_callback):
7503 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7504 data to kbd_buffer_store_event.
7505
7506 2003-06-15 Kim F. Storm <storm@cua.dk>
7507
7508 * xdisp.c (x_fix_overlapping_area): Always use area relative X
7509 to fix redisplay problem with tall characters (such as \e,AC\e(B).
7510
7511 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7512
7513 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7514
7515 2003-06-12 Kenichi Handa <handa@m17n.org>
7516
7517 * fileio.c (Fwrite_region): Save and restore restriction.
7518
7519 2003-06-12 Dave Love <fx@gnu.org>
7520
7521 * alloca.c (alloca): Declare arg as size_t.
7522
7523 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7524 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
7525
7526 2003-06-11 Dave Love <fx@gnu.org>
7527
7528 * search.c (shrink_regexp_cache): Use xrealloc.
7529 (syms_of_search): Use xmalloc.
7530
7531 2003-06-10 Kim F. Storm <storm@cua.dk>
7532
7533 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7534 Adjust phys_cursor.x to be relative to window box, rather than
7535 text area before checking -- to ensure cursor is redrawn when
7536 exposing window.
7537 Note: This also fixes a similar (older) bug if display margins
7538 are present.
7539
7540 2003-06-06 Kenichi Handa <handa@m17n.org>
7541
7542 * coding.c (encoding_buffer_size): If coding->type is
7543 coding_type_ccl, double magnification on CRLF encoding.
7544
7545 2003-06-06 Jason Rumney <jasonr@gnu.org>
7546
7547 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7548 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7549
7550 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7551 Mac too.
7552
7553 2003-06-05 Dave Love <fx@gnu.org>
7554
7555 * strftime.c: Merge changes from gnulib.
7556
7557 * mktime.c (__mktime_internal): Merge changes from gnulib
7558 involving year 69 and dst2.
7559
7560 Changes to merge with gnulib version and be consistent with the
7561 autoconf test:
7562
7563 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7564 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
7565 [HAVE_LOCALE_H]: Include locale.h.
7566 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7567
7568 2003-06-05 Kim F. Storm <storm@cua.dk>
7569
7570 * window.c (coordinates_in_window): Convert X and Y to window
7571 relative coordinates inside mode-line and header-line parts.
7572 Convert X and Y to margin area relative coordinates inside left
7573 and right display margin parts.
7574
7575 2003-06-05 Jason Rumney <jasonr@gnu.org>
7576
7577 * w32fns.c (add_system_logical_colors_to_map): New function.
7578 (Fx_open_connection): Use it.
7579
7580 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7581
7582 * process.c (allocate_pty): Revert part of the previous patch.
7583 (Faccept_process_output): Simplify.
7584
7585 2003-06-04 Jason Rumney <jasonr@gnu.org>
7586
7587 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7588
7589 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7590 (lispy_mouse_wheel_names): Remove.
7591 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7592 Always define drag_and_drop_syms.
7593
7594 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7595 WHEEL_EVENT events.
7596
7597 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7598
7599 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7600
7601 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7602
7603 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7604
7605 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7606 menu item label.
7607
7608 2003-06-03 Richard M. Stallman <rms@gnu.org>
7609
7610 * window.c (Fwindow_edges): Doc fix.
7611 (Fwindow_pixel_edges, Fwindow_inside_edges)
7612 (Fwindow_inside_pixel_edges): New functions.
7613 (syms_of_window): defsubr them.
7614
7615 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7616 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7617
7618 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7619
7620 * dispnew.c (Fsit_for): Don't lie about the number of args.
7621
7622 2003-06-02 Dave Love <fx@gnu.org>
7623
7624 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7625 (syms_of_callproc) <process-environment>: Doc fix.
7626
7627 * doc.c: Use HAVE_FCNTL_H, not USG5.
7628
7629 * xfaces.c (font_rescale_ratio): Fix for K&R.
7630
7631 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7632
7633 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7634
7635 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7636
7637 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7638 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7639
7640 * xterm.c (Qutf_8): Move to coding.c
7641
7642 * xmenu.c (ENCODE_MENU_STRING): New.
7643 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7644 Use it.
7645
7646 * coding.h (ENCODE_UTF_8): New.
7647 (Qutf_8): Declare.
7648
7649 * coding.c (Qutf_8): New.
7650 (syms_of_coding): Intern it.
7651
7652 * fns.c: Doc fixes.
7653
7654 2003-06-02 Kenichi Handa <handa@m17n.org>
7655
7656 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7657
7658 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7659
7660 * lread.c (openp): Make sure STR is a string.
7661
7662 2003-06-01 David Ponce <david@dponce.com>
7663
7664 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
7665 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7666
7667 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7668 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7669 (discard_mouse_events): Discard WHEEL_EVENT events too.
7670 (lispy_wheel_names, wheel_syms): New.
7671 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
7672 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
7673 (make_lispy_event): Add WHEEL_EVENT handler.
7674
7675 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7676 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7677 WHEEL_EVENT events.
7678
7679 2003-05-31 John Paul Wallington <jpw@gnu.org>
7680
7681 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7682 timer are in lisp/emacs-lisp.
7683
7684 2003-05-31 Kenichi Handa <handa@m17n.org>
7685
7686 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7687 region when a buffer is changed to unibyte.
7688
7689 * charset.h (VALID_LEADING_CODE_P): New macro.
7690 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7691
7692 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7693 is nonzero, accept multibyte form of eight-bit-control chars.
7694 (decode_composition_emacs_mule): Likewise.
7695 (decode_coding_emacs_mule): Likewise.
7696 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7697 multibyte form of eight-bit-control chars.
7698
7699 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7700 (Finsert_file_contents): If coding-system-for-read is bound to
7701 Qauto_save_coding, use the coding system emacs-mule with special
7702 setting for recovering a file.
7703 (choose_write_coding_system): On auto saving, use the coding
7704 system emacs-mule with special setting for auto saving.
7705 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7706
7707 2003-05-30 Kenichi Handa <handa@m17n.org>
7708
7709 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7710 properly before calling ccl_driver.
7711
7712 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
7713
7714 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
7715 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7716 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7717
7718 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7719
7720 * xfaces.c (realize_default_face): Do not abort if lface is
7721 non-existent - reverts change from 2003-05-19.
7722
7723 2003-05-29 Kenichi Handa <handa@m17n.org>
7724
7725 * coding.c (decode_coding_iso2022): Pay attention to the byte
7726 sequence of CTEXT extended segment, and retain those bytes as is.
7727
7728 2003-05-28 Kenichi Handa <handa@m17n.org>
7729
7730 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
7731 of CODING_REPLACEMENT_CHARACTER.
7732 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7733 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7734 check this flag on encoding.
7735 (encode_coding_sjis_big5):
7736 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7737 (Fset_terminal_coding_system_internal):
7738 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7739 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7740
7741 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
7742 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7743 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7744
7745 2003-05-28 Richard M. Stallman <rms@gnu.org>
7746
7747 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7748
7749 * eval.c (unbind_to): Move init of this_binding to separate statement.
7750
7751 2003-05-28 Kim F. Storm <storm@cua.dk>
7752
7753 * xdisp.c (expose_window): Fix error in calculation of
7754 window relative coordinates of area to redisplay.
7755
7756 2003-05-27 Jason Rumney <jasonr@gnu.org>
7757
7758 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7759
7760 2003-05-27 David Ponce <david@dponce.com>
7761
7762 Handle W32 mouse wheel events as mouse click events, like in X.
7763
7764 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7765 MOUSE_WHEEL_EVENT anymore.
7766
7767 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7768 Scrolling down/up the mouse wheel is respectively mapped to mouse
7769 button 4 and 5.
7770 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7771 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7772 WM_MOUSEWHEEL events.
7773
7774 2003-05-27 Andreas Schwab <schwab@suse.de>
7775
7776 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7777
7778 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7779 partially visible line.
7780
7781 * alloc.c (Fgarbage_collect): Fix last change.
7782
7783 2003-05-26 John Paul Wallington <jpw@gnu.org>
7784
7785 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7786
7787 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7788
7789 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7790 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7791
7792 * window.h (window_box_text_cols): Declare.
7793
7794 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7795 (x_draw_vertical_border): Remove unused var `f'.
7796
7797 * xfaces.c (build_scalable_font_name): Remove `unused var
7798 pixel_size' warning.
7799
7800 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7801
7802 * unexelf.c (unexec): Remove `unused var n' warning.
7803
7804 * strftime.c (my_strftime_localtime_r): Remove `defined but
7805 unused' warning.
7806
7807 * process.c (allocate_pty): Remove `unused var stb' and
7808 `cp might be used uninitialized' warnings.
7809
7810 * dispnew.c (mode_line_string): Remove unused var `f'.
7811
7812 * coding.c (find_safe_codings): Remove unused var `i'.
7813
7814 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7815
7816 * buffer.c (Fkill_buffer): Remove unused var `list'.
7817
7818 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7819
7820 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7821
7822 * frame.c (make_frame): Condition want_fullscreen with
7823 HAVE_WINDOW_SYSTEM.
7824
7825 2003-05-25 Juanma Barranquero <lektu@terra.es>
7826
7827 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7828 (Fwindow_scroll_bars): Fix typo in docstring.
7829
7830 2003-05-24 Kim F. Storm <storm@cua.dk>
7831
7832 The following changes serve several purposes:
7833
7834 1) Swap the position of fringes and display margins in windows, i.e.
7835 the fringes are now displayed between the margins and the text area
7836 (by default).
7837
7838 2) Allow fringe and scroll bar parameters to be set per-buffer and
7839 per-window (like display margins). Such settings are now stored
7840 in window configurations, preserved when frames are resized, and
7841 copied when windows are split vertically or horizontally.
7842 Several bugs related to display margins have been fixed.
7843
7844 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
7845
7846 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7847 rather than FRAME_WIDTH (FRAME_FONT (f)).
7848
7849 5) Introduce a consistent naming of variables, members and macros
7850 depending on whether their value is measured in pixels or in
7851 canonical columns/lines. Pixel dimensions are named *_width and
7852 *_height, while canonical columns/lines are named *_cols and
7853 *_lines. Pixel positions are named *_x and *_y, while column/line
7854 positions are named *_col and *_line.
7855
7856 6) Consolidate more of the X, W32, and MAC gui code by moving
7857 common data into struct frame, and generalize it for the non-gui
7858 case by using suitable defaults.
7859
7860 7) Cleanup and consolidate the macros controlling frame and window
7861 layout into frame.h and window.h, and generalize the use of the
7862 various window_box_* functions (enhanced to handle the new fringe
7863 position and the per-window fringe and scroll bar settings).
7864
7865 * frame.h (struct frame): Rename members height to text_lines,
7866 width to text_cols, window_height to total_lines, window_width to
7867 total_cols, new_height to new_text_lines, new_width to
7868 new_text_cols. All uses changed.
7869 (struct frame): New members which consolidate common members of
7870 x_output, w32_output, and mac_output structures: left_pos,
7871 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7872 win_gravity, size_hint_flags, border_width, internal_border_width,
7873 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7874 want_fullscreen. All uses changed.
7875 (struct frame): New member column_width contaning the canonical
7876 column width, analogue to line_height. All uses changed.
7877 (struct frame): Rename members scroll_bar_pixel_width to
7878 config_scroll_bar_width, and scroll_bar_cols to
7879 config_scroll_bar_cols. All uses changed.
7880 (struct frame): New member scroll_bar_actual_width which
7881 consolidates and renames the vertical_scroll_bar_extra member of
7882 x_output, w32_output, and mac_output structures. All uses changed.
7883 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
7884 from x/w32/macterm.h files. All uses changed. Also change code
7885 which referred to f->output_data...->pixel_height.
7886 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
7887 from x/w32/macterm.h files. All uses changed. Also change code
7888 which referred to f->output_data...->pixel_width.
7889 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
7890 Also change code which referred to f->height.
7891 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
7892 Also change code which referred to f->width.
7893 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7894 to update new_text_lines and new_text_cols members directly.
7895 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
7896 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
7897 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
7898 FRAME_SCROLL_BAR_COLS. All uses changed.
7899 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
7900 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
7901 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7902 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7903 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
7904 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7905 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7906 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
7907 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7908 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
7909 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7910 Unconditionally return line_height member (it now has proper value
7911 also for non-window frames).
7912 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
7913 return new column_width member (rather than the default font width).
7914 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
7915 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
7916 from x/w32/macterm.h files. Unconditionally return corresponding
7917 member of frame structure (they now have proper values also for
7918 non-window frames).
7919 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
7920 Calculate return value from left and right widths.
7921 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7922 internal_border_width member (has proper value for non-window frame).
7923 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7924 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7925 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7926 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7927 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
7928 consolidated from xterm.h, macterm.h, and w32term.h.
7929 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
7930 consolidated from xterm.h, macterm.h, and w32term.h.
7931 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
7932 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
7933 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
7934 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
7935 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
7936 consolidated from x/mac/w32term.h.
7937 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
7938 consolidated from x/mac/w32term.h.
7939 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
7940 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
7941 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
7942 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7943
7944 * window.h (struct window): Rename members left to left_col,
7945 top to top_line, height to total_lines, width to total_cols,
7946 left_margin_width to left_margin_cols, right_margin_width to
7947 right_margin_cols, orig_height to orig_total_lines, orig_top to
7948 orig_top_line. All uses changed.
7949 (struct window): New members left_fringe_width, right_fringe_width,
7950 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7951 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7952 New macros primarily used to simplify other macros.
7953 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7954 referred to XINT (w->width).
7955 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7956 referred to XINT (w->height).
7957 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7958 referred to XINT (w->width) * canon_x_unit.
7959 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7960 referred to XINT (w->height) * canon_y_unit.
7961 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7962 referred to XINT (w->left).
7963 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
7964 all uses and code that referred to XINT (w->left) + XINT (w->width).
7965 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7966 referred to XINT (w->top).
7967 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7968 referred to XINT (w->top) + XINT (w->height).
7969 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7970 referred to XINT (w->left) * canon_x_unit.
7971 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7972 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7973 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7974 referred to XINT (w->top) * canon_y_unit.
7975 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7976 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7977 (WINDOW_LEFTMOST_P): New macro.
7978 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
7979 All uses changed.
7980 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
7981 All uses changed.
7982 (WINDOW_BOX_LEFT_EDGE_X): Rename from
7983 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7984 Do not exclude left fringe width.
7985 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
7986 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7987 Do not exclude fringe widths.
7988 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7989 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7990 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7991 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7992 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7993 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7994 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7995 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7996 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7997 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7998 New macros. Change code which referenced corresponding
7999 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8000 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8001 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8002 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8003 allow per-window scroll-bar settings.
8004 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8005 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8006 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8007 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8008 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8009 FRAME_SCROLL_BAR_WIDTH.
8010 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
8011 (WINDOW_SCROLL_BAR_AREA_X): New macros.
8012 (WINDOW_HEADER_LINE_HEIGHT): Rename from
8013 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
8014 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
8015 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
8016 (WINDOW_BOX_TEXT_HEIGHT): Rename from
8017 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8018 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8019 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8020 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8021 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
8022 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8023 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
8024 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8025 (window_from_coordinates): Update prototype.
8026 (Fset_window_buffer): Update EXFUN.
8027 (set_window_buffer): Update prototype.
8028
8029 * dispextern.h (struct glyph_matrix): Rename members window_left_x
8030 to window_left_col, window_top_y to window_top_line. All uses
8031 changed.
8032 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8033 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8034 internal_border_width is now set to 0 for non-window frames.
8035 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8036 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8037 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8038 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8039 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8040 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8041 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8042 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8043 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
8044 Move to window.h and renamed [see window.h changes].
8045 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8046 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
8047 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8048 Use WINDOW_TOTAL_LINES.
8049 (frame_update_line_height): Remove prototype.
8050
8051 * buffer.h (struct buffer): Rename members measured in columns:
8052 left_margin_width to left_margin_cols, right_margin_width to
8053 right_margin_cols. All uses changed.
8054 New members left_fringe_width, right_fringe_width,
8055 fringes_outside_margins for per-buffer fringe settings.
8056 New members scroll_bar_width and vertical_scroll_bar_type for
8057 per-buffer scroll bar settings.
8058
8059 * buffer.c (init_buffer_once): Set buffer_defaults and
8060 buffer_local_flags for new buffer-local variables
8061 left_fringe_width, right_fringe_width, fringes_outside_margins,
8062 scroll_bar_width, and vertical_scroll_bar_type.
8063 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8064 default-* variables for them.
8065
8066 * dispnew.c: Make (many) trivial substitutions for renamed and
8067 new macros in dispextern.h, frame.h and window.h.
8068 (mode_line_string): No need to adjust width for mode lines, as it
8069 is already adjusted by the caller.
8070 (marginal_area_string): Handle fringes inside/outside margins.
8071
8072 * frame.c: Make (many) trivial substitutions for renamed and
8073 new macros in dispextern.h, frame.h and window.h.
8074 (make_frame): Initialize left_fringe_width, right_fringe_width,
8075 fringe_cols, scroll_bar_actual_width, border_width,
8076 internal_border_width, column_width, line_height, x_pixels_diff,
8077 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8078 members with values suitable for a non-window frames.
8079
8080 * gtkutil.c: Make (many) trivial substitutions for renamed and
8081 new macros in dispextern.h, frame.h and window.h.
8082
8083 * indent.c: Make (few) trivial substitutions for renamed and
8084 new macros in dispextern.h, frame.h and window.h.
8085
8086 * keyboard.c: Make (many) trivial substitutions for renamed and
8087 new macros in dispextern.h, frame.h and window.h.
8088 (make_lispy_event): Use window positions returned from
8089 window_from_coordinates when constructing the lisp event for
8090 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8091 (incorrect) values locally.
8092 (make_lispy_movement): Use window positions returned from
8093 window_from_coordinates when constructing the lisp event, rather
8094 than calculating (incorrect) values locally.
8095
8096 * scroll.c: Make (some) trivial substitutions for renamed and
8097 new macros in dispextern.h, frame.h and window.h.
8098
8099 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8100 scroll-bars.
8101
8102 * sysdep.c: Make (few) trivial substitutions for renamed and
8103 new macros in dispextern.h, frame.h and window.h.
8104
8105 * term.c: Make (some) trivial substitutions for renamed and
8106 new macros in dispextern.h, frame.h and window.h.
8107
8108 * widget.c: Make (few) trivial substitutions for renamed and
8109 new macros in dispextern.h, frame.h and window.h.
8110
8111 * window.c: Make (many) trivial substitutions for renamed and
8112 new macros in dispextern.h, frame.h and window.h.
8113 (make_window): Initialize new members
8114 left_margin_cols, right_margin_cols, left_fringe_width,
8115 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8116 and vertical_scroll_bar_type.
8117 (coordinates_in_window): Adapt to new fringe/margin positions
8118 and per-window fringes and scroll-bars.
8119 Fix bug related to incorrectly adjusting coordinates by
8120 frame's internal_border_width (the effect normally negible since
8121 the internal_border_width is typically 0 or 1 pixel, but very
8122 noticeable for an internal_border_width of e.g. 25 pixels).
8123 Upon successful return (other than ON_NOTHING), the coordinates
8124 are now always properly converted to window relative for the
8125 given display element.
8126 (window_from_coordinates): Add new parameters wx and wy to
8127 return the window relative x and y position in the returned
8128 window and part. A null arg means, don't return the position.
8129 All callers changed.
8130 (adjust_window_margins): New function which may reduce the width
8131 of the display margins if a window's text area is too small after
8132 resizing or splitting windows.
8133 (size_window): Fix bug that did not account for display margin
8134 widths when checking the minimum width of a window; use
8135 adjust_window_margins.
8136 (set_window_buffer): Call Fset_window_fringes and
8137 Fset_window_scroll_bars to setup per-window elements.
8138 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8139 existing display margin, fringe widths, and scroll bar settings
8140 (e.g. after splitting a window or resizing the frame).
8141 All callers changed.
8142 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8143 (Fsplit_window): Duplicate original window's display margin,
8144 fringe, and scroll-bar settings; then call Fset_window_buffer with
8145 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8146 window to only preserve the display margins in one of the windows.
8147 When splitting horizontally, call adjust_window_margins on both
8148 windows to ensure that the text area of the new windows is non too
8149 narrow. This fixes a bug which could cause Emacs to trap if the
8150 width of the split window was less than the width of the display
8151 margins.
8152 (window_box_text_cols): Rename from window_internal_width.
8153 All uses changed. Adapt to per-window fringes and scroll bars.
8154 Fix bug that caused vertical separator to be subtracted also on
8155 window frames. Fix another bug that did not reduce the returned
8156 value by the columns used for display margins.
8157 (window_scroll_line_based): Fix bug related to scrolling too much
8158 when display margins are present (implicitly fixed by the fix to
8159 window_box_text_cols).
8160 (scroll_left, scroll_right): Fix bug related to scrolling too far
8161 by default when display margins are present (implicitly fixed by
8162 the fix to window_box_text_cols).
8163 (struct saved_window): Rename members left to left_col, top to
8164 top_line, width to total_cols, height to total_lines, orig_top to
8165 orig_top_line, orig_height to orig_total_lines. All uses changed.
8166 New members left_margin_cols, right_margin_cols,
8167 left_fringe_width, right_fringe_width, fringes_outside_margins,
8168 scroll_bar_width, and vertical_scroll_bar_type for saving
8169 per-window display elements.
8170 (Fset_window_configuration): Restore display margins, fringes,
8171 and scroll bar settings. This fixes a bug which caused display
8172 margins to be discarded when saving and restoring a window
8173 configuration.
8174 (save_window_save): Save display margins, fringes, and scroll bar
8175 settings. This fixes a bug which caused display margins to be
8176 discarded when saving and restoring a window configuration.
8177 (Fset_window_margins): Do nothing if display margins are not
8178 really changed. Otherwise, call adjust_window_margins to ensure
8179 the text area doesn't get too narrow. This fixes a bug which
8180 could cause Emacs to trap if setting display margins wider than
8181 the width of the window.
8182 (Fset_window_fringes): New defun to allow user to specifically set
8183 this window's fringe widths and position vs. display margins.
8184 (Fwindow_fringes): New defun to return window's actual fringe settings.
8185 (Fset_window_scroll_bars): New defun to allow user to specifically
8186 set this window's scroll bar width and position.
8187 (Fwindow_scroll_bars): New defun to return window's actual scroll
8188 bar settings.
8189 (compare_window_configurations): Also compare display margins,
8190 fringes, and scroll bar settings.
8191 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8192
8193 * xdisp.c: Make (many) trivial substitutions for renamed and
8194 new macros in dispextern.h, frame.h and window.h.
8195 (window_box_width): Adapt to per-window fringes and scroll bars,
8196 and new fringe vs. display margin position. Note that returned
8197 value is no longer guaranteed to be a whole multiple of the frame
8198 column width, since per-window fringes may now be any width.
8199 (window_box_left_offset): New function like window_box_left, but
8200 value is relative to left border of window (rather than frame).
8201 (window_box_right_offset): New function like window_box_right,
8202 but value is relative to left border of window.
8203 (window_box_left): Adapt to per-window fringes and scroll bars,
8204 and new fringe vs. display margin position. Simplify by using
8205 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8206 (window_box): Allow null args for unnecessary return values;
8207 change/simplify relevant callers.
8208 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
8209 and new fringe vs. display margin position.
8210 Use window_box_left_offset and window_box_right_offset
8211 (get_glyph_string_clip_rect): Adapt to per-window fringes and
8212 scroll bars, and new fringe vs. display margin position.
8213 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
8214 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8215 fringe vs. display margin position.
8216 (hscroll_window_tree): Use window_box_width instead of window_box.
8217 (redisplay_window): Adapt to per-window scroll bars.
8218 (draw_glyphs): Rework to handle per-window fringes and scroll
8219 bars, and new fringe vs. display margin position.
8220 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
8221 (x_clear_end_of_line): Adapt to per-window fringes and scroll
8222 bars, and new fringe vs. display margin position. Fix bug which
8223 increased total width of full_width rows by width of scroll bars
8224 although window's total width already includes that.
8225 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8226 (expose_area): Simplify using window_box_left_offset.
8227 (x_draw_vertical_border): Handle per-window scroll bar settings,
8228 mixing windows with left, right and no scroll bars.
8229
8230 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8231 where it's used in x_list_fonts (for clarity).
8232 (frame_update_line_height): Remove unused function; functionality
8233 is now done directly when setting the default font in x_set_font.
8234
8235 * xfns.c: Make (many) trivial substitutions for renamed and
8236 new macros in dispextern.h, frame.h and window.h.
8237
8238 * xmenu.c: Make (some) trivial substitutions for renamed and
8239 new macros in dispextern.h, frame.h and window.h.
8240
8241 * xterm.h (struct x_output): Move members left_pos, top_pos,
8242 border_width, pixel_height, pixel_width, line_height,
8243 internal_border_width, vertical_scroll_bar_extra,
8244 left_fringe_width, right_fringe_width, fringe_cols,
8245 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8246 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8247 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8248 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8249 (PIXEL_WIDTH, PIXEL_HEIGHT)
8250 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8251 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8252 frame.h and renamed [see frame.h changes].
8253 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8254 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8255 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8256 and renamed [see frame.h changes].
8257
8258 * xterm.c: Make (several) trivial substitutions for renamed and
8259 new macros in dispextern.h, frame.h and window.h.
8260 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8261 (scroll_run): Adapt to new fringe position.
8262 (glyph_rect): Use window coordinates returned from
8263 window_from_coordinates rather than frame_to_window_pixel_xy.
8264 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8265 scroll-bars.
8266 (handle_one_xevent): Simplify a USE_GTK conditional.
8267 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8268 (fringes are now inside margins, i.e. always in the clipping area).
8269 All callers changed.
8270 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8271 directly, then call compute_fringe_widths. Don't call
8272 frame_update_line_height.
8273
8274 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8275 border_width, pixel_height, pixel_width, line_height,
8276 internal_border_width, vertical_scroll_bar_extra,
8277 left_fringe_width, right_fringe_width, fringe_cols,
8278 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8279 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8280 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8281 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8282 (PIXEL_WIDTH, PIXEL_HEIGHT)
8283 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8284 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8285 frame.h and renamed [see frame.h changes].
8286 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8287 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8288 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8289 and renamed [see frame.h changes].
8290
8291 * w32term.c: Make (several) trivial substitutions for renamed and
8292 new macros in dispextern.h, frame.h and window.h.
8293 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8294 (glyph_rect): Use window coordinates returned from
8295 window_from_coordinates rather than frame_to_window_pixel_xy.
8296 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8297 scroll-bars.
8298 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8299 (fringes are now inside margins, i.e. always in the clipping area).
8300 All callers changed.
8301 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8302 directly, then call compute_fringe_widths. Don't call
8303 frame_update_line_height.
8304
8305 * w32console.c: Make (few) trivial substitutions for renamed and
8306 new macros in dispextern.h, frame.h and window.h.
8307
8308 * w32fns.c: Make (many) trivial substitutions for renamed and
8309 new macros in dispextern.h, frame.h and window.h.
8310
8311 * w32menu.c: Make (few) trivial substitutions for renamed and
8312 new macros in dispextern.h, frame.h and window.h.
8313
8314 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8315 border_width, pixel_height, pixel_width, line_height,
8316 internal_border_width, vertical_scroll_bar_extra,
8317 left_fringe_width, right_fringe_width, fringe_cols,
8318 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8319 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8320 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8321 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8322 (PIXEL_WIDTH, PIXEL_HEIGHT)
8323 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8324 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8325 frame.h and renamed [see frame.h changes].
8326 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8327 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8328 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8329 and renamed [see frame.h changes].
8330
8331 * macterm.c: Make (several) trivial substitutions for renamed and
8332 new macros in dispextern.h, frame.h and window.h.
8333 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8334 (glyph_rect): Use window coordinates returned from
8335 window_from_coordinates rather than frame_to_window_pixel_xy.
8336 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8337 scroll-bars.
8338 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8339 (fringes are now inside margins, i.e. always in the clipping area).
8340 All callers changed.
8341 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8342 directly, then call compute_fringe_widths. Don't call
8343 frame_update_line_height.
8344
8345 * macfns.c: Make (several) trivial substitutions for renamed and
8346 new macros in dispextern.h, frame.h and window.h.
8347 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
8348
8349 * macmenu.c: Make (few) trivial substitutions for renamed and
8350 new macros in dispextern.h, frame.h and window.h.
8351
8352 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8353 and line_height, and use corresponding new members in struct
8354 frame. All uses changed.
8355 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8356 superseeded by corresponding macros in frame.h.
8357
8358 * msdos.c: Make (several) trivial substitutions for renamed and
8359 new macros in dispextern.h, frame.h and window.h.
8360 (IT_note_mouse_highlight): Use updated window coordinates returned
8361 by window_from_coordinates, rather than adjusting them locally.
8362 (internal_terminal_init): No need to initialize line_height here;
8363 it now defaults to 1.
8364
8365 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8366
8367 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8368 dropping `down' events.
8369
8370 2003-05-24 Andreas Schwab <schwab@suse.de>
8371
8372 * coding.c (find_safe_codings): Fix last change.
8373
8374 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8375
8376 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8377
8378 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8379
8380 * xdisp.c (display_mode_element): Increase max depth.
8381 Simplify the error handling code. Use a different error string
8382 for the case where we hit the depth limit.
8383
8384 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8385
8386 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8387
8388 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8389
8390 * intervals.c (get_local_map): Don't get char-property of previous
8391 point any more: get_pos_property already does it and better.
8392
8393 2003-05-21 Dave Love <fx@gnu.org>
8394
8395 [Merged from unicode branch.]
8396
8397 * xfns.c (x_window, x_window): Use use_xim.
8398
8399 * xterm.c (use_xim): Initialize.
8400 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8401 (x_term_init): Maybe set use_xim.
8402
8403 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8404
8405 2003-05-21 Jason Rumney <jasonr@gnu.org>
8406
8407 * unexw32.c (_start): Remove _fmode initialization.
8408
8409 * emacs.c (main) [WINDOWSNT]: Move it here.
8410
8411 2003-05-20 Dave Love <fx@gnu.org>
8412
8413 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8414
8415 2003-05-19 Richard M. Stallman <rms@gnu.org>
8416
8417 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8418 as value for QCfont attribute.
8419 (realize_default_face): lface should already exist; crash if not.
8420 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8421
8422 * frame.c (Fignore_event): Doc fix.
8423
8424 2003-05-19 Kenichi Handa <handa@m17n.org>
8425
8426 * coding.c (decode_coding_string): Handle post-read-conversion
8427 even if the coding doesn't require decoding.
8428
8429 2003-05-18 Richard M. Stallman <rms@gnu.org>
8430
8431 * callproc.c (Fcall_process_region): Doc fix.
8432
8433 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8434
8435 * lread.c (Fload): Print a message if package is obsolete.
8436
8437 * window.c (Fselect_window): Add optional `norecord' arg.
8438 (select_window_1): Fold into Fselect_window.
8439 (select_window_norecord): New function.
8440 (temp_output_buffer_show): Use it. Preserve current buffer.
8441
8442 * window.h (Fselect_window): Update declaration.
8443
8444 * window.c (delete_window, Fother_window, Fset_window_configuration):
8445 * minibuf.c (read_minibuf):
8446 * macterm.c (x_new_focus_frame):
8447 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8448 * callint.c (Fcall_interactively):
8449 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8450
8451 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8452
8453 2003-05-17 David Kastrup <dak@gnu.org>
8454
8455 * process.c (read_process_output): Back out change from 2003-03-09.
8456
8457 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8458
8459 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8460
8461 * textprop.c (text_property_stickiness): New arg `buffer'.
8462
8463 * intervals.h (text_property_stickiness): New arg `buffer'.
8464 (get_pos_property): Declare.
8465
8466 * intervals.c (get_local_map): Use get_pos_property, to obey
8467 stickiness and empty overlays.
8468 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8469 (merge_properties, intervals_equal, merge_properties_sticky):
8470 Use XCAR, XCDR.
8471 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8472
8473 2003-05-17 Richard M. Stallman <rms@gnu.org>
8474
8475 * minibuf.c (read_minibuf): If buffer is empty, record the default
8476 in the history.
8477 (Fminibuffer_complete_word): When deleting the overlap, take account
8478 of its real position.
8479
8480 * fns.c (map_char_table): Fix previous change.
8481
8482 * syntax.c (find_defun_start):
8483 When open_paren_in_column_0_is_defun_start,
8484 return beginning of buffer.
8485
8486 * lisp.h (map_char_table): Declare added arg.
8487
8488 * fns.c (map_char_table): New arg TABLE gets the master table.
8489 All calls changed.
8490 Process default and inheritance, resorting to Faref if necessary.
8491
8492 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8493 (Faccessible_keymaps): Pass new arg to map_char_table.
8494
8495 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8496
8497 * casetab.c (set_case_table): Pass new arg to map_char_table.
8498
8499 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8500
8501 * lisp.h (specbinding_func): New typedef.
8502 (struct specbinding): Use specbinding_func, to put the `volatile'
8503 in the right place.
8504
8505 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8506 to avoid GCC warning.
8507
8508 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
8509
8510 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
8511
8512 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8513
8514 * keyboard.c (apply_modifiers): Don't fill the other cache.
8515
8516 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8517
8518 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8519
8520 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8521 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8522 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8523 (Fset_window_configuration, Fcurrent_window_configuration)
8524 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8525 (Fpos_visible_in_window_p, mark_window_cursors_off)
8526 (window_internal_height, window_internal_width, Frecenter)
8527 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8528 (replace_buffer_in_all_windows, init_window_once, init_window)
8529 (syms_of_window, keys_of_window): Move from lisp.h.
8530 * lisp.h: Move window.c declarations to window.h.
8531
8532 * bytecode.c: Include window.h.
8533 * emacs.c: Include window.h.
8534
8535 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
8536 (keyremap): Add `parent' field.
8537 (keyremap_step): Use it. Remove `parent' argument.
8538 (read_key_sequence): Setup and use the new `parent' field.
8539
8540 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8541
8542 * keyboard.c (adjust_point_for_property): Ensure termination.
8543
8544 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8545
8546 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8547 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8548 duplicated handling of function-key-map and key-translation-map
8549 in read_key_sequence.
8550 (read_key_sequence): Use them.
8551
8552 * keyboard.c (adjust_point_for_property): Try harder to move point
8553 to the non-sticky end of an invisible property.
8554
8555 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8556 property intangible as well.
8557
8558 2003-05-10 Andreas Schwab <schwab@suse.de>
8559
8560 * xmenu.c (single_menu_item): Change last parameter to void* to
8561 avoid warning.
8562
8563 2003-05-09 Richard M. Stallman <rms@gnu.org>
8564
8565 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8566 Bind Qinhibit_modification_hooks to t so there will be no GC.
8567 Rename local `tem' to `save_deactivate_mark'.
8568
8569 * eval.c (specpdl_ptr): Declare volatile.
8570 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8571 before doing the work of unbinding it.
8572
8573 * lisp.h (struct specbinding): Declare elements volatile.
8574 (specpdl_ptr): Declare volatile.
8575
8576 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8577
8578 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8579 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8580
8581 2003-05-08 Dave Love <fx@gnu.org>
8582
8583 * coding.c (Vlast_coding_system_used): Doc fix.
8584
8585 2003-05-07 Jason Rumney <jasonr@gnu.org>
8586
8587 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8588 when system does not support them.
8589
8590 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8591
8592 * fileio.c (Qwrite_region_annotate_functions): New var.
8593 (build_annotations): Use it to process the global part of the hook.
8594 (syms_of_fileio): Init and staticpro it.
8595
8596 * keyboard.c (safe_run_hooks_error): Display a message instead of
8597 silently ignoring the error.
8598
8599 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8600
8601 * keyboard.c (input_available_signal): Mark static.
8602 (menu_bar_items): Use map_keymap.
8603 (menu_bar_one_keymap): Remove.
8604 (menu_bar_item): Adjust arglist (for use in map_keymap).
8605 Properly hide a second binding when not both are keymaps.
8606
8607 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8608 (single_keymap_panes): Use it and map_keymap.
8609 (single_menu_item): Use skp as well.
8610
8611 * keymap.h (map_keymap_function_t): New type.
8612 (map_keymap): Declare.
8613
8614 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8615 (map_keymap_call, Fmap_keymap): New functions.
8616 (syms_of_keymap): Defsubr map-keymap.
8617
8618 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8619
8620 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8621 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8622 ..._with_mnemonic functions for menu items.
8623
8624 2003-05-01 Kenichi Handa <handa@m17n.org>
8625
8626 * coding.c (coding_system_accept_latin_extra_p): Delete this
8627 function.
8628 (find_safe_codings): Pay attention to
8629 the property tranlsation-table-for-encode of each codings.
8630 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8631
8632 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8633
8634 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8635
8636 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8637
8638 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8639
8640 * lisp.h (CHECK): Wrap args in parenthesis.
8641 (specbind): Fix doc: symbol = Qnil is not supported any more.
8642
8643 * bytecode.c (Fbyte_code) <unwind-protect>:
8644 Use Fprogn rather than 0 and Qnil.
8645
8646 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8647 `double', and `triple' modifiers as well.
8648
8649 2003-04-30 Richard M. Stallman <rms@gnu.org>
8650
8651 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8652
8653 * alloc.c (abort_on_gc): New variable.
8654 (Fgarbage_collect): Abort if abort_on_gc is set.
8655
8656 * lisp.h (abort_on_gc): Add decl.
8657
8658 * eval.c (Fsignal): Clear abort_on_gc.
8659
8660 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
8661 Reinit FORMAT_START and END before second scan.
8662
8663 * xdisp.c (move_it_vertically_backward): Do the final big else
8664 even if nlines is 0.
8665
8666 * xdisp.c (redisplay_internal): Finish the per-frame loop
8667 even if redisplay is suspended by input.
8668
8669 2003-04-24 Andrew Choi <akochoi@shaw.ca>
8670
8671 * macterm.c (x_list_fonts): Return all fonts that match if
8672 maxnames = -1.
8673
8674 2003-04-25 Kenichi Handa <handa@m17n.org>
8675
8676 * syntax.c (skip_chars): Fix previous change.
8677
8678 2003-04-24 Kenichi Handa <handa@m17n.org>
8679
8680 * syntax.c (skip_chars): Make the code faster by using the common
8681 technique of *p, *stop, and *endp.
8682
8683 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8684
8685 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
8686 tool_bar_items so GTK tool bar expose callback does not access items
8687 being updated.
8688
8689 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8690
8691 * eval.c (Fapply): Undo last change and add a comment about why.
8692
8693 2003-04-18 Miles Bader <miles@gnu.org>
8694
8695 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8696 pickier PARSE_MULTIBYTE_SEQ.
8697
8698 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8699
8700 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8701 Use XCDR, XCAR, CONSP.
8702 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8703 (Fapply): Remove unnecessary GCPRO.
8704
8705 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8706
8707 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8708
8709 * buffer.h: Don't hardcode BEG==1.
8710
8711 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8712
8713 2003-04-16 Richard M. Stallman <rms@gnu.org>
8714
8715 * xdisp.c (try_window, try_window_reusing_current_matrix):
8716 When at end of window, set window_end_pos to Z-ZV.
8717
8718 * buffer.c (Foverlay_recenter): Doc fix.
8719
8720 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8721
8722 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8723
8724 2003-04-14 Andrew Choi <akochoi@shaw.ca>
8725
8726 * macterm.c (mac_check_for_quit_char): Don't check more often than
8727 once a second.
8728
8729 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8730
8731 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8732 specially, so that they can't hide an implicit switch-frame event.
8733 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8734 (head_table): Use switch-frame as event_kind for select-window.
8735 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8736
8737 * editfns.c (Fformat): Lisp_Object/int mixup.
8738 (format2): Remove unused var numargs.
8739
8740 2003-04-11 Kenichi Handa <handa@m17n.org>
8741
8742 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
8743 (Qafter_insert_file_set_coding): New variable.
8744 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8745 for after-insert-file-adjust-coding-function.
8746 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8747 instead of Vafter_insert_file_adjust_coding_function.
8748
8749 2003-04-11 Kenichi Handa <handa@m17n.org>
8750
8751 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8752
8753 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8754 string. Callers changed.
8755
8756 2003-04-10 Kenichi Handa <handa@m17n.org>
8757
8758 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
8759 (syms_of_fileio): Declare it as a lisp variable.
8760 (Finsert_file_contents):
8761 Call Vafter_insert_file_adjust_coding_function before calling
8762 decode-format.
8763
8764 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8765
8766 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8767 get GtkAdjustment as widget now is a GtkRange.
8768
8769 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8770 GtkRange to avoid memory leak.
8771
8772 2003-04-09 Kenichi Handa <handa@m17n.org>
8773
8774 * xfaces.c (Vface_font_rescale_alist): New variable.
8775 (struct font_name): New member rescale_ratio.
8776 (font_rescale_ratio): New function.
8777 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
8778 (better_font_p): On comparing point sized, pay attention to
8779 recale_ratio member of fonts.
8780 (build_scalable_font_name): Reflect font->rescale_ratio in the
8781 font name.
8782 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8783
8784 * lread.c (read1): Before calling index, check if the 2nd
8785 arguemnt is in ASCII range.
8786
8787 2003-04-08 Richard M. Stallman <rms@gnu.org>
8788
8789 * fileio.c (Ffile_symlink_p): Doc fix.
8790
8791 * editfns.c (Fformat): Translate positions of text properties
8792 in the format string to apply them to the result.
8793
8794 * fileio.c (Finsert_file_contents): Doc fix.
8795 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8796
8797 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
8798
8799 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8800
8801 2003-04-08 Steven Tamm <steventamm@mac.com>
8802
8803 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8804 that self-contained application finds libexec files.
8805
8806 2003-04-08 Kenichi Handa <handa@m17n.org>
8807
8808 * coding.c (code_convert_region_unwind):
8809 Set Vlast_coding_system_used to the argument.
8810 (code_convert_region): If post-read-conversion function changed
8811 the value of last-coding-sytem, keep the new value in
8812 coding->symbol so that it won't be overridden.
8813 (run_pre_post_conversion_on_str): Likewise.
8814 (coding_system_accept_latin_extra_p): New function.
8815 (find_safe_codings): Pay attention to characters registered in
8816 latin-extra-code-table.
8817
8818 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8819
8820 * Makefile.in (md5.o): Add missing dependency info.
8821
8822 2003-04-06 Richard M. Stallman <rms@gnu.org>
8823
8824 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8825
8826 * marker.c (verify_bytepos): New function.
8827
8828 * intervals.c (set_intervals_multibyte_1): When becoming
8829 multibyte, adjust right and left child sizes to a whole set of
8830 characters. If an interval gets zero total-length, delete it.
8831 If an interval consists of just its children, delete one of them.
8832
8833 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8834 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
8835
8836 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8837 All calls deleted.
8838 (lisp_malloc): Do the work here directly.
8839
8840 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8841
8842 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8843 char tables.
8844
8845 2003-04-04 Kenichi Handa <handa@m17n.org>
8846
8847 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8848 destructively change "%S" to "%s".
8849
8850 2003-04-03 Miles Bader <miles@gnu.org>
8851
8852 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8853 always set.
8854
8855 2003-04-01 Dave Love <fx@gnu.org>
8856
8857 * xfns.c (xpm_lookup_color): Grok "opaque".
8858
8859 2003-03-31 Andrew Choi <akochoi@shaw.ca>
8860
8861 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8862 parent window ID.
8863
8864 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8865
8866 * macterm.h (struct mac_output): Define x_pixels_diff and
8867 y_pixels_diff.
8868
8869 2003-03-31 Juanma Barranquero <lektu@terra.es>
8870
8871 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8872 blockinput.h and files included from it.
8873
8874 2003-03-31 Kim F. Storm <storm@cua.dk>
8875
8876 The following changes consolidates the common code related to
8877 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8878 files into frame.c.
8879
8880 * frame.c: Include blockinput.h.
8881 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8882 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8883 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8884 related vars here.
8885 (struct frame_parm_table, frame_parms): New table for describing
8886 frame parameters and their associated Q-variable.
8887 The order of the parameters corresponds to the sequence of the
8888 frame_parm_handlers table in redisplay_interface.
8889 (x_fullscreen_move, x_set_frame_parameters)
8890 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8891 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8892 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8893 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8894 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8895 Generic functions for processing of frame parameters.
8896 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8897 (display_x_get_resource, x_get_resource_string): Functions for
8898 generic access to X resources.
8899 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8900 (x_default_parameter, Fx_parse_geometry): Functions for generic
8901 access to frame parameters.
8902 (x_figure_window_size): Generic calculation of frame size.
8903 Fixed to add space needed for tool bar. Also setup size_hint_flags.
8904 (syms_of_frame): Intern and staticpro frame parameter variables.
8905 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8906 Defsubr Sx_get_resource and Sx_parse_geometry.
8907
8908 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8909 parameter related vars defined in frame.c.
8910 (EMACS_CLASS): Define here.
8911 (enum FULLSCREEN_*): Define here.
8912 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8913 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8914 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8915 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8916 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8917 (x_set_visibility, x_set_autoraise, x_set_autolower)
8918 (x_set_unsplittable, x_set_vertical_scroll_bars)
8919 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8920 (x_figure_window_size): Add prototypes.
8921
8922 * dispextern.h (frame_parm_handler): New typedef.
8923 (struct redisplay_interface): New member frame_parm_handlers.
8924 (enum resource_types): Move declaration here.
8925 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8926 (x_default_parameter): Add prototypes.
8927
8928 * window.c: Remove extern decl for frame parameter vars.
8929 (change_window_heights): New generic function;
8930 replaces x_change_window_heights. All users changed.
8931
8932 * window.h (change_window_heights): Add prototype.
8933
8934 * xfaces.c: Remove extern decl for frame parameter vars.
8935
8936 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8937 (struct w32_display_info): Fix type of xrdb member.
8938 (enum FULLSCREEN_*): Remove.
8939 Remove prototypes for generic functions (in frame.h).
8940
8941 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8942 parameters now defined in frame.h and frame.c.
8943 (Vx_resource_name): Remove. Use generic var.
8944 (enum x_frame_parms): Remove (bogus, unused enum).
8945 (check_x_display_info): Make non-static (for frame.c).
8946 (struct x_frame_parm_table, x_frame_parms): Remove.
8947 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8948 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8949 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8950 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8951 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8952 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8953 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8954 Remove. Use generic functions instead.
8955 (enum resource_types): Remove.
8956 (x_set_scroll_bar_default_width): New global function (for frame.c).
8957 (Fx_create_frame): Depend on x_figure_window_size to add space for
8958 toolbar and setup size_hint_flags.
8959 (x_frame_parm_handlers): New table for redisplay_interface.
8960 (syms_of_xfns): Don't intern/staticpro removed vars.
8961
8962 * xterm.c: Remove unnecessary extern declarations.
8963 (x_fullscreen_adjust): Remove. Use generic instead.
8964 (x_redisplay_interface): Add x_frame_parm_handlers member.
8965
8966 * w32gui.h (XrmDatabase): New (dummy) typedef.
8967
8968 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8969 (struct w32_display_info): Fix type of xrdb member.
8970 (enum FULLSCREEN_*): Remove.
8971 (x_fullscreen_adjust): Remove prototype.
8972
8973 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8974 parameters now defined in frame.h and frame.c.
8975 (Vx_resource_name): Remove. Use generic var.
8976 (enum x_frame_parms): Remove (bogus, unused enum).
8977 (check_x_display_info): Make non-static (for frame.c).
8978 (struct x_frame_parm_table, x_frame_parms): Remove.
8979 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8980 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8981 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8982 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8983 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8984 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8985 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8986 Remove. Use generic functions instead.
8987 (enum resource_types): Remove.
8988 (x_set_scroll_bar_default_width): New global function (for frame.c).
8989 (Fx_create_frame): Depend on x_figure_window_size to add space for
8990 toolbar and setup size_hint_flags.
8991 (w32_frame_parm_handlers): New table for redisplay_interface.
8992 (syms_of_w32fns): Don't intern/staticpro removed vars.
8993
8994 * w32term.c: Remove unnecessary extern declarations.
8995 (x_fullscreen_adjust): Remove. Use generic instead.
8996 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8997
8998 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8999
9000 * macgui.h (XrmDatabase): New (dummy) typedef.
9001
9002 * macterm.h (EMACS_CLASS): Remove.
9003 (struct mac_display_info): Add xrdb member.
9004 (struct mac_output): Add want_fullscreen member.
9005
9006 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9007 parameters now defined in frame.h and frame.c.
9008 (Vx_resource_name): Remove. Use generic var.
9009 (check_x_display_info): Make non-static (for frame.c).
9010 (struct x_frame_parm_table, x_frame_parms): Remove.
9011 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9012 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9013 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9014 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9015 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9016 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9017 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9018 Remove. Use generic functions instead.
9019 (enum resource_types): Remove.
9020 (x_set_scroll_bar_default_width): New global function (for frame.c).
9021 (mac_frame_parm_handlers): New table for redisplay_interface.
9022 (syms_of_macfns): Don't intern/staticpro removed vars.
9023
9024 * macterm.c: Remove unnecessary extern declarations.
9025 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9026
9027 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9028 included from it (atimer.h and systime.h).
9029
9030 2003-03-30 Andreas Schwab <schwab@suse.de>
9031
9032 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9033 parameters for shift_glyphs_for_insert.
9034
9035 * macterm.c (x_redisplay_interface): Add missing entry for
9036 draw_vertical_window_border.
9037
9038 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9039
9040 * fileio.c (Fexpand_file_name): In the no-handler case, after
9041 expanding, look again for a handler and invoke it. This is needed
9042 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9043 expansion produces "/user@host:/bar/../baz" which needs to be
9044 expanded again for the finame result "/user@host:/baz".
9045
9046 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9047
9048 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9049 of area to be redrawn for better performance.
9050
9051 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9052
9053 * xterm.c (take_vertical_position_into_account): Remove.
9054 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9055 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9056 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9057 (x_set_toolkit_scroll_bar_thumb): Simplify.
9058 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9059 (XTread_socket): Remove unused var.
9060 (x_make_frame_invisible): Replace goto with else.
9061
9062 * xdisp.c (set_vertical_scroll_bar): New fun.
9063 (redisplay_window): Use it.
9064
9065 2003-03-26 Richard M. Stallman <rms@gnu.org>
9066
9067 * xdisp.c (update_tool_bar): Recompute tool bar if
9068 update_mode_lines is set. Set w->update_mode_line
9069 only if the tool bar contents actually change.
9070 (update_menu_bar): Undo previous change.
9071
9072 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9073
9074 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9075 (xg_frame_set_char_size): Calculate scroll bar width before frame
9076 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9077 (xg_separator_p): Check for all documented separator types.
9078 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9079 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9080
9081 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9082 so tool bar gets updated.
9083
9084 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9085
9086 * data.c (store_symval_forwarding): Re-instate part of the code
9087 that was deleted with too much enthusiasm.
9088
9089 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9090
9091 * data.c (store_symval_forwarding): Delete special read-only
9092 hack for type == -1, since we now use ->constant instead.
9093 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9094
9095 * buffer.c (overlays_in): Declare static.
9096 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9097 `constant' field rather than the variable's `type' field.
9098
9099 2003-03-24 Andrew Choi <akochoi@shaw.ca>
9100
9101 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9102
9103 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9104
9105 * fns.c [MAC_OSX]: Do not redefine vector.
9106
9107 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9108
9109 * macgui.h: Remove definition of No_Cursor.
9110
9111 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
9112
9113 * xdisp.c: Define No_Cursor.
9114 (x_write_glyphs, notice_overwritten_cursor)
9115 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9116 (note_mouse_highlight): Remove Mac-specific code.
9117 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
9118
9119 2003-03-24 John Paul Wallington <jpw@gnu.org>
9120
9121 * xdisp.c (redisplay_window): If mini window's buffer is not
9122 empty, then redisplay it like other windows.
9123
9124 2003-03-23 Kim F. Storm <storm@cua.dk>
9125
9126 * w32term.c (w32_draw_window_cursor): Fix last change.
9127
9128 2003-03-23 Kenichi Handa <handa@m17n.org>
9129
9130 * alloc.c (make_string_from_bytes, make_specified_string):
9131 Add `const' for the arg CONTENTS.
9132
9133 * lisp.h (make_string_from_bytes, make_specified_string):
9134 Prototypes adjusted.
9135
9136 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9137
9138 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9139
9140 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9141 (XG_SB_RANGE): New define.
9142
9143 * gtkutil.c (xg_fixed_handle_expose): New function.
9144 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9145 expose events.
9146 (xg_update_scrollbar_pos): Take two more arguments, left and width
9147 of scroll bar including borders.
9148 Clear left and right part outside scroll bar separately as some
9149 themes have bars that are not an even number of pixels.
9150 Don't set reallocate_redraws, don't call
9151 gdk_window_process_all_updates.
9152 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9153 so no need to change it. Calculate size and value with XG_SB_RANGE.
9154
9155 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9156 Pass left and width of scroll bar including borders to
9157 xg_update_scrollbar_pos.
9158
9159 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9160
9161 * Makefile.in: Make sure space precedes end-of-line backslashes.
9162
9163 2003-03-22 Kim F. Storm <storm@cua.dk>
9164
9165 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9166 Add generic versions here. Remove system specific versions
9167 defined elsewhere.
9168
9169 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9170 Add prototypes.
9171
9172 * xterm.h (STORE_NATIVE_RECT): New macro.
9173
9174 2003-03-21 Kim F. Storm <storm@cua.dk>
9175
9176 * xdisp.c (get_glyph_string_clip_rect):
9177 Use FRAME_INTERNAL_BORDER_WIDTH.
9178
9179 * dispextern.h (struct redisplay_interface): Add active_p
9180 argument to draw_window_cursor member. All uses changed.
9181
9182 2003-03-21 Kim F. Storm <storm@cua.dk>
9183
9184 The following changes consolidate code related to writing and
9185 inserting glyphs, exposing frame, the tool bar, the mouse face,
9186 the output cursor, and help echo from xterm.c, w32term.c and
9187 macterm.c into xdisp.c. It also generalizes the use of the
9188 window_part enum instead of using numeric values throughout.
9189
9190 * xdisp.c: Consolidate gui-independent code here.
9191 Include keymap.h.
9192 (Qhelp_echo): Import.
9193 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9194 (help_echo_string, help_echo_window, help_echo_object)
9195 (previous_help_echo_string, help_echo_pos): Declare here.
9196 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9197 (estimate_mode_line_height): Define here. Handle windowing
9198 systems directly (without using estimate_mode_line_height_hook).
9199 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9200 (update_window_cursor, update_cursor_in_window_tree)
9201 (fast_find_position, fast_find_string_pos)
9202 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9203 (expose_area, expose_line, expose_overlaps, expose_window)
9204 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9205 declared static as they are only used locally in xdisp.c.
9206 (draw_glyphs): Rename from x_draw_glyphs and make static.
9207 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9208 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9209 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
9210 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
9211 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9212 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9213 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9214 (note_mouse_highlight, x_clear_window_mouse_face)
9215 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9216 (x_intersect_rectangles): New generic functions for use by xdisp.c
9217 and GUI front-ends.
9218 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9219 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9220
9221 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9222 (NativeRectangle): Generic typedef for rectangle type.
9223 (enum window_part): Move here from window.c.
9224 (struct redisplay_interface): New members flush_display_optional,
9225 define_frame_cursor, clear_frame_area, draw_window_cursor,
9226 draw_vertical_window_border, shift_glyphs_for_insert.
9227 Rename member clear_mouse_face to clear_window_mouse_face.
9228 (estimate_mode_line_height_hook): Remove hook.
9229 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9230 (tool_bar_item_info): Remove prototype.
9231 (help_echo_string, help_echo_window, help_echo_object)
9232 (previous_help_echo_string, help_echo_pos)
9233 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9234 (x_stretch_cursor_p, output_cursor): Declare extern.
9235 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9236 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9237 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9238 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9239 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9240 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9241 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9242 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9243 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9244 Add prototypes.
9245 (mode_line_string, marginal_area_string): Fix prototypes.
9246
9247 * window.c (enum window_part): Move to dispextern.h.
9248 (coordinates_in_window): Use enum window_part member names
9249 instead of numbers to describe return value.
9250 (struct check_window_data): Change part member to window_part.
9251 (check_window_containing): Return window_part unaltered.
9252 (window_from_coordinates): Change part arg from int to enum
9253 window_part. Allow part arg to be null. All users changed.
9254
9255 * window.h (window_from_coordinates): Fix prototype.
9256
9257 * term.c (estimate_mode_line_height): Move to xdisp.c.
9258
9259 * keyboard.c (make_lispy_event): Use enum window_part.
9260
9261 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9262 window_part instead of int in arg list. Users changed.
9263
9264 * xterm.h (No_Cursor): Declare as None for X.
9265 (struct mac_output): Replace member cross_cursor by hand_cursor.
9266
9267 * xterm.c: Remove consolidated defines and code.
9268 (BETWEEN): Remove unused macro.
9269 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9270 (x_define_frame_cursor, x_clear_frame_area)
9271 (x_draw_window_cursor): New X-specific functions for RIF.
9272 (x_redisplay_interface): Add new members.
9273
9274 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9275
9276 * w32term.h (struct w32_output): Remove cross_cursor member.
9277
9278 * w32term.c: Remove consolidated defines and code.
9279 (BETWEEN): Remove unused macro.
9280 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9281 (w32_define_frame_cursor, w32_clear_frame_area)
9282 (w32_draw_window_cursor): New W32-specific functions for RIF.
9283 (w32_redisplay_interface): Add new members.
9284
9285 * w32gui.h (No_Cursor): Define as 0 for W32.
9286 (XRectangle): Add X compatible rectangle type.
9287 (NativeRectangle): Declare as RECT for W32.
9288 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9289
9290 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9291
9292 * w32console.c: Remove consolidated defines and code.
9293
9294 * msdos.h (Display_Info): Add generic typedef.
9295
9296 * msdos.c: Remove consolidated defines and code.
9297 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9298
9299 * macterm.h (struct mac_output): Replace member cross_cursor by
9300 hand_cursor.
9301 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9302
9303 * macterm.c: Remove consolidated defines and code.
9304 (BETWEEN): Remove unused macro.
9305 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9306 (mac_define_frame_cursor, mac_clear_frame_area)
9307 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9308 (x_redisplay_interface): Add new members.
9309
9310 * macgui.h (No_Cursor): Define as 0 for Mac.
9311 (XRectangle): Add X compatible rectangle type.
9312 (NativeRectangle): Declare as Rect for Mac.
9313 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9314
9315 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9316 (x_set_cursor_color): Use x_display_and_set_cursor.
9317
9318 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
9319 included from it. Add dependency on keymap.h.
9320
9321 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9322
9323 2003-03-21 Kenichi Handa <handa@m17n.org>
9324
9325 * fileio.c (Fexpand_file_name): Fix previous change.
9326
9327 2003-03-19 Kenichi Handa <handa@m17n.org>
9328
9329 * fileio.c (Ffile_name_directory): Reconstruct file name by
9330 make_specified_string.
9331 (Ffile_name_nondirectory, Ffile_name_as_directory)
9332 (Fdirectory_file_name, Fexpand_file_name)
9333 (Fsubstitute_in_file_name): Likewise.
9334 (Fread_file_name): Compare decoded homedir with DIR and
9335 DEFAULT_FILENAME.
9336
9337 * alloc.c (make_specified_string): If NCHARS is negative, count
9338 the number of characters.
9339
9340 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9341
9342 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9343 all widgets.
9344
9345 * gtkutil.h: Removed xg_ignore_next_thumb.
9346
9347 2003-03-18 Kenichi Handa <handa@m17n.org>
9348
9349 * coding.c (Vchar_coding_system_table): Remove this variable.
9350 (Vcoding_system_safe_chars): New variable.
9351 (intersection): Remove this function.
9352 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9353 all codings in SAFE_CODINGS.
9354 (Ffind_coding_systems_region_internal): Adjust for the change of
9355 find_safe_codings. Get generic coding systems from
9356 Vcoding_system_safe_chars.
9357 (Fdefine_coding_system_internal): New function.
9358 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9359 Initialize and staticpro Vcoding_system_safe_chars.
9360
9361 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9362
9363 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9364 equal old values before updating.
9365
9366 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9367
9368 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9369
9370 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9371
9372 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9373 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9374 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9375 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9376 (xg_create_scroll_bar): Pass bar to button event callback.
9377 (xg_find_top_left_in_fixed): New function.
9378 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9379 whole scroll bar area. Get old position with
9380 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9381 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9382 dragging is in progress. Calculate whole as for Motif.
9383 Remove code that saved last values. Call gtk_range functions to
9384 set scroll bar sizes.
9385
9386 * gtkutil.h: Removed xg_ignore_next_thumb.
9387
9388 2003-03-17 Juanma Barranquero <lektu@terra.es>
9389
9390 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9391 and files included from it.
9392
9393 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9394
9395 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9396 multiple occurrences of the same keymap under different prefixes.
9397 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9398
9399 2003-03-16 Jason Rumney <jasonr@gnu.org>
9400
9401 * w32gui.h: Use HDC for Display.
9402
9403 * w32term.c (w32_encode_char): Prevent double-byte chars from
9404 crashing Emacs.
9405
9406 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9407 as binary.
9408
9409 2003-03-16 Juanma Barranquero <lektu@terra.es>
9410
9411 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9412
9413 2003-03-16 Kim F. Storm <storm@cua.dk>
9414
9415 The following changes consolidate some of the gui-independent
9416 parts of the processing and drawing of "glyph strings" from
9417 xterm.c, w32term.c, and macterm.c into xdisp.c.
9418
9419 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9420 21 bits (this reduces number of faces from 4M to 2M).
9421 Replace W32 specific w32_font_type member (2 bits) by generic
9422 font_type member (3 bits) for portability.
9423 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9424 (enum draw_glyphs_face): Define here.
9425 (struct glyph_string): Define here. Merge W32 and X versions.
9426 (struct redisplay_interface): New members per_char_metric,
9427 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9428 (VCENTER_BASELINE_OFFSET): Define here.
9429 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9430 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9431
9432 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9433 (dump_glyph_string): Moved here.
9434 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9435 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9436 (fill_composite_glyph_string, fill_glyph_string)
9437 (fill_image_glyph_string, fill_stretch_glyph_string)
9438 (left_overwritten, left_overwriting, right_overwritten)
9439 (right_overwriting, get_char_face_and_encoding)
9440 (set_glyph_string_background_width, compute_overhangs_and_x)
9441 (append_glyph, append_composite_glyph, produce_image_glyph)
9442 (take_vertical_position_into_account, append_stretch_glyph)
9443 (produce_stretch_glyph): New generic functions (based on X version).
9444 Call platform specific functions through rif.
9445 (INIT_GLYPH_STRING): New macro, hides W32 details.
9446 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9447 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9448 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9449 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9450 (notice_overwritten_cursor):
9451 Generic functions exported to platform modules. Users changed.
9452
9453 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9454 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9455 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
9456 New macros for consolidated code.
9457
9458 * xterm.c: Remove consolidated defines and code.
9459 (x_per_char_metric, x_encode_char)
9460 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9461 (x_redisplay_interface): Add new members.
9462
9463 * w32gui.h (Display): Add dummy typedef for consolidation.
9464 (XChar2b): Define alias for wchar_t for consolidation.
9465 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9466
9467 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
9468 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
9469 New macros for consolidation.
9470
9471 * w32term.c: Remove consolidated defines and code.
9472 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9473 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9474 (w32_per_char_metric): Change font_type arg to int for RIF.
9475 (w32_encode_char): Return int according to RIF requirements.
9476 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9477 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9478 x_get_glyph_overhangs.
9479 (w32_redisplay_interface): Add new members.
9480
9481 * macgui.h (XChar2b): Move typedef here for consolidation.
9482 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9483
9484 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9485 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9486 consolidation.
9487
9488 * macterm.c: Remove consolidated defines and code.
9489 (mac_per_char_metric): New function for RIF.
9490 (mac_encode_char): Adapt to new RIF requirements.
9491 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9492 (x_redisplay_interface): Add new members.
9493
9494 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9495
9496 * keymap.c (Vmenu_events): New var.
9497 (syms_of_keymap): Initialize it.
9498 (where_is_internal): Check more carefully what is a menu event.
9499
9500 2003-03-14 Richard M. Stallman <rms@gnu.org>
9501
9502 * lread.c (read1): After #!, exit loop on eof.
9503
9504 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9505
9506 * gtkutil.h: Add declaration for xg_frame_cleared.
9507
9508 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9509
9510 * gtkutil.c (struct xg_last_sb_pos): New structure.
9511 (handle_fixed_child): New function.
9512 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9513 and force a redraw on them.
9514 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9515 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9516 so we can avoid unneeded redraws.
9517 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9518 and force a redraw on the scroll bar.
9519 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9520 if xg_last_sb_pos shows the positions are up to date.
9521 (xg_frame_cleared): New function.
9522
9523 2003-03-13 Kenichi Handa <handa@m17n.org>
9524
9525 * coding.c (Fdetect_coding_region): Fix docstring.
9526 (Fdetect_coding_string): Fix docstring.
9527
9528 2003-03-13 Andreas Schwab <schwab@suse.de>
9529
9530 * gtkutil.c: Add prototype for create_menus.
9531
9532 * data.c (long_to_cons): Fix type of top.
9533
9534 * xselect.c (selection_data_to_lisp_data): Use int instead of
9535 long for an integer of size 4.
9536
9537 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
9538 (xg_tool_bar_help_callback): Likewise.
9539
9540 2003-03-12 Andreas Schwab <schwab@suse.de>
9541
9542 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9543
9544 2003-03-12 Kim F. Storm <storm@cua.dk>
9545
9546 The following changes consolidate the fringe handling from
9547 xterm.c, w32term.c, and macterm.c into xdisp.c.
9548
9549 * xdisp.c: Consolidate fringe handling code here.
9550 (left_bits, right_bits, continued_bits, continuation_bits)
9551 (ov_bits, zv_bits): Define fringe bitmaps.
9552 (fringe_bitmaps): New array holding fringe bitmaps.
9553 (draw_fringe_bitmap): Draw a specific bitmap; call display
9554 specific drawing routine via rif->draw_fringe_bitmap.
9555 (draw_row_fringe_bitmaps): Generic replacement for
9556 x_draw_row_fringe_bitmaps; all callers changed.
9557 (compute_fringe_widths): Generic replacement for
9558 x_compute_fringe_widths; all callers changed.
9559
9560 * dispextern.h (enum fringe_bitmap_type): Define here.
9561 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9562 (fringe_bitmaps): Declare extern.
9563 (struct redisplay_interface): New member draw_fringe_bitmap.
9564 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9565
9566 * xterm.c: Remove generic fringe code.
9567 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9568 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9569
9570 * w32term.c: Remove generic fringe code.
9571 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9572 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
9573
9574 * macterm.c: Remove generic fringe code.
9575 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9576 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9577
9578 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9579
9580 * print.c (Fprin1_to_string): Return unibyte string if possible.
9581
9582 2003-03-09 David Kastrup <dak@gnu.org>
9583
9584 * process.c (read_process_output): We have allocated enough space
9585 for readmax and carryover, so actually use the alloted space.
9586
9587 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9588
9589 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9590 toolkit scrollbar click.
9591
9592 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9593 for USE_GTK.
9594 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9595 also.
9596 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9597 scrollbar and control is pressed, call x_scroll_bar_handle_click.
9598
9599 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
9600
9601 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9602 (xg_tool_bar_item_expose_callback): New function.
9603 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9604 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9605 on the tool bar widget.
9606 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9607 to expose on the tool bar item widgets.
9608
9609 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9610
9611 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
9612 struct image* when deciding to update (struct image* may have been
9613 deleted from the image cache).
9614
9615 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9616 the event isn't for a frame (i.e. for dialogs).
9617
9618 2003-03-07 Kenichi Handa <handa@m17n.org>
9619
9620 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9621 composition components reaches the limit, terminate composing.
9622 (COMPOSITION_OK): New macro.
9623 (detect_coding_iso2022): Use it if an escape sequence for
9624 composition is found.
9625 (coding_restore_composition): Adjust the number of composition
9626 components if it is not sane.
9627
9628 2003-03-06 Juanma Barranquero <lektu@terra.es>
9629
9630 * w32term.h (struct w32_display_info): Add xrdb member to support
9631 passing resources via -xrm on Windows.
9632
9633 * w32term.c (w32_make_rdb): New function.
9634 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9635 struct. Delete leftover code.
9636
9637 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9638 for resources passed on the command line.
9639
9640 * w32reg.c (w32_get_rdb_resource): New function.
9641 (x_get_string_resource): Use it, so resources passed with -xrm
9642 supercede the ones in the registry.
9643
9644 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9645
9646 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9647 instead of x_top_window_to_frame.
9648
9649 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9650
9651 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9652 when restarting Emacs.
9653
9654 2003-03-03 Richard M. Stallman <rms@gnu.org>
9655
9656 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9657 to run kill-buffer-query-functions.
9658 (Qkill_buffer_query_functions): New var.
9659 (syms_of_buffer): Init and staticpro it.
9660
9661 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9662
9663 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9664
9665 2003-02-25 Kim F. Storm <storm@cua.dk>
9666
9667 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9668 If centering point failed to make whole line visible and vscroll
9669 is non-zero, disable vscroll and try centering point again.
9670
9671 * lread.c (read1): Accept `single space' syntax like (? x).
9672
9673 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9674
9675 * keyboard.c (cancel_hourglass_unwind): Surround with
9676 #ifdef HAVE_X_WINDOWS
9677
9678 2003-02-25 Kenichi Handa <handa@m17n.org>
9679
9680 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9681 process only when "subprocesses" is defined.
9682
9683 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9684
9685 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9686
9687 2003-02-24 Juanma Barranquero <lektu@terra.es>
9688
9689 * callint.c (fix_command): Declare as static void and move before
9690 Fcall_interactively.
9691
9692 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9693 (syms_of_xdisp): Don't initialize Qwhen.
9694
9695 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9696
9697 * keyboard.c (cancel_hourglass_unwind): New function.
9698 (command_loop_1): Cancel hourglass with unwind-protect.
9699
9700 2003-02-23 Richard M. Stallman <rms@gnu.org>
9701
9702 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9703 Detect (when ... (region-beginning)) etc.
9704 (Fcall_interactively): Call fix_command.
9705 (Qif, Qwhen): New variables.
9706 (syms_of_callint): Init and staticpro them.
9707
9708 * regex.c (print_partial_compiled_pattern): Output to stderr.
9709
9710 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9711
9712 * dired.c (directory_files_internal): Don't expand directory.
9713 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9714 instead. From Lars Hansen <larsh@math.ku.dk>.
9715
9716 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9717
9718 * fns.c (string_to_multibyte): Remove unused var i.
9719 (Flanginfo): Fix int/Lisp_Object mixup.
9720 (void_call2): New fun.
9721 (Fmap_char_table): Use it in place of call2.
9722
9723 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9724
9725 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9726
9727 * keymap.c (copy_keymap_1): Make it static.
9728
9729 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9730
9731 2003-02-22 David Ponce <david@dponce.com>
9732
9733 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9734
9735 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9736
9737 * process.h: Removed subtty field from struct Lisp_Process.
9738
9739 * process.c (create_process): Remove setting of subtty.
9740 (emacs_get_tty_pgrp): New function.
9741 (Fprocess_running_child_p, process_send_signal):
9742 Call emacs_get_tty_pgrp instead of ioctl.
9743 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9744
9745 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9746
9747 * keymap.c (Fdefine_key): Doc fix.
9748
9749 2003-02-21 Juanma Barranquero <lektu@terra.es>
9750
9751 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9752
9753 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9754 POLLING_PROBLEM_IN_SELECT.
9755
9756 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9757 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9758
9759 * s/hpux10-20.h: New file.
9760
9761 * process.c (wait_reading_process_input):
9762 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
9763
9764 2003-02-20 Kenichi Handa <handa@m17n.org>
9765
9766 * fontset.c (check_fontset_name): If NAME is nil, return the
9767 default fontset.
9768 (override_font_info): New function.
9769 (Fset_fontset_font): Document that NAME nil means the default fontset.
9770 (Ffontset_info): If FONTSET is not the default fontset, merge
9771 FONTSET onto the copy of the default fontset, and work on that
9772 copy. Document that NAME nil means the default fontset.
9773 (Ffontset_font): Document that NAME nil means the default fontset.
9774
9775 * process.c (setup_process_coding_systems): If the process's
9776 in/out descriptor is -1, do nothing.
9777
9778 2003-02-19 Andreas Schwab <schwab@suse.de>
9779
9780 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9781 Add prototypes.
9782
9783 2003-02-19 Kenichi Handa <handa@m17n.org>
9784
9785 * xfaces.c (try_alternative_families): Try all scalable fonts if
9786 Vscalable_fonts_allowed is not Qt.
9787
9788 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9789
9790 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9791
9792 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9793
9794 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9795 names.
9796
9797 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
9798 (sorted_font_list): Move allocation of struct font_name to
9799 x_face_list_fonts.
9800 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9801 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9802
9803 2003-02-18 Kim F. Storm <storm@cua.dk>
9804
9805 * lread.c (read1): Fix last change.
9806 "`" is not always special. Allow "?" after a character constant.
9807
9808 2003-02-18 Andrew Choi <akochoi@shaw.ca>
9809
9810 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9811
9812 2003-02-18 Andreas Schwab <schwab@suse.de>
9813
9814 * window.c (window_scroll_pixel_based): Move outside a
9815 multi-glyph character before setting new window start.
9816
9817 * xdisp.c (in_display_vector_p): New function.
9818 * dispextern.h (in_display_vector_p): Declare.
9819
9820 2003-02-18 Kim F. Storm <storm@cua.dk>
9821
9822 * lread.c (read1): Fix and relax read syntax.
9823 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9824 Only recognize "," after dotted-pair dot if inside backquote.
9825 Never include "`" or "," (inside backquote) in a symbol.
9826 Allow dotted-pair dot after a character constant.
9827 Allow "`" and "," (inside backquote) after a character constant.
9828
9829 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9830
9831 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9832 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9833 icons. Set name of tool bar to emacs-toolbar.
9834 (update_frame_tool_bar): Connect expose event to
9835 xg_tool_bar_expose_callback.
9836
9837 2003-02-17 Richard M. Stallman <rms@gnu.org>
9838
9839 * keyboard.c (this_command_key_count_reset): New variable.
9840 Initiatize to 0 where this_command_key_count is set.
9841 (read_char): Save and restore this_command_key_count_reset
9842 around input method code.
9843 (read_char): If this_command_key_count_reset, echo reread commands.
9844 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9845
9846 2003-02-17 Kenichi Handa <handa@m17n.org>
9847
9848 * fns.c (string_to_multibyte): Always return a multibyte string.
9849
9850 2003-02-16 Jason Rumney <jasonr@gnu.org>
9851
9852 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9853 Negative max_fonts parameter means list all.
9854
9855 2003-02-14 Dave Love <fx@gnu.org>
9856
9857 * fns.c (Flanginfo): Doc fix.
9858
9859 2003-02-13 Kim F. Storm <storm@cua.dk>
9860
9861 * lread.c (read_escape): Interpret \s as a SPACE character, except
9862 for \s-X in a character constant which still is the super modifier.
9863 (read1): Signal an `invalid read syntax' error if a character
9864 constant is immediately followed by a digit or symbol character.
9865
9866 * search.c (Fmatch_data): Doc fix. Explicitly state that
9867 match-data is undefined if last search failed.
9868
9869 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9870 All uses changed.
9871
9872 2003-02-12 Juanma Barranquero <lektu@terra.es>
9873
9874 * eval.c (Fdefmacro): Fix typo.
9875
9876 2003-02-12 Kim F. Storm <storm@cua.dk>
9877
9878 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9879 macro is a string, convert meta modifiers in string when copying
9880 the string into a vector.
9881
9882 2003-02-11 Kim F. Storm <storm@cua.dk>
9883
9884 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9885
9886 2003-02-11 Kenichi Handa <handa@m17n.org>
9887
9888 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9889
9890 2003-02-10 Kim F. Storm <storm@cua.dk>
9891
9892 * process.c: Doc fixes.
9893 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9894
9895 2003-02-10 Kenichi Handa <handa@m17n.org>
9896
9897 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9898
9899 * process.c (QCfilter_multibyte): New variable.
9900 (setup_process_coding_systems): New function.
9901 (Fset_process_buffer, Fset_process_filter):
9902 Call setup_process_coding_systems.
9903 (Fstart_process): Initialize the member `filter_multibyte' of
9904 struct Lisp_Process.
9905 (create_process): Call setup_process_coding_systems.
9906 (Fmake_network_process): New keyward `:filter-multibyte'.
9907 Initialize the member `filter_multibyte' of struct Lisp_Process.
9908 Call setup_process_coding_systems.
9909 (server_accept_connection): Call setup_process_coding_systems.
9910 (read_process_output): If the process has a filter, decide the
9911 multibyteness of a string to given to the filter by
9912 `filter_multibyte' member of the process. If the process doesn't
9913 have a filter and the result of conversion is unibyte, use
9914 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9915 multibyte form.
9916 (Fset_process_coding_system): Call setup_process_coding_systems.
9917 (Fset_process_filter_multibyte): New function.
9918 (Fprocess_filter_multibyte_p): New function.
9919 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9920 Defsubr Sset_process_filter_multibyte and
9921 Sprocess_filter_multibyte_p.
9922
9923 * process.h (struct Lisp_Process): New member filter_multibyte.
9924
9925 * lisp.h (setup_process_coding_systems): Add prototype.
9926
9927 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9928 process, update coding systems for the process.
9929
9930 2003-02-09 Kenichi Handa <handa@m17n.org>
9931
9932 * fns.c (string_to_multibyte): New function.
9933 (Fstring_to_multibyte): New function.
9934 (syms_of_fns): Defsubr it.
9935
9936 2003-02-08 Andreas Schwab <schwab@suse.de>
9937
9938 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9939 instead of the substitution.
9940
9941 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9942
9943 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9944
9945 * xmenu.c (menu_position_func): Adjust menu popup position so that
9946 the menu is fully visible.
9947
9948 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9949
9950 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
9951 (x_make_frame_invisible, x_wm_set_icon_position):
9952 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
9953
9954 * xfns.c (x_set_name, x_set_title): Ditto.
9955
9956 2003-02-04 Richard M. Stallman <rms@gnu.org>
9957
9958 * keyboard.c (echo_now): Update before_command_echo_length.
9959 (Freset_this_command_lengths): Reset this_command_key_count etc.
9960 immediately rather than arranging to do it later.
9961 (before_command_key_count_1, before_command_echo_length_1)
9962 (before_command_restore_flag): Vars deleted.
9963 (add_command_key): Don't handle before_command_restore_flag.
9964 (read_char, record_menu_key): Don't update before_command_key_count or
9965 before_command_echo_length.
9966 (read_char): Don't handle before_command_restore_flag.
9967
9968 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9969 in direct-output clauses if it wouldn't be called in the ordinary case.
9970
9971 2003-02-04 Kim F. Storm <storm@cua.dk>
9972
9973 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9974
9975 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9976
9977 * gtkutil.c (remove_from_container): Copying list is not needed.
9978 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9979 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9980 on list returned from gtk_container_get_children to avoid memory leak.
9981
9982 2003-02-01 Jason Rumney <jasonr@gnu.org>
9983
9984 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9985 local malloc.
9986 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9987 definitions in xpm.h.
9988 (init_xpm_functions): New function.
9989 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
9990 (init_external_image_libraries): Try to load libXpm.dll.
9991
9992 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9993 timestamp.
9994
9995 2003-01-31 Dave Love <fx@gnu.org>
9996
9997 * syntax.c (Fskip_chars_forward)
9998 (open-paren-in-column-0-is-defun-start): Doc fix.
9999
10000 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10001
10002 * fileio.c: Support // at start of name for Cygwin (just added proper
10003 preprocessor tests).
10004
10005 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10006
10007 * Makefile.in: Use @EXEEXT@ for Cygwin.
10008
10009 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10010
10011 * s/cygwin.h: Added for Cygwin port.
10012
10013 2003-01-31 Juanma Barranquero <lektu@terra.es>
10014
10015 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10016 when including gif_lib.h.
10017 (init_gif_functions, init_tiff_functions): New functions.
10018 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10019 Windows. Disable color table lookups. Call library functions
10020 through pointers determined at runtime.
10021 (init_external_image_libraries): Try to load libungif.dll and
10022 libtiff.dll.
10023
10024 2003-01-31 Kenichi Handa <handa@m17n.org>
10025
10026 * xdisp.c (SKIP_GLYPHS): New macro.
10027 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
10028
10029 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10030
10031 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
10032
10033 2003-01-30 Dave Love <fx@gnu.org>
10034
10035 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10036 (Fgarbage_collect): Use them.
10037 (init_alloc, syms_of_alloc): Set them up.
10038
10039 2003-01-30 Juanma Barranquero <lektu@terra.es>
10040
10041 * w32fns.c (init_external_image_libraries): Add missing operator.
10042
10043 2003-01-29 Jason Rumney <jasonr@gnu.org>
10044
10045 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10046 an alternative name for jpeg.dll.
10047
10048 2003-01-29 Kenichi Handa <handa@m17n.org>
10049
10050 * xdisp.c (set_cursor_from_row): Pay attention to string display
10051 properties.
10052
10053 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10054
10055 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10056 <escape>.
10057 (keycode_to_xkeysym_table): Reformat and add more comments.
10058 (XTread_socket): Drop special case for backspace.
10059
10060 2003-01-28 Andrew Choi <akochoi@shaw.ca>
10061
10062 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10063 values in old-style RGB specs.
10064
10065 2003-01-27 Juanma Barranquero <lektu@terra.es>
10066
10067 * w32fns.c (init_external_image_libraries): Try alternate names for the
10068 jpeg dll.
10069
10070 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10071
10072 * gtkutil.c (create_dialog, xg_separator_p)
10073 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10074 before calling strcmp or strlen.
10075
10076 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10077
10078 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10079 and handle image load failure.
10080
10081 2003-01-26 Jason Rumney <jasonr@gnu.org>
10082
10083 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10084 New functions.
10085 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10086 Disable color table lookups. Call jpeg library functions
10087 through pointers determined at runtime.
10088 (init_external_image_libraries): Try to load jpeg.dll.
10089
10090 2003-01-25 Richard M. Stallman <rms@gnu.org>
10091
10092 * lisp.h: Declare format2 instead of format1.
10093
10094 * fileio.c (barf_or_query_if_file_exists):
10095 Call format2 instead of format1.
10096
10097 * editfns.c (format2): New function, replaces format1
10098 but takes exactly two Lisp Objects as format args.
10099
10100 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10101
10102 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10103
10104 * xterm.h: Change to return value of x_dispatch_event to int.
10105
10106 * xterm.c (x_filter_event): New function.
10107 (event_handler_gdk, XTread_socket): Call x_filter_event.
10108 (x_dispatch_event): Change to return value of finish.
10109 (event_handler_gdk): Use return value from x_dispatch_event.
10110
10111 * xfns.c (x_window): Call create_frame_xic for GTK version to
10112 initialize input methods.
10113
10114 * gtkutil.h: Add (void) prototypes.
10115
10116 * gtkutil.c (create_menus): Remove code that puts the help menu to
10117 the right.
10118
10119 2003-01-25 Jason Rumney <jasonr@gnu.org>
10120
10121 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10122 [HAVE_PNG]: Sync with xfns.c version.
10123 (png_load): Adjust colors for Windows. Use Windows
10124 bitmaps. Disable color table lookups.
10125 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10126 (init_png_functions): New function.
10127 (png_read_from_memory, png_load): Call png library functions
10128 through pointers determined at runtime.
10129 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10130 (init_external_image_libraries): New function.
10131 (init_xfns): Call it.
10132
10133 2003-01-24 Andreas Schwab <schwab@suse.de>
10134
10135 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10136
10137 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10138
10139 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10140 of static initializer.
10141
10142 2003-01-24 Dave Love <fx@gnu.org>
10143
10144 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10145 architectures.
10146
10147 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10148 Use __alignof__.
10149
10150 2003-01-24 Kenichi Handa <handa@m17n.org>
10151
10152 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10153 It it is nonzero, don't pretend that an invisible area doesn't exist.
10154 (command_loop_1): Call adjust_point_for_property with proper
10155 second arg.
10156
10157 2003-01-22 Jason Rumney <jasonr@gnu.org>
10158
10159 Sync changes with xterm.c and xfns.c.
10160
10161 * w32term.c (x_draw_glyph_string_foreground)
10162 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10163
10164 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10165 phys_cursor's hpos is overwritten. This is still not completely
10166 correct, as it doesn't really make sense to use hpos at all to
10167 get the cursor glyph (as that is relative to the width of the
10168 characters on the line, which may have changed during the update).
10169
10170 * w32term.c (notice_overwritten_cursor): Handle the special case
10171 of the cursor being in the first blank non-text line at the
10172 end of a window.
10173
10174 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10175 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10176 Compute from the x position returned by x_draw_glyphs.
10177
10178 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10179 except for NO_CURSOR and system caret, to make phys_cursor_width
10180 contain what its name suggests.
10181 (notice_overwritten_cursor): Consider the cursor image erased if
10182 the output area intersects the cursor image in y-direction.
10183
10184 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10185 note_mode_line_highlight and extend.
10186
10187 * w32term.c (last_window): New variable.
10188 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10189 (note_mouse_movement): Remove reimplemented code in #if 0.
10190
10191 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10192 not update_mode_lines, and always set it to 1.
10193
10194 2003-01-21 Jason Rumney <jasonr@gnu.org>
10195
10196 * w32fns.c (IDC_HAND): Define it if system headers don't.
10197
10198 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10199
10200 * w32term.h (struct w32_output): New member hand_cursor.
10201 (WM_EMACS_SETCURSOR): New message definition.
10202
10203 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10204 function w32_define_cursor.
10205 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10206 position, change member name output_data.x to output_data.w32 and
10207 add function w32_define_cursor.
10208 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10209 and change member name output_data.x to output_data.w32.
10210 (w32_initialize_display_info):
10211 Setup dpyinfo->vertical_scroll_bar_cursor.
10212
10213 * w32fns.c (Vx_hand_shape): New variable.
10214 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10215 WM_EMACS_SETCURSOR.
10216 (x-create-frame): Setup Cursor types.
10217
10218 2003-01-21 David Ponce <david@dponce.com>
10219
10220 * w32term.c (w32_encode_char): For DIM=1 charset, set
10221 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
10222 x_encode_char change by Kenichi Handa <handa@m17n.org> on
10223 2002-09-30.)
10224 (w32_draw_relief_rect): Declare all args.
10225 (w32_define_cursor): New.
10226
10227 * w32fns.c (w32_load_cursor): New function.
10228 (w32_init_class): Use it.
10229 (x_put_x_image): Declare all args.
10230
10231 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
10232
10233 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10234
10235 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10236
10237 * gtkutil.c: Must include stdio.h before termhooks.h
10238
10239 2003-01-21 Dave Love <fx@gnu.org>
10240
10241 * alloc.c (Fgc_status): Print zombie list.
10242 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10243 Fix assignment of zombies.
10244 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10245 Don't take car of non-cons.
10246
10247 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10248
10249 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10250
10251 2003-01-20 David Ponce <david@dponce.com>
10252
10253 * w32menu.c (digest_single_submenu): Declare all args.
10254
10255 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10256 changes in xmenu.c:
10257
10258 (parse_single_submenu): Use individual keymap's prompt
10259 string as pane name, if there is one.
10260 (set_frame_menubar): Save menu_items_n_panes from each call to
10261 parse_single_submenu and use it when calling digest_single_submenu.
10262
10263 2003-01-20 Steven Tamm <steventamm@mac.com>
10264
10265 * macterm.c (XTread_socket): Checks for valid, visible window
10266 before sending a scroll-wheel event.
10267
10268 2003-01-20 Richard M. Stallman <rms@gnu.org>
10269
10270 * xdisp.c (redisplay_window): If mini window's buffer is not
10271 a minibuffer, then redisplay it like other windows.
10272
10273 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10274
10275 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10276 external tool bar before setting tool bar height.
10277
10278 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10279
10280 * xterm.c (handle_one_xevent): Surround popup_activated
10281 with #ifdef:s for non-toolkit version.
10282
10283 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10284 (gtkutil.o): New file.
10285 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10286 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10287
10288 * gtkutil.c: New file for GTK version.
10289
10290 * gtkutil.h: New file for GTK version.
10291
10292 * xterm.h: Add xt_or_gtk_widget.
10293 Include gtk files for USE_GTK.
10294 (struct x_output): Add toolbar_height.
10295 (struct x_output): Add GTK widgets and Gdk size_hints.
10296 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10297 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10298 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10299
10300 * xterm.c: Include gtkutil.h for USE_GTK.
10301 (free_frame_menubar): Declare extern void for USE_GTK.
10302 (note_mouse_highlight): Check popup_activated for USE_GTK.
10303 (xt_action_hook): Don't compile if USE_GTK.
10304 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10305 (xg_scroll_callback): New function.
10306 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10307 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10308 for USE_GTK.
10309 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10310 xg_show_scroll_bar for USE_GTK.
10311 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10312 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10313 (event_handler_gdk): New function for USE_GTK.
10314 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10315 (handle_one_xevent): Make sure widget is mapped before
10316 calling x_real_positions for USE_GTK.
10317 (XTread_socket): Add GTK event loop for USE_GTK.
10318 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10319 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10320 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10321 (x_iconify_frame): Add code for USE_GTK.
10322 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10323 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10324 is in gtkutil.c.
10325 (x_term_init): Add initialization for GTK.
10326 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10327
10328 * xmenu.c: Include gtkutil.h for USE_GTK.
10329 (Fx_popup_menu): Use current position if x and y is NIL.
10330 (single_menu_item, single_menu_item, Fx_popup_dialog):
10331 Check for USE_GTK.
10332 (popup_widget_loop): New function for USE_GTK.
10333 (x_activate_menubar): Add code for USE_GTK.
10334 (popup_activate_callback, popup_deactivate_callback)
10335 (menu_highlight_callback, menubar_selection_callback):
10336 Add USE_GTK versions.
10337 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10338 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10339 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10340 is in gtkutil.c.
10341 (popup_selection_callback): New version for USE_GTK.
10342 (create_and_show_popup_menu): New fuction, one USE_GTK version and
10343 one USE_X_TOOLKIT version.
10344 (xmenu_show): Call create_and_show_popup_menu.
10345 (dialog_selection_callback): New version for USE_GTK.
10346 (create_and_show_dialog): New fuction, one USE_GTK version and
10347 one USE_X_TOOLKIT version.
10348 (xdialog_show): Call create_and_show_dialog.
10349
10350 * xfns.c: Include gtkutil for USE_GTK.
10351 (x_window_to_frame, x_any_window_to_frame)
10352 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10353 (x_top_window_to_frame): Add code for USE_GTK.
10354 (x_set_background_color): Call xg_set_background_color for GTK.
10355 (x_set_menu_bar_lines): Check for USE_GTK.
10356 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10357 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10358 (x_window): Call xg_create_frame_widgets for USE_GTK.
10359 (Fx_create_frame): Check for USE_GTK
10360 (Fx_file_dialog): New implementation for USE_GTK.
10361
10362 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10363 (update_menu_bar): Add check for USE_GTK.
10364 (update_tool_bar): Add check for USE_GTK and external tool bar.
10365 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10366 (redisplay_internal): Add check for USE_GTK and popup_activated.
10367 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10368 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10369 (display_menu_bar): Add check for USE_GTK
10370
10371 * lisp.h (Vx_resource_name): Declare extern.
10372
10373 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
10374 for USE_GTK.
10375 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10376
10377 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10378 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10379 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10380
10381 * fileio.c (Fread_file_name): Add check for USE_GTK.
10382
10383 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10384 Add check for USE_GTK.
10385
10386 * config.in: Added HAVE_GTK
10387
10388 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10389
10390 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10391
10392 * charset.h (Funibyte_char_to_multibyte): Export.
10393
10394 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10395
10396 * xmenu.c (mouse_position_for_popup): New function.
10397 (Fx_popup_menu): Call mouse_position_for_popup for X and
10398 mouse_position_hook for others.
10399
10400 2003-01-17 Kim F. Storm <storm@cua.dk>
10401
10402 * editfns.c (Finsert): Mention `string-make-multibyte' and
10403 `string-as-multibyte' in doc string.
10404
10405 2003-01-17 Kenichi Handa <handa@m17n.org>
10406
10407 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
10408
10409 * editfns.c (Fformat): Convert an unibyte char argument that is
10410 formatted by "%c" to multibyte if the total result must be a
10411 multibyte string.
10412
10413 2003-01-16 Kim F. Storm <storm@cua.dk>
10414
10415 * process.c (set-process-filter): Document unibyte/multibyte-ness
10416 of string argument.
10417
10418 2003-01-16 Kenichi Handa <handa@m17n.org>
10419
10420 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
10421
10422 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10423 (re_search_2): Likewise.
10424
10425 2003-01-15 Kenichi Handa <handa@m17n.org>
10426
10427 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10428 buffer is unibyte.
10429
10430 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
10431
10432 * fns.c (Fsubstring): Clarify doc string.
10433
10434 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10435 (Fprevious_char_property_change)
10436 (Fnext_single_char_property_change)
10437 (Fprevious_single_char_property_change, Fnext_property_change)
10438 (Fnext_single_property_change, Fprevious_property_change)
10439 (Fprevious_single_property_change, Fadd_text_properties)
10440 (Fput_text_property, Fset_text_properties)
10441 (Fremove_text_properties, Fremove_list_of_text_properties)
10442 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
10443
10444 2003-01-14 Kim F. Storm <storm@cua.dk>
10445
10446 * process.h (struct Lisp_Process): New member plist replaces old
10447 member private_vars. All uses changed.
10448
10449 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
10450 (QCplist): Rename from QCvars. Change all uses.
10451 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
10452 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
10453 (syms_of_process): Intern, staticpro, defsubr these.
10454 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
10455
10456 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
10457
10458 * m/delta.h: Remove (obsolete).
10459
10460 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
10461
10462 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10463 behaviour in front of symlinks.
10464 (Fdelete_file): Raise an error on directories.
10465
10466 2003-01-13 Dave Love <fx@gnu.org>
10467
10468 * fns.c (Freverse): Use QUIT.
10469
10470 2003-01-13 Richard M. Stallman <rms@gnu.org>
10471
10472 * minibuf.c (minibuffer_completion_contents):
10473 Error if point is inside prompt.
10474
10475 * keyboard.c (command_loop_1): Don't redisplay directly
10476 if there's a post-command-hook.
10477
10478 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10479 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
10480
10481 2003-01-12 Kim F. Storm <storm@cua.dk>
10482
10483 * process.h (struct Lisp_Process): New member private_vars.
10484
10485 * process.c (QCvars): New variable.
10486 (syms_of_process): Intern and staticpro it.
10487 (Fset_process_contact): Removed function.
10488 (Fprocess_variable, Fset_process_variable): New functions.
10489 (syms_of_process): Defsubr them.
10490 (Fstart_process): Initialize private_vars plist to nil.
10491 (Fmake_network_process): New arg :vars to setup the private
10492 variables for new network process.
10493 (server_accept_connection): Copy server's private variables to
10494 client process.
10495
10496 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10497 crashes). Code rewritten and simplified. Now directly aligns the
10498 pointer and recalculates pure_bytes_used, rather than aligning the
10499 size and adjusting the pointer.
10500
10501 2003-01-11 Kim F. Storm <storm@cua.dk>
10502
10503 * process.c (Fset_process_contact): New function.
10504 (syms_of_process): defsubr it.
10505 (make-network-process): Update doc.
10506
10507 2003-01-10 Andreas Schwab <schwab@suse.de>
10508
10509 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10510 Reported by Berthold Gunreben <b.gunreben@web.de>.
10511
10512 2003-01-10 Dave Love <fx@gnu.org>
10513
10514 * composite.c (syms_of_composite): Make composition_hash_table weak.
10515
10516 2003-01-09 Kim F. Storm <storm@cua.dk>
10517
10518 * process.c (Fmake_network_process): Convert new port number
10519 to host byte order for `:service t' case. From Mario Lang.
10520
10521 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10522
10523 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10524 instead of XtAppProcessEvent.
10525
10526 * xterm.c (handle_one_xevent): New function.
10527 (x_dispatch_event): New function.
10528 (XTread_socket): Call handle_one_xevent.
10529
10530 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
10531
10532 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10533 call XQueryPointer to get coordinates.
10534 (popup_get_selection): Do not set popup_activated_flag to zero,
10535 let popup_deactivate_callback do that. Needed for Motif.
10536 Call x_dispatch_event instead of XtDispatchEvent.
10537 (xmenu_show): Calculate root coordinate from frame top/left position.
10538
10539 2003-01-08 Kim F. Storm <storm@cua.dk>
10540
10541 * process.c (server_accept_connection): Fix recording of new
10542 connection's local address in :local property of contact info.
10543 (Fmake_network_process): Record local network address for new
10544 client processes in :local property of contact info.
10545 (format-network-address): Add arg OMIT-PORT. Change callers.
10546
10547 2003-01-07 Dave Love <fx@gnu.org>
10548
10549 * Makefile.in (fns.o): Depend on coding.h.
10550
10551 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
10552
10553 * minibuf.c (Fread_variable): Doc fix.
10554
10555 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10556 use the same test as for custom-variable-p.
10557
10558 2003-01-05 Richard M. Stallman <rms@gnu.org>
10559
10560 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10561 Count LAST_LINE_MISFIT in scroll margin for end of window.
10562 Move label too_near_end before setting SCROLL_MARGIN_POS.
10563 Set LAST_LINE_MISFIT before jumping there.
10564
10565 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10566 scroll_conservatively case. If scrolling that much doesn't change
10567 STARTP, move it down one line.
10568
10569 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10570 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
10571
10572 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10573 selected frame.
10574
10575 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10576 (syms_of_keymap): staticpro them.
10577 (Fapropos_internal): Initialize them and clear them out.
10578 Don't GCPRO them.
10579
10580 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10581 Doc fixes.
10582
10583 * lisp.h: New misc type Lisp_Save_Value.
10584 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10585 (XSAVE_VALUE): New macro.
10586 (struct Lisp_Save_Value): New data type.
10587 (union Lisp_Misc): Add u_save_value alternative.
10588 (make_save_value): Declare.
10589
10590 * alloc.c (make_save_value): New function.
10591
10592 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10593 (x_catch_errors_unwind): Call XSync.
10594
10595 2003-01-01 Richard M. Stallman <rms@gnu.org>
10596
10597 * window.c (window_scroll_pixel_based): Partially undo last change.
10598
10599 * keyboard.c (command_loop_1): Call adjust_point_for_property
10600 in direct action cases for Qforward_char and Qbackward_char.
10601 Set already_adjusted so it won't be done twice.
10602
10603 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
10604
10605 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10606 type definition of size_t.
10607
10608 2003-01-02 Steven Tamm <steventamm@mac.com>
10609
10610 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10611 distinguish Carbon GUI builds from X11 builds on darwin.
10612
10613 2002-12-30 Steven Tamm <steventamm@mac.com>
10614
10615 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10616 to default to t.
10617
10618 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
10619
10620 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
10621
10622 2002-12-28 Steven Tamm <steventamm@mac.com>
10623
10624 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10625 allow building in a different directory than source. Uses some
10626 GNU Make extensions, but there is no other make on Mac OS X.
10627
10628 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
10629
10630 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10631 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10632 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10633 (Fstring_to_number): Mention the returned value in the doc strings.
10634
10635 2002-12-23 Richard M. Stallman <rms@gnu.org>
10636
10637 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10638 <scroll-down-aggressively>: Doc fix.
10639
10640 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10641 string as pane name, if there is one.
10642 (set_frame_menubar): Save menu_items_n_panes from each call to
10643 parse_single_submenu and use it when calling digest_single_submenu.
10644
10645 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10646 Don't try to make last line fully visible if it is past end of window.
10647
10648 2002-12-22 Steven Tamm <steventamm@mac.com>
10649
10650 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10651 (mac_menu_show): Add support for hierarchical popup menus.
10652 (add_menu_item): Remove indentation support.
10653 (fill_submenu, fill_menu): Create hierarchical menus
10654 instead of using indentation.
10655
10656 2002-12-22 Richard M. Stallman <rms@gnu.org>
10657
10658 * xdisp.c (try_cursor_movement): Don't call try_window here.
10659 (redisplay_window): Never redisplay minibuffer when inactive.
10660
10661 * window.c (select_window_1): Undo 9/21 change.
10662
10663 2002-12-22 Steven Tamm <steventamm@mac.com>
10664
10665 * macterm.c (XTread_socket): Call KeyTranslate for control and
10666 meta to deal correctly shifted non-alpha characters, like C-S-5
10667 being treated like C-%. Does not look for shift key to deal
10668 with masking off control-key with mac-reverse-ctrl-meta.
10669
10670 2002-12-21 Richard M. Stallman <rms@gnu.org>
10671
10672 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10673 If it is non-nil, run timers. Use an unwind-protect to requeue
10674 the events that were read ahead.
10675 (popup_get_selection_unwind): New subroutine.
10676 (popup_get_selection_queue): File-scope variable now holds that queue.
10677 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10678 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10679 Use an unwind-protect to pop down the dialog box.
10680 (xdialog_show_unwind): New subroutine implements that.
10681
10682 * xdisp.c (row_containing_pos): Change exit test using last_y.
10683 (try_window_id): Abort if row_containing_pos returns null.
10684
10685 * lread.c (load_error_handler): New function.
10686 (Fload): Handle errors in Fsubstitute_in_file_name.
10687 Don't expect Fsignal to return.
10688
10689 * eval.c: Errors and throws work right with interrupt blocking.
10690 (struct catchtag): New elt interrupt_input_blocked.
10691 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10692 (internal_catch, Fcondition_case, internal_condition_case)
10693 (internal_condition_case_1, internal_condition_case_2): Save it.
10694 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
10695
10696 * editfns.c (Fformat): Add parens.
10697
10698 * dired.c (file_name_completion): Fix that change.
10699 Delete special quit-handling code; just use QUIT.
10700
10701 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
10702
10703 * dired.c (file_name_completion): Close directory on error
10704 just as in directory_files_internal.
10705
10706 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
10707
10708 * window.c (Fset_window_configuration): Set old_point to correct
10709 value when new_current_buffer == current_buffer.
10710
10711 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
10712
10713 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10714 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10715 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10716
10717 These changes were in part based upon suggestions made by Peter
10718 'Luna' Runestig [peter@runestig.com].
10719
10720 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10721 g_b_init_get_token_information, g_b_init_lookup_account_sid,
10722 g_b_init_get_sid_identifier_authority ): Add several static
10723 global variables.
10724
10725 * w32.c (globals_of_w32): New function. Used to initialize those
10726 global variables that must always be initialized on startup even
10727 when the global variable initialized is non zero. Its primary
10728 purpose at this time is to set the global variables
10729 g_b_init_is_windows_9x, g_b_init_open_process_token,
10730 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10731 g_b_init_get_sid_identifier_authority to 0 on startup.
10732 Called from main.
10733
10734 * w32.c (is_windows_9x): Perform initialization only if
10735 g_b_init_is_windows_9x is equal to 0. On initialization set
10736 g_b_init_is_windows_9x equal to 1.
10737
10738 * w32.c (open_process_token): Perform initialization only if
10739 g_b_init_open_process_token is equal to 0. On initialization set
10740 g_b_init_open_process_token equal to 1.
10741
10742 * w32.c (get_token_information): Perform initialization only if
10743 g_b_init_get_token_information is equal to 0. On initialization
10744 set g_b_init_get_token_information equal to 1.
10745
10746 * w32.c (lookup_account_sid): Perform initialization only if
10747 g_b_init_lookup_account_sid is equal to 0. On initialization
10748 set g_b_init_lookup_account_sid equal to 1.
10749
10750 * w32.c (get_sid_identifier_authority): Perform initialization
10751 only if g_b_init_get_sid_identifier_authority is equal to 0.
10752 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
10753
10754 * w32fns.c (globals_of_w32fns): New function. Used to initialize
10755 those global variables that must always be initialized on startup
10756 even when the global variable initialized is non zero.
10757 Its primary purpose at this time is to initialize the global variable
10758 track_mouse_event_fn.
10759
10760 * w32fns.c (w32_wnd_proc): Remove initialization of
10761 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
10762
10763 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
10764
10765 * w32menu.c (globals_of_w32menu): New function. Used to
10766 initialize those global variables that must always be initialized
10767 on startup even when the global variable initialized is non zero.
10768 Its primary purpose at this time is to initialize the global
10769 variables get_menu_item_info and set_menu_item_info.
10770
10771 * w32menu.c (initialize_frame_menubar): Remove initialization of
10772 get_menu_item_info and set_menu_item_info.
10773
10774 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
10775
10776 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10777 Declare them.
10778
10779 * emacs.c (main): Call globals_of_w32 prior to calling
10780 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10781 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10782 is defined.
10783
10784 * w32term.c (x_update_window_begin): Fix Windows API error
10785 detected by BoundsChecker. Test to determine if
10786 w32_system_caret_hwnd is NULL prior to attempting to use
10787 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
10788
10789 * w32term.c (x_update_window_end): Fix Windows API error
10790 detected by BoundsChecker. Test to determine if
10791 w32_system_caret_hwnd is NULL prior to attempting to use
10792 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
10793
10794 2002-12-17 Kenichi Handa <handa@m17n.org>
10795
10796 * coding.c (coding_system_require_warning): New variable.
10797 (syms_of_coding): DEFVAR it.
10798
10799 * coding.h (coding_system_require_warning): Extern it.
10800
10801 * fileio.c (choose_write_coding_system): Even if
10802 Vcoding_system_for_write is non-nil, if
10803 coding_system_require_warning is nonzero, call
10804 Vselect_safe_coding_system_function.
10805
10806 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
10807
10808 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10809 (lisp): Add font-core.
10810
10811 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
10812
10813 * textprop.c (text_read_only): New arg `propval'.
10814 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10815 (verify_interval_modification): Use text_read_only's new arg.
10816
10817 2002-12-13 Kenichi Handa <handa@m17n.org>
10818
10819 * coding.c (Funencodable_char_position): Set pend correctly.
10820
10821 2002-12-12 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10824 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10825 Be more careful about when help_events are generated.
10826
10827 2002-12-12 Steven Tamm <steventamm@mac.com>
10828
10829 * macterm.c (mac_check_for_quit_char): Correctly set the
10830 modifiers of the event to 0.
10831 * mac.c (sys_select): Duplicate rfds before calling select to
10832 ensure that rfds survive the while loop.
10833
10834 2002-12-11 Kim F. Storm <storm@cua.dk>
10835
10836 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10837 row_containing_pos returned NULL.
10838
10839 2002-12-10 Steven Tamm <steventamm@mac.com>
10840
10841 * mac.c (sys_read): Fix sys_read to not call select if IO is
10842 non-blocking.
10843 (sys_select): Fix sys_select to not use a timeout larger than
10844 the one given.
10845
10846 2002-12-10 Juanma Barranquero <lektu@terra.es>
10847
10848 * editfns.c (Fformat): Use alloca, not _alloca.
10849
10850 2002-12-09 Richard M. Stallman <rms@gnu.org>
10851
10852 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10853 as the last thing.
10854
10855 2002-12-09 Dave Love <fx@gnu.org>
10856
10857 * s/sol2-8.h: Removed. (Not necessary.)
10858
10859 2002-12-09 Matthew Swift <swift@alum.mit.edu>
10860
10861 * editfns.c (Fformat): Handle precision in string conversion
10862 specifiers like libc functions do (ie, print at most that many
10863 characters).
10864
10865 2002-12-08 Richard M. Stallman <rms@gnu.org>
10866
10867 * xdisp.c (row_containing_pos): Check more carefully
10868 whether charpos is really in the row before returning it.
10869
10870 2002-12-07 Steven Tamm <steventamm@mac.com>
10871
10872 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
10873
10874 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10875 each stack frame. This may change as it could be time consuming.
10876
10877 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10878 (init_quit_char_handler, mac_determine_quit_char_modifiers)
10879 (mac_initialize): Add code to check for pressing of quit_char
10880 in the OS event queue.
10881
10882 * mac.c (sys_select): Call mac_check_for_quit_char every second
10883 while blocking on select.
10884
10885 * mac.c (sys_read): Use sys_select to test for input first
10886 before calling read, to allow C-g to break.
10887
10888 2002-12-07 Richard M. Stallman <rms@gnu.org>
10889
10890 * minibuf.c (Fcompleting_read): Doc fix.
10891
10892 * lread.c (syms_of_lread) <load-history>: Doc fix.
10893
10894 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
10895
10896 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10897 autoload.
10898
10899 * data.c (Fdefalias): Record in load-history redefining an autoload.
10900
10901 * alloca.c: Undo ifdef change accidentally made on 12-04.
10902
10903 2002-12-06 Francesco Potorti` <pot@gnu.org>
10904
10905 * xfns.c (png_load): Avoid double gamma correction for PNG images.
10906
10907 2002-12-04 Richard M. Stallman <rms@gnu.org>
10908
10909 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
10910
10911 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
10912
10913 * alloca.c: Don't use #error.
10914
10915 2002-12-03 Dave Love <fx@gnu.org>
10916
10917 * buffer.c (Qucs_set_table_for_input): New.
10918 (Fget_buffer_create): Use it.
10919 (Qset_buffer_major_mode_hook): Deleted.
10920 (Fset_buffer_major_mode): Revert previous change.
10921 (init_buffer_once): Intern ucs-set-table-for-input.
10922 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10923 Add &Qucs_set_table_for_input.
10924
10925 2002-12-03 Andreas Schwab <schwab@suse.de>
10926
10927 * callint.c (Fcall_interactively): Use next_event only if less
10928 than key_count.
10929
10930 2002-12-02 Andrew Choi <akochoi@shaw.ca>
10931
10932 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10933 names to 255 characters.
10934
10935 * macterm.c (XTread_socket): If all frames have been collapsed,
10936 expand the first one before handling drag-and-drop events.
10937
10938 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10939 which is detected by autoconf.
10940
10941 2002-12-01 Steven Tamm <steventamm@mac.com>
10942
10943 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10944 offset in two hints table to allow prebinding to be redone and
10945 allow the executable to be stripped.
10946
10947 2002-11-29 Dave Love <fx@gnu.org>
10948
10949 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10950 already provided.
10951
10952 2002-11-29 Richard M. Stallman <rms@gnu.org>
10953
10954 * xdisp.c (start_display): Check more intelligently for
10955 whether the line is continued.
10956 (move_it_vertically_backward): Clear it->continuation_lines_width.
10957
10958 2002-11-28 Dave Love <fx@gnu.org>
10959
10960 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10961 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
10962
10963 2002-11-27 Steven Tamm <steventamm@mac.com>
10964
10965 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10966 more descriptive error output from lread.c:Fload upon most require
10967 cycles during boostrapping.
10968
10969 2002-11-27 Jason Rumney <jasonr@gnu.org>
10970
10971 * fileio.c (Finsert_file_contents): Give a more appropriate error
10972 for files bigger than 2Gb when off_t is 32 bit.
10973
10974 * dired.c (Ffile_attributes): Don't return negative file sizes for
10975 files bigger than 2Gb when off_t is 32 bit.
10976
10977 2002-11-27 Dave Love <fx@gnu.org>
10978
10979 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10980
10981 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10982 Test GETPGRP_VOID instead.
10983 [BSD_TERMIOS]: Remove definitions (never used).
10984
10985 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10986 Don't define.
10987 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10988
10989 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
10990
10991 2002-11-25 Jason Rumney <jasonr@gnu.org>
10992
10993 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10994 supported.
10995
10996 2002-11-25 Dave Love <fx@gnu.org>
10997
10998 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
10999
11000 * Makefile.in (TEMACS_LDFLAGS): Update last change.
11001
11002 2002-11-25 Andreas Schwab <schwab@suse.de>
11003
11004 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
11005
11006 2002-11-24 Steven Tamm <steventamm@mac.com>
11007
11008 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11009 determine the size of pointers alloced in unexed space instead
11010 of using possibly invalid emacs_zone pointers. This fixes the
11011 binary incompatibility problems caused by updates to libSystem.B.
11012
11013 2002-11-24 Richard M. Stallman <rms@gnu.org>
11014
11015 * search.c (Fstring_match): Doc fix.
11016
11017 * callint.c (Fcall_interactively): If a command fails because
11018 `*' detects a read-only buffer, but RECORD_FLAG is set,
11019 record it anyway if the args don't actually do tty input.
11020
11021 2002-11-22 Dave Love <fx@gnu.org>
11022
11023 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
11024
11025 * keyboard.c (interrupt_signal): Provide forward declaration.
11026 (kbd_buffer_store_event): Don't declare interrupt_signal.
11027
11028 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
11029
11030 2002-11-21 Richard M. Stallman <rms@gnu.org>
11031
11032 * eval.c (interactive_p): Skip any number of bytecode
11033 and special form frames, in any order.
11034
11035 2002-11-20 Jason Rumney <jasonr@gnu.org>
11036
11037 * w32fns.c (convert_mono_to_color_image): New function.
11038 (xbm_load, xbm_load_image): Use it when foreground or background
11039 is explicitly set.
11040
11041 2002-11-19 Dave Love <fx@gnu.org>
11042
11043 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
11044
11045 2002-11-18 Jason Rumney <jasonr@gnu.org>
11046
11047 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11048 (XPutPixel): Swap blue and red.
11049 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11050 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11051 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11052 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
11053
11054 2002-11-18 Dave Love <fx@gnu.org>
11055
11056 * m/orion105.h (HAVE_ALLOCA): Don't define.
11057
11058 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
11059
11060 * m/intel386.h: Don't include alloca.h or define alloca.
11061
11062 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11063 malloc, realloc, calloc.
11064
11065 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11066 (bcmp): Don't define.
11067
11068 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
11069
11070 * m/amdahl.h: Don't define LIB_STANDARD.
11071
11072 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
11073
11074 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
11075
11076 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11077 Don't include alloca.h.
11078
11079 * s/aix3-2.h (HAVE_FSYNC): Don't define.
11080
11081 * regex.c (_GNU_SOURCE): Don't define.
11082
11083 * process.c (_GNU_SOURCE): Don't define.
11084
11085 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
11086
11087 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
11088
11089 * s/sol2-8.h: Include sol2-6.h.
11090
11091 2002-11-18 Miles Bader <miles@gnu.org>
11092
11093 * dispextern.h (struct face): Add `overstrike' field.
11094 * xterm.c (x_draw_glyph_string_foreground)
11095 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11096 * xfaces.c (load_face_font): Set `face->overstrike' based on
11097 result from choose_face_font.
11098 (best_matching_font, choose_face_font): Add `needs_overstrike'
11099 argument, and use it to return whether overstriking is desirable
11100 for this face/font combo.
11101 (set_font_frame_param: Pass new argument to choose_face_font.
11102
11103 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11104
11105 This change is my fix for the following entry in etc/PROBLEMS:
11106 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11107 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11108
11109 * w32.c: Added wrapper functions around the win32 API functions
11110 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11111 GetSidIdentifierAuthority. These wrapper functions serve two
11112 purposes:
11113 1. They ensure that the wrapped function can never be called
11114 when Emacs is running on an operating system on which they are
11115 not supported (Microsoft Windows 95 / 98 / ME).
11116 2. They call the wrapped functions via function pointers rather
11117 than calling them directly. This avoids taking advantage of the
11118 undocumented fact that although these functions are not supported
11119 in the 9x branch of Microsoft Windows, the functions do exist in
11120 the version of advapi32.dll that is found in the 9x branch of
11121 Microsoft Windows.
11122
11123 * w32.c (init_user_info): Replace the calls to the win32 API
11124 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11125 and GetSidIdentifierAuthority with calls to the newly added
11126 wrapper functions.
11127
11128 * w32.h: Added extern declarations for the following functions:
11129 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11130 syms_of_w32menu, and void syms_of_fontset.
11131
11132 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11133 function pointer track_mouse_event_fn in the handler for the
11134 WM_SETFOCUS message.
11135
11136 * w32menu.c (initialize_frame_menubar): Add code to
11137 reinitialize the function pointers set_menu_item_info and
11138 get_menu_item_info.
11139
11140 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11141
11142 * sound.c: Added a partial implementation of play-sound-internal
11143 for Microsoft Windows. Added various #ifdef / #else / #endif
11144 code blocks to separate the code that will compile under
11145 Microsoft Windows from the code that is specific to Gnu/Linux.
11146 Moved several blocks of code around to make this separation of code
11147 into Windows compatible and Gnu/Linux compatible code blocks easier.
11148
11149 * makefile.w32-in: Include sound.c and link with WinMM.lib.
11150
11151 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11152 added support for play-sound-internal under Windows would be
11153 included in the build of Emacs.
11154
11155 2002-11-16 Jason Rumney <jasonr@gnu.org>
11156
11157 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11158
11159 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11160
11161 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
11162
11163 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11164 (adjust_point_for_property): Move out of display and invisible even if
11165 we were already inside before (in case a property was added while
11166 we weren't looking). Be more careful when handling invisible props.
11167 Skip invisible text as if it really wasn't there at all.
11168
11169 2002-11-15 Jason Rumney <jasonr@gnu.org>
11170
11171 * w32term.c (x_draw_image_foreground)
11172 (w32_draw_image_foreground_1): Use standard copy and invert
11173 operations to draw images.
11174
11175 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11176 depth of 1.
11177 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11178 (XPutPixel): Don't invert bits here.
11179
11180 2002-11-15 Jason Rumney <jasonr@gnu.org>
11181
11182 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11183 (w32_draw_image_foreground_1): Handle image masks.
11184 (x_draw_image_glyph_string): Don't BitBlt transparently.
11185
11186 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11187 (x_from_xcolors): Adjust RGB values for W32.
11188 (image_background, image_background_transparent)
11189 (postprocess_image, x_to_xcolors, x_disable_image)
11190 (x_build_heuristic_mask): Adapt for W32 and enable.
11191 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11192 (xbm_load): Remove unused variable.
11193
11194 2002-11-14 Richard M. Stallman <rms@gnu.org>
11195
11196 * buffer.c (syms_of_buffer): Doc fix.
11197
11198 2002-11-14 Dave Love <fx@gnu.org>
11199
11200 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
11201
11202 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11203 * xmenu.c (unuse_menu_items, digest_single_submenu):
11204 * xfns.c (x_put_x_image):
11205 * xdisp.c (message2_nolog, set_message):
11206 * undo.c (record_point):
11207 * terminfo.c (tparam):
11208 * syntax.c (scan_sexps_forward):
11209 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11210 * composite.c (update_compositions):
11211 * cm.c (calccost, cmgoto):
11212 * charset.c (c_string_width): Declare all args (per C99).
11213
11214 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
11215
11216 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11217 Don't declare.
11218
11219 * emacs.c (main) [!VMS]: Avoid third arg.
11220
11221 * fns.c (Fcopy_sequence): Doc fix.
11222 (Fmap_char_table): Cast `call2'.
11223
11224 2002-11-14 Francesco Potorti` <pot@gnu.org>
11225
11226 * s/sol2-8.h: New file.
11227
11228 2002-11-14 Kim F. Storm <storm@cua.dk>
11229
11230 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11231 dependency on `risky-local-variable' and the :propertize form.
11232
11233 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11234
11235 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11236
11237 * syntax.c (scan_sexps_forward): Undo last patch.
11238 Use a more obvious fix: check eob before updating the syntax table.
11239
11240 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11241
11242 * syntax.c (scan_sexps_forward): Update syntax table before reading
11243 a char rather than after so we don't update the table past eob.
11244
11245 2002-11-09 Dave Love <fx@gnu.org>
11246
11247 * buffer.c (Fset_buffer_major_mode): Fix last change.
11248
11249 * regex.c (regexec): Fix pmatch declaration.
11250
11251 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11252
11253 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11254 to self-inserting characters.
11255 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11256
11257 * coding.c (Vtranslation_table_for_input): New.
11258 (syms_of_coding): DEFVAR it.
11259
11260 2002-11-08 Juanma Barranquero <lektu@terra.es>
11261
11262 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11263 window.
11264
11265 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11266
11267 * process.c (Fformat_network_address): Remove unused locals p,
11268 cp, and i.
11269
11270 2002-11-06 Dave Love <fx@gnu.org>
11271
11272 * buffer.c (Qset_buffer_major_mode_hook): New.
11273 (Fset_buffer_major_mode): Use it.
11274
11275 2002-11-06 Richard M. Stallman <rms@gnu.org>
11276
11277 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11278 and stop_polling.
11279
11280 * process.c (wait_reading_process_input):
11281 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11282 Avoid initialization for auto Lisp_Object var.
11283
11284 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11285
11286 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11287
11288 2002-11-05 Richard M. Stallman <rms@gnu.org>
11289
11290 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11291
11292 * callint.c (Fcall_interactively): New local filter_specs.
11293 (Fcall_interactively): Check for progn as well as let.
11294 Add a gcpro.
11295 (Qprogn): New variable.
11296 (syms_of_callint): Staticpro and init Qprogn.
11297
11298 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11299
11300 * lread.c (Feval_buffer): Doc fix.
11301
11302 2002-11-04 Dave Love <fx@gnu.org>
11303
11304 * keyboard.c (read_char): Always translate iff
11305 Vkeyboard_translate_table is a char table and c is valid.
11306
11307 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11308 and fix C types.
11309
11310 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11311
11312 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11313
11314 * editfns.c (get_pos_property): Don't hardcode Qfield.
11315
11316 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11317 overlays. Also handle `invisible' prop.
11318
11319 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11320
11321 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11322 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11323
11324 2002-11-01 Andreas Schwab <schwab@suse.de>
11325
11326 * editfns.c (Fmessage): Revert last change to properly handle %%.
11327
11328 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11329
11330 * xmenu.c (unuse_menu_items): New fun.
11331 (menu_items_inuse): New var.
11332 (syms_of_xmenu): Initialize it.
11333 (init_menu_items): Use it to detect re-entrance.
11334 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11335 (Fx_popup_menu): Remove spurious XSETFRAME.
11336
11337 * editfns.c (find_field): Make an exception for nil fields.
11338
11339 2002-11-01 Dave Love <fx@gnu.org>
11340
11341 * m/gec63.h: Deleted.
11342
11343 2002-10-31 Dave Love <fx@gnu.org>
11344
11345 * xterm.c (XTread_socket): Fix last change.
11346 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11347
11348 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11349
11350 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11351
11352 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11353
11354 * editfns.c (overlays_around, get_pos_property): New funs.
11355 (find_field): Use them.
11356 Also be careful not to modify POS before its last use.
11357 (Fmessage): Don't Fformat if there's nothing to format.
11358
11359 2002-10-30 Dave Love <fx@gnu.org>
11360
11361 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11362 [HAVE_PTY_H]; Include pty.h.
11363
11364 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11365
11366 * xterm.c (Qeql): Declare.
11367 (Vx_keysym_table): New.
11368 (syms_of_xterm): Initialize it.
11369 (XTread_socket): Use it. Deal with ASCII keysyms.
11370 (XSetIMValues) [HAVE_X11R6]: Prototype.
11371
11372 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11373 (lispy_kana_keys): Comment out.
11374 (make_lispy_event) [XK_kana_A]: Comment out.
11375 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11376 Fix sprintf call.
11377
11378 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11379 regexp.h change).
11380 (TERMINFO, LIBS_TERMCAP): Define.
11381
11382 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11383 (bcmp): Define conditional on HAVE_BCMP.
11384 (NO_SIOCTL_H): Don't define.
11385 (TIOCSIGSEND): Don't make conditional on IRIX6.
11386
11387 * s/sol2-5.h: Don't include strings.h.
11388 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11389
11390 * s/irix6-0.h (IRIX6): Don't define.
11391 (bcopy, bcmp, bzero): Don't undef.
11392
11393 * s/irix6-5.h: Don't include strings.h.
11394 (IRIX6): Don't define.
11395 (bcopy, bcmp, bzero): Don't undef.
11396
11397 * syntax.c (Fforward_comment): Doc fix.
11398
11399 2002-10-29 Kim F. Storm <storm@cua.dk>
11400
11401 * process.c (Fsignal_process): Allow PROCESS to be specified by
11402 name in addition to pid (as integer or string).
11403
11404 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11405
11406 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11407 environments.
11408
11409 2002-10-27 Kim F. Storm <storm@cua.dk>
11410
11411 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11412
11413 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11414
11415 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11416
11417 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11418
11419 2002-10-26 Richard M. Stallman <rms@gnu.org>
11420
11421 * editfns.c (Fformat): Detect invalid format letters for floats.
11422
11423 2002-10-25 Kenichi Handa <handa@m17n.org>
11424
11425 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11426 (x_set_title): Likewise.
11427
11428 2002-10-25 Juanma Barranquero <lektu@terra.es>
11429
11430 * macgui.h:
11431 * w32gui.h: Remove definition of XColor.
11432
11433 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11434
11435 2002-10-24 Kim F. Storm <storm@cua.dk>
11436
11437 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11438 Callers changed (supply dummy arg).
11439
11440 * lisp.h (get_window_cursor_type): Update prototype.
11441
11442 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11443 get_window_cursor_type to track system caret.
11444
11445 2002-10-24 Kim F. Storm <storm@cua.dk>
11446
11447 * process.c (Fformat_network_address): New function.
11448 (syms_of_process): Defsubr it.
11449 (list_processes_1): Use it to format :local/:remote address if
11450 service/host is not set; before Emacs would crash in that case.
11451 (Fmake_network_process): Don't use Ffind_operation_coding_system
11452 to setup coding system if host or service is not set.
11453
11454 2002-10-23 Juanma Barranquero <lektu@terra.es>
11455
11456 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11457
11458 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11459 COLORREF.
11460
11461 * macgui.h:
11462 * w32gui.h: Add definition of XColor.
11463
11464 * macfns.c:
11465 * w32fns.c:
11466 * xfaces.c: Remove definition of XColor.
11467
11468 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11469
11470 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11471
11472 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11473 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11474 window if it is dedicated.
11475 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11476 (Vspecial_display_function): Update docstring.
11477
11478 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11479 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11480 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11481
11482 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11483
11484 * casefiddle.c (casify_region): Don't treat a prefix char as part
11485 of a word when at the beginning.
11486
11487 2002-10-17 Juanma Barranquero <lektu@terra.es>
11488
11489 * lread.c (syms_of_lread): Fix typos.
11490
11491 2002-10-17 Dave Love <fx@gnu.org>
11492
11493 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11494
11495 2002-10-16 Richard M. Stallman <rms@gnu.org>
11496
11497 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11498
11499 2002-10-14 Juanma Barranquero <lektu@terra.es>
11500
11501 * w16select.c (syms_of_win16select): Fix docstring for
11502 `selection-coding-system'.
11503
11504 * w32select.c (syms_of_w32select): Likewise.
11505
11506 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11507
11508 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11509 a backslash-quoted char.
11510 (scan_lists, scan_sexps_forward): Pacify the compiler.
11511
11512 2002-10-13 Richard M. Stallman <rms@gnu.org>
11513
11514 * window.c (window_scroll): Set immediate_quit.
11515
11516 * print.c (print): When backquote form is the car of a list,
11517 output in old style. Use old_backquote_output to output all
11518 comma forms inside it in old style too.
11519
11520 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11521
11522 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
11523
11524 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11525 batch mode).
11526
11527 * lread.c (Fload): Doc fix (load-suffixes).
11528
11529 2002-10-10 Steven Tamm <steventamm@mac.com>
11530
11531 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11532 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11533 Also switch the default to Qnil from Qt.
11534
11535 2002-10-08 Kenichi Handa <handa@m17n.org>
11536
11537 * coding.c (code_convert_region): When we need more GAP for
11538 conversion, pay attention to the case that coding->produced is not
11539 greater than coding->consumed.
11540
11541 2002-10-07 Richard M. Stallman <rms@gnu.org>
11542
11543 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11544
11545 2002-10-06 Andrew Choi <akochoi@shaw.ca>
11546
11547 * macmenu.c (mac_menu_show): Add j to count menu items; match
11548 menu_item_selection to it to find selected item.
11549
11550 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11551
11552 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11553 cases. The correct fix is to pass ReparentNotify to Xt.
11554 The shell widget interprets ConfigureNotify differently depending
11555 on if it has been reparented or not.
11556
11557 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
11558
11559 * editfns.c (Fformat_time_string): Doc fix.
11560
11561 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11562
11563 * fns.c (Flength): Doc fix.
11564
11565 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11566
11567 * keyboard.c (keyremap): New struct.
11568 (read_key_sequence): Use it: globally replace keytran_foo with
11569 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11570 keytran_next and fkey_next to just `next'.
11571
11572 2002-10-04 Steven Tamm <steventamm@mac.com>
11573
11574 * macterm.c (keycode_to_xkeysym_table): Change return to be
11575 treated like an X keysym.
11576
11577 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11578
11579 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11580 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11581 This is to also handle x/y changes that occur because of a resize.
11582
11583 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11584
11585 * frame.c (Vdelete_frame_functions): New variable.
11586 (syms_of_frame): Initialize and defvar it.
11587 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11588 it when frame's `tooltip' parameter is non-nil.
11589
11590 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11591
11592 * w32fns.c (x_create_tip_frame): Likewise.
11593
11594 * macfns.c (x_create_tip_frame): Likewise.
11595
11596 2002-09-30 Kenichi Handa <handa@m17n.org>
11597
11598 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11599 -1 before calling ccl_driver.
11600
11601 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11602 Only when it is non-nil, handle composition sequence.
11603 (setup_coding_system) <0>: Don't force composition handling.
11604
11605 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11606
11607 2002-09-29 Richard M. Stallman <rms@gnu.org>
11608
11609 * search.c (Freplace_match): Adjust match data for the substitution
11610 just made in the buffer.
11611
11612 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11613 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11614
11615 2002-09-27 Richard M. Stallman <rms@gnu.org>
11616
11617 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11618 (read_char): Use them. Do all exits thru the end of the function.
11619
11620 2002-09-27 Kenichi Handa <handa@etl.go.jp>
11621
11622 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11623 is nil.
11624
11625 2002-09-26 Richard M. Stallman <rms@gnu.org>
11626
11627 * regex.h (__restrict_arr): Don't define if already defined.
11628
11629 * coding.c (run_pre_post_conversion_on_str):
11630 Save and restore Vdeactivate_mark.
11631
11632 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11633
11634 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11635
11636 2002-09-26 Kenichi Handa <handa@etl.go.jp>
11637
11638 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11639 nonzero, try face's family at first. Otherwise try FAMILY at first.
11640 (choose_face_font): If C is a single byte char or latin-1, call
11641 try_font_list with PREFER_FACE_FAMILY 1.
11642
11643 2002-09-21 Richard M. Stallman <rms@gnu.org>
11644
11645 * window.c (select_window_1): Don't select frame.
11646 Set frame's selected window only when frame itself is selected.
11647 (Fselect_window): Doc fix.
11648
11649 2002-09-18 Kim F. Storm <storm@cua.dk>
11650
11651 * process.c (make-network-process): Doc fix (there is no
11652 network-server-log-function hook).
11653
11654 2002-09-18 Richard M. Stallman <rms@gnu.org>
11655
11656 * print.c (print): Clear out the unused parts of Vprint_number_table.
11657 (syms_of_print): Doc fix for `print-number-table'.
11658
11659 * unexelf.c (unexec): Undo previous change.
11660
11661 2002-09-17 Andreas Schwab <schwab@suse.de>
11662
11663 * m/alpha.h [LINUX]: Don't define DATA_START.
11664
11665 2002-09-16 Dave Love <fx@gnu.org>
11666
11667 * unexelf.c (unexec): Deal with .got, reinstating change from
11668 25-08-1999.
11669
11670 2002-09-13 Richard M. Stallman <rms@gnu.org>
11671
11672 * s/sol2-6.h (UNEXEC): Comment out definition.
11673
11674 * unexsol.c (unexec): Don't downcase first letter of error msg.
11675
11676 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11677
11678 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
11679
11680 * unexsol.c: Include buffer.h, charset.h, coding.h.
11681
11682 2002-09-11 Richard M. Stallman <rms@gnu.org>
11683
11684 * unexsol.c: Don't use report_file_error; do it by hand
11685 using dlerror.
11686
11687 * process.c (wait_reading_process_input, both versions):
11688 Before calling turn_on_atimers, call stop_polling.
11689
11690 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11691
11692 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11693 we go to too_near_end, call clear_glyph_matrix.
11694 (redisplay_window): After make_cursor_line_fully_visible,
11695 call clear_glyph_matrix and bypass `goto done'.
11696
11697 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11698 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11699
11700 2002-09-10 Richard M. Stallman <rms@gnu.org>
11701
11702 * fileio.c (Fdo_auto_save): Catch error making directory.
11703 Only call push_message if we need to.
11704 At the same time, make an unwind-protect to pop it.
11705 Rename local message_p to old_message_p.
11706 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11707 (do_auto_save_unwind): Don't call pop_message.
11708
11709 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11710
11711 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11712
11713 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11714
11715 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11716
11717 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11718
11719 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11720 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11721 (re_match_2_internal): Be more careful with infinite loops.
11722
11723 2002-09-10 Kim F. Storm <storm@cua.dk>
11724
11725 * macros.c (end_kbd_macro): New function.
11726 (Fend_kbd_macro): Use it.
11727
11728 * macros.h (end_kbd_macro): Declare extern.
11729
11730 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11731 end and save it instead of discarding it.
11732
11733 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
11734
11735 * s/sol2-6.h: Fix typo. Add comment.
11736
11737 2002-09-09 Richard M. Stallman <rms@gnu.org>
11738
11739 * regex.c (regnum_t): Use signed int, not unsigned int.
11740
11741 * s/sol2-6.h: New file.
11742
11743 * s/sol2-5.h (UNEXEC): Definition deleted.
11744
11745 2002-09-08 Kim F. Storm <storm@cua.dk>
11746
11747 * macros.c (executing_macro_index): Change type to EMACS_INT.
11748 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11749
11750 * macros.h (executing_macro_index): Change type to EMACS_INT.
11751
11752 2002-09-06 Richard M. Stallman <rms@gnu.org>
11753
11754 * casetab.c (set_case_table): Make canon table point to eqv table.
11755
11756 2002-09-06 Juanma Barranquero <lektu@terra.es>
11757
11758 * coding.c (syms_of_coding): Fix spacing.
11759
11760 * composite.c (Fcompose_region_internal)
11761 (Fcompose_string_internal): Likewise.
11762
11763 * data.c (Flsh): Likewise.
11764
11765 * fontset.c (Fset_fontset_font): Likewise.
11766
11767 * macfns.c (Fx_server_max_request_size): Likewise.
11768
11769 * w16select.c (syms_of_win16select): Likewise.
11770
11771 * w32select.c (syms_of_w32select): Likewise.
11772
11773 * xselect.c (syms_of_xselect): Likewise.
11774
11775 2002-09-05 Richard M. Stallman <rms@gnu.org>
11776
11777 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11778 call EXTEND_RANGE_TABLE and return a proper value.
11779 (set_image_of_range): Don't call set_image_of_range_1
11780 if no TRANSLATE or if range includes all of Latin-1.
11781 Only call it for the Latin-1 part of the range.
11782 For other cases, make two separate ranges,
11783 one for the original specified characters and one for
11784 their case-conversions.
11785
11786 2002-09-04 Richard M. Stallman <rms@gnu.org>
11787
11788 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11789
11790 * window.c (displayed_window_lines): Correct for one-off bug
11791 in HEIGHT on non-window displays.
11792
11793 * regex.c (set_image_of_range_1): New function.
11794 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11795 Return a value to indicate running out of memory.
11796 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11797 (extend_range_table_work_area): New subroutine.
11798 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11799 Different calling conventions, and used from set_image_of_range{,_1}.
11800 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11801
11802 2002-09-04 Juanma Barranquero <lektu@terra.es>
11803
11804 * makefile.w32-in: All dependencies updated.
11805
11806 2002-09-01 Richard M. Stallman <rms@gnu.org>
11807
11808 * unexsol.c: New file.
11809
11810 * xfns.c (Qbox): Declare external, don't define.
11811
11812 * xdisp.c (redisplay_window) <force-start case>:
11813 If point is on semi-visible last line, reposition
11814 it at previous line.
11815
11816 * alloc.c (display_malloc_warning): Use display-warning.
11817 (malloc_warning_1): Function deleted.
11818
11819 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11820
11821 * lread.c (read1): Handle #! by skipping the line.
11822
11823 2002-08-31 Richard M. Stallman <rms@gnu.org>
11824
11825 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11826 Don't include LDFLAGS.
11827 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11828
11829 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11830
11831 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11832 member of x_display_info unless we compile for some window system.
11833
11834 2002-08-31 Kim F. Storm <storm@cua.dk>
11835
11836 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11837 (get_window_cursor_type): Don't use them.
11838 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11839
11840 2002-08-30 Kenichi Handa <handa@etl.go.jp>
11841
11842 * xdisp.c (get_next_display_element): Fix previous change.
11843
11844 2002-08-30 Andrew Choi <akochoi@shaw.ca>
11845
11846 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11847 (expose_window): Use it to fix the display of overlapping
11848 rows (merge code from xterm.c).
11849
11850 * macfns.c (Qbox): Add extern declaration.
11851
11852 2002-08-30 Juanma Barranquero <lektu@terra.es>
11853
11854 * w32fns.c (Qbox): Make extern.
11855 (syms_of_w32fns): Remove initialization of Qbox.
11856
11857 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11858
11859 * xfns.c (Fx_open_connection): Fix error message.
11860
11861 2002-08-30 Kim F. Storm <storm@cua.dk>
11862
11863 The following changes consolidates the handling of the cursor
11864 type in xdisp.c, moving duplicate code and functionality from
11865 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11866
11867 * frame.h (enum text_cursor_kinds): Consolidated here.
11868 Added DEFAULT_CURSOR value.
11869 (struct frame) <desired_cursor, cursor_width>
11870 <blink_off_cursor, blink_off_cursor_width>: New fields.
11871 Consolidated from output_x, output_w32 and output_mac structs.
11872 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11873 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11874
11875 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11876 Variables consolidated here.
11877 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11878 (Vcursor_in_non_selected_windows): Renamed from
11879 cursor_in_non_selected_windows and changed to Lisp_Object.
11880 (syms_of_xdisp): Define and staticpro new and moved variables.
11881 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11882 consolidated here. Recognize Qhollow setting.
11883 (set_frame_cursor_types): New function to set frame cursor types
11884 based on the frame parameters.
11885 (get_window_cursor_type): New function to calculate new cursor
11886 type and width for the specified window. Based on duplicated
11887 code consolidated here.
11888 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11889 check buffer-local alternate-cursor-type and blink-cursor-alist
11890 before using built-in blink off methods.
11891
11892 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11893
11894 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11895 (get_specified_cursor_type, get_window_cursor_type)
11896 (set_frame_cursor_types): Added prototypes.
11897
11898 * macfns.c (x_specified_cursor_type): Removed.
11899 (x_set_cursor_type): Use set_frame_cursor_types.
11900 (Qbar, Qbox): Removed.
11901 (syms_of_macfns): Don't intern or staticpro them.
11902
11903 * macterm.c (x_specified_cursor_type): Remove prototype.
11904 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11905 (x_display_and_set_cursor): Use get_window_cursor_type.
11906 Remove unused local variables cursor_non_selected, active_cursor.
11907 Redraw cursor if hbar cursor width changes.
11908 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11909
11910 * macterm.h (enum text_cursor_kinds): Removed.
11911 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11912 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11913 (FRAME_DESIRED_CURSOR): Macro removed.
11914
11915 * w32fns.c (Vblink_cursor_alist): Removed.
11916 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11917 (syms_of_w32fns): Don't intern, staticpro, or define them.
11918 (x_specified_cursor_type): Removed.
11919 (x_set_cursor_type): Use set_frame_cursor_types.
11920
11921 * w32term.c (x_specified_cursor_type): Remove prototype.
11922 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11923 (x_display_and_set_cursor): Use get_window_cursor_type.
11924 Remove unused local variables cursor_off_state.
11925 Redraw cursor if hbar cursor width changes.
11926 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11927
11928 * w32term.h (enum text_cursor_kinds): Removed.
11929 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11930 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11931 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11932 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11933 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11934 w32_highlight_frame.
11935
11936 * xfns.c (Vblink_cursor_alist): Removed.
11937 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11938 (syms_of_xfns): Don't intern, staticpro, or define them.
11939 (x_specified_cursor_type): Removed.
11940 (x_set_cursor_type): Use set_frame_cursor_types.
11941
11942 * xterm.c (x_specified_cursor_type): Remove prototype.
11943 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11944 (x_display_and_set_cursor): Use get_window_cursor_type.
11945 Remove unused local variables cursor_off_state.
11946 Redraw cursor if hbar cursor width changes.
11947
11948 * xterm.h (enum text_cursor_kinds): Removed.
11949 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11950 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11951 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11952 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11953 (x_specified_cursor_type): Remove prototype.
11954
11955 2002-08-28 Richard M. Stallman <rms@gnu.org>
11956
11957 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11958 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11959 (Vblink_cursor_alist): New variable.
11960 (syms_of_w32fns): Initialize and defvar it.
11961 (x_specified_cursor_type): Recognize Qbox for filled box.
11962 Exceptions are hollow boxes.
11963 (Qbox, Qhollow): New variables.
11964 (syms_of_w32fns): Initialize and staticpro them.
11965
11966 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11967 New macros.
11968 (struct w32_output): New fields blink_off_cursor,
11969 blink_off_cursor_width.
11970 (FRAME_CURSOR_WIDTH): New macro.
11971
11972 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11973 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11974
11975 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11976 for bar cursor.
11977
11978 * w32term.c (expose_overlaps): New function.
11979 (expose_window): Use it to fix the display of overlapping rows.
11980
11981 2002-08-28 Simon Josefsson <jas@extundo.com>
11982
11983 * xfns.c (Fx_open_connection): Improve help when X connection
11984 fails, xhost is insecure and xauth is better.
11985
11986 2002-08-28 Juanma Barranquero <lektu@terra.es>
11987
11988 * makefile.w32-in: Add missing dependencies on w32term.h and
11989 composite.h.
11990
11991 * emacs.c (USAGE1): Add missing newline.
11992
11993 2002-08-27 Andrew Choi <akochoi@shaw.ca>
11994
11995 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11996
11997 2002-08-27 Richard M. Stallman <rms@gnu.org>
11998
11999 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12000 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12001 (Vblink_cursor_alist): New variable.
12002 (syms_of_xfns): Initialize and defvar it.
12003 (x_specified_cursor_type): Recognize Qbox for filled box.
12004 Exceptions are hollow boxes.
12005 (Qbox, Qhollow): New variables.
12006 (syms_of_xfns): Initialize and staticpro them.
12007
12008 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12009 New macros.
12010 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12011
12012 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12013 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12014
12015 * emacs.c (main): Handle --script.
12016 (USAGE1): Mention --script.
12017 (standard_args): Define sort order for --script.
12018
12019 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12020
12021 * xdisp.c (redisplay_updating_p): Variable removed.
12022 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12023 New variables.
12024 (init_iterator): Don't free realized faces if
12025 inhibit_free_realized_faces is set.
12026 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12027 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12028 initialize Qinhibit_free_realized_faces.
12029
12030 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12031 when iterator is adding glyphs to a glyph matrix.
12032
12033 2002-08-27 Kenichi Handa <handa@etl.go.jp>
12034
12035 * xdisp.c (get_next_display_element): In unibyte case, don't use
12036 octal form for such eight-bit characters that can be converted to
12037 multibyte char.
12038
12039 2002-08-26 Kim F. Storm <storm@cua.dk>
12040
12041 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12042 foreground and background colors. From Joe Buehler.
12043
12044 2002-08-26 Miles Bader <miles@gnu.org>
12045
12046 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12047
12048 2002-08-25 Andrew Choi <akochoi@shaw.ca>
12049
12050 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12051 defined instead of MAC_OSX.
12052
12053 * s/darwin.h (select): Define select to sys_select only if
12054 HAVE_CARBON is defined.
12055 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12056 (DONT_REOPEN_PTY): #def it.
12057
12058 * macterm.c (XTread_socket): Remove code to call
12059 SendEventToEventTarget for keys with command modifiers when
12060 mac_command_key_is_meta is nil.
12061
12062 2002-08-24 Andreas Schwab <schwab@suse.de>
12063
12064 * eval.c (Fdefvar): Fix last change.
12065
12066 2002-08-23 Richard M. Stallman <rms@gnu.org>
12067
12068 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12069 Record variables in load history as (defvar . VAR).
12070 (Fdefvar): Don't record in load history if no initial value.
12071 (Qdefvar): New variable.
12072 (syms_of_eval): Init and staticpro it.
12073
12074 * lread.c (syms_of_lread): Doc fix.
12075 (build_load_history): Use Fmember to see if a definition
12076 is already in the Vload_history element.
12077
12078 * process.c (Fstart_process): Remove /: from program name.
12079
12080 * emacs.c (decode_env_path): Don't add /: if file name handler
12081 has a `safe-magic' property.
12082
12083 * callproc.c (Fcall_process): Remove /: from program name.
12084
12085 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12086
12087 * regex.c (PATFETCH): Remove the translating fetch.
12088 (PATFETCH_RAW): Rename to PATFETCH.
12089 (set_image_of_range): New fun.
12090 (SET_RANGE_TABLE_WORK_AREA): Use it.
12091 (regex_compile): Don't translate the pattern chars so eagerly.
12092 Only do it when inserting an `exactn' bytecode or when handling
12093 a char-range.
12094 (mutually_exclusive_p): Avoid empty statement.
12095
12096 2002-08-22 Kim F. Storm <storm@cua.dk>
12097
12098 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12099 end up on a partially visible line; this reverts a specific part
12100 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12101 display error which has been reported several times now.
12102 However it introduces the problem that changes was supposed to fix.
12103 See my comments in the source if you want to debug this further.
12104
12105 2002-08-20 Kenichi Handa <handa@etl.go.jp>
12106
12107 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12108
12109 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12110
12111 * msdos.c (croak): Add `void' to definition.
12112
12113 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
12114 Don't define them, they are defined in msdos.c.
12115
12116 * mem-limits.h [MSDOS]: Declare etext.
12117
12118 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12119 `const' since CORRECT_DIR_SEPS modifies its target.
12120
12121 2002-08-19 Kim F. Storm <storm@cua.dk>
12122
12123 * keyboard.c (Fclear_this_command_keys): Add optional arg
12124 KEEP-RECORD to avoid clearing lossage when we just want to clear
12125 the current key sequence (kmacro needs this).
12126
12127 2002-08-19 Kenichi Handa <handa@localhost>
12128
12129 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12130
12131 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12132 cons, return Qnil.
12133
12134 2002-08-17 Richard M. Stallman <rms@gnu.org>
12135
12136 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12137
12138 * sysdep.c [!VMS]: Include sys/files.h.
12139
12140 * editfns.c (save_restriction_restore): Defend from unchained marker.
12141
12142 * buffer.c (overlays_at): Handle extending vec uniformly.
12143 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12144
12145 2002-08-15 Andrew Choi <akochoi@shaw.ca>
12146
12147 * mac.c (init_mac_osx_environment): New function.
12148
12149 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12150
12151 2002-08-14 Kim F. Storm <storm@cua.dk>
12152
12153 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12154 executing macro before appending to it (when used from Lisp).
12155 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12156 which is called prior to each iteration of macro (for kmacro.el).
12157 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12158
12159 * lisp.h (Fexecute_kbd_macro): Update prototype.
12160
12161 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12162
12163 2002-08-14 Kenichi Handa <handa@etl.go.jp>
12164
12165 * xselect.c (QUTF8_STRING): New variable.
12166 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12167 (x_atom_to_symbol): Likewise.
12168 (x_get_local_selection): New argument local_request. If it is
12169 nonzero, call handler_fn with the second arg nil.
12170 (x_handle_selection_request): Call x_get_local_selection with
12171 local_request 0.
12172 (lisp_data_to_selection_data): Don't encode the string here.
12173 (Fx_get_selection_internal): Call x_get_local_selection with
12174 local_request 1.
12175 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12176
12177 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12178
12179 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12180
12181 2002-08-13 Richard M. Stallman <rms@gnu.org>
12182
12183 * minibuf.c (Fminibufferp): New function.
12184 (syms_of_minibuf): Defsubr it.
12185 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12186
12187 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12188
12189 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12190
12191 2002-08-12 Richard M. Stallman <rms@gnu.org>
12192
12193 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12194 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12195 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12196 already.
12197
12198 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12199
12200 2002-08-11 Andrew Choi <akochoi@shaw.ca>
12201
12202 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12203 (Vmac_pass_command_to_system): New variable.
12204 (Vmac_pass_control_to_system): New variable.
12205 (do_mouse_moved): Check wp with is_emacs_window.
12206 (XTread_socket): Check window_ptr with is_emacs_window.
12207 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12208 events back to Mac Toolbox for processing, depending on values of
12209 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12210 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12211 Vmac_pass_control_to_system.
12212
12213 2002-08-10 Kenichi Handa <handa@etl.go.jp>
12214
12215 * coding.c (unencodable_char_position): New function.
12216 (Funencodable_char_position): New function.
12217 (syms_of_coding): Defsubr Funencodable_char_position.
12218
12219 2002-08-10 Andrew Choi <akochoi@shaw.ca>
12220
12221 * mac.c (sys_select) [MAC_OSX]: New function.
12222
12223 * macterm.c (MakeMeTheFrontProcess): New function.
12224 (mac_initialize): Call MakeMeTheFrontProcess.
12225
12226 * s/darwin.h: Define select to sys_select.
12227
12228 2002-08-09 Richard M. Stallman <rms@gnu.org>
12229
12230 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12231
12232 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12233
12234 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12235 end of the buffer.
12236
12237 2002-08-08 Ken Raeburn <raeburn@mit.edu>
12238
12239 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12240
12241 * puresize.h (BASE_PURESIZE): Increase to 910000.
12242
12243 2002-08-08 Kenichi Handa <handa@etl.go.jp>
12244
12245 * coding.c (Ffind_operation_coding_system): For write-region, if
12246 VISIT is a filename, make it the target.
12247
12248 2002-08-07 Richard M. Stallman <rms@gnu.org>
12249
12250 * alloc.c (mark_object): Detect long lists for debugging.
12251 (mark_object_loop_halt): New variable.
12252
12253 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12254
12255 * data.c (Fmake_variable_frame_local): Doc fix.
12256
12257 2002-08-01 David Ponce <david@dponce.com>
12258
12259 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12260 (malloc_widget_value, free_widget_value)
12261 (w32_free_submenu_strings): Use them.
12262
12263 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12264 (push_menu_pane, push_menu_item, single_keymap_panes)
12265 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12266 (single_submenu, set_frame_menubar)
12267 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12268
12269 (Fx_popup_menu): Don't show pop up menu until preceding one is
12270 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12271
12272 * w32menu.c: Changes adapted from xmenu.c
12273 (set_frame_menubar): First parse all submenus,
12274 then make widget_value trees from them.
12275 Don't allocate any widget_value objects
12276 until we are done with the parsing.
12277 (parse_single_submenu): New function.
12278 (digest_single_submenu): New function.
12279 (single_submenu): Function deleted, replaced by those two.
12280
12281 2002-08-04 Andrew Choi <akochoi@shaw.ca>
12282
12283 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12284 returns a valid window pointer before proceeding for keyDown and
12285 autoKey events.
12286
12287 2002-08-03 Andrew Choi <akochoi@shaw.ca>
12288
12289 * macterm.c (USE_CARBON_EVENTS): New macro.
12290 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12291 (x_iconify_frame): Call CollapseWindow.
12292 (Vmac_reverse_ctrl_meta): New variable.
12293 (Vmac_wheel_button_is_mouse_2): New variable.
12294 (init_mac_drag_n_drop): New function.
12295 (mac_do_receive_drag): New function.
12296 (mac_handle_service_event): New function.
12297 (init_service_handler): New function.
12298 (mac_to_emacs_modifiers): New function.
12299 (mac_event_to_emacs_modifiers): New function.
12300 (mac_get_mouse_btn): New function.
12301 (mac_convert_event_ref): New function.
12302 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12303 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12304 mac_get_mouse_btn.
12305 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12306
12307 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12308 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12309 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12310 TOOL_BAR_EVENT for MAC_OS as well.
12311 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12312 as for WINDOWS_NT.
12313 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12314
12315 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12316
12317 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12318
12319 * xdisp.c (forward_to_next_line_start): Fix a condition that
12320 lead to a newline being skipped.
12321
12322 2002-08-02 Andrew Choi <akochoi@shaw.ca>
12323
12324 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12325
12326 2002-08-01 Richard M. Stallman <rms@gnu.org>
12327
12328 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12329
12330 2002-07-31 Andrew Choi <akochoi@shaw.ca>
12331
12332 * macfns.c: #undef init_process before #define-ing it.
12333
12334 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12335 HAVE_CARBON is defined.
12336
12337 2002-07-31 Richard M. Stallman <rms@gnu.org>
12338
12339 * xmenu.c (set_frame_menubar): First parse all submenus,
12340 then make widget_value trees from them.
12341 Don't allocate any widget_value objects
12342 until we are done with the parsing.
12343 (parse_single_submenu): New function.
12344 (digest_single_submenu): New function.
12345 (single_submenu): Function deleted, replaced by those two.
12346
12347 2002-07-30 Juanma Barranquero <lektu@terra.es>
12348
12349 * w32proc.c (syms_of_ntproc): Fix docstring of
12350 `w32-get-true-file-attributes'.
12351
12352 2002-07-28 Richard M. Stallman <rms@gnu.org>
12353
12354 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12355 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12356
12357 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12358
12359 * keyboard.c (make_lispy_event):
12360 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12361 Explicitly clear up_modifier in event->modifiers.
12362
12363 2002-07-27 Richard M. Stallman <rms@gnu.org>
12364
12365 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12366
12367 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12368 for bar cursor.
12369
12370 2002-07-26 Kenichi Handa <handa@etl.go.jp>
12371
12372 * coding.c (detect_coding_iso2022): While checking a byte sequence
12373 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12374 it in the normal loop.
12375
12376 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12377
12378 * xterm.c (expose_overlaps): New function.
12379 (expose_window): Use it to fix the display of overlapping rows.
12380
12381 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12382
12383 2002-07-23 Ken Raeburn <raeburn@gnu.org>
12384
12385 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12386 since it only depends on XUINT.
12387
12388 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12389 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12390 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12391 Macros deleted.
12392
12393 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12394 its value over other approaches.
12395 * sysdep.c (start_of_data): Don't define the function if a macro
12396 form has been defined.
12397
12398 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12399
12400 * xdisp.c (redisplay_updating_p): New variable.
12401 (init_iterator): Don't free realized faces when
12402 redisplay_updating_p is set.
12403 (redisplay_internal): Set redisplay_updating_p while updating
12404 the display.
12405
12406 2002-07-23 Richard M. Stallman <rms@gnu.org>
12407
12408 * editfns.c (Fmessage): Treat "" like nil.
12409
12410 2002-07-23 Kenichi Handa <handa@etl.go.jp>
12411
12412 * xdisp.c (face_before_or_after_it_pos):
12413 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12414
12415 2002-07-22 Juanma Barranquero <lektu@terra.es>
12416
12417 * callproc.c (init_callproc) [DOS_NT]:
12418 Initialize Vshared_game_score_directory to nil.
12419 (syms_of_callproc) [DOS_NT]: Likewise.
12420
12421 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12422
12423 * xdisp.c (display_line): Replace an abort with xassert.
12424
12425 2002-07-21 Richard M. Stallman <rms@gnu.org>
12426
12427 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12428 and END_UNCHANGED when setting buffer_unchanged_p.
12429 Use current_matrix_up_to_date_p to decide whether to use
12430 try_cursor_movement.
12431
12432 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12433
12434 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12435
12436 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12437 Set to nil if dir does not exist.
12438 (syms_of_callproc): Init unconditionally and simply.
12439
12440 * buffer.c (Fbuffer_list): Doc fix.
12441
12442 2002-07-21 Ken Raeburn <raeburn@gnu.org>
12443
12444 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12445
12446 * buffer.c (mmap_realloc): When shrinking, make sure number of
12447 pages to unmap is rounded towards zero.
12448
12449 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12450 (XSETINT): Deleted.
12451
12452 * m/att3b.h (XINT): Don't define.
12453 (VALBITS, VALMASK, XTYPE): Deleted.
12454 (DATA_SEG_BITS): Define.
12455 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12456 ARRAY_MARK_FLAG): Deleted.
12457 (DATA_SEG_BITS): Define.
12458 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12459 (DATA_SEG_BITS): Define.
12460
12461 2002-07-20 Richard M. Stallman <rms@gnu.org>
12462
12463 * print.c (print_error_message): New args CONTEXT and CALLER.
12464 Calls changed.
12465
12466 * lisp.h (print_error_message): Declare new args.
12467
12468 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12469 and CONTEXT to print_error_message, don't print them here.
12470 For a Quit, don't use Vsignaling_function.
12471 Call message_log_maybe_newline.
12472
12473 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12474
12475 2002-07-20 Kim F. Storm <storm@cua.dk>
12476
12477 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12478
12479 2002-07-19 Ken Raeburn <raeburn@gnu.org>
12480
12481 * bytecode.c (struct byte_stack): Pointers into byte string now
12482 point to const.
12483 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12484 const.
12485 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12486 * coding.c (encode_eol, detect_coding, detect_eol):
12487 (decode_coding, encode_coding, detect_coding_system):
12488 Source strings now treated as const.
12489 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12490 modify Lisp string contents.
12491 * coding.h (decode_coding, encode_coding, detect_coding,
12492 detect_eol): Declarations updated.
12493 * composite.c (compose_chars_in_text): Treat Lisp string contents
12494 as const.
12495 * dispnew.c (safe_bcopy): Source pointer now points to const.
12496 * lisp.h (STRING_COPYIN): New macro.
12497 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12498 (internal_with_output_to_temp_buffer): Declarations updated.
12499 * print.c (temp_output_buffer_setup):
12500 (internal_with_output_to_temp_buffer): Buffer name argument is now
12501 pointer to const.
12502 * sound.c (struct sound_device): Function pointer field "write"
12503 buffer argument now points to const.
12504 (vox_write): Buffer argument points to const.
12505 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12506 contents as const.
12507 * sysdep.c (emacs_write): Buffer pointer now const.
12508 * term.c (encode_terminal_code): Buffer pointer now const.
12509 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12510 (x_face_list_fonts, x_update_menu_appearance):
12511 (hash_string_case_insensitive): Treat Lisp string contents as const.
12512
12513 2002-07-19 Juanma Barranquero <lektu@terra.es>
12514
12515 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12516
12517 * fileio.c (syms_of_fileio): Likewise.
12518 (Ffile_name_as_directory): Fix argument name in docstring.
12519 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
12520
12521 2002-07-18 Richard M. Stallman <rms@gnu.org>
12522
12523 * data.c (Fdefalias): Doc fix.
12524
12525 2002-07-17 Dave Love <fx@gnu.org>
12526
12527 * intervals.h (text_property_stickiness): Use P_.
12528
12529 * ccl.c: Remove `emacs' conditionals.
12530 (ccl_backtrace_table): Fix size spec.
12531 (ccl_driver): Fix type errors.
12532
12533 2002-07-16 Ken Raeburn <raeburn@gnu.org>
12534
12535 * alloc.c (xstrdup, make_string, make_unibyte_string)
12536 (make_multibyte_string, build_string): String pointer args now
12537 point to const.
12538 * charset.c (find_charset_in_text, c_string_width):
12539 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12540 * fileio.c (report_file_error):
12541 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12542 (count_combining_before, count_combining_after, insert_1_both):
12543 (insert, insert_and_inherit, insert_string):
12544 (insert_before_markers, insert_before_markers_and_inherit):
12545 * lread.c (intern, oblookup, hash_string):
12546 * minibuf.c (temp_echo_area_glyphs):
12547 * search.c (fast_c_string_match_ignore_case):
12548 * sysdep.c (emacs_open, set_file_times):
12549 * xfaces.c (xstricmp):
12550 * xdisp.c (store_frame_title, string_char_and_length):
12551 (message_dolog, message2, message2_nolog, set_message): Likewise.
12552 (set_message_1): Cast message string argument to const pointer.
12553 * editfns.c (general_insert_function): Insertion function now
12554 takes pointer to const for input data.
12555 * charset.h (find_charset_in_text, c_string_width):
12556 (parse_str_as_multibyte): Declarations updated.
12557 * dispextern.h (xstricmp): Declaration updated.
12558 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12559 (count_size_as_multibyte, count_combining_before):
12560 (count_combining_after, insert_1, insert_1_both, message_dolog):
12561 (insert, insert_and_inherit, insert_before_markers)
12562 (insert_before_markers_and_inherit, set_message, message2):
12563 (message2_dolog, build_string, make_string, make_unibyte_string):
12564 (make_multibyte_string, intern, oblookup, report_file_error):
12565 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12566 (emacs_open, xstrdup): Declarations updated.
12567 * systime.h (set_file_times): Declaration updated.
12568
12569 * charset.c (find_charset_in_text, lisp_string_width): Use const
12570 for pointer to lisp string data.
12571 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12572 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12573 * coding.c (Ffind_coding_systems_region_interval):
12574 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12575 (Fmake_directory_internal, Fdelete_directory):
12576 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12577 * fontset.c (font_family_registry, fs_query_fontset):
12578 (list_fontsets):
12579 * frame.c (Fframe_parameter):
12580 * keyboard.c (cmd_error_internal):
12581 * keymap.c (Fdescribe_buffer_bindings):
12582 * lread.c (complete_filename_p, openp):
12583 * minibuf.c (Fminibuffer_complete_word):
12584 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12585 (face_before_or_after_it_pos, next_element_from_string):
12586 (get_overlay_arrow_glyph_row, display_mode_element):
12587 (decode_mode_spec_coding):
12588 * xterm.c (same_x_server): Likewise.
12589
12590 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12591 settings of non-existent fields.
12592
12593 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12594 copy a lisp value.
12595
12596 * lread.c (Fintern_soft): Use string macros instead of
12597 Lisp_String fields.
12598 * keyboard.c (echo_char, parse_modifiers_uncached):
12599 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12600 * textprop.c (validate_interval_range, interval_of): Likewise.
12601
12602 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12603
12604 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12605 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12606 XSTRING()->size_byte.
12607
12608 * lisp.h (SDATA, SREF): Produce rvalue.
12609 (SSET): New macro.
12610 * alloc.c (make_event_array): Use SSET for storing into a string.
12611 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12612 a string.
12613 * casefiddle.c (casify_object): Use SSET.
12614 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12615 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12616 address of string contents.
12617 * data.c (Faref): Use SDATA.
12618 (Faset): Use SDATA, SSET.
12619 * dired.c (directory_files_internal): Use SSET.
12620 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12621 (Fread_file_name): Use SREF, SSET.
12622 * fns.c (concat): Use SSET.
12623 (concat, Fdelete): Use SDATA.
12624 * insdel.c (insert_from_string_1): Use SDATA.
12625 * keyboard.c (Fevent_convert_list): Use SREF.
12626 * lread.c (Fload): Use SDATA, SSET.
12627 * macfns.c (validate_x_resource_name): Use SSET.
12628 * process.c (status_message): Use SSET.
12629 * search.c (wordify): Use SDATA.
12630 (Freplace_match): Use SREF.
12631 * w32fns.c (validate_x_resource_name): Use SSET.
12632 * xfns.c (validate_x_resource_name): Use SSET.
12633 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12634
12635 2002-07-16 Richard M. Stallman <rms@gnu.org>
12636
12637 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12638
12639 * xdisp.c (reconsider_clip_changes):
12640 Don't test prevent_redisplay_optimizations_p.
12641 (redisplay_internal): Test prevent_redisplay_optimizations_p
12642 along with clip_changed in some cases.
12643 (try_window_id): Likewise.
12644 (redisplay_window): New local var buffer_unchanged_p.
12645
12646 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12647
12648 * process.c (create_process): Test USG_SUBTTY_WORKS.
12649 (process_send_signal): Clean up handling of GID.
12650 Detect errors in ioctls meant to set GID.
12651
12652 * window.c (temp_output_buffer_show):
12653 Don't set prevent_redisplay_optimizations_p.
12654
12655 2002-07-15 Juanma Barranquero <lektu@terra.es>
12656
12657 * eval.c (Fdefvaralias): Add docstring argument.
12658
12659 2002-07-15 Ken Raeburn <raeburn@gnu.org>
12660
12661 * lisp.h (STRING_INTERVALS): Produce rvalue.
12662 (STRING_SET_INTERVALS): New macro.
12663 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12664 * fns.c (Fstring_as_multibyte): Likewise.
12665 * intervals.c (balance_possible_root_interval, delete_interval)
12666 (create_root_interval, copy_intervals_to_string): Likewise.
12667 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12668 instead of 0.
12669
12670 2002-07-14 Ken Raeburn <raeburn@gnu.org>
12671
12672 * lisp.h (STRING_SET_CHARS): New macro.
12673 (SCHARS, SBYTES): Produce rvalues.
12674 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12675 * fns.c (concat): Likewise.
12676 * lread.c (read_vector): Likewise.
12677
12678 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12679 (STRING_SET_UNIBYTE): New macro.
12680 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12681 length of -1) changed to use STRING_SET_UNIBYTE.
12682 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12683 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12684 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12685 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12686 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12687 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12688 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12689 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12690 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12691 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12692 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12693 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12694 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12695 unchanged for now.
12696
12697 2002-07-13 Kim F. Storm <storm@cua.dk>
12698
12699 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12700
12701 2002-07-12 Richard M. Stallman <rms@gnu.org>
12702
12703 * fileio.c (Fwrite_region): Doc fix.
12704
12705 * print.c (print_error_message): Don't handle Vsignaling_function here.
12706
12707 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12708 (command_loop_1): Avoid certain actions after memory-full error.
12709
12710 * eval.c (Fsignal): Don't call cancel_hourglass.
12711 For a memory-full error, don't call Vsignal_hook_function
12712 and don't set Vsignaling_function.
12713
12714 * process.c (process_send_signal): Add abort call.
12715
12716 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
12717
12718 * keymap.c (Fkey_binding): Fix typo.
12719
12720 2002-07-11 Richard M. Stallman <rms@gnu.org>
12721
12722 * alloc.c (Vmemory_full): New variable.
12723 (Vmemory_signal_data): Renamed from memory_signal_data.
12724 Uses changed.
12725 (syms_of_alloc): Defvar them.
12726 (memory_full, buffer_memory_full): Set Vmemory_full.
12727
12728 * lisp.h (Vmemory_full): Add declaration.
12729 (current_column, indented_beyond_p): Change declaration.
12730
12731 * indent.c (last_known_column): Declare as double, not float.
12732 (current_column, current_column_1, string_display_width)
12733 (position_indentation): Return `double'.
12734 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12735
12736 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12737 (back_to_previous_visible_line_start)
12738 (reseat_at_next_visible_line_start, next_element_from_buffer):
12739 Use `double', not `float', when calling indented_beyond_p.
12740
12741 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12742
12743 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12744
12745 2002-07-11 Juanma Barranquero <lektu@terra.es>
12746
12747 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
12748 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12749 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12750 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12751 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12752 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
12753
12754 2002-07-10 Juanma Barranquero <lektu@terra.es>
12755
12756 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12757 All callers changed.
12758
12759 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12760
12761 * data.c (Fdefalias): Add an optional `docstring' argument.
12762 (set_internal, Fsetq_default): Use XCAR/XCDR.
12763
12764 * composite.c (HASH_VALUE, HASH_KEY):
12765 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12766
12767 2002-07-09 Kenichi Handa <handa@etl.go.jp>
12768
12769 * callproc.c (Fcall_process): Fix previous change.
12770
12771 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12772
12773 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12774 Add support for hash-tables.
12775 (Ftry_completion): Return t even if the string appears multiple times.
12776
12777 * fns.c (Fnconc): Use XCDR.
12778 (Fprovide): Use CONSP and XCDR.
12779 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12780 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12781 (Fmake_hash_table): Accept `:size nil'.
12782 (Fmakehash): Delete: moved to subr.el.
12783 (syms_of_fns): Don't defsubr makehash.
12784
12785 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12786 (HASH_TABLE_SIZE): Move from fns.c.
12787
12788 2002-07-07 Richard M. Stallman <rms@gnu.org>
12789
12790 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12791 Instead just return 0 when there is something to be done.
12792 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12793 retry scrolling as if cursor were off the bottom.
12794 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12795 return CURSOR_MOVEMENT_MUST_SCROLL.
12796 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12797 go to try_to_scroll.
12798
12799 * buffer.c (Fbuffer_local_value): Store current value into its binding
12800 so we get the up-to-date value for the binding that is loaded.
12801
12802 * eval.c (Fdefmacro): Doc fix.
12803
12804 2002-07-05 Dave Love <fx@gnu.org>
12805
12806 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12807 correctly.
12808
12809 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12810 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12811 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12812 CCL_LookupCharConstTbl.
12813 (syms_of_ccl): Defvar translation-hash-table-vector.
12814
12815 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12816
12817 * xdisp.c: Remove unused variable `face'.
12818
12819 2002-07-04 Juanma Barranquero <lektu@terra.es>
12820
12821 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12822 obsolescence information.
12823
12824 2002-07-03 Andrew Choi <akochoi@shaw.ca>
12825
12826 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12827 pattern. Search cache first.
12828 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12829 for Japanese font.
12830 (XLoadQueryFont): Use it.
12831
12832 2002-07-02 Richard M. Stallman <rms@gnu.org>
12833
12834 * keymap.c (Fdefine_key): Doc fix.
12835
12836 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12837
12838 2002-07-02 Juanma Barranquero <lektu@terra.es>
12839
12840 * keymap.c (syms_of_keymap): Fix typo.
12841
12842 2002-07-01 Andrew Choi <akochoi@shaw.ca>
12843
12844 * s/darwin.h: Define POSIX_SIGNALS.
12845
12846 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12847 and FSRefMakePath to convert FSSpec returned with Apple Event to
12848 Posix pathname.
12849 (mac_initialize) [TARGET_API_MAC_CARBON]:
12850 Call init_required_apple_events and disable the `Quit' menu item
12851 provided automatically by the Carbon Toolbox.
12852
12853 2002-07-01 Dave Love <fx@gnu.org>
12854
12855 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12856 for K&R.
12857
12858 * xterm.c: Fix prototype for K&R.
12859
12860 * term.c (costs_set): Declare static, non-initialized for pcc.
12861
12862 2002-07-01 Richard M. Stallman <rms@gnu.org>
12863
12864 * keyboard.c (timer_last_idleness_start_time): New variable.
12865 (timer_start_idle): Set that.
12866 (read_key_sequence): Use that to reset timer_idleness_start_time
12867 to previous value.
12868
12869 * window.c (Frecenter): With arg, set optional_new_start.
12870
12871 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12872
12873 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12874 buffer for completion.
12875
12876 2002-06-29 Ken Raeburn <raeburn@gnu.org>
12877
12878 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12879
12880 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12881
12882 * keyboard.c (readable_filtered_events): New function that filters
12883 FOCUS_IN_EVENT depending on parameter.
12884 (readable_events): Calls readable_filtered_events, not filtering
12885 FOCUS_IN_EVENT.
12886 (get_filtered_input_pending): New function, filtering parameter passed
12887 to readable_filtered_events.
12888 (get_input_pending): Calls get_filtered_input_pending, not filtering
12889 FOCUS_IN_EVENT.
12890 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12891 FOCUS_IN_EVENT.
12892
12893 * xterm.h (struct x_output): Add focus_state.
12894
12895 * xterm.c (x_focus_changed): New function.
12896 (x_detect_focus_change): New function.
12897 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12898 EnterNotify and LeaveNotify to track X focus changes.
12899
12900 2002-06-28 Andreas Schwab <schwab@suse.de>
12901
12902 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12903
12904 2002-06-27 Kim F. Storm <storm@cua.dk>
12905
12906 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12907 (mode_line_string_face_prop): New variables.
12908 (store_mode_line_string): New function.
12909 (display_mode_element): Use store_mode_line_string to
12910 add mode-line string elements to mode_line_string_list
12911 when mode_line_string_list is non-nil.
12912 (Fformat_mode_line): Now returns propertized string by
12913 default. New arg NO-PROPS to ignore properties.
12914 (decode_mode_spec): Only add two dashes for %- in propertized
12915 mode-line string.
12916 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12917
12918 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12919
12920 * minibuf.c (minibuffer_completion_contents): Add return type.
12921
12922 2002-06-27 Juanma Barranquero <lektu@terra.es>
12923
12924 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12925
12926 2002-06-26 Juanma Barranquero <lektu@terra.es>
12927
12928 * fileio.c (read_file_name_cleanup): Add missing return.
12929
12930 2002-06-26 Richard M. Stallman <rms@gnu.org>
12931
12932 * window.c (Frecenter): Don't set force_start flag.
12933
12934 * minibuf.c (do_completion, Fminibuffer_complete_word)
12935 (Fminibuffer_completion_help): Complete just the text before point.
12936 (minibuffer_completion_contents): New function.
12937
12938 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12939
12940 * frame.c (frames_bury_buffer): Function deleted.
12941
12942 2002-06-25 Miles Bader <miles@gnu.org>
12943
12944 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12945 the end of callint_message, allow for a terminating '\0'.
12946
12947 2002-06-24 Juanma Barranquero <lektu@terra.es>
12948
12949 * w32select.c: Include composite.h
12950
12951 * w16select.c: Likewise.
12952
12953 2002-06-24 Kenichi Handa <handa@etl.go.jp>
12954
12955 * callproc.c (Fcall_process): If code detection is necessary,
12956 call detect_coding directly here.
12957
12958 * coding.c (detect_eol): Preserve coding->cmp_data.
12959
12960 * w16select.c (Fw16_get_clipboard_data):
12961 * w32fns.c (w32_to_x_font):
12962 * w32select.c (Fw32_get_clipboard_data):
12963 * xselect.c (selection_data_to_lisp_data):
12964 * xterm.c (XTread_socket): Disable composition handling.
12965
12966 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12967
12968 * print.c (temp_output_buffer_setup): Kill all local variables.
12969
12970 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12971
12972 * lread.c (Fread): Remove redundant and imprecise declaration.
12973
12974 * xfns.c (check_x_display_info): Use check_x_frame.
12975
12976 * .gdbinit (xprintsym): Use the new `xname' field.
12977 (xsymbol): Use it.
12978
12979 2002-06-22 Jason Rumney <jasonr@gnu.org>
12980
12981 * w32fns.c (file_dialog_callback): New function.
12982 (Fx_file_dialog): Allow selecting directories as well as files.
12983
12984 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12985
12986 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
12987 OpenBSD. Add support for mipseb-*-netbsd* machines.
12988
12989 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12990
12991 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12992 black and white before scrolling. Restore frame background and
12993 foreground color after scrolling.
12994 (do_window_update): Call XClearWindow before calling expose_frame.
12995 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12996 FRAME_FOREGROUND_PIXEL of frame.
12997
12998 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12999 test Mac command key as <ALT> key.
13000
13001 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13002
13003 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13004
13005 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13006 Lookup keys in function-key-map immediately so that key-translation-map
13007 can be applied earlier.
13008 Remove function_key_possible and key_translation_possible, replaced
13009 by checking `keytran_start < t'.
13010
13011 * .gdbinit (xsymbol): Use the new `xname' field.
13012
13013 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13014
13015 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13016 test Mac command key as <ALT> key.
13017
13018 * mac.c (do_applescript): Call initialize_applescript if necessary
13019 when first called. Dispose of result_desc only when there is no error.
13020 (Fdo_applescript): Use %d format specifier instead of %ld.
13021
13022 2002-06-16 Andrew Choi <akochoi@shaw.ca>
13023
13024 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13025 of FrontWindow for cases keyDown and autoKey.
13026
13027 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13028 Vdefault_fontset to Monaco with mac-roman coding.
13029
13030 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13031 init_process before and after inclusion of Carbon/Carbon.h, resp.
13032
13033 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13034 cursor_gc.
13035 (add_font_name_table_entry): New function.
13036 (init_font_name_table): Use add_font_name_table_entry; add italic,
13037 bold, and bold-italic entries for truetype fonts.
13038
13039 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13040 for Mac too.
13041 (try_font_list) [MAC_OS]: If no font matches given registry, try
13042 fonts with any registry matching face_family.
13043 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13044
13045 * s/darwin.h: If autoconf detects the Ncurses library, define
13046 LIBS_TERMCAP to -lncurses to use it.
13047
13048 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13049
13050 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13051
13052 2002-06-15 Richard M. Stallman <rms@gnu.org>
13053
13054 * window.c (Fset_window_configuration): Explicitly preserve
13055 the point value that new_current_buffer had at the start.
13056
13057 2002-06-14 Juanma Barranquero <lektu@terra.es>
13058
13059 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13060 Fix typos.
13061
13062 2002-06-14 Kim F. Storm <storm@cua.dk>
13063
13064 * insdel.c (insert_1_both, insert_from_string_1)
13065 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13066 insert happened in the end_unchanged region. Otherwise, the
13067 redisplay may be confused and duplicate the last line in the
13068 buffer [seen after save-buffer when require-final-newline==t].
13069
13070 2002-06-13 Jason Rumney <jasonr@gnu.org>
13071
13072 * w32.c (init_environment): Remove EMACSLOCKDIR.
13073 (stat): Swap _S_IFDIR and _S_IFREG.
13074
13075 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13076
13077 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13078 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13079 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13080 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13081 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13082 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13083 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13084 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13085 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13086 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13087 SELECTION_REQUEST_EVENT, selection_clear_event to
13088 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13089 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13090 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13091 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13092 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13093 no_event to NO_EVENT.
13094
13095 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13096
13097 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13098
13099 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13100
13101 * intervals.c (textget): Don't forget to `return'.
13102 (lookup_char_property): Use XCAR/XCDR.
13103
13104 2002-06-12 Juanma Barranquero <lektu@terra.es>
13105
13106 * xdisp.c (Fformat_mode_line): Fix typo.
13107
13108 2002-06-12 Kim F. Storm <storm@cua.dk>
13109
13110 * xdisp.c (Fformat_mode_line): New function.
13111 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13112 (store_frame_title_char, store_frame_title): Use unconditionally.
13113 (init_xdisp): Defsubr Fformat_mode_line.
13114 Initialize frame_title_buf etc. unconditionally.
13115
13116 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13117
13118 * keyboard.c (read_key_sequence):
13119 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13120 things through those maps after downcasing events.
13121 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13122 applies after function-key-map.
13123 Make sure that keytran can be done in the middle in the sequence.
13124 Be careful not to throw away events past the one we downcase.
13125
13126 * lread.c (read_integer): Remove unused var `tem'.
13127 (read1): Fix int/Lisp_Object mixup.
13128
13129 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13130
13131 2002-06-11 Richard M. Stallman <rms@gnu.org>
13132
13133 * keyboard.c (readable_events): Ignore any number of
13134 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13135
13136 2002-06-09 Miles Bader <miles@gnu.org>
13137
13138 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13139 (parse_rgb_list, tty_lookup_color): New functions.
13140 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13141 (color_distance, Fcolor_distance): New functions.
13142 (TTY_SAME_COLOR_THRESHOLD): New macro.
13143 (Qtty_color_standard_values): New variable.
13144 (syms_of_xfaces): Initialize new vars & functions.
13145
13146 2002-06-08 Colin Walters <walters@verbum.org>
13147
13148 * textprop.c (Vchar_property_alias_alist): New variable.
13149 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13150
13151 * intervals.c (lookup_char_property): New function for looking up
13152 overlay and text properties, created from textget.
13153 (textget): Use it.
13154
13155 * intervals.h (lookup_char_property): Declare.
13156 (Vchar_property_alias_alist): Declare.
13157
13158 * buffer.c (Foverlay_get): Use lookup_char_property.
13159
13160 2002-06-07 Sam Steingold <sds@gnu.org>
13161
13162 * xselect.c (lisp_data_to_selection_data): Fix last change:
13163 *data_ret is not a Lisp string, while unibyte_string is.
13164
13165 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13166
13167 * xselect.c (lisp_data_to_selection_data): Fix last change:
13168 set size_ret.
13169
13170 2002-06-07 Andreas Schwab <schwab@suse.de>
13171
13172 * m/amdx86-64.h: New file.
13173
13174 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13175
13176 * fns.c (Fstring_make_unibyte): Doc fix.
13177
13178 * xselect.c (lisp_data_to_selection_data): If the requested type
13179 is STRING, call string_make_unibyte to encode the selected text
13180 as a string.
13181
13182 * window.c (Fset_window_hscroll): Doc fix.
13183
13184 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13185
13186 * fileio.c (choose_write_coding_system):
13187 Call select-safe-coding-system properly.
13188
13189 2002-06-03 Richard M. Stallman <rms@gnu.org>
13190
13191 * xdisp.c (message_with_string): Error if STRING is not a string.
13192
13193 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13194
13195 * fileio.c (choose_write_coding_system): Pass FILE arg to
13196 Vselect_safe_coding_system_function.
13197
13198 2002-06-03 Ken Raeburn <raeburn@gnu.org>
13199
13200 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13201
13202 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13203
13204 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13205 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13206 * keymap.c (describe_command): Likewise.
13207 * minibuf.c (read_minibuf): Likewise.
13208
13209 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13210 Cast `current_column' return value to int.
13211 (back_to_previous_visible_line_start)
13212 (reseat_at_next_visible_line_start, next_element_from_buffer):
13213 Cast `indented_beyond_p' 3rd arg to float.
13214
13215 * indent.c (last_known_column): Now a float.
13216 (current_column_1, position_indentation, current_column)
13217 (string_display_width): Return float.
13218 (Fcurrent_column): Cast `current_column' return value to int.
13219 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13220 (indented_beyond_p): Third arg now a float.
13221 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13222
13223 * lisp.h (current_column): Now returns float.
13224 (indented_beyond_p): 3rd arg now a float.
13225
13226 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13227
13228 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13229 is Qcompound_text_with_extensions.
13230
13231 * xselect.c (lisp_data_to_selection_data): Always set selection
13232 type as string if x_encode_text returns streingp non-NULL.
13233
13234 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13235
13236 2002-05-30 Richard M. Stallman <rms@gnu.org>
13237
13238 * window.c (Fset_window_configuration): Correct the handling
13239 of point in current buffer, to work with multiple windows.
13240
13241 2002-05-29 Colin Walters <walters@verbum.org>
13242
13243 * lread.c (Fread_from_string): Don't depend on order of evaluation
13244 for C function parameters.
13245
13246 2002-05-28 Richard M. Stallman <rms@gnu.org>
13247
13248 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13249 way for blinked-off state and for a nonselected window.
13250
13251 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13252 instead, see if the new start pos is at beginning of line.
13253
13254 * fileio.c (Fwrite_region): If START is a string, don't
13255 make any annotations.
13256
13257 * eval.c (syms_of_eval): Doc fix.
13258
13259 2002-05-28 Colin Walters <walters@debian.org>
13260
13261 * emacs.c (USAGE1): Add --no-splash.
13262 (standard_args): Ditto.
13263
13264 2002-05-28 Colin Walters <walters@gnu.org>
13265
13266 * lread.c (readchar_count): New variable.
13267 (readchar): Increment it.
13268 (unreadchar): Decrement it.
13269 (read_multibyte): Decrement it.
13270 (Vread_with_symbol_positions): New variable.
13271 (Vread_symbol_positions_list): New variable.
13272 (read_internal_start): New function, created from Fread and
13273 Fread_from_string. Handle Vread_symbol_positions_list and
13274 Vread_with_symbol_positions.
13275 (readevalloop, Fread, Fread_from_string): Use it.
13276 (read1): Use readchar_count to add symbol positions to
13277 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13278 (syms_of_lread): DEFVAR_LISP and initialize them.
13279
13280 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13281 (substitute_object_recurse, substitute_object_in_subtree)
13282 (substitute_in_interval): Prototype.
13283 (read_multibyte): Return c if it's less than zero.
13284
13285 2002-05-28 Kim F. Storm <storm@cua.dk>
13286
13287 * fileio.c (Fread_file_name_internal): Added brute-force
13288 speed up for using predicate file-directory-p.
13289
13290 2002-05-28 Kim F. Storm <storm@cua.dk>
13291
13292 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13293 New variables.
13294 (syms_of_fileio): DEFVAR_LISP them.
13295 (read_file_name_cleanup): New unwind function.
13296 (Fread_file_name_internal): Only return completions satifying
13297 Vread_file_name_predicate. Temporarily unwind protect and rebind
13298 default-directory while checking completions against the predicate.
13299 (Fread_file_name): Added PREDICATE argument. Specbind it to
13300 Vread_file_name_predicate during completion.
13301 Call Vread_file_name_function to read the file name if non-nil.
13302
13303 * lisp.h (Fread_file_name): Now has 6 args.
13304
13305 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13306 predicate for Fread_file_name when reading directory name.
13307 Supply Qnil for predicate in other calls to Fread_file_name.
13308
13309 2002-05-26 Miles Bader <miles@gnu.org>
13310
13311 * term.c (tty_capable_p): New function.
13312 * dispextern.h (tty_capable_p): New function declaration.
13313 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13314 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13315
13316 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13317
13318 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13319 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13320 (Vwrite_region_annotate_functions): Docstring fix.
13321
13322 2002-05-23 Kim F. Storm <storm@cua.dk>
13323
13324 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13325 phys_cursor's hpos is overwritten. This is still not completely
13326 correct, as it doesn't really make sense to use hpos at all to
13327 get the cursor glyph (as that is relative to the width of the
13328 characters on the line, which may have changed during the update).
13329
13330 2002-05-22 Jason Rumney <jasonr@gnu.org>
13331
13332 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13333 Lisp_Object.
13334 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13335 Use modified enumfont_t struct.
13336
13337 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13338
13339 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13340 Handle the `hbar' cursor type.
13341 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13342
13343 * w32fns.c (Qhbar): New variable.
13344 (x_specified_cursor_type): Use it.
13345
13346 2002-05-21 Ken Raeburn <raeburn@gnu.org>
13347
13348 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13349 now, when the address is needed.
13350
13351 2002-05-21 Colin Walters <walters@gnu.org>
13352
13353 * Makefile.in (shortlisp): Add font-core.el.
13354
13355 2002-05-20 Richard M. Stallman <rms@gnu.org>
13356
13357 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13358
13359 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13360 equivalent key bindings here.
13361
13362 2002-05-20 Ken Raeburn <raeburn@gnu.org>
13363
13364 Change symbol structure to contain a lisp object for the symbol
13365 name:
13366 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13367 object field named "xname".
13368 (SYMBOL_NAME): New macro.
13369 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13370 name field.
13371 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13372 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13373 instead of name field.
13374 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13375 SYMBOL_NAME instead of XSYMBOL and name field.
13376 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13377 instead of XSYMBOL and name field.
13378 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13379 and SYMBOL_NAME instead of XSYMBOL and name field.
13380 * coding.c (Fread_coding_system, code_convert_region1)
13381 (code_convert_string1, code_convert_string_norecord)
13382 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13383 XSYMBOL and name field.
13384 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13385 (Fmake_variable_buffer_local, Fmake_local_variable)
13386 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13387 of XSYMBOL and name field.
13388 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13389 XSYMBOL and name field.
13390 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13391 instead of XSYMBOL and name field.
13392 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13393 XSYMBOL and name field.
13394 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13395 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13396 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13397 instead of XSYMBOL and name field.
13398 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13399 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13400 (parse_solitary_modifier, Fexecute_extended_command):
13401 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13402 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13403 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13404 of XSYMBOL and name field.
13405 (describe_command, describe_translation): Use SYMBOL_NAME and
13406 assignment instead of XSYMBOL and name field and XSETSTRING.
13407 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13408 instead of XSYMBOL and name field.
13409 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13410 name field and XSETSTRING.
13411 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13412 of XSYMBOL and name field.
13413 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13414 assignment instead of XSYMBOL and name field and XSETSTRING.
13415 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13416 XSTRING instead of XSYMBOL and name field.
13417 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13418 and XSTRING instead of XSYMBOL and name field.
13419 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13420 and XSTRING instead of XSYMBOL and name field.
13421 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13422 XSTRING instead of XSYMBOL and name field.
13423 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13424 of XSYMBOL and name field.
13425 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13426 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13427
13428 2002-05-19 Ken Raeburn <raeburn@gnu.org>
13429
13430 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13431 and XCDR real rvalues in most configurations.
13432
13433 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13434 Don't take the address of the cdr part of a cons cell; instead, track
13435 the parent cell and call XSETCDR, or set the variable for the head
13436 of the list if we haven't started down the list yet.
13437
13438 2002-05-19 Richard M. Stallman <rms@gnu.org>
13439
13440 * doc.c (reread_doc_file): Don't ask for confirmation.
13441
13442 2002-05-18 Jason Rumney <jasonr@gnu.org>
13443
13444 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13445 (xbm_load_image): Use it.
13446 (xbm_load): Ditto.
13447 (xbm_read_bitmap_data): Reverted to xfns.c version.
13448 From David Ponce <david@dponce.com>.
13449
13450 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13451
13452 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13453 2.02 and later.
13454
13455 2002-05-16 Juanma Barranquero <lektu@terra.es>
13456
13457 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13458
13459 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13460
13461 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13462 meaningful test.
13463 (read_char_minibuf_menu_prompt): Fix typo.
13464
13465 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13466
13467 * eval.c (Fcommandp): Doc fix.
13468
13469 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13470
13471 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13472 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13473 (Fset_keymap_parent): Gcpro a bit more.
13474 (access_keymap): Gcpro around meta_map call and around the main loop.
13475 (get_keyelt): Gcpro when following indirect references.
13476 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13477 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13478 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13479 Remove useless ad-hoc remap code.
13480
13481 2002-05-13 Richard M. Stallman <rms@gnu.org>
13482
13483 * search.c (search_buffer): Give up boyer moore search if inverse
13484 translation change charset_base.
13485
13486 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13487
13488 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13489 characters is carried over from the previous block of text, adjust
13490 coding->produced to account for the extra character.
13491
13492 2002-05-11 Andreas Schwab <schwab@suse.de>
13493
13494 * coding.c (intersection): Keep the elements of the returned list
13495 in the same order as in the first list.
13496
13497 2002-05-11 Kim F. Storm <storm@cua.dk>
13498
13499 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13500 only update cmm_size if realloc actually succeeds.
13501 Testing with initial size of 2 elements revealed that using
13502 realloc on GNU/Linux would cause a random trap in xmalloc
13503 later on, so I rewrote the code to use malloc/bcopy/free instead
13504 of realloc.
13505
13506 2002-05-10 Jason Rumney <jasonr@gnu.org>
13507
13508 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13509
13510 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13511
13512 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13513 parens, to ensure correct evaluation order.
13514
13515 2002-05-10 Kim F. Storm <storm@cua.dk>
13516
13517 * keymap.c (Vemulation_mode_map_alists): New variable.
13518 (syms_of_keymap): DEFVAR_LISP it.
13519 (current_minor_maps): Process keymap alists in that list before
13520 minor-mode-overriding-map-alist and minor-mode-map-alist.
13521
13522 2002-05-09 Richard M. Stallman <rms@gnu.org>
13523
13524 * search.c (Freplace_match): Doc fix.
13525
13526 2002-05-09 Kim F. Storm <storm@cua.dk>
13527
13528 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13529 Enlarge cursor rectangle drawn around image with non-zero relief.
13530
13531 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13532 Enlarge cursor rectangle drawn around image with non-zero relief.
13533
13534 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13535 Enlarge cursor rectangle drawn around image with non-zero relief.
13536
13537 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13538
13539 * xselect.c (lisp_data_to_selection_data): Don't set selection
13540 type if comes from the Lisp object's car. If the selection
13541 contains a pure ASCII text, always return QSTRING as its type.
13542
13543 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13544
13545 * mac.c (mac-cut-function): Doc fix.
13546
13547 2002-05-05 Richard M. Stallman <rms@gnu.org>
13548
13549 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13550
13551 2002-05-04 Jason Rumney <jasonr@gnu.org>
13552
13553 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13554 for event-click-count.
13555
13556 * process.c (init_process): Only add server subfeature if we can
13557 use non-blocking I/O.
13558
13559 2002-05-04 Andrew Choi <akochoi@shaw.ca>
13560
13561 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13562 repeatedly.
13563
13564 2002-05-03 Jason Rumney <jasonr@gnu.org>
13565
13566 * process.c (Fmake_network_process): Only support server sockets
13567 when we can make them non-blocking.
13568
13569 * s/ms-w32.h (HAVE_SELECT): Define.
13570
13571 * w32.h (FILE_NDELAY): New flag.
13572
13573 * w32.c (sys_getpeername, fcntl): New functions.
13574 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13575
13576 * w32proc.c: include sys/file.h.
13577
13578 2002-05-03 Colin Walters <walters@verbum.org>
13579
13580 * callproc.c (Vgame_score_directory): Renamed to
13581 Vshared_game_score_directory.
13582
13583 2002-04-30 Richard M. Stallman <rms@gnu.org>
13584
13585 * s/gnu.h [emacs]: Include stdio.h.
13586 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13587
13588 * eval.c (do_autoload): Error if called while preparing to dump.
13589
13590 * fns.c (Frequire): Error if need to load while preparing to dump.
13591
13592 2002-04-28 Colin Walters <walters@verbum.org>
13593
13594 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13595 Default to "~/.emacs.d/games".
13596
13597 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13598
13599 * lread.c (openp): Change arg exec_only to predicate.
13600 (build_load_history): Use XCAR/XCDR.
13601 (Flocate_file_internal): New fun.
13602 (syms_of_lread): Defsubr it.
13603 (Fload): Update call to openp.
13604
13605 * lisp.h (openp): Update prototype.
13606
13607 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13608 * w32proc.c (sys_spawnve):
13609 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13610 * w32.c (check_windows_init_file):
13611 * sound.c (Fplay_sound_internal):
13612 * process.c (Fstart_process):
13613 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13614 * mac.c (run_mac_command):
13615 * emacs.c (init_cmdargs):
13616 * callproc.c (Fcall_process): Update call to openp.
13617
13618 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13619
13620 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13621
13622 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13623
13624 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13625 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13626
13627 2002-04-28 Richard M. Stallman <rms@gnu.org>
13628
13629 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13630
13631 * eval.c (Fcommandp): New arg for_call_interactively.
13632 * lisp.h (Fcommandp): Declare new arg.
13633
13634 2002-04-28 Jason Rumney <jasonr@gnu.org>
13635
13636 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13637
13638 * w32.c (stat, fstat): Use file index information to generate
13639 inodes for directories where available.
13640
13641 2002-04-26 Andrew Choi <akochoi@shaw.ca>
13642
13643 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13644 [HAVE_CARBON]: Include Mac object files.
13645
13646 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13647 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13648 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13649 MAC_OSX, and MAC_OS instead of macintosh.
13650
13651 * editfns.c [MAC_OS8]: Include stdio.h.
13652
13653 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13654
13655 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13656 Apple Monaco.
13657
13658 * process.c (QCfamily, QCfilte): Declare extern.
13659 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13660 calling select.
13661
13662 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13663
13664 * tparam.c [MAC_OSX]: Don't define BC and UP.
13665
13666 * config.in [HAVE_CARBON]: Add.
13667
13668 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13669 Move here from mac/src and mac/inc.
13670
13671 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13672
13673 2002-04-26 Gerd Moellmann <gerd@gnu.org>
13674
13675 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13676 Compute phys_cursor_width from the x position returned
13677 by x_draw_glyhs, which is cheaper.
13678 (x_display_and_set_cursor): Compute the buffer-local value
13679 of `cursor-in-non-selected-windows' only when needed.
13680
13681 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13682
13683 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13684 cursor on a stretch glyph has a width that depends on
13685 x_stretch_cursor_p.
13686
13687 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13688
13689 * abbrev.c (abbrev-start-location): Doc fix.
13690
13691 * indent.c (Fvertical_motion): Fix last change.
13692
13693 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13694
13695 * indent.c (Fvertical_motion): Move to the start of the line
13696 containing PT before moving up or down.
13697
13698 2002-04-24 Gerd Moellmann <gerd@gnu.org>
13699
13700 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13701 case of writing a whole row, more or less analogous to the case of
13702 writing only parts of a row.
13703
13704 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13705 0 for NO_CURSOR.
13706
13707 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13708
13709 2002-04-23 Colin Walters <walters@verbum.org>
13710
13711 * buffer.c (syms_of_buffer): Doc fix.
13712
13713 2002-04-23 Gerd Moellmann <gerd@gnu.org>
13714
13715 * xterm.c (notice_overwritten_cursor): Handle the special case
13716 of the cursor being in the first blank non-text line at the
13717 end of a window.
13718
13719 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13720 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13721 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13722 bar cursors only, to make phys_cursor_width contain what its name
13723 suggests.
13724 (notice_overwritten_cursor): Consider the cursor image erased if
13725 the output area intersects the cursor image in y-direction.
13726
13727 2002-04-23 Simon Marshall <simon@gnu.org>
13728
13729 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13730 to XC_hand2.
13731
13732 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13733
13734 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13735
13736 2002-04-22 Kim F. Storm <storm@cua.dk>
13737
13738 * textprop.c (remove_properties): Fixed trap for malformed plist.
13739
13740 2002-04-22 Richard M. Stallman <rms@gnu.org>
13741
13742 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13743
13744 * window.c (make_window): Initialize height_fixed_p,
13745 last_cursor_off_p, and p->cursor_off_p slots.
13746
13747 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13748
13749 * fns.c (use-dialog-box): Doc fix.
13750
13751 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13752
13753 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13754 variables `row', `i' and `area'.
13755 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13756 toolkit library.
13757
13758 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13759
13760 * xfaces.c (clear_font_table): Don't free the default font of
13761 a frame even if it's on another display.
13762 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13763 that could be Qt.
13764
13765 2002-04-19 Juanma Barranquero <lektu@terra.es>
13766
13767 * indent.c (Fmove_to_column): Remove unused local variable
13768 `next_boundary_byte'.
13769 (current_column_1): Likewise.
13770
13771 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13772
13773 * msdos.c (Qhbar): New variable.
13774 (syms_of_msdos): Intern and staticpro it.
13775 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13776 cursor type.
13777
13778 2002-04-19 Dave Lambert <dlambert@acm.org>
13779
13780 Theses change implement an underscore-like (`hbar') cursor.
13781
13782 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13783
13784 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13785 Handle the `hbar' cursor type.
13786 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13787
13788 * xfns.c (Qhbar): New variable.
13789 (syms_of_xfns): Intern and staticpro it.
13790 (x_specified_cursor_type): Handle `hbar' cursor.
13791
13792 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13793 not defined.
13794
13795 2002-04-18 Richard M. Stallman <rms@gnu.org>
13796
13797 * textprop.c (remove_properties): New arg LIST allows scanning
13798 either a list or a plist.
13799 (interval_has_some_properties_list): New function, like
13800 interval_has_some_properties using list instead of plist.
13801 All callers changed.
13802 (Fremove_list_of_text_properties): New function.
13803 (syms_of_textprop): Defsubr it.
13804
13805 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13806
13807 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13808
13809 2002-04-17 Juanma Barranquero <lektu@terra.es>
13810
13811 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13812
13813 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13814
13815 * window.c (coordinates_in_window): Don't report on margin area
13816 if its width is zero.
13817
13818 2002-04-16 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32fns.c (Fx_file_dialog): Decode file name before using.
13821
13822 * w32term.c (construct_drag_n_drop): Likewise.
13823
13824 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13825
13826 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13827 store load-history in pure space.
13828
13829 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13830
13831 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13832
13833 * xterm.c (Qlatin_1, Qutf_8): New vars.
13834 (syms_of_xterm): Initialize them.
13835 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13836 decoding the output of X*LookupString.
13837 Always use latin-1 to decode the output of XLookupString.
13838 Try Xutf8LookupString if XmbLookupString failed.
13839
13840 * region-cache.c (new_region_cache): Use BEG.
13841
13842 2002-04-16 Gerd Moellmann <gerd@gnu.org>
13843
13844 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13845 configuration files.
13846 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13847 returns 0.
13848
13849 2002-04-15 Andreas Schwab <schwab@suse.de>
13850
13851 * config.in: Regenerated using autoheader.
13852
13853 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13854 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13855 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13856 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13857 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13858 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13859 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13860 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13861 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13862 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13863 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13864 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13865 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13866 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13867 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13868 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13869 STACK_DIRECTION, now set by autoconf.
13870
13871 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13872
13873 * dispnew.c (marginal_area_string): Sort arguments.
13874
13875 * dispextern.h (marginal_area_string): Add prototype.
13876
13877 2002-04-13 Richard M. Stallman <rms@gnu.org>
13878
13879 * fileio.c (Finsert_file_contents):
13880 Don't call temp_output_buffer_setup--do just part, by hand.
13881
13882 * coding.c (run_pre_post_conversion_on_str):
13883 Don't call temp_output_buffer_setup--do just part, by hand.
13884
13885 * keyboard.c (command_loop_1): Don't call start_hourglass
13886 or cancel_hourglass when executing a macro.
13887
13888 * marker.c (count_markers): New function.
13889
13890 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13891 grow without limit. Move recently used elements to the front.
13892
13893 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13894
13895 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13896
13897 2002-04-12 Gerd Moellmann <gerd@gnu.org>
13898
13899 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13900 rows marginal areas.
13901 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13902 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13903
13904 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13905
13906 2002-04-12 Dave Love <fx@gnu.org>
13907
13908 * dispnew.c (marginal_area_string): New.
13909
13910 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13911 (Qleft_margin, Qright_margin): Declare.
13912 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13913
13914 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13915 note_mode_line_highlight and extended.
13916
13917 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13918 (make_lispy_event): Deal with mouse events in margins.
13919
13920 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13921
13922 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13923
13924 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13925 than deactivating the mark if tmm is set to `lambda'.
13926 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13927 Use a single event for HELP_EVENT.
13928 (Fexecute_extended_command): Save last_point_position.
13929
13930 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13931
13932 * lisp.h (Fpropertize): Add prototype.
13933
13934 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13935
13936 2002-04-10 Colin Walters <walters@verbum.org>
13937
13938 * config.in: Add HAVE_SHARED_GAME_DIR.
13939
13940 * callproc.c: (Vgame_score_directory): New variable.
13941 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13942
13943 2002-04-10 Richard M. Stallman <rms@gnu.org>
13944
13945 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13946
13947 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13948
13949 * minibuf.c (read_minibuf): Use empty_string.
13950 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13951 Short-circuit the search as soon as it "failed".
13952 (Fall_completions): Allow lambda forms and lists of strings for alist.
13953 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13954 when require_match is nil.
13955 (Ftest_completion): Rename from `test_completion' and export to elisp.
13956 Call the predicate also when alist is a list.
13957 Obey Vcompletion_regexp_list.
13958 (do_completion, Fminibuffer_complete_and_exit): Use it.
13959 (Fassoc_string): Rename from `assoc_for_completion'.
13960 Allow list of strings as well and export to elisp.
13961
13962 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13963
13964 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13965
13966 2002-04-08 Juanma Barranquero <lektu@terra.es>
13967
13968 * w32.c (sys_accept): Don't hide variable `s'.
13969
13970 2002-04-05 Gerd Moellmann <gerd@gnu.org>
13971
13972 * callint.c (Fcall_interactively): Use INTEGERP instead of
13973 NUMBERP for checking Vhistory_length.
13974
13975 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13976
13977 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13978 Doc fix to reflect it.
13979
13980 2002-04-04 Richard M. Stallman <rms@gnu.org>
13981
13982 * xdisp.c (display_mode_element): New arg RISKY.
13983 Disregard text props found or specified within a variable
13984 that isn't marked risky-local-variable.
13985 (Qrisky_local_variable): New variable.
13986 (syms_of_xdisp): Init and staticpro it.
13987
13988 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13989
13990 * undo.c (record_point): New fun.
13991 (record_delete, record_insert): Use it.
13992
13993 2002-04-03 Juanma Barranquero <lektu@terra.es>
13994
13995 * doc.c (Fdocumentation): Add missing parentheses.
13996 (Fdocumentation_property): Likewise.
13997
13998 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13999
14000 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14001 data is 0, just return nil.
14002
14003 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14004
14005 * msdos.c (syms_of_msdos): Fix last change with
14006 mouse_autoselect_window.
14007
14008 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14009
14010 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14011 mouse_autoselect_window.
14012
14013 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14014
14015 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14016 with system-specific keysyms. Use it also for unknown function keys.
14017
14018 * doc.c (reread_doc_file): Return whether reload was attempted.
14019 (Fdocumentation, Fdocumentation_property): Don't try to reload
14020 if the doc is 0 and only ask once.
14021
14022 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14023
14024 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14025
14026 * keyboard.c (read_char): If the event was Qselect_window,
14027 restore timer_idleness_start_time to its previous value.
14028
14029 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14030
14031 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14032
14033 * region-cache.c (new_region_cache): Use BEG.
14034
14035 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14036 Use BEG and BEG_BYTE.
14037
14038 * doc.c (get_doc_string): Return nil if the location is wrong.
14039 (reread_doc_file): New fun.
14040 (Fdocumentation, Fdocumentation_property):
14041 Call it if get_doc_string fails.
14042 (Fsnarf_documentation): Make it work for a dumped Emacs.
14043
14044 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14045 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14046
14047 * charset.c (Fstring): Allow 0 arguments.
14048
14049 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14050
14051 * process.c (DATAGRAM_CONN_P, list_processes_1)
14052 (Fprocess_datagram_address, Fset_process_datagram_address)
14053 (Fset_network_process_options, server_accept_connection):
14054 Fix some int/Lisp_Object confusions (thank you union types).
14055
14056 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14057
14058 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14059
14060 * w32term.c: Likewise.
14061 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14062
14063 * keyboard.c (Qselect_window): New symbol.
14064 (head_table): Use it.
14065 (keys_of_keyboard): Bound select-window event to handle-select-window.
14066 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14067
14068 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14069 (last_window): New variable.
14070 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14071 (note_mouse_movement): Remove reimplemented code in #if 0.
14072 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14073 Emacs windows.
14074
14075 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14076
14077 2002-03-31 Gerd Moellmann <gerd@gnu.org>
14078
14079 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14080 Callers changed.
14081
14082 2002-03-30 Richard M. Stallman <rms@gnu.org>
14083
14084 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14085 loop whenever it stops making progress.
14086
14087 * widget.c (set_frame_size): Don't call change_frame_size.
14088
14089 2002-03-30 Gerd Moellmann <gerd@gnu.org>
14090
14091 * dispnew.c (direct_output_for_insert):
14092 Call mark_window_display_accurate.
14093
14094 2002-03-29 Jason Rumney <jasonr@gnu.org>
14095
14096 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14097
14098 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14099
14100 * Makefile.in (lread.o): Depend on coding.h.
14101
14102 * lread.c (openp, Fload): Encode the file name before passing it
14103 to `stat', `access', and `emacs_open'.
14104 (openp): GCPRO the encoded file name. Don't recompute Lisp
14105 strings unnecessarily.
14106
14107 2002-03-29 Kim F. Storm <storm@cua.dk>
14108
14109 * fns.c (Flax_plist_put): Doc fix.
14110
14111 2002-03-28 Miles Bader <miles@gnu.org>
14112
14113 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14114
14115 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14116
14117 * process.c (set-network-process-options): Add usage.
14118 (make-network-process): Doc fix.
14119
14120 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14121
14122 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14123
14124 2002-03-26 Richard M. Stallman <rms@gnu.org>
14125
14126 * fns.c (Fsubstring_no_properties): New function.
14127 (Flax_plist_get, Flax_plist_put): New functions.
14128 (syms_of_fns): defsubr them.
14129
14130 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14131 don't test or alter w->update_mode_line.
14132
14133 * window.c (Fdisplay_buffer): Doc fix.
14134
14135 2002-03-24 Richard M. Stallman <rms@gnu.org>
14136
14137 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14138
14139 2002-03-24 Gerd Moellmann <gerd@gnu.org>
14140
14141 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14142 (Fdefmacro): Handle `(declare ...)'.
14143 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14144 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14145
14146 2002-03-24 Jason Rumney <jasonr@gnu.org>
14147
14148 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14149 (xbm_file_p): Add prototypes.
14150 (xbm_format, xbm_image_p): Sync with xfns.c.
14151 (reflect_byte): New function.
14152 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14153 (xbm_load_image): Create bitmaps with a depth of 1.
14154 (init_xfns): Enable XBM images.
14155
14156 2002-03-23 Jason Rumney <jasonr@gnu.org>
14157
14158 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14159 correctly. Do not pass up_modifier to keyboard buffer.
14160
14161 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14162
14163 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14164
14165 * Makefile.in (bootstrapclean): New target.
14166 (bootstrap-temacs, bootstrap-doc): Remove.
14167 (bootstrap-emacs): Use a bog-standard `temacs'.
14168 Don't bother to build a DOC file.
14169
14170 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14171
14172 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14173 in temacs even if !CANNOT_DUMP.
14174 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14175
14176 * alloc.c (check_pure_size): Only output a warning.
14177
14178 2002-03-22 Jason Rumney <jasonr@gnu.org>
14179
14180 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14181 supported.
14182
14183 * w32term.c (zv_bits): Declare as short, for word alignment.
14184 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14185 (syms_of_w32term): Define x-use-underline-position-properties.
14186
14187 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14188 (clear_image_cache): Block input, fix logic, clear matrices in
14189 all frames that share this cache.
14190
14191 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14192
14193 * emacs.c (main): Update the Copyright year in the blurb printed
14194 by "emacs --version".
14195
14196 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14197
14198 * xterm.c (XTread_socket): If XK_ISO_Lock and
14199 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14200 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14201
14202 2002-03-21 Kim F. Storm <storm@cua.dk>
14203
14204 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14205 menu-bar bindings in keymap and local-map properties _are_ used.
14206 But try keymap property first in accordance with 2002-01-03 patch.
14207 Added comment describing why this is not always reliable.
14208 (tool_bar_items): Ditto for tool-bar.
14209
14210 2002-03-21 Jason Rumney <jasonr@gnu.org>
14211
14212 * w32fns.c (x_clear_image_1): Disable color table code.
14213
14214 2002-03-21 Kim F. Storm <storm@cua.dk>
14215
14216 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14217 removed the wrong version of the DEFUN macro; fixed it.
14218
14219 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14220 Fmember rather than Fmemq).
14221 (Fprovide): Check that subfeatures is a list.
14222
14223 * process.c (QCfeature, QCdatagram): Removed variables.
14224 (QCtype, Qdatagram): New variables.
14225 (network_process_featurep): Removed function.
14226 (Fmake_network_process): Removed :feature check.
14227 Use :type 'datagram instead of :datagram t to create a datagram
14228 socket. This allows us to add other connection types (e.g. raw
14229 sockets) later in a consistent manner.
14230 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14231 supported subfeatures for feature make-network-process.
14232 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14233 Intern and staticpro QCtype and Qdatagram.
14234 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14235
14236 * xfns.c: (QCtype): Remove duplicate declaration and
14237 initialization (is now declared in process.c).
14238
14239 * w32fns.c: (QCtype): Remove duplicate declaration and
14240 initialization (is now declared in process.c).
14241
14242 2002-03-21 Richard M. Stallman <rms@gnu.org>
14243
14244 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14245 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14246 when jumping to `fail' to avoid undoing reg changes in the
14247 last iteration of the loop.
14248 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14249
14250 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14251 Depend on process.h.
14252
14253 2002-03-20 Jason Rumney <jasonr@gnu.org>
14254
14255 Most of the following changes are still conditional on HAVE_IMAGES
14256 which is not set by default on Windows.
14257
14258 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14259
14260 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14261 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14262 (four_corners_best, x_clear_image_1, x_clear_image)
14263 (x_alloc_image_color, postprocess_image)
14264 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14265 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14266 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14267
14268 * w32gui.h (struct XImage): Define.
14269
14270 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14271 extract mouse co-ordinates.
14272
14273 2002-03-20 Jason Rumney <jasonr@gnu.org>
14274
14275 * w32.c (init_winsock): Dynamically load new server and UDP
14276 socket functions.
14277 (socket_to_fd): New function.
14278 (sys_socket): Use it.
14279 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14280 (sys_recvfrom, sys_sendto): New wrapper functions.
14281
14282 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14283 and initialization.
14284
14285 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14286
14287 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14288
14289 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14290 Don't use "sun" as a variable, it's a predefined constant on Sun
14291 machines.
14292
14293 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14294
14295 * bytecode.c (Fbyte_code): Revert last change.
14296
14297 2002-03-19 Kim F. Storm <storm@cua.dk>
14298
14299 * makefile.w32-in (LIBS): Add $(WSOCK32).
14300 From David Ponce <dponce@voila.fr>.
14301
14302 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14303
14304 * process.c (wait_reading_process_input): Move variables `pname'
14305 and `pnamelen' down where they are used.
14306
14307 * bytecode.c (Fbyte_code): Discard unused computed value to
14308 prevent gcc warning.
14309
14310 * lisp.h (Fplist_member): Add prototype.
14311
14312 2002-03-18 Kim F. Storm <storm@cua.dk>
14313
14314 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14315 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14316
14317 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14318 Remove explicit GNU_LINUX settings for datagram support.
14319
14320 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14321
14322 * process.c (Fmake_network_process): Remove unused variable `sa'.
14323 Doc fix. Add usage:.
14324 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14325
14326 2002-03-17 Richard M. Stallman <rms@gnu.org>
14327
14328 * xdisp.c (cursor_type_changed): New variable.
14329 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14330 Clear it when clearing windows_or_buffers_changed.
14331 (try_cursor_movement, redisplay_window, try_window_id)
14332 (try_window_reusing_current_matrix): Test cursor_type_changed
14333 along with windows_or_buffers_changed.
14334
14335 * window.h (cursor_type_changed): New variable.
14336
14337 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14338 not update_mode_lines, and always set it to 1.
14339
14340 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14341 if no frames needed redrawing.
14342
14343 2002-03-17 Kim F. Storm <storm@cua.dk>
14344
14345 The following changes add support for network server processes,
14346 datagram connections, and local (unix) sockets.
14347
14348 * process.h (struct Lisp_Process): New member log.
14349 Doc fix: Member command used to indicate stopped network process.
14350 Doc fix: Member childp contains plist for network process.
14351 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14352
14353 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14354 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14355 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14356 New variables.
14357 (NETCONN1_P): New macro.
14358 (DATAGRAM_SOCKETS): New conditional symbol.
14359 (datagram_address): New array.
14360 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14361 (status_message): Use concat3.
14362 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14363 for a stopped network process.
14364 (Fset_process_buffer): Update contact plist for network process.
14365 (Fset_process_filter): Ditto. Don't enable input for stopped
14366 network processes. Server must listen, even if filter is t.
14367 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14368 New functions.
14369 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14370 (Fprocess_contact): Added KEY argument. Handle datagrams.
14371 (list_processes_1): Optionally show only processes with the query
14372 on exit flag set. Dynamically adjust column widths. Omit tty
14373 column if not needed. Report stopped network processes.
14374 Identify server and datagram network processes.
14375 (Flist_processes): New optional arg `query-only'.
14376 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14377 (conv_lisp_to_sockaddr, set_socket_options)
14378 (network_process_featurep, unwind_request_sigio): New helper functions.
14379 (Fprocess_datagram_address, Fset_process_datagram_address):
14380 (Fset_network_process_options): New lisp functions.
14381 (Fopen_network_stream): Removed. Now defined in simple.el.
14382 (Fmake_network_process): New lisp function. Code is based on previous
14383 Fopen_network_stream, but heavily reworked with new property list based
14384 argument list, support for datagrams, server processes, and local
14385 sockets in addition to old client-only functionality.
14386 (server_accept_connection): New function.
14387 (wait_reading_process_input): Use it to handle incoming connects.
14388 Do not enable input on a new connection if process is stopped.
14389 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
14390 (send_process): Handle datagram sockets.
14391 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14392 network process is indicated by setting command field to t .
14393 (Fprocess_send_eof): No-op if datagram connection.
14394 (Fstatus_notify): Don't read input for a stream server socket or a
14395 stopped network process.
14396 (init_process): Initialize datagram_address array.
14397 (syms_of_process): Intern and staticpro new variables, defsubr new
14398 functions.
14399
14400 2002-03-16 Jason Rumney <jasonr@gnu.org>
14401
14402 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14403 startup case.
14404
14405 2002-03-16 Richard M. Stallman <rms@gnu.org>
14406
14407 * xdisp.c (redisplay_internal, redisplay_windows):
14408 Use list_of_error to call internal_condition_case_1.
14409 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14410 so as to catch all errors with no possibility of debugger redisplay.
14411 (list_of_error): New variable.
14412 (syms_of_xdisp): Init and staticpro it.
14413
14414 * print.c (print_object): Delete `\ ' from printed rep of frame.
14415
14416 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14417
14418 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14419 until its implementation is fixed.
14420
14421 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14422
14423 * xfns.c (png_load): Remove unused variable `gamma_str'.
14424
14425 2002-03-14 Richard M. Stallman <rms@gnu.org>
14426
14427 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14428
14429 2002-03-14 Miles Bader <miles@gnu.org>
14430
14431 * intervals.c (adjust_for_invis_intang): New function.
14432 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14433 work for dealing with invisible+intangible regions. Do so before
14434 and after both forward and backward movements, to handle both
14435 front-sticky and rear-sticky cases.
14436 * textprop.c (text_property_stickiness): Function moved here from
14437 `editfns.c'.
14438 * intervals.h (text_property_stickiness): New declaration.
14439 * editfns.c (char_property_eq): Function removed.
14440 (text_property_stickiness): Function moved to `textprop.c'.
14441
14442 2002-03-13 Jason Rumney <jasonr@gnu.org>
14443
14444 * config.in: Add STRFTIME_NO_POSIX2.
14445
14446 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14447 and %OX when underlying strftime does not.
14448
14449 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14450
14451 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14452 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14453 line) to avoid annoying flicker.
14454 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14455 (XTread_socket): Mark it static.
14456
14457 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14458
14459 2002-03-13 Kim F. Storm <storm@cua.dk>
14460
14461 * puresize.h (BASE_PURESIZE): Increase to 775000.
14462
14463 2002-03-12 Juanma Barranquero <lektu@terra.es>
14464
14465 * editfns.c (syms_of_editfns): Fix typo.
14466
14467 2002-03-12 Gerd Moellmann <gerd@gnu.org>
14468
14469 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14470 Include termopt.h for interrupt_input.
14471
14472 2002-03-11 Andreas Schwab <schwab@suse.de>
14473
14474 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14475
14476 2002-03-11 Gerd Moellmann <gerd@gnu.org>
14477
14478 * xterm.c (note_mouse_movement): Put code for
14479 x_autoselect_window_p in #if 0.
14480
14481 * lread.c (Fload): Don't assume that message_with_string uses the
14482 string it is given like a C string.
14483
14484 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14485
14486 * xterm.h (x_session_check_input, x_session_initialize): Declare.
14487
14488 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14489 x_session_have_connection.
14490 (x_initialize): Add call to x_session_initialize.
14491
14492 * termhooks.h (enum event_kind): Add save_session_event.
14493
14494 * keyboard.c: Add Emacs event save_session_event.
14495
14496 * emacs.c (main): Add call to syms_of_xsmfns.
14497
14498 * lisp.h (syms_of_xsmfns): Declare extern.
14499
14500 * config.in: Add HAVE_X_SM.
14501
14502 * Makefile.in (LIBXT): Add -lSM -lICE
14503 if HAVE_X_SM and not USE_X_TOOLKIT.
14504 (XOBJ): New file xsmfns.c added.
14505
14506 * xsmfns.c: New file for X session management.
14507
14508 2002-03-09 Jason Rumney <jasonr@gnu.org>
14509
14510 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14511 read-only when setting modified time.
14512
14513 2002-03-08 Gerd Moellmann <gerd@gnu.org>
14514
14515 * xdisp.c (move_it_vertically_backward): At the end of the function,
14516 when moving forward by lines, treat terminal frames specially.
14517
14518 * keyboard.c (echo_char): Make sure to add a separator between
14519 keys even if echo_dash hasn't been called.
14520
14521 * xdisp.c: Use new string macros.
14522 (update_echo_area): Pass number of bytes to message3 instead of
14523 number of chars.
14524 (set_message_1): Don't access a string's size_byte directly.
14525 (decode_mode_spec_coding): Use number of bytes of eoltype string
14526 instead number of chars.
14527
14528 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14529
14530 2002-03-08 Juanma Barranquero <lektu@terra.es>
14531
14532 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14533 24-bit.
14534
14535 2002-03-06 Jason Rumney <jasonr@gnu.org>
14536
14537 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14538
14539 2002-03-06 Gerd Moellmann <gerd@gnu.org>
14540
14541 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14542 (cancel_echoing, echo_length, echo_truncate): Changed to
14543 work with new kboard definition.
14544 (echo_now): Use message3_nolog instead of message2_nolog.
14545
14546 * alloc.c (mark_kboards): Mark echo_string.
14547
14548 * keyboard.h (ECHOBUFSIZE): Removed.
14549 (struct kboard): Member echoptr removed, member echobuf renamed
14550 to echo_string.
14551
14552 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14553 message3 instead of message2 to display the message using STRING's
14554 text properties.
14555
14556 2002-03-05 Andreas Schwab <schwab@suse.de>
14557
14558 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14559
14560 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14561
14562 * frame.c (default-frame-alist): Explain that setting it doesn't
14563 affect existing frames.
14564
14565 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14566
14567 * indent.c (skip_invisible): Fix my brain fart.
14568
14569 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14570
14571 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14572
14573 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14574 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14575 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14576 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14577 and variables to use EMACS_INT instead of just int.
14578
14579 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14580
14581 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14582
14583 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14584 environment, pass it down with corrected value.
14585
14586 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14587
14588 * lread.c (read_filtered_event): Do not call start_hourglass
14589 before returning.
14590
14591 2002-03-04 Juanma Barranquero <lektu@terra.es>
14592
14593 * w32term.c (x_display_and_set_cursor): Fix typo.
14594
14595 2002-03-03 Richard M. Stallman <rms@gnu.org>
14596
14597 * fileio.c (Fmake_temp_name): Doc fix.
14598
14599 2002-03-03 Gary Wong <gtw@gnu.org>
14600
14601 * termcap.c [!emacs]: Replace ospeed for building standalone
14602 libtermcap, for binary compatibility.
14603
14604 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14605
14606 2002-03-03 Richard M. Stallman <rms@gnu.org>
14607
14608 * xrdb.c (file_p): Rename arg `path' to `filename'.
14609
14610 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14611 only if it is an integer.
14612
14613 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14614 If png_get_sRGB gives an answer, call png_set_gamma
14615 using the default image gamma value.
14616
14617 * lread.c (read1): When reading from a file, default string to
14618 multibyte only if it has some multibyte characters.
14619
14620 * print.c (print_object): Output multibyte chars 128...255
14621 using \x even if ! print_escape_multibyte.
14622
14623 * xdisp.c (display_mode_element): Move the places where
14624 bytepos, charpos, this, and lisp_string are set.
14625 Use lisp_string to set bytepos.
14626
14627 * xdisp.c (redisplay_internal):
14628 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14629
14630 * xdisp.c (display_mode_element): Merge properties specified with
14631 :propertize onto those that come with the string.
14632
14633 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14634
14635 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14636 automatic-hscrolling. Users changed.
14637 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14638 Users changed.
14639 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14640
14641 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14642
14643 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14644
14645 2002-03-02 Kim F. Storm <storm@cua.dk>
14646
14647 * window.c (Fminibuffer_selected_window): New function.
14648 (syms_of_window): Defsubr it.
14649
14650 2002-03-01 Kim F. Storm <storm@cua.dk>
14651
14652 * window.h (struct window): New member phys_cursor_width.
14653
14654 * window.c (make_window, replace_window): Init phys_cursor_width.
14655
14656 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14657 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14658
14659 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14660 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14661
14662 * lisp.h (GCPRO6): New macro.
14663
14664 * process.c (Fopen_network_stream): Use GCPRO6.
14665
14666 2002-03-01 Kim F. Storm <storm@cua.dk>
14667
14668 * process.c (Qconnect, Qfailed): New variables.
14669 (syms_of_process): Intern and staticpro them.
14670 (Fprocess_status): Document connect and failed return values.
14671 [NON_BLOCKING_CONNECT]: New conditional.
14672 (connect_wait_mask, num_pending_connects): New variables.
14673 (status_message): Convert Qfailed status.
14674 (Fopen_network_stream): Added support for non-blocking connect.
14675 New optional args: filter, sentinel, non_blocking. Doc updated.
14676 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14677 (deactivate_process): Handle pending non-blocking connect.
14678 (wait_reading_process_input): Poll for status of non-blocking
14679 connects. Exec sentinel directly when connect succeeds.
14680 (status_notify): Don't read process output if not yet connected.
14681
14682 2002-02-28 Kim F. Storm <storm@cua.dk>
14683
14684 * window.c: (minibuf_selected_window): Renamed from
14685 Vminibuf_selected_window. Users changed.
14686 (syms_of_window): Staticpro it.
14687
14688 2002-02-26 Kim F. Storm <storm@cua.dk>
14689
14690 The following changes add a new Vminibuf_selected_window variable
14691 which is similar to Vminibuf_scroll_window, but which is only set
14692 on entry to the minibuffer (from a non-minibuffer window):
14693
14694 * window.c: (Vminibuf_selected_window): New variable.
14695 (struct save_window_data): New member minibuf_selected_window.
14696 (Fset_window_configuration): Restore Vminibuf_selected_window.
14697 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14698 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14699 (compare_window_configurations): Compare minibuf_selected_window.
14700
14701 * window.h: (Vminibuf_selected_window): Declare extern.
14702
14703 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14704 entry to minibuffer or on entry from a non-minibuffer window.
14705
14706 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14707 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14708
14709 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14710 instead of Vminibuf_scroll_window when deciding in which window
14711 the region should be highlighted. Consequently, the region remains
14712 highlighteded even when a completion buffer is also displayed.
14713
14714 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14715
14716 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14717
14718 * xselect.c (Qcompound_text_with_extensions): Renamed from
14719 Qcompound_text_no_extensions.
14720 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14721
14722 2002-02-26 Juanma Barranquero <lektu@terra.es>
14723
14724 * w32proc.c (syms_of_ntproc): Doc fix.
14725
14726 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14727
14728 * intervals.h: Include "dispextern.h" unconditionally.
14729
14730 2002-02-24 Jason Rumney <jasonr@gnu.org>
14731
14732 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14733 and disp-table.elc.
14734 (lisp): Add emacs-lisp/backquote.elc.
14735
14736 2002-02-24 Kim F. Storm <storm@cua.dk>
14737
14738 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14739 The validation of the event type was too strict as it didn't
14740 allow string events; buffer names are used in bindings for
14741 menu-bar-select-buffer (see `menu-bar-update-buffers').
14742
14743 2002-02-23 Kim F. Storm <storm@cua.dk>
14744
14745 The following changes rework my patch of 2002-02-06 which
14746 added command remapping by entering the commands directly into
14747 the keymaps. Now, command remapping uses an explicit `remap'
14748 prefix in the keymaps, i.e. [remap COMMAND].
14749
14750 * keymap.c (Qremap, remap_command_vector): New variables.
14751 (is_command_symbol): Removed function.
14752 (Fdefine_key): No longer accept a symbol for KEY.
14753 Added validation of [remap COMMAND] argument for KEY.
14754 The DEF is no longer required to be a symbol when remapping a command.
14755 (Fremap_command): New function to remap command through keymaps.
14756 (Flookup_key): Perform command remapping initiated by
14757 Fremap_command directly for speed.
14758 (Fkey_binding): Use Fremap_command for command remapping.
14759 (where_is_internal): Handle new command remapping representation.
14760 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14761 staticpro them. Defsubr Fremap_command.
14762
14763 * keymap.h (Fremap_command): Declare extern.
14764 (is_command_symbol): Remove extern.
14765
14766 * keyboard.c (command_loop_1): Use Fremap_command for command
14767 remapping; now try command remapping for all symbols.
14768
14769 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14770
14771 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14772
14773 2002-02-23 Jason Rumney <jasonr@gnu.org>
14774
14775 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14776 on the string before encoding it.
14777 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14778 after decoding it.
14779
14780 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14781
14782 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14783
14784 * w32term.c (enter_timestamp): Remove unused static variable to
14785 prevent warning.
14786
14787 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14788
14789 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14790
14791 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14792
14793 * xselect.c (selection_data_to_lisp_data): Fix last change.
14794
14795 2002-02-22 Jason Rumney <jasonr@gnu.org>
14796
14797 * w32term.h (struct w32_output): New member menu_command_in_progress.
14798
14799 * w32menu.c (menubar_selection_callback): Free the menu and
14800 clear the menu_command_in_progress flag.
14801
14802 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14803 (menu_free_timer): New variable.
14804 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14805 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14806 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14807 menu command is in progress.
14808 <WM_COMMAND>: Set the menu_command_in_progress flag.
14809 Kill any menu_free_timer that is running.
14810
14811 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14812 Call ExtTextOutA rather than ExtTextOut.
14813
14814 2002-02-22 Eli Zaretskii <eliz@gnu.org>
14815
14816 * puresize.h (BASE_PURESIZE): Increase to 755000.
14817
14818 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14819
14820 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14821 on the string before encoding it.
14822 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14823 after decoding it.
14824
14825 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14826
14827 Support for ICCCM Extended Segments in X selections:
14828
14829 * xselect.c <Qcompound_text_no_extensions>: New variable.
14830 (syms_of_xselect): Intern and staticpro it.
14831 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14832 selection text.
14833 (lisp_data_to_selection_data): If next-selection-coding-system is
14834 compound-text-no-extensions, set the type of selection to be
14835 compound-text.
14836
14837 * xterm.h (x_encode_text): Update prototype.
14838
14839 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14840 callers changed. If SELECTIONP is non-zero, run the
14841 pre-write-conversion function before encoding the selection text.
14842
14843 2002-02-21 Kim F. Storm <storm@cua.dk>
14844
14845 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14846
14847 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14848 Correct composing of language-change event.
14849
14850 2002-02-20 Kim F. Storm <storm@cua.dk>
14851
14852 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14853 bindings at PT when building menu (the menu is not updated often
14854 enough for this to work reliable).
14855 (tool_bar_items): Likewise.
14856 (current_active_maps): Removed unused (and buggy) function.
14857
14858 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14859
14860 * xfns.c (gif_load): Use correct width and height for GIF images.
14861
14862 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14863
14864 * floatfns.c (Fatan): Accept an optional second arg and call
14865 atan2 if passed 2 args.
14866
14867 2002-02-18 Jason Rumney <jasonr@gnu.org>
14868
14869 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14870
14871 2002-02-17 Jason Rumney <jasonr@gnu.org>
14872
14873 * w32term.c (x_autoselect_window_p): New variable.
14874 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14875 (note_mouse_movement): Use it.
14876
14877 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14878
14879 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14880
14881 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14882 New variables.
14883 (syms_of_w32fns): Intern and staticpro them.
14884 (x_frame_parms) <"fullscreen">: New parameter.
14885 (x_fullscreen_move, x_set_fullscreen): New functions.
14886 (x_set_frame_parameters): Support Qfullscreen.
14887 (x_real_positions): Save x/y_pixels_diff frame params.
14888 (x_figure_window_size): Support full-screen frames.
14889 (Fx_create_frame): Default the fullscreen parameter.
14890
14891 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14892 (x_fullscreen_adjust): New functions.
14893 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14894 fullscreen. Call x_check_fullscreen_move, and set the
14895 want_fullscreen member of output_data.w32
14896 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14897
14898 * w32term.h: New enum for FULLSCREEN_* constants.
14899 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14900 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14901 (x-fullscreen-adjust): New prototype.
14902
14903 2002-02-17 Kim F. Storm <storm@cua.dk>
14904
14905 * frame.c: (Vmouse_highlight): New variable.
14906 (syms_of_frame): DEFVAR_LISP it.
14907
14908 * frame.h: (Vmouse_highlight): Declare extern.
14909
14910 * xterm.h (struct x_display_info): Add mouse_face_hidden.
14911
14912 * xterm.c (disable_mouse_highlight): Removed variable.
14913 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14914 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14915 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14916 and on after keyboard input.
14917 (x_term_init): Initialize mouse_face_hidden.
14918
14919 * msdos.h (struct display_info): Add mouse_face_hidden.
14920
14921 * msdos.c (disable_mouse_highlight): Removed variable.
14922 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14923 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14924 (internal_terminal_init): Initialize mouse_face_hidden.
14925 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14926 and on after keyboard input.
14927
14928 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
14929
14930 * w32term.c (disable_mouse_highlight): Removed variable.
14931 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14932 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14933 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14934 and on after keyboard input.
14935 (w32_initialize_display_info): Initialize mouse_face_hidden.
14936
14937 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
14938
14939 * msdos.c (last_mouse_window): New variable.
14940 (dos_rawgetc): Fix last change--if the mouse is in the same window
14941 as recorded in last_mouse_window, don't select this window.
14942
14943 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
14944
14945 * msdos.c (x_autoselect_window_p): New variable.
14946 (syms_of_msdos): Defvar it.
14947 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14948 which the last mouse movement occured, unless it is already selected.
14949
14950 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14951 New variables.
14952 (syms_of_xdisp): DEVFAR them.
14953 (hscroll_window_tree): Use automatic_hscroll_margin and
14954 Vautomatic_hscroll_step to compute the amount of window scrolling.
14955
14956 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14957
14958 * xterm.c (x-autoselect-window): New variable.
14959 (note_mouse_movement): Use it.
14960
14961 * keyboard.c: Do not include "systime.h" twice.
14962
14963 2002-02-15 Andreas Schwab <schwab@suse.de>
14964
14965 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
14966
14967 * alloc.c (NSTATICS): Increase to 1280.
14968
14969 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
14970
14971 * alloc.c (NSTATICS): Bump to 1026.
14972
14973 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14974 (Vx_super_keysym): New variables.
14975 (syms_of_xterm): DEFVAR_LISP them.
14976 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14977 variables to determine which keys to use for the various modifiers.
14978
14979 2002-02-13 Kim F. Storm <storm@cua.dk>
14980
14981 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14982 (mode_line_in_non_selected_windows): New variable.
14983 (syms_of_window): DEFVAR_BOOL it.
14984
14985 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14986 Use mode_line_in_non_selected_windows.
14987 (mode_line_in_non_selected_windows): Declare extern.
14988 (Vmode_line_in_non_selected_windows): Removed extern.
14989
14990 2002-02-13 Richard M. Stallman <rms@gnu.org>
14991
14992 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14993 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14994 (Fclear_this_command_keys): Doc fixes.
14995
14996 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14997 (update_face_from_frame_parameter): Increment face_change_count
14998 and windows_or_buffers_changed to force redisplay using changed faces.
14999
15000 * xdisp.c (QCpropertize): New variable.
15001 (mode_line_proptrans_alist): New variable.
15002 (display_mode_element): New arg PROPS; all calls changed.
15003 Implement this, for strings.
15004 Handle literal output of strings by sharing the
15005 main-line code for strings, using local var `literal'.
15006 Handle :propertize feature.
15007 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15008 mode_line_proptrans_alist.
15009
15010 2002-02-11 Kim F. Storm <storm@cua.dk>
15011
15012 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15013 (syms_of_window): DEFVAR_LISP it.
15014
15015 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15016 (CURRENT_MODE_LINE_FACE_ID): Use it.
15017 (Vmode_line_in_non_selected_windows): Declare extern.
15018
15019 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15020 to get mode line face.
15021
15022 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
15023
15024 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15025 variables; cus-start.el doesn't need them anymore.
15026
15027 2002-02-09 Kim F. Storm <storm@cua.dk>
15028
15029 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15030 reduction. This fixes a display problem where stray newlines were
15031 inserted in the window (corrected by C-l). Clarified code (IMHO).
15032
15033 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
15034
15035 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15036
15037 * xdisp.c (display_mode_lines): Fix last change.
15038
15039 2002-02-09 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15042 match each other.
15043 (w32_load_system_font): Prevent Cleartype fonts from loading.
15044 (Fx_show_tip): Ensure tip frames are above other topmost windows.
15045
15046 2002-02-09 Kim F. Storm <storm@cua.dk>
15047
15048 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15049 (CURRENT_MODE_LINE_HEIGHT): Use it.
15050 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
15051
15052 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15053 (pos_visible_p, handle_face_prop): Likewise.
15054 (display_mode_lines): Likewise, but for the real selected window.
15055 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
15056
15057 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15058 in non-selected windows.
15059 (realize_basic_faces): Realize it.
15060 (syms_of_term): Intern and staticpro it.
15061
15062 2002-02-08 Kim F. Storm <storm@cua.dk>
15063
15064 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15065 Changed mail addresses to emacs-devel@gnu.org.
15066
15067 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
15068
15069 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15070 ~user, and there's no such user, don't discard everything before ~user.
15071
15072 * floatfns.c (Fround): Doc fix.
15073
15074 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15075
15076 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
15077
15078 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
15079
15080 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
15081
15082 2002-02-07 Kim F. Storm <storm@cua.dk>
15083
15084 * keymap.c (where_is_internal): Only check whether definition is
15085 remapped if it fulfills is_command_symbol.
15086
15087 2002-02-07 Andreas Schwab <schwab@suse.de>
15088
15089 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
15090
15091 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
15092
15093 2002-02-06 Kim F. Storm <storm@cua.dk>
15094
15095 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15096 defining command remapping. Doc updated.
15097 (Flookup_key): Remap command through keymap if KEY is a symbol.
15098 (is_command_symbol): New function.
15099 (Fkey_binding): Use it. New optional argument NO-REMAP.
15100 Doc updated. Callers changed. Perform command remapping via
15101 recursive call unless that arg is non-nil.
15102 (where_is_internal): New argument no_remap. Callers changed.
15103 Call recursively to find original key bindings for a remapped
15104 comand unless that arg is non-nil.
15105 (Fwhere_is_internal): New optional argument NO-REMAP.
15106 Doc updated. Callers changed. Pass arg to where_is_internal.
15107
15108 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
15109 (is_command_symbol): Added prototype.
15110
15111 * keyboard.c (Vthis_original_command): New variable.
15112 (syms_of_keyboard): DEFVAR_LISP it.
15113 (command_loop_1): Set it, and perform command remapping.
15114
15115 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15116
15117 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
15118
15119 2002-02-06 Jason Rumney <jasonr@gnu.org>
15120
15121 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
15122
15123 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
15124
15125 * charset.c (get_charset_id): Use if-else instead of ?:.
15126
15127 2002-02-06 Richard M. Stallman <rms@gnu.org>
15128
15129 * filelock.c (S_ISLNK): Define if not defined.
15130
15131 2002-02-03 Richard M. Stallman <rms@gnu.org>
15132
15133 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15134
15135 * lread.c (read1): Redesign strategy for force_multibyte and
15136 force_singlebyte. Now is_multibyte records whether read_buffer
15137 is multibyte. Encountering any multibyte character makes it so.
15138
15139 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
15140
15141 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15142 with the same sequence, map that sequence to f10 rather than f0.
15143
15144 2002-02-03 Andreas Schwab <schwab@suse.de>
15145
15146 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15147 latter never being defined on GNU/Linux.
15148
15149 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
15150
15151 * xfaces.c (realize_default_face): Don't set the weight and slant of
15152 the default face to Qnormal, unless these attributes are unspecified.
15153
15154 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15155
15156 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15157 Call cancel_hourglass unconditionally.
15158
15159 * eval.c (Fsignal): Remove duplicated declaration of
15160 the variable `display_hourglass_p'.
15161
15162 2002-01-31 Richard M. Stallman <rms@gnu.org>
15163
15164 * editfns.c (region_limit): Nicer error message.
15165
15166 * coding.c (decode_composition_emacs_mule):
15167 Give up if NCOMPONENT gets too large to index `component'.
15168
15169 * callint.c (check_mark): New arg to specify clearer error message.
15170 Callers changed.
15171
15172 2002-01-27 Richard M. Stallman <rms@gnu.org>
15173
15174 * minibuf.c (Fcompleting_read): Doc fix.
15175
15176 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15177
15178 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15179 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15180 Fix doc-strings.
15181
15182 2002-01-26 Richard M. Stallman <rms@gnu.org>
15183
15184 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
15185
15186 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15187 and scroll_up_aggressively.
15188
15189 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15190
15191 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
15192
15193 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
15194
15195 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15196 (Fprevious_property_change, Fprevious_single_property_change):
15197 Stay within the narrowed-buffer boundaries.
15198
15199 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
15200
15201 * term.c (Ftty_display_color_cells): New function.
15202 (syms_of_term): Defsubr it.
15203 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15204 argument name to DISPLAY. Doc fix.
15205
15206 * dispextern.h: Add prototype for set_tty_color_mode and
15207 tty_setup_colors.
15208
15209 2002-01-24 Jason Rumney <jasonr@gnu.org>
15210
15211 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15212 If region left to draw is not what was expected, mark the frame as
15213 garbaged.
15214
15215 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15216 Combine the regions returned by BeginPaint and GetUpdateRect.
15217
15218 2002-01-23 Jason Rumney <jasonr@gnu.org>
15219
15220 * w32term.c (x_update_window_begin): Only hide caret if
15221 w32_use_visible_system_caret is set.
15222 (x_update_window_end): Only show caret if
15223 w32_use_visible_system_caret is set.
15224 (syms_of_w32term): Handle SystemParametersInfo call failing.
15225
15226 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
15227
15228 2002-01-22 Richard M. Stallman <rms@gnu.org>
15229
15230 * unexelf.c (unexec): Define n so as to cause compilation error
15231 for the code where people have often written n instead of nn.
15232
15233 * .gdbinit (hookpost-run): Defined.
15234
15235 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15236
15237 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
15238
15239 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15240
15241 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15242 if fullscreen is being set.
15243
15244 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15245
15246 * minibuf.c (Fminibuffer_contents)
15247 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15248 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
15249
15250 2002-01-21 Richard M. Stallman <rms@gnu.org>
15251
15252 * window.c (check_frame_size): Fix minimum height calculation.
15253
15254 2002-01-20 Ken Raeburn <raeburn@gnu.org>
15255
15256 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15257 height before comparison.
15258 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
15259
15260 2002-01-20 Jason Rumney <jasonr@gnu.org>
15261
15262 * w32term.c (w32_system_caret_width): Remove.
15263 (w32_use_visible_system_caret): New user flag.
15264 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15265 Windows reports a screen reader running.
15266 (x_update_window_begin): Hide the system caret.
15267 (x_update_window_end): Show the system caret.
15268 (x_display_and_set_cursor): Don't draw a cursor when
15269 w32_use_visible_system_caret is set. Do not adjust width.
15270
15271 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15272 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15273 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15274 the user requests it. Use system default width when creating.
15275 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
15276
15277 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15278 New window messages.
15279
15280 2002-01-20 Richard M. Stallman <rms@gnu.org>
15281
15282 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
15283
15284 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15285
15286 * doprnt.c (doprnt1): Fix typos in error call.
15287
15288 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
15289
15290 * unexelf.c (unexec) [__sgi]: Support the .got sections.
15291
15292 2002-01-20 Jason Rumney <jasonr@gnu.org>
15293
15294 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15295 that Windows returns. If a double check fails, try to guess how
15296 ExtTextOut is going to act.
15297
15298 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15299 in place of stricmp.
15300 (w32_list_synthesized_fonts): Removed.
15301 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15302 (struct enumfont_t): New element; list.
15303 (enum_font_cb2): List all style and charset variations of a font.
15304 (Fw32_select_font): New optional argument; include_proportional.
15305 Exclude vertical fonts. Exclude proportional fonts unless
15306 include_proportional is non-nil.
15307 (w32_enable_synthesized_fonts): Change to a boolean.
15308 (Fw32_send_sys_command): Doc fix.
15309
15310 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15311
15312 * dispnew.c (update_frame): Move the variable `tem' to the block
15313 where it is used.
15314
15315 2002-01-19 Jason Rumney <jasonr@gnu.org>
15316
15317 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15318 call to face-set-after-frame-default.
15319
15320 2002-01-18 Richard M. Stallman <rms@gnu.org>
15321
15322 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15323 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
15324
15325 2002-01-17 Richard M. Stallman <rms@gnu.org>
15326
15327 * window.c (enlarge_window): When exceeding size of parent,
15328 directly delete all the siblings instead of trying to resize it.
15329
15330 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15331
15332 * term.c (set_tty_color_mode): Remove unused variable `tem'.
15333
15334 2002-01-16 Henrik Enberg <henrik@enberg.org>
15335
15336 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
15337
15338 2002-01-16 Kim F. Storm <storm@cua.dk>
15339
15340 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15341 is invisible. This can happen if cursor is on top line of a
15342 window, and we switch to a buffer with a header line.
15343
15344 * w32term.c (x_erase_phys_cursor): Ditto.
15345
15346 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15347
15348 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15349 `dont_resize' only when used.
15350
15351 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
15352
15353 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
15354
15355 * xdisp.c (display_mode_element): When computing charpos, depend
15356 on multibyteness of elt, not the text in field.
15357
15358 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15359
15360 * buffer.c (Fkill_all_local_variables):
15361 Increment `update_mode_lines' only once.
15362
15363 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15364
15365 * lisp.h (adjust_after_replace_noundo)
15366 (Fupdate_coding_systems_internal): Add prototypes.
15367
15368 * sound.c (Fplay_sound): Initialize header_size also for :data case.
15369
15370 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
15371
15372 Support for the --color command-line argument and tty-color-mode
15373 frame parameter:
15374
15375 * term.c (tty_default_color_capabilities, tty_setup_colors)
15376 (set_tty_color_mode): New functions.
15377 (term_init): Call tty_default_color_capabilities.
15378 (Qtty_color_mode_alist): New variable.
15379 (syms_of_term): Intern and staticpro it.
15380
15381 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15382 frames.
15383 (do_switch_frame): For termcap frames, switch the tty
15384 color mode as specified by the frame's parameters.
15385 (Qtty_color_mode): New variable.
15386 (syms_of_frame): Intern and staticpro it.
15387
15388 * emacs.c (USAGE2): Add the --color option.
15389 (standard_args): Ditto.
15390
15391 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15392
15393 * xterm.h (struct x_output): New members want_fullscreen,
15394 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15395 y_pixels_outer_diff.
15396 New enum for FULLSCREEN_* constants.
15397 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15398 is NULL.
15399 (x_fullscreen_adjust): Add prototype.
15400
15401 * emacs.c (USAGE2): Add the new full-screen arguments.
15402 (standard_args): Ditto.
15403
15404 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15405 New variables.
15406 (syms_of_xfns): Intern and staticpro them.
15407 (x_frame_parms) <"fullscreen">: New parameter.
15408 (x_fullscreen_move, x_set_fullscreen): New functions.
15409 (x_set_frame_parameters): Support for Qfullscreen.
15410 (x_real_positions): More accurate computation of the frame position.
15411 (x_figure_window_size): Support full-screen frames.
15412 (Fx_create_frame): Default the fullscreen parameter.
15413
15414 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15415 (XTread_socket) <Expose>: Call x_check_fullscreen.
15416 <ConfigureNotify>: Don't resize to fullscreen.
15417 Call x_check_fullscreen_move, and set the want_fullscreen member of
15418 output_data.x.
15419
15420 2002-01-13 Jason Rumney <jasonr@gnu.org>
15421
15422 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15423 for mice with more than 3 buttons.
15424
15425 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15426 (w32_read_socket): Handle new "XBUTTON" messages.
15427
15428 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15429 (syms_of_w32fns): DEFVAR_BOOL it.
15430 (w32_wnd_proc): Handle new "XBUTTON" messages.
15431
15432 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15433
15434 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
15435
15436 2002-01-13 Andreas Schwab <schwab@suse.de>
15437
15438 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
15439
15440 2002-01-12 Andreas Schwab <schwab@suse.de>
15441
15442 * .gdbinit (xbuffer): Remove address operator since data is now a
15443 pointer.
15444
15445 2002-01-11 Richard M. Stallman <rms@gnu.org>
15446
15447 * insdel.c (adjust_after_replace_noundo): New function.
15448
15449 * coding.c (code_convert_region): Don't copy old text if undo disabled.
15450
15451 2002-01-09 Jason Rumney <jasonr@gnu.org>
15452
15453 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15454 when checking for multiple frames.
15455
15456 2002-01-08 Richard M. Stallman <rms@gnu.org>
15457
15458 * window.c (delete_window): Rewrite the code for changing the
15459 selected window to handle the case where WINDOW is not a leaf.
15460
15461 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
15462
15463 * process.c (send_process): Set src_multibyte to 1 after the call
15464 top setup_coding_system, not before the call.
15465
15466 2002-01-07 Jason Rumney <jasonr@gnu.org>
15467
15468 * xmenu.c (set_frame_menubar, xmenu_show):
15469 (xdialog_show): Initialize wv->help to Qnil.
15470
15471 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15472 (w32_dialog_show): Initialize wv->help to Qnil.
15473
15474 2002-01-06 Jason Rumney <jasonr@gnu.org>
15475
15476 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
15477
15478 * w32menu.c (w32_menu_display_help): Revert last change.
15479
15480 * xmenu.c (menu_highlight_callback): Revert last change.
15481
15482 2002-01-06 Andreas Schwab <schwab@suse.de>
15483
15484 * insdel.c (make_gap_larger): Make sure buffer size does not
15485 overflow range of int.
15486
15487 2002-01-05 Jason Rumney <jasonr@gnu.org>
15488
15489 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15490 OVERLAPS_P.
15491
15492 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
15493
15494 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15495 to the left or to the right of the pointer, put it against
15496 the left screen edge.
15497 (x_frame_parms): Add missing braces around initializer.
15498
15499 * w32term.c (x_setup_relief_colors): Don't compute an image's
15500 background color if it doesn't have a Pixmap.
15501 (notice_overwritten_cursor): Don't depend on
15502 output_cursor and updated_area. Compare pixel coordinates with
15503 window's cursor pixel coordinates.
15504 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15505 Call notice_overwritten_cursor with new arg list.
15506 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15507 unconditionally.
15508 (x_draw_image_relief): Use predefined macro instead of
15509 constant when the value of `tool_bar_button_relief' is negative.
15510
15511 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
15512
15513 2002-01-04 Richard M. Stallman <rms@gnu.org>
15514
15515 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
15516
15517 2002-01-03 Richard M. Stallman <rms@gnu.org>
15518
15519 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15520 (Fkey_binding): Try the `keymap' property map first.
15521 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15522 minor mode bindings.
15523
15524 2002-01-03 Kim F. Storm <storm@cua.dk>
15525
15526 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
15527
15528 2002-01-02 Richard M. Stallman <rms@gnu.org>
15529
15530 * keyboard.c (read_key_sequence): Handle the keymap property
15531 before minor mode maps.
15532
15533 * editfns.c (Fformat): Update thissize from field_width
15534 based on the actual width, in the string case.
15535
15536 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15537
15538 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15539 when used as truth value to prevent gcc warnings.
15540
15541 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15542 * w32proc.c: Include <config.h>.
15543
15544 2002-01-01 Andreas Schwab <schwab@suse.de>
15545
15546 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15547 not EMACS_INT, to make them compatible with DEFVAR_INT.
15548 * lisp.h (max_specpdl_size): Adjust declaration.
15549
15550 2002-01-01 Richard M. Stallman <rms@gnu.org>
15551
15552 * print.c (print_object): Test print_escape_nonascii only for
15553 unibyte strings.
15554 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15555 when outputting to a multibyte buffer.
15556
15557 2001-12-29 Richard M. Stallman <rms@gnu.org>
15558
15559 * print.c (print_object): In multibyte string, use hex escapes.
15560 Use octal only for unibyte strings.
15561 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
15562
15563 * lread.c (read_escape): New arg BYTEREP for reporting whether
15564 escape forces unibyte or multibyte.
15565 (read1): When reading a string, take note of that info.
15566
15567 2001-12-29 Ken Raeburn <raeburn@gnu.org>
15568
15569 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15570 comparison to test lisp value returned by Fget.
15571
15572 2001-12-29 Richard M. Stallman <rms@gnu.org>
15573
15574 * lisp.h (max_specpdl_size): Add declaration.
15575
15576 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
15577
15578 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15579 Handle modifier bits. Correct typo in error message.
15580
15581 2001-12-28 Richard M. Stallman <rms@gnu.org>
15582
15583 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15584 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15585 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15586 Update calls to Fdefine_abbrev.
15587 (write_abbrev): Update for changed data format.
15588 Don't list "system" abbrevs.
15589 (Fexpand_abbrev): Update use count with new data format.
15590 (describe_abbrev): Update for changed data format.
15591 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
15592
15593 * config.in (HAVE_MBSINIT): Add #undef.
15594
15595 * strftime.c (mbsinit): Define as no-op if not available.
15596
15597 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15598 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
15599
15600 * keymap.c (Flookup_key): Error message if key has wrong data type.
15601 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15602 (exclude_key): New variable.
15603
15604 2001-12-28 Gerd Moellmann <gerd@gnu.org>
15605
15606 * xterm.c (x_setup_relief_colors): Don't compute an image's
15607 background color if it doesn't have a Pixmap.
15608
15609 * xterm.c (notice_overwritten_cursor): Don't depend on
15610 output_cursor and updated_area. Compare pixel coordinates with
15611 window's cursor pixel coordinates.
15612 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15613 Call notice_overwritten_cursor with new arg list.
15614 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15615 unconditionally.
15616
15617 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15618 height of the cursor line to the amount to scroll.
15619
15620 2001-12-27 Richard M. Stallman <rms@gnu.org>
15621
15622 * intervals.c (set_point_both): The position after an invisible,
15623 intangible character is not an acceptable stopping point.
15624
15625 2001-12-27 Ken Raeburn <raeburn@gnu.org>
15626
15627 * window.c (enlarge_window): In new preserve_before code, convert
15628 CURBEG from lisp object to integer before doing arithmetic.
15629
15630 2001-12-27 Richard M. Stallman <rms@gnu.org>
15631
15632 * bytecode.c (Fbyte_code): Undo previous change.
15633
15634 2001-12-26 Kim F. Storm <storm@cua.dk>
15635
15636 * keyboard.c (record_char): Ignore duplicate help-echo events only
15637 separated by mouse-movement. When tracking mouse, only record
15638 first and last mouse-movement event in same window.
15639 Don't record mouse-movement events in keyboard macros.
15640
15641 2001-12-25 Richard M. Stallman <rms@gnu.org>
15642
15643 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15644 (Fenlarge_window): New arg PRESERVE_BEFORE.
15645
15646 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15647 instead of Fstring_as_unibyte.
15648
15649 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15650
15651 The following changes remove mocklisp support:
15652
15653 * mocklisp.h, mocklisp.c: Files removed.
15654
15655 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15656 `Qmocklisp' and `Qmocklisp_arguments'.
15657 Remove prototype of syms_of_mocklisp.
15658
15659 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
15660
15661 * callint.c: Do not include mocklisp.h.
15662 (Fcall_interactively): Do not test for mocklisp case.
15663
15664 * eval.c: Remove variables `Qmocklisp_arguments',
15665 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15666 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15667 Do not test for mocklisp case.
15668 (Fwhile): Remove unused variable `tem'.
15669 (syms_of_eval): Remove variable `moclisp-arguments'.
15670
15671 * data.c (wrong_type_argument): Remove mocklisp case.
15672
15673 * doc.c (Fdocumentation): Remove mocklisp case.
15674
15675 * emacs.c (main): Do not call syms_of_mocklisp.
15676
15677 2001-12-21 Richard M. Stallman <rms@gnu.org>
15678
15679 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15680 to the left or to the right of the pointer, put it against
15681 the left screen edge.
15682
15683 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
15684
15685 * Makefile.in (distclean): Remove .gdbinit if we are building
15686 outside the source tree.
15687
15688 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
15689
15690 * w32.c (emacs_root_dir): New function.
15691
15692 * msdos.c (emacs_root_dir): New function.
15693
15694 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15695 of the current drive as the fallback for default_directory.
15696
15697 * dired.c (file_name_completion): Run the elements of
15698 completion-ignored-extensions through ENCODE_FILE.
15699
15700 * lisp.h (scmp): Remove prototype, since it's now a static
15701 function private to dired.c.
15702
15703 2001-12-18 Richard M. Stallman <rms@gnu.org>
15704
15705 * dired.c (scmp): Function moved from minibuf.c.
15706 Delete multibyte handling--used only on encoded strings.
15707
15708 * minibuf.c (scmp): Function moved to dired.c.
15709
15710 * fns.c (merge): Add QUIT call.
15711
15712 2001-12-18 Dave Love <fx@gnu.org>
15713
15714 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15715 language/georgian.el.
15716
15717 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
15718
15719 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15720 lisp/Makefile.in:DONTCOMPILE.
15721
15722 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15723
15724 * xdisp.c (window_box_height): Do not return negative values.
15725 From Gerd Moellmann <gerd@gnu.org>.
15726
15727 * keyboard.c (head_table): Add missing braces around initializer.
15728
15729 * term.c (keys): Likewise.
15730
15731 * xfns.c (x_frame_parms, visual_classes): Likewise.
15732
15733 2001-12-17 Sam Steingold <sds@gnu.org>
15734
15735 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15736 patch (COMPOSING_P, not COMPOSING).
15737
15738 2001-12-17 Richard M. Stallman <rms@gnu.org>
15739
15740 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
15741
15742 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15743 before calling decode_coding.
15744
15745 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
15746
15747 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15748 instead of only for COMPOSITION_DISABLED.
15749
15750 2001-12-16 Richard M. Stallman <rms@gnu.org>
15751
15752 * alloc.c (pure_alloc): After overflow, allocate just a small block.
15753
15754 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
15755
15756 * buffer.h (struct buffer): New field `display_error_modiff'.
15757 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
15758
15759 * window.c (Frecenter): Clear display_error_modiff field.
15760
15761 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15762 Call redisplay_window, but not if display_error_modiff field says no.
15763 (redisplay_window_error): New function.
15764 (displayed_buffer): New variable.
15765 (redisplay_internal, redisplay_windows): Call the new functions
15766 instead of redisplay_window directly.
15767
15768 2001-12-15 Richard M. Stallman <rms@gnu.org>
15769
15770 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
15771
15772 2001-12-14 Andrew Innes <andrewi@gnu.org>
15773
15774 * makefile.w32-in (EMACSLOADPATH): Define.
15775 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
15776 (bootstrap-temacs): Remove dependency on bootstrap-clean.
15777
15778 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
15779
15780 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15781 parameter have a numeric value all the time.
15782
15783 * w32fns.c (x_report_frame_params): Likewise.
15784
15785 2001-12-12 Richard M. Stallman <rms@gnu.org>
15786
15787 * fileio.c (Fwrite_region): Doc fix.
15788
15789 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15790 (redisplay_internal): Call clear_image_cache only for window terminals.
15791
15792 2001-12-12 Gerd Moellmann <gerd@gnu.org>
15793
15794 * xdisp.c (move_it_vertically_backward): Change heuristic
15795 for the case that we didn't move far enough initially.
15796
15797 * window.c (Frecenter): Simplify computation in the case of window
15798 system frames and ARG < 0; use window_box_height.
15799
15800 2001-12-11 Richard M. Stallman <rms@gnu.org>
15801
15802 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15803 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
15804
15805 2001-12-11 Andrew Innes <andrewi@gnu.org>
15806
15807 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15808 arg is negative.
15809
15810 2001-12-11 Richard M. Stallman <rms@gnu.org>
15811
15812 * m/hp800.h: Split the __hpux conditional into the parts
15813 that are right for GNU/Linux too and the parts that are not.
15814 Use the former if GNU_LINUX.
15815 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
15816
15817 * s/gnu-linux.h (GNU_LINUX): Defined.
15818
15819 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15820
15821 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15822 `new style' [w/`doc:' keyword].
15823
15824 2001-12-10 Jason Rumney <jasonr@gnu.org>
15825
15826 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15827 before using.
15828
15829 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15830
15831 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15832 keyword].
15833
15834 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
15835
15836 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
15837
15838 * s/hpux10.h (srand48): Don't undefine.
15839
15840 2001-12-09 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
15843 Add comment to explain where the struct came from.
15844 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15845 (add_menu_item): Process pop-up menus first to avoid memory leak.
15846 (add_menu_item, w32_menu_display_help): Use `help' field as
15847 Lisp_Object.
15848 (w32_free_submenu_strings): Only free owner-drawn strings.
15849
15850 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15851
15852 * COPYING: Moved back.
15853
15854 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15855 Add parentheses around && within ||.
15856
15857 * indent.c (compute_motion): Likewise.
15858
15859 * intervals.c (merge_properties_sticky): Likewise.
15860
15861 * coding.c (setup_coding_system, shrink_encoding_region)
15862 (Fdecode_sjis_char): Likewise.
15863
15864 2001-12-07 Andreas Schwab <schwab@suse.de>
15865
15866 * xdisp.c (display_mode_element): Don't read past end of string if
15867 it ends with '%'.
15868
15869 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15870 can hold.
15871
15872 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15873 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15874 type changed to Lisp_Object.
15875 (syms_of_data): DEFVAR_LISP them.
15876
15877 2001-12-07 Richard M. Stallman <rms@gnu.org>
15878
15879 * callproc.c (init_callproc): Set Vdata_directory based on the source
15880 location whenever Emacs was run uninstalled.
15881
15882 2001-12-06 Paul Eggert <eggert@twinsun.com>
15883
15884 * config.in (HAVE_WORKING_VFORK): New #undefs.
15885 * process.c (create_process):
15886 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15887 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15888 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15889 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15890 * m/intel386.h (HAVE_VFORK): Likewise.
15891 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15892 * m/mips.h (HAVE_VFORK): Likewise.
15893 * s/freebsd.h (vfork): Remove #define.
15894 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15895 * s/usg5-4-2.h: Fix comment about vfork.
15896
15897 2001-12-06 Richard M. Stallman <rms@gnu.org>
15898
15899 * s/hpux10.h (random): Add undef.
15900 (HAVE_RANDOM): Define it just once.
15901
15902 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
15903
15904 * eval.c: Undo last change: the standard syntax is not wanted.
15905
15906 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
15907
15908 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15909 scroll bars of the frame before deleting the frame itself. If the
15910 frame has a widget, delete the frame with XtDestroyWidget, and do
15911 not call XDestroyWindow before that.
15912
15913 2001-12-06 Kim F. Storm <storm@cua.dk>
15914
15915 * xfns.c (x_report_frame_params): Return actual fringe widths.
15916
15917 * w32fns.c (x_report_frame_params): Return actual fringe widths.
15918
15919 2001-12-05 Andrew Innes <andrewi@gnu.org>
15920
15921 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15922 excessively large.
15923
15924 * insdel.c (make_gap_larger): New function.
15925 (make_gap_smaller): New function.
15926 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15927 Call make_gap_smaller if arg is negative.
15928
15929 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
15930
15931 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15932 Pass a dummy argument when calling interrupt_signal.
15933 (parse_menu_item): Mark disabled items before checking for empty def.
15934 (read_char_minibuf_menu_prompt): Make safety more visible.
15935 (read_key_sequence): Add a `first_unbound' variable.
15936 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15937 unbound prefix as soon as we can detect it.
15938
15939 * doc.c (Fsnarf_documentation): Add prototype.
15940 (get_doc_string): Handle negative arguments.
15941 (Fdocumentation): Use AREF and ASIZE.
15942 Move the calls to get_doc_string to a single place.
15943 Don't confuse an interactive-spec for a docstring reference.
15944 (Fdocumentation_property): Take advantage of the fact that
15945 get_doc_string now ignores the sign of the docstring position.
15946
15947 * eval.c: Use standard syntax for usage in docstrings.
15948
15949 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15950
15951 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
15952
15953 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15954
15955 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15956 constant when the value of `tool_bar_button_relief' is negative.
15957
15958 2001-12-02 Richard M. Stallman <rms@gnu.org>
15959
15960 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15961 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
15962
15963 * fileio.c (read_non_regular): Delete Fsignal call.
15964
15965 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
15966
15967 * lisp.h (run_hook_list_with_args): Undo last change.
15968
15969 2001-12-01 Gerd Moellmann <gerd@gnu.org>
15970
15971 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
15972
15973 2001-12-01 Jason Rumney <jasonr@gnu.org>
15974
15975 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
15976
15977 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15978 [!WM_MOUSELEAVE]: Define.
15979
15980 * w32menu.c (current_popup_menu, get_menu_item_info):
15981 (set_menu_item_info): New vars.
15982 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15983 (w32_menu_show): Set current_popup_menu.
15984 (add_menu_item): Allocate new strings for owner-drawn menu items
15985 and help strings.
15986 Use owner-draw for disabled menu items again.
15987 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15988 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
15989
15990 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15991 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15992 <WM_EXITMENULOOP>: Free menu strings.
15993 <WM_MOUSELEAVE>: Stop tracking mouse.
15994 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
15995
15996 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15997 and mouse face.
15998
15999 2001-12-01 Kim F. Storm <storm@cua.dk>
16000
16001 The following changes add left-fringe and right-fringe
16002 frame parameters to adjust fringe widths, or remove one or
16003 both fringes.
16004
16005 * frame.h (struct frame): Remove trunc_area_pixel_width and
16006 trunc_area_cols fields.
16007 (Qleft_fringe, Qright_fringe): Declare.
16008 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
16009
16010 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16011 (syms_of_frame): Initialize them.
16012
16013 * window.c (coordinates_in_window): Handle separate left and right
16014 fringe widths.
16015
16016 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16017 and fringe_cols fields.
16018 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16019 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16020 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16021 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16022 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16023 (x_compute_fringe_widths): Add prototype.
16024
16025 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16026 fill fringe evenly with small dashes.
16027 (x_draw_fringe_bitmap): Clear background if necessary. Align and
16028 clip the new ZV bitmap to avoid jitter between rows.
16029 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16030 background. Don't draw fringe bitmaps if fringe width is zero.
16031 (x_compute_fringe_widths): New function.
16032 (x_new_font, x_set_window_size_1): Use it.
16033
16034 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16035 (x_set_frame_parameters): Process `font' parameter before other
16036 parameters as fringe widths depend on it.
16037 (x_set_fringe_width): New function.
16038 (x_figure_window_size): Use x_compute_fringe_widths.
16039 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16040 parameters.
16041
16042 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16043 (EmacsFrameSetCharSize): Ditto.
16044
16045 * w32term.h: Merged changes from xterm.h.
16046 * w32term.c: Merged changes from xterm.c.
16047 * w32fns.c: Merged changes from xfns.c.
16048
16049 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16050
16051 * COPYING: Removed.
16052
16053 2001-11-29 Dave Love <fx@gnu.org>
16054
16055 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16056 extra extra slot.
16057 (detect_coding_mask): Fix call of detect_coding_iso2022.
16058
16059 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16060
16061 * fileio.c (file-name-coding-system)
16062 (default-file-name-coding-system): Doc fix (links to referenced
16063 variables added).
16064
16065 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16066
16067 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16068 Add dummy uses of gcproN variables.
16069
16070 * category.c (describe_category, describe_category_1)
16071 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16072 (syms_of_category): Don't defsubr Sdescribe_categories.
16073
16074 2001-11-28 Richard M. Stallman <rms@gnu.org>
16075
16076 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
16077
16078 * Makefile.in (lispdir): New variable, referring to build dir.
16079 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
16080
16081 2001-11-28 Andrew Innes <andrewi@gnu.org>
16082
16083 * w32menu.c (w32_menu_display_help): Actually add the new argument
16084 OWNER.
16085
16086 2001-11-28 Jason Rumney <jasonr@gnu.org>
16087
16088 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16089 menu items. From David Ponce <dponce@wanadoo.fr>.
16090 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16091 conditionally.
16092 (w32_menu_display_help): New argument OWNER. Rewritten to store a
16093 help event in the owner frame's keyboard buffer.
16094
16095 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16096 (Fx_show_tip): Don't subtract last width from row width.
16097
16098 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16099 (w32_read_socket): Use EQ to compare frames.
16100
16101 2001-11-28 Gerd Moellmann <gerd@gnu.org>
16102
16103 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16104 OVERLAPS_P.
16105
16106 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16107
16108 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16109 `gcpro3' and `gcpro4'.
16110
16111 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
16112
16113 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16114
16115 * ccl.c: Use AREF and ASIZE.
16116
16117 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
16118
16119 * lisp.h (run_hook_list_with_args): Remove.
16120 (LIST_END_P): Fix call to wrong_type_argument.
16121 (make_fixnum_or_float): Use EMACS_INT rather than int.
16122
16123 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
16124
16125 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16126 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
16127
16128 * eval.c: Use AREF and ASIZE.
16129 (Ffetch_bytecode): Add the file name to the error message.
16130
16131 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16132 which match the end of the file-name.
16133 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16134 is not a valid env var, but leave it as is instead.
16135
16136 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16137 Make nil bindings in char-tables transparent.
16138 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16139
16140 2001-11-26 Richard M. Stallman <rms@gnu.org>
16141
16142 * textprop.c (set_text_properties_1): Allow START, END in either order.
16143 Do nothing if range is empty.
16144
16145 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16146
16147 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16148 (clean): Not here.
16149
16150 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16151
16152 * textprop.c (set_text_properties_1): Clearly mark that the
16153 interval should not be empty.
16154
16155 * intervals.c (graft_intervals_into_buffer):
16156 Don't call set_text_properties_1 on an empty interval.
16157
16158 2001-11-25 Richard M. Stallman <rms@gnu.org>
16159
16160 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
16161
16162 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16163 don't lose the data in it.
16164
16165 2001-11-25 Juanma Barranquero <lektu@terra.es>
16166
16167 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
16168
16169 * buffer.c (Fkill_buffer): Likewise.
16170
16171 * print.c (temp_output_buffer_setup): Likewise.
16172
16173 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16174
16175 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
16176
16177 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
16178
16179 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16180 Niemitalo <kon@iki.fi>.
16181
16182 2001-11-25 Jason Rumney <jasonr@gnu.org>
16183
16184 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
16185
16186 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16187 (Fx_show_tip): Block input during frame creation.
16188 (Fx_show_tip, Fx_hide_tip): Enable.
16189
16190 2001-11-24 Richard M. Stallman <rms@gnu.org>
16191
16192 * lread.c (Fload): Detect recursive load error for more than 3
16193 nestings of the same file.
16194 (Vrecursive_load_depth_limit): Variable deleted.
16195 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
16196
16197 2001-11-24 Jason Rumney <jasonr@gnu.org>
16198
16199 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16200 mouse position if either left or top is not specified.
16201
16202 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16203 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16204 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16205 (my_create_tip_window): Assign tip_window.
16206 (x_create_tip_frame): Use same defaults as X.
16207 (compute_tip_xy): Remove unused variable. Use full screen width.
16208 (Fx_show_tip): Do not double height. Call ShowWindow directly.
16209
16210 * w32term.c (x_after_update_window_line): Doc fix.
16211 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16212 frames.
16213 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
16214
16215 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16216 for all Windowed systems.
16217
16218 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
16219
16220 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16221 realized, use the initial screen colors to clear the screen.
16222
16223 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16224
16225 * textprop.c (Fset_text_properties): Remove unused variables
16226 `unchanged', `prev_changed', `s' and `len'.
16227
16228 * search.c (Freplace_match): Remove unused variable `inslen'.
16229
16230 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16231
16232 2001-11-22 Jason Rumney <jasonr@gnu.org>
16233
16234 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16235 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16236 (my_create_tip_window): New function.
16237 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16238 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16239
16240 2001-11-20 Jason Rumney <jasonr@gnu.org>
16241
16242 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16243 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16244
16245 * w32fns.c (Vw32_system_coding_system): Remove.
16246 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16247
16248 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16249
16250 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16251 after build_annotations.
16252
16253 * syntax.c (describe_syntax): Add dummy arg.
16254 (describe_syntax_1): Update call to describe_vector.
16255
16256 * category.c (describe_category): Add dummy arg.
16257 (describe_category_1): Update call to describe_vector.
16258
16259 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16260 (describe_command, describe_translation): Add dummy second param.
16261 (describe_map): Call elt_describer with two arguments.
16262 (describe_vector_princ): Add `fun' parameter.
16263 Call it instead of the hardcoded `princ'.
16264 (describe_vector): Add arg `args'.
16265 Pass it as a new second argument to elt_describer.
16266
16267 * keymap.h (describe_vector): Update prototype.
16268
16269 * frame.c: Don't include keymap.h any more.
16270 (keys_of_frame): Remove.
16271
16272 * lisp.h (keys_of_frame): Remove declaration.
16273
16274 * emacs.c (main): Don't call `keys_of_frame' any more.
16275
16276 2001-11-14 Andreas Schwab <schwab@suse.de>
16277
16278 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16279 if defined, 0 otherwise.
16280 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16281 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
16282
16283 2001-11-19 Richard M. Stallman <rms@gnu.org>
16284
16285 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
16286
16287 2001-11-18 Jason Rumney <jasonr@gnu.org>
16288
16289 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16290 (x_draw_bar_cursor): If the background color of the glyph under
16291 the cursor equals the frame's cursor color, use the glyph's
16292 foreground color for drawing the bar cursor.
16293 (x_after_update_window_line): Clear internal border in different
16294 circumstances.
16295 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16296 (w32_draw_relief_rect): Correct relief by 1 pixel.
16297 (x_set_glyph_string_background_width):
16298 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16299 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16300 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16301 if cursor_in_non_selected_windows is false.
16302 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16303 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16304 Notice if cursor gets overwritten.
16305 (notice_overwritten_cursor): Renamed from
16306 note_overwritten_text_cursor. Rewritten to take glyph widths
16307 into account, and to take X positions as parameters.
16308 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16309 around call to x_draw_glyphs.
16310 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16311 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16312 color to use for image glyph reliefs.
16313 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16314 (glyph_rect): Remove unused variable `area'.
16315
16316 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16317 some items.
16318 (x_set_internal_border_width): Set frame garbaged when window
16319 doesn't exist yet.
16320 (Fx_create_frame): Accept zero tool_bar_button_relief.
16321 (x_clear_image_1, four_corners_best, image_background)
16322 (image_background_transparent): New functions.
16323 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16324 (gs_format): Add `:background' entry.
16325 (lookup_image): Set IMG's background color if specified.
16326 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16327 when appropriate.
16328 (x_clear_image_1): Reset `background_valid' and
16329 `background_transparent_valid' fields.
16330 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16331 calculating it here. Set IMG's background_transparent field.
16332 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16333 (enum png_keyword_index): Add PNG_BACKGROUND.
16334 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16335 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16336 (enum gif_keyword_index): Add GIF_BACKGROUND.
16337 (enum gs_keyword_index): Add GS_BACKGROUND.
16338 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16339 Pre-calculate image background color where necessary.
16340 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16341 Use display info's n_cbits entry for screen depth.
16342 (Fx_show_tip): Remove unused variables `buffer', `top',
16343 `left', `max_width' and `max_height'.
16344
16345 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
16346
16347 2001-11-18 Gerd Moellmann <gerd@gnu.org>
16348
16349 * puresize.h (BASE_PURESIZE): Increase to 750000.
16350
16351 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16352
16353 * frame.c (Fframe_live_p): Doc fix.
16354
16355 2001-11-18 Richard M. Stallman <rms@gnu.org>
16356
16357 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16358 (message_dolog_marker3): New static variables hold three markers.
16359 (syms_of_xdisp): Initialize and staticpro them.
16360 (message_dolog): Use message_dolog_marker1..3 instead of
16361 allocating markers each time. Unchain them when done.
16362
16363 2001-11-17 Richard M. Stallman <rms@gnu.org>
16364
16365 * doc.c (Fsnarf_documentation): Doc fix.
16366
16367 2001-11-17 Andreas Schwab <schwab@suse.de>
16368
16369 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
16370
16371 2001-11-17 Richard M. Stallman <rms@gnu.org>
16372
16373 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
16374
16375 2001-11-17 Jason Rumney <jasonr@gnu.org>
16376
16377 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
16378
16379 2001-11-17 Gerd Moellmann <gerd@gnu.org>
16380
16381 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16382 with invalid position.
16383
16384 2001-11-16 Richard M. Stallman <rms@gnu.org>
16385
16386 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
16387
16388 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16389 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16390 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
16391
16392 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
16393
16394 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16395
16396 * fileio.c (build_annotations): Split off the tail.
16397 (build_annotations_2): New fun. Extracted from build_annotations.
16398 (Fwrite_region): Split the call to build_annotations into two
16399 calls to build_annotations and build_annotations_2.
16400
16401 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16402
16403 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16404 clear_waiting_for_input with argument.
16405
16406 * xterm.h (x_update_cursor): Remove duplicated prototype.
16407
16408 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
16409
16410 * xterm.c (waiting_for_input): Remove unnecessary declaration.
16411
16412 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
16413
16414 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16415
16416 * fileio.c (choose_write_coding_system): New fun, extracted
16417 from Fwrite_region.
16418 (Fwrite_region): Use it.
16419
16420 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16421 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16422 (ml_apply, find_handler_clause): Add prototype.
16423
16424 2001-11-16 Eli Zaretskii <eliz@gnu.org>
16425
16426 * config.in: Add #undef HAVE_COFF_H.
16427
16428 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16429 Required for ISC 4.1.
16430
16431 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
16432
16433 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16434 Andrew Wiseman <a.wiseman@btclick.com>.
16435
16436 2001-11-16 Kim F. Storm <storm@cua.dk>
16437
16438 The following changes are made to clean up the various internal
16439 references to the fringes to actually use the term `fringe' for
16440 them. Previously, they were called `flags areas', `bitmap areas',
16441 `left/right side of windows', or implicitly as `flags' or
16442 `bitmaps':
16443
16444 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
16445 Comments fixed. Use renamed symbols.
16446
16447 * dispnew.c: Comment fix. Use renamed symbols.
16448
16449 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16450 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16451 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
16452
16453 * msdos.c: Comment fix.
16454
16455 * w32fns.c: Use renamed symbols.
16456
16457 * w32term.c: Comment fixes. Use renamed symbols.
16458 (fringe_bitmap_type): Renamed from bitmap_type.
16459 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16460 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16461 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16462
16463 * w32term.h: Comment fixes. Use renamed symbols.
16464 (fringes_extra): Renamed from flags_areas_extra.
16465 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16466 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16467 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16468 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16469 (FRAME_X_LEFT_FRINGE_WIDTH):
16470 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16471 (FRAME_X_RIGHT_FRINGE_WIDTH):
16472 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16473
16474 * widget.c: Use renamed symbols.
16475
16476 * window.c: Comment fixes. Use renamed symbols.
16477 (coordinates-in-window-p): Doc fix.
16478
16479 * xdisp.c: Comment fixes. Use renamed symbols.
16480
16481 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
16482
16483 * xfns.c: Use renamed symbols.
16484
16485 * xterm.c: Comment fixes. Use renamed symbols.
16486 (fringe_bitmap_type): Renamed from bitmap_type.
16487 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16488 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16489 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16490
16491 * xterm.h: Comment fixes. Use renamed symbols.
16492 (fringes_extra): Renamed from flags_areas_extra.
16493 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16494 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16495 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16496 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16497 (FRAME_X_LEFT_FRINGE_WIDTH):
16498 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16499 (FRAME_X_RIGHT_FRINGE_WIDTH):
16500 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16501
16502 2001-11-15 Jason Rumney <jasonr@gnu.org>
16503
16504 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16505 work for most menu items. From David Ponce
16506 <david.ponce@wanadoo.fr>.
16507
16508 2001-11-15 Gerd Moellmann <gerd@gnu.org>
16509
16510 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16511 Some x_set_* function expect to be called even if old and new
16512 value are equal.
16513
16514 * xdisp.c (build_desired_tool_bar_string): Accept zero
16515 tool_bar_button_relief.
16516
16517 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16518
16519 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16520
16521 * xterm.c (x_draw_bar_cursor): If the background color of the
16522 glyph under the cursor equals the frame's cursor color, use
16523 the glyph's foreground color for drawing the bar cursor.
16524
16525 * dispnew.c (direct_output_forward_char): Fix character/byte
16526 position comparison.
16527
16528 2001-11-15 Miles Bader <miles@gnu.org>
16529
16530 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16531 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16532 Update arguments to find_field.
16533 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16534 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16535 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16536 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
16537
16538 2001-11-14 Richard M. Stallman <rms@gnu.org>
16539
16540 * editfns.c (Fpropertize): Allow call with 1 arg.
16541
16542 * dispextern.h (image_background, image_background_transparent):
16543 Conditionalize on HAVE_X_WINDOWS.
16544
16545 2001-11-13 Richard M. Stallman <rms@gnu.org>
16546
16547 * print.c (Fprin1_to_string): Doc fix.
16548
16549 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
16550
16551 * floatfns.c (Fceiling, Ffloor): Doc fixes.
16552
16553 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
16554
16555 * fileio.c (Ffile_accessible_directory_p): Doc fix.
16556
16557 * eval.c (syms_of_eval): Doc fix.
16558
16559 * coding.c (syms_of_coding): Doc fix.
16560
16561 * doc.c (Fsnarf_documentation): Doc fix.
16562
16563 * dispnew.c (syms_of_display): Doc fix.
16564
16565 * category.c (Fget_unused_category): Doc fix.
16566
16567 * buffer.c (syms_of_buffer): Doc fixes.
16568
16569 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
16570
16571 * print.c (prin1, print): Doc fix.
16572
16573 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16574
16575 * fontset.h: Remove declarations of variables
16576 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
16577
16578 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16579 `Vclip_large_size_font'.
16580
16581 2001-11-13 Jason Rumney <jasonr@gnu.org>
16582
16583 * w32fns.c: Doc fix.
16584
16585 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16586
16587 * xfaces.c (Fface_attributes_as_vector): Doc fix.
16588
16589 * fns.c: Doc fix.
16590
16591 * emacs.c: Doc fix.
16592
16593 * coding.c: Doc fix.
16594
16595 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16596 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16597 `new style' [w/`doc:' keyword].
16598
16599 2001-11-12 Richard M. Stallman <rms@gnu.org>
16600
16601 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16602 LeaveNotify events. Only FocusIn and FocusOut do that now.
16603 (x_display_and_set_cursor): Do display hollow cursors in active
16604 minibuffer windows when they are not selected.
16605
16606 2001-11-12 Jason Rumney <jasonr@gnu.org>
16607
16608 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16609 * w32term.c: Change doc-string comments to `new style'
16610 [w/`doc:' keyword]. Doc fixes.
16611
16612 * w32fns.c: Don't define max.
16613 (Fx_open_connection): Only execute once.
16614
16615 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16616
16617 * ccl.c: Change macros to use do-while block instead of if-else.
16618 Use braces to follow GNU Coding Standards.
16619
16620 2001-11-11 Richard M. Stallman <rms@gnu.org>
16621
16622 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
16623
16624 * lread.c (read_escape): Use end_of_file_error for reporting eof.
16625
16626 * insdel.c (replace_range): Use adjust_markers_for_replace
16627 instead of adjust_markers_for_delete and adjust_markers_for_insert.
16628
16629 * intervals.h (set_text_properties, set_text_properties_1): Declare.
16630
16631 * textprop.c (set_text_properties_1): New subroutine
16632 broken out of set_text_properties.
16633 (set_text_properties): Use set_text_properties_1.
16634
16635 * intervals.c (graft_intervals_into_buffer):
16636 Use set_text_properties_1 to clear out properties.
16637
16638 * search.c (Freplace_match): Use replace_range to insert
16639 and delete. Don't request property inheritance from
16640 surrounding text.
16641
16642 2001-11-10 Jason Rumney <jasonr@gnu.org>
16643
16644 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
16645 vertical fonts. Allow them if face name is explicitly specified.
16646 Do not give up if we find a font that cannot be converted to an xlfd.
16647
16648 2001-11-10 Gerd Moellmann <gerd@gnu.org>
16649
16650 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16651 instead of malloc/free.
16652
16653 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16654
16655 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16656 Coding Standards.
16657 (Finternal_set_lisp_face_attribute): Likewise.
16658
16659 * buffer.c (Fbury_buffer): Likewise.
16660
16661 * indent.c (current_column_1): Remove unused variable `prev_col'.
16662
16663 * coding.c (encode_coding): Use precomputed value of `src'.
16664 (encode_coding): Remove unused variable `src_end'.
16665 (code_convert_region): Remove unused variables `count'.
16666
16667 2001-11-07 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32term.c (x_display_and_set_cursor): Do not move system caret
16670 if cursor_glyph is NULL.
16671
16672 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16673
16674 * keymap.c (access_keymap): Fix compilation error.
16675
16676 2001-11-07 Miles Bader <miles@gnu.org>
16677
16678 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
16679
16680 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16681
16682 * intervals.c (graft_intervals_into_buffer):
16683 Remove #ifdef'd-out code.
16684 (graft_intervals_into_buffer): Remove unused variable `middle'.
16685
16686 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16687 code (eval-current-buffer).
16688 Change doc-string comments to `new style' [w/`doc:' keyword].
16689
16690 2001-11-06 Richard M. Stallman <rms@gnu.org>
16691
16692 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
16693
16694 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
16695
16696 * lread.c (read1): Fix behavior with nested backquoting.
16697
16698 * keyboard.c (make_lispy_event): Check integerness and fix
16699 Lisp_Object/int mixup.
16700
16701 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16702
16703 * fns.c (copy_hash_table): Remove unused variable `v'.
16704
16705 * fontset.c (fontset_font_pattern): Remove unused variable
16706 `family_registry'.
16707
16708 * indent.c (current_column_1): Remove unused variable `prev_col'.
16709
16710 2001-11-05 Richard M. Stallman <rms@gnu.org>
16711
16712 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
16713
16714 * buffer.c (Fkill_buffer): Don't delete auto save file
16715 if buffer is modified.
16716
16717 2001-11-05 Andrew Innes <andrewi@gnu.org>
16718
16719 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16720 CHECK_NUMBER_CDR.
16721
16722 2001-11-05 Richard M. Stallman <rms@gnu.org>
16723
16724 * unexelf.c (unexec): Minor changes; clean up comments.
16725
16726 2001-11-05 Sam Steingold <sds@gnu.org>
16727
16728 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
16729
16730 2001-11-05 Andreas Schwab <schwab@suse.de>
16731
16732 * sound.c (sound_perror): Save errno from being clobbered.
16733
16734 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
16735
16736 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16737 the program image directly.
16738
16739 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16740
16741 * buffer.h (Fbuffer_local_value): Add prototype.
16742
16743 2001-11-04 Richard M. Stallman <rms@gnu.org>
16744
16745 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16746 and CHECK_BUFFER.
16747
16748 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16749 (record_char): Likewise.
16750
16751 * keyboard.c (make_lispy_event): Don't insist a drag event must
16752 move to a different buffer position. Instead, check for moving at
16753 least double_click_fuzz.
16754
16755 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
16756
16757 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
16758
16759 * indent.c (current_column_1, Fmove_to_column): Separate the code
16760 for display-table glyphs from the code for buffer text, to fix
16761 bugs in the former.
16762
16763 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
16764
16765 * buffer.c (Fbuffer_local_value): New function.
16766 (syms_of_buffer): Defsubr it.
16767
16768 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16769 value of `cursor-in-non-selected-windows'.
16770
16771 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16772 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16773 (syms_of_xdisp): Initialize it.
16774
16775 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16776
16777 * xfns.c (Fx_create_frame): Doc fix.
16778
16779 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16780 keyword].
16781
16782 * eval.c (top_level_value, top_level_set): Remove commented and
16783 #ifdef'd-out code.
16784 (Fdefvar): Fix usage in doc-string.
16785
16786 2001-11-03 Richard M. Stallman <rms@gnu.org>
16787
16788 * xfns.c: Include unistd.h, if it exists.
16789
16790 * editfns.c: Move the include of ctype.h after unistd.h.
16791
16792 * gmalloc.c: Test BROKEN_PROTOTYPES.
16793
16794 2001-11-03 Ken Raeburn <raeburn@gnu.org>
16795
16796 * lisp.h (CHECK_STRING_CAR): New macro.
16797 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16798 treating XCAR and XCDR as lvalues.
16799 (openp): Use CHECK_STRING_CAR.
16800 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
16801
16802 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
16803
16804 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16805 (SIGMASKTYPE): Define.
16806
16807 * syssignal.h (sigunblock): Don't define if already defined.
16808
16809 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16810
16811 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16812 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16813 Fix typos in comments.
16814
16815 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16816 and #ifdef'd-out code.
16817 Fix and reindent comments.
16818
16819 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
16820
16821 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16822 argument `i' in macros.
16823
16824 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16825 `i' in macros.
16826
16827 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16828 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16829 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16830 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16831 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16832 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16833 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16834 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16835 in macros.
16836
16837 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16838 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16839 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16840 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16841 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16842 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16843 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16844 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16845 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16846 (remove unused second argument).
16847
16848 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
16849
16850 * syntax.c (describe_syntax): New wrapper.
16851 (Finternal_describe_syntax_value): Rename from describe_syntax.
16852 Don't insert space at front and \n at the end.
16853 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
16854
16855 * regex.c (re_wctype): Try to fix some warnings.
16856 (regcomp, regexec): Don't forget the __restrict.
16857
16858 2001-11-02 Richard M. Stallman <rms@gnu.org>
16859
16860 * textprop.c (Fget_char_property): Doc fix.
16861
16862 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16863
16864 * process.c (Fstart_process): Add usage to doc-string.
16865
16866 * data.c (Fsetq_default): Ditto.
16867
16868 * callint.c (Finteractive): Ditto.
16869
16870 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
16871
16872 * macros.c: Don't include keymap.h any more.
16873
16874 2001-11-01 Richard M. Stallman <rms@gnu.org>
16875
16876 * data.c (Fmake_local_variable): Doc fix.
16877
16878 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16879 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
16880
16881 * keymap.c (Fdescribe_buffer_bindings): Print character property
16882 bindings along with or instead of the buffer local map.
16883 Make the overriding maps override what they should.
16884
16885 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16886
16887 * window.c (grow_mini_window): Fix typo in comment.
16888
16889 2001-11-01 Gerd Moellmann <gerd@gnu.org>
16890
16891 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16892 (XTset_vertical_scroll_bar): Likewise.
16893
16894 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16895 instead of IMAGE_BACKGROUND.
16896
16897 * xfns.c (four_corners_best): Reindent.
16898
16899 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
16900 Handle :box so that it is possible to specify sexprs.
16901
16902 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16903
16904 * s/hpux11.h: New file.
16905
16906 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16907
16908 * emacs.c (USAGE1): Show command line option --no-window-system
16909 instead of --no-windows in usage.
16910 (standard_args): Rename --no-windows to --no-window-system.
16911 (bug_reporting_address): Follow Emacs coding conventions.
16912
16913 * eval.c (Fcommandp): Doc fix.
16914 Change doc-string comments to `new style' [w/`doc:' keyword].
16915
16916 * frame.c (Fframe_live_p): Doc fix.
16917
16918 * buffer.c (selective-display-ellipses): Doc fix.
16919
16920 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16921
16922 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16923
16924 * xfaces.c (realize_x_face): If C is not a single-byte character,
16925 set the face's colors_copied_bitwise_p instead of the defaulted_p
16926 members which have a different meaning.
16927 (free_face_colors): Do nothing for a face whose colors have been
16928 copied bitwise.
16929
16930 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
16931
16932 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16933
16934 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16935 [w/`doc:' keyword].
16936
16937 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16938
16939 * fns.c (require_unwind): Return Lisp_Object.
16940
16941 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16942
16943 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16944 (last-input-char): Revert doc-string to be the same as the
16945 doc-string of `last-input-event'.
16946
16947 * xdisp.c: Fix typos in comments.
16948
16949 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16950
16951 * window.c (grow_mini_window): Handle case that the root
16952 window is already smaller than the nominal mininum height.
16953
16954 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16955
16956 * emacs.c (main): Don't call keys_of_macros any more.
16957
16958 * lisp.h (keys_of_macros): Remove.
16959
16960 * macros.c (keys_of_macros): Remove.
16961
16962 * xfaces.c (Fface_attribute_relative_p): Declare args.
16963
16964 2001-10-30 Jason Rumney <jasonr@gnu.org>
16965
16966 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16967 (enum_font_cb2): Ignore fonts with vertical orientation.
16968
16969 2001-10-30 Richard M. Stallman <rms@gnu.org>
16970
16971 * keyboard.c (Finput_pending_p): Doc fix.
16972
16973 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16974
16975 * xterm.c (x_after_update_window_line): Don't run the code
16976 clearing in borders for rows whose visible height is 0.
16977
16978 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16979 resized_p flag is set. If not set, use the much less flickering
16980 method previously used.
16981
16982 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16983
16984 * frame.h (struct frame) <resized_p>: New member.
16985
16986 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16987 as large as the number of bytes to convert.
16988
16989 * lread.c (to_multibyte): New function.
16990 (read1): Use it.
16991
16992 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16993
16994 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16995
16996 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16997
16998 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
16999 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17000 if the row's fill_line_p is set and drawing the last glyph with
17001 DRAW_IMAGE_{RAISED,SUNKEN}.
17002
17003 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17004
17005 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17006
17007 * xmenu.c: Include coding.h and charset.h.
17008 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17009 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17010 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17011 Explicitly set wv->help. Use `TRUE' rather than `True'.
17012 (menu_help_callback): Use empty_string.
17013
17014 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17015 (Fx_popup_dialog): Explicitly init f.
17016 (w32_menu_display_help): Use empty_string.
17017
17018 2001-10-29 Richard M. Stallman <rms@gnu.org>
17019
17020 * fns.c (Frequire): Detect recursive try to require the same
17021 feature 3 or more levels deep, and get error.
17022 (require_unwind): New subroutine.
17023 (require_nesting_list): New variable.
17024 (syms_of_fns): Init and staticpro it.
17025
17026 * print.c (print_object): Clarify indication of insertion type.
17027
17028 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17029
17030 * coding.c (syms_of_coding): Document that locale-coding-system is
17031 used for decoding input on X.
17032
17033 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17034
17035 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17036
17037 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17038 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17039
17040 2001-10-29 Gerd Moellmann <gerd@gnu.org>
17041
17042 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17043 use NO_CURSOR if cursor_in_non_selected_windows is false.
17044
17045 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17046 the slant attribute if FRAME is t.
17047
17048 * xfns.c (x_set_internal_border_width): Set frame garbaged
17049 when X window doesn't exist yet.
17050
17051 * xterm.c (x_after_update_window_line): Clear internal border
17052 in different circumstances.
17053
17054 * xterm.c (XTread_socket) <KeyPress>: Don't use
17055 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17056 <handa@etl.go.jp>.
17057
17058 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17059
17060 * m/ibms390.h: New file. From Adam Thornton
17061 <athornton@sinenomine.net>.
17062
17063 2001-10-28 Gerd Moellmann <gerd@gnu.org>
17064
17065 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
17066
17067 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17068 a loop counter.
17069
17070 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17071
17072 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
17073
17074 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17075 keyword].
17076 Fix typos in comments.
17077
17078 * emacs.c (bug_reporting_address): New function.
17079 Use it when displaying usage message.
17080
17081 * minibuf.c (read_minibuf): Remove unused external declaration of
17082 variable `Qread_only'.
17083
17084 * keymap.c (access_keymap): Remove unused variable `charset'.
17085
17086 2001-10-28 Miles Bader <miles@gnu.org>
17087
17088 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17089 Remove #ifdef'd-out code.
17090 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17091 (syms_of_xfaces): Initialize them.
17092
17093 2001-10-27 Jason Rumney <jasonr@gnu.org>
17094
17095 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17096 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17097 position using the system caret.
17098
17099 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17100 (w32_system_caret_height, w32_system_caret_x)
17101 (w32_system_caret_y): New variables for tracking system caret.
17102 (w32_initialize): Initialize them.
17103 (x_display_and_set_cursor): Make system caret follow the active cursor.
17104
17105 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17106 New messages types.
17107
17108 * w32term.c (note_mouse_highlight): Clear old help_echo.
17109
17110 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17111
17112 * xterm.c: Fix typo in a comment.
17113
17114 * emacs.c: Fix typos in comments.
17115 Remove unnecessary spaces.
17116 Change doc-string comments to `new style' [w/`doc:' keyword].
17117 (USAGE2): Fix typos in usage string.
17118
17119 * xterm.c: Fix typo in a comment.
17120
17121 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17122 emacs.c.
17123
17124 2001-10-27 Gerd Moellmann <gerd@gnu.org>
17125
17126 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
17127 instead of 1/2 line_height in the heuristic for skipping
17128 farther backward when target_y was not reached.
17129
17130 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17131 Display errno only if non-zero.
17132 (sound_warning): New function.
17133 (vox_configure): Don't treat failing to set sample rate as error.
17134 (various places): Improve error messages.
17135
17136 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17137
17138 * fileio.c (Faccess_file): Run the argument filename through
17139 Fexpand_file_name, before using it.
17140
17141 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17142 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17143
17144 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17145
17146 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17147
17148 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17149 Fix clearing in the case of scroll bars on the right.
17150
17151 2001-10-26 Juanma Barranquero <lektu@terra.es>
17152
17153 * w32gui.h (XImage): Add a dummy typedef.
17154
17155 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17156
17157 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17158
17159 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17160
17161 * frame.c (Fframe_parameter): Fix last change.
17162
17163 * fileio.c: Revert last change (which removed old commented-out
17164 version of expand-file-name). Add a comment that explains why
17165 this old version should not be removed.
17166
17167 2001-10-25 Gerd Moellmann <gerd@gnu.org>
17168
17169 * frame.c (Fframe_parameter): Fix a bug whereby some
17170 ``artificial'' frame parameters, like `minibuffer' were not
17171 obtained by calling Fframe_parameters.
17172
17173 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17174 cursor differently.
17175
17176 * xdisp.c (move_it_vertically_backward): Compute line height
17177 differently. Add heuristic to try to be more compatible to 20.x.
17178
17179 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17180
17181 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17182
17183 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17184 boolean.
17185
17186 2001-10-25 Miles Bader <miles@gnu.org>
17187
17188 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17189 BG is a pointer to a structure, not a structure.
17190 (gif_format, png_format): Add missing commas.
17191
17192 2001-10-24 Richard M. Stallman <rms@gnu.org>
17193
17194 * xfaces.c (Fface_attributes_as_vector): New function.
17195 (syms_of_xfaces): Defsubr it.
17196
17197 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17198
17199 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17200 variable `area'.
17201
17202 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17203
17204 * search.c (scan_newline): Remove unused variable `selective_display'.
17205
17206 2001-10-25 Miles Bader <miles@gnu.org>
17207
17208 * dispextern.h (struct image): Add `background',
17209 `background_valid', and `background_transparent' fields.
17210 (image_background, image_background_transparent): New declarations.
17211 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17212 * xfns.c (image_background, image_background_transparent)
17213 (four_corners_best): New functions.
17214 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17215 (gs_format): Add `:background' entry.
17216 (lookup_image): Set IMG's background color if specified.
17217 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17218 when appropriate.
17219 (x_clear_image_1): Reset `background_valid' and
17220 `background_transparent_valid' fields.
17221 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17222 calculating it here. Set IMG's background_transparent field.
17223 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17224 (enum png_keyword_index): Add PNG_BACKGROUND.
17225 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17226 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17227 (enum gif_keyword_index): Add GIF_BACKGROUND.
17228 (enum gs_keyword_index): Add GS_BACKGROUND.
17229 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17230 Pre-calculate image background color where necessary.
17231 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17232 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17233 color to use for image glyph reliefs.
17234
17235 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17236
17237 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17238 in full-width rows.
17239
17240 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17241 Fix clearing of area not covered by scroll bar.
17242
17243 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17244
17245 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17246 and `real_start'.
17247 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
17248 (glyph_rect): Remove unused variable `area'.
17249
17250 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17251
17252 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
17253
17254 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17255 (row_containing_pos): Take additional argument DY.
17256 Treat rows ending in middle of char differently.
17257 (display_line): Handle tabs on window systems differently.
17258
17259 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17260 with additional argument.
17261
17262 * dispextern.h (row_containing_pos): Adjust prototype.
17263
17264 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17265 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17266 (try_window_id, try_window_reusing_current_matrix)
17267 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
17268 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
17269
17270 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17271
17272 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17273 gnuemacs).
17274 (HAVE_BOXES): Fix typo in comment.
17275 (push_menu_pane): Fix typo in comment.
17276
17277 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17278 of `Qwhen'.
17279 (single_display_prop_string_p): Remove unused local declarations
17280 of `Qwhen' and `Qmargin'.
17281 (string_buffer_position): Remove unused variable `around'.
17282 (store_frame_title): Remove unused variable `width'.
17283
17284 * window.c: Don't define max.
17285 (coordinates_in_window): Remove unused variable `uy'.
17286
17287 * widget.c: Don't define max.
17288
17289 * process.c: Don't define max.
17290 (create_process): Remove unused variable `buffer'.
17291
17292 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17293
17294 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
17295
17296 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17297
17298 * xfaces.c (Finternal_set_lisp_face_attribute)
17299 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17300 frame is on a windowed display.
17301
17302 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17303
17304 * dispnew.c (sync_window_with_frame_matrix_rows):
17305 Fix handling of windows which aren't full-width, fix handling
17306 of marginal areas.
17307
17308 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
17309
17310 2001-10-23 Andreas Schwab <schwab@suse.de>
17311
17312 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17313 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17314
17315 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17316
17317 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
17318 REAL_END. Notice if cursor gets overwritten.
17319 (notice_overwritten_cursor): Take X positions as parameters.
17320 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17321 around call to x_draw_glyphs.
17322
17323 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17324
17325 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17326 instead of C) and usage.
17327
17328 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17329 of C) and usage.
17330
17331 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17332 `left', `max_width' and `max_height'.
17333
17334 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17335
17336 * xdisp.c (display_line): For a tab continued to the next line,
17337 set row's ends_in_middle_of_char_p.
17338
17339 2001-10-22 Gerd Moellmann <gerd@gnu.org>
17340
17341 * xdisp.c (display_line): Fix computation of continuation lines
17342 width for TABs.
17343
17344 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17345
17346 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17347 `Qlaplace'.
17348
17349 * fileio.c: Remove unused code.
17350
17351 2001-10-22 Miles Bader <miles@gnu.org>
17352
17353 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17354 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17355 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17356
17357 2001-10-21 Jason Rumney <jasonr@gnu.org>
17358
17359 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17360
17361 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17362
17363 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17364 (Finsert_string): Avoid the multi-line string literals warning.
17365
17366 2001-10-22 Miles Bader <miles@gnu.org>
17367
17368 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17369 (Fdocumentation): Don't use it.
17370 (syms_of_doc): Don't initialize it.
17371
17372 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17373 * print.c (Fwith_output_to_temp_buffer): Likewise.
17374 * window.c (Fsave_window_excursion): Likewise.
17375 * editfns.c (Fsave_excursion, Fsave_current_buffer)
17376 (Fsave_restriction): Likewise.
17377 * eval.c (Frun_hooks, Frun_hook_with_args)
17378 (Frun_hook_with_args_until_failure)
17379 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17380 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17381 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
17382 (Funwind_protect, Fcondition_case): Likewise.
17383 * coding.c (Ffind_operation_coding_system): Likewise.
17384 * keyboard.c (Ftrack_mouse): Likewise.
17385
17386 2001-10-21 Miles Bader <miles@gnu.org>
17387
17388 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
17389 (Fmake_hash_table): Add usage: string to doc string.
17390 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
17391 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
17392 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17393 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17394 (Fml_prefix_argument_loop): Likewise.
17395
17396 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17397
17398 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
17399
17400 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17401 style' [w/`doc:' keyword].
17402
17403 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17404 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17405 comments to `new style' [w/`doc:' keyword].
17406
17407 2001-10-21 Jason Rumney <jasonr@gnu.org>
17408
17409 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17410
17411 * w32term.c (remember_mouse_glyph): New function.
17412 (w32_mouse_position): Use it.
17413 (note_mouse_movement): If the mouse moved off the glyph, remember
17414 its new position.
17415
17416 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17417 (w32_display_info): Add mouse_face_overlay.
17418
17419 * w32term.c (notice_overwritten_cursor): Renamed from
17420 note_overwritten_text_cursor. Rewritten to take glyph widths into
17421 account.
17422 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17423 (fast_find_string_pos): New function.
17424 (fast_find_position): Return the correct vpos. Add parameter
17425 STOP. In the final row, stop before glyphs having STOP as object.
17426 Don't consider glyphs that are not from a buffer.
17427 (fast_find_position) [0]: Add a presumably more correct version
17428 for after 21.1.
17429 (expose_window_tree, expose_frame): Don't compute intersections here.
17430 (expose_window): Do it here instead.
17431 (expose_window_tree, expose_window, expose_line): Return 1 when
17432 overwriting mouse-face.
17433 (expose_window): If W is the window currently being updated, mark
17434 the frame garbaged.
17435 (expose_frame): If mouse-face was overwritten, redo it.
17436 (x_use_underline_position_properties): New variable.
17437 (syms_of_xterm): DEFVAR_BOOL it.
17438 (x_draw_glyph_string): Add comment to use it in future.
17439 (x_draw_glyph_string): Restore clipping after drawing box.
17440 Fix a computation of the underline position.
17441 (w32_get_glyph_string_clip_rect): Minor cleanup.
17442 (x_fill_stretch_glyph_string): Remove an assertion.
17443 (x_produce_glyphs): Don't convert multibyte characters
17444 to unibyte characters in unibyte buffers.
17445 (cursor_in_mouse_face_p): New function.
17446 (x_draw_stretch_glyph_string): Use it to choose a different GC
17447 when drawing a cursor within highlighted text. Don't draw
17448 background again if it has already been drawn.
17449 (x_draw_glyph_string_box): Don't draw a full-width
17450 box just because the glyph row's full_width_p flag is set.
17451 (x_draw_glyphs): Fix computation of rightmost x for
17452 full-width rows.
17453 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17454 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
17455 change bottom shadow accordingly. Some cleanup.
17456 (x_update_window_end): Handle overwritten mouse face
17457 also for tool bar windows.
17458 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17459 DRAW is DRAW_IMAGE_RAISED.
17460 (clear_mouse_face): Return 1 if text with mouse face was
17461 actually redrawn. Make the function static.
17462 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
17463 optimize away highlighting if we pass over that same overlay again.
17464 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17465 to detect a case where we have to highlight a different region
17466 despite not having left the currently highlighted region.
17467 Set mouse_face_overlay in the x_display_info. Avoid changing the
17468 mouse pointer shape when show_mouse_face has already done it, or
17469 there is no need. Handle mouse-face and help-echo in strings.
17470 (glyph_rect): New function.
17471 (w32_mouse_position): Use it to raise the threshold for mouse
17472 movement event generation.
17473 (w32_initialize_display_info): Initialize the x_display_info's
17474 mouse_face_overlay.
17475 (w32_set_vertical_scroll_bar): Don't clear a zero height
17476 or width area.
17477 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17478 a widget to zero height.
17479
17480 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
17481 Protect unibyte strings created by replacing their multibyte
17482 equivalents in menu_items.
17483 (w32_menu_show): Don't overwrite an item's name with its key
17484 description in case the description is a multibyte string.
17485 (single_submenu): Some cleanup.
17486
17487 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17488 (postprocess_image): New function.
17489 (lookup_image): Call it for all image types except PostScript.
17490 (x_kill_gs_process): Call postprocess_image.
17491 (tiff_error_handler, tiff_warning_handler): New functions.
17492 (tiff_load): Install them as handlers.
17493 (x_kill_gs_process): Recognize if someone has cleared the image
17494 cache under us.
17495 (valid_image_p): Protect better against invalid image
17496 specifications. Previous code could signal an error.
17497 (Fx_hide_tip, Fshow_tip): Doc fix.
17498 (Fv_max_tooltip_size): New variable.
17499 (syns_of_xfns): DEFVAR_LISP it.
17500 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
17501 window buffer to *tip* right after creating the frame. Set frame's
17502 window_width. Use a maximum tooltip size specified by
17503 Vx_max_tooltip_size, if that has valid contents.
17504 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17505 Make sure the tooltip is completely visible.
17506 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17507 (Fx_create_frame): Adjust the frame's height for presence
17508 of the tool bar before calling x_figure_window_size.
17509 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17510 when the window gets smaller.
17511 (x_set_foreground_color): Set frame's cursor_pixel.
17512 (x_set_foreground_color, x_set_background_color): Cleaned up.
17513 (x_set_font): Handle case of x_new_fontset returning the same name
17514 as before, although there was a change in fontsets.
17515
17516 2001-10-21 Miles Bader <miles@gnu.org>
17517
17518 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
17519 (Flogxor): Add usage: string to doc string.
17520 * charset.c (Fstring): Likewise.
17521 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17522 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17523
17524 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17525
17526 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17527
17528 * alloc.c: Reindent DEFUNs with doc: keywords.
17529
17530 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17531
17532 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17533 keyword].
17534
17535 See ChangeLog.9 for earlier changes.
17536
17537 ;; Local Variables:
17538 ;; coding: iso-2022-7bit
17539 ;; End:
17540
17541 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
17542 Copying and distribution of this file, with or without modification,
17543 are permitted provided the copyright notice and this notice are preserved.
17544
17545 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4