]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2005-01-24 Kim F. Storm <storm@cua.dk>
2
3 * xdisp.c (redisplay_window): Only try to make cursor line fully
4 visible once (to avoid redisplay loop).
5
6 2005-01-23 Kim F. Storm <storm@cua.dk>
7
8 * window.c (Fpos_visible_in_window_p): Simplify return value for
9 partially visible rows.
10 (window_scroll_pixel_based): Adapt to that change.
11
12 * window.c (window_scroll_pixel_based): Force moving to next line
13 if scrolling doesn't move start point, e.g. if looking at tall image.
14
15 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
16 Clear last_height before calling line_bottom_y to get real height.
17 Fix calculation of y.
18
19 2005-01-22 Steven Tamm <steventamm@mac.com>
20
21 * s/darwin.h: Removed PTY_ITERATION from here.
22 (DARWIN): Defined.
23 * process.c (init_process): Default process-connection-type to
24 nil on darwin 6 or less, t if it is 7 or higher. This way the
25 broken pty behavior is still allowed on darwin 6 for interactive
26 processes for people that know what they are doing.
27
28 2005-01-22 Kim F. Storm <storm@cua.dk>
29
30 * window.c (auto_window_vscroll_p): New boolean.
31 (syms_of_window): DEFVAR_BOOL it.
32 (Fpos_visible_in_window_p): Extend return value to include RTOP
33 and RBOT values if FULLY is nil.
34 (window_scroll_pixel_based): Adjust vscroll for partially visible
35 rows if auto_window_vscroll_p is set.
36 (Fset_window_vscroll): Do nothing if vscroll is not modified.
37
38 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
39 to return number of partially invisible pixels at top and bottom
40 of the dislay row at POS.
41
42 * lisp.h (pos_visible_p): Fix prototype.
43
44 2005-01-21 Richard M. Stallman <rms@gnu.org>
45
46 * fileio.c (Fcopy_file): Doc fix.
47
48 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
49
50 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
51 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
52 start of function for older compilers.
53
54 2005-01-20 Richard M. Stallman <rms@gnu.org>
55
56 * editfns.c (Fmessage): If arg is "", return "" (as before).
57
58 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
59
60 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
61 variable.
62
63 2005-01-20 Steven Tamm <steventamm@mac.com>
64
65 * editfns.c (Voperating_system_release): Added.
66 (init_editfns): Assign new variable operating-system-release
67 based on call to uname if available.
68 (get_operating_system_release): Added function to
69 allow c-level access to operating system release.
70
71 * config.h: Regenerated.
72
73 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
74 less.
75 (MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
76 using ptys as '7'.
77
78 2005-01-20 Kim F. Storm <storm@cua.dk>
79
80 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
81
82 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
83 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
84
85 * macterm.c (x_draw_glyph_string_box): Likewise.
86
87 * w32term.c (x_draw_glyph_string_box): Likewise.
88
89 * indent.c (Fvertical_motion): Temporarily disable selective display.
90
91 2005-01-19 Kim F. Storm <storm@cua.dk>
92
93 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
94 image property.
95
96 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
97
98 2005-01-18 Kim F. Storm <storm@cua.dk>
99
100 * xdisp.c (fast_find_position): Backtrack to find first row if
101 charpos is inside a display overlay that spans multiple lines.
102
103 2005-01-18 Kenichi Handa <handa@m17n.org>
104
105 * coding.c (decode_coding_iso2022): Translate invalid codes if
106 translation-table is specified.
107
108 2005-01-18 Kim F. Storm <storm@cua.dk>
109
110 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
111 change. If handle_display_prop indicates newline is replaced by
112 image or text, move back to start of relevant overlay or interval
113 and continue scan from there. Simplify.
114
115 2005-01-17 Kim F. Storm <storm@cua.dk>
116
117 * dispnew.c (mode_line_string, marginal_area_string): Fix
118 off-by-one error in search for glyph.
119
120 2005-01-16 Kim F. Storm <storm@cua.dk>
121
122 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
123
124 2005-01-16 Steven Tamm <steventamm@mac.com>
125
126 * macterm.c (mac_to_x_fontname): Removed spurious argument.
127
128 2005-01-16 Andreas Schwab <schwab@suse.de>
129
130 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
131
132 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
133
134 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
135 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
136
137 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
138
139 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
140 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
141 New flags for readable_events.
142 (get_filtered_input_pending, readable_filtered_events): Removed.
143 (tracking_off): Call readable_events and get_input_pending with
144 flag READABLE_EVENTS_DO_TIMERS_NOW.
145 (readable_events): Move code from old readable_filtered_events here,
146 but check new READABLE_EVENTS_* in argument flags instead of previous
147 two boolean arguments do_timers_now and filter_events.
148 If we are doing mouse tracking and the mouse moved, return only if
149 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
150 (swallow_events): Call get_input_pending with flag
151 READABLE_EVENTS_DO_TIMERS_NOW.
152 (get_input_pending): Move code from old get_filtered_input_pending
153 here. Replace boolean arguments do_timers_now, filter_events with
154 flags, and pass flags to readable_events. Document new
155 READABLE_EVENTS_* flags.
156 (detect_input_pending_ignore_squeezables): New function.
157 (detect_input_pending_run_timers): Call get_input_pending with flag
158 READABLE_EVENTS_DO_TIMERS_NOW.
159 (Finput_pending_p): Call get_input_pending with flags
160 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
161
162 * dispnew.c (update_window, update_frame_1): Replace calls to
163 detect_input_pending with detect_input_pending_ignore_squeezables
164 so that redisplay is not paused if the event queue contains only
165 mouse movements.
166
167 * lisp.h: Declare detect_input_pending_ignore_squeezables.
168
169 2005-01-15 Steven Tamm <steventamm@mac.com>
170
171 * macterm.c (Vmac_use_core_graphics): Declare variable for
172 mac-allow-anti-aliasing.
173 (syms_of_macterm): DEFVAR_LISP and initialize it.
174 (mac_draw_string_common): Use core graphics text rendering if
175 mac-allow-anti-aliasing is enabled.
176
177 * macfns.c (Fx_file_dialog): Save As dialog includes only the
178 file name in the text box.
179
180 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
181
182 * macfns.c (x_set_foreground_color, x_set_background_color): Sync
183 with xfns.c.
184 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
185 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
186 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
187
188 2005-01-14 Kim F. Storm <storm@cua.dk>
189
190 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
191
192 2005-01-13 Richard M. Stallman <rms@gnu.org>
193
194 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
195 if Voverriding_terminal_local_map is non-nil.
196
197 * keyboard.c (syms_of_keyboard): Doc fix.
198
199 2005-01-13 Kim F. Storm <storm@cua.dk>
200
201 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
202 (specify 0 for FACE instead). Reorder arg list. Doc fix.
203
204 2005-01-12 Richard M. Stallman <rms@gnu.org>
205
206 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
207 face property for characters that don't specify one.
208
209 * fns.c (Frequire): Record in load-history unconditionally.
210
211 2005-01-10 Kim F. Storm <storm@cua.dk>
212
213 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
214
215 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
216 Callers changed.
217 Add support to merge with lisp face id too (if face_name is t).
218
219 * xdisp.c (get_next_display_element, next_element_from_display_vector):
220 Don't lookup lface_id from display table glyphs here; instead use
221 merge_faces to merge the lisp face id into current face.
222
223 2005-01-09 Kim F. Storm <storm@cua.dk>
224
225 * dispextern.h (struct it): New member dpvec_face_id.
226 (merge_into_realized_face): Add prototype.
227
228 * xfaces.c (merge_into_realized_face): New function. Used to
229 merge escape-glyph face or face from display table into current face.
230
231 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
232 (syms_of_xdisp): DEFVAR_LISP it.
233 (escape_glyph_face): Remove var.
234 (redisplay_window): Don't initialize it.
235 (setup_for_ellipsis, get_next_display_element):
236 Set it->dpvec_face_id to -1.
237 (get_next_display_element): Test Vshow_nonbreak_escape.
238 Do not setup escape_glyph_face.
239 Properly merge escape-glyph face or face from display table with
240 current face for escape and control characters. Set
241 it->dpvec_face_id to relevant face id instead of adding it to each
242 element of display vector.
243 (next_element_from_display_vector): If it->dpvec_face_id is set,
244 use that instead of lface_id from glyph itself.
245
246 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
247
248 * xterm.h (struct x_output): New member, toolbar_detached.
249
250 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
251 38.
252 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
253 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
254 (xg_create_tool_bar): Initialize toolbar_detached.
255 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
256 toolbar_detached is zero.
257
258 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
259
260 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
261 gtk_menu_popup if not for_click, so callbacks for the menu are called.
262
263 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
264 (xg_tool_bar_callback, xg_tool_bar_help_callback)
265 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
266 warning.
267
268 * xselect.c (x_get_foreign_selection, x_fill_property_data)
269 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
270 XFLOAT_DATA to get extract number from Lisp object.
271
272 2005-01-07 Kim F. Storm <storm@cua.dk>
273
274 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
275 Set stop_charpos to current charpos instead of 0.
276
277 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
278
279 * xdisp.c (Fformat_mode_line): First arg now required.
280
281 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
282
283 * macterm.c (XLoadQueryFont): Correctly handle 0 size
284 font widths that are returned from some Japanese fonts.
285
286 2005-01-06 Kim F. Storm <storm@cua.dk>
287
288 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
289 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
290 (destroy_fringe_bitmap): Set fringe_faces element to nil.
291 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
292 fringe_faces array and init elements to nil.
293 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
294 non-persistent face id.
295 (mark_fringe_data): New function for GC.
296
297 * alloc.c (mark_fringe_data): Declare extern.
298 (Fgarbage_collect): Call mark_fringe_data.
299
300 * alloc.c (overrun_check_free): Invalidate freed memory if
301 XMALLOC_CLEAR_FREE_MEMORY is defined.
302
303 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
304
305 * macfns.c: Include sys/param.h.
306 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
307 and function.
308 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
309 of filename string. Set event callback function when creating
310 dialog boxes. Add code conversions for filenames. Don't dispose
311 apple event descriptor record if failed to create it.
312
313 * macterm.c: Include sys/param.h.
314 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
315 kEventWindowUpdate.
316 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
317 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
318 of FSSpec from apple event descriptor record.
319 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
320 size of filename string.
321 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
322 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
323 file dialog is in action.
324 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject
325 only when there are no filename items. Set background color
326 before (un)highlighting the window below the dragged items.
327 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
328
329 2005-01-05 Romain Francoise <romain@orebokech.com>
330
331 * term.c (encode_terminal_code): Fix buffer size computation.
332
333 2005-01-04 Richard M. Stallman <rms@gnu.org>
334
335 * xdisp.c (Fformat_mode_line): Doc fix.
336
337 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 * alloc.c (refill_memory_reserve): Move.
340 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
341 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
342
343 2005-01-03 Richard M. Stallman <rms@gnu.org>
344
345 * window.c (window_scroll_pixel_based): Don't correct preserve_y
346 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
347
348 2005-01-03 Jason Rumney <jasonr@gnu.org>
349
350 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
351 fontp->space_width to FONT_WIDTH so they are valid.
352
353 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
354 average width. Set fontp->average_width and fontp->space_width to
355 their appropriate values.
356
357 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
358 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
359 fontp->space_width.
360
361 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
362
363 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
364 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
365 metrics for max and min bounds.
366 (x_load_font): Correctly calculate average font width metrics.
367
368 2005-01-02 Richard M. Stallman <rms@gnu.org>
369
370 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
371
372 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
373
374 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
375
376 2004-12-31 Richard M. Stallman <rms@gnu.org>
377
378 * xdisp.c (setup_for_ellipsis, get_next_display_element):
379 Set it->ellipsis_p to 1 or 0.
380 (display_line): Record whether row ends in mid-ellipsis.
381 (set_cursor_from_row): If ends in ellipsis. find start of it.
382 (cursor_row_p): If PT's at the end of the ellipsis the row
383 ends within, don't display cursor on this row.
384
385 * dispextern.h (struct it): New element ellipsis_p.
386 (struct glyph_row): New element ends_in_ellipsis_p.
387
388 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
389 position if we're reading from something other than the buffer.
390
391 * window.c (window_scroll_pixel_based): Only look at
392 Vscroll_preserve_screen_position if the old PT can't be kept.
393 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
394
395 2004-12-30 Kim F. Storm <storm@cua.dk>
396
397 * xdisp.c (get_line_height_property): New function extracted from
398 original calc_line_height_property.
399 (calc_line_height_property): Rework. Handle t and (nil . ratio).
400 (x_produce_glyphs): Use them to handle line-height and
401 line-spacing according to new height spec.
402 (Qtotal): Remove.
403 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
404
405 2004-12-30 Kenichi Handa <handa@m17n.org>
406
407 * fileio.c (Finsert_file_contents): Don't use
408 current_buffer->buffer_file_coding_system even if REPLACE is
409 non-nil. Call Qafter_insert_file_set_coding with the second arg
410 VISIT.
411
412 * fontset.h (struct font_info): New members space_width and
413 average_width.
414
415 * frame.h (struct frame): New member space_width.
416 (FRAME_SPACE_WIDTH): New macro.
417
418 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
419
420 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
421 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
422 fontp->space_width.
423 (x_load_font): Calculate fontp->space_width and
424 fontp->average_width.
425 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
426
427 * xdisp.c (x_produce_glyphs): Calculate tab width by
428 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
429
430 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
431
432 * macterm.c (SelectionRange): Add Xcode position apple event struct.
433 (do_ae_open_documents): Handle Xcode-style file position open
434 events.
435
436 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
437
438 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
439
440 2004-12-29 Richard M. Stallman <rms@gnu.org>
441
442 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
443
444 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
445
446 * macfns.c (install_window_handler): Modify extern to return OSErr
447 value.
448 (mac_window): Handle return value of install_window_handler.
449
450 * macterm.c (reflect_byte): Remove function.
451 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
452 Lookup table instead.
453 (mac_do_font_lists): Simplify calculation of the longest
454 nonspecial string.
455 (init_mac_drag_n_drop): Remove function and declaration.
456 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
457 init_mac_drag_n_drop.
458 (mac_do_track_drag): New function and declaration.
459 (install_window_handler): Return OSErr value.
460 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
461 handlers for tracking/receiving drag-and-drop items.
462 (do_ae_open_documents): Generate unibyte strings for filenames.
463 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
464 only non-filename items. Set event modifiers. Set return value.
465
466 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
467
468 * coding.c (decode_coding): Fix previous change.
469
470 2004-12-28 Richard M. Stallman <rms@gnu.org>
471
472 * xdisp.c (back_to_previous_visible_line_start):
473 Don't call handle_display_prop.
474
475 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
476
477 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
478 (decode_coding_emacs_mule, encode_coding_emacs_mule)
479 (decode_coding_iso2022, encode_designation_at_bol)
480 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
481 (decode_coding): Constify arguments and local vars.
482
483 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
484
485 * xmenu.c (popup_get_selection): Only pop down dialogs
486 on C-g and Escape.
487 (popup_get_selection): Remove parameter down_on_keypress.
488 (create_and_show_popup_menu, create_and_show_dialog): Remove
489 parameter down_on_keypress to popup_get_selection.
490
491 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
492
493 * dispextern.h: Change HAVE_CARBON to MAC_OS.
494 (struct glyph_string): Likewise.
495
496 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
497 mac_initialize.
498
499 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
500 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
501
502 * fns.c (vector): Change MAC_OSX to MAC_OS.
503
504 * frame.c (x_set_frame_parameters, x_report_frame_params)
505 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
506 (x_set_border_width, Vdefault_frame_scroll_bars): Change
507 HAVE_CARBON to MAC_OS.
508
509 * image.c [MAC_OS]: Include sys/stat.h.
510 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
511 QuickTimeComponents.h.
512
513 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
514 [!MAC_OSX] (select): Use mac_wait_next_event.
515 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
516 Vexec_suffixes.
517 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
518 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
519 (mac_clear_font_name_table): Add extern.
520 (Fmac_clear_font_name_table): New defun.
521 (syms_of_mac): Defsubr it.
522 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
523 [MAC_OSX] (select_and_poll_event): New function.
524 [MAC_OSX] (sys_select): Use it.
525 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
526 [MAC_OSX && SELECT_USE_CFSOCKET]
527 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
528 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
529 RunLoop for simultaneously monitoring two kinds of inputs, window
530 events and process outputs, without periodically polling.
531
532 * macfns.c (mac_initialized): Remove extern.
533 (stricmp): Put in #if 0. All callers changed to use xstricmp in
534 xfaces.c.
535 (strnicmp): Decrement `n' at the end of each loop, not the
536 beginning.
537 (check_mac): Use the term "Mac native windows" instead of "Mac
538 OS".
539 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
540 (mac_get_rdb_resource): New function (from w32reg.c).
541 (x_get_string_resource): Use it.
542 (install_window_handler): Add extern.
543 (mac_window): New function.
544 (Fx_create_frame): Use it instead of make_mac_frame. Set
545 parameter for Qfullscreen. Call x_wm_set_size_hint.
546 (Fx_open_connection, Fx_close_connection): New defuns.
547 (syms_of_macfns): Defsubr them.
548 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
549 kWindowNoUpdatesAttribute to the window attribute.
550 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
551 (x_create_tip_frame): Don't call ShowWindow.
552 (Fx_show_tip): Call ShowWindow.
553 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
554 TARGET_API_MAC_CARBON'.
555 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
556 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
557
558 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
559 Windows.h.
560 (Window): Typedef to WindowPtr and move outside `#if
561 TARGET_API_MAC_CARBON'.
562 (XSizeHints): New struct.
563
564 * macterm.c (x_update_begin, x_update_end)
565 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
566 frame.
567 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
568 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
569 (construct_mouse_click): Put in #if 0.
570 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
571 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
572 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
573 (activate_scroll_bars, deactivate_scroll_bars)
574 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
575 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
576 if the position is neither user-specified nor program-specified.
577 (x_free_frame_resources): Free size_hints.
578 (x_wm_set_size_hint): Allocate size_hints if needed. Set
579 size_hints.
580 (mac_clear_font_name_table): New function.
581 (mac_do_list_fonts): Initialize font_name_table if needed.
582 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
583 around mac_do_list_fonts.
584 (mac_unload_font): New function.
585 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
586 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
587 and definitions with #if TARGET_API_MAC_CARBON.
588 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
589 (install_window_handler): Add decl.
590 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
591 window. Use UpdateControls. Get the rectangle that should be
592 updated and restrict the target of expose_frame to it.
593 (do_grow_window): Set minimum height/width according to
594 size_hints.
595 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
596 (do_zoom_window): Don't use x_set_window_size.
597 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
598 (install_window_handler): New function.
599 [!USE_CARBON_EVENTS] (mouse_region): New variable.
600 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
601 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
602 GetEventDispatcherTarget inside BLOCK_INPUT.
603 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
604 Update mouse_region when mouse is moved.
605 (make_mac_frame): Remove.
606 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
607 mouse pointer shapes. Change values of f->left_pos and
608 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
609 call ShowWindow.
610 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
611 Vinvocation_name and Vsystem_name.
612 (mac_make_rdb): New function (from w32term.c).
613 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
614 already been opened. Don't pass argument to
615 mac_initialize_display_info. Don't set dpyinfo->height/width.
616 Add entries to x_display_list and x_display_name_list.
617 (x_delete_display): New function.
618 (mac_initialize): Don't call mac_initialize_display_info.
619 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
620
621 * macterm.h (check_mac): Add extern.
622 (struct mac_output): New member size_hints.
623 (FRAME_SIZE_HINTS): New macro.
624 (mac_unload_font): Add extern.
625
626 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
627
628 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
629
630 2004-12-27 Richard M. Stallman <rms@gnu.org>
631
632 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
633 (syms_of_buffer): Don't defsubr it.
634
635 * process.c (list_processes_1): Set undo_list instead
636 of calling Fbuffer_disable_undo.
637
638 * xdisp.c (single_display_spec_string_p): Renamed from
639 single_display_prop_string_p.
640 (single_display_spec_intangible_p): Renamed from
641 single_display_prop_intangible_p.
642 (handle_single_display_spec): Renamed from handle_single_display_prop.
643 Rewritten to be easier to understand.
644
645 Change in load-history format. Functions now get (defun . NAME),
646 and variables get just NAME.
647
648 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
649
650 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
651 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
652 (Qdefvar): Var deleted.
653 (syms_of_eval): Don't initialze it.
654
655 * lread.c (syms_of_lread) <load-history>: Doc fix.
656
657 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
658
659 * xmenu.c (popup_get_selection): Pop down on C-g.
660 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
661 pops down menu on C-g.
662 (xdialog_show): If dialog popped down and no button in the dialog was
663 pushed, call Fsignal to quit.
664 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
665 Fsignal to quit.
666
667 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
668
669 * gtkutil.c (xg_initialize): Install bindings for C-g so that
670 dialogs and menus pop down.
671
672 2004-12-27 Kenichi Handa <handa@m17n.org>
673
674 * coding.c (code_convert_region): Fix calculation of `ratio'.
675
676 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
677
678 * gtkutil.c (update_frame_tool_bar): Make the value of
679 tool-bar-button-margin control margins of images in tool bar.
680
681 * alloc.c (check_depth): New variable.
682 (overrun_check_malloc, overrun_check_realloc): Only add
683 overhead and write check pattern if check_depth is 1 (to handle
684 recursive calls). Increase/decrease check_depth in entry/exit.
685 (overrun_check_free): Only check for overhead if check_depth is 1.
686 Increase/decrease check_depth in entry/exit.
687
688 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
689
690 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
691 before touching input_available_clear_time, to avoid accessing it
692 from multiple threads.
693
694 2004-12-23 Jason Rumney <jasonr@gnu.org>
695
696 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
697 of JPEG library.
698
699 2004-12-22 Richard M. Stallman <rms@gnu.org>
700
701 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
702
703 * lisp.h (Vundo_outer_limit): Fix decl.
704
705 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
706 Uses changed.
707 (syms_of_undo): Initialize appropriately.
708 (truncate_undo_list): If it's nil, there's no limit.
709
710 2004-12-22 Kenichi Handa <handa@m17n.org>
711
712 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
713
714 2004-12-21 Richard M. Stallman <rms@gnu.org>
715
716 * eval.c (unwind_to_catch): Clear immediate_quit.
717
718 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
719 specially as `\ ' and `\-'.
720
721 * keyboard.c (kbd_buffer_store_event_hold):
722 In the code for while-no-input, handle immediate_quit.
723
724 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
725 Call that at the very start.
726 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
727 (syms_of_alloc): Don't define undo-limit,
728 undo-strong-limit and undo-outer-limit here.
729
730 * undo.c (truncate_undo_list): Return void.
731 Take just one argument, the buffer.
732 Make it current, and inhibit recursive GC.
733 Access and update the undo list directly; return void.
734 Refer to the undo...limit variables directly.
735 Test undo_outer_limit only after counting the whole current command.
736 When it's exceeded, call the function in undo-outer-limit-function.
737 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
738 (Vundo_outer_limit_function): New variable.
739 (syms_of_undo): Define undo-limit, undo-strong-limit
740 and undo-outer-limit here, and undo-outer-limit-function.
741 Doc fixes.
742
743 * lisp.h (truncate_undo_list): Update decl.
744
745 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
746
747 * fileio.c (Fread_file_name): Delete duplicates in
748 file-name-history when history_delete_duplicates is true.
749
750 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
751
752 * macterm.c (mac_do_list_fonts): Fix memory leak
753
754 2004-12-20 Richard M. Stallman <rms@gnu.org>
755
756 * regex.c (re_match_2_internal) <symend, wordend>:
757 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
758
759 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
760
761 * macterm.c (endif, x_font_name_to_mac_font_name): Use
762 maccentraleurroman instead of maccentraleuropean
763 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
764 quickly finding a specific font without needing regexps.
765
766 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
767
768 * syssignal.h: Declare main_thread.
769 (SIGNAL_THREAD_CHECK): New macro.
770
771 * keyboard.c (input_available_signal): Move thread checking code
772 to macro SIGNAL_THREAD_CHECK and call that macro.
773 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
774
775 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
776
777 * emacs.c: Define main_thread.
778 (main): Initialize main_thread.
779 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
780 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
781
782 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
783
784 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
785
786 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
787
788 * process.c (send_process_trap, sigchld_handler): Call
789 SIGNAL_THREAD_CHECK.
790
791 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
792
793 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
794
795 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
796 returning when xg_ignore_gtk_scrollbar is true.
797
798 2004-12-14 Kim F. Storm <storm@cua.dk>
799
800 * keyboard.c (read_char): Save and restore echo_string when
801 handling input method.
802
803 2004-12-13 Richard M. Stallman <rms@gnu.org>
804
805 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
806
807 * keyboard.c (Vthrow_on_input): New variable.
808 (syms_of_keyboard): Defvar and initialize it.
809 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
810
811 * lisp.h (QUIT): Check for Vthrow_on_input.
812 (Vthrow_on_input): Declare it.
813
814 2004-12-13 Kim F. Storm <storm@cua.dk>
815
816 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
817 vector.
818
819 2004-12-12 Richard M. Stallman <rms@gnu.org>
820
821 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
822
823 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
824 (Ftry_completion): Really use outer `zero'; eliminate inner one.
825
826 2004-12-12 Kenichi Handa <handa@m17n.org>
827
828 * term.c (encode_terminal_code): Fix previous change.
829
830 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
831
832 * keyboard.c (handle_async_input): Remove pthread mutex handling.
833 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
834
835 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
836 in macro arguments.
837
838 * minibuf.c (Ftry_completion, Fall_completions): Don't use
839 XFASTINT blindly.
840
841 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
842
843 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
844
845 * w32term.c (x_calc_absolute_position): Remove calculation of
846 difference between inner and outer window. Don't subtract difference
847 for left and top calculations.
848
849 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
850 for left and top calculations. Remove call to x_real_positions.
851 [Bug report by Drew Adams in November]
852 (x_check_expected_move): Do not set change_gravity to 1 when calling
853 x_set_offset.
854
855 2004-12-08 Richard M. Stallman <rms@gnu.org>
856
857 * xdisp.c (get_next_display_element): Use `escape-glyph' for
858 control chars and escaped octal codes.
859 (Qescape_glyph): New variable.
860 (syms_of_xdisp): Initialize it.
861 (escape_glyph_face): New variable.
862 (redisplay_window): Initialize it.
863
864 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
865
866 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
867 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
868
869 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
870
871 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
872 reset_malloc_hooks.
873
874 * keyboard.c (handle_async_input, input_available_signal):
875 Add ! defined (SYSTEM_MALLOC) around thread code.
876
877 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
878
879 2004-12-07 Stefan <monnier@iro.umontreal.ca>
880
881 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
882
883 * config.in: Regenerate.
884
885 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
886
887 * xmenu.c (Fx_popup_menu): Correct documentation about position.
888 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
889 if not given by a mouse click to correspond with x-popup-menu
890 documentation.
891
892 * config.in: Regenerate.
893
894 * gtkutil.c: Include signal.h and syssignal.h.
895 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
896
897 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
898 new variables main_thread and alloc_mutex,
899 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
900 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
901 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
902 (UN)BLOCK_INPUT.
903 (emacs_blocked_free, emacs_blocked_malloc)
904 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
905 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
906 (reset_malloc_hooks): New function.
907
908 * lisp.h: Declare reset_malloc_hooks.
909
910 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
911
912 * keyboard.c: Conditionally include pthread.h
913 (handle_async_input, input_available_signalt): If not in the main
914 thread, block signal, send signal to main thread and return.
915
916 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
917 Set current folder in file chooser if default_filename is a directory.
918
919 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
920
921 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
922 Remove redundant correctness checks.
923 (regex_compile): Fix up error codes for \{..\} expressions.
924
925 2004-12-05 Richard M. Stallman <rms@gnu.org>
926
927 * regex.c (regex_compile): Fix end-of-pattern case for space.
928
929 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
930
931 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
932 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
933 crashes with invalid characters.
934 * macmenu.c (add_menu_item): Use it.
935 * image.c (image_load_quartz2d): Likewise.
936 * macfns.c (x_set_name, x_set_title): Likewise.
937 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
938 creating them each time for labels.
939
940 2004-12-02 Richard M. Stallman <rms@gnu.org>
941
942 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
943 don't use it here.
944
945 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
946 (interactive_p): Skip Scalled_interactively_p frames
947 like Sinteractive_p frames.
948 (unwind_to_catch): Clear handling_signal.
949
950 * data.c (Fmake_variable_buffer_local): Doc fix.
951 (Fmake_local_variable): Doc fix.
952
953 * insdel.c (insert_from_string_before_markers)
954 (insert_from_string): Don't modify buffer on empty insertion.
955
956 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
957
958 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
959
960 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
961 menu text as UTF8 fails.
962
963 2004-12-01 Kim F. Storm <storm@cua.dk>
964
965 * alloc.c: Add commentary for last change.
966 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
967 sizeof(size_t) != 4.
968 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
969 Use them. Also clear header and trailer of freed memory.
970 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
971 (string_overrun_cookie): Rename from string_overrun_pattern.
972 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
973
974 2004-12-01 Andreas Schwab <schwab@suse.de>
975
976 * lisp.h: Declare string_to_multibyte.
977
978 2004-12-01 Kenichi Handa <handa@m17n.org>
979
980 * w32console.c (w32con_write_glyphs): Decide coding here.
981 Adjusted for the change of encode_terminal_code.
982
983 * term.c (encode_terminal_code): Don't make it "static".
984
985 2004-11-30 Kenichi Handa <handa@m17n.org>
986
987 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
988 (encode_terminal_code): Argument changed. Encode all
989 characters at once, and return a pointer to the result of encoding.
990 (write_glyphs): Decide coding here. Adjusted for the above change.
991 (insert_glyphs): Likewise.
992 (term_init): Initialize encode_terminal_bufsize to 0.
993
994 * coding.c (Vcode_conversion_workbuf_name): New variable.
995 (syms_of_coding): Initialize and staticpro it.
996 (set_conversion_work_buffer): New function.
997 (run_pre_post_conversion_on_str): Use it.
998 (run_pre_write_conversin_on_c_str): New function.
999
1000 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1001
1002 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1003
1004 * keyboard.c: Don't undef SIGIO
1005 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1006 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1007 (macfns.o): Don't depend on ccl.h.
1008 * macfns.c (mac_frame_parm_handlers): Set handlers for
1009 Qleft_fringe and Qright_fringe.
1010 * macterm.c (mac_fill_rectangle_to_pixmap)
1011 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1012 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1013 Put in #if 0.
1014 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1015 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1016 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1017 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1018 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1019 XDrawImageString. Always draw background and foreground separately.
1020 (x_draw_image_foreground): Use clipping instead of computing the
1021 intersection rectangle.
1022 (x_draw_image_glyph_string): Don't draw an image with mask to a
1023 pixmap.
1024 (x_redisplay_interface): Set flush_display_optional member to 0.
1025 (XTread_socket): Correctly reset the TEConverter
1026 object.
1027
1028 2004-11-30 Kim F. Storm <storm@cua.dk>
1029
1030 * lisp.h: New defines to enable buffer overrun checking.
1031 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1032 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1033
1034 * alloc.c: Add more checks for buffer overruns.
1035 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1036 xmalloc_overrun_check_trailer, overrun_check_malloc)
1037 overrun_check_realloc, overrun_check_free): Add.
1038 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1039 (check_sblock, allocate_string_data, compact_small_strings):
1040 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1041 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1042 (check_string_free_list): Add.
1043 (allocate_string, sweep_strings): Call check_string_free_list.
1044
1045 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1046 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1047
1048 2004-11-29 Kim F. Storm <storm@cua.dk>
1049
1050 * fns.c (concat): Use SAFE_ALLOCA.
1051
1052 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1053
1054 * sysdep.c (emacs_write): Don't use QUIT.
1055
1056 2004-11-29 Kenichi Handa <handa@m17n.org>
1057
1058 * buffer.c (init_buffer): Set current_buffer->directory to a
1059 multibyte string made by string_to_multibyte.
1060
1061 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
1062
1063 2004-11-27 Andreas Schwab <schwab@suse.de>
1064
1065 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1066
1067 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1068 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1069
1070 * filelock.c (lock_file_1): Call get_boot_time early.
1071 Increase buffer size.
1072
1073 2004-11-27 Eli Zaretskii <eliz@gnu.org>
1074
1075 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1076 is not defined.
1077
1078 2004-11-27 Kim F. Storm <storm@cua.dk>
1079
1080 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1081 marker out of doc string.
1082
1083 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1086 which was not mentioned in the log.
1087
1088 2004-11-26 Kim F. Storm <storm@cua.dk>
1089
1090 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1091 angle bitmaps at top/bottom line.
1092
1093 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1094 set it when it->method is set to next_element_from_display_vector.
1095 (setup_for_ellipsis): Add LEN argument. Callers changed.
1096 Set it->saved_face_id.
1097 (get_next_display_element): Use loop instead of recursion.
1098 Set it->saved_face_id. Combine duplicate code for ctr chars.
1099 (next_element_from_display_vector): Do not set it->saved_face_id.
1100 (next_element_from_ellipsis): Use setup_for_ellipsis.
1101
1102 2004-11-26 Eli Zaretskii <eliz@gnu.org>
1103
1104 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1105 prevent compiler warnings.
1106
1107 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1108
1109 * keyboard.c (command_loop_1): Print a message describing the key
1110 the user just pressed when this key has no binding.
1111
1112 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1113 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1114
1115 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1116
1117 2004-11-24 Richard M. Stallman <rms@gnu.org>
1118
1119 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1120
1121 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1122
1123 2004-11-24 Kim F. Storm <storm@cua.dk>
1124
1125 * xdisp.c (move_it_in_display_line_to, display_line):
1126 Restore saved_face_id also when truncate-lines or hscrolled.
1127
1128 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1129
1130 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1131 x-use-old-gtk-file-dialog.
1132
1133 * xfns.c: Define x_use_old_gtk_file_dialog.
1134 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1135 outside ifdef USE_GTK.
1136
1137 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1138
1139 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1140 Don't use XFASTINT blindly.
1141
1142 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1143
1144 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1145 in macro arguments.
1146
1147 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1148
1149 * lread.c (oblookup): Don't use XFASTINT blindly.
1150
1151 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1152 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1153
1154 2004-11-23 Kim F. Storm <storm@cua.dk>
1155
1156 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1157 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1158
1159 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1160 signal_p is zero and face name is unknown.
1161 (Fx_list_fonts): Don't signal error in lookup_named_face.
1162 (Fface_font): Signal error in lookup_named_face.
1163 (ascii_face_of_lisp_face): Likewise.
1164
1165 * dispextern.h (lookup_named_face): Fix prototype.
1166
1167 * xdisp.c (handle_single_display_prop): Don't signal error in
1168 lookup_named_face for unknown fringe face name.
1169 (highlight_trailing_whitespace): Don't signal error in
1170 lookup_named_face if trailing-whitespace face unknown.
1171 (calc_line_height_property): Don't signal error in
1172 lookup_named_face if specified face name is unknown.
1173
1174 * fringe.c (update_window_fringes): Show top row indicator if
1175 window has header-line. Don't show arrow at bob and eob
1176 if the boundary indicators are not used.
1177 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1178
1179 * window.c (set_window_buffer): Clear display_error_modiff.
1180
1181 2004-11-22 Kim F. Storm <storm@cua.dk>
1182
1183 * fringe.c (update_window_fringes): Provide sensible fall-back
1184 value for non-nil indicate-buffer-boundaries setting.
1185
1186 2004-11-22 Markus Rost <rost@ias.edu>
1187
1188 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1189
1190 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1191
1192 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1193
1194 2004-11-21 Kim F. Storm <storm@cua.dk>
1195
1196 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1197
1198 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1199 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1200
1201 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1202 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1203
1204 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1205 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1206
1207 * xdisp.c (move_it_in_display_line_to, display_line):
1208 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1209 line is continued before or in middle of element from display vector.
1210
1211 * indent.c (Fvertical_motion): Fix last change. Use another
1212 method to detect if iterator moved too far ahead after reseat.
1213
1214 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1215 expand matrix width for overflow in zero-width area.
1216 (append_glyph, append_composite_glyph, produce_image_glyph)
1217 (append_stretch_glyph): Use it to avoid loop in redisplay.
1218 (note_mode_line_or_margin_highlight): Don't let help-echo from
1219 string override help-echo from image map.
1220
1221 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1222
1223 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
1224 * callint.c (Fcall_interactively): Ditto.
1225
1226 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
1227
1228 * minibuf.c (Fminibuffer_complete_and_exit):
1229 Fixup the case of the completed value, for case-indep completion.
1230
1231 2004-11-20 Richard M. Stallman <rms@gnu.org>
1232
1233 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1234
1235 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
1236 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
1237
1238 * search.c (Vsearch_spaces_regexp):
1239 Rename from Vsearch_whitespace_regexp. All uses changed.
1240
1241 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1242
1243 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1244
1245 2004-11-19 Richard M. Stallman <rms@gnu.org>
1246
1247 * search.c (Vsearch_whitespace_regexp): New variable.
1248 (syms_of_search): Defvar it.
1249 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1250 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1251 is non-nil.
1252 (struct regexp_cache): New element whitespace_regexp.
1253 (syms_of_search): Initialize whitespace_regexp elements.
1254 (compile_pattern): Compare whitespace_regexp elements.
1255 (compile_pattern_1): Set whitespace_regexp elements.
1256
1257 * regex.c (regex_compile): Substitute whitespace_regexp
1258 for spaces, if it is nonzero.
1259 (whitespace_regexp): New variable.
1260 (re_set_whitespace_regexp): New function.
1261
1262 2004-11-19 Kim F. Storm <storm@cua.dk>
1263
1264 * indent.c (Fvertical_motion): Fix last change.
1265
1266 2004-11-18 Kim F. Storm <storm@cua.dk>
1267
1268 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1269 Instead, move back again if reseating moves too far ahead.
1270
1271 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
1272
1273 * xdisp.c (message3): Call clear_message.
1274
1275 2004-11-17 Kim F. Storm <storm@cua.dk>
1276
1277 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1278
1279 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1280
1281 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
1282
1283 * xmenu.c (x_menu_in_use): Remove.
1284 (x_menu_set_in_use): Also set popup_activated_flag.
1285
1286 * xfns.c (Fx_file_dialog): Call popup_activated instead of
1287 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1288
1289 * xterm.h: (x_menu_in_use): Remove.
1290
1291 2004-11-16 Richard M. Stallman <rms@gnu.org>
1292
1293 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1294 Use map-keymap-internal to implement that.
1295
1296 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1297
1298 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1299
1300 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1301 a window before using XWINDOW.
1302
1303 * window.c (make_window, Fselect_window, make_dummy_parent)
1304 (save_window_save):
1305 * frame.c (make_frame):
1306 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1307
1308 * lisp.h (NILP): Use EQ rather than XFASTINT.
1309
1310 2004-11-16 Kim F. Storm <storm@cua.dk>
1311
1312 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
1313
1314 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1315 moving backwards.
1316
1317 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
1318
1319 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1320
1321 2004-11-16 Kenichi Handa <handa@m17n.org>
1322
1323 * xdisp.c (display_mode_element): Fix previous change (calculate
1324 end position of substring to display correctly).
1325
1326 2004-11-16 Kim F. Storm <storm@cua.dk>
1327
1328 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1329 Reported by Andrew M. Scott.
1330
1331 2004-11-15 Kim F. Storm <storm@cua.dk>
1332
1333 * fns.c (Fsafe_plist_get): New defun.
1334 (syms_of_fns): Defsubr it.
1335
1336 * lisp.h (Fsafe_plist_get): Add EXFUN.
1337
1338 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1339 Use Fsafe_plist_get.
1340 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1341 Fix image map element parsing. Use Fsafe_plist_get.
1342
1343 2004-11-15 Richard M. Stallman <rms@gnu.org>
1344
1345 * xdisp.c (get_next_display_element): Fix previous change.
1346
1347 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1348
1349 * window.c (shrink_windows): Handle special case of one window left
1350 when trying to shrink the final reminder. Grow windows if
1351 total_removed is less than total_shrink.
1352
1353 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1354 extract pointer from arg with XSAVE_VALUE.
1355 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1356 Construct arg to record_unwind_protect with make_save_value.
1357
1358 2004-11-13 Richard M. Stallman <rms@gnu.org>
1359
1360 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1361 (get_next_display_element): Fix previous change to apply only to \n.
1362
1363 * indent.c (Fvertical_motion): Scan to PT from start of line to
1364 make iterator consistent.
1365
1366 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1367
1368 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1369
1370 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1371
1372 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1373 Record unwind with clean_up_file_dialog.
1374
1375 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1376 Declare.
1377
1378 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1379
1380 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1381
1382 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
1383 (xg_file_sel_destroy): Remove.
1384 (xg_file_response_cb, pop_down_file_dialog)
1385 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
1386 New functions.
1387 (xg_get_file_with_chooser, xg_get_file_with_selection):
1388 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
1389 Move common code to xg_get_file_name. Return widget created.
1390 (xg_get_file_name): Set name, transient for, modal and destroy
1391 with parent here. Connect response signal to xg_file_response_cb,
1392 connect delete-event to gtk_true. Record pop_down_file_dialog
1393 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1394 (xg_create_widget): Make dialogs modal.
1395
1396 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1397 Lisp_Object.
1398 (popup_get_selection): Move unwind protect ...
1399 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1400 Move destroy of widget to pop_down_menu.
1401 (popup_widget_loop): Move unwind protect ...
1402 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1403 Move destroy of widget to pop_down_menu.
1404 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
1405 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
1406 x_mouse_leave and grabbed = 0 to pop_down_menu.
1407
1408 2004-11-13 Kim F. Storm <storm@cua.dk>
1409
1410 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1411 (syms_of_xdisp): DEFVAR_BOOL it.
1412 (make_cursor_line_fully_visible, try_cursor_movement)
1413 (try_window_id): Use it.
1414
1415 2004-11-12 Kim F. Storm <storm@cua.dk>
1416
1417 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1418 (struct it): New member max_extra_line_spacing.
1419 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1420 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1421 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1422 part of last line is only extra line spacing (so the text on the
1423 line is fully visible). Use helper macros.
1424 Add W arg (to use them). All callers changed.
1425 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1426 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1427
1428 * window.c (window_scroll_pixel_based, Frecenter):
1429 Use move_it_vertically_backward directly.
1430 (Frecenter): Fix calculation of new start pos for negative arg.
1431 Before, the new start pos was sometimes chosen too far back, so
1432 the last line became only partially visible, and thus would be
1433 either only semi-visible or automatically scrolled to the middle
1434 of the window by redisplay.
1435
1436 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1437 (move_it_vertically_backward): Don't recure to move further back.
1438 (move_it_vertically): Remove superfluous condition.
1439 (move_it_by_lines): Clear last_height when moved 0 lines.
1440 (resize_mini_window): Use it.max_extra_line_spacing.
1441 (display_tool_bar_line): Clear row->extra_line_spacing.
1442 (try_scrolling): Use move_it_vertically_backward directly.
1443 (redisplay_window): Likewise.
1444 (compute_line_metrics): Set row->extra_line_spacing.
1445 (display_line, display_string): Likewise.
1446 (x_produce_glyphs): Update it->max_extra_line_spacing.
1447
1448 * xmenu.c (pop_down_menu): Return nil.
1449
1450 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1451
1452 * xmenu.c (x_menu_wait_for_event): New function.
1453 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1454 to handle timers.
1455 (popup_widget_loop): Add argument do_timers.
1456 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1457 do_timers to popup_widget_loop.
1458 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1459 x_menu_wait_for_event is called by XMenuActivate.
1460 (create_and_show_popup_menu): Pass 1 for do_timers to
1461 popup_get_selection.
1462 (pop_down_menu): New function.
1463 (popup_get_selection, popup_widget_loop): Unwind protect to
1464 pop_down_menu.
1465 (popup_widget_loop): Add argument widget.
1466 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1467 argument widget to popup_widget_loop.
1468
1469 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1470
1471 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1472
1473 2004-11-09 Kim F. Storm <storm@cua.dk>
1474
1475 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1476 Fix various comments referring to XEvents instead of input events.
1477 (x_queue_event): Fix format strings.
1478 (x_stop_queuing_selection_requests): Likewise.
1479
1480 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1481 (pint2hrstr): Add extra braces to silence compiler.
1482
1483 * print.c (print_object): Fix format string.
1484
1485 * lread.c (read1): Fix next_char matching.
1486
1487 * lisp.h (Fdelete): Add EXFUN.
1488 (replace_range_2): Add prototype.
1489
1490 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1491
1492 * intervals.h (NULL_INTERVAL_P): Add separate version when
1493 ENABLE_CHECKING is not defined to silence compiler.
1494 (compare_string_intervals): Add prototype.
1495
1496 * fringe.c (destroy_fringe_bitmap): Fix return type.
1497 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1498
1499 * emacs.c (Fdump_emacs): Fix format string.
1500
1501 * doc.c: Include <ctype.h>.
1502 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1503
1504 * data.c (store_symval_forwarding): Remove unused variables.
1505
1506 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1507
1508 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1509
1510 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1511 to ${OLDXMENU}.
1512
1513 2004-11-09 Kim F. Storm <storm@cua.dk>
1514
1515 * process.c (Fmake_network_process): Remove kludge for interrupted
1516 connects on BSD. If connect is interrupted, just close socket and
1517 start over rather than sleeping and retry with same socket.
1518
1519 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1520
1521 * .cvsignore: Add buildobj.lst.
1522
1523 * doc.c: New variable Vbuild_files.
1524 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1525 file names from buildobh.lst. Only attach docstrings from files
1526 that are in Vbuild_files.
1527 (syms_of_doc): Defvar Vbuild_files.
1528
1529 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1530 and w32*.o.
1531 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
1532 (mostlyclean): Rm buildobj.lst
1533
1534 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1535 is linked.
1536
1537 2004-11-09 Kim F. Storm <storm@cua.dk>
1538
1539 * fringe.c (update_window_fringes): Update fringe bitmaps if
1540 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1541 also update previous row to get rid of misc. artifacts.
1542
1543 2004-11-08 Kim F. Storm <storm@cua.dk>
1544
1545 * xdisp.c (fast_find_position): Fix start pos if header line present.
1546 (note_mouse_highlight): Clear mouse face if we move out of text area.
1547
1548 2004-11-08 Eli Zaretskii <eliz@gnu.org>
1549
1550 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1551 Don't include <sys/time.h> explicitly.
1552 Include <stdio.h> unconditionally, not just on MacOS.
1553
1554 2004-11-08 Kenichi Handa <handa@m17n.org>
1555
1556 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1557 don't pay attention to '\' before '*'.
1558 (fontset_pattern_regexp): Change the meaning of the second arg.
1559 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1560 (check_fontset_name): Try NAME as literal at first, and if it
1561 failes, try NAME as pattern.
1562
1563 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1564
1565 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1566
1567 2004-11-07 Andreas Schwab <schwab@suse.de>
1568
1569 * lisp.h (Fmsdos_downcase_filename): Declare.
1570 * dired.c (Fmsdos_downcase_filename): Don't declare here.
1571 * fileio.c: Likewise.
1572
1573 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1574
1575 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1576 comparisons with integers instead of Lisp_Object address.
1577 (Fmsdos_set_keyboard): Declare argument allkeys.
1578
1579 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1580
1581 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
1582 int/Lisp_Object mixup.
1583
1584 * fileio.c: Ditto.
1585
1586 2004-11-06 Steven Tamm <steventamm@mac.com>
1587
1588 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1589
1590 2004-11-06 Richard M. Stallman <rms@gnu.org>
1591
1592 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1593
1594 * xfaces.c (merge_named_face): GCPRO the face_name in the
1595 named_merge_point struct that we make.
1596 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1597
1598 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1599 before deciding whether to inactivate mark.
1600
1601 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
1602
1603 * config.in: Regenerate (add HAVE_GETRUSAGE).
1604 * editfns.c (Fget_internal_run_time): New function.
1605 (syms_of_data): Defsubr it.
1606 * fns.c (sxhash): As far as possible, merge calculation of
1607 hash code for symbols and strings.
1608
1609 2004-11-06 Eli Zaretskii <eliz@gnu.org>
1610
1611 * frame.c (syms_of_frame): Fix the example in the doc string.
1612
1613 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1614
1615 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1616
1617 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1618 (create_and_show_dialog): Revert change from 2004-10-31.
1619
1620 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1621
1622 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1623
1624 2004-11-05 Kim F. Storm <storm@cua.dk>
1625
1626 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1627
1628 * fileio.c (Ffile_modes): Doc fix.
1629 (auto_save_1): Check for Ffile_modes nil value.
1630
1631 2004-11-05 Kim F. Storm <storm@cua.dk>
1632
1633 * xselect.c (struct selection_event_queue, selection_queue)
1634 (x_queue_selection_requests, x_queue_event)
1635 (x_start_queuing_selection_requests)
1636 (x_stop_queuing_selection_requests): Add new queue for selection
1637 input events to replace previous XEvent queue in xterm.c.
1638 (queue_selection_requests_unwind): Adapt to new queue.
1639 (x_reply_selection_request): Adapt to new queue.
1640 Unexpect wait_object in case of x errors (memory leak).
1641 (x_handle_selection_request, x_handle_selection_clear): Make static.
1642 (x_handle_selection_event): New function. May queue selection events.
1643 (wait_for_property_change_unwind): Use save_value instead of cons.
1644 Clear property_change_reply_object.
1645 (wait_for_property_change): Abort if already waiting.
1646 Use save_value instead of cons for unwind data.
1647 (x_handle_property_notify): Skip events already arrived, but don't
1648 free them, as "arrived" field is checked by wait_for_property_change,
1649 and it will be freed by unwind or explicit unexpect_property_change.
1650 (x_get_foreign_selection): Add to new queue.
1651 (receive_incremental_selection): Don't unexpect wait_object when done
1652 as it has already been freed by previous wait_for_property_change.
1653
1654 * xterm.h (x_start_queuing_selection_requests)
1655 (x_stop_queuing_selection_requests, x_handle_selection_request)
1656 (x_handle_selection_clear): Remove prototypes.
1657 (x_handle_selection_event): Add prototype.
1658
1659 * xterm.c (handle_one_xevent): Don't queue X selection events
1660 here, it may be too late if we start queuing after we have already
1661 stored some selection events into the kbd buffer.
1662 (struct selection_event_queue, queue, x_queue_selection_requests)
1663 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1664 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1665 (x_catch_errors_unwind): Block input around final XSync.
1666
1667 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1668
1669 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1670 (kbd_buffer_unget_event): New function.
1671 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1672 and use x_handle_selection_event.
1673 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1674
1675 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1676
1677 * xselect.c (TRACE3): New debug macro.
1678 (x_reply_selection_request): Use it.
1679 (receive_incremental_selection): In call to TRACE0, the name of
1680 a symbol is in xname.
1681
1682 2004-11-05 Kim F. Storm <storm@cua.dk>
1683
1684 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1685
1686 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1687
1688 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1689
1690 * gtkutil.h (use_old_gtk_file_dialog): Declare.
1691
1692 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
1693 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
1694 * xfns.c (syms_of_xfns): ... to here.
1695
1696 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1697 it doesn't start with /.
1698
1699 2004-11-04 Kenichi Handa <handa@m17n.org>
1700
1701 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1702 treat it as a literal character.
1703
1704 2004-11-03 Kim F. Storm <storm@cua.dk>
1705
1706 * .gdbinit (ppt): New function.
1707
1708 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1709
1710 * xterm.c (x_window_to_scroll_bar): Only call
1711 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1712
1713 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1714 of save.
1715
1716 2004-11-02 Andreas Schwab <schwab@suse.de>
1717
1718 * window.c (Fscroll_right): Fix last change.
1719
1720 2004-11-02 Kim F. Storm <storm@cua.dk>
1721
1722 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1723
1724 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1725
1726 * callproc.c (Fcall_process): Block input around vfork.
1727
1728 2004-11-02 Kim F. Storm <storm@cua.dk>
1729
1730 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1731 (syms_of_eval): Defsubr it.
1732
1733 2004-11-02 Richard M. Stallman <rms@gnu.org>
1734
1735 * insdel.c (replace_range_2): New function.
1736
1737 * casefiddle.c (casify_region): Handle changes in byte-length
1738 using replace_range_2.
1739
1740 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1741
1742 * xdisp.c (back_to_previous_visible_line_start):
1743 Subtract 1 from pos when checking previous newline for invisibility.
1744
1745 * window.c (window_scroll_pixel_based): Update preserve_y
1746 for header line if any.
1747 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1748 use a new second argument instead.
1749
1750 * eval.c (Fcall_interactive_p): New function.
1751 (interactive_p): Don't test INTERACTIVE here.
1752 (Finteractive_p): Doc fix.
1753
1754 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1755
1756 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1757
1758 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
1759 comparing font names.
1760
1761 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1762
1763 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1764 Fx_file_dialog if only directories should be read.
1765
1766 * lisp.h: Fx_file_dialog takes 5 parameters.
1767
1768 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1769 Add parameter only_dir_p.
1770 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1771 dialog, just text field part. Do not add DEFAULT_FILENAME
1772 to list of files if it isn't there.
1773 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1774
1775 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1776 Check only_dir_p instead of comparing prompt to "Dired". When using
1777 a save dialog, add option kNavDontConfirmReplacement, change title
1778 to "Enter name", change text for save button to "Ok".
1779
1780 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1781 Check only_dir_p instead of comparing prompt to "Dired".
1782
1783 * gtkutil.c (xg_get_file_with_chooser)
1784 (xg_get_file_with_selection): New functions, only defined ifdef
1785 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1786 respectively.
1787 (xg_get_file_name): Add parameter only_dir_p.
1788 Call xg_get_file_with_chooser or xg_get_file_with_selection
1789 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1790 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1791
1792 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1793
1794 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1795
1796 2004-11-01 Kim F. Storm <storm@cua.dk>
1797
1798 * process.c (connect_wait_mask, num_pending_connects):
1799 Only declare and use them if NON_BLOCKING_CONNECT is defined.
1800 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
1801 (IF_NON_BLOCKING_CONNECT): New helper macro.
1802 (wait_reading_process_output): Only declare and use local vars
1803 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
1804
1805 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1806
1807 * w32term.c (x_scroll_run): Delete region objects after use.
1808
1809 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1810
1811 * xmenu.c: Add prototypes for forward function declarations.
1812 (popup_get_selection): Remove parameter do_timers, remove call to
1813 timer_check.
1814 (create_and_show_popup_menu, create_and_show_dialog):
1815 Remove parameter do_timers from call to popup_get_selection.
1816
1817 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1818 tool_bar_items and assign the result to f->tool_bar_items if
1819 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1820 tool_bar_items to assignment of result.
1821
1822 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1823 pending_atmers is non-zero.
1824
1825 2004-10-31 Kim F. Storm <storm@cua.dk>
1826
1827 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1828
1829 2004-10-28 Will <will@glozer.net>
1830
1831 * macterm.c: allow user to assign key modifiers to the Mac Option
1832 key via a 'mac-option-modifier' variable.
1833
1834 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1835
1836 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1837 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1838 (x_handle_selection_request, x_handle_selection_clear)
1839 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1840
1841 2004-10-28 Richard M. Stallman <rms@gnu.org>
1842
1843 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1844
1845 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1846
1847 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1850 comment-starter over a 1-char one.
1851
1852 2004-10-27 Richard M. Stallman <rms@gnu.org>
1853
1854 * xdisp.c (get_next_display_element): In mode lines,
1855 treat newline and tab like other control characters.
1856
1857 * editfns.c (Fmessage): Doc fix.
1858
1859 * indent.c (vmotion): When moving up, check the newline before.
1860 Make prevline an int, not a Lisp_Object.
1861
1862 2004-10-27 Kim F. Storm <storm@cua.dk>
1863
1864 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1865 Only allocate info and discarded tables once.
1866
1867 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1868 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1869 (SAFE_FREE): Test it to determine if we need to unwind to free.
1870 Remove size arg. All users changed.
1871 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1872
1873 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1874
1875 * gtkutil.c: Put empty line between comment and function body.
1876 (xg_destroy_widgets): Rename from remove_from_container.
1877 Just destroy all widgets in list. Argument wcont removed.
1878 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1879 instead of remove_from_container.
1880 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1881 (free_frame_tool_bar): Add comment.
1882
1883 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1884 is not NULL before strcmp.
1885
1886 2004-10-26 Kim F. Storm <storm@cua.dk>
1887
1888 * callint.c (Fcall_interactively): Add 'U' code to get the
1889 up-event discarded by a previous 'k' or 'K' argument.
1890
1891 2004-10-26 David Kastrup <dak@gnu.org>
1892
1893 * buffer.c (syms_of_buffer): Fix a few typos.
1894
1895 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1896
1897 * xsmfns.c: Put empty line between comment and function body.
1898 Use two spaces before comment end.
1899
1900 2004-10-25 Kenichi Handa <handa@m17n.org>
1901
1902 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1903 PATTERN is full XLFD.
1904
1905 2004-10-24 Kenichi Handa <handa@m17n.org>
1906
1907 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1908
1909 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1910 (regex_compile): Return REG_ERANGEX if appropriate.
1911
1912 2004-10-22 Kenichi Handa <handa@m17n.org>
1913
1914 * editfns.c (Ftranslate_region_internal): New function.
1915 (syms_of_editfns): Defsubr it.
1916
1917 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1918
1919 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1920
1921 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1922
1923 * xterm.h (x_output): New member `xic_base_fontname'.
1924 (FRAME_XIC_BASE_FONTNAME): New macro.
1925 (xic_free_xfontset): Declare.
1926
1927 * xfns.c (xic_create_xfontset): Share fontsets between frames
1928 based on base_fontname.
1929 (xic_free_xfontset): New function.
1930 (free_frame_xic): Use it.
1931 (xic_set_xfontset): Ditto.
1932
1933 * xterm.c (xim_destroy_callback): Ditto.
1934
1935
1936 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1937
1938 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1939
1940 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1941
1942 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1943 XSync.
1944
1945 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1946 New variables and constant.
1947 (main): Calculate heap_bss_diff. If we are dumping and the
1948 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1949 and exec ourself again.
1950 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1951 print a warning.
1952
1953 * lastfile.c: Make my_endbss and my_endbss_static available on all
1954 platforms.
1955
1956 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1957 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1958
1959 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1960
1961 * data.c (Flocal_variable_if_set_p): Doc fix.
1962
1963 2004-10-19 Jason Rumney <jasonr@gnu.org>
1964
1965 * w32.c (init_environment): Set emacs_dir correctly when running
1966 emacs from the build directory.
1967
1968 2004-10-19 Richard M. Stallman <rms@gnu.org>
1969
1970 * editfns.c (Fdelete_and_extract_region):
1971 If region is empty, return null string.
1972
1973 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1974
1975 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
1976 and canon_width.
1977 (xg_frame_cleared): Remove.
1978
1979 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1980 (xg_find_top_left_in_fixed): Remove.
1981 (xg_create_scroll_bar): Put an event box widget between
1982 the scroll bar widget and the edit widget.
1983 (xg_show_scroll_bar): Show the parent widget (the event box).
1984 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1985 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1986 Move the parent (the event box) widget inside the fixed widget.
1987 Move window clear to xterm.c.
1988
1989 * gtkutil.h (xg_frame_cleared): Remove.
1990
1991 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
1992 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1993 Remove arguments left and width to xg_update_scrollbar_pos.
1994 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1995
1996 2004-10-19 Kenichi Handa <handa@m17n.org>
1997
1998 * xdisp.c (display_mode_element): Fix display of wide chars.
1999
2000 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2001
2002 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2003 gdk_window_clear and move gdk_window_process_all_updates after
2004 clear so events are sent to the X server in correct order.
2005
2006 2004-10-18 Kenichi Handa <handa@m17n.org>
2007
2008 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2009 comparing font names.
2010 (fs_query_fontset): Use fast_string_match for comparing fontset names.
2011 (list_fontsets): Likewise.
2012
2013 * search.c (fast_string_match_ignore_case): New function.
2014
2015 * lisp.h (fast_string_match_ignore_case): Extern it.
2016
2017 2004-10-17 Kim F. Storm <storm@cua.dk>
2018
2019 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2020 than bitmap if there is not left fringe.
2021 (get_overlay_arrow_glyph_row): Also used on windows system.
2022 (display_line): Display overlay string if no left fringe.
2023
2024 2004-10-16 Jason Rumney <jasonr@gnu.org>
2025
2026 * w32fns.c (w32_font_match): Encode font name being matched.
2027
2028 2004-10-16 Richard M. Stallman <rms@gnu.org>
2029
2030 * window.c (Fspecial_display_p): Doc fix.
2031
2032 2004-10-15 Stefan <monnier@iro.umontreal.ca>
2033
2034 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2035 Don't ignore menus, because where-is-internal already does it for us.
2036
2037 2004-10-15 Kim F. Storm <storm@cua.dk>
2038
2039 * xdisp.c (redisplay_window): Only update fringes and vertical
2040 border on window frames.
2041
2042 2004-10-14 Andreas Schwab <schwab@suse.de>
2043
2044 * m/ia64.h (DATA_SEG_BITS): Don't define.
2045
2046 2004-10-14 Kim F. Storm <storm@cua.dk>
2047
2048 * xterm.h: Include Xutil.h after keysym.h to work around bug
2049 in some X versions.
2050
2051 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2052
2053 * fns.c (map_char_table): Add missing gcpros.
2054
2055 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2056
2057 * keymap.c (get_keymap): An autoload form is not a keymap.
2058
2059 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2060
2061 2004-10-13 Kim F. Storm <storm@cua.dk>
2062
2063 * callproc.c (Fcall_process): Simplify handling of display arg.
2064 Resume `display_on_the_fly' once a coding system is determined.
2065
2066 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2067
2068 2004-10-12 Kim F. Storm <storm@cua.dk>
2069
2070 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2071 caller, such as call-process, is not going to poll for input.
2072 (calc_line_height_property): Handle case where it->object is nil.
2073
2074 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2075
2076 2004-10-12 Kenichi Handa <handa@m17n.org>
2077
2078 * xdisp.c (get_next_display_element):
2079 If unibyte_display_via_language_environment is zero, display 8-bit
2080 chars in octal in unibyte buffer.
2081
2082 2004-10-12 Kim F. Storm <storm@cua.dk>
2083
2084 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2085 are no ordinary bindings.
2086
2087 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2088
2089 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
2090
2091 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2092
2093 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2094 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
2095 (make_mac_frame): Add BLOCK_INPUT around the making of a
2096 terminal frame.
2097 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2098 * macgui.h (mktime): Use emacs_mktime.
2099 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2100 Make a cancel file-open dialog be like C-g.
2101 * mac.c (mktime): Use emacs_mktime.
2102 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2103 (Fmac_paste_function): Add better error handling for carbon cut/paste.
2104
2105 2004-10-10 Kim F. Storm <storm@cua.dk>
2106
2107 * keyboard.c (timer_resume_idle): New function to resume idle
2108 timer without resetting timers on the idle list.
2109 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2110 (timer_start_idle, timer_stop_idle): Declare static.
2111 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2112
2113 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2114
2115 2004-10-08 Steven Tamm <steventamm@mac.com>
2116
2117 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
2118 * macterm.c (mac_check_for_quit_char): Remove warning for using
2119 NULL where 0 should be used.
2120 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2121 objc/malloc.h
2122 * mac.c: Include time.h for Tiger compatibility.
2123
2124 2004-10-07 Kim F. Storm <storm@cua.dk>
2125
2126 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2127 windows. Update vertical line after drawing window fringes, but
2128 only if actually drawing any bitmaps--or there is no fringe.
2129
2130 * xterm.c (x_update_window_end): Likewise.
2131 * macterm.c (x_update_window_end): Likewise.
2132 * w32term.c (x_update_window_end): Likewise.
2133
2134 * fringe.c (draw_window_fringes): Return value now indicates if
2135 any fringe bitmaps were redrawn (or there are no fringes).
2136
2137 * dispextern.h (draw_window_fringes): Update prototype.
2138
2139 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2140
2141 * macfns.c (mac_get_window_bounds): Add extern.
2142 (x_real_positions): Use mac_get_window_bounds.
2143
2144 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2145 xmenu.c (YAILOM).
2146
2147 * macterm.c [!MAC_OSX]: Include Windows.h.
2148 (front_emacs_window): Rename from mac_front_window. All uses
2149 changed. Return the frontmost non-tooltip emacs window.
2150 (mac_get_window_bounds): New function.
2151 (x_calc_absolute_position): Use the difference of width and height
2152 between the inner and outer window.
2153 (x_set_offset): Specify window position by the coordinae of the
2154 outer window. Adjust the position if the title bar is completely
2155 outside the screen.
2156 (app_is_suspended, app_sleep_time): Remove unused variables.
2157 (do_app_resume, do_app_suspend): Remove their contents because
2158 window-activate/deactivate events will do the job.
2159 (do_zoom_window): Remove unused variables. Make compliant to the
2160 standard way of zooming. Set f->left_pos and f->top_pos.
2161 (XTread_socket): Don't use argument `expected'. Don't use
2162 FrontWindow to determine the clicked window. Exclude unprocessed
2163 mouseUp cases in the early stage. Add parentheses to fix operator
2164 precedence.
2165 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2166
2167 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
2168
2169 * config.in: Regenerate.
2170
2171 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2172 HAVE_EXECSHIELD.
2173
2174 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2175
2176 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2177 a row if Alt or Meta has been found for that row. Also stop scanning
2178 for Keysyms for that row.
2179
2180 2004-10-04 Kim F. Storm <storm@cua.dk>
2181
2182 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2183 to list. Include overlay arrow bitmap in return value.
2184
2185 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2186 bars with fractional column width. If scroll bar separates two
2187 windows, move it towards the window it belongs to. Only update
2188 the padding area below the scroll bar widget when necessary,
2189 i.e. when scroll bar widget is created, moved, or resized.
2190
2191 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2192 while tracking/dragging mouse.
2193 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2194
2195 * window.c (coordinates_in_window): Relax check for cursor
2196 on vertial border between mode lines.
2197 (Fset_window_fringes): Do not allow negative widths.
2198 (Fset_window_scroll_bars): Likewise.
2199
2200 * .gdbinit (pp): Shorthand for p ARG + pr.
2201 (ff): New command: flush frame updates (X only).
2202
2203 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
2204
2205 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2206
2207 2004-09-30 Kenichi Handa <handa@m17n.org>
2208
2209 * process.c (send_process): Free composition data.
2210
2211 * fileio.c (Finsert_file_contents): Free composition data.
2212
2213 * coding.c (code_convert_region): Don't skip ASCIIs if there are
2214 compositions to encode.
2215 (encode_coding_string): Likewise. Free composition data.
2216
2217 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
2218
2219 * coding.c (code_convert_region): Free composition data.
2220
2221 2004-09-29 Kim F. Storm <storm@cua.dk>
2222
2223 * fringe.c: Remove limit on number of bitmaps.
2224 (fringe_bitmaps, fringe_faces): Change to pointers.
2225 (max_fringe_bitmaps): New var.
2226 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2227 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2228
2229 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2230 (struct glyph_row): Reorder fringe_bitmap related fields.
2231 (struct it): Likewise.
2232
2233 * w32term.c (fringe_bmp): Change to pointer.
2234 (max_fringe_bmp): New var.
2235 (w32_define_fringe_bitmap): Expand fringe_bmp.
2236 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2237 (w32_destroy_fringe_bitmap): Likewise.
2238
2239 2004-09-29 Kim F. Storm <storm@cua.dk>
2240
2241 * fringe.c: Simplify last change.
2242 (lookup_fringe_bitmap): New function.
2243 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2244 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2245 Keep standard bitmaps in Vfringe_bitmaps.
2246 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2247 (Fset_fringe_bitmap_face): Likewise.
2248
2249 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2250 (valid_fringe_bitmap_p): Remove prototype.
2251
2252 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2253
2254 2004-09-29 Kim F. Storm <storm@cua.dk>
2255
2256 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2257 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2258
2259 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2260
2261 * fringe.c (Vfringe_bitmaps): New variable.
2262 (syms_of_fringe): DEFVAR_LISP it.
2263 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2264 Change arg to Lisp_Object and fail if not an integer.
2265 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2266 (destroy_fringe_bitmap): New functions.
2267 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2268 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
2269 clear its fringe property.
2270 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2271 Fdestroy_fringe_bitmap.
2272 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2273 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2274 and set fringe property. Signal error if no free slots.
2275 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2276 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2277
2278 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2279 symbols with a fringe property.
2280
2281 2004-09-27 Kim F. Storm <storm@cua.dk>
2282
2283 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2284 Doc fix. Format may now be a symbol or alist, not a cons.
2285
2286 * fringe.c (update_window_fringes): Handle new formats of
2287 indicate-buffer-boundaries (symbol or alist). No longer
2288 allow a simple cons.
2289 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2290
2291 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2292
2293 * config.in: Rebuild.
2294
2295 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2296
2297 * config.in: Rebuild.
2298
2299 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
2300
2301 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2302
2303 * xterm.c (x_term_init): Work around a bug in some X servers.
2304
2305 2004-09-18 Richard M. Stallman <rms@gnu.org>
2306
2307 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2308
2309 * xdisp.c (try_window_reusing_current_matrix):
2310 Handle the case where we reach the old displayed text,
2311 out of sync with the old line boundary.
2312
2313 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
2314
2315 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2316 narrowed buffer.
2317
2318 2004-09-14 Kim F. Storm <storm@cua.dk>
2319
2320 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2321
2322 * xfaces.c (Qface_no_inherit): New var.
2323 (syms_of_xfaces): Intern and staticpro it.
2324 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2325 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2326 Don't increment face_change_count when face has non-nil
2327 face-no-inherit property.
2328
2329 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2330
2331 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2332 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2333
2334 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
2335 before doing the mark_stack_check_gcpros since they're not on the stack.
2336
2337 2004-09-12 Kim F. Storm <storm@cua.dk>
2338
2339 * editfns.c (Fformat): Handle format strings with multiple text
2340 properties. Reverse text property list from the format string,
2341 so the positions are in increasing order.
2342
2343 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2344
2345 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2346 x_uncatch_errors so that possible protocol errors are delivered.
2347
2348 2004-09-10 Eli Zaretskii <eliz@gnu.org>
2349
2350 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2351 blockinput.h.
2352 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2353 charset.h, and coding.h
2354 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
2355 (term.o): Depend on window.h and keymap.h.
2356 (abbrev.o): Depend on syntax.h.
2357 (callint.o): Depend on keymap.h.
2358 (casefiddle.o): Depend on charset.h and keymap.h.
2359 (category.o): Depend on keymap.h.
2360 (coding.o): Depend on dispextern.h.
2361 (cmds.o): Depend on keyboard.h and keymap.h.
2362 (dispnew.o): Depend on indent.h and intervals.h.
2363 (doc.o): Depend on keymap.h.
2364 (editfns.o): Depend on frame.h.
2365 (emacs.o): Depend on dispextern.h.
2366 (fileio.o): Don't depend on ccl.h.
2367 (filelock.o): Depend on charset.h and coding.h.
2368 (frame.o): Depend on w32term.h and macterm.h.
2369 (insdel.o): Depend on region-cache.h.
2370 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2371 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2372 (search.o): Depend on $(INTERVALS_SRC).
2373 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2374 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2375 xterm.h, w32term.h, and macterm.h.
2376 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2377 w32term.h, and macterm.h.
2378 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2379 region-cache.h, xterm.h, w32term.h, and macterm.h.
2380 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2381 (data.o): Depend on frame.h.
2382 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2383 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2384 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2385 (intervals.o): Depend on keymap.h.
2386
2387 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2388 Add debugging print-out to termscript.
2389
2390 2004-09-09 Richard M. Stallman <rms@gnu.org>
2391
2392 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2393
2394 2004-09-08 Richard M. Stallman <rms@gnu.org>
2395
2396 * window.c (Fset_window_buffer): Doc fix.
2397
2398 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2399
2400 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2401
2402 * minibuf.c (history_delete_duplicates): New variable.
2403 (read_minibuf): Use it.
2404 (syms_of_minibuf): Create the corresponding lisp variable.
2405
2406 2004-09-08 Kim F. Storm <storm@cua.dk>
2407
2408 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2409 overlay just before point.
2410
2411 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2412
2413 * buffer.h (struct buffer): Add auto_save_file_format field.
2414 * buffer.c (reset_buffer, init_buffer_once):
2415 Handle auto_save_file_format field.
2416 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2417 `buffer-auto-save-file-format'.
2418 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2419 (build_annotations): Adapt to replacement of
2420 `auto-save-file-format' with the new buffer-local variable
2421 `buffer-auto-save-file-format'.
2422 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2423
2424 2004-09-07 Jason Rumney <jasonr@gnu.org>
2425
2426 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2427
2428 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2429 Handle Unicode menu titles.
2430
2431 2004-09-07 Kim F. Storm <storm@cua.dk>
2432
2433 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2434 property from text property or overlay strings at point.
2435
2436 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2437
2438 * xmenu.c (update_submenu_strings): YAILOM.
2439 (set_frame_menubar): Make sure last_i is initialized.
2440
2441 2004-09-03 Jason Rumney <jasonr@gnu.org>
2442
2443 * w32menu.c (_widget_value): Add lname and lkey.
2444 (digest_single_submenu): Set lname and lkey in widget_value
2445 instead of name and key.
2446 (update_submenu_strings): New function.
2447 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2448 call update_submenu_strings.
2449
2450 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2451 (digest_single_submenu, w32_menu_show): Encode menu strings as
2452 UTF-8 if Unicode API is available.
2453 (utf8to16): New function.
2454 (add_menu_item): Use it when calling Unicode API.
2455
2456 2004-09-03 Kim F. Storm <storm@cua.dk>
2457
2458 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2459 in overlay or text-property strings; set cursor on corresponding
2460 glyph rather than at end of the string.
2461
2462 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2463
2464 * macfns.c (x_real_positions): Save the current window port and
2465 set a new one before obtaining the global coordinate.
2466 Use FRAME_MAC_WINDOW.
2467 (x_set_name, x_set_title): Encode title to UTF8.
2468 Use SetWindowTitleWithCFString.
2469 (Fx_server_version): Get correct OS version.
2470
2471 * macmenu.c (add_menu_item): Remove unused variable `i'.
2472 Don't let separator items destroy refence constants of other menu items.
2473
2474 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2475 BLOCK_INPUT.
2476 (x_set_offset): Use FRAME_MAC_WINDOW.
2477
2478 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2479 nontext_cursor if it is on a scroll bar.
2480
2481 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2482 Carbon support.
2483 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2484 Use LIBS_CARBON.
2485
2486 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2487
2488 * xfns.c (x_set_name_internal): New function. Check if we shall call
2489 xfree before ENCODE_UTF_8.
2490 (x_set_name, x_set_title): Call x_set_name_internal.
2491
2492 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2493
2494 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2495 reload it.
2496
2497 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2498
2499 * macmenu.c (_widget_value): Add lname and lkey.
2500 (single_submenu): Set lname and lkey in widget_value
2501 instead of name and key.
2502 (update_submenu_strings): New function.
2503 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2504 call update_submenu_strings.
2505
2506 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2507 instead of name and key.
2508 (update_submenu_strings): New function.
2509 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2510 call update_submenu_strings.
2511
2512 * gtkutil.h (_widget_value): Added lname and lkey.
2513
2514 2004-08-30 Steven Tamm <steventamm@mac.com>
2515
2516 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2517 by using different names for inner loop variables.
2518
2519 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2520
2521 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2522 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2523
2524 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2525 tool bar items is 0.
2526
2527 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2528
2529 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2530 strings in menu items.
2531 (single_submenu): Use ENCODE_MENU_STRING
2532 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2533 button release isn't passed to event loop
2534 (add_menu_item): Use SetMenuItemWithCFString
2535
2536 2004-08-26 Steven Tamm <steventamm@mac.com>
2537
2538 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2539 tool-bar/menu click
2540 * macfns.c (Fx_file_dialog): Implemented using NavServices
2541
2542 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2543
2544 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2545
2546 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2547 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2548 (x_top_window_to_frame): Return 0 if wdesc is None.
2549
2550 2004-08-22 Richard M. Stallman <rms@gnu.org>
2551
2552 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2553 HAVE_TERMIOS]: If there's no char for this signal, drop through
2554 and use system calls.
2555
2556 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2557
2558 2004-08-20 Kim F. Storm <storm@cua.dk>
2559
2560 * process.c (wait_reading_process_output): Rename from
2561 wait_reading_process_input. All uses changed.
2562 (wait_reading_process_output_1): Rename from
2563 wait_reading_process_input_1. All uses changed.
2564
2565 * dispnew.c (Fsleep_for): Remove obsolete code.
2566
2567 2004-08-20 Kenichi Handa <handa@m17n.org>
2568
2569 * syntax.c (skip_chars): Fix for unibyte case.
2570
2571 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2572
2573 * syntax.c (char_quoted): Mixup byte/char pos.
2574 (back_comment): Fixup globals in all cases.
2575
2576 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2577
2578 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2579 passing it to gtk_window_set_title.
2580
2581 2004-08-19 Kim F. Storm <storm@cua.dk>
2582
2583 * process.c (wait_reading_process_input): Clean up.
2584 Add wait_for_cell, wait_proc, and just_wait_proc args
2585 to avoid overloading `read_kbd' and `do_display' args.
2586 Change read_kbd arg to int. All callers changed.
2587
2588 * process.c (process_send_signal): Use CDISABLE.
2589
2590 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2591
2592 2004-08-18 Kim F. Storm <storm@cua.dk>
2593
2594 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2595 forward to wait_reading_process_input via DO_DISPLAY arg.
2596 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2597 object, only process output from that process; also inhibit
2598 running timers if DO_DISPLAY==-2.
2599
2600 2004-08-17 Kim F. Storm <storm@cua.dk>
2601
2602 * process.c (process_send_signal): Fix last change--use
2603 _POSIX_VDISABLE instead of CVDISABLE when available.
2604
2605 2004-08-16 Richard M. Stallman <rms@gnu.org>
2606
2607 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2608 Set VQUIT and VINTR chars to the standard ones if they are unset.
2609 [AIX]: Don't do that here. And don't force VINTR to standard
2610 when SIGNALS_VIA_CHARACTERS.
2611
2612 * process.c (process_send_signal)
2613 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2614 Do nothing if the character is CVDISABLE.
2615
2616 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2617
2618 * intervals.c (move_if_not_intangible):
2619 Force POSITION to be between BEGV and ZV.
2620
2621 2004-08-14 John Paul Wallington <jpw@gnu.org>
2622
2623 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2624
2625 * fileio.c (Fread_file_name): Doc fix.
2626
2627 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2628
2629 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2630
2631 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2632
2633 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2634
2635 * keyboard.c: Declare Qdisabled_command_function instead of
2636 Qdisabled_command_hook.
2637 (Fcommand_execute): Use Qdisabled_command_function instead of
2638 Qdisabled_command_hook.
2639 (syms_of_keyboard): Ditto.
2640
2641 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2642
2643 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2644 (syms_of_keymap) <key-translation-map>: Doc fixes.
2645
2646 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2647
2648 * window.c (window_list_1): YAILOM.
2649
2650 * fileio.c (make_temp_name): Handle multibyte prefixes.
2651
2652 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2653
2654 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2655 Doc fix.
2656
2657 2004-08-03 Kenichi Handa <handa@m17n.org>
2658
2659 * coding.c (decode_coding_string): Adjust coding->consumed, and
2660 etc. with shrinked_bytes.
2661
2662 2004-08-03 Kim F. Storm <storm@cua.dk>
2663
2664 * indent.c (compute_motion): Fix check for full width window
2665 in non-window case. Do not count left truncation glyph on
2666 window systems.
2667
2668 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2669
2670 * data.c (Finteractive_form): Doc fix.
2671
2672 2004-08-02 Kim F. Storm <storm@cua.dk>
2673
2674 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2675 properly accounting for continuation glyph on non-window systems.
2676 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2677 actual window width/height if TOPOS is nil, properly accounting for
2678 continuation glyphs on non-window systems, and optional header lines.
2679 (vmotion): Let compute_motion calculate actual window width.
2680
2681 * window.c (window_scroll_line_based): Let compute_motion
2682 calculate actual window width.
2683
2684 2004-08-02 Kim F. Storm <storm@cua.dk>
2685
2686 * process.c (read_process_output): Use whole read buffer.
2687 Don't trigger adaptive read buffering on errors.
2688
2689 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2690
2691 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2692
2693 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2694
2695 * callint.c (Fcall_interactively): Doc fix.
2696
2697 2004-07-30 Richard M. Stallman <rms@gnu.org>
2698
2699 * abbrev.c (Fexpand_abbrev): Undo previous change.
2700
2701 2004-07-30 Kim F. Storm <storm@cua.dk>
2702
2703 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2704
2705 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2706
2707 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2708
2709 2004-07-27 Kim F. Storm <storm@cua.dk>
2710
2711 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2712 we have ensured that the glyph fits on the current line (or returned
2713 MOVE_LINE_CONTINUED otherwise).
2714
2715 2004-07-26 Kim F. Storm <storm@cua.dk>
2716
2717 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2718 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2719 if target position is at end of display line but char is not a newline.
2720
2721 2004-07-25 Richard M. Stallman <rms@gnu.org>
2722
2723 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2724 instead of ON_VERTICAL_BORDER, when on scroll bar.
2725 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2726
2727 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2728
2729 * window.c (Fcoordinates_in_window_p):
2730 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2731
2732 * alloc.c (check_cons_list): New function (contents commented out).
2733
2734 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2735
2736 * xfaces.c (Fcolor_supported_p): Doc fix.
2737
2738 * frame.c (Fselect_frame, Fset_frame_selected_window)
2739 (Fframe_visible_p, Fraise_frame): Doc fixes.
2740
2741 2004-07-24 Richard M. Stallman <rms@gnu.org>
2742
2743 * keyboard.h (not_single_kboard_state): Declare.
2744
2745 * fileio.c (Fwrite_region): Doc fix.
2746
2747 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2748
2749 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2750 only when a real abbrev is present.
2751
2752 * xfns.c (x_icon_verify): New function.
2753 (Fx_create_frame): Use it.
2754
2755 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2756
2757 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2758
2759 2004-07-21 Kim F. Storm <storm@cua.dk>
2760
2761 * window.h (struct glyph_matrix): New members nrows_scale_factor
2762 and ncols_scale_factor.
2763
2764 * window.c (make_window): Initialize nrows_scale_factor and
2765 ncols_scale_factor members.
2766
2767 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2768 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2769 (required_matrix_height): Apply nrows_scale_factor.
2770 (required_matrix_width): Apply ncols_scale_factor.
2771
2772 * xdisp.c (display_line): Increment nrows_scale_factor and set
2773 fonts_changed_p if past last allocated row.
2774 (append_glyph, append_composite_glyph, produce_image_glyph)
2775 (append_stretch_glyph): Increment ncols_scale_factor and set
2776 fonts_changed_p if current area is full.
2777
2778 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2779
2780 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2781
2782 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2783
2784 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2785 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2786 (Fset_window_start, Fscroll_up, Fscroll_down)
2787 (Fother_window_for_scrolling, Fscroll_other_window)
2788 (Fsave_window_excursion, Fset_window_vscroll)
2789 (syms_of_window) <window-size-fixed>: Doc fixes.
2790
2791 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2792
2793 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2794 ENCODE_SYSTEM for filenames.
2795
2796 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2797
2798 * mac.c (sys_select): Block input around call to
2799 ReceiveNextEvent to prevent breakage. Correctly handle
2800 blocking on event queue only by calling ReceiveNextEvent
2801 instead of select (since GUI events aren't on an fd).
2802 (sys_read): Remove function
2803 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2804
2805 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2806
2807 * mac.c (sys_select): Redo sys_select to use alarm-based
2808 polling instead of 1 sec timeouts (like solaris).
2809
2810 * macterm.c (x_make_frame_visible): Comment in polling on
2811 frame creation.
2812
2813 * keyboard.c: Undef SIGIO on Carbon
2814
2815 * atimer.c (alarm_signal_handler): Call alarm handlers after
2816 scheduling.
2817
2818 * eval.c (Feval): Remove quit_char test
2819
2820 * process.c (wait_reading_process_input): Remove clearing
2821 stdin for select call on process input.
2822
2823 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2824
2825 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2826 capitalization error in docstring.
2827
2828 2004-07-17 Juanma Barranquero <lektu@terra.es>
2829
2830 * keyboard.c (not_single_kboard_state): Do nothing unless
2831 MULTI_KBOARD is defined.
2832
2833 2004-07-17 Richard M. Stallman <rms@gnu.org>
2834
2835 * window.c (coordinates_in_window): Inside the window but outside
2836 its box to the L or R, return ON_VERTICAL_BORDER.
2837 (window_list_1): Rotate the list to start with WINDOW.
2838
2839 * print.c (print_preprocess): Test for print_depth at limit
2840 before entering in being_printed.
2841
2842 * keyboard.c (not_single_kboard_state): New function.
2843 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2844
2845 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2846 this kboard, and we delete its last frame, go to any_kboard_state.
2847
2848 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2849
2850 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2851
2852 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2853 system before passing them to OS functions for display.
2854
2855 2004-07-15 David Kastrup <dak@gnu.org>
2856
2857 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2858 Apparently fixes an abort condition.
2859
2860 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2861
2862 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2863 instead of a cons.
2864
2865 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2866
2867 * keyboard.c (echo_dash): Do nothing if there already is a dash
2868 at the end of the echo string.
2869
2870 2004-07-12 Kim F. Storm <storm@cua.dk>
2871
2872 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2873 if GC_MARK_STACK.
2874
2875 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2876
2877 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2878
2879 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2880 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2881 (Freplace_buffer_in_windows, Fset_window_buffer)
2882 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2883 (syms_of_window): Expand docstring of `display-buffer-function'.
2884
2885 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2886
2887 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2888 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2889 that time values of the type (HIGH . LOW) are considered obsolete.
2890
2891 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2892
2893 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2894 docstring.
2895
2896 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
2897
2898 2004-07-06 John Paul Wallington <jpw@gnu.org>
2899
2900 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2901
2902 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2903
2904 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2905
2906 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2907 instead of CGMainDisplayID (only in OSX 10.2 and later).
2908
2909 2004-07-04 John Paul Wallington <jpw@gnu.org>
2910
2911 * fileio.c (read_file_name_completion_ignore_case): New variable.
2912 (syms_of_fileio): Declare and initialise it.
2913 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2914
2915 2004-07-03 Eli Zaretskii <eliz@gnu.org>
2916
2917 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2918 for event.x and event.y.
2919
2920 2004-07-01 Kenichi Handa <handa@m17n.org>
2921
2922 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2923 after getting a new string by pre-write-conversion.
2924
2925 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2928 (x_calc_absolute_position): Remove unused var `child'.
2929
2930 * xfaces.c (x_supports_face_attributes_p)
2931 (Fdisplay_supports_face_attributes_p): YAILOM.
2932 (tty_supports_face_attributes_p): Remove unused var `i'.
2933
2934 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2935 back_unibyte_ok.
2936
2937 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2938
2939 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2940
2941 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2942
2943 2004-06-30 Andreas Schwab <schwab@suse.de>
2944
2945 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2946 (Finit_image_library): Pass LIBRARIES through to
2947 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2948 (lookup_image_type): Pass Qnil as second argument to
2949 Finit_image_library.
2950
2951 * lisp.h (Finit_image_library): Declare.
2952
2953 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2954
2955 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2956 (XTread_socket): Send mouse button events to the toolbox
2957 dispatcher even when the mouse is grabbed. Don't process window
2958 activate events for non-Emacs windows. Replace function calls to
2959 do_window_activate and do_window_deactivate with their contents.
2960 Reset mouse grabbing status when a window is deactivated.
2961
2962 2004-06-29 Steven Tamm <steventamm@mac.com>
2963
2964 * macterm.c (mac_get_emulated_btn)
2965 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2966 support to correctly mask out modifiers.
2967
2968 2004-06-29 David Kastrup <dak@gnu.org>
2969
2970 * search.c (Fset_match_data): Allow buffer before end of list
2971 which can happen if set-match-data is using a pre-consed list.
2972
2973 2004-06-28 Steven Tamm <steventamm@mac.com>
2974
2975 * macterm.c (XTread_socket): Correctly set the frame position
2976 after the window is moved.
2977
2978 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2979
2980 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2981 gpix and gmask just before return to avoid memory leak.
2982 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2983 so insensitive and activated icons look ok.
2984
2985 2004-06-27 Jason Rumney <jasonr@gnu.org>
2986
2987 * w32fns.c (file_dialog_callback): Disable edit control if set
2988 to directories only on CDN_INITDONE message.
2989 (Fx_file_dialog): Default to directories only when prompt starts
2990 with "Dired".
2991
2992 2004-06-25 Kim F. Storm <storm@cua.dk>
2993
2994 * alloc.c (allocate_misc): Update total_free_markers.
2995 (free_misc): New function.
2996 (safe_alloca_unwind, free_marker): Use it.
2997
2998 * lisp.h (free_misc): Add prototype.
2999
3000 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3001
3002 2004-06-24 Richard M. Stallman <rms@gnu.org>
3003
3004 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3005 (syms_of_emacs): Lisp variables deleted.
3006
3007 2004-06-23 David Kastrup <dak@gnu.org>
3008
3009 * search.c (Freplace_match): Adjust the match-data more thoroughly
3010 when replacing strings in the buffer.
3011 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3012 a buffer, add the buffer as last element to the match data.
3013 (Fset_match_data): If an additional element of the match-data is a
3014 buffer, restore it to last_thing_searched.
3015 (save_search_regs): Save last_thing_searched as part of the match data.
3016 (restore_match_data): Restore it again.
3017
3018 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3019
3020 * keymap.c (Ftext_char_description): Doc fix.
3021 * doc.c (Fsnarf_documentation): Doc fix.
3022
3023 2004-06-22 Kim F. Storm <storm@cua.dk>
3024
3025 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3026
3027 * lisp.h (struct Lisp_Save_Value): New member dogc.
3028 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3029 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3030 (SAFE_FREE_LISP): New macro.
3031
3032 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3033 (make_save_value): Init new dogc member.
3034 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3035
3036 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3037 SAFE_FREE_LISP macros.
3038
3039 2004-06-22 Kim F. Storm <storm@cua.dk>
3040
3041 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3042 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3043 in that memory area are unknown to GC. Add comments.
3044
3045 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3046
3047 2004-06-21 Kim F. Storm <storm@cua.dk>
3048
3049 * lisp.h (MAX_ALLOCA): Define here.
3050 (safe_alloca_unwind): Add prototype.
3051 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3052
3053 * alloc.c (safe_alloca_unwind): New function.
3054
3055 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3056
3057 * charset.c (Fstring): Use SAFE_ALLOCA.
3058
3059 * coding.c (MAX_ALLOCA): Remove define.
3060
3061 * data.c (MAX_ALLOCA): Remove define.
3062 (Faset): Use SAFE_ALLOCA.
3063
3064 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3065
3066 * fns.c (string_make_multibyte, string_to_multibyte)
3067 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3068 (MAX_ALLOCA): Remove define.
3069 (Fbase64_encode_region, Fbase64_encode_string)
3070 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3071 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3072 memory leak if encoding fails.
3073
3074 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3075
3076 2004-06-21 Eli Zaretskii <eliz@gnu.org>
3077
3078 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3079
3080 2004-06-20 Richard M. Stallman <rms@gnu.org>
3081
3082 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3083
3084 * search.c (match_limit): Cleaner err msg when no match data available.
3085
3086 * window.c (syms_of_window): Doc fix.
3087
3088 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3089 for Vtransient_mark_mode.
3090
3091 * buffer.c (syms_of_buffer): Doc fix.
3092
3093 2004-06-21 David Kastrup <dak@gnu.org>
3094
3095 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3096 and unbinding of `case-fold-search' according to
3097 `completion-ignore-case' around calls of string-match and
3098 predicates, respectively. Should give satisfactory performance
3099 in all relevant cases.
3100
3101 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3102
3103 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3104 clip_x/y_origin.
3105
3106 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3107
3108 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3109
3110 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3111 on Mac OSX.
3112
3113 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3114
3115 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3116
3117 2004-06-16 Kim F. Storm <storm@cua.dk>
3118
3119 * dispextern.h (Vimage_types): Remove extern.
3120
3121 2004-06-16 Miles Bader <miles@gnu.org>
3122
3123 * image.c (lookup_image_type): Initialize image type if necessary.
3124
3125 2004-06-15 Kim F. Storm <storm@cua.dk>
3126
3127 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3128 margin at top of window.
3129 (try_window_reusing_current_matrix): Calculate proper cursor position
3130 after scrolling up with non-zero scroll margin, as the old cursor
3131 position corresponds to value of PT before executing this command.
3132 (try_window_id): Consider scroll margin at bottom of window too;
3133 otherwise we fail to scroll when hl-line-mode is enabled.
3134
3135 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3136 proper format and class is a lower-case word.
3137
3138 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3139
3140 * gtkutil.c (xg_get_image_for_pixmap): New function.
3141 (xg_get_gdk_pixmap_and_mask): Remove.
3142 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3143 xg_get_gdk_pixmap_and_mask.
3144
3145 * xterm.h (struct x_display_info): Typo in comment fixed.
3146
3147 2004-06-14 Juanma Barranquero <lektu@terra.es>
3148
3149 * dispextern.h (Vimage_types): Make it conditional on
3150 HAVE_WINDOW_SYSTEM.
3151
3152 * image.c (Vimage_types): Move from xdisp.c.
3153 (Vimage_type_cache): New variable.
3154 (define_image_type): New argument indicating whether an image
3155 library was loaded; cache loaded status and return t on success,
3156 nil otherwise.
3157 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3158 (w32_delayed_load): New function to load an image library from a
3159 list of possible filenames.
3160 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3161 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
3162 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
3163 (Finit_image_library): New function, extracted from `init_image'.
3164 Try to initialize an image library on demand and cache whether we
3165 were successful or not.
3166 (syms_of_image): Initialize `Vimage_types' and
3167 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3168 Export `init-image-library'.
3169 (init_image): Remove initialization of all image types, except xbm
3170 and pbm.
3171
3172 * xdisp.c (Vimage_types): Delete (moved to image.c).
3173
3174 2004-06-14 Andreas Schwab <schwab@suse.de>
3175
3176 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3177 Avoid calling specbind when completion-regexp-list is empty.
3178
3179 2004-06-13 Richard M. Stallman <rms@gnu.org>
3180
3181 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3182 (re_wctype, re_iswctype, re_wctype_to_bit):
3183 Non-function definitions moved here from regex.c.
3184
3185 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3186 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3187 (re_wctype, re_iswctype, re_wctype_to_bit):
3188 Non-function definitions moved to regex.h.
3189
3190 * window.c (Fselect_window): Doc fix.
3191
3192 * syntax.c: Include regex.h.
3193 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3194 If requested, make a list of classes, then check the scanned
3195 chars for membership in them.
3196 (in_classes): New function.
3197 Doc fix.
3198
3199 * keyboard.c (cmd_error): Don't call any_kboard_state
3200 if inside a recursive edit level.
3201
3202 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3203
3204 * keyboard.c (command_loop): Call any_kboard_state before
3205 command_loop_2 when at top level.
3206
3207 2004-06-13 Andreas Schwab <schwab@suse.de>
3208
3209 * print.c (print_object): Always use %ld for printing EMACS_INT.
3210
3211 * keyboard.c (cancel_hourglass_unwind): Return a value.
3212 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3213 (Fexecute_extended_command): Likewise.
3214
3215 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3216 avoid clashes.
3217 (SYNTAX): Likewise.
3218 (SYNTAX_WITH_FLAGS): Likewise.
3219 (SYNTAX_MATCH): Likewise.
3220
3221 * syntax.c (char_quoted): Avoid warning about undefined operation.
3222 (find_defun_start): Likewise.
3223 (scan_lists): Likewise.
3224 (INC_FROM): Likewise.
3225 (scan_sexps_forward): Likewise.
3226
3227 * image.c: Include <ctype.h>.
3228
3229 * xfaces.c (face_attr_equal_p): Declare parameters.
3230
3231 2004-06-13 Kenichi Handa <handa@m17n.org>
3232
3233 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3234
3235 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3236
3237 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3238
3239 2004-06-12 Kenichi Handa <handa@m17n.org>
3240
3241 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3242 ccl_prog_stack_struct and update it.
3243 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3244 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3245 ccl->eof_ic on EOF.
3246 (ccl_debug_hook): New function.
3247 (struct ccl_prog_stack): New member eof_ic.
3248 (ccl_driver): Handle EOF in subrountine call correctly.
3249
3250 2004-06-11 Kenichi Handa <handa@m17n.org>
3251
3252 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3253
3254 2004-06-11 Kim F. Storm <storm@cua.dk>
3255
3256 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3257
3258 2004-06-11 Juanma Barranquero <lektu@terra.es>
3259
3260 * keyboard.c (Fposn_at_point): Doc fix.
3261
3262 2004-06-11 David Kastrup <dak@gnu.org>
3263
3264 * search.c (match_limit): Don't flag an error if match-data
3265 exceeding the allocated search_regs.num_regs gets requested, just
3266 return Qnil.
3267
3268 2004-06-08 Miles Bader <miles@gnu.org>
3269
3270 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3271
3272 2004-06-07 Juanma Barranquero <lektu@terra.es>
3273
3274 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3275 (Fcurrent_time_string, Fcurrent_time_zone)
3276 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3277
3278 2004-06-07 Miles Bader <miles@gnu.org>
3279
3280 * xfaces.c (struct named_merge_point): New type.
3281 (push_named_merge_point): New function.
3282 (merge_named_face): New function.
3283 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3284 Use `merge_named_face'.
3285 (merge_face_inheritance): Function removed.
3286 (merge_face_ref): Rename from `merge_face_vector_with_property'.
3287 Add new `err_msgs' and `named_merge_points' args. Return error
3288 status. Only print error messages if ERR_MSGS is true. Don't try to
3289 do :inherit attribute validation.
3290 (merge_face_heights): Handle `unspecified' in both directions.
3291 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3292 Call `merge_face_ref' instead of `merge_face_inheritance'.
3293 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3294 (compute_char_face, face_at_buffer_position)
3295 (face_at_string_position): Call `merge_face_ref' instead of
3296 `merge_face_vector_with_property'.
3297
3298 2004-06-07 Kenichi Handa <handa@m17n.org>
3299
3300 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3301 the necessary places.
3302
3303 2004-06-07 Kim F. Storm <storm@cua.dk>
3304
3305 * process.c (Fdelete_process): Undo 2004-05-28 change.
3306 Instead, call status_notify also for network process.
3307 (status_message): Use process instead of status as arg.
3308 Give messages "deleted" or "connection broken by remote peer" for
3309 an exited network process.
3310 (status_notify): Change call to status_message.
3311 (read_process_output): Increase readmax to 4096. Do not increase
3312 buffer size for datagram channels (default is now large enough).
3313
3314 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3315
3316 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3317 problem due to newly defined variable.
3318
3319 2004-06-06 Miles Bader <miles@gnu.org>
3320
3321 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3322 immediately if non-interactive or not initialized.
3323
3324 2004-06-05 Richard M. Stallman <rms@gnu.org>
3325
3326 * minibuf.c (Fcompleting_read): Doc fix.
3327
3328 2004-06-05 Andreas Schwab <schwab@suse.de>
3329
3330 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3331
3332 2004-06-05 Juanma Barranquero <lektu@terra.es>
3333
3334 * keymap.c (Fdescribe_vector): Fix docstring.
3335 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3336
3337 2004-06-05 Miles Bader <miles@gnu.org>
3338
3339 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3340 attributes have different values than the default face.
3341
3342 2004-06-04 Eli Zaretskii <eliz@gnu.org>
3343
3344 * xfaces.c (x_supports_face_attributes_p): Make this function
3345 conditional on HAVE_WINDOW_SYSTEM.
3346 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3347 Don't call x_supports_face_attributes_p if it was not compiled in.
3348
3349 2004-06-04 Miles Bader <miles@gnu.org>
3350
3351 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3352 from Ftty_supports_face_attributes_p.
3353 (x_supports_face_attributes_p): New function.
3354 (Ftty_supports_face_attributes_p): Function deleted.
3355 (Fdisplay_supports_face_attributes_p): New function.
3356 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
3357 (face_attr_equal_p): New function.
3358 (lface_equal_p): Use it.
3359
3360 2004-06-03 Juanma Barranquero <lektu@terra.es>
3361
3362 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3363 (Vw32_color_map): Fix typo in docstring.
3364 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3365 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3366 Make argument names match their use in docstring.
3367
3368 2004-06-02 Juanma Barranquero <lektu@terra.es>
3369
3370 Work around bugs/problems with MinGW builds of graphics libraries
3371 called from MSVC builds of Emacs.
3372
3373 * image.c (lookup_image): Make pointer to img static.
3374 (png_read_from_memory): Disable "global" optimization.
3375
3376 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3377
3378 * eval.c (Fcondition_case): Fix usage. Simplify.
3379
3380 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3381
3382 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3383
3384 * macfns.c: Don't include ccl.h.
3385 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
3386 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3387 TextUtils.h.
3388 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
3389 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3390 display height/width.
3391 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3392 (unwind_create_tip_frame, compute_tip_xy): New functions.
3393 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3394 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3395 and last_show_tip_args.
3396
3397 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3398 (Cursor, No_Cursor): New defines.
3399 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
3400 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3401
3402 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3403
3404 * macterm.c: Don't include Gestalt.h.
3405 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3406 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3407 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3408 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3409 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3410 (construct_mouse_click, XTmouse_position)
3411 (x_scroll_bar_report_motion, x_calc_absolute_position)
3412 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3413 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3414 (note_mouse_movement): Clear the mouse face and reset the pointer
3415 shape when the pointer goes outside the frame without grabbing.
3416 (mac_front_window): New function.
3417 (mac_window_to_frame): New macro.
3418 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3419 (do_window_activate, do_window_deactivate, do_app_resume)
3420 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3421 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3422 (mac_check_for_quit_char): Use mac_front_window and/or
3423 mac_window_to_frame.
3424 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3425 scroll-bar click event.
3426 (mac_define_frame_cursor): Change the pointer shape.
3427 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
3428 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
3429 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
3430 (do_window_update): Don't do anything if the updated window is the
3431 tooltip window.
3432 (do_mouse_moved): Handle mouse movement events here (previously in
3433 XTread_socket). Clear the mouse face if
3434 dpyinfo->mouse_face_hidden is set.
3435 (do_os_event, do_events): Remove (now in XTread_socket).
3436 (XTread_socket): Immediately return if interrupt_input_blocked.
3437 Loop until all the events in the queue are processed.
3438 Rearrange codes for mouse grabbing. Add tooltip support. Include the
3439 contents of do_os_event and do_events. Remove mouse movement
3440 handling (now in do_mouse_moved). Add the case where
3441 Vmouse_highlight has an integer value.
3442 (NewMacWindow): Remove.
3443 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3444 excess initializations.
3445 (make_mac_terminal_frame): Previous initializations in
3446 make_mac_frame are moved here.
3447 (mac_initialize_display_info):
3448 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
3449
3450 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3451 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3452
3453 2004-05-29 Richard M. Stallman <rms@gnu.org>
3454
3455 * lisp.h (truncate_undo_list): Update decl.
3456
3457 * alloc.c (undo_outer_limit): New variable.
3458 (syms_of_alloc): Defvar it.
3459 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3460
3461 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3462
3463 * alloc.c (lisp_align_malloc): Check for base == 0
3464 regardless of HAVE_POSIX_MEMALIGN.
3465 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3466
3467 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3468
3469 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3470 (marker_blocks_pending_free): Remove.
3471 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3472 Mark the undo lists after claning them up.
3473 Don't free block in marker_blocks_pending_free.
3474 (mark_buffer): Don't mark undo_list.
3475 (gc_sweep): Sweep hash-tables and strings first.
3476 Do free marker blocks that are empty.
3477
3478 2004-05-28 Jim Blandy <jimb@redhat.com>
3479
3480 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3481 after 'case wordend'. For symbeg and symend, print to stderr,
3482 like the other cases.
3483
3484 2004-05-28 Noah Friedman <friedman@splode.com>
3485
3486 * process.c (Fdelete_process): Do not call remove_process.
3487
3488 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3489
3490 * alloc.c (struct backtrace): Remove.
3491 (Fgarbage_collect): Use the new mark_backtrace.
3492
3493 * eval.c (mark_backtrace): New function.
3494
3495 * minibuf.c (run_exit_minibuf_hook): New function.
3496 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3497 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3498
3499 2004-05-27 Kim F. Storm <storm@cua.dk>
3500
3501 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3502 over display properties, e.g. images, that replace buffer text.
3503
3504 2004-05-25 Kim F. Storm <storm@cua.dk>
3505
3506 * alloc.c (marker_blocks_pending_free): New var.
3507 (gc_sweep): Store free marker blocks on that list.
3508 (Fgarbage_collect): Free them after undo-list cleanup.
3509
3510 * process.c (wait_reading_process_input): Check connect_wait_mask
3511 before actually accepting connection in case it has already been
3512 accepted due to recursion.
3513
3514 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3515
3516 * coding.c (Fset_safe_terminal_coding_system_internal):
3517 Set suppress_error in safe_terminal_coding, not terminal_coding.
3518
3519 2004-05-22 Richard M. Stallman <rms@gnu.org>
3520
3521 * alloc.c (Fmake_string): Doc fix.
3522
3523 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3524 and the alist pairs too.
3525
3526 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3527
3528 * emacs.c (main): Update copyright year.
3529
3530 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3531
3532 * insdel.c (del_range_2, replace_range): Don't write an anchor
3533 if the gap is empty.
3534
3535 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3536 scroll-down-aggressively is small but positive, put point
3537 near the screen edge.
3538
3539 2004-05-22 Juanma Barranquero <lektu@terra.es>
3540
3541 * keymap.c (Fdefine_key): Doc fix.
3542
3543 2004-05-22 Kim F. Storm <storm@cua.dk>
3544
3545 * alloc.c (struct backtrace): Add debug_on_exit member.
3546 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3547 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3548 the removed cons cells.
3549 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3550 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3551 any cons cells pointing to unallocated stings.
3552 Do not lisp_free any marker blocks, as there may still be pointers
3553 to them from buffer undo lists at this stage of GC.
3554
3555 * keyboard.c (struct backtrace): Add debug_on_exit member.
3556 (Fcommand_execute): Clear it.
3557
3558 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3559
3560 * intervals.c (lookup_char_property): Do not prematurely return nil.
3561
3562 2004-05-19 Jim Blandy <jimb@redhat.com>
3563
3564 Add support for new '\_<' and '\_>' regexp operators, matching the
3565 beginning and end of symbols.
3566
3567 * regex.c (enum syntaxcode): Add Ssymbol.
3568 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3569 (re_opcode_t): New opcodes `symbeg' and `symend'.
3570 (print_partial_compiled_pattern): Print the new opcodes properly.
3571 (regex_compile): Parse the new operators.
3572 (analyse_first): Skip sym(beg|end) (they match only the empty string).
3573 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3574 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3575 (re_match_2_internal): Match symbeg and symend.
3576
3577 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3578
3579 2004-05-19 Kim F. Storm <storm@cua.dk>
3580
3581 * .gdbinit (xsymbol): Fix last change.
3582
3583 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3584
3585 * .gdbinit (xprintstr): New fun.
3586 (xstring, xprintsym): Use it.
3587
3588 * w32proc.c (create_child): Use INTMASK.
3589
3590 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3591 unmarked elements of the undo list.
3592
3593 2004-05-18 David Ponce <david@dponce.com>
3594
3595 * print.c (print): Reset print_depth before to call print_object.
3596
3597 2004-05-18 Jason Rumney <jasonr@gnu.org>
3598
3599 * w32console.c: Prefix RIF functions with w32con_ to avoid
3600 namespace clash with functions in term.c and w32term.c.
3601
3602 * w32menu.c (add_menu_item, w32_menu_display_help)
3603 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3604
3605 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
3606
3607 2004-05-18 Eli Zaretskii <eliz@gnu.org>
3608
3609 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3610
3611 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3612 with make_number.
3613 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3614 with XINT.
3615
3616 2004-05-18 Kim F. Storm <storm@cua.dk>
3617
3618 * blockinput.h (INPUT_BLOCKED_P): New macros.
3619
3620 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3621 (Ftop_level): Unblock input if blocked.
3622
3623 * buffer.h (GET_OVERLAYS_AT): New macro.
3624 * msdos.c (IT_note_mouse_highlight): Use it.
3625 * textprop.c (get_char_property_and_overlay): Use it.
3626 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3627 * xfaces.c (face_at_buffer_position): Use it.
3628
3629 * print.c (print_object): Increase buf size.
3630
3631 2004-05-17 Jason Rumney <jasonr@gnu.org>
3632
3633 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3634 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3635 Lisp_Object using i member.
3636 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3637 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3638 consistently.
3639
3640 * w32proc.c (create_child): Use make_number instead of masking pid.
3641
3642 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3643 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3644 Use EQ to compare Lisp_Objects.
3645 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3646
3647 * w32term.c (w32_num_mouse_buttons): Rename from
3648 Vw32_num_mouse_buttons and make it an int.
3649
3650 * w32.c (init_environment): Use it.
3651
3652 * w32fns.c (w32_wnd_proc): Likewise.
3653
3654 * w32proc.c (w32_pipe_read_delay): Rename from
3655 Vw32_pipe_read_delay and make it an int.
3656
3657 * w32.c (_sys_read_ahead): Use it.
3658
3659 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3660
3661 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3662
3663 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3664 (key_event): Don't mix Lisp_Object and int.
3665
3666 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3667
3668 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3669 modifiers in language change event.
3670
3671 2004-05-17 Kim F. Storm <storm@cua.dk>
3672
3673 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3674 Such objects may be freed markers which still exist on an undo list.
3675
3676 2004-05-16 Juanma Barranquero <lektu@terra.es>
3677
3678 * data.c (Fset_default): Make argument names match their use in
3679 docstring.
3680
3681 2004-05-15 Andreas Schwab <schwab@suse.de>
3682
3683 * emacs.c (gdb_array_mark_flag): Define.
3684 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3685
3686 2004-05-15 Eli Zaretskii <eliz@gnu.org>
3687
3688 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3689 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3690 defined for the MS-DOS build.
3691
3692 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3693
3694 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3695
3696 2004-05-14 Kenichi Handa <handa@m17n.org>
3697
3698 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3699
3700 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3701
3702 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3703 section to frame.c section.
3704 (Fxw_display_color_p, Fx_file_dialog): Declare if
3705 HAVE_WINDOW_SYSTEM defined.
3706
3707 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
3708
3709 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
3710
3711 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3712 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3713 (XTread_socket): Fix int/Lisp_Object mixup.
3714 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
3715
3716 * macterm.h (struct frame, struct face, struct image)
3717 (display_x_get_resource, Fx_display_color_p)
3718 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3719 Add prototypes.
3720
3721 2004-05-14 Kim F. Storm <storm@cua.dk>
3722
3723 * process.c (wait_reading_process_input): Make reentrant.
3724 Make Available and Connecting non-static. Save and restore value
3725 of waiting_for_user_input_p.
3726
3727 2004-05-13 Kim F. Storm <storm@cua.dk>
3728
3729 * keyboard.c (mark_kboards): Don't mark x and y members
3730 that are overloaded in selection request events.
3731
3732 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3733
3734 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3735
3736 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3737
3738 * window.c (Fdisplay_buffer, Fsplit_window)
3739 (split-height-threshold): Doc fix.
3740
3741 2004-05-13 Juanma Barranquero <lektu@terra.es>
3742
3743 * xfaces.c (Ftty_supports_face_attributes_p)
3744 (Finternal_copy_lisp_face): Fix typo in docstring.
3745 (Finternal_get_lisp_face_attribute): Fix docstring.
3746
3747 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3748
3749 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3750
3751 2004-05-11 Steven Tamm <steventamm@mac.com>
3752
3753 * macfns.c (Fx_create_frame): Default to using tool-bar by
3754 setting tool-bar-lines to 1 in default-frame-alist.
3755
3756 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3757
3758 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3759 (xpm_get_color_table_v, xpm_make_color_table_h)
3760 (xpm_put_color_table_h, xpm_get_color_table_h)
3761 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3762 (syms_of_image): Support XPM on Carbon Emacs. Does not
3763 depend on libXpm, but only supports XPM version 3 without extensions.
3764
3765 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3766
3767 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
3768 instead of FRAME_X_P
3769
3770 2004-05-11 Kim F. Storm <storm@cua.dk>
3771
3772 * process.c (read_process_output): Grow decoding_buf when needed;
3773 this could cause a crash in allocate_string and compact_small_strings.
3774
3775 2004-04-29 Jim Blandy <jimb@redhat.com>
3776
3777 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3778 against proper opcode.
3779
3780 2004-05-10 Juanma Barranquero <lektu@terra.es>
3781
3782 * process.c (Fstart_process): Fix docstring.
3783
3784 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3785 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3786 (Fsplit_char, Fchar_charset): Make argument names match their use
3787 in docstring.
3788
3789 2004-05-10 Richard M. Stallman <rms@gnu.org>
3790
3791 * print.c (print_preprocess): Use being_printed, loop_count and
3792 halftail to detect overdeep nesting and cyclic cdr chains.
3793
3794 2004-05-10 Andreas Schwab <schwab@suse.de>
3795
3796 * lisp.h (Fmake_symbolic_link): Declare.
3797
3798 * fileio.c (Frename_file): Remove extra argument in call to
3799 Fmake_symbolic_link.
3800
3801 2004-05-10 Kim F. Storm <storm@cua.dk>
3802
3803 * xdisp.c (calc_line_height_property): Use string position when
3804 object is a string.
3805
3806 2004-05-10 Kenichi Handa <handa@m17n.org>
3807
3808 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3809 inhibit-modification-hooks to t temporarily before calling
3810 Ferase_buffer.
3811
3812 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3813 inhibit-modification-hooks to t temporarily before calling
3814 Ferase_buffer.
3815
3816 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3817 inhibit-modification-hooks to t temporarily before calling
3818 Ferase_buffer.
3819
3820 * fns.c (count_combining): Delete it.
3821 (concat): Don't check combining bytes.
3822
3823 2004-05-09 Jason Rumney <jasonr@gnu.org>
3824
3825 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3826 (globals_of_w32fns): Set it.
3827
3828 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
3829
3830 * data.c (Fquo): Simplify.
3831
3832 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3833
3834 * data.c (Fquo): If any argument is float, do the computation in
3835 floating point.
3836
3837 2004-05-08 Juanma Barranquero <lektu@terra.es>
3838
3839 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3840 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3841 Fix spelling of Emacs on docstring.
3842 (Fset_process_coding_system, Fprocess_coding_system)
3843 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3844 Make argument names match their use in docstring.
3845 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3846 Fix docstring.
3847
3848 * editfns.c (Finsert_buffer_substring): Make argument names match their
3849 use in docstring.
3850
3851 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3852
3853 2004-05-07 Steven Tamm <steventamm@mac.com>
3854
3855 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3856 around call to ReceiveEvent to avoid certain crashes.
3857
3858 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3859
3860 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3861 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3862 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3863 Save/restore the current graphics port and device handle when
3864 drawing into an offscreen graphics world.
3865
3866 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3867 (gif_load): Likewise.
3868
3869 2004-05-07 Juanma Barranquero <lektu@terra.es>
3870
3871 * window.c (Fset_window_buffer): Fix docstring.
3872
3873 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3874
3875 * emacs.c (main) [VMS]: Fix var ref.
3876
3877 2004-05-06 Romain Francoise <romain@orebokech.com>
3878
3879 * data.c (Fsetq_default): Fix docstring.
3880
3881 2004-05-06 Jason Rumney <jasonr@gnu.org>
3882
3883 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3884 to avoid name clash.
3885
3886 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3887
3888 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3889 (Frename_file): Handle renaming of symlinks across file systems.
3890 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
3891
3892 2004-05-04 Kim F. Storm <storm@cua.dk>
3893
3894 * xdisp.c (Qtotal): New var.
3895 (syms_of_xdisp): Intern and staticpro it.
3896 (calc_line_height_property): New arg total. Set it if
3897 line-spacing property has format (total . VALUE).
3898 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3899 Handle total line-spacing property.
3900
3901 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3902
3903 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3904 "under" scroll bar when size/position changes.
3905
3906 2004-05-03 Jason Rumney <jasonr@gnu.org>
3907
3908 * makefile.nt: Remove.
3909
3910 2004-05-02 Eli Zaretskii <eliz@gnu.org>
3911
3912 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3913 Avoid compiler warnings.
3914
3915 * Makefile.in (region-cache.o): Depend on config.h.
3916
3917 2004-05-02 Romain Francoise <romain@orebokech.com>
3918
3919 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3920 with continuation lines, too.
3921
3922 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3923
3924 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3925
3926 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3927
3928 * xdisp.c (calc_line_height_property): YAILOM (yet another
3929 int/Lisp_Object mixup).
3930
3931 2004-05-01 Eli Zaretskii <eliz@gnu.org>
3932
3933 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3934 undo bad effect of pack(4) in some versions of system headers.
3935
3936 2004-05-01 Jason Rumney <jasonr@gnu.org>
3937
3938 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3939
3940 2004-04-30 Kim F. Storm <storm@cua.dk>
3941
3942 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
3943 (syms_of_buffer) <cursor-type>: Doc fix.
3944
3945 * dispextern.h (struct it): Remove member use_default_face.
3946 Add members override_ascent, override_descent, override_boff.
3947
3948 * xdisp.c (init_iterator): Handle line-spacing float value.
3949 Initialize override_ascent member.
3950 (append_space_for_newline): Reset override_ascent.
3951 Remove use_default_face.
3952 (calc_line_height_property): New function to calculate value of
3953 line-height and line-spacing properties. Look at overlays, too.
3954 Set override_ascent, override_descent, override_boff members when
3955 using another face than the current face. Float values are now
3956 relative to the frame default font, by default; accept a cons
3957 of ratio and face name to specify value relative to a specific face.
3958 (x_produce_glyphs): Use calc_line_height_property.
3959 Use override_ascent etc. when set to handle different face heights.
3960 A negative line-spacing property value is interpreted as a total
3961 line height, rather than inter-line spacing.
3962 (note_mouse_highlight): Allocate room for 40 overlays initially.
3963
3964 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3965
3966 * data.c (Fsubr_name): New fun.
3967 (syms_of_data): Defsubr it.
3968
3969 2004-04-29 Kim F. Storm <storm@cua.dk>
3970
3971 * xdisp.c (null_glyph_slice): New var.
3972 (append_glyph, append_composite_glyph, append_stretch_glyph):
3973 Use it to initialize glyph slice.
3974
3975 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3976
3977 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3978 (on_hot_spot_p): Make sure we always return a value.
3979 (Flookup_image_map): Remove unused var ix and iy.
3980 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3981
3982 2004-04-27 Eli Zaretskii <eliz@gnu.org>
3983
3984 * msdos.c (init_environment): If one of the TMP... environment
3985 variables is set to a drive letter without a trailing slash,
3986 append a slash.
3987
3988 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3989
3990 * editfns.c (lisp_time_argument): Provide externally.
3991
3992 * fileio.c (Fset_file_times): New function.
3993 (syms_of_fileio): Intern and staticpro it.
3994
3995 2004-04-27 Kim F. Storm <storm@cua.dk>
3996
3997 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3998 header line strings.
3999
4000 * dispextern.h (struct it): New member use_default_face.
4001
4002 * xdisp.c (Qline_height): New variable.
4003 (syms_of_xdisp): Intern and staticpro it.
4004 (append_space_for_newline): Partially undo 2004-04-25 change;
4005 add default_face_p arg, and restore callers.
4006 Clear it->use_default_face after use.
4007 (x_produce_glyphs): Set default font for ascii char if
4008 it->use_default_font is set. Change line-spacing property to set
4009 just extra line spacing. Handle new line-height property.
4010
4011 2004-04-26 Andreas Schwab <schwab@suse.de>
4012
4013 * print.c (print_object): Print non-ascii characters in bool
4014 vector representation as octal escapes.
4015
4016 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4017 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4018 bool vectors.
4019 * lread.c (read1): Likewise.
4020 * alloc.c (Fmake_bool_vector): Likewise.
4021 * data.c (Faref, Faset): Likewise.
4022 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4023 (mapcar1): Likewise.
4024
4025 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4026
4027 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4028
4029 2004-04-26 Miles Bader <miles@gnu.org>
4030
4031 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4032
4033 2004-04-26 Juanma Barranquero <lektu@terra.es>
4034
4035 * buffer.c (Fpop_to_buffer): Fix docstring.
4036
4037 2004-04-26 Steven Tamm <steventamm@mac.com>
4038
4039 * lread.c (init_lread): Don't display missing lisp directory
4040 warnings with Carbon Emacs because self-contained bundled Emacs
4041 may be built without correct installation path.
4042
4043 2004-04-25 Kim F. Storm <storm@cua.dk>
4044
4045 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4046
4047 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4048
4049 * xdisp.c (append_space_for_newline): Rename from append_space.
4050 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4051 (x_produce_glyphs): Handle line-spacing property on newline char.
4052 If value is t, adjust ascent and descent to fit current row height.
4053 If value is an integer or float, set extra_line_spacing to integer
4054 value, or to float value x current line height.
4055
4056 2004-04-23 Kenichi Handa <handa@m17n.org>
4057
4058 * fontset.c (Finternal_char_font): If POSITION is nil, return
4059 font for displaying CH with the default face.
4060
4061 2004-04-23 Juanma Barranquero <lektu@terra.es>
4062
4063 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4064
4065 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4066
4067 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4068 Don't make assumptions about the relative place of i and val.
4069 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4070
4071 2004-04-21 Kim F. Storm <storm@cua.dk>
4072
4073 * dispextern.h (struct glyph_slice): New struct.
4074 (struct glyph): New member slice.
4075 (GLYPH_SLICE_EQUAL_P): New macro.
4076 (GLYPH_EQUAL_P): Use it.
4077 (struct glyph_string): New member slice.
4078 (struct it_slice): New struct.
4079 (struct it): New member slice, add member to stack too.
4080 New member constrain_row_ascent_descent_p.
4081 (image_ascent): Add prototype.
4082
4083 * dispnew.c (buffer_posn_from_coords): Return full image width
4084 and height even for image slices (posn is relative to full image).
4085 (marginal_area_string): Adjust x0,y0 for image slice.
4086
4087 * image.c (image_ascent): Add slice arg; calculate ascent for
4088 image slice (or full image).
4089
4090 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4091 (syms_of_keyboard): Defsubr them.
4092
4093 * lisp.h (pos_visible_p): Fix prototype.
4094
4095 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4096 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4097 (x_draw_image_foreground, x_draw_image_relief)
4098 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4099 Draw sliced images.
4100
4101 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4102 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4103 (x_draw_image_foreground, x_draw_image_relief)
4104 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4105 Draw sliced images.
4106
4107 * w32term.h (image_ascent): Remove prototype.
4108
4109 * window.c (Fpos_visible_in_window_p): Return pixel position if
4110 PARTIALLY arg is non-nil. Simplify. Doc fix.
4111 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4112 to return/set vscroll in pixels.
4113
4114 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4115
4116 * xdisp.c (Qslice): New variable.
4117 (syms_of_xdisp): Intern and staticpro it.
4118 (pos_visible_p): Return pixel position in new x and y args.
4119 (init_iterator): Reset it->slice info.
4120 (handle_display_prop): Parse (slice ...) property.
4121 (push_it, pop_it): Save/restore slice info.
4122 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4123 force repositioning of tall row if window is vscrolled, as that
4124 would reset vscroll.
4125 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4126 increasing row height if row is non-empty.
4127 (fill_image_glyph_string): Copy slice info.
4128 (take_vertical_position_into_account): Simplify.
4129 (produce_image_glyph): Handle iterator slice info, setup glyph
4130 slice info. Do not force minimum line height.
4131 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4132 do not increase height (ascent/descent) of non-empty row when
4133 adding normal character glyph; instead reduce glyph ascent/descent
4134 appropriately; if row is higher than current glyph, adjust glyph
4135 descent/ascent to reposition glyph within the existing row.
4136 Likewise, when char is newline, only set ascent/descent if row is
4137 currently empty.
4138 (note_mouse_highlight): Handle hotspots with sliced image.
4139
4140 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4141 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4142 (x_draw_image_foreground, x_draw_image_relief)
4143 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4144 Draw sliced images.
4145
4146 * xterm.h (image_ascent): Remove prototype.
4147
4148 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4149
4150 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4151
4152 2004-04-20 John Paul Wallington <jpw@gnu.org>
4153
4154 * fns.c (Fassoc, Feql): Fix indentation.
4155
4156 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4157
4158 2004-04-19 John Paul Wallington <jpw@gnu.org>
4159
4160 * fns.c (Feql): New function.
4161 (syms_of_fns): Defsubr it.
4162
4163 2004-04-18 Jason Rumney <jasonr@gnu.org>
4164
4165 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4166 after closing the clipboard.
4167
4168 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4169
4170 * buffer.c (Fbuffer_base_buffer): Doc fix.
4171
4172 2004-04-17 Kim F. Storm <storm@cua.dk>
4173
4174 * keymap.c (Fkey_description): Add optional PREFIX arg.
4175 Combine prefix with KEYS to make up the full key sequence to describe.
4176 Correlate meta_prefix_char and following (simple) key to describe
4177 as meta modifier. All callers changed.
4178 (describe_map): Rename arg `keys' to `prefix'. Remove local
4179 `elt_prefix' var. Use Fkey_description with prefix instead of
4180 elt_prefix combined with Fsingle_key_description.
4181 (describe_vector): Declare static. Replace arg `elt_prefix' with
4182 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4183 if !KEYMAP_P. Use Fkey_description with prefix instead of
4184 Fsingle_key_description.
4185
4186 * keymap.h (Fkey_description): Fix prototype.
4187 (describe_vector): Remove prototype.
4188
4189 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4190
4191 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4192 (png_load): Fix calculation of transparent background color on X
4193 and W32 platforms.
4194
4195 2004-04-16 Juanma Barranquero <lektu@terra.es>
4196
4197 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4198 not too large before computing how much to scroll.
4199
4200 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4201
4202 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4203
4204 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4205
4206 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4207 Add hyperlink to Elisp manual to the docstring.
4208
4209 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * callint.c (fix_command): Use XDCR.
4212
4213 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
4214
4215 * window.c (Fget_lru_window): Doc fix.
4216
4217 2004-04-14 Kim F. Storm <storm@cua.dk>
4218
4219 * editfns.c (Fformat): Fix allocation size of precision array.
4220
4221 * dispnew.c (update_window): Only set changed_p if
4222 scrolling_window actually did scroll.
4223 (scrolling_window): Only return 1 if we actually did scroll.
4224
4225 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4226 height to glyph height when cursor row is not fully visible.
4227 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4228 failure in case row is higher than window. Callers changed.
4229 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4230 Try to scroll partially visible, higher-than-window cursor row.
4231 (redisplay_window): Always try to scroll partially visible,
4232 higher-than-window cursor row - both initially and again with
4233 centering_position = 0.
4234 Clear desired matrix before retrying with centering_position = 0.
4235
4236 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4237
4238 * syntax.c (scan_lists): Simplify backward string scan.
4239 Fix off-by-one boundary check for string and comment fences.
4240
4241 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
4242
4243 * sheap.c, unexcw.c: New files.
4244
4245 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4246
4247 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4248 base buffer has been killed. Correct the error message if the
4249 base buffer does not exist.
4250
4251 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
4252
4253 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4254 Cygwin itself. Add support for Xaw3d scrollbars.
4255
4256 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4257
4258 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4259
4260 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4261 before Cygwin unexec.
4262
4263 * Makefile.in: Link changes for Cygwin unexec() support.
4264
4265 2004-04-12 Andreas Schwab <schwab@suse.de>
4266
4267 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4268
4269 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4270
4271 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4272 IGNORE argument equals NAME. Doc fix.
4273
4274 2004-04-11 Masatake YAMATO <jet@gyve.org>
4275
4276 * buffer.c (fix_start_end_in_overlays): Make overlays
4277 empty if they are backwards.
4278
4279 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4280
4281 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4282
4283 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4284
4285 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4286
4287 2004-04-06 Kim F. Storm <storm@cua.dk>
4288
4289 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4290 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4291
4292 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4293 clearing highlight.
4294
4295 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4296
4297 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4298 clearing highlight.
4299
4300 * indent.c (vmotion): Do not reserve one column for continuation
4301 marks on window frames.
4302
4303 2004-04-04 Eli Zaretskii <eliz@gnu.org>
4304
4305 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4306 from GCC.
4307
4308 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * .gdbinit-union: Remove.
4311
4312 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4313 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4314 ($nonvalbits): Remove.
4315 ($valmask): Set it by calling xreload to avoid redundancy.
4316
4317 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4318 (gdb_emacs_intbits): Remove.
4319
4320 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4321
4322 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
4323
4324 2004-03-30 Kenichi Handa <handa@m17n.org>
4325
4326 * editfns.c (Fformat): Fix initialization of the array info.
4327
4328 2004-03-30 Kim F. Storm <storm@cua.dk>
4329
4330 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4331 (syms_of_xterm): DEFVAR_BOOL it.
4332 (ignore_next_mouse_click_timeout): New var.
4333 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4334 Use it to filter mouse clicks following focus event.
4335
4336 2004-03-29 David Ponce <david@dponce.com>
4337
4338 * callint.c (Fcall_interactively): Fix last change.
4339
4340 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4341
4342 * eval.c (Fcommandp): Simplify.
4343
4344 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4345 Extend to handle all kinds of functions.
4346
4347 * lisp.h (Finteractive_form): Declare.
4348
4349 * callint.c (Fcall_interactively): Use it.
4350
4351 2004-03-26 Kim F. Storm <storm@cua.dk>
4352
4353 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4354 to catch errors in calc_pixel_width_or_height during redisplay.
4355
4356 2004-03-26 Masatake YAMATO <jet@gyve.org>
4357
4358 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
4359
4360 * lisp.h (fix_start_end_in_overlays): Likewise.
4361
4362 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
4363
4364 * editfns.c (Ftranspose_regions): Likewise.
4365
4366 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4367
4368 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
4369
4370 2004-03-19 Richard M. Stallman <rms@gnu.org>
4371
4372 * s/sol2-6.h: Delete previous change.
4373
4374 2004-03-19 Kim F. Storm <storm@cua.dk>
4375
4376 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4377 to_charpos corresponds to newline in right fringe. Use local
4378 BUFFER_POS_REACHED_P macro.
4379
4380 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4381
4382 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4383 to compile on non-window system.
4384
4385 2004-03-19 Kim F. Storm <storm@cua.dk>
4386
4387 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4388
4389 * image.c (Qcenter): Move to xdisp.c.
4390
4391 * xdisp.c (Qcenter): Declare here.
4392 (syms_of_xdisp): Intern and staticpro it.
4393 (handle_single_display_prop): Allow space display property on all
4394 platforms.
4395 (display_mode_line): Set mode_line_p before displaying line.
4396 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4397 handling. Remove complex cases for fringes and scroll-bars.
4398 Add left, right, and center alignment positions. Add text (area)
4399 width/height. Return width or height for image specs.
4400 (produce_stretch_glyph): Improve handling of :align-to. Is now
4401 relative to left of text area by default, but other base offsets
4402 can be specified -- also for text lines.
4403
4404 * term.c (produce_glyphs): Handle IT_STRETCH.
4405 (produce_stretch_glyph): New function to handle space width and
4406 align-to display properties on non-window systems.
4407
4408 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4409
4410 * fileio.c (Fread_file_name): Set completion-ignore-case for
4411 case-insensitive systems.
4412
4413 2004-03-14 Masatake YAMATO <jet@gyve.org>
4414
4415 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4416 when keymap and cursor are setup.
4417
4418 2004-03-14 Steven Tamm <steventamm@mac.com>
4419
4420 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
4421
4422 2004-03-14 Kim F. Storm <storm@cua.dk>
4423
4424 * dispextern.h (x_find_image_file): Add prototype.
4425
4426 * image.c (x_find_image_file): Make extern.
4427
4428 * xfns.c (x_find_image_file): Remove prototype.
4429
4430 2004-03-13 Eli Zaretskii <eliz@gnu.org>
4431
4432 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
4433
4434 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
4435
4436 2004-03-12 Richard M. Stallman <rms@gnu.org>
4437
4438 * fns.c (internal_equal): New arg PROPS controls comparing
4439 text properties. All callers changed.
4440 (Fequal_including_properties): New function.
4441 (syms_of_fns): defsubr it.
4442
4443 2004-03-12 Kim F. Storm <storm@cua.dk>
4444
4445 Fix image support on MAC. From YAMAMOTO Mitsuharu.
4446
4447 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4448 (image_background, image_background_transparent): Fix prototypes.
4449
4450 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
4451
4452 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4453 (x_query_font, x_find_ccl_program, x_set_window_size)
4454 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4455 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4456 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4457
4458 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4459 (x_query_font, x_find_ccl_program, x_set_window_size)
4460 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4461 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4462 (mac_draw_line_to_pixmap): Add prototypes.
4463
4464 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4465
4466 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4467
4468 2004-03-11 Kim F. Storm <storm@cua.dk>
4469
4470 * dispextern.h: Move image related prototypes from xfns.c section
4471 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4472 HAVE_X_WINDOWS.
4473
4474 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
4475 Move gtkutil.o to new GTK_OBJ list.
4476 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4477 (GTK_OBJ) [USE_GTK]: New declaration.
4478 (obj): Add $(GTK_OBJ) to list.
4479
4480 2004-03-11 Steven Tamm <steventamm@mac.com>
4481
4482 * image.c [MAC_OSX]: Include sys/stat.h
4483
4484 * macfns.c (syms_of_macfns): Remove definitions of things now
4485 defined in image.c
4486
4487 2004-03-11 Kim F. Storm <storm@cua.dk>
4488
4489 The following changes consolidates the identical/similar image
4490 support code previously found in xfns.c, w32fns.c, and macfns.c
4491 into a new file image.c.
4492
4493 * makefile.w32-in (OBJ1): Add image.o.
4494 ($(BLD)/image.$(O)): Add dependencies.
4495
4496 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4497 (image.o): Add dependencies.
4498
4499 * image.c: New file with consolidated image support code.
4500 (COLOR_TABLE_SUPPORT): New define to control whether
4501 color table support is available (X only).
4502 (Bitmap_Record): Common name for x_bitmap_record,
4503 w32_bitmap_record, and mac_bitmap_record.
4504 (XImagePtr): Common name for pointer to XImage or equivalent.
4505 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4506 to XImagePtr on X+MAC, and to HDC on W32.
4507 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4508 (NO_PIXMAP): Common name for "None" or equivalent.
4509 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4510 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4511 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
4512 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4513 Define with suitable equivalents on W32 and MAC for code sharing.
4514 (XDrawLine): Define on MAC for code sharing.
4515 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4516 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4517 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4518 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4519 (x_reference_bitmap, x_create_bitmap_from_data)
4520 (x_create_bitmap_from_file, x_destroy_bitmap)
4521 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4522 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4523 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4524 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4525 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4526 (define_image_type, lookup_image_type, valid_image_p)
4527 (image_error, enum image_value_type, struct image_keyword)
4528 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4529 (make_image, free_image, prepare_image_for_display, image_ascent)
4530 (four_corners_best, image_background, image_background_transparent)
4531 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4532 (make_image_cache, free_image_cache, clear_image_cache)
4533 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4534 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4535 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4536 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4537 (init_image_func_pointer, image_load_quartz2d)
4538 (struct ct_color, init_color_table, free_color_table)
4539 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4540 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4541 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4542 (x_disable_image, x_build_heuristic_mask)
4543 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4544 (TIFF support, GIF support, Ghostscript support): Consolidate image
4545 code from xfns.c, w32fns.c, and macfns.c.
4546 (syms_of_image): Consolidate image related symbol setup here.
4547 (init_image): Consolidate image related initializations here.
4548
4549 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4550 and init_image. Remove call to init_xfns.
4551
4552 * macterm.h (struct mac_bitmap_record): Add file member.
4553 Not currently used, but simplifies code sharing.
4554
4555 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4556 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4557 (x_reference_bitmap, x_create_bitmap_from_data)
4558 (x_create_bitmap_from_file, x_destroy_bitmap)
4559 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4560 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4561 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4562 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4563 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4564 (define_image_type, lookup_image_type, valid_image_p)
4565 (image_error, enum image_value_type, struct image_keyword)
4566 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4567 (make_image, free_image, prepare_image_for_display, image_ascent)
4568 (four_corners_best, image_background, image_background_transparent)
4569 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4570 (make_image_cache, free_image_cache, clear_image_cache)
4571 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4572 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4573 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4574 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4575 (init_image_func_pointer, image_load_quartz2d)
4576 (struct ct_color, init_color_table, free_color_table)
4577 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4578 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4579 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4580 (x_disable_image, x_build_heuristic_mask)
4581 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4582 (TIFF support, GIF support, Ghostscript support): Merge with image
4583 code from xfns.c and macfns.c into image.c.
4584 (syms_of_xfns): Move image related symbols to image.c.
4585 (init_external_image_libraries, init_xfns): Remove; initialization
4586 moved to init_image in image.c.
4587
4588 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4589 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4590 (x_reference_bitmap, x_create_bitmap_from_data)
4591 (x_create_bitmap_from_file, x_destroy_bitmap)
4592 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4593 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4594 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4595 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4596 (define_image_type, lookup_image_type, valid_image_p)
4597 (image_error, enum image_value_type, struct image_keyword)
4598 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4599 (make_image, free_image, prepare_image_for_display, image_ascent)
4600 (four_corners_best, image_background, image_background_transparent)
4601 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4602 (make_image_cache, free_image_cache, clear_image_cache)
4603 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4604 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4605 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4606 (struct ct_color, init_color_table, free_color_table)
4607 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4608 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4609 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4610 (x_disable_image, x_build_heuristic_mask)
4611 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4612 (TIFF support, GIF support, Ghostscript support): Merge with image
4613 code from xfns.c and macfns.c into image.c.
4614 (syms_of_xfns): Move image related symbols to image.c.
4615 (init_external_image_libraries, init_xfns): Remove; initialization
4616 moved to init_image in image.c.
4617
4618 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4619 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4620 (x_reference_bitmap, x_create_bitmap_from_data)
4621 (x_create_bitmap_from_file, x_destroy_bitmap)
4622 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4623 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4624 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4625 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4626 (define_image_type, lookup_image_type, valid_image_p)
4627 (image_error, enum image_value_type, struct image_keyword)
4628 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4629 (make_image, free_image, prepare_image_for_display, image_ascent)
4630 (four_corners_best, image_background, image_background_transparent)
4631 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4632 (make_image_cache, free_image_cache, clear_image_cache)
4633 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4634 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4635 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4636 (struct ct_color, init_color_table, free_color_table)
4637 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4638 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4639 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4640 (x_disable_image, x_build_heuristic_mask)
4641 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4642 (TIFF support, GIF support, Ghostscript support): Merge with
4643 w32fns.c and macfns.c image code into image.c.
4644 (syms_of_xfns): Move image related symbols to image.c.
4645 (init_xfns): Remove; initialization moved to init_image in image.c.
4646
4647 * lisp.h (syms_of_image, init_image): Add protoypes.
4648 (init_xfns): Remove prototype.
4649
4650 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4651 (x_reference_bitmap, x_create_bitmap_from_data)
4652 (x_create_bitmap_from_file, x_destroy_bitmap)
4653 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4654 (gamma_correct) [MAC_OS]: Add prototype.
4655
4656 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4657 (x_reference_bitmap, x_create_bitmap_from_data)
4658 (x_create_bitmap_from_file, x_destroy_bitmap)
4659 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4660
4661 2004-03-09 Kenichi Handa <handa@etlken2>
4662
4663 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4664 correctly.
4665
4666 2004-03-04 Richard M. Stallman <rms@gnu.org>
4667
4668 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4669
4670 * window.c (Fdisplay_buffer): Doc fix.
4671
4672 * buffer.c (Fpop_to_buffer): Doc fix.
4673
4674 2004-03-03 Kim F. Storm <storm@cua.dk>
4675
4676 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4677
4678 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4679
4680 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4681
4682 2004-03-02 Richard M. Stallman <rms@gnu.org>
4683
4684 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4685
4686 2004-03-02 Kenichi Handa <handa@m17n.org>
4687
4688 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4689
4690 2004-03-02 Kim F. Storm <storm@cua.dk>
4691
4692 * window.h (struct window): New member overlay_arrow_bitmap.
4693
4694 * window.c (make_window): Initialize overlay_arrow_bitmap.
4695
4696 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4697 implement and integrate multiple overlay arrows with redisplay.
4698 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4699 (last_arrow_position, last_arrow_string): Replace by properties.
4700 (Qlast_arrow_position, Qlast_arrow_string)
4701 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4702 (syms_of_xdisp): Intern and staticpro them.
4703 (overlay_arrow_string_or_property, update_overlay_arrows)
4704 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4705 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4706 (redisplay_internal): Use them instead of directly accessing
4707 Voverlay_arrow_position etc. for multiple overlay arrows.
4708 (mark_window_display_accurate): Use update_overlay_arrows.
4709 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4710 (try_window_id): Use overlay_arrows_changed_p.
4711 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4712 (display_line): Use overlay_arrow_at_row to check multiple
4713 overlay arrows, and get relevant overlay-arrow-string and
4714 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
4715 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4716 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4717
4718 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4719 (update_window_fringes): Remove unused code.
4720
4721 2004-03-01 Jason Rumney <jasonr@gnu.org>
4722
4723 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4724
4725 2004-03-01 Juanma Barranquero <lektu@terra.es>
4726
4727 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4728
4729 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4730
4731 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4732
4733 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4734 how many colors can be displayed.
4735
4736 2004-03-01 Kenichi Handa <handa@m17n.org>
4737
4738 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4739 correctly.
4740
4741 2004-02-28 Kim F. Storm <storm@cua.dk>
4742
4743 * dispnew.c (update_window): Update header line also if there are
4744 no other changes in window (move code after set_cursor label).
4745
4746 * lisp.h (mark_window_display_accurate): Remove prototype.
4747
4748 * window.c (window_loop, Fforce_window_update): Force mode line
4749 updates by setting prevent_redisplay_optimizations_p and
4750 update_mode_lines.
4751
4752 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4753
4754 * xfns.c (x_window): Fix indentation.
4755
4756 * xterm.c (x_calc_absolute_position): Call x_real_positions
4757 to get WM window sizes and use those to calculate position.
4758 (x_set_offset): Remove code commented out.
4759
4760 2004-02-28 Miles Bader <miles@gnu.org>
4761
4762 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4763
4764 2004-02-28 Kim F. Storm <storm@cua.dk>
4765
4766 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4767 an event into kbd fifo, but with special handling of quit event;
4768 a quit event is saved for later, and further events are discarded
4769 until the saved quit event has been processed.
4770 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4771 (gen_help_event): Store help event in kbd fifo.
4772 (NREAD_INPUT_EVENTS): Remove.
4773 (read_avail_input): Adapt to new read_socket_hook interface.
4774 Remove allocation and initialization of local input_event buffer,
4775 as read_socket_hook stores events directly in fifo. Allocate and
4776 initialize local hold_quit event to handle postponed quit event
4777 (and store it if set by kbd_buffer_store_event_hold).
4778
4779 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4780 (gen_help_event): Fix prototype.
4781
4782 * macterm.c (XTread_socket): Remove bufp_r and
4783 numcharsp args. Add hold_quit arg.
4784 Rework to use just one, local, inev input_event. Store inev
4785 directly in fifo using kbd_buffer_store_event_hold.
4786
4787 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4788 (read_input_waiting): Adapt to new read_socket_hook interface.
4789 Remove allocation and initialization of local input_event buffer,
4790 as read_socket_hook stores events directly in fifo. Allocate and
4791 initialize local hold_quit event to handle postponed quit event
4792 (and store it if set by kbd_buffer_store_event_hold).
4793
4794 * term.c (read_socket_hook): Fix arg list.
4795
4796 * termhooks.h (read_socket_hook): Fix prototype.
4797
4798 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4799 numcharsp args. Add hold_quit arg.
4800 Rework to use just one, local, inev input_event. Store inev
4801 directly in fifo using kbd_buffer_store_event_hold.
4802
4803 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4804
4805 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
4806 Add hold_quit arg. Rework to use just one, local, inev
4807 input_event. Store inev directly in fifo using
4808 kbd_buffer_store_event_hold. Update count in one place.
4809 Postpone call to gen_help_event until inev is stored; use new
4810 local do_help for this.
4811 Remove local emacs_event in handing of ButtonPress event; just use
4812 inev instead (so no reason to copy it later).
4813
4814 * xsmfns.c (x_session_check_input): Remove numchars arg.
4815
4816 * xterm.c (x_focus_changed, x_detect_focus_change):
4817 Remove numchars arg. Always store event into bufp arg.
4818 Return nothing. Callers changed accordingly.
4819 (glyph_rect): Simplify.
4820 (STORE_KEYSYM_FOR_DEBUG): New macro.
4821 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4822 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4823 (current_hold_quit) [USE_GTK]: Add.
4824 (event_handler_gdk): Adapt to new handle_one_xevent.
4825 (handle_one_xevent): Remove bufp_r and numcharsp args.
4826 Add hold_quit arg. Rework to use just one, local, inev
4827 input_event. Store inev directly in fifo using
4828 kbd_buffer_store_event_hold. Update count in one place.
4829 Postpone call to gen_help_event until inev is stored; use new
4830 local do_help for this.
4831 Simplify handling of keysyms (consolidate common code). Fix bug
4832 where count was updated with nchars instead of nbytes.
4833 Remove local emacs_event in handing of ButtonPress event; just use
4834 inev instead (so no reason to copy it later).
4835 Remove `out' label. Rename label `ret' to `done'; add various
4836 `goto done' to clarify code flow in deeply nested blocks.
4837 (x_dispatch_event): Simplify as handle_one_xevent now calls
4838 kbd_buffer_store_event itself.
4839 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
4840 arg. Call handle_one_xevent with new arglist. Store event from
4841 x_session_check_input in fifo.
4842 [USE_GTK]: Setup current_hold_quit.
4843 Decrement handling_signal before unblocking input.
4844 (x_initialize) [USE_GTK]: Initialize current_count.
4845
4846 * xterm.h (x_session_check_input): Fix prototype.
4847
4848 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4849
4850 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
4851
4852 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4853 macgui.h).
4854
4855 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
4856
4857 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4858 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4859 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4860 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4861 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4862 (Bitmap): Remove typedef.
4863 (Pixmap): Change int to GWorldPtr.
4864
4865 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4866
4867 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4868 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4869 New #define to extract 16-bit depth color components from unsigned
4870 long representation.
4871 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4872 colors used for masks.
4873 (struct mac_display_info): Add color_p. Remove n_cbits.
4874
4875 * macfns.c: Include sys/types.h and sys/stat.h.
4876 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4877 Include QuickTime/QuickTime.h.
4878 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4879 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4880 functions defined in macterm.c.
4881 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4882 (ZPixmap): New #define for compatibility with xfns.c.
4883 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4884 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4885 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4886 New functions.
4887 (four_corners_best, x_create_x_image_and_pixmap)
4888 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4889 (x_edge_detection, init_color_table, colors_in_color_table)
4890 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4891 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4892 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4893 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4894 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4895 long mixup.
4896 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4897 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4898 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4899 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4900 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4901 (x_alloc_image_color, clear_image_cache, lookup_image)
4902 (x_find_image_file, xbm_read_bitmap_file_data)
4903 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4904 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4905 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4906 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4907 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
4908 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
4909 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4910 #if 0.
4911 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4912 #if 0. Free white_relief.gc and black_relief.gc.
4913 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4914 New functions (from xfns.c).
4915 (Fx_create_frame): Record unwind_create_frame.
4916 (Fxw_display_color_p): Use dpyinfo->color_p.
4917 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4918 dpyinfo->n_cbits.
4919 (Fx_display_color_cells): Use dpyinfo->n_planes;
4920 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4921 (Qheuristic, cross_disabled_images, emboss_matrix)
4922 (laplace_matrix): New variables (from xfns.c).
4923 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4924 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4925 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
4926 (image_background_transparent): New function (from xfns.c).
4927 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4928 (image_load_quicktime): Add declaration.
4929 [MAC_OSX] (image_load_quartz2d): Likewise.
4930 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4931 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
4932 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
4933 (xbm_load_image_from_file, x_laplace_read_row)
4934 (x_laplace_write_row, pbm_read_file): Remove functions.
4935 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4936 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4937 (colors_in_color_table): Sync with xfns.c (although not used).
4938 (lookup_rgb_color): Don't lookup color table. Just do gamma
4939 correction.
4940 (COLOR_INTENSITY): New #define (from xfns.c).
4941 (x_disable_image): New function (from xfns.c).
4942 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4943 (x_build_heuristic_mask): Sync with xfns.c.
4944 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4945 (HAVE_PBM): Remove #ifdef.
4946 (pbm_load): Sync with xfns.c. Set img->width and img->height
4947 before IMAGE_BACKGROUND.
4948 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
4949 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4950 Don't enclose with #if HAVE_PNG.
4951 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
4952 symbol _CGImageCreateWithPNGDataProvider is defined.
4953 Otherwise use image_load_quicktime.
4954 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
4955 [HAVE_PNG] (png_load): Sync with xfns.c.
4956 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4957 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4958 HAVE_JPEG.
4959 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4960 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4961 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4962 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4963 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4964 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4965 HAVE_TIFF.
4966 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4967 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4968 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
4969 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4970 New functions (from xfns.c).
4971 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
4972 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
4973 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4974 Don't enclose with #if HAVE_GIF.
4975 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4976 animated gif. Otherwise use image_load_quicktime.
4977 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4978 gif_DrawText to avoid conflict with QuickdrawText.h.
4979 [HAVE_GIF] (gif_load): Sync with xfns.c.
4980 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4981 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4982 Ghostscript is not supported yet).
4983 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4984 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4985 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4986 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4987 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4988 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4989 HAVE_PNG. Call EnterMovies to support animated gifs.
4990 Call init_image_func_pointer to bind a symbol
4991 _CGImageCreateWithPNGDataProvider if it is defined.
4992
4993 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4994 (x_draw_bar_cursor): Sync declaration with xterm.c.
4995 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4996 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4997 graphics).
4998 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4999 (mac_draw_line_to_pixmap, XCreatePixmap)
5000 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5001 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5002 New functions.
5003 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5004 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5005 Cast bits to char *.
5006 (reflect_byte): New function (from w32fns.c).
5007 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5008 due to byte alignment.
5009 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5010 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5011 (XSetForeground): Remove static (now used in macfns.c).
5012 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5013 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5014 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5015 (x_draw_glyph_string_box, x_draw_image_foreground)
5016 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5017 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5018 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5019 Sync with xterm.c.
5020 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5021 than the xterm.c version when a strictly horizontal or vertical
5022 line is drawn.
5023 (XTset_terminal_window): Add static.
5024 (x_make_frame_visible): Add UNBLOCK_INPUT.
5025 (x_free_frame_resources): New funcion (from xterm.c).
5026 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5027 occurs in tool bar area.
5028 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5029 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
5030 Initialize image cache.
5031 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5032 Enclose unused functions with #if 0.
5033 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5034 (decode_mac_font_name): New function to apply code conversions
5035 from a mac font name to an XLFD font name according to its script code.
5036 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
5037 font name to a mac font name according to REGISTRY and ENCODING fields.
5038 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5039 whose name starts with `.'.
5040 (init_font_name_table): Use decode_mac_font_name. Add both
5041 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5042 of a font is smJapanese.
5043 (mac_do_list_fonts): New function to list fonts that match a given
5044 pattern.
5045 (x_list_fonts, XLoadQueryFont): Use it.
5046 (XLoadQueryFont): Set rbearing field for each variable width
5047 character to avoid needless redraw.
5048 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5049
5050 2004-02-26 Kim F. Storm <storm@cua.dk>
5051
5052 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5053 as read_socket_hook handler on X aborts if buffer is too small
5054 and W32 handler doesn't always check buffer limit.
5055
5056 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5057 right-fringe similar to a display margin image. Specifically,
5058 the characters having the fringe prop are no longer shown, and
5059 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5060 do this. Set fringe bitmap face_id in it->face_id.
5061 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5062 still realize it->face (i.e. the fringe bitmap face).
5063
5064 2004-02-25 Miles Bader <miles@gnu.org>
5065
5066 * xdisp.c (check_it): Check string/string_pos consistency.
5067 (init_iterator): Initialize string-related fields properly.
5068
5069 2004-02-11 Miles Bader <miles@gnu.org>
5070
5071 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5072
5073 2004-02-10 Miles Bader <miles@gnu.org>
5074
5075 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5076 BLOCK_INPUT can be nested, so it doesn't make much sense.
5077
5078 2004-02-24 Michael Mauger <mmaug@yahoo.com>
5079
5080 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5081 (xbm_read_bitmap_data): Use unsigned char for image data.
5082
5083 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5084
5085 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5086
5087 2004-02-22 Jason Rumney <jasonr@gnu.org>
5088
5089 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5090 correctly over other bitmaps.
5091
5092 2004-02-21 Eli Zaretskii <eliz@gnu.org>
5093
5094 * emacs.c (USAGE1): Split into two halves.
5095 (USAGE2): Second half of the old USAGE1.
5096 (USAGE3): Rename from USAGE2.
5097 (USAGE4): Rename from USAGE3.
5098
5099 2004-02-21 Juri Linkov <juri@jurta.org>
5100
5101 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5102 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5103 --file. Fix -f, -l. Sort options. Untabify.
5104 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5105
5106 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5107
5108 * category.c (Fdefine_category, Fcategory_docstring)
5109 (Fget_unused_category, Fset_category_table)
5110 (Fcategory_set_mnemonics): Doc fixes.
5111
5112 2004-02-20 Kim F. Storm <storm@cua.dk>
5113
5114 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5115 The following changes are relative to the 2004-01-21 revision.
5116 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5117 in one call to read_socket_hook. Value is 8.
5118 (read_avail_input): Separate and rework handling of read_socket_hook
5119 and non-read_socket_hook cases. Use smaller input_event buffer
5120 in read_socket_hook case, and repeat if full buffer is read.
5121 Use new local variable 'discard' to skip input after C-g.
5122 In non-read_socket_hook case, just use a single input_event, and
5123 call kbd_buffer_store_event on the fly for each character.
5124
5125 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5126
5127 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5128 Remove unused `gu' alternative.
5129
5130 2004-02-19 Andreas Schwab <schwab@suse.de>
5131
5132 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5133 warning.
5134
5135 2004-02-18 Kim F. Storm <storm@cua.dk>
5136
5137 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5138 Fix last change.
5139
5140 2004-02-17 Kim F. Storm <storm@cua.dk>
5141
5142 * xdisp.c (fast_find_position): Fix return value of new version;
5143 it was inverted compared to the 21.1 version.
5144 (get_window_cursor_type): Don't look at glyph if NULL.
5145 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
5146
5147 * keyboard.c: Rework previous change; it didn't consider that the
5148 buf array was allocated on the stack.
5149 (prev_read): Remove variable.
5150 (read_avail_input_buf): New static event buffer array.
5151 (in_read_avail_input): New static variable to handle re-entrancy.
5152 (read_avail_input): Change buf to pinter to read_avail_input_buf.
5153 Use in_read_avail_input to handle re-entrance; when re-entered,
5154 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5155 Do not initialize read_avail_input_buf in full here; instead assume it
5156 is always cleared on entry. To ensure that, we clear (just) the
5157 entries that were used before we return.
5158 (init_keyboard): Initialize read_avail_input_buf here.
5159
5160 2004-02-16 Jesper Harder <harder@ifa.au.dk>
5161
5162 * cmds.c (Fend_of_line): Doc fix.
5163
5164 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5165
5166 * keyboard.c (prev_read): New static variable.
5167 (read_avail_input): Use it to zero out only those slots in buf[]
5168 that were used last time we were called.
5169
5170 2004-02-16 Eli Zaretskii <eliz@gnu.org>
5171
5172 * Makefile.in (obj): Move fringe.o from here...
5173 (XOBJ, MAC_OBJ): ...to here.
5174
5175 2004-02-16 Stephen Eglen <stephen@gnu.org>
5176
5177 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5178
5179 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5180
5181 * data.c (Fbyteorder):
5182 * fringe.c (Fdefine_fringe_bitmap):
5183 * xdisp.c (handle_single_display_prop):
5184 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5185
5186 2004-02-16 Jason Rumney <jasonr@gnu.org>
5187
5188 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5189
5190 2004-02-15 Steven Tamm <steventamm@mac.com>
5191
5192 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5193 controlling emulation of a three button mouse with option and
5194 command keys.
5195 (Qreverse, mac_get_enumlated_btn): Handle the emulation
5196 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
5197
5198 2004-02-15 Kim F. Storm <storm@cua.dk>
5199
5200 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5201
5202 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5203 Perform byte-swapping.
5204
5205 2004-02-14 Kim F. Storm <storm@cua.dk>
5206
5207 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5208 bits from char to short to facilitate wider bitmaps.
5209 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5210 member.
5211
5212 * fringe.c (struct fringe_bitmap): Change member bits from char to
5213 short to facilitate 16 bits wide bitmaps. Modify all standard
5214 bitmaps accordingly.
5215 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5216 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5217 (draw_fringe_bitmap): Ditto.
5218 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5219 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5220 handle up to 16 bits wide bitmaps.
5221 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
5222 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
5223
5224 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5225 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5226 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5227
5228 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5229 so it is no longer necessary to expand them here.
5230
5231 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5232
5233 2004-02-12 Kim F. Storm <storm@cua.dk>
5234
5235 * window.c (Fwindow_fringes): Doc fix.
5236
5237 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5238
5239 * xselect.c (x_get_foreign_selection): Add new optional parameter
5240 time_stamp.
5241 (Fx_get_selection_internal): Ditto, pass time_stamp to
5242 x_get_foreign_selection.
5243
5244 * data.c (Fbyteorder): New function.
5245
5246 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5247
5248 * atimer.c: Move include stdio.h to same place as in other files.
5249
5250 * region-cache.c: Ditto.
5251
5252 * sysdep.c: Ditto.
5253
5254 * xfaces.c: Ditto.
5255
5256 2004-02-09 Sam Steingold <sds@gnu.org>
5257
5258 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
5259
5260 2004-02-09 Kim F. Storm <storm@cua.dk>
5261
5262 * fringe.c: New file. Move original fringe related declarations
5263 and code from dispextern.h and xdisp.c here.
5264 Rework code to support user defined fringe bitmaps, redefining
5265 standard bitmaps, ability to overlay user defined bitmap with
5266 overlay arrow bitmap, and add faces to bitmaps.
5267 (Voverflow_newline_into_fringe): Declare here.
5268 (enum fringe_bitmap_align): New enum.
5269 (..._bits): All bitmaps are now defined without bitswapping; that
5270 is now done in init_fringe_once (if necessary).
5271 (standard_bitmaps): New array with specifications for the
5272 standard fringe bitmaps.
5273 (fringe_faces): New array.
5274 (valid_fringe_bitmap_id_p): New function.
5275 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5276 (draw_fringe_bitmap): New function which draws fringe bitmap,
5277 possibly overlaying bitmap with cursor in right fringe or the
5278 overlay arrow in the left fringe.
5279 (update_window_fringes): Do not handle overlay arrow here.
5280 Compare and copy fringe bitmap faces.
5281 (init_fringe_bitmap): New function.
5282 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5283 define and destroy user defined fringe bitmaps.
5284 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5285 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5286 (syms_of_fringe): New function. Defsubr new DEFUNs.
5287 DEFVAR_LISP Voverflow_newline_into_fringe.
5288 (init_fringe_once, init_fringe): New functions.
5289 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
5290
5291 * Makefile.in (obj): Add fringe.o.
5292 (fringe.o): New dependencies.
5293
5294 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5295 bits allocated to hold a fringe number. Increase number of bits
5296 from 4 to 8 to allow user defined fringe bitmaps.
5297 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5298 left_user_fringe_face_id, right_user_fringe_bitmap,
5299 right_user_fringe_face_id.
5300 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5301 Move to new file fringe.c.
5302 (MAX_FRINGE_BITMAPS): Define here.
5303 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5304 and overlay_p. Change member which to int.
5305 (struct redisplay_interface): New members define_fringe_bitmap
5306 and destroy_fringe_bitmap.
5307 (valid_fringe_bitmap_id_p): Add prototype.
5308 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5309
5310 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5311 arrows.
5312 (update_frame): Do flush_display if force_flush_display_p to
5313 ensure display (specifically fringes) are updated in a timely
5314 manner when resizing the frame by dragging the mouse.
5315 (update_window_line): Update row if overlay arrow changed.
5316 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5317 or overlay arrow changed.
5318
5319 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5320 syms_of_fringe, and init_fringe.
5321
5322 * frame.h (struct frame): New member force_flush_display_p.
5323
5324 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5325 Add prototypes.
5326
5327 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
5328 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
5329 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5330 Use cursor color for displaying cursor in fringe.
5331 (x_redisplay_interface): Add null handlers for
5332 define_fringe_bitmap and destroy_fringe_bitmap functions.
5333
5334 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5335 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5336 for displaying cursor in fringe.
5337 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5338 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5339 (w32_redisplay_interface): Add them to redisplay_interface.
5340 (w32_term_init): Call w32_init_fringe instead of explicitly
5341 defining fringe bitmaps in fringe_bmp array.
5342 (x_delete_display): Call w32_reset_fringes instead of explicitly
5343 destroying fringe bitmaps in fringe_bmp array.
5344
5345 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5346 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5347 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5348 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5349 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5350 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5351 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5352 Move fringe handling vars and code to new file fringe.c.
5353 (handle_display_prop): Handle left-fringe and right-fringe
5354 display properties; store user fringe bitmaps in iterator.
5355 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5356 (clear_garbaged_frames): Set force_flush_display_p if resized.
5357 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5358 (display_line): Handle cursor in fringe at eob.
5359 (display_line): Set row user fringe bitmaps from iterator.
5360
5361 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5362 Use cursor color for displaying cursor in fringe.
5363 (x_redisplay_interface): Add null handlers for
5364 define_fringe_bitmap and destroy_fringe_bitmap functions.
5365
5366 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5367
5368 * macfns.c (Fx_change_window_property): Make doc string and
5369 parameters same as for X version.
5370
5371 * w32fns.c (Fx_change_window_property): Ditto.
5372
5373 2004-02-07 Kim F. Storm <storm@cua.dk>
5374
5375 * xdisp.c (hscroll_window_tree): Position cursor near to right
5376 margin in hscrolled window when jumping to end of line (rather
5377 than centering cursor).
5378
5379 * process.c (wait_reading_process_input): Don't do adaptive read
5380 buffering if waiting for a specific process.
5381
5382 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5383
5384 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5385 (Fread_minibuffer, Feval_minibuffer)
5386 (Fread_string, Fread_no_blanks_input)
5387 (Fcompleting_read): Doc fixes.
5388 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5389 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5390 (read_minibuf): Fix initial comment.
5391 (Ftry_completion, Fall_completions, Ftest_completion): Bind
5392 case-fold-search to the value of completion-ignore-case when
5393 checking completion-regexp-list.
5394 (Fdisplay_completion_list): Make it handle arguments that are
5395 symbols. Doc fix.
5396
5397 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5398
5399 * xterm.h: Add declaration of free_frame_menubar.
5400
5401 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5402 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
5403 (Fx_change_window_property): Add declaration of parameters type and
5404 format. Remove unused variable cons.
5405
5406 * xselect.c: Include stdio,h.
5407
5408 2004-02-05 Kenichi Handa <handa@m17n.org>
5409
5410 * fns.c (Fset_char_table_range): Fix previous change.
5411
5412 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5413
5414 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5415
5416 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5417
5418 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5419
5420 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5421 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5422
5423 2004-02-04 Kenichi Handa <handa@m17n.org>
5424
5425 * fns.c (Fset_char_table_range): Handle charsets ascii,
5426 eight-bit-control, and eight-bit-graphic correctly.
5427
5428 2004-02-03 Jason Rumney <jasonr@gnu.org>
5429
5430 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5431
5432 * w32fns.c (x_to_w32_font): Likewise.
5433
5434 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5435
5436 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5437 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5438
5439 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5440 ClientMessages.
5441
5442 * xselect.c: Include termhooks.h and X11/Xproto.h
5443 (x_check_property_data, x_fill_property_data)
5444 (x_property_data_to_lisp, mouse_position_for_drop)
5445 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
5446 (Fx_send_client_event): Move here from xfns.c.
5447 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5448
5449 * xfns.c (x-send-client-message): Move to xselect.c
5450 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5451 OUTER_P.
5452 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5453 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5454 if vector_ret_p is true.
5455 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
5456
5457 2004-02-02 Eli Zaretskii <eliz@gnu.org>
5458
5459 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5460 basename of FILE relative to it, not FILE itself.
5461
5462 2004-02-02 Kenichi Handa <handa@m17n.org>
5463
5464 * coding.c (coding_restore_composition): Check invalid
5465 composition data more rigidly.
5466
5467 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5468
5469 * fileio.c (Fread_file_name_internal): Correctly handle the case
5470 where insert-default-directory is nil.
5471 (Fread_file_name): Always return an empty string if the user exits
5472 with an empty minibuffer. Adapt the docstring accordingly.
5473 (syms_of_fileio): Adapt the docstring of insert-default-directory
5474 to the change in Fread_file_name.
5475
5476 2004-01-29 Eli Zaretskii <eliz@gnu.org>
5477
5478 * alloca.c [!alloca]: Fix the prototype for xfree.
5479
5480 2004-01-29 Kenichi Handa <handa@m17n.org>
5481
5482 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5483 (string_byte_to_char): Likewise.
5484
5485 2004-01-28 Peter Runestig <peter@runestig.com>
5486
5487 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5488
5489 2004-01-27 Steven Tamm <steventamm@mac.com>
5490
5491 * unexmacosx.c (unexec_copy): Do not copy more than was
5492 requested to prevent overwriting during unexec.
5493
5494 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5495
5496 * process.c (sigchld_handler): Add comment about not calling malloc.
5497
5498 * process.h: Add extern to synch_process_termsig.
5499
5500 2004-01-27 Steven Tamm <steventamm@mac.com>
5501
5502 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5503 Move setting of scroll bars from make_mac_frame to
5504 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
5505
5506 2004-01-26 Richard M. Stallman <rms@gnu.org>
5507
5508 * search.c (Freplace_match): Handle nonexistent
5509 back-references properly.
5510
5511 2004-01-03 Richard M. Stallman <rms@gnu.org>
5512
5513 * window.c (decode_any_window): New function.
5514 (Fwindow_height, Fwindow_width, Fwindow_edges)
5515 (Fwindow_pixel_edges, Fwindow_inside_edges)
5516 (Fwindow_inside_pixel_edges): Use decode_any_window.
5517
5518 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5519
5520 * process.h: synch_process_termsig new variable.
5521
5522 * callproc.c: Define synch_process_termsig.
5523 (Fcall_process): Initiate synch_process_termsig to zero and
5524 check if non-zero and get signal name after subprocess has ended.
5525
5526 * process.c (sigchld_handler): Set synch_process_termsig
5527 if terminated by a signal. synch_process_death setting removed.
5528
5529 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5530
5531 2004-01-26 Andreas Schwab <schwab@suse.de>
5532
5533 * print.c (print_preprocess): Declare size as EMACS_INT to not
5534 lose bits.
5535 (print_object): Likewise.
5536 * alloc.c (Fpurecopy): Likewise.
5537
5538 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5539
5540 * window.c (Fwindow_minibuffer_p): Doc fix.
5541
5542 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5543
5544 * editfns.c (Fformat): Make both passes accept the same set of flags.
5545
5546 2004-01-23 Kenichi Handa <handa@m17n.org>
5547
5548 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5549 one, set buffer to OBJECT temporarily.
5550
5551 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * keyboard.c (kbd_buffer_gcpro): Remove.
5554 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5555 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5556 Don't initialize and/or maintain the variable any more. It was made
5557 redundant by my commit of 2003-06-15.
5558
5559 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5560
5561 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5562
5563 * lisp.h: Add undef DECL_ALIGN.
5564
5565 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5566
5567 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5568 Check interrupt_input_pending explicitly.
5569
5570 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5571
5572 * keyboard.c (handle_async_input): New fun,
5573 extracted from input_available_signal.
5574 (input_available_signal, reinvoke_input_signal): Use it.
5575
5576 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5577
5578 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5579
5580 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5581 manipulation macros for when tags are in the lower bits.
5582 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5583 (DECL_ALIGN): New macro.
5584 (DEFUN): Use it.
5585
5586 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5587
5588 * s/darwin.h (__attribute__): Remove outdated workaround.
5589
5590 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5591
5592 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5593 Don't check range of malloc address.
5594 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5595
5596 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5597
5598 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5599
5600 2004-01-19 Kenichi Handa <handa@m17n.org>
5601
5602 * fontset.c (fontset_font_pattern): Fix previous change.
5603
5604 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5605
5606 * xdisp.c (Voverflow_newline_into_fringe)
5607 (move_it_in_display_line_to, redisplay_internal)
5608 (update_window_fringes, redisplay_window, display_line, window):
5609 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5610 that it compiles without a window-system.
5611 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5612
5613 2004-01-16 Kim F. Storm <storm@cua.dk>
5614
5615 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5616
5617 * buffer.c (init_buffer_once): Set buffer_defaults and
5618 buffer_local_flags for indicate_buffer_boundaries.
5619 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5620 default- variable for it.
5621
5622 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5623 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
5624 New members exact_window_width_line_p and cursor_in_fringe_p for
5625 overflowing newlines into right fringe.
5626 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5627 and indicate_bottom_line_p for buffer boundaries and scrolling.
5628 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5629 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5630 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5631 and HOLLOW_SQUARE_BITMAP.
5632 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5633 Add prototypes.
5634
5635 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5636 instead of related indicator fields.
5637 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5638 (direct_output_for_insert): Handle exact width lines like
5639 contined lines. Call update_window_fringes.
5640 (update_window): Call update_window_fringes.
5641 (scrolling_window): Don't skip desired rows with changed bitmaps.
5642 Check if fringe bitmaps changes when assigning scrolled rows.
5643
5644 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5645 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5646 (move_it_in_display_line_to): Overflow newline into fringe for
5647 rows that are exactly as wide as the window.
5648 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5649 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5650 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5651 (fringe_bitmaps): Add new bitmaps.
5652 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5653 Select proper bitmap for cursor in fringe when appropriate.
5654 Handle alignment of bitmap to top or bottom of row.
5655 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5656 done by update_window_fringes.
5657 (update_window_fringes, draw_window_fringes): New functions.
5658 (redisplay_internal): Call update_window_fringes in case only
5659 cursor row is updated.
5660 (redisplay_window): Call update_window_fringes.
5661 Explicitly call draw_window_fringes if redisplay was done using
5662 the current matrix or the overlay arrow is in the window.
5663 (try_window_reusing_current_matrix): Mark scrolled rows for
5664 fringe update (to update buffer-boundaries / scrolling icons).
5665 (find_last_unchanged_at_beg_row): Handle exact width lines line
5666 continued lines.
5667 (display_line): Overflow newline into fringe for rows that are
5668 exactly as wide as the window. Don't append space for newline
5669 in this case.
5670 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5671 in fringe as if it had been overwritten.
5672 (erase_phys_cursor): Erase cursor bitmap in fringe.
5673 (syms_of_xdisp): Mark show-trailing-whitespace and
5674 void-text-area-pointer as user options.
5675 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
5676
5677 * xterm.c (x_update_window_end): Call draw_window_fringes.
5678 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5679 in row instead of actually drawing fringe bitmaps.
5680 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5681 (x_draw_window_cursor): Draw cursor in fringe.
5682
5683 * w32term.c (x_update_window_end): Call draw_window_fringes.
5684 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5685 in row instead of actually drawing fringe bitmaps.
5686 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5687 (w32_draw_window_cursor): Draw cursor in fringe.
5688
5689 * macterm.c (x_update_window_end): Call draw_window_fringes.
5690 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5691 in row instead of actually drawing fringe bitmaps.
5692 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5693 (mac_draw_window_cursor): Draw cursor in fringe.
5694
5695 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5696
5697 * xterm.c (handle_one_xevent): Don't handle characters that are part
5698 of an old style (XLookupString) compose sequence.
5699
5700 2004-01-15 Kenichi Handa <handa@m17n.org>
5701
5702 * search.c (Freplace_match): Use make_multibyte_string or
5703 make_unibyte_string according to the buffer multibyteness.
5704
5705 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5706
5707 * alloc.c (struct interval_block, struct string_block)
5708 (struct symbol_block, struct marker_block, live_string_p)
5709 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5710 Better preserve alignment for objects in blocks.
5711 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5712
5713 * lread.c (defvar_per_buffer): Remove dead declaration.
5714
5715 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5716 space size.
5717
5718 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5719
5720 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5721 if a key press should pop down. Only pop down if a key is pressed
5722 outside the menu/dialog.
5723 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5724 popup_get_selection.
5725 (create_and_show_dialog): Pass 1 for down_on_keypress to
5726 popup_get_selection.
5727
5728 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5729
5730 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5731 BLOCK/UNBLOCK_INPUT.
5732
5733 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5734
5735 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5736 specified.
5737
5738 2004-01-08 Kenichi Handa <handa@m17n.org>
5739
5740 * editfns.c (Fformat): Fix '&' to '&&'.
5741
5742 2004-01-08 Andreas Schwab <schwab@suse.de>
5743
5744 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5745 size if PSEUDOVECTOR_FLAG is set.
5746
5747 2004-01-07 Kenichi Handa <handa@m17n.org>
5748
5749 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5750
5751 * fontset.c (fontset_ref_via_base): Fix previous change.
5752
5753 2004-01-07 Kim F. Storm <storm@cua.dk>
5754
5755 * process.c (read_process_output): Only activate adaptive
5756 buffering if we read less than 256 bytes at a time.
5757
5758 2004-01-06 Kim F. Storm <storm@cua.dk>
5759
5760 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5761 object and image object. Return glyph width and height.
5762 (mode_line_string, marginal_area_string): Ditto.
5763
5764 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5765 (marginal_area_string): Fix prototypes.
5766
5767 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
5768 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
5769 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5770
5771 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5772 buffer_posn_from_coords, and marginal_area_string functions to
5773 include both string object and image object in the lispy position.
5774 Also add actual glyph width and height to position.
5775 (read_key_sequence): Use real buffer position from mouse
5776 event to find keymap property even when click is in marginal area.
5777
5778 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5779 mode_line_string and marginal_area_string functions to handle
5780 both string object and image object properties.
5781
5782 2004-01-06 Andreas Schwab <schwab@suse.de>
5783
5784 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5785 character.
5786
5787 2004-01-02 Andreas Schwab <schwab@suse.de>
5788
5789 * macterm.c (emacs_options, x_initialized, same_x_server):
5790 Remove unused (and duplicated) definitions.
5791
5792 2004-01-02 Kim F. Storm <storm@cua.dk>
5793
5794 * process.h (struct Lisp_Process): New members for adaptive read
5795 buffering: adaptive_read_buffering, read_output_delay, and
5796 read_output_skip.
5797
5798 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5799 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5800 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5801 (process_output_delay_count, process_output_skip): New vars.
5802 (Vprocess_adaptive_read_buffering): New variable.
5803 (make_process): Initialize adaptive read buffering members.
5804 (Fstart_process): Set adaptive_read_buffering member.
5805 (deactivate_process): Cleanup adaptive read buffering.
5806 (wait_reading_process_input): Temporarily omit delayed
5807 subprocesses from the set of file descriptors to read from;
5808 adjust the select timeout if we skipped any subprocesses.
5809 (read_process_output): Increase adaptive read buffering delay if
5810 we read less than a full buffer; reduce delay when we read a
5811 full buffer.
5812 (send_process): Simplify using local Lisp_Process var.
5813 Reset adaptive read buffering delay after write.
5814 (init_process): Initialize process_output_delay_count and
5815 process_output_skip.
5816 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5817
5818 2004-01-01 Jason Rumney <jasonr@gnu.org>
5819
5820 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
5821
5822 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5823
5824 * print.c (Ferror_message_string): Add hyperlink in the docstring
5825 to the definition of `signal' in the Elisp manual.
5826 * eval.c (Fsignal): Ditto.
5827
5828 2003-12-29 James Clark <jjc@jclark.com>
5829
5830 * fns.c (internal_equal): Return t for two NaN arguments.
5831
5832 2003-12-29 Richard M. Stallman <rms@gnu.org>
5833
5834 * data.c (store_symval_forwarding): Handle setting
5835 default-fill-column, etc., by changing the value in
5836 buffers that use the default.
5837
5838 * minibuf.c (Fset_minibuffer_window): Doc fix.
5839
5840 * fileio.c (choose_write_coding_system): Ignore auto_saving
5841 if using the visited file for auto saves.
5842 (Fwrite_region): Don't update SAVE_MODIFF
5843 if auto-saving in visited file.
5844
5845 2003-12-29 Kenichi Handa <handa@m17n.org>
5846
5847 * dispextern.h (face_font_available_p): Extern it.
5848
5849 * fontset.c (Voverriding_fontspec_alist): New variable.
5850 (lookup_overriding_fontspec): New function.
5851 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
5852 (fontset_font_pattern): Likewise.
5853 (regulalize_fontname): New function.
5854 (Fset_fontset_font): Call regulalize_fontname.
5855 (Fset_overriding_fontspec_internal): New function.
5856 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5857 Defsubr Sset_overriding_fontspec_internal.
5858
5859 * xfaces.c (face_font_available_p): New function.
5860
5861 2003-12-28 Richard M. Stallman <rms@gnu.org>
5862
5863 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5864 or if its name is nil.
5865
5866 * buffer.c (Fkill_buffer): Don't delete auto-save file
5867 if it's the same as the visited file.
5868
5869 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5870
5871 * coding.c (Fcheck_coding_system): Doc fix.
5872
5873 2003-12-28 Kim F. Storm <storm@cua.dk>
5874
5875 * Makefile.in (eval.o): Depend on dispextern.h.
5876
5877 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5878 image glyph using image's ascent.
5879 (mode_line_string): Return image glyph as object clicked on.
5880 Adjust y0 for image glyph using image's ascent.
5881
5882 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5883 (struct glyph): New members, ascent and descent. Used to save
5884 this glyph's ascent and descent, instead of having.
5885 (struct glyph): Declare member face_id using FACE_ID_BITS.
5886 (find_hot_spot): Add prototype.
5887
5888 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5889 (QCmap): Declare extern.
5890 (make_lispy_position): When position is inside image hot-spot,
5891 use hot-spot element's id as posn element.
5892
5893 * lisp.h (IMAGEP): New macro to test for image object type.
5894 (Qimage): Declare extern.
5895
5896 * macfns.c (Qimage): Remove extern (now in lisp.h).
5897 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5898
5899 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5900
5901 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5902 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5903
5904 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5905
5906 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5907
5908 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5909 pointer types.
5910 (Qrelative_width, Qalign_to): Remove unused variables.
5911 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5912 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5913 image maps.
5914 (x_y_to_hpos_vpos): Return glyph relative coordinates through
5915 new dx and dy args.
5916 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5917 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5918 than row's ascent and height, to get sensible height on tall rows.
5919 (build_desired_tool_bar_string): Remove Qimage extern.
5920 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5921 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5922 image glyph is alone on the last line.
5923 (append_glyph, append_composite_glyph, produce_image_glyph)
5924 (append_stretch_glyph): Set glyph's ascent and descent.
5925 (on_hot_spot_p): New function to check if position is inside an
5926 rectangular, circular, or polygon-shaped image hot-spot,
5927 (find_hot_spot): New function to search for image hot-spot.
5928 (Flookup_image_map): New defun to search for image hot-spot.
5929 (define_frame_cursor1): New aux function to determine frame pointer.
5930 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5931 Handle `pointer' text property and :pointer image property to
5932 control frame pointer shape. Detect image hot-spots for pointer
5933 and help_echo properties. Use define_frame_cursor1.
5934 (note_mouse_highlight): Use Vvoid_text_area_pointer.
5935 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
5936 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5937
5938 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5939
5940 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5941 (Qimage): Remove extern (now in lisp.h).
5942 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5943
5944 * xmenu.c (show_help_event): Remove unused code.
5945
5946 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5947 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5948 row's ascent and descent, to get a sensible height on tall rows.
5949
5950 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5951
5952 * minibuf.c (Fcompleting_read): Undo previous change.
5953
5954 2003-12-25 Lars Hansen <larsh@math.ku.dk>
5955
5956 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5957 Arguments GCPRO'ed in call to file name handler.
5958
5959 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5960
5961 * termcap.c (tgetst1): Scan for "%pN"; if all
5962 N are continuous in [1,9], remove all "%pN".
5963
5964 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5965
5966 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5967
5968 * xfaces.c (lface_fully_specified_p): Take into account that
5969 MAC OS always have unspecified stipple.
5970
5971 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5972
5973 * tparam.c (tparam1): Add handling for `%pN', which
5974 means use param N for the next substitution.
5975
5976 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5977
5978 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5979 In case `frame' is nil, consult the selected frame.
5980 (Fcolor_supported_p): Likewise.
5981
5982 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5983
5984 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5985 Doc fixes.
5986
5987 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5988 and an integer. Adapt the introductory comment accordingly.
5989 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5990 Doc fix.
5991 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5992 read_minibuf.
5993 (Fcompleting_read): Delete code moved into read_minibuf.
5994 (Ftest_completion): Make it handle obarrays and hash tables correctly.
5995
5996 2003-12-03 Kenichi Handa <handa@m17n.org>
5997
5998 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5999 encoding sequence.
6000
6001 2003-12-01 Kenichi Handa <handa@m17n.org>
6002
6003 * composite.c (syms_of_composite): Don't make the compostion hash
6004 table week.
6005
6006 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6007
6008 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6009 * textprop.c (Fget_char_property_and_overlay): New function.
6010 (syms_of_textprop): Defsubr it.
6011
6012 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6013
6014 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6015 to compile on terminal configuration.
6016
6017 * fileio.c (Fread_file_name): Check use_file_dialog also before
6018 calling Fx_file_dialog.
6019
6020 * fns.c: use_file_dialog: New variable.
6021 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6022
6023 2003-11-29 Kim F. Storm <storm@cua.dk>
6024
6025 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6026 (syms_of_msdos): Don't intern and staticpro them.
6027
6028 2003-11-27 Kim F. Storm <storm@cua.dk>
6029
6030 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6031 coordinates relative to glyph at posn. If glyph is an image,
6032 return that as object at posn. Callers changed.
6033 (mode_line_string, marginal_area_string): Calculate and return
6034 pixel coordinates relative to glyph. Callers changed.
6035
6036 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6037 (marginal_area_string): Fix prototypes.
6038 (window_box_left_offset, window_box_right_offset): Add prototypes.
6039
6040 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6041 Remove prototypes.
6042
6043 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6044
6045 * keyboard.c (make_lispy_position): Add x and y coordinates
6046 relative to the current glyph as 7th element of position.
6047 If glyph is an image, return it in the object element.
6048 (read_key_sequence): Skip checks for keymap property in cases
6049 where POSN_STRING is not a string (e.g. an image).
6050
6051 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6052 (Vshow_text_cursor_in_void): New variable.
6053 (glyph_to_pixel_coords): Don't use negative hpos.
6054 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6055 (append_stretch_glyph): Change ascent arg to be actual value
6056 in pixels rather than ratio to height. Callers changed.
6057 (calc_pixel_width_or_height): New aux function, implementing
6058 pixel based artihmetic for glyph widths and heights.
6059 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6060 :width, :height, :align-to, and :ascent, thus allowing these to
6061 be specified in pixels as well as multiples of characters.
6062 Don't produce stretch glyphs with zero width or height.
6063 (get_specified_cursor_type): Declare static.
6064 (get_window_cursor_type): Declare static. Add glyph arg to be
6065 able to know when cursor is on an image; always substitute
6066 hollow-box cursor for filled-box cursor on images, to avoid
6067 negative images and flicker when blinking the cursor.
6068 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6069 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6070 than vertical scroll-bar cursor in display margins.
6071 (note_mouse_highlight): Use non-text cursor rather than text
6072 cursor in fringes and over images in the text area.
6073 Use non-text cursor when mouse pointer is outside editable text,
6074 i.e. in the void after end-of-line or end-of-buffer; this was
6075 already done for W32, but is now standard for all systems --
6076 user can toggle show-text-cursor-in-void to get old behaviour.
6077 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6078 Vdisplay_pixels_per_inch.
6079
6080 2003-11-25 Andreas Schwab <schwab@suse.de>
6081
6082 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6083 EMACS_INT to not lose bits.
6084 (Ffillarray): Don't set bits beyond the size of a bool vector.
6085
6086 2003-11-25 Kim F. Storm <storm@cua.dk>
6087
6088 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6089 define this defun on systems that cannot use stderr as lvalue.
6090
6091 2003-11-24 Gerd Moellmann <gerd@gnu.org>
6092
6093 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6094 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6095 ld's default is incompatible with unexec.
6096
6097 2003-11-23 Kim F. Storm <storm@cua.dk>
6098
6099 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6100 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6101 (Fforce_window_update): New defun.
6102 (syms_of_window): Defsubr it.
6103 (Fset_window_margins, Fset_window_fringes): Doc fix.
6104
6105 * print.c (Fredirect_debugging_output): New defun.
6106 (syms_of_print): Defsubr it.
6107
6108 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6109
6110 * fns.c (Fset_char_table_parent): Doc fix.
6111
6112 2003-11-22 Kim F. Storm <storm@cua.dk>
6113
6114 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6115 for glyph clicked on, rather than (unused) pixel positions.
6116 (mode_line_string, marginal_area_string): Change X and Y args to
6117 pointers for returning actual row/column for glyph clicked on.
6118 Simplify and optimize loops.
6119
6120 * dispextern.h (mode_line_string, marginal_area_string):
6121 Update prototypes.
6122
6123 * keyboard.c (make_lispy_position): New function for generating
6124 mouse click positions from frame and pixel coordinates.
6125 Enhanced to return buffer position and actual row/column for
6126 events outside the text area using updated mode_line_string and
6127 marginal_area_string functions.
6128 Return left-fringe and right-fringe clicks as such, rather than
6129 clicks in text area.
6130 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6131 pixel_to_glyph_coords, as we never use the results.
6132 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6133 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6134 Eliminate unused code in WHEEL_EVENT handling.
6135 (make_lispy_movement): Use make_lispy_position.
6136
6137 * window.c (coordinates_in_window): Remove redundant tests.
6138 Fix returned X pixel value for left-margin.
6139
6140 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6141 mode_line_string and marginal_area_string parameters.
6142
6143 2003-11-22 Lars Hansen <larsh@math.ku.dk>
6144
6145 * w32.c (struct the_group, getgrgid): Add.
6146 * mac.c (struct my_group, getgrgid): Add.
6147
6148 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6149
6150 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6151
6152 2003-11-21 Lars Hansen <larsh@math.ku.dk>
6153
6154 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6155 include in call to file name handler. Optionally translate numeric
6156 UID and GID to strings. Update docstring.
6157 (directory_files_internal): Add parameter ID-FORMAT.
6158 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6159 include in call to file name handler and call to
6160 directory_files_internal. Update Docstring.
6161 (Fdirectory_files): Add dummy parameter in call to
6162 directory_files_internal.
6163 * lisp.h (Qinteger): Add.
6164 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6165 (Ffile_attributes): Add parameter.
6166 * data.c (Qinteger): Export.
6167
6168 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6169
6170 * fns.c (Freverse, Fnreverse): Doc fixes.
6171
6172 2003-11-19 Kim F. Storm <storm@cua.dk>
6173
6174 * xdisp.c (init_iterator): Initialize it->start to position
6175 before reseating (in case start position is invisible).
6176 (init_to_row_start): Set it->start to row-start.
6177 (redisplay_window): Accept optional_new_start if start position
6178 is invisible (in which case IT_CHARPOS overshoots PT).
6179 (display_line): Setup row->start from it->start (rather than
6180 it->current which is wrong if first char on line is invisible).
6181 When done, reseat it->start to it->current (= start of next row).
6182 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6183 is only partially visible.
6184
6185 * dispextern.h (struct it): New member start.
6186
6187 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6188
6189 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6190 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6191 of block_index outside of the macro call.
6192 (Fgarbage_collect): Remove null code.
6193
6194 * m/amdx86-64.h: Don't redefine XPNTR.
6195
6196 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6197 of VALMASK.
6198
6199 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6200 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6201 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6202
6203 * lisp.h (VALMASK): Only define for non-union type.
6204 (MARKBIT): Remove.
6205 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6206 (XTYPE): Define unconditionally.
6207 (XSETTYPE): Remove one more remnant.
6208 (EQ): Define differently for the union and non-union cases.
6209 (INTMASK): New bit mask.
6210 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6211 (GC_EQ): Delegate to EQ.
6212
6213 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6214
6215 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6216
6217 * xterm.c (x_window_to_scroll_bar): Move check of display to
6218 where window_id is compared.
6219
6220 2003-11-17 Kim F. Storm <storm@cua.dk>
6221
6222 * dispextern.h (struct it): New member first_vpos.
6223
6224 * xdisp.c (start_display): Set it->first_vpos.
6225 (try_window_id): Use first_vpos to start display in first _text_
6226 line if no reusable lines at start of window with header line.
6227
6228 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6229
6230 * w32fns.c (XPutPixel):
6231 * w32bdf.c (w32_init_bdf_font):
6232 * sunfns.c (sel_read):
6233 * process.c (Fmake_network_process):
6234 * frame.c (store_frame_param):
6235 * fontset.c (Fset_fontset_font):
6236 * emacs.c (shut_down_emacs):
6237 * ccl.c (ccl_driver): Remove period at end of error message.
6238
6239 * config.in: Regenerate.
6240
6241 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6242 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6243 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6244 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6245 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6246
6247 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6248
6249 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6250 (XTmouse_position, handle_one_xevent): Pass Display* to
6251 x_window_to_scroll_bar.
6252 (x_window_to_scroll_bar): Take a Display* argument.
6253 Check that display for frame is equal to Display* argument.
6254 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
6255 x_display_info_for_display instead. Use Display in xev instead
6256 of GDK_DISPLAY.
6257 (x_dispatch_event): Call x_display_info_for_display.
6258 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
6259 (x_connection_closed): Call xg_display_close for GTK.
6260 (x_term_init): Call xg_display_open for additional displays.
6261 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6262 for GTK.
6263
6264 * xmenu.c (single_menu_item, mouse_position_for_popup)
6265 (x_activate_menubar): Formatting adjustments.
6266
6267 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6268 adjustments.
6269
6270 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6271 (xg_display_close, xg_create_default_cursor)
6272 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6273 handling.
6274 (xg_left_ptr_cursor): Remove.
6275 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
6276 cursor here.
6277 (xg_win_to_widget): Take Display* argument, call
6278 gdk_xid_table_lookup_for_display.
6279 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6280 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6281 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6282 in FRAME_X_DISPLAY_INFO.
6283 (xg_get_scroll_id_for_window): Take Display* argument.
6284 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
6285 (xg_initialize): Remove xg_left_ptr_cursor.
6286
6287 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6288 Display* argument.
6289 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
6290
6291 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6292
6293 * xterm.c (x_detect_focus_change): Do not change focus frame for
6294 Enter/LeaveNotify if the current focus frame has explicit focus.
6295
6296 2003-11-14 Kim F. Storm <storm@cua.dk>
6297
6298 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6299 is active and first glyph is only partially visible.
6300
6301 2003-11-13 Kenichi Handa <handa@m17n.org>
6302
6303 * xdisp.c (select_frame_for_redisplay): New function.
6304 (redisplay_internal): Record also selected_frame for
6305 unwind_redisplay. Call select_frame_for_redisplay before
6306 redrawing each frame.
6307 (unwind_redisplay): Argument changed to a cons.
6308
6309 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6310
6311 * fns.c (Fstring_to_multibyte): Doc fix.
6312
6313 2003-11-11 Kenichi Handa <handa@m17n.org>
6314
6315 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6316
6317 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6318
6319 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6320 program specified positions.
6321
6322 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6323
6324 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6325
6326 2003-11-08 Kenichi Handa <handa@m17n.org>
6327
6328 * Makefile.in (lisp): Add kannada.el.
6329 (shortlisp): Likewise.
6330
6331 2003-11-07 Kenichi Handa <handa@m17n.org>
6332
6333 * coding.c (coding_allocate_composition_data):
6334 Reset coding->composing to COMPOSITION_NO.
6335 (coding_restore_composition): Detect invalid composition data.
6336 Give Fstring and Fvector a Lispy integer, not C int.
6337
6338 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6339
6340 * floatfns.c (Flogb): Don't use VALMASK.
6341
6342 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6343 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6344
6345 * lisp.h (XINT): Move the cast to clarify what is going on.
6346 (GCTYPEMASK, XSETTYPE): Remove.
6347 (XGCTYPE): Make it an alias of XTYPE.
6348
6349 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6350
6351 * xterm.c (x_term_init): Fix formatting.
6352
6353 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6354
6355 * gtkutil.h (xg_have_tear_offs): Declare.
6356 (xg_keep_popup, xg_did_tearoff): Remove.
6357
6358 * gtkutil.c: Remove variable xg_did_tearoff.
6359 (xg_have_tear_offs): New function.
6360 (tearoff_remove): Just decrease xg_detached_menus.
6361 (tearoff_activate): Increase xg_detached_menus and call
6362 tearoff_remove when tearoff is removed.
6363 (xg_keep_popup): Remove function.
6364 (create_menus): Give add_tearoff_p as argument to recursive
6365 call to create_menus.
6366 (xg_create_widget): Use variables instead of multiple
6367 strcmp. Tell create_menus to create tear off only for
6368 menu bar menus.
6369 (xg_update_menubar): Change title for a detached menu also.
6370 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6371 of deep_p.
6372 (xg_initialize): Initialize xg_detached_menus, remove
6373 initialization of xg_did_tearoff.
6374
6375 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6376 xg_have_tear_offs returns non-zero.
6377 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6378 call to xg_keep_popup.
6379
6380 2003-11-01 Andrew Choi <akochoi@shaw.ca>
6381
6382 * macterm.c (XTread_socket): Handle menubar selection and grow
6383 window only for mouseDown events.
6384
6385 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6386
6387 * xterm.c (x_term_init): For GTK part, increase x_initialized
6388 to check for more than one display. Use error instead of return 0.
6389
6390 2003-10-31 Andrew Choi <akochoi@shaw.ca>
6391
6392 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
6393 (copy_dysymtab): Call it.
6394
6395 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6396
6397 * eval.c (Fdefvaralias): Doc fix.
6398
6399 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
6400
6401 * data.c (Fsetplist): Doc fix.
6402
6403 2003-10-14 Lute Kamstra <lute@gnu.org>
6404
6405 * window.c (Fset_window_fringes): Clarify docstring.
6406
6407 2003-10-14 Kim F. Storm <storm@cua.dk>
6408
6409 * window.c (Fset_window_margins): Simplify arg checking.
6410
6411 2003-10-13 Richard M. Stallman <rms@gnu.org>
6412
6413 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6414 (print_partial_compiled_pattern): Replace assert with a printout.
6415 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6416
6417 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6418
6419 * window.c (Fset_window_margins): Allow only integers as args.
6420 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6421 Doc fixes.
6422
6423 2003-10-13 Lute Kamstra <lute@gnu.org>
6424
6425 * window.c (Fset_window_fringes): Elaborate docstring.
6426
6427 2003-10-12 Andrew Choi <akochoi@shaw.ca>
6428
6429 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
6430
6431 * s/darwin.h (GC_MARK_STACK): Define.
6432
6433 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6434
6435 * window.c (shrink_windows): New function.
6436 (size_window): Call shrink_windows to calculate window sizes when
6437 shrinking frame with more than one window.
6438
6439 2003-10-12 Kim F. Storm <storm@cua.dk>
6440
6441 * xdisp.c (compute_fringe_widths): Doc fix.
6442
6443 2003-10-08 Kenichi Handa <handa@m17n.org>
6444
6445 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
6446
6447 2003-10-07 Kenichi Handa <handa@m17n.org>
6448
6449 * coding.c (Qcoding_system_define_form): New variable.
6450 (syms_of_coding): Intern and staticpro it.
6451 (Fcheck_coding_system): Try to autoload the definition of
6452 CODING-SYSTEM.
6453
6454 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6455
6456 * fns.c (Frequire): Doc fix.
6457
6458 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6459
6460 * xfns.c (Fx_send_client_event): New function as a base for
6461 manipulating extended window manager hints.
6462 (Fx_send_client_event): Remove unused variable s.
6463
6464 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6465 that function is removed.
6466
6467 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6468 x/y_pixels_outer_diff.
6469 (x_check_expected_move): Calculate move_offset_left/top.
6470
6471 * xterm.h (struct x_output): New members: move_offset_top/left.
6472
6473 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
6474 call x_set_offset directly.
6475
6476 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6477
6478 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6479
6480 * xterm.c (x_delete_display): Free font names and font_encoder
6481 in dpyinfo->font_table.
6482
6483 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6484 Move xfree of font names to x_delete_display.
6485
6486 * xterm.h (struct x_display_info): New member, wm_type.
6487 (struct x_output): New members, expected_top/left and
6488 check_expected_move.
6489
6490 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6491 is received.
6492 (handle_one_xevent): Rename x_check_expected_move from
6493 x_check_fullscreen_move.
6494 (x_set_offset): Only add WM decoration sizes to modified_top/left
6495 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
6496 (x_check_expected_move): Rename from x_check_fullscreen_move.
6497 Removed fullscreen specific code. Use check_expected_move,
6498 expected_left/top instead. Also, set wm_type.
6499 (x_term_init): Initialize wm_type to unknown.
6500
6501 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6502 sizes to move_x/y.
6503
6504 2003-10-03 Kenichi Handa <handa@m17n.org>
6505
6506 * macterm.c (x_load_font): Clear all members of FONTP before start
6507 filling them.
6508
6509 2003-10-02 Kenichi Handa <handa@m17n.org>
6510
6511 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6512 before calling find_ccl_program_func. Call find_ccl_program_func
6513 only when fontp->font_encoder is not NULL.
6514
6515 * xterm.c (x_load_font): Clear all members of FONTP before start
6516 filling them.
6517
6518 2003-10-03 John Paul Wallington <jpw@gnu.org>
6519
6520 * keymap.c (map_keymap): Don't abort when binding is a vector.
6521
6522 2003-10-02 Jason Rumney <jasonr@gnu.org>
6523
6524 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6525 Sync dependencies with Makefile.in.
6526 (alloca.o): Remove.
6527
6528 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6529 filling them.
6530
6531 * w32bdf.c (w32_load_bdf_font): Likewise.
6532
6533 2003-09-30 Richard M. Stallman <rms@gnu.org>
6534
6535 * term.c (set_tty_color_mode): Calculate current_mode_spec
6536 regardless of value of VAL.
6537
6538 * intervals.c (graft_intervals_into_buffer):
6539 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6540 Handle over_used when splitting UNDER.
6541
6542 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6543
6544 * regex.c (regex_compile): Free the stack when returning from function.
6545
6546 2003-09-28 Kenichi Handa <handa@m17n.org>
6547
6548 * fontset.c (Finternal_char_font): Change return value to
6549 cons (FONT-NAME . GLYPH-CODE).
6550
6551 2003-09-28 Eli Zaretskii <eliz@gnu.org>
6552
6553 * term.c (tty_setup_colors): Treat any negative argument as -1.
6554
6555 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6556
6557 * process.c (send_process): Delete unused temp_buf.
6558
6559 2003-09-26 Dave Love <fx@gnu.org>
6560
6561 * xterm.c (x_bitmap_mask): Declare.
6562
6563 2003-09-25 Dave Love <fx@gnu.org>
6564
6565 * Makefile.in (fns.o): Depend on md5.h.
6566
6567 2003-09-25 Kim F. Storm <storm@cua.dk>
6568
6569 * window.c (set_window_buffer): Fix redisplay problems when
6570 switching between buffers with different display margin widths.
6571
6572 2003-09-23 Kim F. Storm <storm@cua.dk>
6573
6574 * process.c (set_socket_option): Fix :bindtodevice option.
6575 (Fset_network_process_option): Update process contact list when
6576 setting option succeeds.
6577 (Fmake_network_process): Doc fix.
6578
6579 2003-09-23 Dave Love <fx@gnu.org>
6580
6581 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
6582
6583 2003-09-22 Eli Zaretskii <eliz@gnu.org>
6584
6585 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6586 color mode is an integer number (it could be -1).
6587
6588 2003-09-22 Richard M. Stallman <rms@gnu.org>
6589
6590 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6591 in the case where OVER is longer than UNDER.
6592
6593 2003-09-22 Masatake YAMATO <jet@gyve.org>
6594
6595 * window.c (Fset_window_scroll_bars): Validate the value of
6596 `vertical_type'.
6597
6598 2003-09-21 Kim F. Storm <storm@cua.dk>
6599
6600 * frame.c (Vdefault_frame_scroll_bars): New variable.
6601 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6602 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6603 window-system default scroll bar position.
6604
6605 * window.c (Fwindow_scroll_bars): Doc fix.
6606
6607 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6608
6609 * xterm.c (x_set_offset): Take window manager decorations into account.
6610
6611 2003-09-19 Richard M. Stallman <rms@gnu.org>
6612
6613 * atimer.h: Don't include lisp.h.
6614 (P_): Define it here (as well as elsewhere).
6615
6616 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6617 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6618
6619 * data.c (Fvariable_binding_locus): New function.
6620 (syms_of_data): defsubr it.
6621 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6622
6623 2003-09-18 Dave Love <fx@gnu.org>
6624
6625 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6626
6627 * process.c (Fnetwork_interface_info): Fix type error.
6628 (Fnetwork_interface_list): Doc fix.
6629 (read_process_output, read_process_output): Delete unused var.
6630
6631 2003-09-17 Kim F. Storm <storm@cua.dk>
6632
6633 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6634 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6635 (Fnetwork_interface_info): Check that ifreq struct has required
6636 fields before accessing them; this requires that those fields are
6637 defined as macros, which may be too restrictive on some platforms,
6638 but it is better than failing on other platforms.
6639 (syms_of_process): Only defsubr above fns when included.
6640
6641 2003-09-17 Dave Love <fx@gnu.org>
6642
6643 * unexalpha.c: Don't include varargs.h.
6644
6645 2003-09-17 Kim F. Storm <storm@cua.dk>
6646
6647 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6648 for network process.
6649 (socket_options): Add `:' prefix to option names. Add optbit field.
6650 (set_socket_option): Remove no_error arg and special handling of s < 0.
6651 Return 1<<optbit for known option, 0 for unknown.
6652 Do not interpret 0 as false for boolean option (only nil).
6653 Pass failed option and value to report_file_error.
6654 (Fset_network_process_options): Replace by Fset_network_process_option.
6655 (Fset_network_process_option): New function to set just one option.
6656 (Fmake_network_process): Allow :coding arg to be a cons.
6657 Allow :server arg to be an integer specifying backlog size.
6658 Remove :options arg, and allow options to be specified directly
6659 as :KEY, VALUE pairs. Parse these options before binding socket.
6660 As before, :reuseaddr t is default for a server process, but this
6661 can now be disabled by specifying :reuseaddr nil.
6662 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6663 (init_process): Availability of network options is now checked with
6664 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6665 setup features.
6666 (syms_of_process): Fix defsubr's for the replaced functions.
6667
6668 2003-09-16 Dave Love <fx@gnu.org>
6669
6670 * Makefile.in: Depend on coding.h.
6671
6672 2003-09-14 Kim F. Storm <storm@cua.dk>
6673
6674 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6675 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6676 (syms_of_process): Defsubr them.
6677
6678 * config.in: Regenerate.
6679
6680 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6681
6682 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6683 * m/news-r6.h (XUNMARK): Remove.
6684 * m/mips.h (XUNMARK): Remove.
6685 * m/mips-siemens.h (XUNMARK): Remove.
6686 * m/iris4d.h (XUNMARK): Remove.
6687 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6688
6689 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6690
6691 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6692 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6693 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6694 (XTYPE): Use unsigned right-shift.
6695 (XMARKBIT, XMARK, XUNMARK): Remove.
6696
6697 * alloc.c (init_intervals, init_symbol, init_marker):
6698 Don't preallocate anything.
6699 (Fgarbage_collect, mark_object): Ignore the markbit.
6700
6701 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6702
6703 2003-09-08 Lute Kamstra <lute@gnu.org>
6704
6705 * xdisp.c (pint2hrstr): New function.
6706 (decode_mode_spec): Add `%i' and `%I' specs.
6707 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6708 for `mode-line-format'.
6709
6710 2003-09-07 Andreas Schwab <schwab@suse.de>
6711
6712 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6713 avoid warning.
6714
6715 2003-09-07 Eli Zaretskii <eliz@gnu.org>
6716
6717 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
6718
6719 2003-09-03 Kim F. Storm <storm@cua.dk>
6720
6721 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6722 change (superseded by 2002-08-30 change); the default blink-off
6723 cursor is now again "no cursor".
6724
6725 2003-09-01 Jason Rumney <jasonr@gnu.org>
6726
6727 * makefile.w32-in (alloca.o): Remove.
6728 (coding.o): Depend on intervals.h
6729 (emacs.o, bytecode.o): Depend on window.h
6730
6731 2003-09-01 Dave Love <fx@gnu.org>
6732
6733 * Makefile.in (alloca.o): Remove commands.
6734 (coding.o): Depend on intervals.h composite.h window.h.
6735 (emacs.o): Depend on window.h keyboard.h keymap.h.
6736 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6737 (bytecode.o): Depend on window.h.
6738
6739 2003-08-31 Jason Rumney <jasonr@gnu.org>
6740
6741 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6742 returned even when font_type is unknown.
6743
6744 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6745
6746 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6747
6748 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6749
6750 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6751 *_offset.
6752
6753 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6754 calculate pixel value.
6755
6756 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6757
6758 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6759 Don't tell redisplay display is accurate when it's actually been
6760 paused for pending input.
6761
6762 2003-08-29 Richard M. Stallman <rms@gnu.org>
6763
6764 * dispnew.c (adjust_glyph_matrix): Call window_box
6765 whenever W is nonzero.
6766
6767 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6768 (Fkill_local_variable, Fmake_variable_frame_local)
6769 (Flocal_variable_p, Flocal_variable_if_set_p):
6770 Use indirect_variable to trace thru variable aliases.
6771
6772 * config.in: Updated.
6773
6774 * callint.c (Fcall_interactively): Save and restore
6775 Vthis_command, Vthis_original_command, real_this_command,
6776 and current_kboard->Vlast_command.
6777
6778 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6779
6780 2003-08-29 Gerd Moellmann <gerd@gnu.org>
6781
6782 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6783
6784 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6785
6786 * coding.c (decode_coding_iso2022): Initialize local variable c2.
6787 (decode_coding_sjis_big5): Likewise.
6788
6789 2003-08-27 Jason Rumney <jasonr@gnu.org>
6790
6791 * w32.c (sys_pipe): Protect against file descriptor overflow.
6792
6793 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6794
6795 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6796
6797 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
6798
6799 * xfns.c (Vgtk_version_string): New variable.
6800 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6801
6802 2003-08-24 Eli Zaretskii <eliz@gnu.org>
6803
6804 * term.c (term_init): Remove `const' from buffer_size's declaration.
6805
6806 * Makefile.in (msdos.o): Depend on intervals.h.
6807
6808 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
6809
6810 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6811
6812 * xterm.h (struct x_display_info): New fields: client_leader_window
6813 and Xatom_wm_client_leader.
6814
6815 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6816 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6817
6818 * xsmfns.c (create_client_leader_window): New function.
6819 (x_session_initialize): Call create_client_leader_window, take
6820 dpyinfo as argument.
6821
6822 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6823
6824 * Makefile.in (xsmfns.o): Add more depenedencies.
6825
6826 2003-08-21 Dave Love <fx@gnu.org>
6827
6828 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6829
6830 2003-08-21 Kenichi Handa <handa@m17n.org>
6831
6832 * term.c (term_init): Fix previous change; don't rely on the
6833 length of `buffer' if TERMINFO is defined.
6834
6835 2003-08-20 Dave Love <fx@gnu.org>
6836
6837 * atimer.h: Include lisp.h.
6838
6839 * lisp.h (EMACS_LISP_H): New.
6840 (popup_activated_flag): Don't declare.
6841
6842 * alloca.c: Some merging with gnulib. Change logic and doc
6843 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6844 [DO_BLOCK_INPUT]: Don't include lisp.h.
6845 (xmalloc, xfree): Declare.
6846 (malloc): Don't declare.
6847
6848 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6849 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6850 atimer.h, blockinput.h.
6851
6852 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6853
6854 * alloca.s: Remove.
6855
6856 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6857
6858 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6859 use -lncurses.
6860
6861 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6862 FreeBSD returns something longer than 2044. Abort if the end of
6863 the buffer is overwritten.
6864
6865 2003-08-19 Miles Bader <miles@gnu.org>
6866
6867 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6868
6869 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6870
6871 * alloc.c (lisp_align_malloc): Check for memory full when
6872 allocating ablocks, which also avoids freeing a pointer into an
6873 ablocks structure.
6874
6875 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6876
6877 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
6878
6879 2003-08-16 Richard M. Stallman <rms@gnu.org>
6880
6881 * editfns.c (Fencode_time): Doc fix.
6882
6883 2003-08-16 David Ponce <david@dponce.com>
6884
6885 * fileio.c (Fwrite_region): Fix conditional expression to issue
6886 the right message.
6887
6888 2003-08-16 Juri Linkov <juri@jurta.org>
6889
6890 * syntax.c (Fforward_word): Argument changed to optional.
6891 Set default value to 1.
6892
6893 2003-08-15 Kenichi Handa <handa@m17n.org>
6894
6895 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6896 what autoscaled.
6897 (best_matching_font): Once we find a better scalable font, set
6898 non_scalable_has_exact_height_p to 1.
6899 (try_font_list): Call try_alternative_families to try any family
6900 with the given registry.
6901
6902 2003-08-09 Andreas Schwab <schwab@suse.de>
6903
6904 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6905
6906 * print.c (print_string): Fix printing of multibyte string with
6907 nontrivial printcharfun.
6908
6909 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6910
6911 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6912
6913 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6914
6915 2003-07-31 Kenichi Handa <handa@m17n.org>
6916
6917 * process.c (read_process_output): Return the actually read bytes
6918 instead of the result of decoding.
6919
6920 2003-07-31 Kenichi Handa <handa@m17n.org>
6921
6922 * xterm.h (struct x_bitmap_record): New member have_mask.
6923
6924 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6925 to 0.
6926 (x_create_bitmap_from_file): Likewise.
6927 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6928 (x_destroy_all_bitmaps): Likewise.
6929 (x_create_bitmap_mask): Set have_mask member to 1.
6930
6931 2003-07-30 Richard M. Stallman <rms@gnu.org>
6932
6933 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6934
6935 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6936
6937 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6938
6939 2003-07-29 Richard M. Stallman <rms@gnu.org>
6940
6941 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6942 Conditionalize XIM code on HAVE_XIM.
6943
6944 * fns.c (Fclear_string): New function.
6945 (syms_of_fns): defsubr it.
6946
6947 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6948
6949 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
6950
6951 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6952
6953 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6954
6955 * buffer.c (delete_all_overlays): New function.
6956 * buffer.h (delete_all_overlays): Declare.
6957 * coding.c (run_pre_post_conversion_on_str):
6958 * print.c (temp_output_buffer_setup):
6959 * fileio.c (Finsert_file_contents):
6960 * minibuf.c (get_minibuffer): Use it.
6961
6962 2003-07-22 Andrew Choi <akochoi@shaw.ca>
6963
6964 * unexmacosx.c (unexec_regions_sort_compare):
6965 (unexec_regions_merge): New functions. Sort and merge unexec
6966 regions before dumping them.
6967
6968 2003-07-22 Dave Love <fx@gnu.org>
6969
6970 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6971
6972 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6973
6974 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6975 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6976 MARKBIT as the gcmarkbit for strings.
6977
6978 2003-07-21 Richard M. Stallman <rms@gnu.org>
6979
6980 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6981
6982 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
6983 (syms_of_fns): Corresponding change.
6984
6985 * alloc.c (syms_of_alloc): Doc fixes.
6986
6987 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6988
6989 * s/netbsd.h: Use -Wl syntax.
6990
6991 2003-07-17 Richard M. Stallman <rms@gnu.org>
6992
6993 * xterm.c (xim_initialize): Redo 6/24 change.
6994
6995 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6996
6997 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6998 (Fswitch_to_buffer): Don't signal an error when switching to the same
6999 buffer in a dedicated window.
7000
7001 * alloc.c: Use bitmaps for cons, as was done for floats.
7002 (init_float, init_cons): Let the normal code allocate the first block.
7003 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7004 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7005 New macros.
7006 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7007 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7008 (live_cons_p): Check the pointer is not past the `conses' array.
7009 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7010 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7011 (survives_gc_p): Use CONS_MARKED_P and simplify.
7012 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7013
7014 2003-07-13 Paul Eggert <eggert@twinsun.com>
7015
7016 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7017 puts it into BSS instead, at least on Solaris 8 and 9.
7018 This is a valid optimization, and it may occur on other platforms,
7019 so Emacs should not assume that initializing a static variable to
7020 zero puts it into data.
7021 * alloc.c (pure, staticvec):
7022 Initialize these arrays to nonzero, so that they're not
7023 put into BSS by that optimization.
7024
7025 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7026
7027 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7028 (lisp_align_malloc): Use posix_memalign is available.
7029 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7030 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7031 for consistency. Update users.
7032
7033 2003-07-13 Richard M. Stallman <rms@gnu.org>
7034
7035 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7036
7037 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7038
7039 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7040 and use the Gtk+ function gtk_window_icon_from_file if available.
7041
7042 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7043 handle mask of bitmaps.
7044 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7045 mask property.
7046 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7047
7048 * xterm.h (xg_set_icon): New function.
7049
7050 2003-07-12 Paul Eggert <eggert@twinsun.com>
7051
7052 * unexelf.c (unexec): Consider a section to precede the .bss
7053 section if its addresses overlap that of .bss.
7054
7055 2003-07-12 Richard M. Stallman <rms@gnu.org>
7056
7057 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7058
7059 * config.in (HAVE_CRTIN): Add #undef.
7060 (INLINE): Really inline only if OPTIMIZE is defined.
7061
7062 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7063 END_FILES_1.
7064 (START_FILES_1, END_FILES_1): New macros (conditional).
7065 (LD_SWITCH_SYSTEM_TEMACS): Define.
7066
7067 * s/openbsd.h: Don't include bsd4-3.h.
7068 (TERMINFO): Define.
7069 (LIBS_TERMCAP): Define.
7070 (LD_SWITCH_SYSTEM): Define (two definitions).
7071
7072 * xfns.c: Include libpng/png.h instead of png.h.
7073
7074 2003-07-11 Andreas Schwab <schwab@suse.de>
7075
7076 * buffer.c (modify_overlay): Update prototype.
7077 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7078 Likewise.
7079
7080 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7081
7082 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7083 (struct interval): Move to intervals.h.
7084 (struct Lisp_Marker): Use EMACS_INT for position info.
7085 (forward_point): Remove prototype of defunct function.
7086 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7087 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7088 (syms_of_textprop, set_text_properties): Remove prototypes that are
7089 already in intervals.h.
7090
7091 * intervals.h (struct interval): Move from lisp.h.
7092 Use EMACS_INT for position and size info.
7093
7094 * coding.c: Include intervals.h for Fset_text_properties.
7095
7096 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7097 position and length information.
7098
7099 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7100
7101 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7102 position and length information.
7103
7104 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7105
7106 Change overlays_after and overlays_before so the overlays themselves
7107 are linked into lists, rather than using cons cells. After all each
7108 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7109 Lisp_Overlay for free and save up one cons cell per overlay (not
7110 to mention one indirection when traversing the list of overlay).
7111
7112 * lisp.h (struct Lisp_Overlay): New field `next'.
7113
7114 * buffer.h (struct buffer): Change overlays_before and overlays_after
7115 from Lisp lists of overlays to pointers to overlays.
7116
7117 * buffer.c (overlay_strings, recenter_overlay_lists):
7118 Fix typo in eassert in last commit.
7119 (unchain_overlay): New function.
7120 (add_overlay_mod_hooklist): Use AREF.
7121 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7122 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7123 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7124 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7125 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7126 Adjust to new type of overlays_(before|after).
7127
7128 * alloc.c (mark_object): Mark the new `next' field of overlays.
7129 (mark_buffer): Manually mark the overlays_(after|before) fields.
7130
7131 * coding.c (run_pre_post_conversion_on_str):
7132 * editfns.c (overlays_around):
7133 * xdisp.c (load_overlay_strings):
7134 * fileio.c (Finsert_file_contents):
7135 * indent.c (current_column):
7136 * insdel.c (signal_before_change, signal_after_change):
7137 * intervals.c (set_point_both):
7138 * print.c (temp_output_buffer_setup): Use new type for
7139 overlays_(before|after).
7140
7141 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7142
7143 * buffer.c (report_overlay_modification): Don't run hooks while
7144 traversing the list of overlays.
7145
7146 * buffer.h (struct buffer): Use an int for overlay_center.
7147 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7148 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7149
7150 * buffer.c (reset_buffer, recenter_overlay_lists)
7151 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7152 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7153 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7154 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7155 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7156
7157 * xdisp.c (fast_find_position): Remove unused var.
7158
7159 * cmds.c (Qexpand_abbrev): New sym.
7160 (syms_of_cmds): Initialize it.
7161 (internal_self_insert): Use it to call expand-abbrev.
7162
7163 2003-07-09 Kim F. Storm <storm@cua.dk>
7164
7165 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
7166 was configured with --without-xim.
7167 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
7168
7169 2003-07-07 Richard M. Stallman <rms@gnu.org>
7170
7171 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7172
7173 * alloc.c (Fgarbage_collect): Doc fix.
7174
7175 2003-07-07 Nozomu Ando <nand@mac.com>
7176
7177 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7178
7179 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7180
7181 * minibuf.c (read_minibuf): UNGCPRO before returning.
7182 (Ftry_completion, Fall_completions): Doc fix.
7183
7184 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7185 now that `floats' is not the last element of the struct any more.
7186
7187 2003-07-06 Jason Rumney <jasonr@gnu.org>
7188
7189 * w32term.h (ClipboardSequence_Proc): New type.
7190
7191 * w32fns.c (clipboard_sequence_fn): New variable.
7192 (globals_of_w32fns): Initialize it.
7193
7194 * w32select.c (last_clipboard_sequence_number): New variable.
7195 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7196 number if possible.
7197
7198 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7199
7200 * m/amdx86-64.h (MARKBIT):
7201 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7202 MARKBIT and ARRAY_MARK_FLAG any more.
7203
7204 * m/hp800.h (XSETMARKBIT):
7205 * m/sr2k.h (XSETMARKBIT):
7206 * lisp.h (XSETMARKBIT): Remove unused macro.
7207
7208 * lisp.h (mark_object): Change prototype.
7209
7210 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7211 (last_marked): Change accordingly.
7212 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7213 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7214 (mark_buffer): Update calls to mark_object.
7215
7216 * bytecode.c (mark_byte_stack):
7217 * fns.c (sweep_weak_table):
7218 * keyboard.c (mark_kboards): Update calls to mark_object.
7219
7220 2003-07-06 Jason Rumney <jasonr@gnu.org>
7221
7222 * alloc.c (struct ablock): Only include padding when there is some.
7223
7224 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7225
7226 * alloc.c (ALIGN): Add casts to simplify usage.
7227 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7228 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7229 (struct ablock, struct ablocks): New types.
7230 (free_ablock): New global var.
7231 (lisp_align_malloc, lisp_align_free): New functions.
7232 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7233 (struct float_block): Reorder and add gcmarkbits.
7234 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7235 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7236 (init_float, make_float): Use lisp_align_malloc.
7237 (free_float, live_float_p): Don't use `type' any more.
7238 (make_float): Use FLOAT_UNMARK to access to mark bit.
7239 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7240 Use FLOAT_MARKED_P to access the mark bit.
7241 (pure_alloc): Simplify use of ALIGN.
7242 (mark_object): Use FLOAT_MARK to access the mark bit.
7243 (gc_sweep): Use new macros to access the float's mark bit.
7244 (init_alloc_once): Init free_ablock.
7245
7246 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7247
7248 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7249
7250 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7251 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7252 (allocate_buffer): Move.
7253 (string_bytes): Don't mask markbit of `size_byte'.
7254 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7255 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7256 Use the `size' field of buffers (rather than the `name' field) for
7257 the mark bit, as is done for all other vectorlike objects.
7258 Use the new macros to access the mark bit of vectorlike objects.
7259
7260 2003-06-26 Richard M. Stallman <rms@gnu.org>
7261
7262 * puresize.h (BASE_PURESIZE): Increment base size.
7263
7264 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7265
7266 * xterm.c (xim_initialize): Undo previous change.
7267
7268 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7269
7270 * alloc.c (survives_gc_p): Simplify.
7271
7272 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7273
7274 * window.c (Fset_window_dedicated_p): Simplify.
7275 (display_buffer_1): Don't raise the win from which minibuf was entered.
7276 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7277 (Fminibuffer_selected_window): Simplify.
7278
7279 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7280
7281 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7282 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7283
7284 * insdel.c (check_markers, adjust_markers_for_delete)
7285 (adjust_markers_for_insert, adjust_markers_for_replace)
7286 (prepare_to_modify_buffer, RESTORE_VALUE):
7287 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7288 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7289 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7290 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7291 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7292 * editfns.c (save_excursion_restore, transpose_markers):
7293 * window.c (delete_window):
7294 * xdisp.c (message_dolog): Update for new types.
7295
7296 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7297
7298 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7299 (realize_default_face): Use default_face_done_p for the force_p
7300 argument to set_lface_from_font_name. Set default_face_done_p to one.
7301
7302 * frame.c (make_frame): Initialize default_face_done_p.
7303
7304 * frame.h (struct frame): Add default_face_done_p.
7305
7306 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7307 will be defined.
7308
7309 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7310
7311 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7312 Initialize the new field `gcmarkbit'.
7313 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7314 (mark_interval_tree): Don't mark the tree separately from the nodes.
7315 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7316 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7317 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7318
7319 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7320 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7321 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7322 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7323 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7324
7325 2003-06-24 Dave Love <fx@gnu.org>
7326
7327 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7328
7329 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7330 from gnulib.
7331
7332 2003-06-21 Richard M. Stallman <rms@gnu.org>
7333
7334 * fileio.c (Fwrite_region): Alternate messages
7335 for append and partial write.
7336
7337 * keyboard.c (read_key_sequence): When converting upcase fn key to
7338 downcase, update fkey and keytran so `backspace' gets translated.
7339
7340 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7341
7342 * process.c (wait_reading_process_input): Don't signal SIGIO
7343 in batch mode.
7344
7345 2003-06-17 Kenichi Handa <handa@m17n.org>
7346
7347 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7348 composite.h.
7349
7350 * xselect.c: Don't include charset.h, coding.h, composite.h.
7351 (Qforeign_selection): New variable.
7352 (syms_of_xselect): Intern and static it.
7353 (selection_data_to_lisp_data): Return a unibyte string made from
7354 data with `foreign-selection' text property.
7355
7356 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7357
7358 * termhooks.h (EVENT_INIT): New macro.
7359
7360 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7361
7362 * alloc.c (mark_kboards): Move to keyboard.c.
7363
7364 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7365 * xterm.c (x_dispatch_event):
7366 * xmenu.c (find_and_call_menu_selection):
7367 * xdisp.c (handle_tool_bar_click):
7368 * w32menu.c (menubar_selection_callback):
7369 * sysdep.c (kbd_input_ast, read_input_waiting):
7370 * msdos.c (dos_rawgetc):
7371 * macterm.c (mac_check_for_quit_char):
7372 * macmenu.c (menubar_selection_callback):
7373 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7374 data to kbd_buffer_store_event.
7375
7376 2003-06-15 Kim F. Storm <storm@cua.dk>
7377
7378 * xdisp.c (x_fix_overlapping_area): Always use area relative X
7379 to fix redisplay problem with tall characters (such as \e,AC\e(B).
7380
7381 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7382
7383 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7384
7385 2003-06-12 Kenichi Handa <handa@m17n.org>
7386
7387 * fileio.c (Fwrite_region): Save and restore restriction.
7388
7389 2003-06-12 Dave Love <fx@gnu.org>
7390
7391 * alloca.c (alloca): Declare arg as size_t.
7392
7393 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7394 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
7395
7396 2003-06-11 Dave Love <fx@gnu.org>
7397
7398 * search.c (shrink_regexp_cache): Use xrealloc.
7399 (syms_of_search): Use xmalloc.
7400
7401 2003-06-10 Kim F. Storm <storm@cua.dk>
7402
7403 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7404 Adjust phys_cursor.x to be relative to window box, rather than
7405 text area before checking -- to ensure cursor is redrawn when
7406 exposing window.
7407 Note: This also fixes a similar (older) bug if display margins
7408 are present.
7409
7410 2003-06-06 Kenichi Handa <handa@m17n.org>
7411
7412 * coding.c (encoding_buffer_size): If coding->type is
7413 coding_type_ccl, double magnification on CRLF encoding.
7414
7415 2003-06-06 Jason Rumney <jasonr@gnu.org>
7416
7417 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7418 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7419
7420 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7421 Mac too.
7422
7423 2003-06-05 Dave Love <fx@gnu.org>
7424
7425 * strftime.c: Merge changes from gnulib.
7426
7427 * mktime.c (__mktime_internal): Merge changes from gnulib
7428 involving year 69 and dst2.
7429
7430 Changes to merge with gnulib version and be consistent with the
7431 autoconf test:
7432
7433 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7434 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
7435 [HAVE_LOCALE_H]: Include locale.h.
7436 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7437
7438 2003-06-05 Kim F. Storm <storm@cua.dk>
7439
7440 * window.c (coordinates_in_window): Convert X and Y to window
7441 relative coordinates inside mode-line and header-line parts.
7442 Convert X and Y to margin area relative coordinates inside left
7443 and right display margin parts.
7444
7445 2003-06-05 Jason Rumney <jasonr@gnu.org>
7446
7447 * w32fns.c (add_system_logical_colors_to_map): New function.
7448 (Fx_open_connection): Use it.
7449
7450 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7451
7452 * process.c (allocate_pty): Revert part of the previous patch.
7453 (Faccept_process_output): Simplify.
7454
7455 2003-06-04 Jason Rumney <jasonr@gnu.org>
7456
7457 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7458
7459 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7460 (lispy_mouse_wheel_names): Remove.
7461 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7462 Always define drag_and_drop_syms.
7463
7464 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7465 WHEEL_EVENT events.
7466
7467 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7468
7469 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7470
7471 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7472
7473 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7474
7475 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7476 menu item label.
7477
7478 2003-06-03 Richard M. Stallman <rms@gnu.org>
7479
7480 * window.c (Fwindow_edges): Doc fix.
7481 (Fwindow_pixel_edges, Fwindow_inside_edges)
7482 (Fwindow_inside_pixel_edges): New functions.
7483 (syms_of_window): defsubr them.
7484
7485 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7486 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7487
7488 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7489
7490 * dispnew.c (Fsit_for): Don't lie about the number of args.
7491
7492 2003-06-02 Dave Love <fx@gnu.org>
7493
7494 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7495 (syms_of_callproc) <process-environment>: Doc fix.
7496
7497 * doc.c: Use HAVE_FCNTL_H, not USG5.
7498
7499 * xfaces.c (font_rescale_ratio): Fix for K&R.
7500
7501 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7502
7503 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7504
7505 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7506
7507 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7508 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7509
7510 * xterm.c (Qutf_8): Move to coding.c
7511
7512 * xmenu.c (ENCODE_MENU_STRING): New.
7513 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7514 Use it.
7515
7516 * coding.h (ENCODE_UTF_8): New.
7517 (Qutf_8): Declare.
7518
7519 * coding.c (Qutf_8): New.
7520 (syms_of_coding): Intern it.
7521
7522 * fns.c: Doc fixes.
7523
7524 2003-06-02 Kenichi Handa <handa@m17n.org>
7525
7526 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7527
7528 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7529
7530 * lread.c (openp): Make sure STR is a string.
7531
7532 2003-06-01 David Ponce <david@dponce.com>
7533
7534 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
7535 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7536
7537 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7538 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7539 (discard_mouse_events): Discard WHEEL_EVENT events too.
7540 (lispy_wheel_names, wheel_syms): New.
7541 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
7542 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
7543 (make_lispy_event): Add WHEEL_EVENT handler.
7544
7545 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7546 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7547 WHEEL_EVENT events.
7548
7549 2003-05-31 John Paul Wallington <jpw@gnu.org>
7550
7551 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7552 timer are in lisp/emacs-lisp.
7553
7554 2003-05-31 Kenichi Handa <handa@m17n.org>
7555
7556 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7557 region when a buffer is changed to unibyte.
7558
7559 * charset.h (VALID_LEADING_CODE_P): New macro.
7560 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7561
7562 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7563 is nonzero, accept multibyte form of eight-bit-control chars.
7564 (decode_composition_emacs_mule): Likewise.
7565 (decode_coding_emacs_mule): Likewise.
7566 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7567 multibyte form of eight-bit-control chars.
7568
7569 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7570 (Finsert_file_contents): If coding-system-for-read is bound to
7571 Qauto_save_coding, use the coding system emacs-mule with special
7572 setting for recovering a file.
7573 (choose_write_coding_system): On auto saving, use the coding
7574 system emacs-mule with special setting for auto saving.
7575 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7576
7577 2003-05-30 Kenichi Handa <handa@m17n.org>
7578
7579 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7580 properly before calling ccl_driver.
7581
7582 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
7583
7584 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
7585 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7586 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7587
7588 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7589
7590 * xfaces.c (realize_default_face): Do not abort if lface is
7591 non-existent - reverts change from 2003-05-19.
7592
7593 2003-05-29 Kenichi Handa <handa@m17n.org>
7594
7595 * coding.c (decode_coding_iso2022): Pay attention to the byte
7596 sequence of CTEXT extended segment, and retain those bytes as is.
7597
7598 2003-05-28 Kenichi Handa <handa@m17n.org>
7599
7600 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
7601 of CODING_REPLACEMENT_CHARACTER.
7602 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7603 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7604 check this flag on encoding.
7605 (encode_coding_sjis_big5):
7606 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7607 (Fset_terminal_coding_system_internal):
7608 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7609 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7610
7611 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
7612 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7613 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7614
7615 2003-05-28 Richard M. Stallman <rms@gnu.org>
7616
7617 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7618
7619 * eval.c (unbind_to): Move init of this_binding to separate statement.
7620
7621 2003-05-28 Kim F. Storm <storm@cua.dk>
7622
7623 * xdisp.c (expose_window): Fix error in calculation of
7624 window relative coordinates of area to redisplay.
7625
7626 2003-05-27 Jason Rumney <jasonr@gnu.org>
7627
7628 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7629
7630 2003-05-27 David Ponce <david@dponce.com>
7631
7632 Handle W32 mouse wheel events as mouse click events, like in X.
7633
7634 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7635 MOUSE_WHEEL_EVENT anymore.
7636
7637 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7638 Scrolling down/up the mouse wheel is respectively mapped to mouse
7639 button 4 and 5.
7640 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7641 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7642 WM_MOUSEWHEEL events.
7643
7644 2003-05-27 Andreas Schwab <schwab@suse.de>
7645
7646 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7647
7648 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7649 partially visible line.
7650
7651 * alloc.c (Fgarbage_collect): Fix last change.
7652
7653 2003-05-26 John Paul Wallington <jpw@gnu.org>
7654
7655 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7656
7657 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7658
7659 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7660 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7661
7662 * window.h (window_box_text_cols): Declare.
7663
7664 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7665 (x_draw_vertical_border): Remove unused var `f'.
7666
7667 * xfaces.c (build_scalable_font_name): Remove `unused var
7668 pixel_size' warning.
7669
7670 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7671
7672 * unexelf.c (unexec): Remove `unused var n' warning.
7673
7674 * strftime.c (my_strftime_localtime_r): Remove `defined but
7675 unused' warning.
7676
7677 * process.c (allocate_pty): Remove `unused var stb' and
7678 `cp might be used uninitialized' warnings.
7679
7680 * dispnew.c (mode_line_string): Remove unused var `f'.
7681
7682 * coding.c (find_safe_codings): Remove unused var `i'.
7683
7684 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7685
7686 * buffer.c (Fkill_buffer): Remove unused var `list'.
7687
7688 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7689
7690 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7691
7692 * frame.c (make_frame): Condition want_fullscreen with
7693 HAVE_WINDOW_SYSTEM.
7694
7695 2003-05-25 Juanma Barranquero <lektu@terra.es>
7696
7697 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7698 (Fwindow_scroll_bars): Fix typo in docstring.
7699
7700 2003-05-24 Kim F. Storm <storm@cua.dk>
7701
7702 The following changes serve several purposes:
7703
7704 1) Swap the position of fringes and display margins in windows, i.e.
7705 the fringes are now displayed between the margins and the text area
7706 (by default).
7707
7708 2) Allow fringe and scroll bar parameters to be set per-buffer and
7709 per-window (like display margins). Such settings are now stored
7710 in window configurations, preserved when frames are resized, and
7711 copied when windows are split vertically or horizontally.
7712 Several bugs related to display margins have been fixed.
7713
7714 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
7715
7716 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7717 rather than FRAME_WIDTH (FRAME_FONT (f)).
7718
7719 5) Introduce a consistent naming of variables, members and macros
7720 depending on whether their value is measured in pixels or in
7721 canonical columns/lines. Pixel dimensions are named *_width and
7722 *_height, while canonical columns/lines are named *_cols and
7723 *_lines. Pixel positions are named *_x and *_y, while column/line
7724 positions are named *_col and *_line.
7725
7726 6) Consolidate more of the X, W32, and MAC gui code by moving
7727 common data into struct frame, and generalize it for the non-gui
7728 case by using suitable defaults.
7729
7730 7) Cleanup and consolidate the macros controlling frame and window
7731 layout into frame.h and window.h, and generalize the use of the
7732 various window_box_* functions (enhanced to handle the new fringe
7733 position and the per-window fringe and scroll bar settings).
7734
7735 * frame.h (struct frame): Rename members height to text_lines,
7736 width to text_cols, window_height to total_lines, window_width to
7737 total_cols, new_height to new_text_lines, new_width to
7738 new_text_cols. All uses changed.
7739 (struct frame): New members which consolidate common members of
7740 x_output, w32_output, and mac_output structures: left_pos,
7741 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7742 win_gravity, size_hint_flags, border_width, internal_border_width,
7743 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7744 want_fullscreen. All uses changed.
7745 (struct frame): New member column_width contaning the canonical
7746 column width, analogue to line_height. All uses changed.
7747 (struct frame): Rename members scroll_bar_pixel_width to
7748 config_scroll_bar_width, and scroll_bar_cols to
7749 config_scroll_bar_cols. All uses changed.
7750 (struct frame): New member scroll_bar_actual_width which
7751 consolidates and renames the vertical_scroll_bar_extra member of
7752 x_output, w32_output, and mac_output structures. All uses changed.
7753 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
7754 from x/w32/macterm.h files. All uses changed. Also change code
7755 which referred to f->output_data...->pixel_height.
7756 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
7757 from x/w32/macterm.h files. All uses changed. Also change code
7758 which referred to f->output_data...->pixel_width.
7759 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
7760 Also change code which referred to f->height.
7761 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
7762 Also change code which referred to f->width.
7763 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7764 to update new_text_lines and new_text_cols members directly.
7765 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
7766 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
7767 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
7768 FRAME_SCROLL_BAR_COLS. All uses changed.
7769 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
7770 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
7771 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7772 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7773 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
7774 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7775 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7776 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
7777 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7778 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
7779 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7780 Unconditionally return line_height member (it now has proper value
7781 also for non-window frames).
7782 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
7783 return new column_width member (rather than the default font width).
7784 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
7785 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
7786 from x/w32/macterm.h files. Unconditionally return corresponding
7787 member of frame structure (they now have proper values also for
7788 non-window frames).
7789 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
7790 Calculate return value from left and right widths.
7791 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7792 internal_border_width member (has proper value for non-window frame).
7793 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7794 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7795 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7796 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7797 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
7798 consolidated from xterm.h, macterm.h, and w32term.h.
7799 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
7800 consolidated from xterm.h, macterm.h, and w32term.h.
7801 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
7802 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
7803 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
7804 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
7805 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
7806 consolidated from x/mac/w32term.h.
7807 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
7808 consolidated from x/mac/w32term.h.
7809 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
7810 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
7811 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
7812 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7813
7814 * window.h (struct window): Rename members left to left_col,
7815 top to top_line, height to total_lines, width to total_cols,
7816 left_margin_width to left_margin_cols, right_margin_width to
7817 right_margin_cols, orig_height to orig_total_lines, orig_top to
7818 orig_top_line. All uses changed.
7819 (struct window): New members left_fringe_width, right_fringe_width,
7820 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7821 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7822 New macros primarily used to simplify other macros.
7823 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7824 referred to XINT (w->width).
7825 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7826 referred to XINT (w->height).
7827 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7828 referred to XINT (w->width) * canon_x_unit.
7829 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7830 referred to XINT (w->height) * canon_y_unit.
7831 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7832 referred to XINT (w->left).
7833 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
7834 all uses and code that referred to XINT (w->left) + XINT (w->width).
7835 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7836 referred to XINT (w->top).
7837 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7838 referred to XINT (w->top) + XINT (w->height).
7839 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7840 referred to XINT (w->left) * canon_x_unit.
7841 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7842 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7843 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7844 referred to XINT (w->top) * canon_y_unit.
7845 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7846 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7847 (WINDOW_LEFTMOST_P): New macro.
7848 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
7849 All uses changed.
7850 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
7851 All uses changed.
7852 (WINDOW_BOX_LEFT_EDGE_X): Rename from
7853 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7854 Do not exclude left fringe width.
7855 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
7856 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7857 Do not exclude fringe widths.
7858 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7859 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7860 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7861 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7862 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7863 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7864 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7865 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7866 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7867 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7868 New macros. Change code which referenced corresponding
7869 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7870 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7871 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7872 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7873 allow per-window scroll-bar settings.
7874 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7875 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7876 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7877 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7878 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7879 FRAME_SCROLL_BAR_WIDTH.
7880 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
7881 (WINDOW_SCROLL_BAR_AREA_X): New macros.
7882 (WINDOW_HEADER_LINE_HEIGHT): Rename from
7883 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
7884 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
7885 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
7886 (WINDOW_BOX_TEXT_HEIGHT): Rename from
7887 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7888 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7889 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7890 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7891 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
7892 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7893 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
7894 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7895 (window_from_coordinates): Update prototype.
7896 (Fset_window_buffer): Update EXFUN.
7897 (set_window_buffer): Update prototype.
7898
7899 * dispextern.h (struct glyph_matrix): Rename members window_left_x
7900 to window_left_col, window_top_y to window_top_line. All uses
7901 changed.
7902 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7903 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7904 internal_border_width is now set to 0 for non-window frames.
7905 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7906 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7907 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7908 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7909 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7910 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7911 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7912 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7913 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
7914 Move to window.h and renamed [see window.h changes].
7915 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7916 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
7917 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7918 Use WINDOW_TOTAL_LINES.
7919 (frame_update_line_height): Remove prototype.
7920
7921 * buffer.h (struct buffer): Rename members measured in columns:
7922 left_margin_width to left_margin_cols, right_margin_width to
7923 right_margin_cols. All uses changed.
7924 New members left_fringe_width, right_fringe_width,
7925 fringes_outside_margins for per-buffer fringe settings.
7926 New members scroll_bar_width and vertical_scroll_bar_type for
7927 per-buffer scroll bar settings.
7928
7929 * buffer.c (init_buffer_once): Set buffer_defaults and
7930 buffer_local_flags for new buffer-local variables
7931 left_fringe_width, right_fringe_width, fringes_outside_margins,
7932 scroll_bar_width, and vertical_scroll_bar_type.
7933 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7934 default-* variables for them.
7935
7936 * dispnew.c: Make (many) trivial substitutions for renamed and
7937 new macros in dispextern.h, frame.h and window.h.
7938 (mode_line_string): No need to adjust width for mode lines, as it
7939 is already adjusted by the caller.
7940 (marginal_area_string): Handle fringes inside/outside margins.
7941
7942 * frame.c: Make (many) trivial substitutions for renamed and
7943 new macros in dispextern.h, frame.h and window.h.
7944 (make_frame): Initialize left_fringe_width, right_fringe_width,
7945 fringe_cols, scroll_bar_actual_width, border_width,
7946 internal_border_width, column_width, line_height, x_pixels_diff,
7947 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7948 members with values suitable for a non-window frames.
7949
7950 * gtkutil.c: Make (many) trivial substitutions for renamed and
7951 new macros in dispextern.h, frame.h and window.h.
7952
7953 * indent.c: Make (few) trivial substitutions for renamed and
7954 new macros in dispextern.h, frame.h and window.h.
7955
7956 * keyboard.c: Make (many) trivial substitutions for renamed and
7957 new macros in dispextern.h, frame.h and window.h.
7958 (make_lispy_event): Use window positions returned from
7959 window_from_coordinates when constructing the lisp event for
7960 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7961 (incorrect) values locally.
7962 (make_lispy_movement): Use window positions returned from
7963 window_from_coordinates when constructing the lisp event, rather
7964 than calculating (incorrect) values locally.
7965
7966 * scroll.c: Make (some) trivial substitutions for renamed and
7967 new macros in dispextern.h, frame.h and window.h.
7968
7969 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7970 scroll-bars.
7971
7972 * sysdep.c: Make (few) trivial substitutions for renamed and
7973 new macros in dispextern.h, frame.h and window.h.
7974
7975 * term.c: Make (some) trivial substitutions for renamed and
7976 new macros in dispextern.h, frame.h and window.h.
7977
7978 * widget.c: Make (few) trivial substitutions for renamed and
7979 new macros in dispextern.h, frame.h and window.h.
7980
7981 * window.c: Make (many) trivial substitutions for renamed and
7982 new macros in dispextern.h, frame.h and window.h.
7983 (make_window): Initialize new members
7984 left_margin_cols, right_margin_cols, left_fringe_width,
7985 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7986 and vertical_scroll_bar_type.
7987 (coordinates_in_window): Adapt to new fringe/margin positions
7988 and per-window fringes and scroll-bars.
7989 Fix bug related to incorrectly adjusting coordinates by
7990 frame's internal_border_width (the effect normally negible since
7991 the internal_border_width is typically 0 or 1 pixel, but very
7992 noticeable for an internal_border_width of e.g. 25 pixels).
7993 Upon successful return (other than ON_NOTHING), the coordinates
7994 are now always properly converted to window relative for the
7995 given display element.
7996 (window_from_coordinates): Add new parameters wx and wy to
7997 return the window relative x and y position in the returned
7998 window and part. A null arg means, don't return the position.
7999 All callers changed.
8000 (adjust_window_margins): New function which may reduce the width
8001 of the display margins if a window's text area is too small after
8002 resizing or splitting windows.
8003 (size_window): Fix bug that did not account for display margin
8004 widths when checking the minimum width of a window; use
8005 adjust_window_margins.
8006 (set_window_buffer): Call Fset_window_fringes and
8007 Fset_window_scroll_bars to setup per-window elements.
8008 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8009 existing display margin, fringe widths, and scroll bar settings
8010 (e.g. after splitting a window or resizing the frame).
8011 All callers changed.
8012 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8013 (Fsplit_window): Duplicate original window's display margin,
8014 fringe, and scroll-bar settings; then call Fset_window_buffer with
8015 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8016 window to only preserve the display margins in one of the windows.
8017 When splitting horizontally, call adjust_window_margins on both
8018 windows to ensure that the text area of the new windows is non too
8019 narrow. This fixes a bug which could cause Emacs to trap if the
8020 width of the split window was less than the width of the display
8021 margins.
8022 (window_box_text_cols): Rename from window_internal_width.
8023 All uses changed. Adapt to per-window fringes and scroll bars.
8024 Fix bug that caused vertical separator to be subtracted also on
8025 window frames. Fix another bug that did not reduce the returned
8026 value by the columns used for display margins.
8027 (window_scroll_line_based): Fix bug related to scrolling too much
8028 when display margins are present (implicitly fixed by the fix to
8029 window_box_text_cols).
8030 (scroll_left, scroll_right): Fix bug related to scrolling too far
8031 by default when display margins are present (implicitly fixed by
8032 the fix to window_box_text_cols).
8033 (struct saved_window): Rename members left to left_col, top to
8034 top_line, width to total_cols, height to total_lines, orig_top to
8035 orig_top_line, orig_height to orig_total_lines. All uses changed.
8036 New members left_margin_cols, right_margin_cols,
8037 left_fringe_width, right_fringe_width, fringes_outside_margins,
8038 scroll_bar_width, and vertical_scroll_bar_type for saving
8039 per-window display elements.
8040 (Fset_window_configuration): Restore display margins, fringes,
8041 and scroll bar settings. This fixes a bug which caused display
8042 margins to be discarded when saving and restoring a window
8043 configuration.
8044 (save_window_save): Save display margins, fringes, and scroll bar
8045 settings. This fixes a bug which caused display margins to be
8046 discarded when saving and restoring a window configuration.
8047 (Fset_window_margins): Do nothing if display margins are not
8048 really changed. Otherwise, call adjust_window_margins to ensure
8049 the text area doesn't get too narrow. This fixes a bug which
8050 could cause Emacs to trap if setting display margins wider than
8051 the width of the window.
8052 (Fset_window_fringes): New defun to allow user to specifically set
8053 this window's fringe widths and position vs. display margins.
8054 (Fwindow_fringes): New defun to return window's actual fringe settings.
8055 (Fset_window_scroll_bars): New defun to allow user to specifically
8056 set this window's scroll bar width and position.
8057 (Fwindow_scroll_bars): New defun to return window's actual scroll
8058 bar settings.
8059 (compare_window_configurations): Also compare display margins,
8060 fringes, and scroll bar settings.
8061 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8062
8063 * xdisp.c: Make (many) trivial substitutions for renamed and
8064 new macros in dispextern.h, frame.h and window.h.
8065 (window_box_width): Adapt to per-window fringes and scroll bars,
8066 and new fringe vs. display margin position. Note that returned
8067 value is no longer guaranteed to be a whole multiple of the frame
8068 column width, since per-window fringes may now be any width.
8069 (window_box_left_offset): New function like window_box_left, but
8070 value is relative to left border of window (rather than frame).
8071 (window_box_right_offset): New function like window_box_right,
8072 but value is relative to left border of window.
8073 (window_box_left): Adapt to per-window fringes and scroll bars,
8074 and new fringe vs. display margin position. Simplify by using
8075 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8076 (window_box): Allow null args for unnecessary return values;
8077 change/simplify relevant callers.
8078 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
8079 and new fringe vs. display margin position.
8080 Use window_box_left_offset and window_box_right_offset
8081 (get_glyph_string_clip_rect): Adapt to per-window fringes and
8082 scroll bars, and new fringe vs. display margin position.
8083 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
8084 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8085 fringe vs. display margin position.
8086 (hscroll_window_tree): Use window_box_width instead of window_box.
8087 (redisplay_window): Adapt to per-window scroll bars.
8088 (draw_glyphs): Rework to handle per-window fringes and scroll
8089 bars, and new fringe vs. display margin position.
8090 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
8091 (x_clear_end_of_line): Adapt to per-window fringes and scroll
8092 bars, and new fringe vs. display margin position. Fix bug which
8093 increased total width of full_width rows by width of scroll bars
8094 although window's total width already includes that.
8095 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8096 (expose_area): Simplify using window_box_left_offset.
8097 (x_draw_vertical_border): Handle per-window scroll bar settings,
8098 mixing windows with left, right and no scroll bars.
8099
8100 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8101 where it's used in x_list_fonts (for clarity).
8102 (frame_update_line_height): Remove unused function; functionality
8103 is now done directly when setting the default font in x_set_font.
8104
8105 * xfns.c: Make (many) trivial substitutions for renamed and
8106 new macros in dispextern.h, frame.h and window.h.
8107
8108 * xmenu.c: Make (some) trivial substitutions for renamed and
8109 new macros in dispextern.h, frame.h and window.h.
8110
8111 * xterm.h (struct x_output): Move members left_pos, top_pos,
8112 border_width, pixel_height, pixel_width, line_height,
8113 internal_border_width, vertical_scroll_bar_extra,
8114 left_fringe_width, right_fringe_width, fringe_cols,
8115 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8116 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8117 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8118 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8119 (PIXEL_WIDTH, PIXEL_HEIGHT)
8120 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8121 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8122 frame.h and renamed [see frame.h changes].
8123 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8124 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8125 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8126 and renamed [see frame.h changes].
8127
8128 * xterm.c: Make (several) trivial substitutions for renamed and
8129 new macros in dispextern.h, frame.h and window.h.
8130 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8131 (scroll_run): Adapt to new fringe position.
8132 (glyph_rect): Use window coordinates returned from
8133 window_from_coordinates rather than frame_to_window_pixel_xy.
8134 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8135 scroll-bars.
8136 (handle_one_xevent): Simplify a USE_GTK conditional.
8137 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8138 (fringes are now inside margins, i.e. always in the clipping area).
8139 All callers changed.
8140 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8141 directly, then call compute_fringe_widths. Don't call
8142 frame_update_line_height.
8143
8144 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8145 border_width, pixel_height, pixel_width, line_height,
8146 internal_border_width, vertical_scroll_bar_extra,
8147 left_fringe_width, right_fringe_width, fringe_cols,
8148 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8149 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8150 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8151 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8152 (PIXEL_WIDTH, PIXEL_HEIGHT)
8153 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8154 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8155 frame.h and renamed [see frame.h changes].
8156 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8157 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8158 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8159 and renamed [see frame.h changes].
8160
8161 * w32term.c: Make (several) trivial substitutions for renamed and
8162 new macros in dispextern.h, frame.h and window.h.
8163 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8164 (glyph_rect): Use window coordinates returned from
8165 window_from_coordinates rather than frame_to_window_pixel_xy.
8166 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8167 scroll-bars.
8168 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8169 (fringes are now inside margins, i.e. always in the clipping area).
8170 All callers changed.
8171 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8172 directly, then call compute_fringe_widths. Don't call
8173 frame_update_line_height.
8174
8175 * w32console.c: Make (few) trivial substitutions for renamed and
8176 new macros in dispextern.h, frame.h and window.h.
8177
8178 * w32fns.c: Make (many) trivial substitutions for renamed and
8179 new macros in dispextern.h, frame.h and window.h.
8180
8181 * w32menu.c: Make (few) trivial substitutions for renamed and
8182 new macros in dispextern.h, frame.h and window.h.
8183
8184 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8185 border_width, pixel_height, pixel_width, line_height,
8186 internal_border_width, vertical_scroll_bar_extra,
8187 left_fringe_width, right_fringe_width, fringe_cols,
8188 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8189 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8190 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8191 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8192 (PIXEL_WIDTH, PIXEL_HEIGHT)
8193 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8194 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8195 frame.h and renamed [see frame.h changes].
8196 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8197 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8198 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8199 and renamed [see frame.h changes].
8200
8201 * macterm.c: Make (several) trivial substitutions for renamed and
8202 new macros in dispextern.h, frame.h and window.h.
8203 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8204 (glyph_rect): Use window coordinates returned from
8205 window_from_coordinates rather than frame_to_window_pixel_xy.
8206 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8207 scroll-bars.
8208 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8209 (fringes are now inside margins, i.e. always in the clipping area).
8210 All callers changed.
8211 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8212 directly, then call compute_fringe_widths. Don't call
8213 frame_update_line_height.
8214
8215 * macfns.c: Make (several) trivial substitutions for renamed and
8216 new macros in dispextern.h, frame.h and window.h.
8217 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
8218
8219 * macmenu.c: Make (few) trivial substitutions for renamed and
8220 new macros in dispextern.h, frame.h and window.h.
8221
8222 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8223 and line_height, and use corresponding new members in struct
8224 frame. All uses changed.
8225 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8226 superseeded by corresponding macros in frame.h.
8227
8228 * msdos.c: Make (several) trivial substitutions for renamed and
8229 new macros in dispextern.h, frame.h and window.h.
8230 (IT_note_mouse_highlight): Use updated window coordinates returned
8231 by window_from_coordinates, rather than adjusting them locally.
8232 (internal_terminal_init): No need to initialize line_height here;
8233 it now defaults to 1.
8234
8235 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8236
8237 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8238 dropping `down' events.
8239
8240 2003-05-24 Andreas Schwab <schwab@suse.de>
8241
8242 * coding.c (find_safe_codings): Fix last change.
8243
8244 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8245
8246 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8247
8248 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8249
8250 * xdisp.c (display_mode_element): Increase max depth.
8251 Simplify the error handling code. Use a different error string
8252 for the case where we hit the depth limit.
8253
8254 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8255
8256 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8257
8258 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8259
8260 * intervals.c (get_local_map): Don't get char-property of previous
8261 point any more: get_pos_property already does it and better.
8262
8263 2003-05-21 Dave Love <fx@gnu.org>
8264
8265 [Merged from unicode branch.]
8266
8267 * xfns.c (x_window, x_window): Use use_xim.
8268
8269 * xterm.c (use_xim): Initialize.
8270 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8271 (x_term_init): Maybe set use_xim.
8272
8273 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8274
8275 2003-05-21 Jason Rumney <jasonr@gnu.org>
8276
8277 * unexw32.c (_start): Remove _fmode initialization.
8278
8279 * emacs.c (main) [WINDOWSNT]: Move it here.
8280
8281 2003-05-20 Dave Love <fx@gnu.org>
8282
8283 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8284
8285 2003-05-19 Richard M. Stallman <rms@gnu.org>
8286
8287 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8288 as value for QCfont attribute.
8289 (realize_default_face): lface should already exist; crash if not.
8290 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8291
8292 * frame.c (Fignore_event): Doc fix.
8293
8294 2003-05-19 Kenichi Handa <handa@m17n.org>
8295
8296 * coding.c (decode_coding_string): Handle post-read-conversion
8297 even if the coding doesn't require decoding.
8298
8299 2003-05-18 Richard M. Stallman <rms@gnu.org>
8300
8301 * callproc.c (Fcall_process_region): Doc fix.
8302
8303 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8304
8305 * lread.c (Fload): Print a message if package is obsolete.
8306
8307 * window.c (Fselect_window): Add optional `norecord' arg.
8308 (select_window_1): Fold into Fselect_window.
8309 (select_window_norecord): New function.
8310 (temp_output_buffer_show): Use it. Preserve current buffer.
8311
8312 * window.h (Fselect_window): Update declaration.
8313
8314 * window.c (delete_window, Fother_window, Fset_window_configuration):
8315 * minibuf.c (read_minibuf):
8316 * macterm.c (x_new_focus_frame):
8317 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8318 * callint.c (Fcall_interactively):
8319 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8320
8321 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8322
8323 2003-05-17 David Kastrup <dak@gnu.org>
8324
8325 * process.c (read_process_output): Back out change from 2003-03-09.
8326
8327 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8328
8329 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8330
8331 * textprop.c (text_property_stickiness): New arg `buffer'.
8332
8333 * intervals.h (text_property_stickiness): New arg `buffer'.
8334 (get_pos_property): Declare.
8335
8336 * intervals.c (get_local_map): Use get_pos_property, to obey
8337 stickiness and empty overlays.
8338 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8339 (merge_properties, intervals_equal, merge_properties_sticky):
8340 Use XCAR, XCDR.
8341 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8342
8343 2003-05-17 Richard M. Stallman <rms@gnu.org>
8344
8345 * minibuf.c (read_minibuf): If buffer is empty, record the default
8346 in the history.
8347 (Fminibuffer_complete_word): When deleting the overlap, take account
8348 of its real position.
8349
8350 * fns.c (map_char_table): Fix previous change.
8351
8352 * syntax.c (find_defun_start):
8353 When open_paren_in_column_0_is_defun_start,
8354 return beginning of buffer.
8355
8356 * lisp.h (map_char_table): Declare added arg.
8357
8358 * fns.c (map_char_table): New arg TABLE gets the master table.
8359 All calls changed.
8360 Process default and inheritance, resorting to Faref if necessary.
8361
8362 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8363 (Faccessible_keymaps): Pass new arg to map_char_table.
8364
8365 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8366
8367 * casetab.c (set_case_table): Pass new arg to map_char_table.
8368
8369 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8370
8371 * lisp.h (specbinding_func): New typedef.
8372 (struct specbinding): Use specbinding_func, to put the `volatile'
8373 in the right place.
8374
8375 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8376 to avoid GCC warning.
8377
8378 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
8379
8380 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
8381
8382 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8383
8384 * keyboard.c (apply_modifiers): Don't fill the other cache.
8385
8386 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8387
8388 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8389
8390 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8391 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8392 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8393 (Fset_window_configuration, Fcurrent_window_configuration)
8394 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8395 (Fpos_visible_in_window_p, mark_window_cursors_off)
8396 (window_internal_height, window_internal_width, Frecenter)
8397 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8398 (replace_buffer_in_all_windows, init_window_once, init_window)
8399 (syms_of_window, keys_of_window): Move from lisp.h.
8400 * lisp.h: Move window.c declarations to window.h.
8401
8402 * bytecode.c: Include window.h.
8403 * emacs.c: Include window.h.
8404
8405 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
8406 (keyremap): Add `parent' field.
8407 (keyremap_step): Use it. Remove `parent' argument.
8408 (read_key_sequence): Setup and use the new `parent' field.
8409
8410 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8411
8412 * keyboard.c (adjust_point_for_property): Ensure termination.
8413
8414 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8415
8416 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8417 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8418 duplicated handling of function-key-map and key-translation-map
8419 in read_key_sequence.
8420 (read_key_sequence): Use them.
8421
8422 * keyboard.c (adjust_point_for_property): Try harder to move point
8423 to the non-sticky end of an invisible property.
8424
8425 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8426 property intangible as well.
8427
8428 2003-05-10 Andreas Schwab <schwab@suse.de>
8429
8430 * xmenu.c (single_menu_item): Change last parameter to void* to
8431 avoid warning.
8432
8433 2003-05-09 Richard M. Stallman <rms@gnu.org>
8434
8435 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8436 Bind Qinhibit_modification_hooks to t so there will be no GC.
8437 Rename local `tem' to `save_deactivate_mark'.
8438
8439 * eval.c (specpdl_ptr): Declare volatile.
8440 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8441 before doing the work of unbinding it.
8442
8443 * lisp.h (struct specbinding): Declare elements volatile.
8444 (specpdl_ptr): Declare volatile.
8445
8446 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8447
8448 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8449 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8450
8451 2003-05-08 Dave Love <fx@gnu.org>
8452
8453 * coding.c (Vlast_coding_system_used): Doc fix.
8454
8455 2003-05-07 Jason Rumney <jasonr@gnu.org>
8456
8457 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8458 when system does not support them.
8459
8460 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8461
8462 * fileio.c (Qwrite_region_annotate_functions): New var.
8463 (build_annotations): Use it to process the global part of the hook.
8464 (syms_of_fileio): Init and staticpro it.
8465
8466 * keyboard.c (safe_run_hooks_error): Display a message instead of
8467 silently ignoring the error.
8468
8469 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8470
8471 * keyboard.c (input_available_signal): Mark static.
8472 (menu_bar_items): Use map_keymap.
8473 (menu_bar_one_keymap): Remove.
8474 (menu_bar_item): Adjust arglist (for use in map_keymap).
8475 Properly hide a second binding when not both are keymaps.
8476
8477 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8478 (single_keymap_panes): Use it and map_keymap.
8479 (single_menu_item): Use skp as well.
8480
8481 * keymap.h (map_keymap_function_t): New type.
8482 (map_keymap): Declare.
8483
8484 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8485 (map_keymap_call, Fmap_keymap): New functions.
8486 (syms_of_keymap): Defsubr map-keymap.
8487
8488 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8489
8490 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8491 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8492 ..._with_mnemonic functions for menu items.
8493
8494 2003-05-01 Kenichi Handa <handa@m17n.org>
8495
8496 * coding.c (coding_system_accept_latin_extra_p): Delete this
8497 function.
8498 (find_safe_codings): Pay attention to
8499 the property tranlsation-table-for-encode of each codings.
8500 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8501
8502 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8503
8504 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8505
8506 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8507
8508 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8509
8510 * lisp.h (CHECK): Wrap args in parenthesis.
8511 (specbind): Fix doc: symbol = Qnil is not supported any more.
8512
8513 * bytecode.c (Fbyte_code) <unwind-protect>:
8514 Use Fprogn rather than 0 and Qnil.
8515
8516 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8517 `double', and `triple' modifiers as well.
8518
8519 2003-04-30 Richard M. Stallman <rms@gnu.org>
8520
8521 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8522
8523 * alloc.c (abort_on_gc): New variable.
8524 (Fgarbage_collect): Abort if abort_on_gc is set.
8525
8526 * lisp.h (abort_on_gc): Add decl.
8527
8528 * eval.c (Fsignal): Clear abort_on_gc.
8529
8530 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
8531 Reinit FORMAT_START and END before second scan.
8532
8533 * xdisp.c (move_it_vertically_backward): Do the final big else
8534 even if nlines is 0.
8535
8536 * xdisp.c (redisplay_internal): Finish the per-frame loop
8537 even if redisplay is suspended by input.
8538
8539 2003-04-24 Andrew Choi <akochoi@shaw.ca>
8540
8541 * macterm.c (x_list_fonts): Return all fonts that match if
8542 maxnames = -1.
8543
8544 2003-04-25 Kenichi Handa <handa@m17n.org>
8545
8546 * syntax.c (skip_chars): Fix previous change.
8547
8548 2003-04-24 Kenichi Handa <handa@m17n.org>
8549
8550 * syntax.c (skip_chars): Make the code faster by using the common
8551 technique of *p, *stop, and *endp.
8552
8553 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8554
8555 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
8556 tool_bar_items so GTK tool bar expose callback does not access items
8557 being updated.
8558
8559 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8560
8561 * eval.c (Fapply): Undo last change and add a comment about why.
8562
8563 2003-04-18 Miles Bader <miles@gnu.org>
8564
8565 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8566 pickier PARSE_MULTIBYTE_SEQ.
8567
8568 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8569
8570 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8571 Use XCDR, XCAR, CONSP.
8572 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8573 (Fapply): Remove unnecessary GCPRO.
8574
8575 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8576
8577 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8578
8579 * buffer.h: Don't hardcode BEG==1.
8580
8581 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8582
8583 2003-04-16 Richard M. Stallman <rms@gnu.org>
8584
8585 * xdisp.c (try_window, try_window_reusing_current_matrix):
8586 When at end of window, set window_end_pos to Z-ZV.
8587
8588 * buffer.c (Foverlay_recenter): Doc fix.
8589
8590 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8591
8592 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8593
8594 2003-04-14 Andrew Choi <akochoi@shaw.ca>
8595
8596 * macterm.c (mac_check_for_quit_char): Don't check more often than
8597 once a second.
8598
8599 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8600
8601 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8602 specially, so that they can't hide an implicit switch-frame event.
8603 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8604 (head_table): Use switch-frame as event_kind for select-window.
8605 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8606
8607 * editfns.c (Fformat): Lisp_Object/int mixup.
8608 (format2): Remove unused var numargs.
8609
8610 2003-04-11 Kenichi Handa <handa@m17n.org>
8611
8612 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
8613 (Qafter_insert_file_set_coding): New variable.
8614 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8615 for after-insert-file-adjust-coding-function.
8616 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8617 instead of Vafter_insert_file_adjust_coding_function.
8618
8619 2003-04-11 Kenichi Handa <handa@m17n.org>
8620
8621 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8622
8623 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8624 string. Callers changed.
8625
8626 2003-04-10 Kenichi Handa <handa@m17n.org>
8627
8628 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
8629 (syms_of_fileio): Declare it as a lisp variable.
8630 (Finsert_file_contents):
8631 Call Vafter_insert_file_adjust_coding_function before calling
8632 decode-format.
8633
8634 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8635
8636 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8637 get GtkAdjustment as widget now is a GtkRange.
8638
8639 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8640 GtkRange to avoid memory leak.
8641
8642 2003-04-09 Kenichi Handa <handa@m17n.org>
8643
8644 * xfaces.c (Vface_font_rescale_alist): New variable.
8645 (struct font_name): New member rescale_ratio.
8646 (font_rescale_ratio): New function.
8647 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
8648 (better_font_p): On comparing point sized, pay attention to
8649 recale_ratio member of fonts.
8650 (build_scalable_font_name): Reflect font->rescale_ratio in the
8651 font name.
8652 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8653
8654 * lread.c (read1): Before calling index, check if the 2nd
8655 arguemnt is in ASCII range.
8656
8657 2003-04-08 Richard M. Stallman <rms@gnu.org>
8658
8659 * fileio.c (Ffile_symlink_p): Doc fix.
8660
8661 * editfns.c (Fformat): Translate positions of text properties
8662 in the format string to apply them to the result.
8663
8664 * fileio.c (Finsert_file_contents): Doc fix.
8665 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8666
8667 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
8668
8669 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8670
8671 2003-04-08 Steven Tamm <steventamm@mac.com>
8672
8673 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8674 that self-contained application finds libexec files.
8675
8676 2003-04-08 Kenichi Handa <handa@m17n.org>
8677
8678 * coding.c (code_convert_region_unwind):
8679 Set Vlast_coding_system_used to the argument.
8680 (code_convert_region): If post-read-conversion function changed
8681 the value of last-coding-sytem, keep the new value in
8682 coding->symbol so that it won't be overridden.
8683 (run_pre_post_conversion_on_str): Likewise.
8684 (coding_system_accept_latin_extra_p): New function.
8685 (find_safe_codings): Pay attention to characters registered in
8686 latin-extra-code-table.
8687
8688 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8689
8690 * Makefile.in (md5.o): Add missing dependency info.
8691
8692 2003-04-06 Richard M. Stallman <rms@gnu.org>
8693
8694 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8695
8696 * marker.c (verify_bytepos): New function.
8697
8698 * intervals.c (set_intervals_multibyte_1): When becoming
8699 multibyte, adjust right and left child sizes to a whole set of
8700 characters. If an interval gets zero total-length, delete it.
8701 If an interval consists of just its children, delete one of them.
8702
8703 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8704 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
8705
8706 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8707 All calls deleted.
8708 (lisp_malloc): Do the work here directly.
8709
8710 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8711
8712 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8713 char tables.
8714
8715 2003-04-04 Kenichi Handa <handa@m17n.org>
8716
8717 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8718 destructively change "%S" to "%s".
8719
8720 2003-04-03 Miles Bader <miles@gnu.org>
8721
8722 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8723 always set.
8724
8725 2003-04-01 Dave Love <fx@gnu.org>
8726
8727 * xfns.c (xpm_lookup_color): Grok "opaque".
8728
8729 2003-03-31 Andrew Choi <akochoi@shaw.ca>
8730
8731 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8732 parent window ID.
8733
8734 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8735
8736 * macterm.h (struct mac_output): Define x_pixels_diff and
8737 y_pixels_diff.
8738
8739 2003-03-31 Juanma Barranquero <lektu@terra.es>
8740
8741 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8742 blockinput.h and files included from it.
8743
8744 2003-03-31 Kim F. Storm <storm@cua.dk>
8745
8746 The following changes consolidates the common code related to
8747 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8748 files into frame.c.
8749
8750 * frame.c: Include blockinput.h.
8751 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8752 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8753 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8754 related vars here.
8755 (struct frame_parm_table, frame_parms): New table for describing
8756 frame parameters and their associated Q-variable.
8757 The order of the parameters corresponds to the sequence of the
8758 frame_parm_handlers table in redisplay_interface.
8759 (x_fullscreen_move, x_set_frame_parameters)
8760 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8761 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8762 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8763 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8764 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8765 Generic functions for processing of frame parameters.
8766 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8767 (display_x_get_resource, x_get_resource_string): Functions for
8768 generic access to X resources.
8769 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8770 (x_default_parameter, Fx_parse_geometry): Functions for generic
8771 access to frame parameters.
8772 (x_figure_window_size): Generic calculation of frame size.
8773 Fixed to add space needed for tool bar. Also setup size_hint_flags.
8774 (syms_of_frame): Intern and staticpro frame parameter variables.
8775 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8776 Defsubr Sx_get_resource and Sx_parse_geometry.
8777
8778 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8779 parameter related vars defined in frame.c.
8780 (EMACS_CLASS): Define here.
8781 (enum FULLSCREEN_*): Define here.
8782 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8783 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8784 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8785 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8786 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8787 (x_set_visibility, x_set_autoraise, x_set_autolower)
8788 (x_set_unsplittable, x_set_vertical_scroll_bars)
8789 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8790 (x_figure_window_size): Add prototypes.
8791
8792 * dispextern.h (frame_parm_handler): New typedef.
8793 (struct redisplay_interface): New member frame_parm_handlers.
8794 (enum resource_types): Move declaration here.
8795 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8796 (x_default_parameter): Add prototypes.
8797
8798 * window.c: Remove extern decl for frame parameter vars.
8799 (change_window_heights): New generic function;
8800 replaces x_change_window_heights. All users changed.
8801
8802 * window.h (change_window_heights): Add prototype.
8803
8804 * xfaces.c: Remove extern decl for frame parameter vars.
8805
8806 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8807 (struct w32_display_info): Fix type of xrdb member.
8808 (enum FULLSCREEN_*): Remove.
8809 Remove prototypes for generic functions (in frame.h).
8810
8811 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8812 parameters now defined in frame.h and frame.c.
8813 (Vx_resource_name): Remove. Use generic var.
8814 (enum x_frame_parms): Remove (bogus, unused enum).
8815 (check_x_display_info): Make non-static (for frame.c).
8816 (struct x_frame_parm_table, x_frame_parms): Remove.
8817 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8818 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8819 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8820 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8821 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8822 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8823 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8824 Remove. Use generic functions instead.
8825 (enum resource_types): Remove.
8826 (x_set_scroll_bar_default_width): New global function (for frame.c).
8827 (Fx_create_frame): Depend on x_figure_window_size to add space for
8828 toolbar and setup size_hint_flags.
8829 (x_frame_parm_handlers): New table for redisplay_interface.
8830 (syms_of_xfns): Don't intern/staticpro removed vars.
8831
8832 * xterm.c: Remove unnecessary extern declarations.
8833 (x_fullscreen_adjust): Remove. Use generic instead.
8834 (x_redisplay_interface): Add x_frame_parm_handlers member.
8835
8836 * w32gui.h (XrmDatabase): New (dummy) typedef.
8837
8838 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8839 (struct w32_display_info): Fix type of xrdb member.
8840 (enum FULLSCREEN_*): Remove.
8841 (x_fullscreen_adjust): Remove prototype.
8842
8843 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8844 parameters now defined in frame.h and frame.c.
8845 (Vx_resource_name): Remove. Use generic var.
8846 (enum x_frame_parms): Remove (bogus, unused enum).
8847 (check_x_display_info): Make non-static (for frame.c).
8848 (struct x_frame_parm_table, x_frame_parms): Remove.
8849 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8850 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8851 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8852 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8853 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8854 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8855 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8856 Remove. Use generic functions instead.
8857 (enum resource_types): Remove.
8858 (x_set_scroll_bar_default_width): New global function (for frame.c).
8859 (Fx_create_frame): Depend on x_figure_window_size to add space for
8860 toolbar and setup size_hint_flags.
8861 (w32_frame_parm_handlers): New table for redisplay_interface.
8862 (syms_of_w32fns): Don't intern/staticpro removed vars.
8863
8864 * w32term.c: Remove unnecessary extern declarations.
8865 (x_fullscreen_adjust): Remove. Use generic instead.
8866 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8867
8868 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8869
8870 * macgui.h (XrmDatabase): New (dummy) typedef.
8871
8872 * macterm.h (EMACS_CLASS): Remove.
8873 (struct mac_display_info): Add xrdb member.
8874 (struct mac_output): Add want_fullscreen member.
8875
8876 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8877 parameters now defined in frame.h and frame.c.
8878 (Vx_resource_name): Remove. Use generic var.
8879 (check_x_display_info): Make non-static (for frame.c).
8880 (struct x_frame_parm_table, x_frame_parms): Remove.
8881 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8882 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8883 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8884 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8885 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8886 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8887 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8888 Remove. Use generic functions instead.
8889 (enum resource_types): Remove.
8890 (x_set_scroll_bar_default_width): New global function (for frame.c).
8891 (mac_frame_parm_handlers): New table for redisplay_interface.
8892 (syms_of_macfns): Don't intern/staticpro removed vars.
8893
8894 * macterm.c: Remove unnecessary extern declarations.
8895 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8896
8897 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8898 included from it (atimer.h and systime.h).
8899
8900 2003-03-30 Andreas Schwab <schwab@suse.de>
8901
8902 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8903 parameters for shift_glyphs_for_insert.
8904
8905 * macterm.c (x_redisplay_interface): Add missing entry for
8906 draw_vertical_window_border.
8907
8908 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8909
8910 * fileio.c (Fexpand_file_name): In the no-handler case, after
8911 expanding, look again for a handler and invoke it. This is needed
8912 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8913 expansion produces "/user@host:/bar/../baz" which needs to be
8914 expanded again for the finame result "/user@host:/baz".
8915
8916 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8917
8918 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8919 of area to be redrawn for better performance.
8920
8921 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8922
8923 * xterm.c (take_vertical_position_into_account): Remove.
8924 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8925 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8926 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8927 (x_set_toolkit_scroll_bar_thumb): Simplify.
8928 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8929 (XTread_socket): Remove unused var.
8930 (x_make_frame_invisible): Replace goto with else.
8931
8932 * xdisp.c (set_vertical_scroll_bar): New fun.
8933 (redisplay_window): Use it.
8934
8935 2003-03-26 Richard M. Stallman <rms@gnu.org>
8936
8937 * xdisp.c (update_tool_bar): Recompute tool bar if
8938 update_mode_lines is set. Set w->update_mode_line
8939 only if the tool bar contents actually change.
8940 (update_menu_bar): Undo previous change.
8941
8942 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8943
8944 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8945 (xg_frame_set_char_size): Calculate scroll bar width before frame
8946 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8947 (xg_separator_p): Check for all documented separator types.
8948 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8949 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8950
8951 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8952 so tool bar gets updated.
8953
8954 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8955
8956 * data.c (store_symval_forwarding): Re-instate part of the code
8957 that was deleted with too much enthusiasm.
8958
8959 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8960
8961 * data.c (store_symval_forwarding): Delete special read-only
8962 hack for type == -1, since we now use ->constant instead.
8963 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8964
8965 * buffer.c (overlays_in): Declare static.
8966 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8967 `constant' field rather than the variable's `type' field.
8968
8969 2003-03-24 Andrew Choi <akochoi@shaw.ca>
8970
8971 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8972
8973 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8974
8975 * fns.c [MAC_OSX]: Do not redefine vector.
8976
8977 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8978
8979 * macgui.h: Remove definition of No_Cursor.
8980
8981 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
8982
8983 * xdisp.c: Define No_Cursor.
8984 (x_write_glyphs, notice_overwritten_cursor)
8985 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8986 (note_mouse_highlight): Remove Mac-specific code.
8987 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
8988
8989 2003-03-24 John Paul Wallington <jpw@gnu.org>
8990
8991 * xdisp.c (redisplay_window): If mini window's buffer is not
8992 empty, then redisplay it like other windows.
8993
8994 2003-03-23 Kim F. Storm <storm@cua.dk>
8995
8996 * w32term.c (w32_draw_window_cursor): Fix last change.
8997
8998 2003-03-23 Kenichi Handa <handa@m17n.org>
8999
9000 * alloc.c (make_string_from_bytes, make_specified_string):
9001 Add `const' for the arg CONTENTS.
9002
9003 * lisp.h (make_string_from_bytes, make_specified_string):
9004 Prototypes adjusted.
9005
9006 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9007
9008 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9009
9010 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9011 (XG_SB_RANGE): New define.
9012
9013 * gtkutil.c (xg_fixed_handle_expose): New function.
9014 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9015 expose events.
9016 (xg_update_scrollbar_pos): Take two more arguments, left and width
9017 of scroll bar including borders.
9018 Clear left and right part outside scroll bar separately as some
9019 themes have bars that are not an even number of pixels.
9020 Don't set reallocate_redraws, don't call
9021 gdk_window_process_all_updates.
9022 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9023 so no need to change it. Calculate size and value with XG_SB_RANGE.
9024
9025 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9026 Pass left and width of scroll bar including borders to
9027 xg_update_scrollbar_pos.
9028
9029 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9030
9031 * Makefile.in: Make sure space precedes end-of-line backslashes.
9032
9033 2003-03-22 Kim F. Storm <storm@cua.dk>
9034
9035 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9036 Add generic versions here. Remove system specific versions
9037 defined elsewhere.
9038
9039 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9040 Add prototypes.
9041
9042 * xterm.h (STORE_NATIVE_RECT): New macro.
9043
9044 2003-03-21 Kim F. Storm <storm@cua.dk>
9045
9046 * xdisp.c (get_glyph_string_clip_rect):
9047 Use FRAME_INTERNAL_BORDER_WIDTH.
9048
9049 * dispextern.h (struct redisplay_interface): Add active_p
9050 argument to draw_window_cursor member. All uses changed.
9051
9052 2003-03-21 Kim F. Storm <storm@cua.dk>
9053
9054 The following changes consolidate code related to writing and
9055 inserting glyphs, exposing frame, the tool bar, the mouse face,
9056 the output cursor, and help echo from xterm.c, w32term.c and
9057 macterm.c into xdisp.c. It also generalizes the use of the
9058 window_part enum instead of using numeric values throughout.
9059
9060 * xdisp.c: Consolidate gui-independent code here.
9061 Include keymap.h.
9062 (Qhelp_echo): Import.
9063 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9064 (help_echo_string, help_echo_window, help_echo_object)
9065 (previous_help_echo_string, help_echo_pos): Declare here.
9066 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9067 (estimate_mode_line_height): Define here. Handle windowing
9068 systems directly (without using estimate_mode_line_height_hook).
9069 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9070 (update_window_cursor, update_cursor_in_window_tree)
9071 (fast_find_position, fast_find_string_pos)
9072 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9073 (expose_area, expose_line, expose_overlaps, expose_window)
9074 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9075 declared static as they are only used locally in xdisp.c.
9076 (draw_glyphs): Rename from x_draw_glyphs and make static.
9077 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9078 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9079 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
9080 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
9081 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9082 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9083 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9084 (note_mouse_highlight, x_clear_window_mouse_face)
9085 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9086 (x_intersect_rectangles): New generic functions for use by xdisp.c
9087 and GUI front-ends.
9088 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9089 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9090
9091 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9092 (NativeRectangle): Generic typedef for rectangle type.
9093 (enum window_part): Move here from window.c.
9094 (struct redisplay_interface): New members flush_display_optional,
9095 define_frame_cursor, clear_frame_area, draw_window_cursor,
9096 draw_vertical_window_border, shift_glyphs_for_insert.
9097 Rename member clear_mouse_face to clear_window_mouse_face.
9098 (estimate_mode_line_height_hook): Remove hook.
9099 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9100 (tool_bar_item_info): Remove prototype.
9101 (help_echo_string, help_echo_window, help_echo_object)
9102 (previous_help_echo_string, help_echo_pos)
9103 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9104 (x_stretch_cursor_p, output_cursor): Declare extern.
9105 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9106 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9107 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9108 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9109 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9110 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9111 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9112 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9113 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9114 Add prototypes.
9115 (mode_line_string, marginal_area_string): Fix prototypes.
9116
9117 * window.c (enum window_part): Move to dispextern.h.
9118 (coordinates_in_window): Use enum window_part member names
9119 instead of numbers to describe return value.
9120 (struct check_window_data): Change part member to window_part.
9121 (check_window_containing): Return window_part unaltered.
9122 (window_from_coordinates): Change part arg from int to enum
9123 window_part. Allow part arg to be null. All users changed.
9124
9125 * window.h (window_from_coordinates): Fix prototype.
9126
9127 * term.c (estimate_mode_line_height): Move to xdisp.c.
9128
9129 * keyboard.c (make_lispy_event): Use enum window_part.
9130
9131 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9132 window_part instead of int in arg list. Users changed.
9133
9134 * xterm.h (No_Cursor): Declare as None for X.
9135 (struct mac_output): Replace member cross_cursor by hand_cursor.
9136
9137 * xterm.c: Remove consolidated defines and code.
9138 (BETWEEN): Remove unused macro.
9139 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9140 (x_define_frame_cursor, x_clear_frame_area)
9141 (x_draw_window_cursor): New X-specific functions for RIF.
9142 (x_redisplay_interface): Add new members.
9143
9144 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9145
9146 * w32term.h (struct w32_output): Remove cross_cursor member.
9147
9148 * w32term.c: Remove consolidated defines and code.
9149 (BETWEEN): Remove unused macro.
9150 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9151 (w32_define_frame_cursor, w32_clear_frame_area)
9152 (w32_draw_window_cursor): New W32-specific functions for RIF.
9153 (w32_redisplay_interface): Add new members.
9154
9155 * w32gui.h (No_Cursor): Define as 0 for W32.
9156 (XRectangle): Add X compatible rectangle type.
9157 (NativeRectangle): Declare as RECT for W32.
9158 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9159
9160 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9161
9162 * w32console.c: Remove consolidated defines and code.
9163
9164 * msdos.h (Display_Info): Add generic typedef.
9165
9166 * msdos.c: Remove consolidated defines and code.
9167 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9168
9169 * macterm.h (struct mac_output): Replace member cross_cursor by
9170 hand_cursor.
9171 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9172
9173 * macterm.c: Remove consolidated defines and code.
9174 (BETWEEN): Remove unused macro.
9175 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9176 (mac_define_frame_cursor, mac_clear_frame_area)
9177 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9178 (x_redisplay_interface): Add new members.
9179
9180 * macgui.h (No_Cursor): Define as 0 for Mac.
9181 (XRectangle): Add X compatible rectangle type.
9182 (NativeRectangle): Declare as Rect for Mac.
9183 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9184
9185 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9186 (x_set_cursor_color): Use x_display_and_set_cursor.
9187
9188 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
9189 included from it. Add dependency on keymap.h.
9190
9191 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9192
9193 2003-03-21 Kenichi Handa <handa@m17n.org>
9194
9195 * fileio.c (Fexpand_file_name): Fix previous change.
9196
9197 2003-03-19 Kenichi Handa <handa@m17n.org>
9198
9199 * fileio.c (Ffile_name_directory): Reconstruct file name by
9200 make_specified_string.
9201 (Ffile_name_nondirectory, Ffile_name_as_directory)
9202 (Fdirectory_file_name, Fexpand_file_name)
9203 (Fsubstitute_in_file_name): Likewise.
9204 (Fread_file_name): Compare decoded homedir with DIR and
9205 DEFAULT_FILENAME.
9206
9207 * alloc.c (make_specified_string): If NCHARS is negative, count
9208 the number of characters.
9209
9210 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9211
9212 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9213 all widgets.
9214
9215 * gtkutil.h: Removed xg_ignore_next_thumb.
9216
9217 2003-03-18 Kenichi Handa <handa@m17n.org>
9218
9219 * coding.c (Vchar_coding_system_table): Remove this variable.
9220 (Vcoding_system_safe_chars): New variable.
9221 (intersection): Remove this function.
9222 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9223 all codings in SAFE_CODINGS.
9224 (Ffind_coding_systems_region_internal): Adjust for the change of
9225 find_safe_codings. Get generic coding systems from
9226 Vcoding_system_safe_chars.
9227 (Fdefine_coding_system_internal): New function.
9228 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9229 Initialize and staticpro Vcoding_system_safe_chars.
9230
9231 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9232
9233 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9234 equal old values before updating.
9235
9236 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9237
9238 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9239
9240 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9241
9242 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9243 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9244 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9245 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9246 (xg_create_scroll_bar): Pass bar to button event callback.
9247 (xg_find_top_left_in_fixed): New function.
9248 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9249 whole scroll bar area. Get old position with
9250 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9251 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9252 dragging is in progress. Calculate whole as for Motif.
9253 Remove code that saved last values. Call gtk_range functions to
9254 set scroll bar sizes.
9255
9256 * gtkutil.h: Removed xg_ignore_next_thumb.
9257
9258 2003-03-17 Juanma Barranquero <lektu@terra.es>
9259
9260 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9261 and files included from it.
9262
9263 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9264
9265 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9266 multiple occurrences of the same keymap under different prefixes.
9267 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9268
9269 2003-03-16 Jason Rumney <jasonr@gnu.org>
9270
9271 * w32gui.h: Use HDC for Display.
9272
9273 * w32term.c (w32_encode_char): Prevent double-byte chars from
9274 crashing Emacs.
9275
9276 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9277 as binary.
9278
9279 2003-03-16 Juanma Barranquero <lektu@terra.es>
9280
9281 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9282
9283 2003-03-16 Kim F. Storm <storm@cua.dk>
9284
9285 The following changes consolidate some of the gui-independent
9286 parts of the processing and drawing of "glyph strings" from
9287 xterm.c, w32term.c, and macterm.c into xdisp.c.
9288
9289 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9290 21 bits (this reduces number of faces from 4M to 2M).
9291 Replace W32 specific w32_font_type member (2 bits) by generic
9292 font_type member (3 bits) for portability.
9293 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9294 (enum draw_glyphs_face): Define here.
9295 (struct glyph_string): Define here. Merge W32 and X versions.
9296 (struct redisplay_interface): New members per_char_metric,
9297 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9298 (VCENTER_BASELINE_OFFSET): Define here.
9299 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9300 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9301
9302 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9303 (dump_glyph_string): Moved here.
9304 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9305 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9306 (fill_composite_glyph_string, fill_glyph_string)
9307 (fill_image_glyph_string, fill_stretch_glyph_string)
9308 (left_overwritten, left_overwriting, right_overwritten)
9309 (right_overwriting, get_char_face_and_encoding)
9310 (set_glyph_string_background_width, compute_overhangs_and_x)
9311 (append_glyph, append_composite_glyph, produce_image_glyph)
9312 (take_vertical_position_into_account, append_stretch_glyph)
9313 (produce_stretch_glyph): New generic functions (based on X version).
9314 Call platform specific functions through rif.
9315 (INIT_GLYPH_STRING): New macro, hides W32 details.
9316 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9317 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9318 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9319 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9320 (notice_overwritten_cursor):
9321 Generic functions exported to platform modules. Users changed.
9322
9323 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9324 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9325 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
9326 New macros for consolidated code.
9327
9328 * xterm.c: Remove consolidated defines and code.
9329 (x_per_char_metric, x_encode_char)
9330 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9331 (x_redisplay_interface): Add new members.
9332
9333 * w32gui.h (Display): Add dummy typedef for consolidation.
9334 (XChar2b): Define alias for wchar_t for consolidation.
9335 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9336
9337 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
9338 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
9339 New macros for consolidation.
9340
9341 * w32term.c: Remove consolidated defines and code.
9342 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9343 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9344 (w32_per_char_metric): Change font_type arg to int for RIF.
9345 (w32_encode_char): Return int according to RIF requirements.
9346 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9347 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9348 x_get_glyph_overhangs.
9349 (w32_redisplay_interface): Add new members.
9350
9351 * macgui.h (XChar2b): Move typedef here for consolidation.
9352 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9353
9354 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9355 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9356 consolidation.
9357
9358 * macterm.c: Remove consolidated defines and code.
9359 (mac_per_char_metric): New function for RIF.
9360 (mac_encode_char): Adapt to new RIF requirements.
9361 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9362 (x_redisplay_interface): Add new members.
9363
9364 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9365
9366 * keymap.c (Vmenu_events): New var.
9367 (syms_of_keymap): Initialize it.
9368 (where_is_internal): Check more carefully what is a menu event.
9369
9370 2003-03-14 Richard M. Stallman <rms@gnu.org>
9371
9372 * lread.c (read1): After #!, exit loop on eof.
9373
9374 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9375
9376 * gtkutil.h: Add declaration for xg_frame_cleared.
9377
9378 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9379
9380 * gtkutil.c (struct xg_last_sb_pos): New structure.
9381 (handle_fixed_child): New function.
9382 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9383 and force a redraw on them.
9384 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9385 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9386 so we can avoid unneeded redraws.
9387 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9388 and force a redraw on the scroll bar.
9389 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9390 if xg_last_sb_pos shows the positions are up to date.
9391 (xg_frame_cleared): New function.
9392
9393 2003-03-13 Kenichi Handa <handa@m17n.org>
9394
9395 * coding.c (Fdetect_coding_region): Fix docstring.
9396 (Fdetect_coding_string): Fix docstring.
9397
9398 2003-03-13 Andreas Schwab <schwab@suse.de>
9399
9400 * gtkutil.c: Add prototype for create_menus.
9401
9402 * data.c (long_to_cons): Fix type of top.
9403
9404 * xselect.c (selection_data_to_lisp_data): Use int instead of
9405 long for an integer of size 4.
9406
9407 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
9408 (xg_tool_bar_help_callback): Likewise.
9409
9410 2003-03-12 Andreas Schwab <schwab@suse.de>
9411
9412 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9413
9414 2003-03-12 Kim F. Storm <storm@cua.dk>
9415
9416 The following changes consolidate the fringe handling from
9417 xterm.c, w32term.c, and macterm.c into xdisp.c.
9418
9419 * xdisp.c: Consolidate fringe handling code here.
9420 (left_bits, right_bits, continued_bits, continuation_bits)
9421 (ov_bits, zv_bits): Define fringe bitmaps.
9422 (fringe_bitmaps): New array holding fringe bitmaps.
9423 (draw_fringe_bitmap): Draw a specific bitmap; call display
9424 specific drawing routine via rif->draw_fringe_bitmap.
9425 (draw_row_fringe_bitmaps): Generic replacement for
9426 x_draw_row_fringe_bitmaps; all callers changed.
9427 (compute_fringe_widths): Generic replacement for
9428 x_compute_fringe_widths; all callers changed.
9429
9430 * dispextern.h (enum fringe_bitmap_type): Define here.
9431 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9432 (fringe_bitmaps): Declare extern.
9433 (struct redisplay_interface): New member draw_fringe_bitmap.
9434 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9435
9436 * xterm.c: Remove generic fringe code.
9437 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9438 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9439
9440 * w32term.c: Remove generic fringe code.
9441 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9442 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
9443
9444 * macterm.c: Remove generic fringe code.
9445 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9446 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9447
9448 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9449
9450 * print.c (Fprin1_to_string): Return unibyte string if possible.
9451
9452 2003-03-09 David Kastrup <dak@gnu.org>
9453
9454 * process.c (read_process_output): We have allocated enough space
9455 for readmax and carryover, so actually use the alloted space.
9456
9457 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9458
9459 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9460 toolkit scrollbar click.
9461
9462 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9463 for USE_GTK.
9464 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9465 also.
9466 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9467 scrollbar and control is pressed, call x_scroll_bar_handle_click.
9468
9469 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
9470
9471 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9472 (xg_tool_bar_item_expose_callback): New function.
9473 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9474 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9475 on the tool bar widget.
9476 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9477 to expose on the tool bar item widgets.
9478
9479 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9480
9481 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
9482 struct image* when deciding to update (struct image* may have been
9483 deleted from the image cache).
9484
9485 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9486 the event isn't for a frame (i.e. for dialogs).
9487
9488 2003-03-07 Kenichi Handa <handa@m17n.org>
9489
9490 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9491 composition components reaches the limit, terminate composing.
9492 (COMPOSITION_OK): New macro.
9493 (detect_coding_iso2022): Use it if an escape sequence for
9494 composition is found.
9495 (coding_restore_composition): Adjust the number of composition
9496 components if it is not sane.
9497
9498 2003-03-06 Juanma Barranquero <lektu@terra.es>
9499
9500 * w32term.h (struct w32_display_info): Add xrdb member to support
9501 passing resources via -xrm on Windows.
9502
9503 * w32term.c (w32_make_rdb): New function.
9504 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9505 struct. Delete leftover code.
9506
9507 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9508 for resources passed on the command line.
9509
9510 * w32reg.c (w32_get_rdb_resource): New function.
9511 (x_get_string_resource): Use it, so resources passed with -xrm
9512 supercede the ones in the registry.
9513
9514 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9515
9516 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9517 instead of x_top_window_to_frame.
9518
9519 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9520
9521 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9522 when restarting Emacs.
9523
9524 2003-03-03 Richard M. Stallman <rms@gnu.org>
9525
9526 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9527 to run kill-buffer-query-functions.
9528 (Qkill_buffer_query_functions): New var.
9529 (syms_of_buffer): Init and staticpro it.
9530
9531 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9532
9533 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9534
9535 2003-02-25 Kim F. Storm <storm@cua.dk>
9536
9537 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9538 If centering point failed to make whole line visible and vscroll
9539 is non-zero, disable vscroll and try centering point again.
9540
9541 * lread.c (read1): Accept `single space' syntax like (? x).
9542
9543 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9544
9545 * keyboard.c (cancel_hourglass_unwind): Surround with
9546 #ifdef HAVE_X_WINDOWS
9547
9548 2003-02-25 Kenichi Handa <handa@m17n.org>
9549
9550 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9551 process only when "subprocesses" is defined.
9552
9553 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9554
9555 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9556
9557 2003-02-24 Juanma Barranquero <lektu@terra.es>
9558
9559 * callint.c (fix_command): Declare as static void and move before
9560 Fcall_interactively.
9561
9562 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9563 (syms_of_xdisp): Don't initialize Qwhen.
9564
9565 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9566
9567 * keyboard.c (cancel_hourglass_unwind): New function.
9568 (command_loop_1): Cancel hourglass with unwind-protect.
9569
9570 2003-02-23 Richard M. Stallman <rms@gnu.org>
9571
9572 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9573 Detect (when ... (region-beginning)) etc.
9574 (Fcall_interactively): Call fix_command.
9575 (Qif, Qwhen): New variables.
9576 (syms_of_callint): Init and staticpro them.
9577
9578 * regex.c (print_partial_compiled_pattern): Output to stderr.
9579
9580 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9581
9582 * dired.c (directory_files_internal): Don't expand directory.
9583 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9584 instead. From Lars Hansen <larsh@math.ku.dk>.
9585
9586 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9587
9588 * fns.c (string_to_multibyte): Remove unused var i.
9589 (Flanginfo): Fix int/Lisp_Object mixup.
9590 (void_call2): New fun.
9591 (Fmap_char_table): Use it in place of call2.
9592
9593 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9594
9595 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9596
9597 * keymap.c (copy_keymap_1): Make it static.
9598
9599 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9600
9601 2003-02-22 David Ponce <david@dponce.com>
9602
9603 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9604
9605 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9606
9607 * process.h: Removed subtty field from struct Lisp_Process.
9608
9609 * process.c (create_process): Remove setting of subtty.
9610 (emacs_get_tty_pgrp): New function.
9611 (Fprocess_running_child_p, process_send_signal):
9612 Call emacs_get_tty_pgrp instead of ioctl.
9613 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9614
9615 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9616
9617 * keymap.c (Fdefine_key): Doc fix.
9618
9619 2003-02-21 Juanma Barranquero <lektu@terra.es>
9620
9621 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9622
9623 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9624 POLLING_PROBLEM_IN_SELECT.
9625
9626 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9627 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9628
9629 * s/hpux10-20.h: New file.
9630
9631 * process.c (wait_reading_process_input):
9632 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
9633
9634 2003-02-20 Kenichi Handa <handa@m17n.org>
9635
9636 * fontset.c (check_fontset_name): If NAME is nil, return the
9637 default fontset.
9638 (override_font_info): New function.
9639 (Fset_fontset_font): Document that NAME nil means the default fontset.
9640 (Ffontset_info): If FONTSET is not the default fontset, merge
9641 FONTSET onto the copy of the default fontset, and work on that
9642 copy. Document that NAME nil means the default fontset.
9643 (Ffontset_font): Document that NAME nil means the default fontset.
9644
9645 * process.c (setup_process_coding_systems): If the process's
9646 in/out descriptor is -1, do nothing.
9647
9648 2003-02-19 Andreas Schwab <schwab@suse.de>
9649
9650 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9651 Add prototypes.
9652
9653 2003-02-19 Kenichi Handa <handa@m17n.org>
9654
9655 * xfaces.c (try_alternative_families): Try all scalable fonts if
9656 Vscalable_fonts_allowed is not Qt.
9657
9658 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9659
9660 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9661
9662 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9663
9664 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9665 names.
9666
9667 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
9668 (sorted_font_list): Move allocation of struct font_name to
9669 x_face_list_fonts.
9670 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9671 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9672
9673 2003-02-18 Kim F. Storm <storm@cua.dk>
9674
9675 * lread.c (read1): Fix last change.
9676 "`" is not always special. Allow "?" after a character constant.
9677
9678 2003-02-18 Andrew Choi <akochoi@shaw.ca>
9679
9680 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9681
9682 2003-02-18 Andreas Schwab <schwab@suse.de>
9683
9684 * window.c (window_scroll_pixel_based): Move outside a
9685 multi-glyph character before setting new window start.
9686
9687 * xdisp.c (in_display_vector_p): New function.
9688 * dispextern.h (in_display_vector_p): Declare.
9689
9690 2003-02-18 Kim F. Storm <storm@cua.dk>
9691
9692 * lread.c (read1): Fix and relax read syntax.
9693 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9694 Only recognize "," after dotted-pair dot if inside backquote.
9695 Never include "`" or "," (inside backquote) in a symbol.
9696 Allow dotted-pair dot after a character constant.
9697 Allow "`" and "," (inside backquote) after a character constant.
9698
9699 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9700
9701 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9702 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9703 icons. Set name of tool bar to emacs-toolbar.
9704 (update_frame_tool_bar): Connect expose event to
9705 xg_tool_bar_expose_callback.
9706
9707 2003-02-17 Richard M. Stallman <rms@gnu.org>
9708
9709 * keyboard.c (this_command_key_count_reset): New variable.
9710 Initiatize to 0 where this_command_key_count is set.
9711 (read_char): Save and restore this_command_key_count_reset
9712 around input method code.
9713 (read_char): If this_command_key_count_reset, echo reread commands.
9714 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9715
9716 2003-02-17 Kenichi Handa <handa@m17n.org>
9717
9718 * fns.c (string_to_multibyte): Always return a multibyte string.
9719
9720 2003-02-16 Jason Rumney <jasonr@gnu.org>
9721
9722 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9723 Negative max_fonts parameter means list all.
9724
9725 2003-02-14 Dave Love <fx@gnu.org>
9726
9727 * fns.c (Flanginfo): Doc fix.
9728
9729 2003-02-13 Kim F. Storm <storm@cua.dk>
9730
9731 * lread.c (read_escape): Interpret \s as a SPACE character, except
9732 for \s-X in a character constant which still is the super modifier.
9733 (read1): Signal an `invalid read syntax' error if a character
9734 constant is immediately followed by a digit or symbol character.
9735
9736 * search.c (Fmatch_data): Doc fix. Explicitly state that
9737 match-data is undefined if last search failed.
9738
9739 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9740 All uses changed.
9741
9742 2003-02-12 Juanma Barranquero <lektu@terra.es>
9743
9744 * eval.c (Fdefmacro): Fix typo.
9745
9746 2003-02-12 Kim F. Storm <storm@cua.dk>
9747
9748 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9749 macro is a string, convert meta modifiers in string when copying
9750 the string into a vector.
9751
9752 2003-02-11 Kim F. Storm <storm@cua.dk>
9753
9754 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9755
9756 2003-02-11 Kenichi Handa <handa@m17n.org>
9757
9758 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9759
9760 2003-02-10 Kim F. Storm <storm@cua.dk>
9761
9762 * process.c: Doc fixes.
9763 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9764
9765 2003-02-10 Kenichi Handa <handa@m17n.org>
9766
9767 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9768
9769 * process.c (QCfilter_multibyte): New variable.
9770 (setup_process_coding_systems): New function.
9771 (Fset_process_buffer, Fset_process_filter):
9772 Call setup_process_coding_systems.
9773 (Fstart_process): Initialize the member `filter_multibyte' of
9774 struct Lisp_Process.
9775 (create_process): Call setup_process_coding_systems.
9776 (Fmake_network_process): New keyward `:filter-multibyte'.
9777 Initialize the member `filter_multibyte' of struct Lisp_Process.
9778 Call setup_process_coding_systems.
9779 (server_accept_connection): Call setup_process_coding_systems.
9780 (read_process_output): If the process has a filter, decide the
9781 multibyteness of a string to given to the filter by
9782 `filter_multibyte' member of the process. If the process doesn't
9783 have a filter and the result of conversion is unibyte, use
9784 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9785 multibyte form.
9786 (Fset_process_coding_system): Call setup_process_coding_systems.
9787 (Fset_process_filter_multibyte): New function.
9788 (Fprocess_filter_multibyte_p): New function.
9789 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9790 Defsubr Sset_process_filter_multibyte and
9791 Sprocess_filter_multibyte_p.
9792
9793 * process.h (struct Lisp_Process): New member filter_multibyte.
9794
9795 * lisp.h (setup_process_coding_systems): Add prototype.
9796
9797 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9798 process, update coding systems for the process.
9799
9800 2003-02-09 Kenichi Handa <handa@m17n.org>
9801
9802 * fns.c (string_to_multibyte): New function.
9803 (Fstring_to_multibyte): New function.
9804 (syms_of_fns): Defsubr it.
9805
9806 2003-02-08 Andreas Schwab <schwab@suse.de>
9807
9808 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9809 instead of the substitution.
9810
9811 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9812
9813 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9814
9815 * xmenu.c (menu_position_func): Adjust menu popup position so that
9816 the menu is fully visible.
9817
9818 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9819
9820 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
9821 (x_make_frame_invisible, x_wm_set_icon_position):
9822 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
9823
9824 * xfns.c (x_set_name, x_set_title): Ditto.
9825
9826 2003-02-04 Richard M. Stallman <rms@gnu.org>
9827
9828 * keyboard.c (echo_now): Update before_command_echo_length.
9829 (Freset_this_command_lengths): Reset this_command_key_count etc.
9830 immediately rather than arranging to do it later.
9831 (before_command_key_count_1, before_command_echo_length_1)
9832 (before_command_restore_flag): Vars deleted.
9833 (add_command_key): Don't handle before_command_restore_flag.
9834 (read_char, record_menu_key): Don't update before_command_key_count or
9835 before_command_echo_length.
9836 (read_char): Don't handle before_command_restore_flag.
9837
9838 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9839 in direct-output clauses if it wouldn't be called in the ordinary case.
9840
9841 2003-02-04 Kim F. Storm <storm@cua.dk>
9842
9843 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9844
9845 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9846
9847 * gtkutil.c (remove_from_container): Copying list is not needed.
9848 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9849 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9850 on list returned from gtk_container_get_children to avoid memory leak.
9851
9852 2003-02-01 Jason Rumney <jasonr@gnu.org>
9853
9854 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9855 local malloc.
9856 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9857 definitions in xpm.h.
9858 (init_xpm_functions): New function.
9859 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
9860 (init_external_image_libraries): Try to load libXpm.dll.
9861
9862 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9863 timestamp.
9864
9865 2003-01-31 Dave Love <fx@gnu.org>
9866
9867 * syntax.c (Fskip_chars_forward)
9868 (open-paren-in-column-0-is-defun-start): Doc fix.
9869
9870 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9871
9872 * fileio.c: Support // at start of name for Cygwin (just added proper
9873 preprocessor tests).
9874
9875 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9876
9877 * Makefile.in: Use @EXEEXT@ for Cygwin.
9878
9879 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9880
9881 * s/cygwin.h: Added for Cygwin port.
9882
9883 2003-01-31 Juanma Barranquero <lektu@terra.es>
9884
9885 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9886 when including gif_lib.h.
9887 (init_gif_functions, init_tiff_functions): New functions.
9888 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9889 Windows. Disable color table lookups. Call library functions
9890 through pointers determined at runtime.
9891 (init_external_image_libraries): Try to load libungif.dll and
9892 libtiff.dll.
9893
9894 2003-01-31 Kenichi Handa <handa@m17n.org>
9895
9896 * xdisp.c (SKIP_GLYPHS): New macro.
9897 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
9898
9899 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9900
9901 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
9902
9903 2003-01-30 Dave Love <fx@gnu.org>
9904
9905 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9906 (Fgarbage_collect): Use them.
9907 (init_alloc, syms_of_alloc): Set them up.
9908
9909 2003-01-30 Juanma Barranquero <lektu@terra.es>
9910
9911 * w32fns.c (init_external_image_libraries): Add missing operator.
9912
9913 2003-01-29 Jason Rumney <jasonr@gnu.org>
9914
9915 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9916 an alternative name for jpeg.dll.
9917
9918 2003-01-29 Kenichi Handa <handa@m17n.org>
9919
9920 * xdisp.c (set_cursor_from_row): Pay attention to string display
9921 properties.
9922
9923 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9924
9925 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9926 <escape>.
9927 (keycode_to_xkeysym_table): Reformat and add more comments.
9928 (XTread_socket): Drop special case for backspace.
9929
9930 2003-01-28 Andrew Choi <akochoi@shaw.ca>
9931
9932 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9933 values in old-style RGB specs.
9934
9935 2003-01-27 Juanma Barranquero <lektu@terra.es>
9936
9937 * w32fns.c (init_external_image_libraries): Try alternate names for the
9938 jpeg dll.
9939
9940 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9941
9942 * gtkutil.c (create_dialog, xg_separator_p)
9943 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9944 before calling strcmp or strlen.
9945
9946 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9947
9948 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9949 and handle image load failure.
9950
9951 2003-01-26 Jason Rumney <jasonr@gnu.org>
9952
9953 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9954 New functions.
9955 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9956 Disable color table lookups. Call jpeg library functions
9957 through pointers determined at runtime.
9958 (init_external_image_libraries): Try to load jpeg.dll.
9959
9960 2003-01-25 Richard M. Stallman <rms@gnu.org>
9961
9962 * lisp.h: Declare format2 instead of format1.
9963
9964 * fileio.c (barf_or_query_if_file_exists):
9965 Call format2 instead of format1.
9966
9967 * editfns.c (format2): New function, replaces format1
9968 but takes exactly two Lisp Objects as format args.
9969
9970 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9971
9972 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9973
9974 * xterm.h: Change to return value of x_dispatch_event to int.
9975
9976 * xterm.c (x_filter_event): New function.
9977 (event_handler_gdk, XTread_socket): Call x_filter_event.
9978 (x_dispatch_event): Change to return value of finish.
9979 (event_handler_gdk): Use return value from x_dispatch_event.
9980
9981 * xfns.c (x_window): Call create_frame_xic for GTK version to
9982 initialize input methods.
9983
9984 * gtkutil.h: Add (void) prototypes.
9985
9986 * gtkutil.c (create_menus): Remove code that puts the help menu to
9987 the right.
9988
9989 2003-01-25 Jason Rumney <jasonr@gnu.org>
9990
9991 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9992 [HAVE_PNG]: Sync with xfns.c version.
9993 (png_load): Adjust colors for Windows. Use Windows
9994 bitmaps. Disable color table lookups.
9995 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9996 (init_png_functions): New function.
9997 (png_read_from_memory, png_load): Call png library functions
9998 through pointers determined at runtime.
9999 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10000 (init_external_image_libraries): New function.
10001 (init_xfns): Call it.
10002
10003 2003-01-24 Andreas Schwab <schwab@suse.de>
10004
10005 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10006
10007 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10008
10009 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10010 of static initializer.
10011
10012 2003-01-24 Dave Love <fx@gnu.org>
10013
10014 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10015 architectures.
10016
10017 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10018 Use __alignof__.
10019
10020 2003-01-24 Kenichi Handa <handa@m17n.org>
10021
10022 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10023 It it is nonzero, don't pretend that an invisible area doesn't exist.
10024 (command_loop_1): Call adjust_point_for_property with proper
10025 second arg.
10026
10027 2003-01-22 Jason Rumney <jasonr@gnu.org>
10028
10029 Sync changes with xterm.c and xfns.c.
10030
10031 * w32term.c (x_draw_glyph_string_foreground)
10032 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10033
10034 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10035 phys_cursor's hpos is overwritten. This is still not completely
10036 correct, as it doesn't really make sense to use hpos at all to
10037 get the cursor glyph (as that is relative to the width of the
10038 characters on the line, which may have changed during the update).
10039
10040 * w32term.c (notice_overwritten_cursor): Handle the special case
10041 of the cursor being in the first blank non-text line at the
10042 end of a window.
10043
10044 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10045 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10046 Compute from the x position returned by x_draw_glyphs.
10047
10048 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10049 except for NO_CURSOR and system caret, to make phys_cursor_width
10050 contain what its name suggests.
10051 (notice_overwritten_cursor): Consider the cursor image erased if
10052 the output area intersects the cursor image in y-direction.
10053
10054 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10055 note_mode_line_highlight and extend.
10056
10057 * w32term.c (last_window): New variable.
10058 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10059 (note_mouse_movement): Remove reimplemented code in #if 0.
10060
10061 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10062 not update_mode_lines, and always set it to 1.
10063
10064 2003-01-21 Jason Rumney <jasonr@gnu.org>
10065
10066 * w32fns.c (IDC_HAND): Define it if system headers don't.
10067
10068 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10069
10070 * w32term.h (struct w32_output): New member hand_cursor.
10071 (WM_EMACS_SETCURSOR): New message definition.
10072
10073 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10074 function w32_define_cursor.
10075 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10076 position, change member name output_data.x to output_data.w32 and
10077 add function w32_define_cursor.
10078 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10079 and change member name output_data.x to output_data.w32.
10080 (w32_initialize_display_info):
10081 Setup dpyinfo->vertical_scroll_bar_cursor.
10082
10083 * w32fns.c (Vx_hand_shape): New variable.
10084 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10085 WM_EMACS_SETCURSOR.
10086 (x-create-frame): Setup Cursor types.
10087
10088 2003-01-21 David Ponce <david@dponce.com>
10089
10090 * w32term.c (w32_encode_char): For DIM=1 charset, set
10091 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
10092 x_encode_char change by Kenichi Handa <handa@m17n.org> on
10093 2002-09-30.)
10094 (w32_draw_relief_rect): Declare all args.
10095 (w32_define_cursor): New.
10096
10097 * w32fns.c (w32_load_cursor): New function.
10098 (w32_init_class): Use it.
10099 (x_put_x_image): Declare all args.
10100
10101 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
10102
10103 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10104
10105 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10106
10107 * gtkutil.c: Must include stdio.h before termhooks.h
10108
10109 2003-01-21 Dave Love <fx@gnu.org>
10110
10111 * alloc.c (Fgc_status): Print zombie list.
10112 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10113 Fix assignment of zombies.
10114 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10115 Don't take car of non-cons.
10116
10117 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10118
10119 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10120
10121 2003-01-20 David Ponce <david@dponce.com>
10122
10123 * w32menu.c (digest_single_submenu): Declare all args.
10124
10125 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10126 changes in xmenu.c:
10127
10128 (parse_single_submenu): Use individual keymap's prompt
10129 string as pane name, if there is one.
10130 (set_frame_menubar): Save menu_items_n_panes from each call to
10131 parse_single_submenu and use it when calling digest_single_submenu.
10132
10133 2003-01-20 Steven Tamm <steventamm@mac.com>
10134
10135 * macterm.c (XTread_socket): Checks for valid, visible window
10136 before sending a scroll-wheel event.
10137
10138 2003-01-20 Richard M. Stallman <rms@gnu.org>
10139
10140 * xdisp.c (redisplay_window): If mini window's buffer is not
10141 a minibuffer, then redisplay it like other windows.
10142
10143 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10144
10145 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10146 external tool bar before setting tool bar height.
10147
10148 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10149
10150 * xterm.c (handle_one_xevent): Surround popup_activated
10151 with #ifdef:s for non-toolkit version.
10152
10153 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10154 (gtkutil.o): New file.
10155 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10156 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10157
10158 * gtkutil.c: New file for GTK version.
10159
10160 * gtkutil.h: New file for GTK version.
10161
10162 * xterm.h: Add xt_or_gtk_widget.
10163 Include gtk files for USE_GTK.
10164 (struct x_output): Add toolbar_height.
10165 (struct x_output): Add GTK widgets and Gdk size_hints.
10166 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10167 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10168 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10169
10170 * xterm.c: Include gtkutil.h for USE_GTK.
10171 (free_frame_menubar): Declare extern void for USE_GTK.
10172 (note_mouse_highlight): Check popup_activated for USE_GTK.
10173 (xt_action_hook): Don't compile if USE_GTK.
10174 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10175 (xg_scroll_callback): New function.
10176 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10177 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10178 for USE_GTK.
10179 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10180 xg_show_scroll_bar for USE_GTK.
10181 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10182 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10183 (event_handler_gdk): New function for USE_GTK.
10184 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10185 (handle_one_xevent): Make sure widget is mapped before
10186 calling x_real_positions for USE_GTK.
10187 (XTread_socket): Add GTK event loop for USE_GTK.
10188 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10189 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10190 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10191 (x_iconify_frame): Add code for USE_GTK.
10192 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10193 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10194 is in gtkutil.c.
10195 (x_term_init): Add initialization for GTK.
10196 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10197
10198 * xmenu.c: Include gtkutil.h for USE_GTK.
10199 (Fx_popup_menu): Use current position if x and y is NIL.
10200 (single_menu_item, single_menu_item, Fx_popup_dialog):
10201 Check for USE_GTK.
10202 (popup_widget_loop): New function for USE_GTK.
10203 (x_activate_menubar): Add code for USE_GTK.
10204 (popup_activate_callback, popup_deactivate_callback)
10205 (menu_highlight_callback, menubar_selection_callback):
10206 Add USE_GTK versions.
10207 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10208 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10209 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10210 is in gtkutil.c.
10211 (popup_selection_callback): New version for USE_GTK.
10212 (create_and_show_popup_menu): New fuction, one USE_GTK version and
10213 one USE_X_TOOLKIT version.
10214 (xmenu_show): Call create_and_show_popup_menu.
10215 (dialog_selection_callback): New version for USE_GTK.
10216 (create_and_show_dialog): New fuction, one USE_GTK version and
10217 one USE_X_TOOLKIT version.
10218 (xdialog_show): Call create_and_show_dialog.
10219
10220 * xfns.c: Include gtkutil for USE_GTK.
10221 (x_window_to_frame, x_any_window_to_frame)
10222 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10223 (x_top_window_to_frame): Add code for USE_GTK.
10224 (x_set_background_color): Call xg_set_background_color for GTK.
10225 (x_set_menu_bar_lines): Check for USE_GTK.
10226 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10227 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10228 (x_window): Call xg_create_frame_widgets for USE_GTK.
10229 (Fx_create_frame): Check for USE_GTK
10230 (Fx_file_dialog): New implementation for USE_GTK.
10231
10232 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10233 (update_menu_bar): Add check for USE_GTK.
10234 (update_tool_bar): Add check for USE_GTK and external tool bar.
10235 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10236 (redisplay_internal): Add check for USE_GTK and popup_activated.
10237 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10238 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10239 (display_menu_bar): Add check for USE_GTK
10240
10241 * lisp.h (Vx_resource_name): Declare extern.
10242
10243 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
10244 for USE_GTK.
10245 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10246
10247 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10248 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10249 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10250
10251 * fileio.c (Fread_file_name): Add check for USE_GTK.
10252
10253 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10254 Add check for USE_GTK.
10255
10256 * config.in: Added HAVE_GTK
10257
10258 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10259
10260 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10261
10262 * charset.h (Funibyte_char_to_multibyte): Export.
10263
10264 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10265
10266 * xmenu.c (mouse_position_for_popup): New function.
10267 (Fx_popup_menu): Call mouse_position_for_popup for X and
10268 mouse_position_hook for others.
10269
10270 2003-01-17 Kim F. Storm <storm@cua.dk>
10271
10272 * editfns.c (Finsert): Mention `string-make-multibyte' and
10273 `string-as-multibyte' in doc string.
10274
10275 2003-01-17 Kenichi Handa <handa@m17n.org>
10276
10277 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
10278
10279 * editfns.c (Fformat): Convert an unibyte char argument that is
10280 formatted by "%c" to multibyte if the total result must be a
10281 multibyte string.
10282
10283 2003-01-16 Kim F. Storm <storm@cua.dk>
10284
10285 * process.c (set-process-filter): Document unibyte/multibyte-ness
10286 of string argument.
10287
10288 2003-01-16 Kenichi Handa <handa@m17n.org>
10289
10290 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
10291
10292 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10293 (re_search_2): Likewise.
10294
10295 2003-01-15 Kenichi Handa <handa@m17n.org>
10296
10297 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10298 buffer is unibyte.
10299
10300 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
10301
10302 * fns.c (Fsubstring): Clarify doc string.
10303
10304 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10305 (Fprevious_char_property_change)
10306 (Fnext_single_char_property_change)
10307 (Fprevious_single_char_property_change, Fnext_property_change)
10308 (Fnext_single_property_change, Fprevious_property_change)
10309 (Fprevious_single_property_change, Fadd_text_properties)
10310 (Fput_text_property, Fset_text_properties)
10311 (Fremove_text_properties, Fremove_list_of_text_properties)
10312 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
10313
10314 2003-01-14 Kim F. Storm <storm@cua.dk>
10315
10316 * process.h (struct Lisp_Process): New member plist replaces old
10317 member private_vars. All uses changed.
10318
10319 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
10320 (QCplist): Rename from QCvars. Change all uses.
10321 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
10322 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
10323 (syms_of_process): Intern, staticpro, defsubr these.
10324 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
10325
10326 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
10327
10328 * m/delta.h: Remove (obsolete).
10329
10330 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
10331
10332 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10333 behaviour in front of symlinks.
10334 (Fdelete_file): Raise an error on directories.
10335
10336 2003-01-13 Dave Love <fx@gnu.org>
10337
10338 * fns.c (Freverse): Use QUIT.
10339
10340 2003-01-13 Richard M. Stallman <rms@gnu.org>
10341
10342 * minibuf.c (minibuffer_completion_contents):
10343 Error if point is inside prompt.
10344
10345 * keyboard.c (command_loop_1): Don't redisplay directly
10346 if there's a post-command-hook.
10347
10348 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10349 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
10350
10351 2003-01-12 Kim F. Storm <storm@cua.dk>
10352
10353 * process.h (struct Lisp_Process): New member private_vars.
10354
10355 * process.c (QCvars): New variable.
10356 (syms_of_process): Intern and staticpro it.
10357 (Fset_process_contact): Removed function.
10358 (Fprocess_variable, Fset_process_variable): New functions.
10359 (syms_of_process): Defsubr them.
10360 (Fstart_process): Initialize private_vars plist to nil.
10361 (Fmake_network_process): New arg :vars to setup the private
10362 variables for new network process.
10363 (server_accept_connection): Copy server's private variables to
10364 client process.
10365
10366 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10367 crashes). Code rewritten and simplified. Now directly aligns the
10368 pointer and recalculates pure_bytes_used, rather than aligning the
10369 size and adjusting the pointer.
10370
10371 2003-01-11 Kim F. Storm <storm@cua.dk>
10372
10373 * process.c (Fset_process_contact): New function.
10374 (syms_of_process): defsubr it.
10375 (make-network-process): Update doc.
10376
10377 2003-01-10 Andreas Schwab <schwab@suse.de>
10378
10379 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10380 Reported by Berthold Gunreben <b.gunreben@web.de>.
10381
10382 2003-01-10 Dave Love <fx@gnu.org>
10383
10384 * composite.c (syms_of_composite): Make composition_hash_table weak.
10385
10386 2003-01-09 Kim F. Storm <storm@cua.dk>
10387
10388 * process.c (Fmake_network_process): Convert new port number
10389 to host byte order for `:service t' case. From Mario Lang.
10390
10391 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10392
10393 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10394 instead of XtAppProcessEvent.
10395
10396 * xterm.c (handle_one_xevent): New function.
10397 (x_dispatch_event): New function.
10398 (XTread_socket): Call handle_one_xevent.
10399
10400 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
10401
10402 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10403 call XQueryPointer to get coordinates.
10404 (popup_get_selection): Do not set popup_activated_flag to zero,
10405 let popup_deactivate_callback do that. Needed for Motif.
10406 Call x_dispatch_event instead of XtDispatchEvent.
10407 (xmenu_show): Calculate root coordinate from frame top/left position.
10408
10409 2003-01-08 Kim F. Storm <storm@cua.dk>
10410
10411 * process.c (server_accept_connection): Fix recording of new
10412 connection's local address in :local property of contact info.
10413 (Fmake_network_process): Record local network address for new
10414 client processes in :local property of contact info.
10415 (format-network-address): Add arg OMIT-PORT. Change callers.
10416
10417 2003-01-07 Dave Love <fx@gnu.org>
10418
10419 * Makefile.in (fns.o): Depend on coding.h.
10420
10421 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
10422
10423 * minibuf.c (Fread_variable): Doc fix.
10424
10425 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10426 use the same test as for custom-variable-p.
10427
10428 2003-01-05 Richard M. Stallman <rms@gnu.org>
10429
10430 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10431 Count LAST_LINE_MISFIT in scroll margin for end of window.
10432 Move label too_near_end before setting SCROLL_MARGIN_POS.
10433 Set LAST_LINE_MISFIT before jumping there.
10434
10435 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10436 scroll_conservatively case. If scrolling that much doesn't change
10437 STARTP, move it down one line.
10438
10439 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10440 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
10441
10442 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10443 selected frame.
10444
10445 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10446 (syms_of_keymap): staticpro them.
10447 (Fapropos_internal): Initialize them and clear them out.
10448 Don't GCPRO them.
10449
10450 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10451 Doc fixes.
10452
10453 * lisp.h: New misc type Lisp_Save_Value.
10454 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10455 (XSAVE_VALUE): New macro.
10456 (struct Lisp_Save_Value): New data type.
10457 (union Lisp_Misc): Add u_save_value alternative.
10458 (make_save_value): Declare.
10459
10460 * alloc.c (make_save_value): New function.
10461
10462 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10463 (x_catch_errors_unwind): Call XSync.
10464
10465 2003-01-01 Richard M. Stallman <rms@gnu.org>
10466
10467 * window.c (window_scroll_pixel_based): Partially undo last change.
10468
10469 * keyboard.c (command_loop_1): Call adjust_point_for_property
10470 in direct action cases for Qforward_char and Qbackward_char.
10471 Set already_adjusted so it won't be done twice.
10472
10473 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
10474
10475 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10476 type definition of size_t.
10477
10478 2003-01-02 Steven Tamm <steventamm@mac.com>
10479
10480 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10481 distinguish Carbon GUI builds from X11 builds on darwin.
10482
10483 2002-12-30 Steven Tamm <steventamm@mac.com>
10484
10485 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10486 to default to t.
10487
10488 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
10489
10490 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
10491
10492 2002-12-28 Steven Tamm <steventamm@mac.com>
10493
10494 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10495 allow building in a different directory than source. Uses some
10496 GNU Make extensions, but there is no other make on Mac OS X.
10497
10498 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
10499
10500 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10501 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10502 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10503 (Fstring_to_number): Mention the returned value in the doc strings.
10504
10505 2002-12-23 Richard M. Stallman <rms@gnu.org>
10506
10507 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10508 <scroll-down-aggressively>: Doc fix.
10509
10510 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10511 string as pane name, if there is one.
10512 (set_frame_menubar): Save menu_items_n_panes from each call to
10513 parse_single_submenu and use it when calling digest_single_submenu.
10514
10515 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10516 Don't try to make last line fully visible if it is past end of window.
10517
10518 2002-12-22 Steven Tamm <steventamm@mac.com>
10519
10520 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10521 (mac_menu_show): Add support for hierarchical popup menus.
10522 (add_menu_item): Remove indentation support.
10523 (fill_submenu, fill_menu): Create hierarchical menus
10524 instead of using indentation.
10525
10526 2002-12-22 Richard M. Stallman <rms@gnu.org>
10527
10528 * xdisp.c (try_cursor_movement): Don't call try_window here.
10529 (redisplay_window): Never redisplay minibuffer when inactive.
10530
10531 * window.c (select_window_1): Undo 9/21 change.
10532
10533 2002-12-22 Steven Tamm <steventamm@mac.com>
10534
10535 * macterm.c (XTread_socket): Call KeyTranslate for control and
10536 meta to deal correctly shifted non-alpha characters, like C-S-5
10537 being treated like C-%. Does not look for shift key to deal
10538 with masking off control-key with mac-reverse-ctrl-meta.
10539
10540 2002-12-21 Richard M. Stallman <rms@gnu.org>
10541
10542 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10543 If it is non-nil, run timers. Use an unwind-protect to requeue
10544 the events that were read ahead.
10545 (popup_get_selection_unwind): New subroutine.
10546 (popup_get_selection_queue): File-scope variable now holds that queue.
10547 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10548 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10549 Use an unwind-protect to pop down the dialog box.
10550 (xdialog_show_unwind): New subroutine implements that.
10551
10552 * xdisp.c (row_containing_pos): Change exit test using last_y.
10553 (try_window_id): Abort if row_containing_pos returns null.
10554
10555 * lread.c (load_error_handler): New function.
10556 (Fload): Handle errors in Fsubstitute_in_file_name.
10557 Don't expect Fsignal to return.
10558
10559 * eval.c: Errors and throws work right with interrupt blocking.
10560 (struct catchtag): New elt interrupt_input_blocked.
10561 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10562 (internal_catch, Fcondition_case, internal_condition_case)
10563 (internal_condition_case_1, internal_condition_case_2): Save it.
10564 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
10565
10566 * editfns.c (Fformat): Add parens.
10567
10568 * dired.c (file_name_completion): Fix that change.
10569 Delete special quit-handling code; just use QUIT.
10570
10571 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
10572
10573 * dired.c (file_name_completion): Close directory on error
10574 just as in directory_files_internal.
10575
10576 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
10577
10578 * window.c (Fset_window_configuration): Set old_point to correct
10579 value when new_current_buffer == current_buffer.
10580
10581 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
10582
10583 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10584 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10585 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10586
10587 These changes were in part based upon suggestions made by Peter
10588 'Luna' Runestig [peter@runestig.com].
10589
10590 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10591 g_b_init_get_token_information, g_b_init_lookup_account_sid,
10592 g_b_init_get_sid_identifier_authority ): Add several static
10593 global variables.
10594
10595 * w32.c (globals_of_w32): New function. Used to initialize those
10596 global variables that must always be initialized on startup even
10597 when the global variable initialized is non zero. Its primary
10598 purpose at this time is to set the global variables
10599 g_b_init_is_windows_9x, g_b_init_open_process_token,
10600 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10601 g_b_init_get_sid_identifier_authority to 0 on startup.
10602 Called from main.
10603
10604 * w32.c (is_windows_9x): Perform initialization only if
10605 g_b_init_is_windows_9x is equal to 0. On initialization set
10606 g_b_init_is_windows_9x equal to 1.
10607
10608 * w32.c (open_process_token): Perform initialization only if
10609 g_b_init_open_process_token is equal to 0. On initialization set
10610 g_b_init_open_process_token equal to 1.
10611
10612 * w32.c (get_token_information): Perform initialization only if
10613 g_b_init_get_token_information is equal to 0. On initialization
10614 set g_b_init_get_token_information equal to 1.
10615
10616 * w32.c (lookup_account_sid): Perform initialization only if
10617 g_b_init_lookup_account_sid is equal to 0. On initialization
10618 set g_b_init_lookup_account_sid equal to 1.
10619
10620 * w32.c (get_sid_identifier_authority): Perform initialization
10621 only if g_b_init_get_sid_identifier_authority is equal to 0.
10622 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
10623
10624 * w32fns.c (globals_of_w32fns): New function. Used to initialize
10625 those global variables that must always be initialized on startup
10626 even when the global variable initialized is non zero.
10627 Its primary purpose at this time is to initialize the global variable
10628 track_mouse_event_fn.
10629
10630 * w32fns.c (w32_wnd_proc): Remove initialization of
10631 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
10632
10633 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
10634
10635 * w32menu.c (globals_of_w32menu): New function. Used to
10636 initialize those global variables that must always be initialized
10637 on startup even when the global variable initialized is non zero.
10638 Its primary purpose at this time is to initialize the global
10639 variables get_menu_item_info and set_menu_item_info.
10640
10641 * w32menu.c (initialize_frame_menubar): Remove initialization of
10642 get_menu_item_info and set_menu_item_info.
10643
10644 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
10645
10646 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10647 Declare them.
10648
10649 * emacs.c (main): Call globals_of_w32 prior to calling
10650 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10651 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10652 is defined.
10653
10654 * w32term.c (x_update_window_begin): Fix Windows API error
10655 detected by BoundsChecker. Test to determine if
10656 w32_system_caret_hwnd is NULL prior to attempting to use
10657 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
10658
10659 * w32term.c (x_update_window_end): Fix Windows API error
10660 detected by BoundsChecker. Test to determine if
10661 w32_system_caret_hwnd is NULL prior to attempting to use
10662 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
10663
10664 2002-12-17 Kenichi Handa <handa@m17n.org>
10665
10666 * coding.c (coding_system_require_warning): New variable.
10667 (syms_of_coding): DEFVAR it.
10668
10669 * coding.h (coding_system_require_warning): Extern it.
10670
10671 * fileio.c (choose_write_coding_system): Even if
10672 Vcoding_system_for_write is non-nil, if
10673 coding_system_require_warning is nonzero, call
10674 Vselect_safe_coding_system_function.
10675
10676 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
10677
10678 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10679 (lisp): Add font-core.
10680
10681 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
10682
10683 * textprop.c (text_read_only): New arg `propval'.
10684 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10685 (verify_interval_modification): Use text_read_only's new arg.
10686
10687 2002-12-13 Kenichi Handa <handa@m17n.org>
10688
10689 * coding.c (Funencodable_char_position): Set pend correctly.
10690
10691 2002-12-12 Jason Rumney <jasonr@gnu.org>
10692
10693 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10694 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10695 Be more careful about when help_events are generated.
10696
10697 2002-12-12 Steven Tamm <steventamm@mac.com>
10698
10699 * macterm.c (mac_check_for_quit_char): Correctly set the
10700 modifiers of the event to 0.
10701 * mac.c (sys_select): Duplicate rfds before calling select to
10702 ensure that rfds survive the while loop.
10703
10704 2002-12-11 Kim F. Storm <storm@cua.dk>
10705
10706 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10707 row_containing_pos returned NULL.
10708
10709 2002-12-10 Steven Tamm <steventamm@mac.com>
10710
10711 * mac.c (sys_read): Fix sys_read to not call select if IO is
10712 non-blocking.
10713 (sys_select): Fix sys_select to not use a timeout larger than
10714 the one given.
10715
10716 2002-12-10 Juanma Barranquero <lektu@terra.es>
10717
10718 * editfns.c (Fformat): Use alloca, not _alloca.
10719
10720 2002-12-09 Richard M. Stallman <rms@gnu.org>
10721
10722 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10723 as the last thing.
10724
10725 2002-12-09 Dave Love <fx@gnu.org>
10726
10727 * s/sol2-8.h: Removed. (Not necessary.)
10728
10729 2002-12-09 Matthew Swift <swift@alum.mit.edu>
10730
10731 * editfns.c (Fformat): Handle precision in string conversion
10732 specifiers like libc functions do (ie, print at most that many
10733 characters).
10734
10735 2002-12-08 Richard M. Stallman <rms@gnu.org>
10736
10737 * xdisp.c (row_containing_pos): Check more carefully
10738 whether charpos is really in the row before returning it.
10739
10740 2002-12-07 Steven Tamm <steventamm@mac.com>
10741
10742 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
10743
10744 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10745 each stack frame. This may change as it could be time consuming.
10746
10747 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10748 (init_quit_char_handler, mac_determine_quit_char_modifiers)
10749 (mac_initialize): Add code to check for pressing of quit_char
10750 in the OS event queue.
10751
10752 * mac.c (sys_select): Call mac_check_for_quit_char every second
10753 while blocking on select.
10754
10755 * mac.c (sys_read): Use sys_select to test for input first
10756 before calling read, to allow C-g to break.
10757
10758 2002-12-07 Richard M. Stallman <rms@gnu.org>
10759
10760 * minibuf.c (Fcompleting_read): Doc fix.
10761
10762 * lread.c (syms_of_lread) <load-history>: Doc fix.
10763
10764 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
10765
10766 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10767 autoload.
10768
10769 * data.c (Fdefalias): Record in load-history redefining an autoload.
10770
10771 * alloca.c: Undo ifdef change accidentally made on 12-04.
10772
10773 2002-12-06 Francesco Potorti` <pot@gnu.org>
10774
10775 * xfns.c (png_load): Avoid double gamma correction for PNG images.
10776
10777 2002-12-04 Richard M. Stallman <rms@gnu.org>
10778
10779 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
10780
10781 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
10782
10783 * alloca.c: Don't use #error.
10784
10785 2002-12-03 Dave Love <fx@gnu.org>
10786
10787 * buffer.c (Qucs_set_table_for_input): New.
10788 (Fget_buffer_create): Use it.
10789 (Qset_buffer_major_mode_hook): Deleted.
10790 (Fset_buffer_major_mode): Revert previous change.
10791 (init_buffer_once): Intern ucs-set-table-for-input.
10792 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10793 Add &Qucs_set_table_for_input.
10794
10795 2002-12-03 Andreas Schwab <schwab@suse.de>
10796
10797 * callint.c (Fcall_interactively): Use next_event only if less
10798 than key_count.
10799
10800 2002-12-02 Andrew Choi <akochoi@shaw.ca>
10801
10802 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10803 names to 255 characters.
10804
10805 * macterm.c (XTread_socket): If all frames have been collapsed,
10806 expand the first one before handling drag-and-drop events.
10807
10808 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10809 which is detected by autoconf.
10810
10811 2002-12-01 Steven Tamm <steventamm@mac.com>
10812
10813 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10814 offset in two hints table to allow prebinding to be redone and
10815 allow the executable to be stripped.
10816
10817 2002-11-29 Dave Love <fx@gnu.org>
10818
10819 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10820 already provided.
10821
10822 2002-11-29 Richard M. Stallman <rms@gnu.org>
10823
10824 * xdisp.c (start_display): Check more intelligently for
10825 whether the line is continued.
10826 (move_it_vertically_backward): Clear it->continuation_lines_width.
10827
10828 2002-11-28 Dave Love <fx@gnu.org>
10829
10830 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10831 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
10832
10833 2002-11-27 Steven Tamm <steventamm@mac.com>
10834
10835 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10836 more descriptive error output from lread.c:Fload upon most require
10837 cycles during boostrapping.
10838
10839 2002-11-27 Jason Rumney <jasonr@gnu.org>
10840
10841 * fileio.c (Finsert_file_contents): Give a more appropriate error
10842 for files bigger than 2Gb when off_t is 32 bit.
10843
10844 * dired.c (Ffile_attributes): Don't return negative file sizes for
10845 files bigger than 2Gb when off_t is 32 bit.
10846
10847 2002-11-27 Dave Love <fx@gnu.org>
10848
10849 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10850
10851 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10852 Test GETPGRP_VOID instead.
10853 [BSD_TERMIOS]: Remove definitions (never used).
10854
10855 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10856 Don't define.
10857 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10858
10859 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
10860
10861 2002-11-25 Jason Rumney <jasonr@gnu.org>
10862
10863 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10864 supported.
10865
10866 2002-11-25 Dave Love <fx@gnu.org>
10867
10868 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
10869
10870 * Makefile.in (TEMACS_LDFLAGS): Update last change.
10871
10872 2002-11-25 Andreas Schwab <schwab@suse.de>
10873
10874 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
10875
10876 2002-11-24 Steven Tamm <steventamm@mac.com>
10877
10878 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10879 determine the size of pointers alloced in unexed space instead
10880 of using possibly invalid emacs_zone pointers. This fixes the
10881 binary incompatibility problems caused by updates to libSystem.B.
10882
10883 2002-11-24 Richard M. Stallman <rms@gnu.org>
10884
10885 * search.c (Fstring_match): Doc fix.
10886
10887 * callint.c (Fcall_interactively): If a command fails because
10888 `*' detects a read-only buffer, but RECORD_FLAG is set,
10889 record it anyway if the args don't actually do tty input.
10890
10891 2002-11-22 Dave Love <fx@gnu.org>
10892
10893 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
10894
10895 * keyboard.c (interrupt_signal): Provide forward declaration.
10896 (kbd_buffer_store_event): Don't declare interrupt_signal.
10897
10898 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
10899
10900 2002-11-21 Richard M. Stallman <rms@gnu.org>
10901
10902 * eval.c (interactive_p): Skip any number of bytecode
10903 and special form frames, in any order.
10904
10905 2002-11-20 Jason Rumney <jasonr@gnu.org>
10906
10907 * w32fns.c (convert_mono_to_color_image): New function.
10908 (xbm_load, xbm_load_image): Use it when foreground or background
10909 is explicitly set.
10910
10911 2002-11-19 Dave Love <fx@gnu.org>
10912
10913 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
10914
10915 2002-11-18 Jason Rumney <jasonr@gnu.org>
10916
10917 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10918 (XPutPixel): Swap blue and red.
10919 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10920 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10921 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10922 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
10923
10924 2002-11-18 Dave Love <fx@gnu.org>
10925
10926 * m/orion105.h (HAVE_ALLOCA): Don't define.
10927
10928 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
10929
10930 * m/intel386.h: Don't include alloca.h or define alloca.
10931
10932 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10933 malloc, realloc, calloc.
10934
10935 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10936 (bcmp): Don't define.
10937
10938 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
10939
10940 * m/amdahl.h: Don't define LIB_STANDARD.
10941
10942 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
10943
10944 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
10945
10946 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10947 Don't include alloca.h.
10948
10949 * s/aix3-2.h (HAVE_FSYNC): Don't define.
10950
10951 * regex.c (_GNU_SOURCE): Don't define.
10952
10953 * process.c (_GNU_SOURCE): Don't define.
10954
10955 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
10956
10957 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
10958
10959 * s/sol2-8.h: Include sol2-6.h.
10960
10961 2002-11-18 Miles Bader <miles@gnu.org>
10962
10963 * dispextern.h (struct face): Add `overstrike' field.
10964 * xterm.c (x_draw_glyph_string_foreground)
10965 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10966 * xfaces.c (load_face_font): Set `face->overstrike' based on
10967 result from choose_face_font.
10968 (best_matching_font, choose_face_font): Add `needs_overstrike'
10969 argument, and use it to return whether overstriking is desirable
10970 for this face/font combo.
10971 (set_font_frame_param: Pass new argument to choose_face_font.
10972
10973 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
10974
10975 This change is my fix for the following entry in etc/PROBLEMS:
10976 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10977 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10978
10979 * w32.c: Added wrapper functions around the win32 API functions
10980 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10981 GetSidIdentifierAuthority. These wrapper functions serve two
10982 purposes:
10983 1. They ensure that the wrapped function can never be called
10984 when Emacs is running on an operating system on which they are
10985 not supported (Microsoft Windows 95 / 98 / ME).
10986 2. They call the wrapped functions via function pointers rather
10987 than calling them directly. This avoids taking advantage of the
10988 undocumented fact that although these functions are not supported
10989 in the 9x branch of Microsoft Windows, the functions do exist in
10990 the version of advapi32.dll that is found in the 9x branch of
10991 Microsoft Windows.
10992
10993 * w32.c (init_user_info): Replace the calls to the win32 API
10994 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10995 and GetSidIdentifierAuthority with calls to the newly added
10996 wrapper functions.
10997
10998 * w32.h: Added extern declarations for the following functions:
10999 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11000 syms_of_w32menu, and void syms_of_fontset.
11001
11002 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11003 function pointer track_mouse_event_fn in the handler for the
11004 WM_SETFOCUS message.
11005
11006 * w32menu.c (initialize_frame_menubar): Add code to
11007 reinitialize the function pointers set_menu_item_info and
11008 get_menu_item_info.
11009
11010 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11011
11012 * sound.c: Added a partial implementation of play-sound-internal
11013 for Microsoft Windows. Added various #ifdef / #else / #endif
11014 code blocks to separate the code that will compile under
11015 Microsoft Windows from the code that is specific to Gnu/Linux.
11016 Moved several blocks of code around to make this separation of code
11017 into Windows compatible and Gnu/Linux compatible code blocks easier.
11018
11019 * makefile.w32-in: Include sound.c and link with WinMM.lib.
11020
11021 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11022 added support for play-sound-internal under Windows would be
11023 included in the build of Emacs.
11024
11025 2002-11-16 Jason Rumney <jasonr@gnu.org>
11026
11027 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11028
11029 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11030
11031 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
11032
11033 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11034 (adjust_point_for_property): Move out of display and invisible even if
11035 we were already inside before (in case a property was added while
11036 we weren't looking). Be more careful when handling invisible props.
11037 Skip invisible text as if it really wasn't there at all.
11038
11039 2002-11-15 Jason Rumney <jasonr@gnu.org>
11040
11041 * w32term.c (x_draw_image_foreground)
11042 (w32_draw_image_foreground_1): Use standard copy and invert
11043 operations to draw images.
11044
11045 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11046 depth of 1.
11047 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11048 (XPutPixel): Don't invert bits here.
11049
11050 2002-11-15 Jason Rumney <jasonr@gnu.org>
11051
11052 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11053 (w32_draw_image_foreground_1): Handle image masks.
11054 (x_draw_image_glyph_string): Don't BitBlt transparently.
11055
11056 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11057 (x_from_xcolors): Adjust RGB values for W32.
11058 (image_background, image_background_transparent)
11059 (postprocess_image, x_to_xcolors, x_disable_image)
11060 (x_build_heuristic_mask): Adapt for W32 and enable.
11061 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11062 (xbm_load): Remove unused variable.
11063
11064 2002-11-14 Richard M. Stallman <rms@gnu.org>
11065
11066 * buffer.c (syms_of_buffer): Doc fix.
11067
11068 2002-11-14 Dave Love <fx@gnu.org>
11069
11070 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
11071
11072 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11073 * xmenu.c (unuse_menu_items, digest_single_submenu):
11074 * xfns.c (x_put_x_image):
11075 * xdisp.c (message2_nolog, set_message):
11076 * undo.c (record_point):
11077 * terminfo.c (tparam):
11078 * syntax.c (scan_sexps_forward):
11079 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11080 * composite.c (update_compositions):
11081 * cm.c (calccost, cmgoto):
11082 * charset.c (c_string_width): Declare all args (per C99).
11083
11084 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
11085
11086 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11087 Don't declare.
11088
11089 * emacs.c (main) [!VMS]: Avoid third arg.
11090
11091 * fns.c (Fcopy_sequence): Doc fix.
11092 (Fmap_char_table): Cast `call2'.
11093
11094 2002-11-14 Francesco Potorti` <pot@gnu.org>
11095
11096 * s/sol2-8.h: New file.
11097
11098 2002-11-14 Kim F. Storm <storm@cua.dk>
11099
11100 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11101 dependency on `risky-local-variable' and the :propertize form.
11102
11103 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11104
11105 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11106
11107 * syntax.c (scan_sexps_forward): Undo last patch.
11108 Use a more obvious fix: check eob before updating the syntax table.
11109
11110 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11111
11112 * syntax.c (scan_sexps_forward): Update syntax table before reading
11113 a char rather than after so we don't update the table past eob.
11114
11115 2002-11-09 Dave Love <fx@gnu.org>
11116
11117 * buffer.c (Fset_buffer_major_mode): Fix last change.
11118
11119 * regex.c (regexec): Fix pmatch declaration.
11120
11121 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11122
11123 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11124 to self-inserting characters.
11125 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11126
11127 * coding.c (Vtranslation_table_for_input): New.
11128 (syms_of_coding): DEFVAR it.
11129
11130 2002-11-08 Juanma Barranquero <lektu@terra.es>
11131
11132 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11133 window.
11134
11135 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11136
11137 * process.c (Fformat_network_address): Remove unused locals p,
11138 cp, and i.
11139
11140 2002-11-06 Dave Love <fx@gnu.org>
11141
11142 * buffer.c (Qset_buffer_major_mode_hook): New.
11143 (Fset_buffer_major_mode): Use it.
11144
11145 2002-11-06 Richard M. Stallman <rms@gnu.org>
11146
11147 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11148 and stop_polling.
11149
11150 * process.c (wait_reading_process_input):
11151 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11152 Avoid initialization for auto Lisp_Object var.
11153
11154 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11155
11156 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11157
11158 2002-11-05 Richard M. Stallman <rms@gnu.org>
11159
11160 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11161
11162 * callint.c (Fcall_interactively): New local filter_specs.
11163 (Fcall_interactively): Check for progn as well as let.
11164 Add a gcpro.
11165 (Qprogn): New variable.
11166 (syms_of_callint): Staticpro and init Qprogn.
11167
11168 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11169
11170 * lread.c (Feval_buffer): Doc fix.
11171
11172 2002-11-04 Dave Love <fx@gnu.org>
11173
11174 * keyboard.c (read_char): Always translate iff
11175 Vkeyboard_translate_table is a char table and c is valid.
11176
11177 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11178 and fix C types.
11179
11180 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11181
11182 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11183
11184 * editfns.c (get_pos_property): Don't hardcode Qfield.
11185
11186 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11187 overlays. Also handle `invisible' prop.
11188
11189 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11190
11191 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11192 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11193
11194 2002-11-01 Andreas Schwab <schwab@suse.de>
11195
11196 * editfns.c (Fmessage): Revert last change to properly handle %%.
11197
11198 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11199
11200 * xmenu.c (unuse_menu_items): New fun.
11201 (menu_items_inuse): New var.
11202 (syms_of_xmenu): Initialize it.
11203 (init_menu_items): Use it to detect re-entrance.
11204 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11205 (Fx_popup_menu): Remove spurious XSETFRAME.
11206
11207 * editfns.c (find_field): Make an exception for nil fields.
11208
11209 2002-11-01 Dave Love <fx@gnu.org>
11210
11211 * m/gec63.h: Deleted.
11212
11213 2002-10-31 Dave Love <fx@gnu.org>
11214
11215 * xterm.c (XTread_socket): Fix last change.
11216 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11217
11218 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11219
11220 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11221
11222 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11223
11224 * editfns.c (overlays_around, get_pos_property): New funs.
11225 (find_field): Use them.
11226 Also be careful not to modify POS before its last use.
11227 (Fmessage): Don't Fformat if there's nothing to format.
11228
11229 2002-10-30 Dave Love <fx@gnu.org>
11230
11231 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11232 [HAVE_PTY_H]; Include pty.h.
11233
11234 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11235
11236 * xterm.c (Qeql): Declare.
11237 (Vx_keysym_table): New.
11238 (syms_of_xterm): Initialize it.
11239 (XTread_socket): Use it. Deal with ASCII keysyms.
11240 (XSetIMValues) [HAVE_X11R6]: Prototype.
11241
11242 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11243 (lispy_kana_keys): Comment out.
11244 (make_lispy_event) [XK_kana_A]: Comment out.
11245 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11246 Fix sprintf call.
11247
11248 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11249 regexp.h change).
11250 (TERMINFO, LIBS_TERMCAP): Define.
11251
11252 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11253 (bcmp): Define conditional on HAVE_BCMP.
11254 (NO_SIOCTL_H): Don't define.
11255 (TIOCSIGSEND): Don't make conditional on IRIX6.
11256
11257 * s/sol2-5.h: Don't include strings.h.
11258 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11259
11260 * s/irix6-0.h (IRIX6): Don't define.
11261 (bcopy, bcmp, bzero): Don't undef.
11262
11263 * s/irix6-5.h: Don't include strings.h.
11264 (IRIX6): Don't define.
11265 (bcopy, bcmp, bzero): Don't undef.
11266
11267 * syntax.c (Fforward_comment): Doc fix.
11268
11269 2002-10-29 Kim F. Storm <storm@cua.dk>
11270
11271 * process.c (Fsignal_process): Allow PROCESS to be specified by
11272 name in addition to pid (as integer or string).
11273
11274 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11275
11276 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11277 environments.
11278
11279 2002-10-27 Kim F. Storm <storm@cua.dk>
11280
11281 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11282
11283 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11284
11285 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11286
11287 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11288
11289 2002-10-26 Richard M. Stallman <rms@gnu.org>
11290
11291 * editfns.c (Fformat): Detect invalid format letters for floats.
11292
11293 2002-10-25 Kenichi Handa <handa@m17n.org>
11294
11295 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11296 (x_set_title): Likewise.
11297
11298 2002-10-25 Juanma Barranquero <lektu@terra.es>
11299
11300 * macgui.h:
11301 * w32gui.h: Remove definition of XColor.
11302
11303 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11304
11305 2002-10-24 Kim F. Storm <storm@cua.dk>
11306
11307 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11308 Callers changed (supply dummy arg).
11309
11310 * lisp.h (get_window_cursor_type): Update prototype.
11311
11312 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11313 get_window_cursor_type to track system caret.
11314
11315 2002-10-24 Kim F. Storm <storm@cua.dk>
11316
11317 * process.c (Fformat_network_address): New function.
11318 (syms_of_process): Defsubr it.
11319 (list_processes_1): Use it to format :local/:remote address if
11320 service/host is not set; before Emacs would crash in that case.
11321 (Fmake_network_process): Don't use Ffind_operation_coding_system
11322 to setup coding system if host or service is not set.
11323
11324 2002-10-23 Juanma Barranquero <lektu@terra.es>
11325
11326 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11327
11328 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11329 COLORREF.
11330
11331 * macgui.h:
11332 * w32gui.h: Add definition of XColor.
11333
11334 * macfns.c:
11335 * w32fns.c:
11336 * xfaces.c: Remove definition of XColor.
11337
11338 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11339
11340 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11341
11342 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11343 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11344 window if it is dedicated.
11345 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11346 (Vspecial_display_function): Update docstring.
11347
11348 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11349 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11350 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11351
11352 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11353
11354 * casefiddle.c (casify_region): Don't treat a prefix char as part
11355 of a word when at the beginning.
11356
11357 2002-10-17 Juanma Barranquero <lektu@terra.es>
11358
11359 * lread.c (syms_of_lread): Fix typos.
11360
11361 2002-10-17 Dave Love <fx@gnu.org>
11362
11363 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11364
11365 2002-10-16 Richard M. Stallman <rms@gnu.org>
11366
11367 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11368
11369 2002-10-14 Juanma Barranquero <lektu@terra.es>
11370
11371 * w16select.c (syms_of_win16select): Fix docstring for
11372 `selection-coding-system'.
11373
11374 * w32select.c (syms_of_w32select): Likewise.
11375
11376 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11377
11378 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11379 a backslash-quoted char.
11380 (scan_lists, scan_sexps_forward): Pacify the compiler.
11381
11382 2002-10-13 Richard M. Stallman <rms@gnu.org>
11383
11384 * window.c (window_scroll): Set immediate_quit.
11385
11386 * print.c (print): When backquote form is the car of a list,
11387 output in old style. Use old_backquote_output to output all
11388 comma forms inside it in old style too.
11389
11390 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11391
11392 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
11393
11394 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11395 batch mode).
11396
11397 * lread.c (Fload): Doc fix (load-suffixes).
11398
11399 2002-10-10 Steven Tamm <steventamm@mac.com>
11400
11401 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11402 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11403 Also switch the default to Qnil from Qt.
11404
11405 2002-10-08 Kenichi Handa <handa@m17n.org>
11406
11407 * coding.c (code_convert_region): When we need more GAP for
11408 conversion, pay attention to the case that coding->produced is not
11409 greater than coding->consumed.
11410
11411 2002-10-07 Richard M. Stallman <rms@gnu.org>
11412
11413 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11414
11415 2002-10-06 Andrew Choi <akochoi@shaw.ca>
11416
11417 * macmenu.c (mac_menu_show): Add j to count menu items; match
11418 menu_item_selection to it to find selected item.
11419
11420 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11421
11422 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11423 cases. The correct fix is to pass ReparentNotify to Xt.
11424 The shell widget interprets ConfigureNotify differently depending
11425 on if it has been reparented or not.
11426
11427 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
11428
11429 * editfns.c (Fformat_time_string): Doc fix.
11430
11431 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11432
11433 * fns.c (Flength): Doc fix.
11434
11435 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11436
11437 * keyboard.c (keyremap): New struct.
11438 (read_key_sequence): Use it: globally replace keytran_foo with
11439 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11440 keytran_next and fkey_next to just `next'.
11441
11442 2002-10-04 Steven Tamm <steventamm@mac.com>
11443
11444 * macterm.c (keycode_to_xkeysym_table): Change return to be
11445 treated like an X keysym.
11446
11447 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11448
11449 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11450 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11451 This is to also handle x/y changes that occur because of a resize.
11452
11453 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11454
11455 * frame.c (Vdelete_frame_functions): New variable.
11456 (syms_of_frame): Initialize and defvar it.
11457 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11458 it when frame's `tooltip' parameter is non-nil.
11459
11460 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11461
11462 * w32fns.c (x_create_tip_frame): Likewise.
11463
11464 * macfns.c (x_create_tip_frame): Likewise.
11465
11466 2002-09-30 Kenichi Handa <handa@m17n.org>
11467
11468 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11469 -1 before calling ccl_driver.
11470
11471 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11472 Only when it is non-nil, handle composition sequence.
11473 (setup_coding_system) <0>: Don't force composition handling.
11474
11475 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11476
11477 2002-09-29 Richard M. Stallman <rms@gnu.org>
11478
11479 * search.c (Freplace_match): Adjust match data for the substitution
11480 just made in the buffer.
11481
11482 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11483 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11484
11485 2002-09-27 Richard M. Stallman <rms@gnu.org>
11486
11487 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11488 (read_char): Use them. Do all exits thru the end of the function.
11489
11490 2002-09-27 Kenichi Handa <handa@etl.go.jp>
11491
11492 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11493 is nil.
11494
11495 2002-09-26 Richard M. Stallman <rms@gnu.org>
11496
11497 * regex.h (__restrict_arr): Don't define if already defined.
11498
11499 * coding.c (run_pre_post_conversion_on_str):
11500 Save and restore Vdeactivate_mark.
11501
11502 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11503
11504 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11505
11506 2002-09-26 Kenichi Handa <handa@etl.go.jp>
11507
11508 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11509 nonzero, try face's family at first. Otherwise try FAMILY at first.
11510 (choose_face_font): If C is a single byte char or latin-1, call
11511 try_font_list with PREFER_FACE_FAMILY 1.
11512
11513 2002-09-21 Richard M. Stallman <rms@gnu.org>
11514
11515 * window.c (select_window_1): Don't select frame.
11516 Set frame's selected window only when frame itself is selected.
11517 (Fselect_window): Doc fix.
11518
11519 2002-09-18 Kim F. Storm <storm@cua.dk>
11520
11521 * process.c (make-network-process): Doc fix (there is no
11522 network-server-log-function hook).
11523
11524 2002-09-18 Richard M. Stallman <rms@gnu.org>
11525
11526 * print.c (print): Clear out the unused parts of Vprint_number_table.
11527 (syms_of_print): Doc fix for `print-number-table'.
11528
11529 * unexelf.c (unexec): Undo previous change.
11530
11531 2002-09-17 Andreas Schwab <schwab@suse.de>
11532
11533 * m/alpha.h [LINUX]: Don't define DATA_START.
11534
11535 2002-09-16 Dave Love <fx@gnu.org>
11536
11537 * unexelf.c (unexec): Deal with .got, reinstating change from
11538 25-08-1999.
11539
11540 2002-09-13 Richard M. Stallman <rms@gnu.org>
11541
11542 * s/sol2-6.h (UNEXEC): Comment out definition.
11543
11544 * unexsol.c (unexec): Don't downcase first letter of error msg.
11545
11546 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11547
11548 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
11549
11550 * unexsol.c: Include buffer.h, charset.h, coding.h.
11551
11552 2002-09-11 Richard M. Stallman <rms@gnu.org>
11553
11554 * unexsol.c: Don't use report_file_error; do it by hand
11555 using dlerror.
11556
11557 * process.c (wait_reading_process_input, both versions):
11558 Before calling turn_on_atimers, call stop_polling.
11559
11560 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11561
11562 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11563 we go to too_near_end, call clear_glyph_matrix.
11564 (redisplay_window): After make_cursor_line_fully_visible,
11565 call clear_glyph_matrix and bypass `goto done'.
11566
11567 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11568 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11569
11570 2002-09-10 Richard M. Stallman <rms@gnu.org>
11571
11572 * fileio.c (Fdo_auto_save): Catch error making directory.
11573 Only call push_message if we need to.
11574 At the same time, make an unwind-protect to pop it.
11575 Rename local message_p to old_message_p.
11576 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11577 (do_auto_save_unwind): Don't call pop_message.
11578
11579 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11580
11581 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11582
11583 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11584
11585 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11586
11587 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11588
11589 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11590 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11591 (re_match_2_internal): Be more careful with infinite loops.
11592
11593 2002-09-10 Kim F. Storm <storm@cua.dk>
11594
11595 * macros.c (end_kbd_macro): New function.
11596 (Fend_kbd_macro): Use it.
11597
11598 * macros.h (end_kbd_macro): Declare extern.
11599
11600 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11601 end and save it instead of discarding it.
11602
11603 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
11604
11605 * s/sol2-6.h: Fix typo. Add comment.
11606
11607 2002-09-09 Richard M. Stallman <rms@gnu.org>
11608
11609 * regex.c (regnum_t): Use signed int, not unsigned int.
11610
11611 * s/sol2-6.h: New file.
11612
11613 * s/sol2-5.h (UNEXEC): Definition deleted.
11614
11615 2002-09-08 Kim F. Storm <storm@cua.dk>
11616
11617 * macros.c (executing_macro_index): Change type to EMACS_INT.
11618 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11619
11620 * macros.h (executing_macro_index): Change type to EMACS_INT.
11621
11622 2002-09-06 Richard M. Stallman <rms@gnu.org>
11623
11624 * casetab.c (set_case_table): Make canon table point to eqv table.
11625
11626 2002-09-06 Juanma Barranquero <lektu@terra.es>
11627
11628 * coding.c (syms_of_coding): Fix spacing.
11629
11630 * composite.c (Fcompose_region_internal)
11631 (Fcompose_string_internal): Likewise.
11632
11633 * data.c (Flsh): Likewise.
11634
11635 * fontset.c (Fset_fontset_font): Likewise.
11636
11637 * macfns.c (Fx_server_max_request_size): Likewise.
11638
11639 * w16select.c (syms_of_win16select): Likewise.
11640
11641 * w32select.c (syms_of_w32select): Likewise.
11642
11643 * xselect.c (syms_of_xselect): Likewise.
11644
11645 2002-09-05 Richard M. Stallman <rms@gnu.org>
11646
11647 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11648 call EXTEND_RANGE_TABLE and return a proper value.
11649 (set_image_of_range): Don't call set_image_of_range_1
11650 if no TRANSLATE or if range includes all of Latin-1.
11651 Only call it for the Latin-1 part of the range.
11652 For other cases, make two separate ranges,
11653 one for the original specified characters and one for
11654 their case-conversions.
11655
11656 2002-09-04 Richard M. Stallman <rms@gnu.org>
11657
11658 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11659
11660 * window.c (displayed_window_lines): Correct for one-off bug
11661 in HEIGHT on non-window displays.
11662
11663 * regex.c (set_image_of_range_1): New function.
11664 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11665 Return a value to indicate running out of memory.
11666 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11667 (extend_range_table_work_area): New subroutine.
11668 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11669 Different calling conventions, and used from set_image_of_range{,_1}.
11670 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11671
11672 2002-09-04 Juanma Barranquero <lektu@terra.es>
11673
11674 * makefile.w32-in: All dependencies updated.
11675
11676 2002-09-01 Richard M. Stallman <rms@gnu.org>
11677
11678 * unexsol.c: New file.
11679
11680 * xfns.c (Qbox): Declare external, don't define.
11681
11682 * xdisp.c (redisplay_window) <force-start case>:
11683 If point is on semi-visible last line, reposition
11684 it at previous line.
11685
11686 * alloc.c (display_malloc_warning): Use display-warning.
11687 (malloc_warning_1): Function deleted.
11688
11689 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11690
11691 * lread.c (read1): Handle #! by skipping the line.
11692
11693 2002-08-31 Richard M. Stallman <rms@gnu.org>
11694
11695 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11696 Don't include LDFLAGS.
11697 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11698
11699 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11700
11701 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11702 member of x_display_info unless we compile for some window system.
11703
11704 2002-08-31 Kim F. Storm <storm@cua.dk>
11705
11706 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11707 (get_window_cursor_type): Don't use them.
11708 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11709
11710 2002-08-30 Kenichi Handa <handa@etl.go.jp>
11711
11712 * xdisp.c (get_next_display_element): Fix previous change.
11713
11714 2002-08-30 Andrew Choi <akochoi@shaw.ca>
11715
11716 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11717 (expose_window): Use it to fix the display of overlapping
11718 rows (merge code from xterm.c).
11719
11720 * macfns.c (Qbox): Add extern declaration.
11721
11722 2002-08-30 Juanma Barranquero <lektu@terra.es>
11723
11724 * w32fns.c (Qbox): Make extern.
11725 (syms_of_w32fns): Remove initialization of Qbox.
11726
11727 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11728
11729 * xfns.c (Fx_open_connection): Fix error message.
11730
11731 2002-08-30 Kim F. Storm <storm@cua.dk>
11732
11733 The following changes consolidates the handling of the cursor
11734 type in xdisp.c, moving duplicate code and functionality from
11735 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11736
11737 * frame.h (enum text_cursor_kinds): Consolidated here.
11738 Added DEFAULT_CURSOR value.
11739 (struct frame) <desired_cursor, cursor_width>
11740 <blink_off_cursor, blink_off_cursor_width>: New fields.
11741 Consolidated from output_x, output_w32 and output_mac structs.
11742 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11743 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11744
11745 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11746 Variables consolidated here.
11747 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11748 (Vcursor_in_non_selected_windows): Renamed from
11749 cursor_in_non_selected_windows and changed to Lisp_Object.
11750 (syms_of_xdisp): Define and staticpro new and moved variables.
11751 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11752 consolidated here. Recognize Qhollow setting.
11753 (set_frame_cursor_types): New function to set frame cursor types
11754 based on the frame parameters.
11755 (get_window_cursor_type): New function to calculate new cursor
11756 type and width for the specified window. Based on duplicated
11757 code consolidated here.
11758 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11759 check buffer-local alternate-cursor-type and blink-cursor-alist
11760 before using built-in blink off methods.
11761
11762 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11763
11764 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11765 (get_specified_cursor_type, get_window_cursor_type)
11766 (set_frame_cursor_types): Added prototypes.
11767
11768 * macfns.c (x_specified_cursor_type): Removed.
11769 (x_set_cursor_type): Use set_frame_cursor_types.
11770 (Qbar, Qbox): Removed.
11771 (syms_of_macfns): Don't intern or staticpro them.
11772
11773 * macterm.c (x_specified_cursor_type): Remove prototype.
11774 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11775 (x_display_and_set_cursor): Use get_window_cursor_type.
11776 Remove unused local variables cursor_non_selected, active_cursor.
11777 Redraw cursor if hbar cursor width changes.
11778 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11779
11780 * macterm.h (enum text_cursor_kinds): Removed.
11781 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11782 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11783 (FRAME_DESIRED_CURSOR): Macro removed.
11784
11785 * w32fns.c (Vblink_cursor_alist): Removed.
11786 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11787 (syms_of_w32fns): Don't intern, staticpro, or define them.
11788 (x_specified_cursor_type): Removed.
11789 (x_set_cursor_type): Use set_frame_cursor_types.
11790
11791 * w32term.c (x_specified_cursor_type): Remove prototype.
11792 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11793 (x_display_and_set_cursor): Use get_window_cursor_type.
11794 Remove unused local variables cursor_off_state.
11795 Redraw cursor if hbar cursor width changes.
11796 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11797
11798 * w32term.h (enum text_cursor_kinds): Removed.
11799 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11800 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11801 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11802 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11803 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11804 w32_highlight_frame.
11805
11806 * xfns.c (Vblink_cursor_alist): Removed.
11807 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11808 (syms_of_xfns): Don't intern, staticpro, or define them.
11809 (x_specified_cursor_type): Removed.
11810 (x_set_cursor_type): Use set_frame_cursor_types.
11811
11812 * xterm.c (x_specified_cursor_type): Remove prototype.
11813 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11814 (x_display_and_set_cursor): Use get_window_cursor_type.
11815 Remove unused local variables cursor_off_state.
11816 Redraw cursor if hbar cursor width changes.
11817
11818 * xterm.h (enum text_cursor_kinds): Removed.
11819 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11820 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11821 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11822 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11823 (x_specified_cursor_type): Remove prototype.
11824
11825 2002-08-28 Richard M. Stallman <rms@gnu.org>
11826
11827 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11828 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11829 (Vblink_cursor_alist): New variable.
11830 (syms_of_w32fns): Initialize and defvar it.
11831 (x_specified_cursor_type): Recognize Qbox for filled box.
11832 Exceptions are hollow boxes.
11833 (Qbox, Qhollow): New variables.
11834 (syms_of_w32fns): Initialize and staticpro them.
11835
11836 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11837 New macros.
11838 (struct w32_output): New fields blink_off_cursor,
11839 blink_off_cursor_width.
11840 (FRAME_CURSOR_WIDTH): New macro.
11841
11842 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11843 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11844
11845 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11846 for bar cursor.
11847
11848 * w32term.c (expose_overlaps): New function.
11849 (expose_window): Use it to fix the display of overlapping rows.
11850
11851 2002-08-28 Simon Josefsson <jas@extundo.com>
11852
11853 * xfns.c (Fx_open_connection): Improve help when X connection
11854 fails, xhost is insecure and xauth is better.
11855
11856 2002-08-28 Juanma Barranquero <lektu@terra.es>
11857
11858 * makefile.w32-in: Add missing dependencies on w32term.h and
11859 composite.h.
11860
11861 * emacs.c (USAGE1): Add missing newline.
11862
11863 2002-08-27 Andrew Choi <akochoi@shaw.ca>
11864
11865 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11866
11867 2002-08-27 Richard M. Stallman <rms@gnu.org>
11868
11869 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11870 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11871 (Vblink_cursor_alist): New variable.
11872 (syms_of_xfns): Initialize and defvar it.
11873 (x_specified_cursor_type): Recognize Qbox for filled box.
11874 Exceptions are hollow boxes.
11875 (Qbox, Qhollow): New variables.
11876 (syms_of_xfns): Initialize and staticpro them.
11877
11878 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11879 New macros.
11880 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11881
11882 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11883 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11884
11885 * emacs.c (main): Handle --script.
11886 (USAGE1): Mention --script.
11887 (standard_args): Define sort order for --script.
11888
11889 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11890
11891 * xdisp.c (redisplay_updating_p): Variable removed.
11892 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11893 New variables.
11894 (init_iterator): Don't free realized faces if
11895 inhibit_free_realized_faces is set.
11896 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11897 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11898 initialize Qinhibit_free_realized_faces.
11899
11900 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11901 when iterator is adding glyphs to a glyph matrix.
11902
11903 2002-08-27 Kenichi Handa <handa@etl.go.jp>
11904
11905 * xdisp.c (get_next_display_element): In unibyte case, don't use
11906 octal form for such eight-bit characters that can be converted to
11907 multibyte char.
11908
11909 2002-08-26 Kim F. Storm <storm@cua.dk>
11910
11911 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11912 foreground and background colors. From Joe Buehler.
11913
11914 2002-08-26 Miles Bader <miles@gnu.org>
11915
11916 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11917
11918 2002-08-25 Andrew Choi <akochoi@shaw.ca>
11919
11920 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11921 defined instead of MAC_OSX.
11922
11923 * s/darwin.h (select): Define select to sys_select only if
11924 HAVE_CARBON is defined.
11925 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11926 (DONT_REOPEN_PTY): #def it.
11927
11928 * macterm.c (XTread_socket): Remove code to call
11929 SendEventToEventTarget for keys with command modifiers when
11930 mac_command_key_is_meta is nil.
11931
11932 2002-08-24 Andreas Schwab <schwab@suse.de>
11933
11934 * eval.c (Fdefvar): Fix last change.
11935
11936 2002-08-23 Richard M. Stallman <rms@gnu.org>
11937
11938 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11939 Record variables in load history as (defvar . VAR).
11940 (Fdefvar): Don't record in load history if no initial value.
11941 (Qdefvar): New variable.
11942 (syms_of_eval): Init and staticpro it.
11943
11944 * lread.c (syms_of_lread): Doc fix.
11945 (build_load_history): Use Fmember to see if a definition
11946 is already in the Vload_history element.
11947
11948 * process.c (Fstart_process): Remove /: from program name.
11949
11950 * emacs.c (decode_env_path): Don't add /: if file name handler
11951 has a `safe-magic' property.
11952
11953 * callproc.c (Fcall_process): Remove /: from program name.
11954
11955 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11956
11957 * regex.c (PATFETCH): Remove the translating fetch.
11958 (PATFETCH_RAW): Rename to PATFETCH.
11959 (set_image_of_range): New fun.
11960 (SET_RANGE_TABLE_WORK_AREA): Use it.
11961 (regex_compile): Don't translate the pattern chars so eagerly.
11962 Only do it when inserting an `exactn' bytecode or when handling
11963 a char-range.
11964 (mutually_exclusive_p): Avoid empty statement.
11965
11966 2002-08-22 Kim F. Storm <storm@cua.dk>
11967
11968 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11969 end up on a partially visible line; this reverts a specific part
11970 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11971 display error which has been reported several times now.
11972 However it introduces the problem that changes was supposed to fix.
11973 See my comments in the source if you want to debug this further.
11974
11975 2002-08-20 Kenichi Handa <handa@etl.go.jp>
11976
11977 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11978
11979 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11980
11981 * msdos.c (croak): Add `void' to definition.
11982
11983 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
11984 Don't define them, they are defined in msdos.c.
11985
11986 * mem-limits.h [MSDOS]: Declare etext.
11987
11988 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11989 `const' since CORRECT_DIR_SEPS modifies its target.
11990
11991 2002-08-19 Kim F. Storm <storm@cua.dk>
11992
11993 * keyboard.c (Fclear_this_command_keys): Add optional arg
11994 KEEP-RECORD to avoid clearing lossage when we just want to clear
11995 the current key sequence (kmacro needs this).
11996
11997 2002-08-19 Kenichi Handa <handa@localhost>
11998
11999 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12000
12001 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12002 cons, return Qnil.
12003
12004 2002-08-17 Richard M. Stallman <rms@gnu.org>
12005
12006 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12007
12008 * sysdep.c [!VMS]: Include sys/files.h.
12009
12010 * editfns.c (save_restriction_restore): Defend from unchained marker.
12011
12012 * buffer.c (overlays_at): Handle extending vec uniformly.
12013 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12014
12015 2002-08-15 Andrew Choi <akochoi@shaw.ca>
12016
12017 * mac.c (init_mac_osx_environment): New function.
12018
12019 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12020
12021 2002-08-14 Kim F. Storm <storm@cua.dk>
12022
12023 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12024 executing macro before appending to it (when used from Lisp).
12025 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12026 which is called prior to each iteration of macro (for kmacro.el).
12027 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12028
12029 * lisp.h (Fexecute_kbd_macro): Update prototype.
12030
12031 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12032
12033 2002-08-14 Kenichi Handa <handa@etl.go.jp>
12034
12035 * xselect.c (QUTF8_STRING): New variable.
12036 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12037 (x_atom_to_symbol): Likewise.
12038 (x_get_local_selection): New argument local_request. If it is
12039 nonzero, call handler_fn with the second arg nil.
12040 (x_handle_selection_request): Call x_get_local_selection with
12041 local_request 0.
12042 (lisp_data_to_selection_data): Don't encode the string here.
12043 (Fx_get_selection_internal): Call x_get_local_selection with
12044 local_request 1.
12045 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12046
12047 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12048
12049 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12050
12051 2002-08-13 Richard M. Stallman <rms@gnu.org>
12052
12053 * minibuf.c (Fminibufferp): New function.
12054 (syms_of_minibuf): Defsubr it.
12055 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12056
12057 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12058
12059 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12060
12061 2002-08-12 Richard M. Stallman <rms@gnu.org>
12062
12063 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12064 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12065 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12066 already.
12067
12068 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12069
12070 2002-08-11 Andrew Choi <akochoi@shaw.ca>
12071
12072 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12073 (Vmac_pass_command_to_system): New variable.
12074 (Vmac_pass_control_to_system): New variable.
12075 (do_mouse_moved): Check wp with is_emacs_window.
12076 (XTread_socket): Check window_ptr with is_emacs_window.
12077 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12078 events back to Mac Toolbox for processing, depending on values of
12079 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12080 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12081 Vmac_pass_control_to_system.
12082
12083 2002-08-10 Kenichi Handa <handa@etl.go.jp>
12084
12085 * coding.c (unencodable_char_position): New function.
12086 (Funencodable_char_position): New function.
12087 (syms_of_coding): Defsubr Funencodable_char_position.
12088
12089 2002-08-10 Andrew Choi <akochoi@shaw.ca>
12090
12091 * mac.c (sys_select) [MAC_OSX]: New function.
12092
12093 * macterm.c (MakeMeTheFrontProcess): New function.
12094 (mac_initialize): Call MakeMeTheFrontProcess.
12095
12096 * s/darwin.h: Define select to sys_select.
12097
12098 2002-08-09 Richard M. Stallman <rms@gnu.org>
12099
12100 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12101
12102 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12103
12104 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12105 end of the buffer.
12106
12107 2002-08-08 Ken Raeburn <raeburn@mit.edu>
12108
12109 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12110
12111 * puresize.h (BASE_PURESIZE): Increase to 910000.
12112
12113 2002-08-08 Kenichi Handa <handa@etl.go.jp>
12114
12115 * coding.c (Ffind_operation_coding_system): For write-region, if
12116 VISIT is a filename, make it the target.
12117
12118 2002-08-07 Richard M. Stallman <rms@gnu.org>
12119
12120 * alloc.c (mark_object): Detect long lists for debugging.
12121 (mark_object_loop_halt): New variable.
12122
12123 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12124
12125 * data.c (Fmake_variable_frame_local): Doc fix.
12126
12127 2002-08-01 David Ponce <david@dponce.com>
12128
12129 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12130 (malloc_widget_value, free_widget_value)
12131 (w32_free_submenu_strings): Use them.
12132
12133 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12134 (push_menu_pane, push_menu_item, single_keymap_panes)
12135 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12136 (single_submenu, set_frame_menubar)
12137 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12138
12139 (Fx_popup_menu): Don't show pop up menu until preceding one is
12140 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12141
12142 * w32menu.c: Changes adapted from xmenu.c
12143 (set_frame_menubar): First parse all submenus,
12144 then make widget_value trees from them.
12145 Don't allocate any widget_value objects
12146 until we are done with the parsing.
12147 (parse_single_submenu): New function.
12148 (digest_single_submenu): New function.
12149 (single_submenu): Function deleted, replaced by those two.
12150
12151 2002-08-04 Andrew Choi <akochoi@shaw.ca>
12152
12153 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12154 returns a valid window pointer before proceeding for keyDown and
12155 autoKey events.
12156
12157 2002-08-03 Andrew Choi <akochoi@shaw.ca>
12158
12159 * macterm.c (USE_CARBON_EVENTS): New macro.
12160 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12161 (x_iconify_frame): Call CollapseWindow.
12162 (Vmac_reverse_ctrl_meta): New variable.
12163 (Vmac_wheel_button_is_mouse_2): New variable.
12164 (init_mac_drag_n_drop): New function.
12165 (mac_do_receive_drag): New function.
12166 (mac_handle_service_event): New function.
12167 (init_service_handler): New function.
12168 (mac_to_emacs_modifiers): New function.
12169 (mac_event_to_emacs_modifiers): New function.
12170 (mac_get_mouse_btn): New function.
12171 (mac_convert_event_ref): New function.
12172 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12173 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12174 mac_get_mouse_btn.
12175 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12176
12177 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12178 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12179 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12180 TOOL_BAR_EVENT for MAC_OS as well.
12181 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12182 as for WINDOWS_NT.
12183 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12184
12185 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12186
12187 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12188
12189 * xdisp.c (forward_to_next_line_start): Fix a condition that
12190 lead to a newline being skipped.
12191
12192 2002-08-02 Andrew Choi <akochoi@shaw.ca>
12193
12194 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12195
12196 2002-08-01 Richard M. Stallman <rms@gnu.org>
12197
12198 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12199
12200 2002-07-31 Andrew Choi <akochoi@shaw.ca>
12201
12202 * macfns.c: #undef init_process before #define-ing it.
12203
12204 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12205 HAVE_CARBON is defined.
12206
12207 2002-07-31 Richard M. Stallman <rms@gnu.org>
12208
12209 * xmenu.c (set_frame_menubar): First parse all submenus,
12210 then make widget_value trees from them.
12211 Don't allocate any widget_value objects
12212 until we are done with the parsing.
12213 (parse_single_submenu): New function.
12214 (digest_single_submenu): New function.
12215 (single_submenu): Function deleted, replaced by those two.
12216
12217 2002-07-30 Juanma Barranquero <lektu@terra.es>
12218
12219 * w32proc.c (syms_of_ntproc): Fix docstring of
12220 `w32-get-true-file-attributes'.
12221
12222 2002-07-28 Richard M. Stallman <rms@gnu.org>
12223
12224 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12225 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12226
12227 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12228
12229 * keyboard.c (make_lispy_event):
12230 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12231 Explicitly clear up_modifier in event->modifiers.
12232
12233 2002-07-27 Richard M. Stallman <rms@gnu.org>
12234
12235 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12236
12237 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12238 for bar cursor.
12239
12240 2002-07-26 Kenichi Handa <handa@etl.go.jp>
12241
12242 * coding.c (detect_coding_iso2022): While checking a byte sequence
12243 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12244 it in the normal loop.
12245
12246 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12247
12248 * xterm.c (expose_overlaps): New function.
12249 (expose_window): Use it to fix the display of overlapping rows.
12250
12251 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12252
12253 2002-07-23 Ken Raeburn <raeburn@gnu.org>
12254
12255 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12256 since it only depends on XUINT.
12257
12258 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12259 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12260 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12261 Macros deleted.
12262
12263 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12264 its value over other approaches.
12265 * sysdep.c (start_of_data): Don't define the function if a macro
12266 form has been defined.
12267
12268 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12269
12270 * xdisp.c (redisplay_updating_p): New variable.
12271 (init_iterator): Don't free realized faces when
12272 redisplay_updating_p is set.
12273 (redisplay_internal): Set redisplay_updating_p while updating
12274 the display.
12275
12276 2002-07-23 Richard M. Stallman <rms@gnu.org>
12277
12278 * editfns.c (Fmessage): Treat "" like nil.
12279
12280 2002-07-23 Kenichi Handa <handa@etl.go.jp>
12281
12282 * xdisp.c (face_before_or_after_it_pos):
12283 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12284
12285 2002-07-22 Juanma Barranquero <lektu@terra.es>
12286
12287 * callproc.c (init_callproc) [DOS_NT]:
12288 Initialize Vshared_game_score_directory to nil.
12289 (syms_of_callproc) [DOS_NT]: Likewise.
12290
12291 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12292
12293 * xdisp.c (display_line): Replace an abort with xassert.
12294
12295 2002-07-21 Richard M. Stallman <rms@gnu.org>
12296
12297 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12298 and END_UNCHANGED when setting buffer_unchanged_p.
12299 Use current_matrix_up_to_date_p to decide whether to use
12300 try_cursor_movement.
12301
12302 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12303
12304 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12305
12306 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12307 Set to nil if dir does not exist.
12308 (syms_of_callproc): Init unconditionally and simply.
12309
12310 * buffer.c (Fbuffer_list): Doc fix.
12311
12312 2002-07-21 Ken Raeburn <raeburn@gnu.org>
12313
12314 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12315
12316 * buffer.c (mmap_realloc): When shrinking, make sure number of
12317 pages to unmap is rounded towards zero.
12318
12319 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12320 (XSETINT): Deleted.
12321
12322 * m/att3b.h (XINT): Don't define.
12323 (VALBITS, VALMASK, XTYPE): Deleted.
12324 (DATA_SEG_BITS): Define.
12325 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12326 ARRAY_MARK_FLAG): Deleted.
12327 (DATA_SEG_BITS): Define.
12328 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12329 (DATA_SEG_BITS): Define.
12330
12331 2002-07-20 Richard M. Stallman <rms@gnu.org>
12332
12333 * print.c (print_error_message): New args CONTEXT and CALLER.
12334 Calls changed.
12335
12336 * lisp.h (print_error_message): Declare new args.
12337
12338 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12339 and CONTEXT to print_error_message, don't print them here.
12340 For a Quit, don't use Vsignaling_function.
12341 Call message_log_maybe_newline.
12342
12343 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12344
12345 2002-07-20 Kim F. Storm <storm@cua.dk>
12346
12347 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12348
12349 2002-07-19 Ken Raeburn <raeburn@gnu.org>
12350
12351 * bytecode.c (struct byte_stack): Pointers into byte string now
12352 point to const.
12353 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12354 const.
12355 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12356 * coding.c (encode_eol, detect_coding, detect_eol):
12357 (decode_coding, encode_coding, detect_coding_system):
12358 Source strings now treated as const.
12359 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12360 modify Lisp string contents.
12361 * coding.h (decode_coding, encode_coding, detect_coding,
12362 detect_eol): Declarations updated.
12363 * composite.c (compose_chars_in_text): Treat Lisp string contents
12364 as const.
12365 * dispnew.c (safe_bcopy): Source pointer now points to const.
12366 * lisp.h (STRING_COPYIN): New macro.
12367 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12368 (internal_with_output_to_temp_buffer): Declarations updated.
12369 * print.c (temp_output_buffer_setup):
12370 (internal_with_output_to_temp_buffer): Buffer name argument is now
12371 pointer to const.
12372 * sound.c (struct sound_device): Function pointer field "write"
12373 buffer argument now points to const.
12374 (vox_write): Buffer argument points to const.
12375 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12376 contents as const.
12377 * sysdep.c (emacs_write): Buffer pointer now const.
12378 * term.c (encode_terminal_code): Buffer pointer now const.
12379 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12380 (x_face_list_fonts, x_update_menu_appearance):
12381 (hash_string_case_insensitive): Treat Lisp string contents as const.
12382
12383 2002-07-19 Juanma Barranquero <lektu@terra.es>
12384
12385 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12386
12387 * fileio.c (syms_of_fileio): Likewise.
12388 (Ffile_name_as_directory): Fix argument name in docstring.
12389 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
12390
12391 2002-07-18 Richard M. Stallman <rms@gnu.org>
12392
12393 * data.c (Fdefalias): Doc fix.
12394
12395 2002-07-17 Dave Love <fx@gnu.org>
12396
12397 * intervals.h (text_property_stickiness): Use P_.
12398
12399 * ccl.c: Remove `emacs' conditionals.
12400 (ccl_backtrace_table): Fix size spec.
12401 (ccl_driver): Fix type errors.
12402
12403 2002-07-16 Ken Raeburn <raeburn@gnu.org>
12404
12405 * alloc.c (xstrdup, make_string, make_unibyte_string)
12406 (make_multibyte_string, build_string): String pointer args now
12407 point to const.
12408 * charset.c (find_charset_in_text, c_string_width):
12409 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12410 * fileio.c (report_file_error):
12411 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12412 (count_combining_before, count_combining_after, insert_1_both):
12413 (insert, insert_and_inherit, insert_string):
12414 (insert_before_markers, insert_before_markers_and_inherit):
12415 * lread.c (intern, oblookup, hash_string):
12416 * minibuf.c (temp_echo_area_glyphs):
12417 * search.c (fast_c_string_match_ignore_case):
12418 * sysdep.c (emacs_open, set_file_times):
12419 * xfaces.c (xstricmp):
12420 * xdisp.c (store_frame_title, string_char_and_length):
12421 (message_dolog, message2, message2_nolog, set_message): Likewise.
12422 (set_message_1): Cast message string argument to const pointer.
12423 * editfns.c (general_insert_function): Insertion function now
12424 takes pointer to const for input data.
12425 * charset.h (find_charset_in_text, c_string_width):
12426 (parse_str_as_multibyte): Declarations updated.
12427 * dispextern.h (xstricmp): Declaration updated.
12428 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12429 (count_size_as_multibyte, count_combining_before):
12430 (count_combining_after, insert_1, insert_1_both, message_dolog):
12431 (insert, insert_and_inherit, insert_before_markers)
12432 (insert_before_markers_and_inherit, set_message, message2):
12433 (message2_dolog, build_string, make_string, make_unibyte_string):
12434 (make_multibyte_string, intern, oblookup, report_file_error):
12435 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12436 (emacs_open, xstrdup): Declarations updated.
12437 * systime.h (set_file_times): Declaration updated.
12438
12439 * charset.c (find_charset_in_text, lisp_string_width): Use const
12440 for pointer to lisp string data.
12441 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12442 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12443 * coding.c (Ffind_coding_systems_region_interval):
12444 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12445 (Fmake_directory_internal, Fdelete_directory):
12446 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12447 * fontset.c (font_family_registry, fs_query_fontset):
12448 (list_fontsets):
12449 * frame.c (Fframe_parameter):
12450 * keyboard.c (cmd_error_internal):
12451 * keymap.c (Fdescribe_buffer_bindings):
12452 * lread.c (complete_filename_p, openp):
12453 * minibuf.c (Fminibuffer_complete_word):
12454 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12455 (face_before_or_after_it_pos, next_element_from_string):
12456 (get_overlay_arrow_glyph_row, display_mode_element):
12457 (decode_mode_spec_coding):
12458 * xterm.c (same_x_server): Likewise.
12459
12460 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12461 settings of non-existent fields.
12462
12463 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12464 copy a lisp value.
12465
12466 * lread.c (Fintern_soft): Use string macros instead of
12467 Lisp_String fields.
12468 * keyboard.c (echo_char, parse_modifiers_uncached):
12469 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12470 * textprop.c (validate_interval_range, interval_of): Likewise.
12471
12472 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12473
12474 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12475 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12476 XSTRING()->size_byte.
12477
12478 * lisp.h (SDATA, SREF): Produce rvalue.
12479 (SSET): New macro.
12480 * alloc.c (make_event_array): Use SSET for storing into a string.
12481 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12482 a string.
12483 * casefiddle.c (casify_object): Use SSET.
12484 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12485 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12486 address of string contents.
12487 * data.c (Faref): Use SDATA.
12488 (Faset): Use SDATA, SSET.
12489 * dired.c (directory_files_internal): Use SSET.
12490 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12491 (Fread_file_name): Use SREF, SSET.
12492 * fns.c (concat): Use SSET.
12493 (concat, Fdelete): Use SDATA.
12494 * insdel.c (insert_from_string_1): Use SDATA.
12495 * keyboard.c (Fevent_convert_list): Use SREF.
12496 * lread.c (Fload): Use SDATA, SSET.
12497 * macfns.c (validate_x_resource_name): Use SSET.
12498 * process.c (status_message): Use SSET.
12499 * search.c (wordify): Use SDATA.
12500 (Freplace_match): Use SREF.
12501 * w32fns.c (validate_x_resource_name): Use SSET.
12502 * xfns.c (validate_x_resource_name): Use SSET.
12503 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12504
12505 2002-07-16 Richard M. Stallman <rms@gnu.org>
12506
12507 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12508
12509 * xdisp.c (reconsider_clip_changes):
12510 Don't test prevent_redisplay_optimizations_p.
12511 (redisplay_internal): Test prevent_redisplay_optimizations_p
12512 along with clip_changed in some cases.
12513 (try_window_id): Likewise.
12514 (redisplay_window): New local var buffer_unchanged_p.
12515
12516 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12517
12518 * process.c (create_process): Test USG_SUBTTY_WORKS.
12519 (process_send_signal): Clean up handling of GID.
12520 Detect errors in ioctls meant to set GID.
12521
12522 * window.c (temp_output_buffer_show):
12523 Don't set prevent_redisplay_optimizations_p.
12524
12525 2002-07-15 Juanma Barranquero <lektu@terra.es>
12526
12527 * eval.c (Fdefvaralias): Add docstring argument.
12528
12529 2002-07-15 Ken Raeburn <raeburn@gnu.org>
12530
12531 * lisp.h (STRING_INTERVALS): Produce rvalue.
12532 (STRING_SET_INTERVALS): New macro.
12533 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12534 * fns.c (Fstring_as_multibyte): Likewise.
12535 * intervals.c (balance_possible_root_interval, delete_interval)
12536 (create_root_interval, copy_intervals_to_string): Likewise.
12537 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12538 instead of 0.
12539
12540 2002-07-14 Ken Raeburn <raeburn@gnu.org>
12541
12542 * lisp.h (STRING_SET_CHARS): New macro.
12543 (SCHARS, SBYTES): Produce rvalues.
12544 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12545 * fns.c (concat): Likewise.
12546 * lread.c (read_vector): Likewise.
12547
12548 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12549 (STRING_SET_UNIBYTE): New macro.
12550 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12551 length of -1) changed to use STRING_SET_UNIBYTE.
12552 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12553 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12554 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12555 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12556 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12557 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12558 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12559 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12560 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12561 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12562 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12563 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12564 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12565 unchanged for now.
12566
12567 2002-07-13 Kim F. Storm <storm@cua.dk>
12568
12569 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12570
12571 2002-07-12 Richard M. Stallman <rms@gnu.org>
12572
12573 * fileio.c (Fwrite_region): Doc fix.
12574
12575 * print.c (print_error_message): Don't handle Vsignaling_function here.
12576
12577 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12578 (command_loop_1): Avoid certain actions after memory-full error.
12579
12580 * eval.c (Fsignal): Don't call cancel_hourglass.
12581 For a memory-full error, don't call Vsignal_hook_function
12582 and don't set Vsignaling_function.
12583
12584 * process.c (process_send_signal): Add abort call.
12585
12586 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
12587
12588 * keymap.c (Fkey_binding): Fix typo.
12589
12590 2002-07-11 Richard M. Stallman <rms@gnu.org>
12591
12592 * alloc.c (Vmemory_full): New variable.
12593 (Vmemory_signal_data): Renamed from memory_signal_data.
12594 Uses changed.
12595 (syms_of_alloc): Defvar them.
12596 (memory_full, buffer_memory_full): Set Vmemory_full.
12597
12598 * lisp.h (Vmemory_full): Add declaration.
12599 (current_column, indented_beyond_p): Change declaration.
12600
12601 * indent.c (last_known_column): Declare as double, not float.
12602 (current_column, current_column_1, string_display_width)
12603 (position_indentation): Return `double'.
12604 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12605
12606 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12607 (back_to_previous_visible_line_start)
12608 (reseat_at_next_visible_line_start, next_element_from_buffer):
12609 Use `double', not `float', when calling indented_beyond_p.
12610
12611 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12612
12613 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12614
12615 2002-07-11 Juanma Barranquero <lektu@terra.es>
12616
12617 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
12618 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12619 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12620 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12621 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12622 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
12623
12624 2002-07-10 Juanma Barranquero <lektu@terra.es>
12625
12626 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12627 All callers changed.
12628
12629 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12630
12631 * data.c (Fdefalias): Add an optional `docstring' argument.
12632 (set_internal, Fsetq_default): Use XCAR/XCDR.
12633
12634 * composite.c (HASH_VALUE, HASH_KEY):
12635 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12636
12637 2002-07-09 Kenichi Handa <handa@etl.go.jp>
12638
12639 * callproc.c (Fcall_process): Fix previous change.
12640
12641 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12642
12643 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12644 Add support for hash-tables.
12645 (Ftry_completion): Return t even if the string appears multiple times.
12646
12647 * fns.c (Fnconc): Use XCDR.
12648 (Fprovide): Use CONSP and XCDR.
12649 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12650 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12651 (Fmake_hash_table): Accept `:size nil'.
12652 (Fmakehash): Delete: moved to subr.el.
12653 (syms_of_fns): Don't defsubr makehash.
12654
12655 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12656 (HASH_TABLE_SIZE): Move from fns.c.
12657
12658 2002-07-07 Richard M. Stallman <rms@gnu.org>
12659
12660 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12661 Instead just return 0 when there is something to be done.
12662 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12663 retry scrolling as if cursor were off the bottom.
12664 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12665 return CURSOR_MOVEMENT_MUST_SCROLL.
12666 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12667 go to try_to_scroll.
12668
12669 * buffer.c (Fbuffer_local_value): Store current value into its binding
12670 so we get the up-to-date value for the binding that is loaded.
12671
12672 * eval.c (Fdefmacro): Doc fix.
12673
12674 2002-07-05 Dave Love <fx@gnu.org>
12675
12676 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12677 correctly.
12678
12679 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12680 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12681 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12682 CCL_LookupCharConstTbl.
12683 (syms_of_ccl): Defvar translation-hash-table-vector.
12684
12685 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12686
12687 * xdisp.c: Remove unused variable `face'.
12688
12689 2002-07-04 Juanma Barranquero <lektu@terra.es>
12690
12691 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12692 obsolescence information.
12693
12694 2002-07-03 Andrew Choi <akochoi@shaw.ca>
12695
12696 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12697 pattern. Search cache first.
12698 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12699 for Japanese font.
12700 (XLoadQueryFont): Use it.
12701
12702 2002-07-02 Richard M. Stallman <rms@gnu.org>
12703
12704 * keymap.c (Fdefine_key): Doc fix.
12705
12706 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12707
12708 2002-07-02 Juanma Barranquero <lektu@terra.es>
12709
12710 * keymap.c (syms_of_keymap): Fix typo.
12711
12712 2002-07-01 Andrew Choi <akochoi@shaw.ca>
12713
12714 * s/darwin.h: Define POSIX_SIGNALS.
12715
12716 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12717 and FSRefMakePath to convert FSSpec returned with Apple Event to
12718 Posix pathname.
12719 (mac_initialize) [TARGET_API_MAC_CARBON]:
12720 Call init_required_apple_events and disable the `Quit' menu item
12721 provided automatically by the Carbon Toolbox.
12722
12723 2002-07-01 Dave Love <fx@gnu.org>
12724
12725 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12726 for K&R.
12727
12728 * xterm.c: Fix prototype for K&R.
12729
12730 * term.c (costs_set): Declare static, non-initialized for pcc.
12731
12732 2002-07-01 Richard M. Stallman <rms@gnu.org>
12733
12734 * keyboard.c (timer_last_idleness_start_time): New variable.
12735 (timer_start_idle): Set that.
12736 (read_key_sequence): Use that to reset timer_idleness_start_time
12737 to previous value.
12738
12739 * window.c (Frecenter): With arg, set optional_new_start.
12740
12741 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12742
12743 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12744 buffer for completion.
12745
12746 2002-06-29 Ken Raeburn <raeburn@gnu.org>
12747
12748 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12749
12750 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12751
12752 * keyboard.c (readable_filtered_events): New function that filters
12753 FOCUS_IN_EVENT depending on parameter.
12754 (readable_events): Calls readable_filtered_events, not filtering
12755 FOCUS_IN_EVENT.
12756 (get_filtered_input_pending): New function, filtering parameter passed
12757 to readable_filtered_events.
12758 (get_input_pending): Calls get_filtered_input_pending, not filtering
12759 FOCUS_IN_EVENT.
12760 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12761 FOCUS_IN_EVENT.
12762
12763 * xterm.h (struct x_output): Add focus_state.
12764
12765 * xterm.c (x_focus_changed): New function.
12766 (x_detect_focus_change): New function.
12767 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12768 EnterNotify and LeaveNotify to track X focus changes.
12769
12770 2002-06-28 Andreas Schwab <schwab@suse.de>
12771
12772 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12773
12774 2002-06-27 Kim F. Storm <storm@cua.dk>
12775
12776 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12777 (mode_line_string_face_prop): New variables.
12778 (store_mode_line_string): New function.
12779 (display_mode_element): Use store_mode_line_string to
12780 add mode-line string elements to mode_line_string_list
12781 when mode_line_string_list is non-nil.
12782 (Fformat_mode_line): Now returns propertized string by
12783 default. New arg NO-PROPS to ignore properties.
12784 (decode_mode_spec): Only add two dashes for %- in propertized
12785 mode-line string.
12786 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12787
12788 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12789
12790 * minibuf.c (minibuffer_completion_contents): Add return type.
12791
12792 2002-06-27 Juanma Barranquero <lektu@terra.es>
12793
12794 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12795
12796 2002-06-26 Juanma Barranquero <lektu@terra.es>
12797
12798 * fileio.c (read_file_name_cleanup): Add missing return.
12799
12800 2002-06-26 Richard M. Stallman <rms@gnu.org>
12801
12802 * window.c (Frecenter): Don't set force_start flag.
12803
12804 * minibuf.c (do_completion, Fminibuffer_complete_word)
12805 (Fminibuffer_completion_help): Complete just the text before point.
12806 (minibuffer_completion_contents): New function.
12807
12808 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12809
12810 * frame.c (frames_bury_buffer): Function deleted.
12811
12812 2002-06-25 Miles Bader <miles@gnu.org>
12813
12814 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12815 the end of callint_message, allow for a terminating '\0'.
12816
12817 2002-06-24 Juanma Barranquero <lektu@terra.es>
12818
12819 * w32select.c: Include composite.h
12820
12821 * w16select.c: Likewise.
12822
12823 2002-06-24 Kenichi Handa <handa@etl.go.jp>
12824
12825 * callproc.c (Fcall_process): If code detection is necessary,
12826 call detect_coding directly here.
12827
12828 * coding.c (detect_eol): Preserve coding->cmp_data.
12829
12830 * w16select.c (Fw16_get_clipboard_data):
12831 * w32fns.c (w32_to_x_font):
12832 * w32select.c (Fw32_get_clipboard_data):
12833 * xselect.c (selection_data_to_lisp_data):
12834 * xterm.c (XTread_socket): Disable composition handling.
12835
12836 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12837
12838 * print.c (temp_output_buffer_setup): Kill all local variables.
12839
12840 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12841
12842 * lread.c (Fread): Remove redundant and imprecise declaration.
12843
12844 * xfns.c (check_x_display_info): Use check_x_frame.
12845
12846 * .gdbinit (xprintsym): Use the new `xname' field.
12847 (xsymbol): Use it.
12848
12849 2002-06-22 Jason Rumney <jasonr@gnu.org>
12850
12851 * w32fns.c (file_dialog_callback): New function.
12852 (Fx_file_dialog): Allow selecting directories as well as files.
12853
12854 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12855
12856 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
12857 OpenBSD. Add support for mipseb-*-netbsd* machines.
12858
12859 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12860
12861 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12862 black and white before scrolling. Restore frame background and
12863 foreground color after scrolling.
12864 (do_window_update): Call XClearWindow before calling expose_frame.
12865 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12866 FRAME_FOREGROUND_PIXEL of frame.
12867
12868 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12869 test Mac command key as <ALT> key.
12870
12871 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12872
12873 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12874
12875 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12876 Lookup keys in function-key-map immediately so that key-translation-map
12877 can be applied earlier.
12878 Remove function_key_possible and key_translation_possible, replaced
12879 by checking `keytran_start < t'.
12880
12881 * .gdbinit (xsymbol): Use the new `xname' field.
12882
12883 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12884
12885 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12886 test Mac command key as <ALT> key.
12887
12888 * mac.c (do_applescript): Call initialize_applescript if necessary
12889 when first called. Dispose of result_desc only when there is no error.
12890 (Fdo_applescript): Use %d format specifier instead of %ld.
12891
12892 2002-06-16 Andrew Choi <akochoi@shaw.ca>
12893
12894 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12895 of FrontWindow for cases keyDown and autoKey.
12896
12897 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12898 Vdefault_fontset to Monaco with mac-roman coding.
12899
12900 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12901 init_process before and after inclusion of Carbon/Carbon.h, resp.
12902
12903 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12904 cursor_gc.
12905 (add_font_name_table_entry): New function.
12906 (init_font_name_table): Use add_font_name_table_entry; add italic,
12907 bold, and bold-italic entries for truetype fonts.
12908
12909 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12910 for Mac too.
12911 (try_font_list) [MAC_OS]: If no font matches given registry, try
12912 fonts with any registry matching face_family.
12913 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12914
12915 * s/darwin.h: If autoconf detects the Ncurses library, define
12916 LIBS_TERMCAP to -lncurses to use it.
12917
12918 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12919
12920 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12921
12922 2002-06-15 Richard M. Stallman <rms@gnu.org>
12923
12924 * window.c (Fset_window_configuration): Explicitly preserve
12925 the point value that new_current_buffer had at the start.
12926
12927 2002-06-14 Juanma Barranquero <lektu@terra.es>
12928
12929 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12930 Fix typos.
12931
12932 2002-06-14 Kim F. Storm <storm@cua.dk>
12933
12934 * insdel.c (insert_1_both, insert_from_string_1)
12935 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12936 insert happened in the end_unchanged region. Otherwise, the
12937 redisplay may be confused and duplicate the last line in the
12938 buffer [seen after save-buffer when require-final-newline==t].
12939
12940 2002-06-13 Jason Rumney <jasonr@gnu.org>
12941
12942 * w32.c (init_environment): Remove EMACSLOCKDIR.
12943 (stat): Swap _S_IFDIR and _S_IFREG.
12944
12945 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12946
12947 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12948 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12949 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12950 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12951 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12952 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12953 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12954 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12955 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12956 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12957 SELECTION_REQUEST_EVENT, selection_clear_event to
12958 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12959 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12960 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12961 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12962 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12963 no_event to NO_EVENT.
12964
12965 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12966
12967 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12968
12969 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12970
12971 * intervals.c (textget): Don't forget to `return'.
12972 (lookup_char_property): Use XCAR/XCDR.
12973
12974 2002-06-12 Juanma Barranquero <lektu@terra.es>
12975
12976 * xdisp.c (Fformat_mode_line): Fix typo.
12977
12978 2002-06-12 Kim F. Storm <storm@cua.dk>
12979
12980 * xdisp.c (Fformat_mode_line): New function.
12981 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12982 (store_frame_title_char, store_frame_title): Use unconditionally.
12983 (init_xdisp): Defsubr Fformat_mode_line.
12984 Initialize frame_title_buf etc. unconditionally.
12985
12986 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12987
12988 * keyboard.c (read_key_sequence):
12989 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12990 things through those maps after downcasing events.
12991 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12992 applies after function-key-map.
12993 Make sure that keytran can be done in the middle in the sequence.
12994 Be careful not to throw away events past the one we downcase.
12995
12996 * lread.c (read_integer): Remove unused var `tem'.
12997 (read1): Fix int/Lisp_Object mixup.
12998
12999 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13000
13001 2002-06-11 Richard M. Stallman <rms@gnu.org>
13002
13003 * keyboard.c (readable_events): Ignore any number of
13004 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13005
13006 2002-06-09 Miles Bader <miles@gnu.org>
13007
13008 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13009 (parse_rgb_list, tty_lookup_color): New functions.
13010 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13011 (color_distance, Fcolor_distance): New functions.
13012 (TTY_SAME_COLOR_THRESHOLD): New macro.
13013 (Qtty_color_standard_values): New variable.
13014 (syms_of_xfaces): Initialize new vars & functions.
13015
13016 2002-06-08 Colin Walters <walters@verbum.org>
13017
13018 * textprop.c (Vchar_property_alias_alist): New variable.
13019 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13020
13021 * intervals.c (lookup_char_property): New function for looking up
13022 overlay and text properties, created from textget.
13023 (textget): Use it.
13024
13025 * intervals.h (lookup_char_property): Declare.
13026 (Vchar_property_alias_alist): Declare.
13027
13028 * buffer.c (Foverlay_get): Use lookup_char_property.
13029
13030 2002-06-07 Sam Steingold <sds@gnu.org>
13031
13032 * xselect.c (lisp_data_to_selection_data): Fix last change:
13033 *data_ret is not a Lisp string, while unibyte_string is.
13034
13035 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13036
13037 * xselect.c (lisp_data_to_selection_data): Fix last change:
13038 set size_ret.
13039
13040 2002-06-07 Andreas Schwab <schwab@suse.de>
13041
13042 * m/amdx86-64.h: New file.
13043
13044 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13045
13046 * fns.c (Fstring_make_unibyte): Doc fix.
13047
13048 * xselect.c (lisp_data_to_selection_data): If the requested type
13049 is STRING, call string_make_unibyte to encode the selected text
13050 as a string.
13051
13052 * window.c (Fset_window_hscroll): Doc fix.
13053
13054 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13055
13056 * fileio.c (choose_write_coding_system):
13057 Call select-safe-coding-system properly.
13058
13059 2002-06-03 Richard M. Stallman <rms@gnu.org>
13060
13061 * xdisp.c (message_with_string): Error if STRING is not a string.
13062
13063 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13064
13065 * fileio.c (choose_write_coding_system): Pass FILE arg to
13066 Vselect_safe_coding_system_function.
13067
13068 2002-06-03 Ken Raeburn <raeburn@gnu.org>
13069
13070 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13071
13072 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13073
13074 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13075 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13076 * keymap.c (describe_command): Likewise.
13077 * minibuf.c (read_minibuf): Likewise.
13078
13079 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13080 Cast `current_column' return value to int.
13081 (back_to_previous_visible_line_start)
13082 (reseat_at_next_visible_line_start, next_element_from_buffer):
13083 Cast `indented_beyond_p' 3rd arg to float.
13084
13085 * indent.c (last_known_column): Now a float.
13086 (current_column_1, position_indentation, current_column)
13087 (string_display_width): Return float.
13088 (Fcurrent_column): Cast `current_column' return value to int.
13089 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13090 (indented_beyond_p): Third arg now a float.
13091 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13092
13093 * lisp.h (current_column): Now returns float.
13094 (indented_beyond_p): 3rd arg now a float.
13095
13096 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13097
13098 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13099 is Qcompound_text_with_extensions.
13100
13101 * xselect.c (lisp_data_to_selection_data): Always set selection
13102 type as string if x_encode_text returns streingp non-NULL.
13103
13104 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13105
13106 2002-05-30 Richard M. Stallman <rms@gnu.org>
13107
13108 * window.c (Fset_window_configuration): Correct the handling
13109 of point in current buffer, to work with multiple windows.
13110
13111 2002-05-29 Colin Walters <walters@verbum.org>
13112
13113 * lread.c (Fread_from_string): Don't depend on order of evaluation
13114 for C function parameters.
13115
13116 2002-05-28 Richard M. Stallman <rms@gnu.org>
13117
13118 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13119 way for blinked-off state and for a nonselected window.
13120
13121 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13122 instead, see if the new start pos is at beginning of line.
13123
13124 * fileio.c (Fwrite_region): If START is a string, don't
13125 make any annotations.
13126
13127 * eval.c (syms_of_eval): Doc fix.
13128
13129 2002-05-28 Colin Walters <walters@debian.org>
13130
13131 * emacs.c (USAGE1): Add --no-splash.
13132 (standard_args): Ditto.
13133
13134 2002-05-28 Colin Walters <walters@gnu.org>
13135
13136 * lread.c (readchar_count): New variable.
13137 (readchar): Increment it.
13138 (unreadchar): Decrement it.
13139 (read_multibyte): Decrement it.
13140 (Vread_with_symbol_positions): New variable.
13141 (Vread_symbol_positions_list): New variable.
13142 (read_internal_start): New function, created from Fread and
13143 Fread_from_string. Handle Vread_symbol_positions_list and
13144 Vread_with_symbol_positions.
13145 (readevalloop, Fread, Fread_from_string): Use it.
13146 (read1): Use readchar_count to add symbol positions to
13147 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13148 (syms_of_lread): DEFVAR_LISP and initialize them.
13149
13150 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13151 (substitute_object_recurse, substitute_object_in_subtree)
13152 (substitute_in_interval): Prototype.
13153 (read_multibyte): Return c if it's less than zero.
13154
13155 2002-05-28 Kim F. Storm <storm@cua.dk>
13156
13157 * fileio.c (Fread_file_name_internal): Added brute-force
13158 speed up for using predicate file-directory-p.
13159
13160 2002-05-28 Kim F. Storm <storm@cua.dk>
13161
13162 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13163 New variables.
13164 (syms_of_fileio): DEFVAR_LISP them.
13165 (read_file_name_cleanup): New unwind function.
13166 (Fread_file_name_internal): Only return completions satifying
13167 Vread_file_name_predicate. Temporarily unwind protect and rebind
13168 default-directory while checking completions against the predicate.
13169 (Fread_file_name): Added PREDICATE argument. Specbind it to
13170 Vread_file_name_predicate during completion.
13171 Call Vread_file_name_function to read the file name if non-nil.
13172
13173 * lisp.h (Fread_file_name): Now has 6 args.
13174
13175 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13176 predicate for Fread_file_name when reading directory name.
13177 Supply Qnil for predicate in other calls to Fread_file_name.
13178
13179 2002-05-26 Miles Bader <miles@gnu.org>
13180
13181 * term.c (tty_capable_p): New function.
13182 * dispextern.h (tty_capable_p): New function declaration.
13183 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13184 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13185
13186 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13187
13188 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13189 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13190 (Vwrite_region_annotate_functions): Docstring fix.
13191
13192 2002-05-23 Kim F. Storm <storm@cua.dk>
13193
13194 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13195 phys_cursor's hpos is overwritten. This is still not completely
13196 correct, as it doesn't really make sense to use hpos at all to
13197 get the cursor glyph (as that is relative to the width of the
13198 characters on the line, which may have changed during the update).
13199
13200 2002-05-22 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13203 Lisp_Object.
13204 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13205 Use modified enumfont_t struct.
13206
13207 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13208
13209 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13210 Handle the `hbar' cursor type.
13211 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13212
13213 * w32fns.c (Qhbar): New variable.
13214 (x_specified_cursor_type): Use it.
13215
13216 2002-05-21 Ken Raeburn <raeburn@gnu.org>
13217
13218 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13219 now, when the address is needed.
13220
13221 2002-05-21 Colin Walters <walters@gnu.org>
13222
13223 * Makefile.in (shortlisp): Add font-core.el.
13224
13225 2002-05-20 Richard M. Stallman <rms@gnu.org>
13226
13227 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13228
13229 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13230 equivalent key bindings here.
13231
13232 2002-05-20 Ken Raeburn <raeburn@gnu.org>
13233
13234 Change symbol structure to contain a lisp object for the symbol
13235 name:
13236 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13237 object field named "xname".
13238 (SYMBOL_NAME): New macro.
13239 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13240 name field.
13241 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13242 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13243 instead of name field.
13244 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13245 SYMBOL_NAME instead of XSYMBOL and name field.
13246 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13247 instead of XSYMBOL and name field.
13248 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13249 and SYMBOL_NAME instead of XSYMBOL and name field.
13250 * coding.c (Fread_coding_system, code_convert_region1)
13251 (code_convert_string1, code_convert_string_norecord)
13252 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13253 XSYMBOL and name field.
13254 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13255 (Fmake_variable_buffer_local, Fmake_local_variable)
13256 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13257 of XSYMBOL and name field.
13258 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13259 XSYMBOL and name field.
13260 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13261 instead of XSYMBOL and name field.
13262 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13263 XSYMBOL and name field.
13264 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13265 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13266 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13267 instead of XSYMBOL and name field.
13268 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13269 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13270 (parse_solitary_modifier, Fexecute_extended_command):
13271 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13272 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13273 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13274 of XSYMBOL and name field.
13275 (describe_command, describe_translation): Use SYMBOL_NAME and
13276 assignment instead of XSYMBOL and name field and XSETSTRING.
13277 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13278 instead of XSYMBOL and name field.
13279 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13280 name field and XSETSTRING.
13281 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13282 of XSYMBOL and name field.
13283 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13284 assignment instead of XSYMBOL and name field and XSETSTRING.
13285 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13286 XSTRING instead of XSYMBOL and name field.
13287 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13288 and XSTRING instead of XSYMBOL and name field.
13289 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13290 and XSTRING instead of XSYMBOL and name field.
13291 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13292 XSTRING instead of XSYMBOL and name field.
13293 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13294 of XSYMBOL and name field.
13295 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13296 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13297
13298 2002-05-19 Ken Raeburn <raeburn@gnu.org>
13299
13300 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13301 and XCDR real rvalues in most configurations.
13302
13303 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13304 Don't take the address of the cdr part of a cons cell; instead, track
13305 the parent cell and call XSETCDR, or set the variable for the head
13306 of the list if we haven't started down the list yet.
13307
13308 2002-05-19 Richard M. Stallman <rms@gnu.org>
13309
13310 * doc.c (reread_doc_file): Don't ask for confirmation.
13311
13312 2002-05-18 Jason Rumney <jasonr@gnu.org>
13313
13314 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13315 (xbm_load_image): Use it.
13316 (xbm_load): Ditto.
13317 (xbm_read_bitmap_data): Reverted to xfns.c version.
13318 From David Ponce <david@dponce.com>.
13319
13320 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13321
13322 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13323 2.02 and later.
13324
13325 2002-05-16 Juanma Barranquero <lektu@terra.es>
13326
13327 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13328
13329 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13330
13331 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13332 meaningful test.
13333 (read_char_minibuf_menu_prompt): Fix typo.
13334
13335 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13336
13337 * eval.c (Fcommandp): Doc fix.
13338
13339 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13340
13341 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13342 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13343 (Fset_keymap_parent): Gcpro a bit more.
13344 (access_keymap): Gcpro around meta_map call and around the main loop.
13345 (get_keyelt): Gcpro when following indirect references.
13346 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13347 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13348 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13349 Remove useless ad-hoc remap code.
13350
13351 2002-05-13 Richard M. Stallman <rms@gnu.org>
13352
13353 * search.c (search_buffer): Give up boyer moore search if inverse
13354 translation change charset_base.
13355
13356 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13357
13358 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13359 characters is carried over from the previous block of text, adjust
13360 coding->produced to account for the extra character.
13361
13362 2002-05-11 Andreas Schwab <schwab@suse.de>
13363
13364 * coding.c (intersection): Keep the elements of the returned list
13365 in the same order as in the first list.
13366
13367 2002-05-11 Kim F. Storm <storm@cua.dk>
13368
13369 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13370 only update cmm_size if realloc actually succeeds.
13371 Testing with initial size of 2 elements revealed that using
13372 realloc on GNU/Linux would cause a random trap in xmalloc
13373 later on, so I rewrote the code to use malloc/bcopy/free instead
13374 of realloc.
13375
13376 2002-05-10 Jason Rumney <jasonr@gnu.org>
13377
13378 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13379
13380 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13381
13382 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13383 parens, to ensure correct evaluation order.
13384
13385 2002-05-10 Kim F. Storm <storm@cua.dk>
13386
13387 * keymap.c (Vemulation_mode_map_alists): New variable.
13388 (syms_of_keymap): DEFVAR_LISP it.
13389 (current_minor_maps): Process keymap alists in that list before
13390 minor-mode-overriding-map-alist and minor-mode-map-alist.
13391
13392 2002-05-09 Richard M. Stallman <rms@gnu.org>
13393
13394 * search.c (Freplace_match): Doc fix.
13395
13396 2002-05-09 Kim F. Storm <storm@cua.dk>
13397
13398 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13399 Enlarge cursor rectangle drawn around image with non-zero relief.
13400
13401 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13402 Enlarge cursor rectangle drawn around image with non-zero relief.
13403
13404 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13405 Enlarge cursor rectangle drawn around image with non-zero relief.
13406
13407 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13408
13409 * xselect.c (lisp_data_to_selection_data): Don't set selection
13410 type if comes from the Lisp object's car. If the selection
13411 contains a pure ASCII text, always return QSTRING as its type.
13412
13413 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13414
13415 * mac.c (mac-cut-function): Doc fix.
13416
13417 2002-05-05 Richard M. Stallman <rms@gnu.org>
13418
13419 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13420
13421 2002-05-04 Jason Rumney <jasonr@gnu.org>
13422
13423 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13424 for event-click-count.
13425
13426 * process.c (init_process): Only add server subfeature if we can
13427 use non-blocking I/O.
13428
13429 2002-05-04 Andrew Choi <akochoi@shaw.ca>
13430
13431 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13432 repeatedly.
13433
13434 2002-05-03 Jason Rumney <jasonr@gnu.org>
13435
13436 * process.c (Fmake_network_process): Only support server sockets
13437 when we can make them non-blocking.
13438
13439 * s/ms-w32.h (HAVE_SELECT): Define.
13440
13441 * w32.h (FILE_NDELAY): New flag.
13442
13443 * w32.c (sys_getpeername, fcntl): New functions.
13444 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13445
13446 * w32proc.c: include sys/file.h.
13447
13448 2002-05-03 Colin Walters <walters@verbum.org>
13449
13450 * callproc.c (Vgame_score_directory): Renamed to
13451 Vshared_game_score_directory.
13452
13453 2002-04-30 Richard M. Stallman <rms@gnu.org>
13454
13455 * s/gnu.h [emacs]: Include stdio.h.
13456 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13457
13458 * eval.c (do_autoload): Error if called while preparing to dump.
13459
13460 * fns.c (Frequire): Error if need to load while preparing to dump.
13461
13462 2002-04-28 Colin Walters <walters@verbum.org>
13463
13464 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13465 Default to "~/.emacs.d/games".
13466
13467 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13468
13469 * lread.c (openp): Change arg exec_only to predicate.
13470 (build_load_history): Use XCAR/XCDR.
13471 (Flocate_file_internal): New fun.
13472 (syms_of_lread): Defsubr it.
13473 (Fload): Update call to openp.
13474
13475 * lisp.h (openp): Update prototype.
13476
13477 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13478 * w32proc.c (sys_spawnve):
13479 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13480 * w32.c (check_windows_init_file):
13481 * sound.c (Fplay_sound_internal):
13482 * process.c (Fstart_process):
13483 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13484 * mac.c (run_mac_command):
13485 * emacs.c (init_cmdargs):
13486 * callproc.c (Fcall_process): Update call to openp.
13487
13488 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13489
13490 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13491
13492 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13493
13494 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13495 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13496
13497 2002-04-28 Richard M. Stallman <rms@gnu.org>
13498
13499 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13500
13501 * eval.c (Fcommandp): New arg for_call_interactively.
13502 * lisp.h (Fcommandp): Declare new arg.
13503
13504 2002-04-28 Jason Rumney <jasonr@gnu.org>
13505
13506 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13507
13508 * w32.c (stat, fstat): Use file index information to generate
13509 inodes for directories where available.
13510
13511 2002-04-26 Andrew Choi <akochoi@shaw.ca>
13512
13513 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13514 [HAVE_CARBON]: Include Mac object files.
13515
13516 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13517 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13518 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13519 MAC_OSX, and MAC_OS instead of macintosh.
13520
13521 * editfns.c [MAC_OS8]: Include stdio.h.
13522
13523 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13524
13525 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13526 Apple Monaco.
13527
13528 * process.c (QCfamily, QCfilte): Declare extern.
13529 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13530 calling select.
13531
13532 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13533
13534 * tparam.c [MAC_OSX]: Don't define BC and UP.
13535
13536 * config.in [HAVE_CARBON]: Add.
13537
13538 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13539 Move here from mac/src and mac/inc.
13540
13541 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13542
13543 2002-04-26 Gerd Moellmann <gerd@gnu.org>
13544
13545 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13546 Compute phys_cursor_width from the x position returned
13547 by x_draw_glyhs, which is cheaper.
13548 (x_display_and_set_cursor): Compute the buffer-local value
13549 of `cursor-in-non-selected-windows' only when needed.
13550
13551 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13552
13553 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13554 cursor on a stretch glyph has a width that depends on
13555 x_stretch_cursor_p.
13556
13557 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13558
13559 * abbrev.c (abbrev-start-location): Doc fix.
13560
13561 * indent.c (Fvertical_motion): Fix last change.
13562
13563 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13564
13565 * indent.c (Fvertical_motion): Move to the start of the line
13566 containing PT before moving up or down.
13567
13568 2002-04-24 Gerd Moellmann <gerd@gnu.org>
13569
13570 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13571 case of writing a whole row, more or less analogous to the case of
13572 writing only parts of a row.
13573
13574 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13575 0 for NO_CURSOR.
13576
13577 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13578
13579 2002-04-23 Colin Walters <walters@verbum.org>
13580
13581 * buffer.c (syms_of_buffer): Doc fix.
13582
13583 2002-04-23 Gerd Moellmann <gerd@gnu.org>
13584
13585 * xterm.c (notice_overwritten_cursor): Handle the special case
13586 of the cursor being in the first blank non-text line at the
13587 end of a window.
13588
13589 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13590 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13591 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13592 bar cursors only, to make phys_cursor_width contain what its name
13593 suggests.
13594 (notice_overwritten_cursor): Consider the cursor image erased if
13595 the output area intersects the cursor image in y-direction.
13596
13597 2002-04-23 Simon Marshall <simon@gnu.org>
13598
13599 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13600 to XC_hand2.
13601
13602 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13603
13604 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13605
13606 2002-04-22 Kim F. Storm <storm@cua.dk>
13607
13608 * textprop.c (remove_properties): Fixed trap for malformed plist.
13609
13610 2002-04-22 Richard M. Stallman <rms@gnu.org>
13611
13612 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13613
13614 * window.c (make_window): Initialize height_fixed_p,
13615 last_cursor_off_p, and p->cursor_off_p slots.
13616
13617 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13618
13619 * fns.c (use-dialog-box): Doc fix.
13620
13621 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13622
13623 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13624 variables `row', `i' and `area'.
13625 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13626 toolkit library.
13627
13628 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13629
13630 * xfaces.c (clear_font_table): Don't free the default font of
13631 a frame even if it's on another display.
13632 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13633 that could be Qt.
13634
13635 2002-04-19 Juanma Barranquero <lektu@terra.es>
13636
13637 * indent.c (Fmove_to_column): Remove unused local variable
13638 `next_boundary_byte'.
13639 (current_column_1): Likewise.
13640
13641 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13642
13643 * msdos.c (Qhbar): New variable.
13644 (syms_of_msdos): Intern and staticpro it.
13645 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13646 cursor type.
13647
13648 2002-04-19 Dave Lambert <dlambert@acm.org>
13649
13650 Theses change implement an underscore-like (`hbar') cursor.
13651
13652 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13653
13654 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13655 Handle the `hbar' cursor type.
13656 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13657
13658 * xfns.c (Qhbar): New variable.
13659 (syms_of_xfns): Intern and staticpro it.
13660 (x_specified_cursor_type): Handle `hbar' cursor.
13661
13662 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13663 not defined.
13664
13665 2002-04-18 Richard M. Stallman <rms@gnu.org>
13666
13667 * textprop.c (remove_properties): New arg LIST allows scanning
13668 either a list or a plist.
13669 (interval_has_some_properties_list): New function, like
13670 interval_has_some_properties using list instead of plist.
13671 All callers changed.
13672 (Fremove_list_of_text_properties): New function.
13673 (syms_of_textprop): Defsubr it.
13674
13675 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13676
13677 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13678
13679 2002-04-17 Juanma Barranquero <lektu@terra.es>
13680
13681 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13682
13683 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13684
13685 * window.c (coordinates_in_window): Don't report on margin area
13686 if its width is zero.
13687
13688 2002-04-16 Jason Rumney <jasonr@gnu.org>
13689
13690 * w32fns.c (Fx_file_dialog): Decode file name before using.
13691
13692 * w32term.c (construct_drag_n_drop): Likewise.
13693
13694 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13695
13696 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13697 store load-history in pure space.
13698
13699 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13700
13701 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13702
13703 * xterm.c (Qlatin_1, Qutf_8): New vars.
13704 (syms_of_xterm): Initialize them.
13705 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13706 decoding the output of X*LookupString.
13707 Always use latin-1 to decode the output of XLookupString.
13708 Try Xutf8LookupString if XmbLookupString failed.
13709
13710 * region-cache.c (new_region_cache): Use BEG.
13711
13712 2002-04-16 Gerd Moellmann <gerd@gnu.org>
13713
13714 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13715 configuration files.
13716 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13717 returns 0.
13718
13719 2002-04-15 Andreas Schwab <schwab@suse.de>
13720
13721 * config.in: Regenerated using autoheader.
13722
13723 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13724 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13725 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13726 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13727 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13728 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13729 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13730 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13731 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13732 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13733 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13734 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13735 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13736 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13737 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13738 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13739 STACK_DIRECTION, now set by autoconf.
13740
13741 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13742
13743 * dispnew.c (marginal_area_string): Sort arguments.
13744
13745 * dispextern.h (marginal_area_string): Add prototype.
13746
13747 2002-04-13 Richard M. Stallman <rms@gnu.org>
13748
13749 * fileio.c (Finsert_file_contents):
13750 Don't call temp_output_buffer_setup--do just part, by hand.
13751
13752 * coding.c (run_pre_post_conversion_on_str):
13753 Don't call temp_output_buffer_setup--do just part, by hand.
13754
13755 * keyboard.c (command_loop_1): Don't call start_hourglass
13756 or cancel_hourglass when executing a macro.
13757
13758 * marker.c (count_markers): New function.
13759
13760 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13761 grow without limit. Move recently used elements to the front.
13762
13763 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13764
13765 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13766
13767 2002-04-12 Gerd Moellmann <gerd@gnu.org>
13768
13769 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13770 rows marginal areas.
13771 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13772 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13773
13774 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13775
13776 2002-04-12 Dave Love <fx@gnu.org>
13777
13778 * dispnew.c (marginal_area_string): New.
13779
13780 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13781 (Qleft_margin, Qright_margin): Declare.
13782 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13783
13784 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13785 note_mode_line_highlight and extended.
13786
13787 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13788 (make_lispy_event): Deal with mouse events in margins.
13789
13790 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13791
13792 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13793
13794 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13795 than deactivating the mark if tmm is set to `lambda'.
13796 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13797 Use a single event for HELP_EVENT.
13798 (Fexecute_extended_command): Save last_point_position.
13799
13800 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13801
13802 * lisp.h (Fpropertize): Add prototype.
13803
13804 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13805
13806 2002-04-10 Colin Walters <walters@verbum.org>
13807
13808 * config.in: Add HAVE_SHARED_GAME_DIR.
13809
13810 * callproc.c: (Vgame_score_directory): New variable.
13811 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13812
13813 2002-04-10 Richard M. Stallman <rms@gnu.org>
13814
13815 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13816
13817 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13818
13819 * minibuf.c (read_minibuf): Use empty_string.
13820 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13821 Short-circuit the search as soon as it "failed".
13822 (Fall_completions): Allow lambda forms and lists of strings for alist.
13823 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13824 when require_match is nil.
13825 (Ftest_completion): Rename from `test_completion' and export to elisp.
13826 Call the predicate also when alist is a list.
13827 Obey Vcompletion_regexp_list.
13828 (do_completion, Fminibuffer_complete_and_exit): Use it.
13829 (Fassoc_string): Rename from `assoc_for_completion'.
13830 Allow list of strings as well and export to elisp.
13831
13832 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13833
13834 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13835
13836 2002-04-08 Juanma Barranquero <lektu@terra.es>
13837
13838 * w32.c (sys_accept): Don't hide variable `s'.
13839
13840 2002-04-05 Gerd Moellmann <gerd@gnu.org>
13841
13842 * callint.c (Fcall_interactively): Use INTEGERP instead of
13843 NUMBERP for checking Vhistory_length.
13844
13845 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13846
13847 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13848 Doc fix to reflect it.
13849
13850 2002-04-04 Richard M. Stallman <rms@gnu.org>
13851
13852 * xdisp.c (display_mode_element): New arg RISKY.
13853 Disregard text props found or specified within a variable
13854 that isn't marked risky-local-variable.
13855 (Qrisky_local_variable): New variable.
13856 (syms_of_xdisp): Init and staticpro it.
13857
13858 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13859
13860 * undo.c (record_point): New fun.
13861 (record_delete, record_insert): Use it.
13862
13863 2002-04-03 Juanma Barranquero <lektu@terra.es>
13864
13865 * doc.c (Fdocumentation): Add missing parentheses.
13866 (Fdocumentation_property): Likewise.
13867
13868 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13869
13870 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13871 data is 0, just return nil.
13872
13873 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13874
13875 * msdos.c (syms_of_msdos): Fix last change with
13876 mouse_autoselect_window.
13877
13878 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13879
13880 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13881 mouse_autoselect_window.
13882
13883 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13884
13885 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13886 with system-specific keysyms. Use it also for unknown function keys.
13887
13888 * doc.c (reread_doc_file): Return whether reload was attempted.
13889 (Fdocumentation, Fdocumentation_property): Don't try to reload
13890 if the doc is 0 and only ask once.
13891
13892 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13893
13894 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13895
13896 * keyboard.c (read_char): If the event was Qselect_window,
13897 restore timer_idleness_start_time to its previous value.
13898
13899 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13900
13901 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13902
13903 * region-cache.c (new_region_cache): Use BEG.
13904
13905 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13906 Use BEG and BEG_BYTE.
13907
13908 * doc.c (get_doc_string): Return nil if the location is wrong.
13909 (reread_doc_file): New fun.
13910 (Fdocumentation, Fdocumentation_property):
13911 Call it if get_doc_string fails.
13912 (Fsnarf_documentation): Make it work for a dumped Emacs.
13913
13914 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13915 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13916
13917 * charset.c (Fstring): Allow 0 arguments.
13918
13919 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13920
13921 * process.c (DATAGRAM_CONN_P, list_processes_1)
13922 (Fprocess_datagram_address, Fset_process_datagram_address)
13923 (Fset_network_process_options, server_accept_connection):
13924 Fix some int/Lisp_Object confusions (thank you union types).
13925
13926 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13927
13928 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13929
13930 * w32term.c: Likewise.
13931 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13932
13933 * keyboard.c (Qselect_window): New symbol.
13934 (head_table): Use it.
13935 (keys_of_keyboard): Bound select-window event to handle-select-window.
13936 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13937
13938 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13939 (last_window): New variable.
13940 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13941 (note_mouse_movement): Remove reimplemented code in #if 0.
13942 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13943 Emacs windows.
13944
13945 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13946
13947 2002-03-31 Gerd Moellmann <gerd@gnu.org>
13948
13949 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13950 Callers changed.
13951
13952 2002-03-30 Richard M. Stallman <rms@gnu.org>
13953
13954 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13955 loop whenever it stops making progress.
13956
13957 * widget.c (set_frame_size): Don't call change_frame_size.
13958
13959 2002-03-30 Gerd Moellmann <gerd@gnu.org>
13960
13961 * dispnew.c (direct_output_for_insert):
13962 Call mark_window_display_accurate.
13963
13964 2002-03-29 Jason Rumney <jasonr@gnu.org>
13965
13966 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13967
13968 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13969
13970 * Makefile.in (lread.o): Depend on coding.h.
13971
13972 * lread.c (openp, Fload): Encode the file name before passing it
13973 to `stat', `access', and `emacs_open'.
13974 (openp): GCPRO the encoded file name. Don't recompute Lisp
13975 strings unnecessarily.
13976
13977 2002-03-29 Kim F. Storm <storm@cua.dk>
13978
13979 * fns.c (Flax_plist_put): Doc fix.
13980
13981 2002-03-28 Miles Bader <miles@gnu.org>
13982
13983 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13984
13985 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13986
13987 * process.c (set-network-process-options): Add usage.
13988 (make-network-process): Doc fix.
13989
13990 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13991
13992 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13993
13994 2002-03-26 Richard M. Stallman <rms@gnu.org>
13995
13996 * fns.c (Fsubstring_no_properties): New function.
13997 (Flax_plist_get, Flax_plist_put): New functions.
13998 (syms_of_fns): defsubr them.
13999
14000 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14001 don't test or alter w->update_mode_line.
14002
14003 * window.c (Fdisplay_buffer): Doc fix.
14004
14005 2002-03-24 Richard M. Stallman <rms@gnu.org>
14006
14007 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14008
14009 2002-03-24 Gerd Moellmann <gerd@gnu.org>
14010
14011 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14012 (Fdefmacro): Handle `(declare ...)'.
14013 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14014 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14015
14016 2002-03-24 Jason Rumney <jasonr@gnu.org>
14017
14018 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14019 (xbm_file_p): Add prototypes.
14020 (xbm_format, xbm_image_p): Sync with xfns.c.
14021 (reflect_byte): New function.
14022 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14023 (xbm_load_image): Create bitmaps with a depth of 1.
14024 (init_xfns): Enable XBM images.
14025
14026 2002-03-23 Jason Rumney <jasonr@gnu.org>
14027
14028 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14029 correctly. Do not pass up_modifier to keyboard buffer.
14030
14031 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14032
14033 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14034
14035 * Makefile.in (bootstrapclean): New target.
14036 (bootstrap-temacs, bootstrap-doc): Remove.
14037 (bootstrap-emacs): Use a bog-standard `temacs'.
14038 Don't bother to build a DOC file.
14039
14040 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14041
14042 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14043 in temacs even if !CANNOT_DUMP.
14044 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14045
14046 * alloc.c (check_pure_size): Only output a warning.
14047
14048 2002-03-22 Jason Rumney <jasonr@gnu.org>
14049
14050 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14051 supported.
14052
14053 * w32term.c (zv_bits): Declare as short, for word alignment.
14054 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14055 (syms_of_w32term): Define x-use-underline-position-properties.
14056
14057 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14058 (clear_image_cache): Block input, fix logic, clear matrices in
14059 all frames that share this cache.
14060
14061 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14062
14063 * emacs.c (main): Update the Copyright year in the blurb printed
14064 by "emacs --version".
14065
14066 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14067
14068 * xterm.c (XTread_socket): If XK_ISO_Lock and
14069 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14070 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14071
14072 2002-03-21 Kim F. Storm <storm@cua.dk>
14073
14074 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14075 menu-bar bindings in keymap and local-map properties _are_ used.
14076 But try keymap property first in accordance with 2002-01-03 patch.
14077 Added comment describing why this is not always reliable.
14078 (tool_bar_items): Ditto for tool-bar.
14079
14080 2002-03-21 Jason Rumney <jasonr@gnu.org>
14081
14082 * w32fns.c (x_clear_image_1): Disable color table code.
14083
14084 2002-03-21 Kim F. Storm <storm@cua.dk>
14085
14086 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14087 removed the wrong version of the DEFUN macro; fixed it.
14088
14089 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14090 Fmember rather than Fmemq).
14091 (Fprovide): Check that subfeatures is a list.
14092
14093 * process.c (QCfeature, QCdatagram): Removed variables.
14094 (QCtype, Qdatagram): New variables.
14095 (network_process_featurep): Removed function.
14096 (Fmake_network_process): Removed :feature check.
14097 Use :type 'datagram instead of :datagram t to create a datagram
14098 socket. This allows us to add other connection types (e.g. raw
14099 sockets) later in a consistent manner.
14100 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14101 supported subfeatures for feature make-network-process.
14102 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14103 Intern and staticpro QCtype and Qdatagram.
14104 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14105
14106 * xfns.c: (QCtype): Remove duplicate declaration and
14107 initialization (is now declared in process.c).
14108
14109 * w32fns.c: (QCtype): Remove duplicate declaration and
14110 initialization (is now declared in process.c).
14111
14112 2002-03-21 Richard M. Stallman <rms@gnu.org>
14113
14114 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14115 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14116 when jumping to `fail' to avoid undoing reg changes in the
14117 last iteration of the loop.
14118 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14119
14120 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14121 Depend on process.h.
14122
14123 2002-03-20 Jason Rumney <jasonr@gnu.org>
14124
14125 Most of the following changes are still conditional on HAVE_IMAGES
14126 which is not set by default on Windows.
14127
14128 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14129
14130 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14131 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14132 (four_corners_best, x_clear_image_1, x_clear_image)
14133 (x_alloc_image_color, postprocess_image)
14134 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14135 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14136 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14137
14138 * w32gui.h (struct XImage): Define.
14139
14140 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14141 extract mouse co-ordinates.
14142
14143 2002-03-20 Jason Rumney <jasonr@gnu.org>
14144
14145 * w32.c (init_winsock): Dynamically load new server and UDP
14146 socket functions.
14147 (socket_to_fd): New function.
14148 (sys_socket): Use it.
14149 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14150 (sys_recvfrom, sys_sendto): New wrapper functions.
14151
14152 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14153 and initialization.
14154
14155 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14156
14157 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14158
14159 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14160 Don't use "sun" as a variable, it's a predefined constant on Sun
14161 machines.
14162
14163 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14164
14165 * bytecode.c (Fbyte_code): Revert last change.
14166
14167 2002-03-19 Kim F. Storm <storm@cua.dk>
14168
14169 * makefile.w32-in (LIBS): Add $(WSOCK32).
14170 From David Ponce <dponce@voila.fr>.
14171
14172 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14173
14174 * process.c (wait_reading_process_input): Move variables `pname'
14175 and `pnamelen' down where they are used.
14176
14177 * bytecode.c (Fbyte_code): Discard unused computed value to
14178 prevent gcc warning.
14179
14180 * lisp.h (Fplist_member): Add prototype.
14181
14182 2002-03-18 Kim F. Storm <storm@cua.dk>
14183
14184 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14185 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14186
14187 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14188 Remove explicit GNU_LINUX settings for datagram support.
14189
14190 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14191
14192 * process.c (Fmake_network_process): Remove unused variable `sa'.
14193 Doc fix. Add usage:.
14194 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14195
14196 2002-03-17 Richard M. Stallman <rms@gnu.org>
14197
14198 * xdisp.c (cursor_type_changed): New variable.
14199 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14200 Clear it when clearing windows_or_buffers_changed.
14201 (try_cursor_movement, redisplay_window, try_window_id)
14202 (try_window_reusing_current_matrix): Test cursor_type_changed
14203 along with windows_or_buffers_changed.
14204
14205 * window.h (cursor_type_changed): New variable.
14206
14207 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14208 not update_mode_lines, and always set it to 1.
14209
14210 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14211 if no frames needed redrawing.
14212
14213 2002-03-17 Kim F. Storm <storm@cua.dk>
14214
14215 The following changes add support for network server processes,
14216 datagram connections, and local (unix) sockets.
14217
14218 * process.h (struct Lisp_Process): New member log.
14219 Doc fix: Member command used to indicate stopped network process.
14220 Doc fix: Member childp contains plist for network process.
14221 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14222
14223 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14224 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14225 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14226 New variables.
14227 (NETCONN1_P): New macro.
14228 (DATAGRAM_SOCKETS): New conditional symbol.
14229 (datagram_address): New array.
14230 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14231 (status_message): Use concat3.
14232 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14233 for a stopped network process.
14234 (Fset_process_buffer): Update contact plist for network process.
14235 (Fset_process_filter): Ditto. Don't enable input for stopped
14236 network processes. Server must listen, even if filter is t.
14237 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14238 New functions.
14239 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14240 (Fprocess_contact): Added KEY argument. Handle datagrams.
14241 (list_processes_1): Optionally show only processes with the query
14242 on exit flag set. Dynamically adjust column widths. Omit tty
14243 column if not needed. Report stopped network processes.
14244 Identify server and datagram network processes.
14245 (Flist_processes): New optional arg `query-only'.
14246 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14247 (conv_lisp_to_sockaddr, set_socket_options)
14248 (network_process_featurep, unwind_request_sigio): New helper functions.
14249 (Fprocess_datagram_address, Fset_process_datagram_address):
14250 (Fset_network_process_options): New lisp functions.
14251 (Fopen_network_stream): Removed. Now defined in simple.el.
14252 (Fmake_network_process): New lisp function. Code is based on previous
14253 Fopen_network_stream, but heavily reworked with new property list based
14254 argument list, support for datagrams, server processes, and local
14255 sockets in addition to old client-only functionality.
14256 (server_accept_connection): New function.
14257 (wait_reading_process_input): Use it to handle incoming connects.
14258 Do not enable input on a new connection if process is stopped.
14259 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
14260 (send_process): Handle datagram sockets.
14261 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14262 network process is indicated by setting command field to t .
14263 (Fprocess_send_eof): No-op if datagram connection.
14264 (Fstatus_notify): Don't read input for a stream server socket or a
14265 stopped network process.
14266 (init_process): Initialize datagram_address array.
14267 (syms_of_process): Intern and staticpro new variables, defsubr new
14268 functions.
14269
14270 2002-03-16 Jason Rumney <jasonr@gnu.org>
14271
14272 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14273 startup case.
14274
14275 2002-03-16 Richard M. Stallman <rms@gnu.org>
14276
14277 * xdisp.c (redisplay_internal, redisplay_windows):
14278 Use list_of_error to call internal_condition_case_1.
14279 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14280 so as to catch all errors with no possibility of debugger redisplay.
14281 (list_of_error): New variable.
14282 (syms_of_xdisp): Init and staticpro it.
14283
14284 * print.c (print_object): Delete `\ ' from printed rep of frame.
14285
14286 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14287
14288 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14289 until its implementation is fixed.
14290
14291 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14292
14293 * xfns.c (png_load): Remove unused variable `gamma_str'.
14294
14295 2002-03-14 Richard M. Stallman <rms@gnu.org>
14296
14297 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14298
14299 2002-03-14 Miles Bader <miles@gnu.org>
14300
14301 * intervals.c (adjust_for_invis_intang): New function.
14302 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14303 work for dealing with invisible+intangible regions. Do so before
14304 and after both forward and backward movements, to handle both
14305 front-sticky and rear-sticky cases.
14306 * textprop.c (text_property_stickiness): Function moved here from
14307 `editfns.c'.
14308 * intervals.h (text_property_stickiness): New declaration.
14309 * editfns.c (char_property_eq): Function removed.
14310 (text_property_stickiness): Function moved to `textprop.c'.
14311
14312 2002-03-13 Jason Rumney <jasonr@gnu.org>
14313
14314 * config.in: Add STRFTIME_NO_POSIX2.
14315
14316 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14317 and %OX when underlying strftime does not.
14318
14319 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14320
14321 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14322 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14323 line) to avoid annoying flicker.
14324 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14325 (XTread_socket): Mark it static.
14326
14327 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14328
14329 2002-03-13 Kim F. Storm <storm@cua.dk>
14330
14331 * puresize.h (BASE_PURESIZE): Increase to 775000.
14332
14333 2002-03-12 Juanma Barranquero <lektu@terra.es>
14334
14335 * editfns.c (syms_of_editfns): Fix typo.
14336
14337 2002-03-12 Gerd Moellmann <gerd@gnu.org>
14338
14339 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14340 Include termopt.h for interrupt_input.
14341
14342 2002-03-11 Andreas Schwab <schwab@suse.de>
14343
14344 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14345
14346 2002-03-11 Gerd Moellmann <gerd@gnu.org>
14347
14348 * xterm.c (note_mouse_movement): Put code for
14349 x_autoselect_window_p in #if 0.
14350
14351 * lread.c (Fload): Don't assume that message_with_string uses the
14352 string it is given like a C string.
14353
14354 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14355
14356 * xterm.h (x_session_check_input, x_session_initialize): Declare.
14357
14358 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14359 x_session_have_connection.
14360 (x_initialize): Add call to x_session_initialize.
14361
14362 * termhooks.h (enum event_kind): Add save_session_event.
14363
14364 * keyboard.c: Add Emacs event save_session_event.
14365
14366 * emacs.c (main): Add call to syms_of_xsmfns.
14367
14368 * lisp.h (syms_of_xsmfns): Declare extern.
14369
14370 * config.in: Add HAVE_X_SM.
14371
14372 * Makefile.in (LIBXT): Add -lSM -lICE
14373 if HAVE_X_SM and not USE_X_TOOLKIT.
14374 (XOBJ): New file xsmfns.c added.
14375
14376 * xsmfns.c: New file for X session management.
14377
14378 2002-03-09 Jason Rumney <jasonr@gnu.org>
14379
14380 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14381 read-only when setting modified time.
14382
14383 2002-03-08 Gerd Moellmann <gerd@gnu.org>
14384
14385 * xdisp.c (move_it_vertically_backward): At the end of the function,
14386 when moving forward by lines, treat terminal frames specially.
14387
14388 * keyboard.c (echo_char): Make sure to add a separator between
14389 keys even if echo_dash hasn't been called.
14390
14391 * xdisp.c: Use new string macros.
14392 (update_echo_area): Pass number of bytes to message3 instead of
14393 number of chars.
14394 (set_message_1): Don't access a string's size_byte directly.
14395 (decode_mode_spec_coding): Use number of bytes of eoltype string
14396 instead number of chars.
14397
14398 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14399
14400 2002-03-08 Juanma Barranquero <lektu@terra.es>
14401
14402 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14403 24-bit.
14404
14405 2002-03-06 Jason Rumney <jasonr@gnu.org>
14406
14407 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14408
14409 2002-03-06 Gerd Moellmann <gerd@gnu.org>
14410
14411 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14412 (cancel_echoing, echo_length, echo_truncate): Changed to
14413 work with new kboard definition.
14414 (echo_now): Use message3_nolog instead of message2_nolog.
14415
14416 * alloc.c (mark_kboards): Mark echo_string.
14417
14418 * keyboard.h (ECHOBUFSIZE): Removed.
14419 (struct kboard): Member echoptr removed, member echobuf renamed
14420 to echo_string.
14421
14422 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14423 message3 instead of message2 to display the message using STRING's
14424 text properties.
14425
14426 2002-03-05 Andreas Schwab <schwab@suse.de>
14427
14428 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14429
14430 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14431
14432 * frame.c (default-frame-alist): Explain that setting it doesn't
14433 affect existing frames.
14434
14435 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14436
14437 * indent.c (skip_invisible): Fix my brain fart.
14438
14439 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14440
14441 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14442
14443 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14444 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14445 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14446 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14447 and variables to use EMACS_INT instead of just int.
14448
14449 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14450
14451 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14452
14453 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14454 environment, pass it down with corrected value.
14455
14456 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14457
14458 * lread.c (read_filtered_event): Do not call start_hourglass
14459 before returning.
14460
14461 2002-03-04 Juanma Barranquero <lektu@terra.es>
14462
14463 * w32term.c (x_display_and_set_cursor): Fix typo.
14464
14465 2002-03-03 Richard M. Stallman <rms@gnu.org>
14466
14467 * fileio.c (Fmake_temp_name): Doc fix.
14468
14469 2002-03-03 Gary Wong <gtw@gnu.org>
14470
14471 * termcap.c [!emacs]: Replace ospeed for building standalone
14472 libtermcap, for binary compatibility.
14473
14474 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14475
14476 2002-03-03 Richard M. Stallman <rms@gnu.org>
14477
14478 * xrdb.c (file_p): Rename arg `path' to `filename'.
14479
14480 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14481 only if it is an integer.
14482
14483 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14484 If png_get_sRGB gives an answer, call png_set_gamma
14485 using the default image gamma value.
14486
14487 * lread.c (read1): When reading from a file, default string to
14488 multibyte only if it has some multibyte characters.
14489
14490 * print.c (print_object): Output multibyte chars 128...255
14491 using \x even if ! print_escape_multibyte.
14492
14493 * xdisp.c (display_mode_element): Move the places where
14494 bytepos, charpos, this, and lisp_string are set.
14495 Use lisp_string to set bytepos.
14496
14497 * xdisp.c (redisplay_internal):
14498 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14499
14500 * xdisp.c (display_mode_element): Merge properties specified with
14501 :propertize onto those that come with the string.
14502
14503 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14504
14505 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14506 automatic-hscrolling. Users changed.
14507 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14508 Users changed.
14509 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14510
14511 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14512
14513 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14514
14515 2002-03-02 Kim F. Storm <storm@cua.dk>
14516
14517 * window.c (Fminibuffer_selected_window): New function.
14518 (syms_of_window): Defsubr it.
14519
14520 2002-03-01 Kim F. Storm <storm@cua.dk>
14521
14522 * window.h (struct window): New member phys_cursor_width.
14523
14524 * window.c (make_window, replace_window): Init phys_cursor_width.
14525
14526 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14527 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14528
14529 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14530 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14531
14532 * lisp.h (GCPRO6): New macro.
14533
14534 * process.c (Fopen_network_stream): Use GCPRO6.
14535
14536 2002-03-01 Kim F. Storm <storm@cua.dk>
14537
14538 * process.c (Qconnect, Qfailed): New variables.
14539 (syms_of_process): Intern and staticpro them.
14540 (Fprocess_status): Document connect and failed return values.
14541 [NON_BLOCKING_CONNECT]: New conditional.
14542 (connect_wait_mask, num_pending_connects): New variables.
14543 (status_message): Convert Qfailed status.
14544 (Fopen_network_stream): Added support for non-blocking connect.
14545 New optional args: filter, sentinel, non_blocking. Doc updated.
14546 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14547 (deactivate_process): Handle pending non-blocking connect.
14548 (wait_reading_process_input): Poll for status of non-blocking
14549 connects. Exec sentinel directly when connect succeeds.
14550 (status_notify): Don't read process output if not yet connected.
14551
14552 2002-02-28 Kim F. Storm <storm@cua.dk>
14553
14554 * window.c: (minibuf_selected_window): Renamed from
14555 Vminibuf_selected_window. Users changed.
14556 (syms_of_window): Staticpro it.
14557
14558 2002-02-26 Kim F. Storm <storm@cua.dk>
14559
14560 The following changes add a new Vminibuf_selected_window variable
14561 which is similar to Vminibuf_scroll_window, but which is only set
14562 on entry to the minibuffer (from a non-minibuffer window):
14563
14564 * window.c: (Vminibuf_selected_window): New variable.
14565 (struct save_window_data): New member minibuf_selected_window.
14566 (Fset_window_configuration): Restore Vminibuf_selected_window.
14567 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14568 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14569 (compare_window_configurations): Compare minibuf_selected_window.
14570
14571 * window.h: (Vminibuf_selected_window): Declare extern.
14572
14573 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14574 entry to minibuffer or on entry from a non-minibuffer window.
14575
14576 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14577 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14578
14579 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14580 instead of Vminibuf_scroll_window when deciding in which window
14581 the region should be highlighted. Consequently, the region remains
14582 highlighteded even when a completion buffer is also displayed.
14583
14584 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14585
14586 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14587
14588 * xselect.c (Qcompound_text_with_extensions): Renamed from
14589 Qcompound_text_no_extensions.
14590 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14591
14592 2002-02-26 Juanma Barranquero <lektu@terra.es>
14593
14594 * w32proc.c (syms_of_ntproc): Doc fix.
14595
14596 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14597
14598 * intervals.h: Include "dispextern.h" unconditionally.
14599
14600 2002-02-24 Jason Rumney <jasonr@gnu.org>
14601
14602 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14603 and disp-table.elc.
14604 (lisp): Add emacs-lisp/backquote.elc.
14605
14606 2002-02-24 Kim F. Storm <storm@cua.dk>
14607
14608 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14609 The validation of the event type was too strict as it didn't
14610 allow string events; buffer names are used in bindings for
14611 menu-bar-select-buffer (see `menu-bar-update-buffers').
14612
14613 2002-02-23 Kim F. Storm <storm@cua.dk>
14614
14615 The following changes rework my patch of 2002-02-06 which
14616 added command remapping by entering the commands directly into
14617 the keymaps. Now, command remapping uses an explicit `remap'
14618 prefix in the keymaps, i.e. [remap COMMAND].
14619
14620 * keymap.c (Qremap, remap_command_vector): New variables.
14621 (is_command_symbol): Removed function.
14622 (Fdefine_key): No longer accept a symbol for KEY.
14623 Added validation of [remap COMMAND] argument for KEY.
14624 The DEF is no longer required to be a symbol when remapping a command.
14625 (Fremap_command): New function to remap command through keymaps.
14626 (Flookup_key): Perform command remapping initiated by
14627 Fremap_command directly for speed.
14628 (Fkey_binding): Use Fremap_command for command remapping.
14629 (where_is_internal): Handle new command remapping representation.
14630 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14631 staticpro them. Defsubr Fremap_command.
14632
14633 * keymap.h (Fremap_command): Declare extern.
14634 (is_command_symbol): Remove extern.
14635
14636 * keyboard.c (command_loop_1): Use Fremap_command for command
14637 remapping; now try command remapping for all symbols.
14638
14639 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14640
14641 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14642
14643 2002-02-23 Jason Rumney <jasonr@gnu.org>
14644
14645 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14646 on the string before encoding it.
14647 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14648 after decoding it.
14649
14650 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14651
14652 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14653
14654 * w32term.c (enter_timestamp): Remove unused static variable to
14655 prevent warning.
14656
14657 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14658
14659 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14660
14661 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14662
14663 * xselect.c (selection_data_to_lisp_data): Fix last change.
14664
14665 2002-02-22 Jason Rumney <jasonr@gnu.org>
14666
14667 * w32term.h (struct w32_output): New member menu_command_in_progress.
14668
14669 * w32menu.c (menubar_selection_callback): Free the menu and
14670 clear the menu_command_in_progress flag.
14671
14672 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14673 (menu_free_timer): New variable.
14674 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14675 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14676 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14677 menu command is in progress.
14678 <WM_COMMAND>: Set the menu_command_in_progress flag.
14679 Kill any menu_free_timer that is running.
14680
14681 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14682 Call ExtTextOutA rather than ExtTextOut.
14683
14684 2002-02-22 Eli Zaretskii <eliz@gnu.org>
14685
14686 * puresize.h (BASE_PURESIZE): Increase to 755000.
14687
14688 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14689
14690 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14691 on the string before encoding it.
14692 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14693 after decoding it.
14694
14695 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14696
14697 Support for ICCCM Extended Segments in X selections:
14698
14699 * xselect.c <Qcompound_text_no_extensions>: New variable.
14700 (syms_of_xselect): Intern and staticpro it.
14701 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14702 selection text.
14703 (lisp_data_to_selection_data): If next-selection-coding-system is
14704 compound-text-no-extensions, set the type of selection to be
14705 compound-text.
14706
14707 * xterm.h (x_encode_text): Update prototype.
14708
14709 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14710 callers changed. If SELECTIONP is non-zero, run the
14711 pre-write-conversion function before encoding the selection text.
14712
14713 2002-02-21 Kim F. Storm <storm@cua.dk>
14714
14715 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14716
14717 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14718 Correct composing of language-change event.
14719
14720 2002-02-20 Kim F. Storm <storm@cua.dk>
14721
14722 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14723 bindings at PT when building menu (the menu is not updated often
14724 enough for this to work reliable).
14725 (tool_bar_items): Likewise.
14726 (current_active_maps): Removed unused (and buggy) function.
14727
14728 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14729
14730 * xfns.c (gif_load): Use correct width and height for GIF images.
14731
14732 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14733
14734 * floatfns.c (Fatan): Accept an optional second arg and call
14735 atan2 if passed 2 args.
14736
14737 2002-02-18 Jason Rumney <jasonr@gnu.org>
14738
14739 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14740
14741 2002-02-17 Jason Rumney <jasonr@gnu.org>
14742
14743 * w32term.c (x_autoselect_window_p): New variable.
14744 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14745 (note_mouse_movement): Use it.
14746
14747 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14748
14749 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14750
14751 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14752 New variables.
14753 (syms_of_w32fns): Intern and staticpro them.
14754 (x_frame_parms) <"fullscreen">: New parameter.
14755 (x_fullscreen_move, x_set_fullscreen): New functions.
14756 (x_set_frame_parameters): Support Qfullscreen.
14757 (x_real_positions): Save x/y_pixels_diff frame params.
14758 (x_figure_window_size): Support full-screen frames.
14759 (Fx_create_frame): Default the fullscreen parameter.
14760
14761 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14762 (x_fullscreen_adjust): New functions.
14763 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14764 fullscreen. Call x_check_fullscreen_move, and set the
14765 want_fullscreen member of output_data.w32
14766 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14767
14768 * w32term.h: New enum for FULLSCREEN_* constants.
14769 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14770 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14771 (x-fullscreen-adjust): New prototype.
14772
14773 2002-02-17 Kim F. Storm <storm@cua.dk>
14774
14775 * frame.c: (Vmouse_highlight): New variable.
14776 (syms_of_frame): DEFVAR_LISP it.
14777
14778 * frame.h: (Vmouse_highlight): Declare extern.
14779
14780 * xterm.h (struct x_display_info): Add mouse_face_hidden.
14781
14782 * xterm.c (disable_mouse_highlight): Removed variable.
14783 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14784 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14785 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14786 and on after keyboard input.
14787 (x_term_init): Initialize mouse_face_hidden.
14788
14789 * msdos.h (struct display_info): Add mouse_face_hidden.
14790
14791 * msdos.c (disable_mouse_highlight): Removed variable.
14792 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14793 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14794 (internal_terminal_init): Initialize mouse_face_hidden.
14795 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14796 and on after keyboard input.
14797
14798 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
14799
14800 * w32term.c (disable_mouse_highlight): Removed variable.
14801 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14802 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14803 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14804 and on after keyboard input.
14805 (w32_initialize_display_info): Initialize mouse_face_hidden.
14806
14807 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
14808
14809 * msdos.c (last_mouse_window): New variable.
14810 (dos_rawgetc): Fix last change--if the mouse is in the same window
14811 as recorded in last_mouse_window, don't select this window.
14812
14813 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
14814
14815 * msdos.c (x_autoselect_window_p): New variable.
14816 (syms_of_msdos): Defvar it.
14817 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14818 which the last mouse movement occured, unless it is already selected.
14819
14820 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14821 New variables.
14822 (syms_of_xdisp): DEVFAR them.
14823 (hscroll_window_tree): Use automatic_hscroll_margin and
14824 Vautomatic_hscroll_step to compute the amount of window scrolling.
14825
14826 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14827
14828 * xterm.c (x-autoselect-window): New variable.
14829 (note_mouse_movement): Use it.
14830
14831 * keyboard.c: Do not include "systime.h" twice.
14832
14833 2002-02-15 Andreas Schwab <schwab@suse.de>
14834
14835 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
14836
14837 * alloc.c (NSTATICS): Increase to 1280.
14838
14839 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
14840
14841 * alloc.c (NSTATICS): Bump to 1026.
14842
14843 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14844 (Vx_super_keysym): New variables.
14845 (syms_of_xterm): DEFVAR_LISP them.
14846 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14847 variables to determine which keys to use for the various modifiers.
14848
14849 2002-02-13 Kim F. Storm <storm@cua.dk>
14850
14851 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14852 (mode_line_in_non_selected_windows): New variable.
14853 (syms_of_window): DEFVAR_BOOL it.
14854
14855 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14856 Use mode_line_in_non_selected_windows.
14857 (mode_line_in_non_selected_windows): Declare extern.
14858 (Vmode_line_in_non_selected_windows): Removed extern.
14859
14860 2002-02-13 Richard M. Stallman <rms@gnu.org>
14861
14862 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14863 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14864 (Fclear_this_command_keys): Doc fixes.
14865
14866 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14867 (update_face_from_frame_parameter): Increment face_change_count
14868 and windows_or_buffers_changed to force redisplay using changed faces.
14869
14870 * xdisp.c (QCpropertize): New variable.
14871 (mode_line_proptrans_alist): New variable.
14872 (display_mode_element): New arg PROPS; all calls changed.
14873 Implement this, for strings.
14874 Handle literal output of strings by sharing the
14875 main-line code for strings, using local var `literal'.
14876 Handle :propertize feature.
14877 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14878 mode_line_proptrans_alist.
14879
14880 2002-02-11 Kim F. Storm <storm@cua.dk>
14881
14882 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14883 (syms_of_window): DEFVAR_LISP it.
14884
14885 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14886 (CURRENT_MODE_LINE_FACE_ID): Use it.
14887 (Vmode_line_in_non_selected_windows): Declare extern.
14888
14889 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14890 to get mode line face.
14891
14892 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
14893
14894 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14895 variables; cus-start.el doesn't need them anymore.
14896
14897 2002-02-09 Kim F. Storm <storm@cua.dk>
14898
14899 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14900 reduction. This fixes a display problem where stray newlines were
14901 inserted in the window (corrected by C-l). Clarified code (IMHO).
14902
14903 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
14904
14905 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
14906
14907 * xdisp.c (display_mode_lines): Fix last change.
14908
14909 2002-02-09 Jason Rumney <jasonr@gnu.org>
14910
14911 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14912 match each other.
14913 (w32_load_system_font): Prevent Cleartype fonts from loading.
14914 (Fx_show_tip): Ensure tip frames are above other topmost windows.
14915
14916 2002-02-09 Kim F. Storm <storm@cua.dk>
14917
14918 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14919 (CURRENT_MODE_LINE_HEIGHT): Use it.
14920 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
14921
14922 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14923 (pos_visible_p, handle_face_prop): Likewise.
14924 (display_mode_lines): Likewise, but for the real selected window.
14925 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
14926
14927 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14928 in non-selected windows.
14929 (realize_basic_faces): Realize it.
14930 (syms_of_term): Intern and staticpro it.
14931
14932 2002-02-08 Kim F. Storm <storm@cua.dk>
14933
14934 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14935 Changed mail addresses to emacs-devel@gnu.org.
14936
14937 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
14938
14939 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14940 ~user, and there's no such user, don't discard everything before ~user.
14941
14942 * floatfns.c (Fround): Doc fix.
14943
14944 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14945
14946 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
14947
14948 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
14949
14950 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
14951
14952 2002-02-07 Kim F. Storm <storm@cua.dk>
14953
14954 * keymap.c (where_is_internal): Only check whether definition is
14955 remapped if it fulfills is_command_symbol.
14956
14957 2002-02-07 Andreas Schwab <schwab@suse.de>
14958
14959 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
14960
14961 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
14962
14963 2002-02-06 Kim F. Storm <storm@cua.dk>
14964
14965 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14966 defining command remapping. Doc updated.
14967 (Flookup_key): Remap command through keymap if KEY is a symbol.
14968 (is_command_symbol): New function.
14969 (Fkey_binding): Use it. New optional argument NO-REMAP.
14970 Doc updated. Callers changed. Perform command remapping via
14971 recursive call unless that arg is non-nil.
14972 (where_is_internal): New argument no_remap. Callers changed.
14973 Call recursively to find original key bindings for a remapped
14974 comand unless that arg is non-nil.
14975 (Fwhere_is_internal): New optional argument NO-REMAP.
14976 Doc updated. Callers changed. Pass arg to where_is_internal.
14977
14978 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14979 (is_command_symbol): Added prototype.
14980
14981 * keyboard.c (Vthis_original_command): New variable.
14982 (syms_of_keyboard): DEFVAR_LISP it.
14983 (command_loop_1): Set it, and perform command remapping.
14984
14985 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14986
14987 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
14988
14989 2002-02-06 Jason Rumney <jasonr@gnu.org>
14990
14991 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
14992
14993 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
14994
14995 * charset.c (get_charset_id): Use if-else instead of ?:.
14996
14997 2002-02-06 Richard M. Stallman <rms@gnu.org>
14998
14999 * filelock.c (S_ISLNK): Define if not defined.
15000
15001 2002-02-03 Richard M. Stallman <rms@gnu.org>
15002
15003 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15004
15005 * lread.c (read1): Redesign strategy for force_multibyte and
15006 force_singlebyte. Now is_multibyte records whether read_buffer
15007 is multibyte. Encountering any multibyte character makes it so.
15008
15009 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
15010
15011 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15012 with the same sequence, map that sequence to f10 rather than f0.
15013
15014 2002-02-03 Andreas Schwab <schwab@suse.de>
15015
15016 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15017 latter never being defined on GNU/Linux.
15018
15019 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
15020
15021 * xfaces.c (realize_default_face): Don't set the weight and slant of
15022 the default face to Qnormal, unless these attributes are unspecified.
15023
15024 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15025
15026 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15027 Call cancel_hourglass unconditionally.
15028
15029 * eval.c (Fsignal): Remove duplicated declaration of
15030 the variable `display_hourglass_p'.
15031
15032 2002-01-31 Richard M. Stallman <rms@gnu.org>
15033
15034 * editfns.c (region_limit): Nicer error message.
15035
15036 * coding.c (decode_composition_emacs_mule):
15037 Give up if NCOMPONENT gets too large to index `component'.
15038
15039 * callint.c (check_mark): New arg to specify clearer error message.
15040 Callers changed.
15041
15042 2002-01-27 Richard M. Stallman <rms@gnu.org>
15043
15044 * minibuf.c (Fcompleting_read): Doc fix.
15045
15046 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15047
15048 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15049 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15050 Fix doc-strings.
15051
15052 2002-01-26 Richard M. Stallman <rms@gnu.org>
15053
15054 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
15055
15056 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15057 and scroll_up_aggressively.
15058
15059 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15060
15061 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
15062
15063 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
15064
15065 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15066 (Fprevious_property_change, Fprevious_single_property_change):
15067 Stay within the narrowed-buffer boundaries.
15068
15069 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
15070
15071 * term.c (Ftty_display_color_cells): New function.
15072 (syms_of_term): Defsubr it.
15073 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15074 argument name to DISPLAY. Doc fix.
15075
15076 * dispextern.h: Add prototype for set_tty_color_mode and
15077 tty_setup_colors.
15078
15079 2002-01-24 Jason Rumney <jasonr@gnu.org>
15080
15081 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15082 If region left to draw is not what was expected, mark the frame as
15083 garbaged.
15084
15085 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15086 Combine the regions returned by BeginPaint and GetUpdateRect.
15087
15088 2002-01-23 Jason Rumney <jasonr@gnu.org>
15089
15090 * w32term.c (x_update_window_begin): Only hide caret if
15091 w32_use_visible_system_caret is set.
15092 (x_update_window_end): Only show caret if
15093 w32_use_visible_system_caret is set.
15094 (syms_of_w32term): Handle SystemParametersInfo call failing.
15095
15096 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
15097
15098 2002-01-22 Richard M. Stallman <rms@gnu.org>
15099
15100 * unexelf.c (unexec): Define n so as to cause compilation error
15101 for the code where people have often written n instead of nn.
15102
15103 * .gdbinit (hookpost-run): Defined.
15104
15105 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15106
15107 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
15108
15109 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15110
15111 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15112 if fullscreen is being set.
15113
15114 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15115
15116 * minibuf.c (Fminibuffer_contents)
15117 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15118 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
15119
15120 2002-01-21 Richard M. Stallman <rms@gnu.org>
15121
15122 * window.c (check_frame_size): Fix minimum height calculation.
15123
15124 2002-01-20 Ken Raeburn <raeburn@gnu.org>
15125
15126 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15127 height before comparison.
15128 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
15129
15130 2002-01-20 Jason Rumney <jasonr@gnu.org>
15131
15132 * w32term.c (w32_system_caret_width): Remove.
15133 (w32_use_visible_system_caret): New user flag.
15134 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15135 Windows reports a screen reader running.
15136 (x_update_window_begin): Hide the system caret.
15137 (x_update_window_end): Show the system caret.
15138 (x_display_and_set_cursor): Don't draw a cursor when
15139 w32_use_visible_system_caret is set. Do not adjust width.
15140
15141 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15142 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15143 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15144 the user requests it. Use system default width when creating.
15145 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
15146
15147 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15148 New window messages.
15149
15150 2002-01-20 Richard M. Stallman <rms@gnu.org>
15151
15152 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
15153
15154 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15155
15156 * doprnt.c (doprnt1): Fix typos in error call.
15157
15158 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
15159
15160 * unexelf.c (unexec) [__sgi]: Support the .got sections.
15161
15162 2002-01-20 Jason Rumney <jasonr@gnu.org>
15163
15164 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15165 that Windows returns. If a double check fails, try to guess how
15166 ExtTextOut is going to act.
15167
15168 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15169 in place of stricmp.
15170 (w32_list_synthesized_fonts): Removed.
15171 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15172 (struct enumfont_t): New element; list.
15173 (enum_font_cb2): List all style and charset variations of a font.
15174 (Fw32_select_font): New optional argument; include_proportional.
15175 Exclude vertical fonts. Exclude proportional fonts unless
15176 include_proportional is non-nil.
15177 (w32_enable_synthesized_fonts): Change to a boolean.
15178 (Fw32_send_sys_command): Doc fix.
15179
15180 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15181
15182 * dispnew.c (update_frame): Move the variable `tem' to the block
15183 where it is used.
15184
15185 2002-01-19 Jason Rumney <jasonr@gnu.org>
15186
15187 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15188 call to face-set-after-frame-default.
15189
15190 2002-01-18 Richard M. Stallman <rms@gnu.org>
15191
15192 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15193 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
15194
15195 2002-01-17 Richard M. Stallman <rms@gnu.org>
15196
15197 * window.c (enlarge_window): When exceeding size of parent,
15198 directly delete all the siblings instead of trying to resize it.
15199
15200 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15201
15202 * term.c (set_tty_color_mode): Remove unused variable `tem'.
15203
15204 2002-01-16 Henrik Enberg <henrik@enberg.org>
15205
15206 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
15207
15208 2002-01-16 Kim F. Storm <storm@cua.dk>
15209
15210 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15211 is invisible. This can happen if cursor is on top line of a
15212 window, and we switch to a buffer with a header line.
15213
15214 * w32term.c (x_erase_phys_cursor): Ditto.
15215
15216 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15217
15218 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15219 `dont_resize' only when used.
15220
15221 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
15222
15223 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
15224
15225 * xdisp.c (display_mode_element): When computing charpos, depend
15226 on multibyteness of elt, not the text in field.
15227
15228 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15229
15230 * buffer.c (Fkill_all_local_variables):
15231 Increment `update_mode_lines' only once.
15232
15233 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15234
15235 * lisp.h (adjust_after_replace_noundo)
15236 (Fupdate_coding_systems_internal): Add prototypes.
15237
15238 * sound.c (Fplay_sound): Initialize header_size also for :data case.
15239
15240 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
15241
15242 Support for the --color command-line argument and tty-color-mode
15243 frame parameter:
15244
15245 * term.c (tty_default_color_capabilities, tty_setup_colors)
15246 (set_tty_color_mode): New functions.
15247 (term_init): Call tty_default_color_capabilities.
15248 (Qtty_color_mode_alist): New variable.
15249 (syms_of_term): Intern and staticpro it.
15250
15251 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15252 frames.
15253 (do_switch_frame): For termcap frames, switch the tty
15254 color mode as specified by the frame's parameters.
15255 (Qtty_color_mode): New variable.
15256 (syms_of_frame): Intern and staticpro it.
15257
15258 * emacs.c (USAGE2): Add the --color option.
15259 (standard_args): Ditto.
15260
15261 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15262
15263 * xterm.h (struct x_output): New members want_fullscreen,
15264 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15265 y_pixels_outer_diff.
15266 New enum for FULLSCREEN_* constants.
15267 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15268 is NULL.
15269 (x_fullscreen_adjust): Add prototype.
15270
15271 * emacs.c (USAGE2): Add the new full-screen arguments.
15272 (standard_args): Ditto.
15273
15274 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15275 New variables.
15276 (syms_of_xfns): Intern and staticpro them.
15277 (x_frame_parms) <"fullscreen">: New parameter.
15278 (x_fullscreen_move, x_set_fullscreen): New functions.
15279 (x_set_frame_parameters): Support for Qfullscreen.
15280 (x_real_positions): More accurate computation of the frame position.
15281 (x_figure_window_size): Support full-screen frames.
15282 (Fx_create_frame): Default the fullscreen parameter.
15283
15284 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15285 (XTread_socket) <Expose>: Call x_check_fullscreen.
15286 <ConfigureNotify>: Don't resize to fullscreen.
15287 Call x_check_fullscreen_move, and set the want_fullscreen member of
15288 output_data.x.
15289
15290 2002-01-13 Jason Rumney <jasonr@gnu.org>
15291
15292 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15293 for mice with more than 3 buttons.
15294
15295 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15296 (w32_read_socket): Handle new "XBUTTON" messages.
15297
15298 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15299 (syms_of_w32fns): DEFVAR_BOOL it.
15300 (w32_wnd_proc): Handle new "XBUTTON" messages.
15301
15302 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15303
15304 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
15305
15306 2002-01-13 Andreas Schwab <schwab@suse.de>
15307
15308 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
15309
15310 2002-01-12 Andreas Schwab <schwab@suse.de>
15311
15312 * .gdbinit (xbuffer): Remove address operator since data is now a
15313 pointer.
15314
15315 2002-01-11 Richard M. Stallman <rms@gnu.org>
15316
15317 * insdel.c (adjust_after_replace_noundo): New function.
15318
15319 * coding.c (code_convert_region): Don't copy old text if undo disabled.
15320
15321 2002-01-09 Jason Rumney <jasonr@gnu.org>
15322
15323 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15324 when checking for multiple frames.
15325
15326 2002-01-08 Richard M. Stallman <rms@gnu.org>
15327
15328 * window.c (delete_window): Rewrite the code for changing the
15329 selected window to handle the case where WINDOW is not a leaf.
15330
15331 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
15332
15333 * process.c (send_process): Set src_multibyte to 1 after the call
15334 top setup_coding_system, not before the call.
15335
15336 2002-01-07 Jason Rumney <jasonr@gnu.org>
15337
15338 * xmenu.c (set_frame_menubar, xmenu_show):
15339 (xdialog_show): Initialize wv->help to Qnil.
15340
15341 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15342 (w32_dialog_show): Initialize wv->help to Qnil.
15343
15344 2002-01-06 Jason Rumney <jasonr@gnu.org>
15345
15346 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
15347
15348 * w32menu.c (w32_menu_display_help): Revert last change.
15349
15350 * xmenu.c (menu_highlight_callback): Revert last change.
15351
15352 2002-01-06 Andreas Schwab <schwab@suse.de>
15353
15354 * insdel.c (make_gap_larger): Make sure buffer size does not
15355 overflow range of int.
15356
15357 2002-01-05 Jason Rumney <jasonr@gnu.org>
15358
15359 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15360 OVERLAPS_P.
15361
15362 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
15363
15364 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15365 to the left or to the right of the pointer, put it against
15366 the left screen edge.
15367 (x_frame_parms): Add missing braces around initializer.
15368
15369 * w32term.c (x_setup_relief_colors): Don't compute an image's
15370 background color if it doesn't have a Pixmap.
15371 (notice_overwritten_cursor): Don't depend on
15372 output_cursor and updated_area. Compare pixel coordinates with
15373 window's cursor pixel coordinates.
15374 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15375 Call notice_overwritten_cursor with new arg list.
15376 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15377 unconditionally.
15378 (x_draw_image_relief): Use predefined macro instead of
15379 constant when the value of `tool_bar_button_relief' is negative.
15380
15381 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
15382
15383 2002-01-04 Richard M. Stallman <rms@gnu.org>
15384
15385 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
15386
15387 2002-01-03 Richard M. Stallman <rms@gnu.org>
15388
15389 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15390 (Fkey_binding): Try the `keymap' property map first.
15391 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15392 minor mode bindings.
15393
15394 2002-01-03 Kim F. Storm <storm@cua.dk>
15395
15396 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
15397
15398 2002-01-02 Richard M. Stallman <rms@gnu.org>
15399
15400 * keyboard.c (read_key_sequence): Handle the keymap property
15401 before minor mode maps.
15402
15403 * editfns.c (Fformat): Update thissize from field_width
15404 based on the actual width, in the string case.
15405
15406 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15407
15408 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15409 when used as truth value to prevent gcc warnings.
15410
15411 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15412 * w32proc.c: Include <config.h>.
15413
15414 2002-01-01 Andreas Schwab <schwab@suse.de>
15415
15416 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15417 not EMACS_INT, to make them compatible with DEFVAR_INT.
15418 * lisp.h (max_specpdl_size): Adjust declaration.
15419
15420 2002-01-01 Richard M. Stallman <rms@gnu.org>
15421
15422 * print.c (print_object): Test print_escape_nonascii only for
15423 unibyte strings.
15424 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15425 when outputting to a multibyte buffer.
15426
15427 2001-12-29 Richard M. Stallman <rms@gnu.org>
15428
15429 * print.c (print_object): In multibyte string, use hex escapes.
15430 Use octal only for unibyte strings.
15431 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
15432
15433 * lread.c (read_escape): New arg BYTEREP for reporting whether
15434 escape forces unibyte or multibyte.
15435 (read1): When reading a string, take note of that info.
15436
15437 2001-12-29 Ken Raeburn <raeburn@gnu.org>
15438
15439 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15440 comparison to test lisp value returned by Fget.
15441
15442 2001-12-29 Richard M. Stallman <rms@gnu.org>
15443
15444 * lisp.h (max_specpdl_size): Add declaration.
15445
15446 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
15447
15448 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15449 Handle modifier bits. Correct typo in error message.
15450
15451 2001-12-28 Richard M. Stallman <rms@gnu.org>
15452
15453 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15454 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15455 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15456 Update calls to Fdefine_abbrev.
15457 (write_abbrev): Update for changed data format.
15458 Don't list "system" abbrevs.
15459 (Fexpand_abbrev): Update use count with new data format.
15460 (describe_abbrev): Update for changed data format.
15461 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
15462
15463 * config.in (HAVE_MBSINIT): Add #undef.
15464
15465 * strftime.c (mbsinit): Define as no-op if not available.
15466
15467 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15468 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
15469
15470 * keymap.c (Flookup_key): Error message if key has wrong data type.
15471 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15472 (exclude_key): New variable.
15473
15474 2001-12-28 Gerd Moellmann <gerd@gnu.org>
15475
15476 * xterm.c (x_setup_relief_colors): Don't compute an image's
15477 background color if it doesn't have a Pixmap.
15478
15479 * xterm.c (notice_overwritten_cursor): Don't depend on
15480 output_cursor and updated_area. Compare pixel coordinates with
15481 window's cursor pixel coordinates.
15482 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15483 Call notice_overwritten_cursor with new arg list.
15484 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15485 unconditionally.
15486
15487 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15488 height of the cursor line to the amount to scroll.
15489
15490 2001-12-27 Richard M. Stallman <rms@gnu.org>
15491
15492 * intervals.c (set_point_both): The position after an invisible,
15493 intangible character is not an acceptable stopping point.
15494
15495 2001-12-27 Ken Raeburn <raeburn@gnu.org>
15496
15497 * window.c (enlarge_window): In new preserve_before code, convert
15498 CURBEG from lisp object to integer before doing arithmetic.
15499
15500 2001-12-27 Richard M. Stallman <rms@gnu.org>
15501
15502 * bytecode.c (Fbyte_code): Undo previous change.
15503
15504 2001-12-26 Kim F. Storm <storm@cua.dk>
15505
15506 * keyboard.c (record_char): Ignore duplicate help-echo events only
15507 separated by mouse-movement. When tracking mouse, only record
15508 first and last mouse-movement event in same window.
15509 Don't record mouse-movement events in keyboard macros.
15510
15511 2001-12-25 Richard M. Stallman <rms@gnu.org>
15512
15513 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15514 (Fenlarge_window): New arg PRESERVE_BEFORE.
15515
15516 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15517 instead of Fstring_as_unibyte.
15518
15519 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15520
15521 The following changes remove mocklisp support:
15522
15523 * mocklisp.h, mocklisp.c: Files removed.
15524
15525 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15526 `Qmocklisp' and `Qmocklisp_arguments'.
15527 Remove prototype of syms_of_mocklisp.
15528
15529 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
15530
15531 * callint.c: Do not include mocklisp.h.
15532 (Fcall_interactively): Do not test for mocklisp case.
15533
15534 * eval.c: Remove variables `Qmocklisp_arguments',
15535 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15536 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15537 Do not test for mocklisp case.
15538 (Fwhile): Remove unused variable `tem'.
15539 (syms_of_eval): Remove variable `moclisp-arguments'.
15540
15541 * data.c (wrong_type_argument): Remove mocklisp case.
15542
15543 * doc.c (Fdocumentation): Remove mocklisp case.
15544
15545 * emacs.c (main): Do not call syms_of_mocklisp.
15546
15547 2001-12-21 Richard M. Stallman <rms@gnu.org>
15548
15549 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15550 to the left or to the right of the pointer, put it against
15551 the left screen edge.
15552
15553 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
15554
15555 * Makefile.in (distclean): Remove .gdbinit if we are building
15556 outside the source tree.
15557
15558 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
15559
15560 * w32.c (emacs_root_dir): New function.
15561
15562 * msdos.c (emacs_root_dir): New function.
15563
15564 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15565 of the current drive as the fallback for default_directory.
15566
15567 * dired.c (file_name_completion): Run the elements of
15568 completion-ignored-extensions through ENCODE_FILE.
15569
15570 * lisp.h (scmp): Remove prototype, since it's now a static
15571 function private to dired.c.
15572
15573 2001-12-18 Richard M. Stallman <rms@gnu.org>
15574
15575 * dired.c (scmp): Function moved from minibuf.c.
15576 Delete multibyte handling--used only on encoded strings.
15577
15578 * minibuf.c (scmp): Function moved to dired.c.
15579
15580 * fns.c (merge): Add QUIT call.
15581
15582 2001-12-18 Dave Love <fx@gnu.org>
15583
15584 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15585 language/georgian.el.
15586
15587 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
15588
15589 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15590 lisp/Makefile.in:DONTCOMPILE.
15591
15592 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15593
15594 * xdisp.c (window_box_height): Do not return negative values.
15595 From Gerd Moellmann <gerd@gnu.org>.
15596
15597 * keyboard.c (head_table): Add missing braces around initializer.
15598
15599 * term.c (keys): Likewise.
15600
15601 * xfns.c (x_frame_parms, visual_classes): Likewise.
15602
15603 2001-12-17 Sam Steingold <sds@gnu.org>
15604
15605 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15606 patch (COMPOSING_P, not COMPOSING).
15607
15608 2001-12-17 Richard M. Stallman <rms@gnu.org>
15609
15610 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
15611
15612 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15613 before calling decode_coding.
15614
15615 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
15616
15617 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15618 instead of only for COMPOSITION_DISABLED.
15619
15620 2001-12-16 Richard M. Stallman <rms@gnu.org>
15621
15622 * alloc.c (pure_alloc): After overflow, allocate just a small block.
15623
15624 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
15625
15626 * buffer.h (struct buffer): New field `display_error_modiff'.
15627 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
15628
15629 * window.c (Frecenter): Clear display_error_modiff field.
15630
15631 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15632 Call redisplay_window, but not if display_error_modiff field says no.
15633 (redisplay_window_error): New function.
15634 (displayed_buffer): New variable.
15635 (redisplay_internal, redisplay_windows): Call the new functions
15636 instead of redisplay_window directly.
15637
15638 2001-12-15 Richard M. Stallman <rms@gnu.org>
15639
15640 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
15641
15642 2001-12-14 Andrew Innes <andrewi@gnu.org>
15643
15644 * makefile.w32-in (EMACSLOADPATH): Define.
15645 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
15646 (bootstrap-temacs): Remove dependency on bootstrap-clean.
15647
15648 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
15649
15650 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15651 parameter have a numeric value all the time.
15652
15653 * w32fns.c (x_report_frame_params): Likewise.
15654
15655 2001-12-12 Richard M. Stallman <rms@gnu.org>
15656
15657 * fileio.c (Fwrite_region): Doc fix.
15658
15659 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15660 (redisplay_internal): Call clear_image_cache only for window terminals.
15661
15662 2001-12-12 Gerd Moellmann <gerd@gnu.org>
15663
15664 * xdisp.c (move_it_vertically_backward): Change heuristic
15665 for the case that we didn't move far enough initially.
15666
15667 * window.c (Frecenter): Simplify computation in the case of window
15668 system frames and ARG < 0; use window_box_height.
15669
15670 2001-12-11 Richard M. Stallman <rms@gnu.org>
15671
15672 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15673 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
15674
15675 2001-12-11 Andrew Innes <andrewi@gnu.org>
15676
15677 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15678 arg is negative.
15679
15680 2001-12-11 Richard M. Stallman <rms@gnu.org>
15681
15682 * m/hp800.h: Split the __hpux conditional into the parts
15683 that are right for GNU/Linux too and the parts that are not.
15684 Use the former if GNU_LINUX.
15685 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
15686
15687 * s/gnu-linux.h (GNU_LINUX): Defined.
15688
15689 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15690
15691 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15692 `new style' [w/`doc:' keyword].
15693
15694 2001-12-10 Jason Rumney <jasonr@gnu.org>
15695
15696 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15697 before using.
15698
15699 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15700
15701 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15702 keyword].
15703
15704 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
15705
15706 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
15707
15708 * s/hpux10.h (srand48): Don't undefine.
15709
15710 2001-12-09 Jason Rumney <jasonr@gnu.org>
15711
15712 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
15713 Add comment to explain where the struct came from.
15714 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15715 (add_menu_item): Process pop-up menus first to avoid memory leak.
15716 (add_menu_item, w32_menu_display_help): Use `help' field as
15717 Lisp_Object.
15718 (w32_free_submenu_strings): Only free owner-drawn strings.
15719
15720 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15721
15722 * COPYING: Moved back.
15723
15724 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15725 Add parentheses around && within ||.
15726
15727 * indent.c (compute_motion): Likewise.
15728
15729 * intervals.c (merge_properties_sticky): Likewise.
15730
15731 * coding.c (setup_coding_system, shrink_encoding_region)
15732 (Fdecode_sjis_char): Likewise.
15733
15734 2001-12-07 Andreas Schwab <schwab@suse.de>
15735
15736 * xdisp.c (display_mode_element): Don't read past end of string if
15737 it ends with '%'.
15738
15739 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15740 can hold.
15741
15742 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15743 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15744 type changed to Lisp_Object.
15745 (syms_of_data): DEFVAR_LISP them.
15746
15747 2001-12-07 Richard M. Stallman <rms@gnu.org>
15748
15749 * callproc.c (init_callproc): Set Vdata_directory based on the source
15750 location whenever Emacs was run uninstalled.
15751
15752 2001-12-06 Paul Eggert <eggert@twinsun.com>
15753
15754 * config.in (HAVE_WORKING_VFORK): New #undefs.
15755 * process.c (create_process):
15756 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15757 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15758 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15759 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15760 * m/intel386.h (HAVE_VFORK): Likewise.
15761 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15762 * m/mips.h (HAVE_VFORK): Likewise.
15763 * s/freebsd.h (vfork): Remove #define.
15764 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15765 * s/usg5-4-2.h: Fix comment about vfork.
15766
15767 2001-12-06 Richard M. Stallman <rms@gnu.org>
15768
15769 * s/hpux10.h (random): Add undef.
15770 (HAVE_RANDOM): Define it just once.
15771
15772 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
15773
15774 * eval.c: Undo last change: the standard syntax is not wanted.
15775
15776 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
15777
15778 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15779 scroll bars of the frame before deleting the frame itself. If the
15780 frame has a widget, delete the frame with XtDestroyWidget, and do
15781 not call XDestroyWindow before that.
15782
15783 2001-12-06 Kim F. Storm <storm@cua.dk>
15784
15785 * xfns.c (x_report_frame_params): Return actual fringe widths.
15786
15787 * w32fns.c (x_report_frame_params): Return actual fringe widths.
15788
15789 2001-12-05 Andrew Innes <andrewi@gnu.org>
15790
15791 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15792 excessively large.
15793
15794 * insdel.c (make_gap_larger): New function.
15795 (make_gap_smaller): New function.
15796 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15797 Call make_gap_smaller if arg is negative.
15798
15799 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
15800
15801 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15802 Pass a dummy argument when calling interrupt_signal.
15803 (parse_menu_item): Mark disabled items before checking for empty def.
15804 (read_char_minibuf_menu_prompt): Make safety more visible.
15805 (read_key_sequence): Add a `first_unbound' variable.
15806 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15807 unbound prefix as soon as we can detect it.
15808
15809 * doc.c (Fsnarf_documentation): Add prototype.
15810 (get_doc_string): Handle negative arguments.
15811 (Fdocumentation): Use AREF and ASIZE.
15812 Move the calls to get_doc_string to a single place.
15813 Don't confuse an interactive-spec for a docstring reference.
15814 (Fdocumentation_property): Take advantage of the fact that
15815 get_doc_string now ignores the sign of the docstring position.
15816
15817 * eval.c: Use standard syntax for usage in docstrings.
15818
15819 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15820
15821 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
15822
15823 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15824
15825 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15826 constant when the value of `tool_bar_button_relief' is negative.
15827
15828 2001-12-02 Richard M. Stallman <rms@gnu.org>
15829
15830 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15831 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
15832
15833 * fileio.c (read_non_regular): Delete Fsignal call.
15834
15835 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
15836
15837 * lisp.h (run_hook_list_with_args): Undo last change.
15838
15839 2001-12-01 Gerd Moellmann <gerd@gnu.org>
15840
15841 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
15842
15843 2001-12-01 Jason Rumney <jasonr@gnu.org>
15844
15845 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
15846
15847 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15848 [!WM_MOUSELEAVE]: Define.
15849
15850 * w32menu.c (current_popup_menu, get_menu_item_info):
15851 (set_menu_item_info): New vars.
15852 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15853 (w32_menu_show): Set current_popup_menu.
15854 (add_menu_item): Allocate new strings for owner-drawn menu items
15855 and help strings.
15856 Use owner-draw for disabled menu items again.
15857 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15858 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
15859
15860 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15861 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15862 <WM_EXITMENULOOP>: Free menu strings.
15863 <WM_MOUSELEAVE>: Stop tracking mouse.
15864 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
15865
15866 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15867 and mouse face.
15868
15869 2001-12-01 Kim F. Storm <storm@cua.dk>
15870
15871 The following changes add left-fringe and right-fringe
15872 frame parameters to adjust fringe widths, or remove one or
15873 both fringes.
15874
15875 * frame.h (struct frame): Remove trunc_area_pixel_width and
15876 trunc_area_cols fields.
15877 (Qleft_fringe, Qright_fringe): Declare.
15878 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
15879
15880 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15881 (syms_of_frame): Initialize them.
15882
15883 * window.c (coordinates_in_window): Handle separate left and right
15884 fringe widths.
15885
15886 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15887 and fringe_cols fields.
15888 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15889 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15890 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15891 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15892 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15893 (x_compute_fringe_widths): Add prototype.
15894
15895 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15896 fill fringe evenly with small dashes.
15897 (x_draw_fringe_bitmap): Clear background if necessary. Align and
15898 clip the new ZV bitmap to avoid jitter between rows.
15899 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15900 background. Don't draw fringe bitmaps if fringe width is zero.
15901 (x_compute_fringe_widths): New function.
15902 (x_new_font, x_set_window_size_1): Use it.
15903
15904 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15905 (x_set_frame_parameters): Process `font' parameter before other
15906 parameters as fringe widths depend on it.
15907 (x_set_fringe_width): New function.
15908 (x_figure_window_size): Use x_compute_fringe_widths.
15909 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15910 parameters.
15911
15912 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15913 (EmacsFrameSetCharSize): Ditto.
15914
15915 * w32term.h: Merged changes from xterm.h.
15916 * w32term.c: Merged changes from xterm.c.
15917 * w32fns.c: Merged changes from xfns.c.
15918
15919 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15920
15921 * COPYING: Removed.
15922
15923 2001-11-29 Dave Love <fx@gnu.org>
15924
15925 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15926 extra extra slot.
15927 (detect_coding_mask): Fix call of detect_coding_iso2022.
15928
15929 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15930
15931 * fileio.c (file-name-coding-system)
15932 (default-file-name-coding-system): Doc fix (links to referenced
15933 variables added).
15934
15935 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15936
15937 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15938 Add dummy uses of gcproN variables.
15939
15940 * category.c (describe_category, describe_category_1)
15941 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15942 (syms_of_category): Don't defsubr Sdescribe_categories.
15943
15944 2001-11-28 Richard M. Stallman <rms@gnu.org>
15945
15946 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
15947
15948 * Makefile.in (lispdir): New variable, referring to build dir.
15949 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
15950
15951 2001-11-28 Andrew Innes <andrewi@gnu.org>
15952
15953 * w32menu.c (w32_menu_display_help): Actually add the new argument
15954 OWNER.
15955
15956 2001-11-28 Jason Rumney <jasonr@gnu.org>
15957
15958 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15959 menu items. From David Ponce <dponce@wanadoo.fr>.
15960 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15961 conditionally.
15962 (w32_menu_display_help): New argument OWNER. Rewritten to store a
15963 help event in the owner frame's keyboard buffer.
15964
15965 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15966 (Fx_show_tip): Don't subtract last width from row width.
15967
15968 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15969 (w32_read_socket): Use EQ to compare frames.
15970
15971 2001-11-28 Gerd Moellmann <gerd@gnu.org>
15972
15973 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15974 OVERLAPS_P.
15975
15976 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15977
15978 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15979 `gcpro3' and `gcpro4'.
15980
15981 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
15982
15983 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15984
15985 * ccl.c: Use AREF and ASIZE.
15986
15987 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
15988
15989 * lisp.h (run_hook_list_with_args): Remove.
15990 (LIST_END_P): Fix call to wrong_type_argument.
15991 (make_fixnum_or_float): Use EMACS_INT rather than int.
15992
15993 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
15994
15995 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15996 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
15997
15998 * eval.c: Use AREF and ASIZE.
15999 (Ffetch_bytecode): Add the file name to the error message.
16000
16001 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16002 which match the end of the file-name.
16003 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16004 is not a valid env var, but leave it as is instead.
16005
16006 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16007 Make nil bindings in char-tables transparent.
16008 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16009
16010 2001-11-26 Richard M. Stallman <rms@gnu.org>
16011
16012 * textprop.c (set_text_properties_1): Allow START, END in either order.
16013 Do nothing if range is empty.
16014
16015 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16016
16017 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16018 (clean): Not here.
16019
16020 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16021
16022 * textprop.c (set_text_properties_1): Clearly mark that the
16023 interval should not be empty.
16024
16025 * intervals.c (graft_intervals_into_buffer):
16026 Don't call set_text_properties_1 on an empty interval.
16027
16028 2001-11-25 Richard M. Stallman <rms@gnu.org>
16029
16030 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
16031
16032 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16033 don't lose the data in it.
16034
16035 2001-11-25 Juanma Barranquero <lektu@terra.es>
16036
16037 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
16038
16039 * buffer.c (Fkill_buffer): Likewise.
16040
16041 * print.c (temp_output_buffer_setup): Likewise.
16042
16043 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16044
16045 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
16046
16047 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
16048
16049 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16050 Niemitalo <kon@iki.fi>.
16051
16052 2001-11-25 Jason Rumney <jasonr@gnu.org>
16053
16054 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
16055
16056 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16057 (Fx_show_tip): Block input during frame creation.
16058 (Fx_show_tip, Fx_hide_tip): Enable.
16059
16060 2001-11-24 Richard M. Stallman <rms@gnu.org>
16061
16062 * lread.c (Fload): Detect recursive load error for more than 3
16063 nestings of the same file.
16064 (Vrecursive_load_depth_limit): Variable deleted.
16065 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
16066
16067 2001-11-24 Jason Rumney <jasonr@gnu.org>
16068
16069 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16070 mouse position if either left or top is not specified.
16071
16072 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16073 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16074 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16075 (my_create_tip_window): Assign tip_window.
16076 (x_create_tip_frame): Use same defaults as X.
16077 (compute_tip_xy): Remove unused variable. Use full screen width.
16078 (Fx_show_tip): Do not double height. Call ShowWindow directly.
16079
16080 * w32term.c (x_after_update_window_line): Doc fix.
16081 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16082 frames.
16083 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
16084
16085 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16086 for all Windowed systems.
16087
16088 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
16089
16090 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16091 realized, use the initial screen colors to clear the screen.
16092
16093 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16094
16095 * textprop.c (Fset_text_properties): Remove unused variables
16096 `unchanged', `prev_changed', `s' and `len'.
16097
16098 * search.c (Freplace_match): Remove unused variable `inslen'.
16099
16100 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16101
16102 2001-11-22 Jason Rumney <jasonr@gnu.org>
16103
16104 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16105 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16106 (my_create_tip_window): New function.
16107 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16108 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16109
16110 2001-11-20 Jason Rumney <jasonr@gnu.org>
16111
16112 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16113 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16114
16115 * w32fns.c (Vw32_system_coding_system): Remove.
16116 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16117
16118 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16119
16120 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16121 after build_annotations.
16122
16123 * syntax.c (describe_syntax): Add dummy arg.
16124 (describe_syntax_1): Update call to describe_vector.
16125
16126 * category.c (describe_category): Add dummy arg.
16127 (describe_category_1): Update call to describe_vector.
16128
16129 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16130 (describe_command, describe_translation): Add dummy second param.
16131 (describe_map): Call elt_describer with two arguments.
16132 (describe_vector_princ): Add `fun' parameter.
16133 Call it instead of the hardcoded `princ'.
16134 (describe_vector): Add arg `args'.
16135 Pass it as a new second argument to elt_describer.
16136
16137 * keymap.h (describe_vector): Update prototype.
16138
16139 * frame.c: Don't include keymap.h any more.
16140 (keys_of_frame): Remove.
16141
16142 * lisp.h (keys_of_frame): Remove declaration.
16143
16144 * emacs.c (main): Don't call `keys_of_frame' any more.
16145
16146 2001-11-14 Andreas Schwab <schwab@suse.de>
16147
16148 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16149 if defined, 0 otherwise.
16150 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16151 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
16152
16153 2001-11-19 Richard M. Stallman <rms@gnu.org>
16154
16155 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
16156
16157 2001-11-18 Jason Rumney <jasonr@gnu.org>
16158
16159 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16160 (x_draw_bar_cursor): If the background color of the glyph under
16161 the cursor equals the frame's cursor color, use the glyph's
16162 foreground color for drawing the bar cursor.
16163 (x_after_update_window_line): Clear internal border in different
16164 circumstances.
16165 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16166 (w32_draw_relief_rect): Correct relief by 1 pixel.
16167 (x_set_glyph_string_background_width):
16168 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16169 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16170 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16171 if cursor_in_non_selected_windows is false.
16172 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16173 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16174 Notice if cursor gets overwritten.
16175 (notice_overwritten_cursor): Renamed from
16176 note_overwritten_text_cursor. Rewritten to take glyph widths
16177 into account, and to take X positions as parameters.
16178 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16179 around call to x_draw_glyphs.
16180 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16181 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16182 color to use for image glyph reliefs.
16183 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16184 (glyph_rect): Remove unused variable `area'.
16185
16186 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16187 some items.
16188 (x_set_internal_border_width): Set frame garbaged when window
16189 doesn't exist yet.
16190 (Fx_create_frame): Accept zero tool_bar_button_relief.
16191 (x_clear_image_1, four_corners_best, image_background)
16192 (image_background_transparent): New functions.
16193 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16194 (gs_format): Add `:background' entry.
16195 (lookup_image): Set IMG's background color if specified.
16196 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16197 when appropriate.
16198 (x_clear_image_1): Reset `background_valid' and
16199 `background_transparent_valid' fields.
16200 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16201 calculating it here. Set IMG's background_transparent field.
16202 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16203 (enum png_keyword_index): Add PNG_BACKGROUND.
16204 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16205 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16206 (enum gif_keyword_index): Add GIF_BACKGROUND.
16207 (enum gs_keyword_index): Add GS_BACKGROUND.
16208 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16209 Pre-calculate image background color where necessary.
16210 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16211 Use display info's n_cbits entry for screen depth.
16212 (Fx_show_tip): Remove unused variables `buffer', `top',
16213 `left', `max_width' and `max_height'.
16214
16215 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
16216
16217 2001-11-18 Gerd Moellmann <gerd@gnu.org>
16218
16219 * puresize.h (BASE_PURESIZE): Increase to 750000.
16220
16221 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16222
16223 * frame.c (Fframe_live_p): Doc fix.
16224
16225 2001-11-18 Richard M. Stallman <rms@gnu.org>
16226
16227 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16228 (message_dolog_marker3): New static variables hold three markers.
16229 (syms_of_xdisp): Initialize and staticpro them.
16230 (message_dolog): Use message_dolog_marker1..3 instead of
16231 allocating markers each time. Unchain them when done.
16232
16233 2001-11-17 Richard M. Stallman <rms@gnu.org>
16234
16235 * doc.c (Fsnarf_documentation): Doc fix.
16236
16237 2001-11-17 Andreas Schwab <schwab@suse.de>
16238
16239 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
16240
16241 2001-11-17 Richard M. Stallman <rms@gnu.org>
16242
16243 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
16244
16245 2001-11-17 Jason Rumney <jasonr@gnu.org>
16246
16247 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
16248
16249 2001-11-17 Gerd Moellmann <gerd@gnu.org>
16250
16251 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16252 with invalid position.
16253
16254 2001-11-16 Richard M. Stallman <rms@gnu.org>
16255
16256 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
16257
16258 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16259 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16260 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
16261
16262 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
16263
16264 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16265
16266 * fileio.c (build_annotations): Split off the tail.
16267 (build_annotations_2): New fun. Extracted from build_annotations.
16268 (Fwrite_region): Split the call to build_annotations into two
16269 calls to build_annotations and build_annotations_2.
16270
16271 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16272
16273 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16274 clear_waiting_for_input with argument.
16275
16276 * xterm.h (x_update_cursor): Remove duplicated prototype.
16277
16278 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
16279
16280 * xterm.c (waiting_for_input): Remove unnecessary declaration.
16281
16282 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
16283
16284 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16285
16286 * fileio.c (choose_write_coding_system): New fun, extracted
16287 from Fwrite_region.
16288 (Fwrite_region): Use it.
16289
16290 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16291 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16292 (ml_apply, find_handler_clause): Add prototype.
16293
16294 2001-11-16 Eli Zaretskii <eliz@gnu.org>
16295
16296 * config.in: Add #undef HAVE_COFF_H.
16297
16298 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16299 Required for ISC 4.1.
16300
16301 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
16302
16303 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16304 Andrew Wiseman <a.wiseman@btclick.com>.
16305
16306 2001-11-16 Kim F. Storm <storm@cua.dk>
16307
16308 The following changes are made to clean up the various internal
16309 references to the fringes to actually use the term `fringe' for
16310 them. Previously, they were called `flags areas', `bitmap areas',
16311 `left/right side of windows', or implicitly as `flags' or
16312 `bitmaps':
16313
16314 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
16315 Comments fixed. Use renamed symbols.
16316
16317 * dispnew.c: Comment fix. Use renamed symbols.
16318
16319 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16320 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16321 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
16322
16323 * msdos.c: Comment fix.
16324
16325 * w32fns.c: Use renamed symbols.
16326
16327 * w32term.c: Comment fixes. Use renamed symbols.
16328 (fringe_bitmap_type): Renamed from bitmap_type.
16329 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16330 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16331 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16332
16333 * w32term.h: Comment fixes. Use renamed symbols.
16334 (fringes_extra): Renamed from flags_areas_extra.
16335 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16336 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16337 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16338 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16339 (FRAME_X_LEFT_FRINGE_WIDTH):
16340 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16341 (FRAME_X_RIGHT_FRINGE_WIDTH):
16342 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16343
16344 * widget.c: Use renamed symbols.
16345
16346 * window.c: Comment fixes. Use renamed symbols.
16347 (coordinates-in-window-p): Doc fix.
16348
16349 * xdisp.c: Comment fixes. Use renamed symbols.
16350
16351 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
16352
16353 * xfns.c: Use renamed symbols.
16354
16355 * xterm.c: Comment fixes. Use renamed symbols.
16356 (fringe_bitmap_type): Renamed from bitmap_type.
16357 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16358 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16359 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16360
16361 * xterm.h: Comment fixes. Use renamed symbols.
16362 (fringes_extra): Renamed from flags_areas_extra.
16363 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16364 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16365 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16366 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16367 (FRAME_X_LEFT_FRINGE_WIDTH):
16368 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16369 (FRAME_X_RIGHT_FRINGE_WIDTH):
16370 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16371
16372 2001-11-15 Jason Rumney <jasonr@gnu.org>
16373
16374 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16375 work for most menu items. From David Ponce
16376 <david.ponce@wanadoo.fr>.
16377
16378 2001-11-15 Gerd Moellmann <gerd@gnu.org>
16379
16380 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16381 Some x_set_* function expect to be called even if old and new
16382 value are equal.
16383
16384 * xdisp.c (build_desired_tool_bar_string): Accept zero
16385 tool_bar_button_relief.
16386
16387 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16388
16389 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16390
16391 * xterm.c (x_draw_bar_cursor): If the background color of the
16392 glyph under the cursor equals the frame's cursor color, use
16393 the glyph's foreground color for drawing the bar cursor.
16394
16395 * dispnew.c (direct_output_forward_char): Fix character/byte
16396 position comparison.
16397
16398 2001-11-15 Miles Bader <miles@gnu.org>
16399
16400 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16401 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16402 Update arguments to find_field.
16403 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16404 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16405 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16406 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
16407
16408 2001-11-14 Richard M. Stallman <rms@gnu.org>
16409
16410 * editfns.c (Fpropertize): Allow call with 1 arg.
16411
16412 * dispextern.h (image_background, image_background_transparent):
16413 Conditionalize on HAVE_X_WINDOWS.
16414
16415 2001-11-13 Richard M. Stallman <rms@gnu.org>
16416
16417 * print.c (Fprin1_to_string): Doc fix.
16418
16419 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
16420
16421 * floatfns.c (Fceiling, Ffloor): Doc fixes.
16422
16423 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
16424
16425 * fileio.c (Ffile_accessible_directory_p): Doc fix.
16426
16427 * eval.c (syms_of_eval): Doc fix.
16428
16429 * coding.c (syms_of_coding): Doc fix.
16430
16431 * doc.c (Fsnarf_documentation): Doc fix.
16432
16433 * dispnew.c (syms_of_display): Doc fix.
16434
16435 * category.c (Fget_unused_category): Doc fix.
16436
16437 * buffer.c (syms_of_buffer): Doc fixes.
16438
16439 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
16440
16441 * print.c (prin1, print): Doc fix.
16442
16443 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16444
16445 * fontset.h: Remove declarations of variables
16446 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
16447
16448 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16449 `Vclip_large_size_font'.
16450
16451 2001-11-13 Jason Rumney <jasonr@gnu.org>
16452
16453 * w32fns.c: Doc fix.
16454
16455 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16456
16457 * xfaces.c (Fface_attributes_as_vector): Doc fix.
16458
16459 * fns.c: Doc fix.
16460
16461 * emacs.c: Doc fix.
16462
16463 * coding.c: Doc fix.
16464
16465 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16466 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16467 `new style' [w/`doc:' keyword].
16468
16469 2001-11-12 Richard M. Stallman <rms@gnu.org>
16470
16471 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16472 LeaveNotify events. Only FocusIn and FocusOut do that now.
16473 (x_display_and_set_cursor): Do display hollow cursors in active
16474 minibuffer windows when they are not selected.
16475
16476 2001-11-12 Jason Rumney <jasonr@gnu.org>
16477
16478 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16479 * w32term.c: Change doc-string comments to `new style'
16480 [w/`doc:' keyword]. Doc fixes.
16481
16482 * w32fns.c: Don't define max.
16483 (Fx_open_connection): Only execute once.
16484
16485 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16486
16487 * ccl.c: Change macros to use do-while block instead of if-else.
16488 Use braces to follow GNU Coding Standards.
16489
16490 2001-11-11 Richard M. Stallman <rms@gnu.org>
16491
16492 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
16493
16494 * lread.c (read_escape): Use end_of_file_error for reporting eof.
16495
16496 * insdel.c (replace_range): Use adjust_markers_for_replace
16497 instead of adjust_markers_for_delete and adjust_markers_for_insert.
16498
16499 * intervals.h (set_text_properties, set_text_properties_1): Declare.
16500
16501 * textprop.c (set_text_properties_1): New subroutine
16502 broken out of set_text_properties.
16503 (set_text_properties): Use set_text_properties_1.
16504
16505 * intervals.c (graft_intervals_into_buffer):
16506 Use set_text_properties_1 to clear out properties.
16507
16508 * search.c (Freplace_match): Use replace_range to insert
16509 and delete. Don't request property inheritance from
16510 surrounding text.
16511
16512 2001-11-10 Jason Rumney <jasonr@gnu.org>
16513
16514 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
16515 vertical fonts. Allow them if face name is explicitly specified.
16516 Do not give up if we find a font that cannot be converted to an xlfd.
16517
16518 2001-11-10 Gerd Moellmann <gerd@gnu.org>
16519
16520 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16521 instead of malloc/free.
16522
16523 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16524
16525 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16526 Coding Standards.
16527 (Finternal_set_lisp_face_attribute): Likewise.
16528
16529 * buffer.c (Fbury_buffer): Likewise.
16530
16531 * indent.c (current_column_1): Remove unused variable `prev_col'.
16532
16533 * coding.c (encode_coding): Use precomputed value of `src'.
16534 (encode_coding): Remove unused variable `src_end'.
16535 (code_convert_region): Remove unused variables `count'.
16536
16537 2001-11-07 Jason Rumney <jasonr@gnu.org>
16538
16539 * w32term.c (x_display_and_set_cursor): Do not move system caret
16540 if cursor_glyph is NULL.
16541
16542 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16543
16544 * keymap.c (access_keymap): Fix compilation error.
16545
16546 2001-11-07 Miles Bader <miles@gnu.org>
16547
16548 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
16549
16550 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16551
16552 * intervals.c (graft_intervals_into_buffer):
16553 Remove #ifdef'd-out code.
16554 (graft_intervals_into_buffer): Remove unused variable `middle'.
16555
16556 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16557 code (eval-current-buffer).
16558 Change doc-string comments to `new style' [w/`doc:' keyword].
16559
16560 2001-11-06 Richard M. Stallman <rms@gnu.org>
16561
16562 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
16563
16564 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
16565
16566 * lread.c (read1): Fix behavior with nested backquoting.
16567
16568 * keyboard.c (make_lispy_event): Check integerness and fix
16569 Lisp_Object/int mixup.
16570
16571 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16572
16573 * fns.c (copy_hash_table): Remove unused variable `v'.
16574
16575 * fontset.c (fontset_font_pattern): Remove unused variable
16576 `family_registry'.
16577
16578 * indent.c (current_column_1): Remove unused variable `prev_col'.
16579
16580 2001-11-05 Richard M. Stallman <rms@gnu.org>
16581
16582 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
16583
16584 * buffer.c (Fkill_buffer): Don't delete auto save file
16585 if buffer is modified.
16586
16587 2001-11-05 Andrew Innes <andrewi@gnu.org>
16588
16589 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16590 CHECK_NUMBER_CDR.
16591
16592 2001-11-05 Richard M. Stallman <rms@gnu.org>
16593
16594 * unexelf.c (unexec): Minor changes; clean up comments.
16595
16596 2001-11-05 Sam Steingold <sds@gnu.org>
16597
16598 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
16599
16600 2001-11-05 Andreas Schwab <schwab@suse.de>
16601
16602 * sound.c (sound_perror): Save errno from being clobbered.
16603
16604 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
16605
16606 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16607 the program image directly.
16608
16609 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16610
16611 * buffer.h (Fbuffer_local_value): Add prototype.
16612
16613 2001-11-04 Richard M. Stallman <rms@gnu.org>
16614
16615 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16616 and CHECK_BUFFER.
16617
16618 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16619 (record_char): Likewise.
16620
16621 * keyboard.c (make_lispy_event): Don't insist a drag event must
16622 move to a different buffer position. Instead, check for moving at
16623 least double_click_fuzz.
16624
16625 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
16626
16627 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
16628
16629 * indent.c (current_column_1, Fmove_to_column): Separate the code
16630 for display-table glyphs from the code for buffer text, to fix
16631 bugs in the former.
16632
16633 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
16634
16635 * buffer.c (Fbuffer_local_value): New function.
16636 (syms_of_buffer): Defsubr it.
16637
16638 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16639 value of `cursor-in-non-selected-windows'.
16640
16641 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16642 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16643 (syms_of_xdisp): Initialize it.
16644
16645 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16646
16647 * xfns.c (Fx_create_frame): Doc fix.
16648
16649 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16650 keyword].
16651
16652 * eval.c (top_level_value, top_level_set): Remove commented and
16653 #ifdef'd-out code.
16654 (Fdefvar): Fix usage in doc-string.
16655
16656 2001-11-03 Richard M. Stallman <rms@gnu.org>
16657
16658 * xfns.c: Include unistd.h, if it exists.
16659
16660 * editfns.c: Move the include of ctype.h after unistd.h.
16661
16662 * gmalloc.c: Test BROKEN_PROTOTYPES.
16663
16664 2001-11-03 Ken Raeburn <raeburn@gnu.org>
16665
16666 * lisp.h (CHECK_STRING_CAR): New macro.
16667 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16668 treating XCAR and XCDR as lvalues.
16669 (openp): Use CHECK_STRING_CAR.
16670 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
16671
16672 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
16673
16674 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16675 (SIGMASKTYPE): Define.
16676
16677 * syssignal.h (sigunblock): Don't define if already defined.
16678
16679 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16680
16681 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16682 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16683 Fix typos in comments.
16684
16685 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16686 and #ifdef'd-out code.
16687 Fix and reindent comments.
16688
16689 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
16690
16691 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16692 argument `i' in macros.
16693
16694 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16695 `i' in macros.
16696
16697 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16698 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16699 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16700 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16701 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16702 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16703 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16704 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16705 in macros.
16706
16707 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16708 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16709 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16710 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16711 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16712 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16713 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16714 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16715 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16716 (remove unused second argument).
16717
16718 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
16719
16720 * syntax.c (describe_syntax): New wrapper.
16721 (Finternal_describe_syntax_value): Rename from describe_syntax.
16722 Don't insert space at front and \n at the end.
16723 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
16724
16725 * regex.c (re_wctype): Try to fix some warnings.
16726 (regcomp, regexec): Don't forget the __restrict.
16727
16728 2001-11-02 Richard M. Stallman <rms@gnu.org>
16729
16730 * textprop.c (Fget_char_property): Doc fix.
16731
16732 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16733
16734 * process.c (Fstart_process): Add usage to doc-string.
16735
16736 * data.c (Fsetq_default): Ditto.
16737
16738 * callint.c (Finteractive): Ditto.
16739
16740 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
16741
16742 * macros.c: Don't include keymap.h any more.
16743
16744 2001-11-01 Richard M. Stallman <rms@gnu.org>
16745
16746 * data.c (Fmake_local_variable): Doc fix.
16747
16748 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16749 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
16750
16751 * keymap.c (Fdescribe_buffer_bindings): Print character property
16752 bindings along with or instead of the buffer local map.
16753 Make the overriding maps override what they should.
16754
16755 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16756
16757 * window.c (grow_mini_window): Fix typo in comment.
16758
16759 2001-11-01 Gerd Moellmann <gerd@gnu.org>
16760
16761 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16762 (XTset_vertical_scroll_bar): Likewise.
16763
16764 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16765 instead of IMAGE_BACKGROUND.
16766
16767 * xfns.c (four_corners_best): Reindent.
16768
16769 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
16770 Handle :box so that it is possible to specify sexprs.
16771
16772 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16773
16774 * s/hpux11.h: New file.
16775
16776 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16777
16778 * emacs.c (USAGE1): Show command line option --no-window-system
16779 instead of --no-windows in usage.
16780 (standard_args): Rename --no-windows to --no-window-system.
16781 (bug_reporting_address): Follow Emacs coding conventions.
16782
16783 * eval.c (Fcommandp): Doc fix.
16784 Change doc-string comments to `new style' [w/`doc:' keyword].
16785
16786 * frame.c (Fframe_live_p): Doc fix.
16787
16788 * buffer.c (selective-display-ellipses): Doc fix.
16789
16790 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16791
16792 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16793
16794 * xfaces.c (realize_x_face): If C is not a single-byte character,
16795 set the face's colors_copied_bitwise_p instead of the defaulted_p
16796 members which have a different meaning.
16797 (free_face_colors): Do nothing for a face whose colors have been
16798 copied bitwise.
16799
16800 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
16801
16802 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16803
16804 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16805 [w/`doc:' keyword].
16806
16807 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16808
16809 * fns.c (require_unwind): Return Lisp_Object.
16810
16811 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16812
16813 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16814 (last-input-char): Revert doc-string to be the same as the
16815 doc-string of `last-input-event'.
16816
16817 * xdisp.c: Fix typos in comments.
16818
16819 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16820
16821 * window.c (grow_mini_window): Handle case that the root
16822 window is already smaller than the nominal mininum height.
16823
16824 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16825
16826 * emacs.c (main): Don't call keys_of_macros any more.
16827
16828 * lisp.h (keys_of_macros): Remove.
16829
16830 * macros.c (keys_of_macros): Remove.
16831
16832 * xfaces.c (Fface_attribute_relative_p): Declare args.
16833
16834 2001-10-30 Jason Rumney <jasonr@gnu.org>
16835
16836 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16837 (enum_font_cb2): Ignore fonts with vertical orientation.
16838
16839 2001-10-30 Richard M. Stallman <rms@gnu.org>
16840
16841 * keyboard.c (Finput_pending_p): Doc fix.
16842
16843 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16844
16845 * xterm.c (x_after_update_window_line): Don't run the code
16846 clearing in borders for rows whose visible height is 0.
16847
16848 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16849 resized_p flag is set. If not set, use the much less flickering
16850 method previously used.
16851
16852 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16853
16854 * frame.h (struct frame) <resized_p>: New member.
16855
16856 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16857 as large as the number of bytes to convert.
16858
16859 * lread.c (to_multibyte): New function.
16860 (read1): Use it.
16861
16862 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16863
16864 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16865
16866 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16867
16868 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
16869 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16870 if the row's fill_line_p is set and drawing the last glyph with
16871 DRAW_IMAGE_{RAISED,SUNKEN}.
16872
16873 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16874
16875 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16876
16877 * xmenu.c: Include coding.h and charset.h.
16878 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16879 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16880 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16881 Explicitly set wv->help. Use `TRUE' rather than `True'.
16882 (menu_help_callback): Use empty_string.
16883
16884 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16885 (Fx_popup_dialog): Explicitly init f.
16886 (w32_menu_display_help): Use empty_string.
16887
16888 2001-10-29 Richard M. Stallman <rms@gnu.org>
16889
16890 * fns.c (Frequire): Detect recursive try to require the same
16891 feature 3 or more levels deep, and get error.
16892 (require_unwind): New subroutine.
16893 (require_nesting_list): New variable.
16894 (syms_of_fns): Init and staticpro it.
16895
16896 * print.c (print_object): Clarify indication of insertion type.
16897
16898 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16899
16900 * coding.c (syms_of_coding): Document that locale-coding-system is
16901 used for decoding input on X.
16902
16903 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16904
16905 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16906
16907 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16908 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16909
16910 2001-10-29 Gerd Moellmann <gerd@gnu.org>
16911
16912 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16913 use NO_CURSOR if cursor_in_non_selected_windows is false.
16914
16915 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16916 the slant attribute if FRAME is t.
16917
16918 * xfns.c (x_set_internal_border_width): Set frame garbaged
16919 when X window doesn't exist yet.
16920
16921 * xterm.c (x_after_update_window_line): Clear internal border
16922 in different circumstances.
16923
16924 * xterm.c (XTread_socket) <KeyPress>: Don't use
16925 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16926 <handa@etl.go.jp>.
16927
16928 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16929
16930 * m/ibms390.h: New file. From Adam Thornton
16931 <athornton@sinenomine.net>.
16932
16933 2001-10-28 Gerd Moellmann <gerd@gnu.org>
16934
16935 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
16936
16937 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16938 a loop counter.
16939
16940 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16941
16942 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
16943
16944 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16945 keyword].
16946 Fix typos in comments.
16947
16948 * emacs.c (bug_reporting_address): New function.
16949 Use it when displaying usage message.
16950
16951 * minibuf.c (read_minibuf): Remove unused external declaration of
16952 variable `Qread_only'.
16953
16954 * keymap.c (access_keymap): Remove unused variable `charset'.
16955
16956 2001-10-28 Miles Bader <miles@gnu.org>
16957
16958 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16959 Remove #ifdef'd-out code.
16960 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16961 (syms_of_xfaces): Initialize them.
16962
16963 2001-10-27 Jason Rumney <jasonr@gnu.org>
16964
16965 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16966 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16967 position using the system caret.
16968
16969 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16970 (w32_system_caret_height, w32_system_caret_x)
16971 (w32_system_caret_y): New variables for tracking system caret.
16972 (w32_initialize): Initialize them.
16973 (x_display_and_set_cursor): Make system caret follow the active cursor.
16974
16975 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16976 New messages types.
16977
16978 * w32term.c (note_mouse_highlight): Clear old help_echo.
16979
16980 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16981
16982 * xterm.c: Fix typo in a comment.
16983
16984 * emacs.c: Fix typos in comments.
16985 Remove unnecessary spaces.
16986 Change doc-string comments to `new style' [w/`doc:' keyword].
16987 (USAGE2): Fix typos in usage string.
16988
16989 * xterm.c: Fix typo in a comment.
16990
16991 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16992 emacs.c.
16993
16994 2001-10-27 Gerd Moellmann <gerd@gnu.org>
16995
16996 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
16997 instead of 1/2 line_height in the heuristic for skipping
16998 farther backward when target_y was not reached.
16999
17000 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17001 Display errno only if non-zero.
17002 (sound_warning): New function.
17003 (vox_configure): Don't treat failing to set sample rate as error.
17004 (various places): Improve error messages.
17005
17006 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17007
17008 * fileio.c (Faccess_file): Run the argument filename through
17009 Fexpand_file_name, before using it.
17010
17011 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17012 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17013
17014 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17015
17016 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17017
17018 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17019 Fix clearing in the case of scroll bars on the right.
17020
17021 2001-10-26 Juanma Barranquero <lektu@terra.es>
17022
17023 * w32gui.h (XImage): Add a dummy typedef.
17024
17025 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17026
17027 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17028
17029 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17030
17031 * frame.c (Fframe_parameter): Fix last change.
17032
17033 * fileio.c: Revert last change (which removed old commented-out
17034 version of expand-file-name). Add a comment that explains why
17035 this old version should not be removed.
17036
17037 2001-10-25 Gerd Moellmann <gerd@gnu.org>
17038
17039 * frame.c (Fframe_parameter): Fix a bug whereby some
17040 ``artificial'' frame parameters, like `minibuffer' were not
17041 obtained by calling Fframe_parameters.
17042
17043 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17044 cursor differently.
17045
17046 * xdisp.c (move_it_vertically_backward): Compute line height
17047 differently. Add heuristic to try to be more compatible to 20.x.
17048
17049 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17050
17051 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17052
17053 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17054 boolean.
17055
17056 2001-10-25 Miles Bader <miles@gnu.org>
17057
17058 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17059 BG is a pointer to a structure, not a structure.
17060 (gif_format, png_format): Add missing commas.
17061
17062 2001-10-24 Richard M. Stallman <rms@gnu.org>
17063
17064 * xfaces.c (Fface_attributes_as_vector): New function.
17065 (syms_of_xfaces): Defsubr it.
17066
17067 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17068
17069 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17070 variable `area'.
17071
17072 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17073
17074 * search.c (scan_newline): Remove unused variable `selective_display'.
17075
17076 2001-10-25 Miles Bader <miles@gnu.org>
17077
17078 * dispextern.h (struct image): Add `background',
17079 `background_valid', and `background_transparent' fields.
17080 (image_background, image_background_transparent): New declarations.
17081 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17082 * xfns.c (image_background, image_background_transparent)
17083 (four_corners_best): New functions.
17084 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17085 (gs_format): Add `:background' entry.
17086 (lookup_image): Set IMG's background color if specified.
17087 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17088 when appropriate.
17089 (x_clear_image_1): Reset `background_valid' and
17090 `background_transparent_valid' fields.
17091 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17092 calculating it here. Set IMG's background_transparent field.
17093 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17094 (enum png_keyword_index): Add PNG_BACKGROUND.
17095 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17096 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17097 (enum gif_keyword_index): Add GIF_BACKGROUND.
17098 (enum gs_keyword_index): Add GS_BACKGROUND.
17099 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17100 Pre-calculate image background color where necessary.
17101 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17102 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17103 color to use for image glyph reliefs.
17104
17105 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17106
17107 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17108 in full-width rows.
17109
17110 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17111 Fix clearing of area not covered by scroll bar.
17112
17113 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17114
17115 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17116 and `real_start'.
17117 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
17118 (glyph_rect): Remove unused variable `area'.
17119
17120 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17121
17122 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
17123
17124 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17125 (row_containing_pos): Take additional argument DY.
17126 Treat rows ending in middle of char differently.
17127 (display_line): Handle tabs on window systems differently.
17128
17129 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17130 with additional argument.
17131
17132 * dispextern.h (row_containing_pos): Adjust prototype.
17133
17134 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17135 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17136 (try_window_id, try_window_reusing_current_matrix)
17137 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
17138 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
17139
17140 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17141
17142 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17143 gnuemacs).
17144 (HAVE_BOXES): Fix typo in comment.
17145 (push_menu_pane): Fix typo in comment.
17146
17147 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17148 of `Qwhen'.
17149 (single_display_prop_string_p): Remove unused local declarations
17150 of `Qwhen' and `Qmargin'.
17151 (string_buffer_position): Remove unused variable `around'.
17152 (store_frame_title): Remove unused variable `width'.
17153
17154 * window.c: Don't define max.
17155 (coordinates_in_window): Remove unused variable `uy'.
17156
17157 * widget.c: Don't define max.
17158
17159 * process.c: Don't define max.
17160 (create_process): Remove unused variable `buffer'.
17161
17162 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17163
17164 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
17165
17166 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17167
17168 * xfaces.c (Finternal_set_lisp_face_attribute)
17169 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17170 frame is on a windowed display.
17171
17172 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17173
17174 * dispnew.c (sync_window_with_frame_matrix_rows):
17175 Fix handling of windows which aren't full-width, fix handling
17176 of marginal areas.
17177
17178 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
17179
17180 2001-10-23 Andreas Schwab <schwab@suse.de>
17181
17182 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17183 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17184
17185 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17186
17187 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
17188 REAL_END. Notice if cursor gets overwritten.
17189 (notice_overwritten_cursor): Take X positions as parameters.
17190 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17191 around call to x_draw_glyphs.
17192
17193 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17194
17195 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17196 instead of C) and usage.
17197
17198 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17199 of C) and usage.
17200
17201 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17202 `left', `max_width' and `max_height'.
17203
17204 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17205
17206 * xdisp.c (display_line): For a tab continued to the next line,
17207 set row's ends_in_middle_of_char_p.
17208
17209 2001-10-22 Gerd Moellmann <gerd@gnu.org>
17210
17211 * xdisp.c (display_line): Fix computation of continuation lines
17212 width for TABs.
17213
17214 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17215
17216 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17217 `Qlaplace'.
17218
17219 * fileio.c: Remove unused code.
17220
17221 2001-10-22 Miles Bader <miles@gnu.org>
17222
17223 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17224 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17225 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17226
17227 2001-10-21 Jason Rumney <jasonr@gnu.org>
17228
17229 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17230
17231 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17232
17233 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17234 (Finsert_string): Avoid the multi-line string literals warning.
17235
17236 2001-10-22 Miles Bader <miles@gnu.org>
17237
17238 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17239 (Fdocumentation): Don't use it.
17240 (syms_of_doc): Don't initialize it.
17241
17242 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17243 * print.c (Fwith_output_to_temp_buffer): Likewise.
17244 * window.c (Fsave_window_excursion): Likewise.
17245 * editfns.c (Fsave_excursion, Fsave_current_buffer)
17246 (Fsave_restriction): Likewise.
17247 * eval.c (Frun_hooks, Frun_hook_with_args)
17248 (Frun_hook_with_args_until_failure)
17249 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17250 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17251 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
17252 (Funwind_protect, Fcondition_case): Likewise.
17253 * coding.c (Ffind_operation_coding_system): Likewise.
17254 * keyboard.c (Ftrack_mouse): Likewise.
17255
17256 2001-10-21 Miles Bader <miles@gnu.org>
17257
17258 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
17259 (Fmake_hash_table): Add usage: string to doc string.
17260 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
17261 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
17262 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17263 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17264 (Fml_prefix_argument_loop): Likewise.
17265
17266 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17267
17268 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
17269
17270 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17271 style' [w/`doc:' keyword].
17272
17273 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17274 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17275 comments to `new style' [w/`doc:' keyword].
17276
17277 2001-10-21 Jason Rumney <jasonr@gnu.org>
17278
17279 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17280
17281 * w32term.c (remember_mouse_glyph): New function.
17282 (w32_mouse_position): Use it.
17283 (note_mouse_movement): If the mouse moved off the glyph, remember
17284 its new position.
17285
17286 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17287 (w32_display_info): Add mouse_face_overlay.
17288
17289 * w32term.c (notice_overwritten_cursor): Renamed from
17290 note_overwritten_text_cursor. Rewritten to take glyph widths into
17291 account.
17292 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17293 (fast_find_string_pos): New function.
17294 (fast_find_position): Return the correct vpos. Add parameter
17295 STOP. In the final row, stop before glyphs having STOP as object.
17296 Don't consider glyphs that are not from a buffer.
17297 (fast_find_position) [0]: Add a presumably more correct version
17298 for after 21.1.
17299 (expose_window_tree, expose_frame): Don't compute intersections here.
17300 (expose_window): Do it here instead.
17301 (expose_window_tree, expose_window, expose_line): Return 1 when
17302 overwriting mouse-face.
17303 (expose_window): If W is the window currently being updated, mark
17304 the frame garbaged.
17305 (expose_frame): If mouse-face was overwritten, redo it.
17306 (x_use_underline_position_properties): New variable.
17307 (syms_of_xterm): DEFVAR_BOOL it.
17308 (x_draw_glyph_string): Add comment to use it in future.
17309 (x_draw_glyph_string): Restore clipping after drawing box.
17310 Fix a computation of the underline position.
17311 (w32_get_glyph_string_clip_rect): Minor cleanup.
17312 (x_fill_stretch_glyph_string): Remove an assertion.
17313 (x_produce_glyphs): Don't convert multibyte characters
17314 to unibyte characters in unibyte buffers.
17315 (cursor_in_mouse_face_p): New function.
17316 (x_draw_stretch_glyph_string): Use it to choose a different GC
17317 when drawing a cursor within highlighted text. Don't draw
17318 background again if it has already been drawn.
17319 (x_draw_glyph_string_box): Don't draw a full-width
17320 box just because the glyph row's full_width_p flag is set.
17321 (x_draw_glyphs): Fix computation of rightmost x for
17322 full-width rows.
17323 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17324 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
17325 change bottom shadow accordingly. Some cleanup.
17326 (x_update_window_end): Handle overwritten mouse face
17327 also for tool bar windows.
17328 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17329 DRAW is DRAW_IMAGE_RAISED.
17330 (clear_mouse_face): Return 1 if text with mouse face was
17331 actually redrawn. Make the function static.
17332 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
17333 optimize away highlighting if we pass over that same overlay again.
17334 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17335 to detect a case where we have to highlight a different region
17336 despite not having left the currently highlighted region.
17337 Set mouse_face_overlay in the x_display_info. Avoid changing the
17338 mouse pointer shape when show_mouse_face has already done it, or
17339 there is no need. Handle mouse-face and help-echo in strings.
17340 (glyph_rect): New function.
17341 (w32_mouse_position): Use it to raise the threshold for mouse
17342 movement event generation.
17343 (w32_initialize_display_info): Initialize the x_display_info's
17344 mouse_face_overlay.
17345 (w32_set_vertical_scroll_bar): Don't clear a zero height
17346 or width area.
17347 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17348 a widget to zero height.
17349
17350 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
17351 Protect unibyte strings created by replacing their multibyte
17352 equivalents in menu_items.
17353 (w32_menu_show): Don't overwrite an item's name with its key
17354 description in case the description is a multibyte string.
17355 (single_submenu): Some cleanup.
17356
17357 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17358 (postprocess_image): New function.
17359 (lookup_image): Call it for all image types except PostScript.
17360 (x_kill_gs_process): Call postprocess_image.
17361 (tiff_error_handler, tiff_warning_handler): New functions.
17362 (tiff_load): Install them as handlers.
17363 (x_kill_gs_process): Recognize if someone has cleared the image
17364 cache under us.
17365 (valid_image_p): Protect better against invalid image
17366 specifications. Previous code could signal an error.
17367 (Fx_hide_tip, Fshow_tip): Doc fix.
17368 (Fv_max_tooltip_size): New variable.
17369 (syns_of_xfns): DEFVAR_LISP it.
17370 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
17371 window buffer to *tip* right after creating the frame. Set frame's
17372 window_width. Use a maximum tooltip size specified by
17373 Vx_max_tooltip_size, if that has valid contents.
17374 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17375 Make sure the tooltip is completely visible.
17376 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17377 (Fx_create_frame): Adjust the frame's height for presence
17378 of the tool bar before calling x_figure_window_size.
17379 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17380 when the window gets smaller.
17381 (x_set_foreground_color): Set frame's cursor_pixel.
17382 (x_set_foreground_color, x_set_background_color): Cleaned up.
17383 (x_set_font): Handle case of x_new_fontset returning the same name
17384 as before, although there was a change in fontsets.
17385
17386 2001-10-21 Miles Bader <miles@gnu.org>
17387
17388 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
17389 (Flogxor): Add usage: string to doc string.
17390 * charset.c (Fstring): Likewise.
17391 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17392 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17393
17394 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17395
17396 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17397
17398 * alloc.c: Reindent DEFUNs with doc: keywords.
17399
17400 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17401
17402 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17403 keyword].
17404
17405 See ChangeLog.9 for earlier changes.
17406
17407 ;; Local Variables:
17408 ;; coding: iso-2022-7bit
17409 ;; End:
17410
17411 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
17412 Copying and distribution of this file, with or without modification,
17413 are permitted provided the copyright notice and this notice are preserved.
17414
17415 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4