(xw-defined-colors) Remove debug message.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d9e7c622
ST
12005-01-22 Steven Tamm <steventamm@mac.com>
2
3 * s/darwin.h: Removed PTY_ITERATION from here.
4 (DARWIN): Defined.
5 * process.c (init_process): Default process-connection-type to
6 nil on darwin 6 or less, t if it is 7 or higher. This way the
7 broken pty behavior is still allowed on darwin 6 for interactive
8 processes for people that know what they are doing.
9
d00e399a
KS
102005-01-22 Kim F. Storm <storm@cua.dk>
11
12 * window.c (auto_window_vscroll_p): New boolean.
13 (syms_of_window): DEFVAR_BOOL it.
14 (Fpos_visible_in_window_p): Extend return value to include RTOP
15 and RBOT values if FULLY is nil.
16 (window_scroll_pixel_based): Adjust vscroll for partially visible
17 rows if auto_window_vscroll_p is set.
18 (Fset_window_vscroll): Do nothing if vscroll is not modified.
19
20 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
21 to return number of partially invisible pixels at top and bottom
22 of the dislay row at POS.
23
24 * lisp.h (pos_visible_p): Fix prototype.
25
f95a20e7
RS
262005-01-21 Richard M. Stallman <rms@gnu.org>
27
28 * fileio.c (Fcopy_file): Doc fix.
29
eee141ce
JD
302005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
31
32 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
33 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
34 start of function for older compilers.
35
6f771c32
RS
362005-01-20 Richard M. Stallman <rms@gnu.org>
37
38 * editfns.c (Fmessage): If arg is "", return "" (as before).
39
40 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
41
42 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
43 variable.
44
a15252fd
ST
452005-01-20 Steven Tamm <steventamm@mac.com>
46
47 * editfns.c (Voperating_system_release): Added.
48 (init_editfns): Assign new variable operating-system-release
49 based on call to uname if available.
50 (get_operating_system_release): Added function to
d00e399a 51 allow c-level access to operating system release.
a15252fd
ST
52
53 * config.h: Regenerated.
54
55 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
56 less.
57 (MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
58 using ptys as '7'.
59
3d6a4b2d
KS
602005-01-20 Kim F. Storm <storm@cua.dk>
61
62fc9b0f
KS
62 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
63
c310aca4
KS
64 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
65 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
66
67 * macterm.c (x_draw_glyph_string_box): Likewise.
68
69 * w32term.c (x_draw_glyph_string_box): Likewise.
70
3d6a4b2d
KS
71 * indent.c (Fvertical_motion): Temporarily disable selective display.
72
27c8be45
KS
732005-01-19 Kim F. Storm <storm@cua.dk>
74
77db5cf3
KS
75 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
76 image property.
77
27c8be45
KS
78 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
79
81f498dc
KS
802005-01-18 Kim F. Storm <storm@cua.dk>
81
82 * xdisp.c (fast_find_position): Backtrack to find first row if
83 charpos is inside a display overlay that spans multiple lines.
84
1cdb0707
KH
852005-01-18 Kenichi Handa <handa@m17n.org>
86
87 * coding.c (decode_coding_iso2022): Translate invalid codes if
88 translation-table is specified.
89
677159ce
KS
902005-01-18 Kim F. Storm <storm@cua.dk>
91
92 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
93 change. If handle_display_prop indicates newline is replaced by
94 image or text, move back to start of relevant overlay or interval
95 and continue scan from there. Simplify.
96
977284cc
KS
972005-01-17 Kim F. Storm <storm@cua.dk>
98
99 * dispnew.c (mode_line_string, marginal_area_string): Fix
100 off-by-one error in search for glyph.
101
e24531b7
KS
1022005-01-16 Kim F. Storm <storm@cua.dk>
103
104 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
105
5ddd7664
ST
1062005-01-16 Steven Tamm <steventamm@mac.com>
107
108 * macterm.c (mac_to_x_fontname): Removed spurious argument.
109
fc2ff44b
AS
1102005-01-16 Andreas Schwab <schwab@suse.de>
111
112 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
113
50af5100
JD
1142005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
115
116 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
117 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
118
a2d5fca0
JD
1192005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
120
121 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
122 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
123 New flags for readable_events.
124 (get_filtered_input_pending, readable_filtered_events): Removed.
a2d5fca0
JD
125 (tracking_off): Call readable_events and get_input_pending with
126 flag READABLE_EVENTS_DO_TIMERS_NOW.
127 (readable_events): Move code from old readable_filtered_events here,
128 but check new READABLE_EVENTS_* in argument flags instead of previous
129 two boolean arguments do_timers_now and filter_events.
130 If we are doing mouse tracking and the mouse moved, return only if
131 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
132 (swallow_events): Call get_input_pending with flag
133 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 134 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
135 here. Replace boolean arguments do_timers_now, filter_events with
136 flags, and pass flags to readable_events. Document new
137 READABLE_EVENTS_* flags.
138 (detect_input_pending_ignore_squeezables): New function.
139 (detect_input_pending_run_timers): Call get_input_pending with flag
140 READABLE_EVENTS_DO_TIMERS_NOW.
141 (Finput_pending_p): Call get_input_pending with flags
142 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
143
144 * dispnew.c (update_window, update_frame_1): Replace calls to
145 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 146 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
147 mouse movements.
148
149 * lisp.h: Declare detect_input_pending_ignore_squeezables.
150
42afbcda
ST
1512005-01-15 Steven Tamm <steventamm@mac.com>
152
e24531b7
KS
153 * macterm.c (Vmac_use_core_graphics): Declare variable for
154 mac-allow-anti-aliasing.
155 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 156 (mac_draw_string_common): Use core graphics text rendering if
0530c679 157 mac-allow-anti-aliasing is enabled.
743d0696 158
42afbcda
ST
159 * macfns.c (Fx_file_dialog): Save As dialog includes only the
160 file name in the text box.
161
9cdd4884
ST
1622005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
163
164 * macfns.c (x_set_foreground_color, x_set_background_color): Sync
165 with xfns.c.
166 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
167 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
168 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
169
88948d55
KS
1702005-01-14 Kim F. Storm <storm@cua.dk>
171
172 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
173
20d6de82
RS
1742005-01-13 Richard M. Stallman <rms@gnu.org>
175
176 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
177 if Voverriding_terminal_local_map is non-nil.
178
179 * keyboard.c (syms_of_keyboard): Doc fix.
180
f75a592e
KS
1812005-01-13 Kim F. Storm <storm@cua.dk>
182
183 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
184 (specify 0 for FACE instead). Reorder arg list. Doc fix.
185
28f94a34
RS
1862005-01-12 Richard M. Stallman <rms@gnu.org>
187
188 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
189 face property for characters that don't specify one.
190
191 * fns.c (Frequire): Record in load-history unconditionally.
192
57a230b1
KS
1932005-01-10 Kim F. Storm <storm@cua.dk>
194
195 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
196
197 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
198 Callers changed.
199 Add support to merge with lisp face id too (if face_name is t).
200
201 * xdisp.c (get_next_display_element, next_element_from_display_vector):
202 Don't lookup lface_id from display table glyphs here; instead use
203 merge_faces to merge the lisp face id into current face.
204
8ab2c119
KS
2052005-01-09 Kim F. Storm <storm@cua.dk>
206
207 * dispextern.h (struct it): New member dpvec_face_id.
208 (merge_into_realized_face): Add prototype.
209
210 * xfaces.c (merge_into_realized_face): New function. Used to
211 merge escape-glyph face or face from display table into current face.
212
213 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
214 (syms_of_xdisp): DEFVAR_LISP it.
215 (escape_glyph_face): Remove var.
216 (redisplay_window): Don't initialize it.
217 (setup_for_ellipsis, get_next_display_element):
218 Set it->dpvec_face_id to -1.
219 (get_next_display_element): Test Vshow_nonbreak_escape.
220 Do not setup escape_glyph_face.
221 Properly merge escape-glyph face or face from display table with
222 current face for escape and control characters. Set
223 it->dpvec_face_id to relevant face id instead of adding it to each
224 element of display vector.
225 (next_element_from_display_vector): If it->dpvec_face_id is set,
226 use that instead of lface_id from glyph itself.
227
e0910857
JD
2282005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
229
230 * xterm.h (struct x_output): New member, toolbar_detached.
231
232 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
233 38.
234 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
235 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
236 (xg_create_tool_bar): Initialize toolbar_detached.
237 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
238 toolbar_detached is zero.
239
ff59904a
JD
2402005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
241
9b85e63d
JD
242 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
243 gtk_menu_popup if not for_click, so callbacks for the menu are called.
244
ff59904a
JD
245 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
246 (xg_tool_bar_callback, xg_tool_bar_help_callback)
247 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
248 warning.
249
250 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 251 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
252 XFLOAT_DATA to get extract number from Lisp object.
253
f9a23a6f
KS
2542005-01-07 Kim F. Storm <storm@cua.dk>
255
256 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
257 Set stop_charpos to current charpos instead of 0.
258
28f94a34
RS
2592005-01-06 Nick Roberts <nickrob@snap.net.nz>
260
261 * xdisp.c (Fformat_mode_line): First arg now required.
262
a6fffcdc
ST
2632005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
264
265 * macterm.c (XLoadQueryFont): Correctly handle 0 size
266 font widths that are returned from some Japanese fonts.
267
c35b0c6b
KS
2682005-01-06 Kim F. Storm <storm@cua.dk>
269
270 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
271 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
272 (destroy_fringe_bitmap): Set fringe_faces element to nil.
273 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
274 fringe_faces array and init elements to nil.
275 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
276 non-persistent face id.
277 (mark_fringe_data): New function for GC.
278
279 * alloc.c (mark_fringe_data): Declare extern.
280 (Fgarbage_collect): Call mark_fringe_data.
281
282 * alloc.c (overrun_check_free): Invalidate freed memory if
283 XMALLOC_CLEAR_FREE_MEMORY is defined.
284
e0e76ab9
ST
2852005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
286
287 * macfns.c: Include sys/param.h.
288 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
289 and function.
290 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
291 of filename string. Set event callback function when creating
292 dialog boxes. Add code conversions for filenames. Don't dispose
293 apple event descriptor record if failed to create it.
294
295 * macterm.c: Include sys/param.h.
296 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
297 kEventWindowUpdate.
298 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
299 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
300 of FSSpec from apple event descriptor record.
301 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
302 size of filename string.
303 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
304 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
305 file dialog is in action.
306 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject
307 only when there are no filename items. Set background color
308 before (un)highlighting the window below the dragged items.
309 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
310
043bc640
KH
3112005-01-05 Romain Francoise <romain@orebokech.com>
312
313 * term.c (encode_terminal_code): Fix buffer size computation.
314
dd496df6
RS
3152005-01-04 Richard M. Stallman <rms@gnu.org>
316
317 * xdisp.c (Fformat_mode_line): Doc fix.
318
026cdede
SM
3192005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
320
321 * alloc.c (refill_memory_reserve): Move.
322 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
323 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
324
d57c7572
RS
3252005-01-03 Richard M. Stallman <rms@gnu.org>
326
327 * window.c (window_scroll_pixel_based): Don't correct preserve_y
328 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
329
b14f868c
JR
3302005-01-03 Jason Rumney <jasonr@gnu.org>
331
332 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
333 fontp->space_width to FONT_WIDTH so they are valid.
334
335 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
336 average width. Set fontp->average_width and fontp->space_width to
337 their appropriate values.
338
339 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
340 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
341 fontp->space_width.
342
e169f939
ST
3432005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
344
345 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
346 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
347 metrics for max and min bounds.
348 (x_load_font): Correctly calculate average font width metrics.
349
19996af4
RS
3502005-01-02 Richard M. Stallman <rms@gnu.org>
351
352 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
353
42d02da0
JD
3542004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
355
356 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
357
1db7dd46
RS
3582004-12-31 Richard M. Stallman <rms@gnu.org>
359
b437860a
RS
360 * xdisp.c (setup_for_ellipsis, get_next_display_element):
361 Set it->ellipsis_p to 1 or 0.
362 (display_line): Record whether row ends in mid-ellipsis.
363 (set_cursor_from_row): If ends in ellipsis. find start of it.
364 (cursor_row_p): If PT's at the end of the ellipsis the row
365 ends within, don't display cursor on this row.
366
367 * dispextern.h (struct it): New element ellipsis_p.
368 (struct glyph_row): New element ends_in_ellipsis_p.
369
370 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
371 position if we're reading from something other than the buffer.
372
1db7dd46
RS
373 * window.c (window_scroll_pixel_based): Only look at
374 Vscroll_preserve_screen_position if the old PT can't be kept.
375 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
376
1225f637
KS
3772004-12-30 Kim F. Storm <storm@cua.dk>
378
379 * xdisp.c (get_line_height_property): New function extracted from
380 original calc_line_height_property.
381 (calc_line_height_property): Rework. Handle t and (nil . ratio).
382 (x_produce_glyphs): Use them to handle line-height and
383 line-spacing according to new height spec.
384 (Qtotal): Remove.
33b2f4ea 385 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 386
c243063e
KH
3872004-12-30 Kenichi Handa <handa@m17n.org>
388
389 * fileio.c (Finsert_file_contents): Don't use
390 current_buffer->buffer_file_coding_system even if REPLACE is
391 non-nil. Call Qafter_insert_file_set_coding with the second arg
392 VISIT.
393
394 * fontset.h (struct font_info): New members space_width and
395 average_width.
396
397 * frame.h (struct frame): New member space_width.
398 (FRAME_SPACE_WIDTH): New macro.
399
400 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
401
402 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
403 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 404 fontp->space_width.
c243063e
KH
405 (x_load_font): Calculate fontp->space_width and
406 fontp->average_width.
407 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
408
409 * xdisp.c (x_produce_glyphs): Calculate tab width by
410 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
411
456e761b
ST
4122004-12-29 Sanghyuk Suh <han9kin@mac.com>
413
414 * macterm.c (SelectionRange): Add Xcode position apple event struct.
415 (do_ae_open_documents): Handle Xcode-style file position open
416 events.
417
188577ce
LT
4182004-12-29 Luc Teirlinck <teirllm@auburn.edu>
419
420 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
421
99ec74b9
RS
4222004-12-29 Richard M. Stallman <rms@gnu.org>
423
424 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
425
30c92fab
ST
4262004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
427
428 * macfns.c (install_window_handler): Modify extern to return OSErr
429 value.
430 (mac_window): Handle return value of install_window_handler.
431
432 * macterm.c (reflect_byte): Remove function.
433 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
434 Lookup table instead.
435 (mac_do_font_lists): Simplify calculation of the longest
436 nonspecial string.
437 (init_mac_drag_n_drop): Remove function and declaration.
438 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
439 init_mac_drag_n_drop.
440 (mac_do_track_drag): New function and declaration.
441 (install_window_handler): Return OSErr value.
442 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
443 handlers for tracking/receiving drag-and-drop items.
444 (do_ae_open_documents): Generate unibyte strings for filenames.
445 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
446 only non-filename items. Set event modifiers. Set return value.
447
4b982924
DN
4482004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
449
450 * coding.c (decode_coding): Fix previous change.
451
93fdf45f
RS
4522004-12-28 Richard M. Stallman <rms@gnu.org>
453
454 * xdisp.c (back_to_previous_visible_line_start):
455 Don't call handle_display_prop.
456
5bdca8af
DN
4572004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
458
459 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
460 (decode_coding_emacs_mule, encode_coding_emacs_mule)
461 (decode_coding_iso2022, encode_designation_at_bol)
462 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
463 (decode_coding): Constify arguments and local vars.
464
33385c6f
JD
4652004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
466
467 * xmenu.c (popup_get_selection): Only pop down dialogs
468 on C-g and Escape.
95bdef2e 469 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 470 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 471 parameter down_on_keypress to popup_get_selection.
33385c6f 472
b15325b2
ST
4732004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
474
475 * dispextern.h: Change HAVE_CARBON to MAC_OS.
476 (struct glyph_string): Likewise.
a2c7e69a 477
b15325b2
ST
478 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
479 mac_initialize.
a2c7e69a 480
b15325b2
ST
481 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
482 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 483
b15325b2 484 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 485
b15325b2
ST
486 * frame.c (x_set_frame_parameters, x_report_frame_params)
487 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
488 (x_set_border_width, Vdefault_frame_scroll_bars): Change
489 HAVE_CARBON to MAC_OS.
a2c7e69a 490
b15325b2
ST
491 * image.c [MAC_OS]: Include sys/stat.h.
492 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
493 QuickTimeComponents.h.
a2c7e69a 494
b15325b2
ST
495 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
496 [!MAC_OSX] (select): Use mac_wait_next_event.
497 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
498 Vexec_suffixes.
499 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
500 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
501 (mac_clear_font_name_table): Add extern.
502 (Fmac_clear_font_name_table): New defun.
503 (syms_of_mac): Defsubr it.
504 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
505 [MAC_OSX] (select_and_poll_event): New function.
506 [MAC_OSX] (sys_select): Use it.
507 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
508 [MAC_OSX && SELECT_USE_CFSOCKET]
509 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
510 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
511 RunLoop for simultaneously monitoring two kinds of inputs, window
512 events and process outputs, without periodically polling.
a2c7e69a 513
b15325b2
ST
514 * macfns.c (mac_initialized): Remove extern.
515 (stricmp): Put in #if 0. All callers changed to use xstricmp in
516 xfaces.c.
517 (strnicmp): Decrement `n' at the end of each loop, not the
518 beginning.
519 (check_mac): Use the term "Mac native windows" instead of "Mac
520 OS".
521 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
522 (mac_get_rdb_resource): New function (from w32reg.c).
523 (x_get_string_resource): Use it.
524 (install_window_handler): Add extern.
525 (mac_window): New function.
526 (Fx_create_frame): Use it instead of make_mac_frame. Set
527 parameter for Qfullscreen. Call x_wm_set_size_hint.
528 (Fx_open_connection, Fx_close_connection): New defuns.
529 (syms_of_macfns): Defsubr them.
530 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
531 kWindowNoUpdatesAttribute to the window attribute.
532 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
533 (x_create_tip_frame): Don't call ShowWindow.
534 (Fx_show_tip): Call ShowWindow.
535 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
536 TARGET_API_MAC_CARBON'.
537 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
538 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 539
b15325b2
ST
540 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
541 Windows.h.
542 (Window): Typedef to WindowPtr and move outside `#if
543 TARGET_API_MAC_CARBON'.
544 (XSizeHints): New struct.
a2c7e69a 545
b15325b2
ST
546 * macterm.c (x_update_begin, x_update_end)
547 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
548 frame.
549 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
550 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
551 (construct_mouse_click): Put in #if 0.
552 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
553 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
554 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
555 (activate_scroll_bars, deactivate_scroll_bars)
556 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
557 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
558 if the position is neither user-specified nor program-specified.
559 (x_free_frame_resources): Free size_hints.
560 (x_wm_set_size_hint): Allocate size_hints if needed. Set
561 size_hints.
562 (mac_clear_font_name_table): New function.
563 (mac_do_list_fonts): Initialize font_name_table if needed.
564 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
565 around mac_do_list_fonts.
566 (mac_unload_font): New function.
567 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
568 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
569 and definitions with #if TARGET_API_MAC_CARBON.
570 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
571 (install_window_handler): Add decl.
572 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
573 window. Use UpdateControls. Get the rectangle that should be
574 updated and restrict the target of expose_frame to it.
575 (do_grow_window): Set minimum height/width according to
576 size_hints.
577 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
578 (do_zoom_window): Don't use x_set_window_size.
579 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
580 (install_window_handler): New function.
581 [!USE_CARBON_EVENTS] (mouse_region): New variable.
582 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
583 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
584 GetEventDispatcherTarget inside BLOCK_INPUT.
585 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
586 Update mouse_region when mouse is moved.
587 (make_mac_frame): Remove.
588 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
589 mouse pointer shapes. Change values of f->left_pos and
590 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
591 call ShowWindow.
592 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
593 Vinvocation_name and Vsystem_name.
594 (mac_make_rdb): New function (from w32term.c).
595 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
596 already been opened. Don't pass argument to
597 mac_initialize_display_info. Don't set dpyinfo->height/width.
598 Add entries to x_display_list and x_display_name_list.
599 (x_delete_display): New function.
600 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
601 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
602
b15325b2
ST
603 * macterm.h (check_mac): Add extern.
604 (struct mac_output): New member size_hints.
605 (FRAME_SIZE_HINTS): New macro.
606 (mac_unload_font): Add extern.
a2c7e69a 607
b15325b2 608 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 609
b15325b2
ST
610 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
611
92d2947b
RS
6122004-12-27 Richard M. Stallman <rms@gnu.org>
613
ebbd14f1
RS
614 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
615 (syms_of_buffer): Don't defsubr it.
616
617 * process.c (list_processes_1): Set undo_list instead
618 of calling Fbuffer_disable_undo.
619
92d2947b
RS
620 * xdisp.c (single_display_spec_string_p): Renamed from
621 single_display_prop_string_p.
622 (single_display_spec_intangible_p): Renamed from
623 single_display_prop_intangible_p.
624 (handle_single_display_spec): Renamed from handle_single_display_prop.
625 Rewritten to be easier to understand.
626
a2c7e69a 627 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
628 and variables get just NAME.
629
630 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
631
632 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
633 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
634 (Qdefvar): Var deleted.
635 (syms_of_eval): Don't initialze it.
636
637 * lread.c (syms_of_lread) <load-history>: Doc fix.
638
9f6fcdc5
JD
6392004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
640
641 * xmenu.c (popup_get_selection): Pop down on C-g.
642 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
643 pops down menu on C-g.
644 (xdialog_show): If dialog popped down and no button in the dialog was
645 pushed, call Fsignal to quit.
646 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
647 Fsignal to quit.
648
649 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
650
651 * gtkutil.c (xg_initialize): Install bindings for C-g so that
652 dialogs and menus pop down.
653
d8ca23a0
KH
6542004-12-27 Kenichi Handa <handa@m17n.org>
655
656 * coding.c (code_convert_region): Fix calculation of `ratio'.
657
857ae68b
JD
6582004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
659
133c0116
JD
660 * gtkutil.c (update_frame_tool_bar): Make the value of
661 tool-bar-button-margin control margins of images in tool bar.
662
857ae68b
JD
663 * alloc.c (check_depth): New variable.
664 (overrun_check_malloc, overrun_check_realloc): Only add
665 overhead and write check pattern if check_depth is 1 (to handle
666 recursive calls). Increase/decrease check_depth in entry/exit.
667 (overrun_check_free): Only check for overhead if check_depth is 1.
668 Increase/decrease check_depth in entry/exit.
669
bd55c35c
JD
6702004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
671
672 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
673 before touching input_available_clear_time, to avoid accessing it
674 from multiple threads.
675
66354420
JR
6762004-12-23 Jason Rumney <jasonr@gnu.org>
677
678 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
679 of JPEG library.
680
55f4edbc
RS
6812004-12-22 Richard M. Stallman <rms@gnu.org>
682
683 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
684
685 * lisp.h (Vundo_outer_limit): Fix decl.
686
687 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
688 Uses changed.
689 (syms_of_undo): Initialize appropriately.
690 (truncate_undo_list): If it's nil, there's no limit.
691
7a0ea9e3
KH
6922004-12-22 Kenichi Handa <handa@m17n.org>
693
694 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
695
fda2922a
RS
6962004-12-21 Richard M. Stallman <rms@gnu.org>
697
698 * eval.c (unwind_to_catch): Clear immediate_quit.
699
700 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
701 specially as `\ ' and `\-'.
702
703 * keyboard.c (kbd_buffer_store_event_hold):
704 In the code for while-no-input, handle immediate_quit.
705
706 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
707 Call that at the very start.
708 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
709 (syms_of_alloc): Don't define undo-limit,
710 undo-strong-limit and undo-outer-limit here.
711
712 * undo.c (truncate_undo_list): Return void.
713 Take just one argument, the buffer.
714 Make it current, and inhibit recursive GC.
715 Access and update the undo list directly; return void.
716 Refer to the undo...limit variables directly.
717 Test undo_outer_limit only after counting the whole current command.
718 When it's exceeded, call the function in undo-outer-limit-function.
719 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
720 (Vundo_outer_limit_function): New variable.
721 (syms_of_undo): Define undo-limit, undo-strong-limit
722 and undo-outer-limit here, and undo-outer-limit-function.
723 Doc fixes.
724
725 * lisp.h (truncate_undo_list): Update decl.
726
7272004-12-21 Piet van Oostrum <piet@cs.uu.nl>
728
729 * fileio.c (Fread_file_name): Delete duplicates in
730 file-name-history when history_delete_duplicates is true.
731
68c69027
ST
7322004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
733
734 * macterm.c (mac_do_list_fonts): Fix memory leak
735
134579f2
RS
7362004-12-20 Richard M. Stallman <rms@gnu.org>
737
738 * regex.c (re_match_2_internal) <symend, wordend>:
739 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
740
fbe6152f
ST
7412004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
742
743 * macterm.c (endif, x_font_name_to_mac_font_name): Use
744 maccentraleurroman instead of maccentraleuropean
745 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
746 quickly finding a specific font without needing regexps.
747
fecad3f6
JD
7482004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
749
333f1b6f
JD
750 * syssignal.h: Declare main_thread.
751 (SIGNAL_THREAD_CHECK): New macro.
752
753 * keyboard.c (input_available_signal): Move thread checking code
754 to macro SIGNAL_THREAD_CHECK and call that macro.
755 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
756
757 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
758
759 * emacs.c: Define main_thread.
760 (main): Initialize main_thread.
761 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
762 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
763
764 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
765
766 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
767
768 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
769
a2c7e69a 770 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
771 SIGNAL_THREAD_CHECK.
772
773 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
774
775 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
776
fecad3f6
JD
777 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
778 returning when xg_ignore_gtk_scrollbar is true.
779
2a84c6da
KS
7802004-12-14 Kim F. Storm <storm@cua.dk>
781
782 * keyboard.c (read_char): Save and restore echo_string when
783 handling input method.
784
d9c1ce9d
RS
7852004-12-13 Richard M. Stallman <rms@gnu.org>
786
787 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
788
789 * keyboard.c (Vthrow_on_input): New variable.
790 (syms_of_keyboard): Defvar and initialize it.
791 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
792
793 * lisp.h (QUIT): Check for Vthrow_on_input.
794 (Vthrow_on_input): Declare it.
795
a6495ed5
KS
7962004-12-13 Kim F. Storm <storm@cua.dk>
797
798 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
799 vector.
800
24a0e22f
RS
8012004-12-12 Richard M. Stallman <rms@gnu.org>
802
803 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
804
805 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
806 (Ftry_completion): Really use outer `zero'; eliminate inner one.
807
d6d31e57
KH
8082004-12-12 Kenichi Handa <handa@m17n.org>
809
810 * term.c (encode_terminal_code): Fix previous change.
811
6f8ffb88
SM
8122004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
813
fb6f5cbf
SM
814 * keyboard.c (handle_async_input): Remove pthread mutex handling.
815 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
816
6f8ffb88
SM
817 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
818 in macro arguments.
819
820 * minibuf.c (Ftry_completion, Fall_completions): Don't use
821 XFASTINT blindly.
822
823 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
824
c83c9f9d
JD
8252004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
826
2f25767f
JD
827 * w32term.c (x_calc_absolute_position): Remove calculation of
828 difference between inner and outer window. Don't subtract difference
829 for left and top calculations.
830
c83c9f9d
JD
831 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
832 for left and top calculations. Remove call to x_real_positions.
24a0e22f 833 [Bug report by Drew Adams in November]
c83c9f9d
JD
834 (x_check_expected_move): Do not set change_gravity to 1 when calling
835 x_set_offset.
836
cc1caa4e
RS
8372004-12-08 Richard M. Stallman <rms@gnu.org>
838
839 * xdisp.c (get_next_display_element): Use `escape-glyph' for
840 control chars and escaped octal codes.
841 (Qescape_glyph): New variable.
842 (syms_of_xdisp): Initialize it.
843 (escape_glyph_face): New variable.
844 (redisplay_window): Initialize it.
845
e0e30823
RS
8462004-12-07 Paul Eggert <eggert@cs.ucla.edu>
847
848 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
849 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
850
f415cacd
JD
8512004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
852
cf435f39
JD
853 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
854 reset_malloc_hooks.
855
6f8ffb88
SM
856 * keyboard.c (handle_async_input, input_available_signal):
857 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 858
f415cacd
JD
859 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
860
19b1f29a
SM
8612004-12-07 Stefan <monnier@iro.umontreal.ca>
862
863 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
864
865 * config.in: Regenerate.
866
ded997c1
JD
8672004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
868
453a4f1b
JD
869 * xmenu.c (Fx_popup_menu): Correct documentation about position.
870 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
871 if not given by a mouse click to correspond with x-popup-menu
872 documentation.
873
9a38524c
JD
874 * config.in: Regenerate.
875
aa477689
JD
876 * gtkutil.c: Include signal.h and syssignal.h.
877 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
878
879 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
880 new variables main_thread and alloc_mutex,
881 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
882 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
883 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
884 (UN)BLOCK_INPUT.
885 (emacs_blocked_free, emacs_blocked_malloc)
886 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
887 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
888 (reset_malloc_hooks): New function.
889
890 * lisp.h: Declare reset_malloc_hooks.
891
892 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
893
894 * keyboard.c: Conditionally include pthread.h
6f8ffb88 895 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
896 thread, block signal, send signal to main thread and return.
897
ded997c1 898 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 899 Set current folder in file chooser if default_filename is a directory.
ded997c1 900
c72b0edd
SM
9012004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
902
903 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
904 Remove redundant correctness checks.
905 (regex_compile): Fix up error codes for \{..\} expressions.
906
c721eee5
RS
9072004-12-05 Richard M. Stallman <rms@gnu.org>
908
909 * regex.c (regex_compile): Fix end-of-pattern case for space.
910
d8f96db8
ST
9112004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
912
6108209e
KS
913 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
914 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 915 crashes with invalid characters.
6108209e
KS
916 * macmenu.c (add_menu_item): Use it.
917 * image.c (image_load_quartz2d): Likewise.
918 * macfns.c (x_set_name, x_set_title): Likewise.
919 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
920 creating them each time for labels.
d8f96db8 921
ab67e8b6
RS
9222004-12-02 Richard M. Stallman <rms@gnu.org>
923
924 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
925 don't use it here.
926
927 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
928 (interactive_p): Skip Scalled_interactively_p frames
929 like Sinteractive_p frames.
b8217ea6 930 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
931
932 * data.c (Fmake_variable_buffer_local): Doc fix.
933 (Fmake_local_variable): Doc fix.
934
935 * insdel.c (insert_from_string_before_markers)
936 (insert_from_string): Don't modify buffer on empty insertion.
937
938 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
939
f86bdc80
ST
9402004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
941
942 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
943 menu text as UTF8 fails.
944
1cae6d39
KS
9452004-12-01 Kim F. Storm <storm@cua.dk>
946
947 * alloc.c: Add commentary for last change.
948 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
949 sizeof(size_t) != 4.
950 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
951 Use them. Also clear header and trailer of freed memory.
952 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
953 (string_overrun_cookie): Rename from string_overrun_pattern.
954 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
955
77ea0764
AS
9562004-12-01 Andreas Schwab <schwab@suse.de>
957
958 * lisp.h: Declare string_to_multibyte.
959
2d5cd4e6
KH
9602004-12-01 Kenichi Handa <handa@m17n.org>
961
962 * w32console.c (w32con_write_glyphs): Decide coding here.
963 Adjusted for the change of encode_terminal_code.
964
965 * term.c (encode_terminal_code): Don't make it "static".
966
25a0994a
KH
9672004-11-30 Kenichi Handa <handa@m17n.org>
968
19b1f29a 969 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 970 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
971 characters at once, and return a pointer to the result of encoding.
972 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
973 (insert_glyphs): Likewise.
974 (term_init): Initialize encode_terminal_bufsize to 0.
975
976 * coding.c (Vcode_conversion_workbuf_name): New variable.
977 (syms_of_coding): Initialize and staticpro it.
978 (set_conversion_work_buffer): New function.
979 (run_pre_post_conversion_on_str): Use it.
980 (run_pre_write_conversin_on_c_str): New function.
981
982 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
983
fc7a70cc
ST
9842004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
985
986 * keyboard.c: Don't undef SIGIO
987 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
988 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
989 (macfns.o): Don't depend on ccl.h.
990 * macfns.c (mac_frame_parm_handlers): Set handlers for
991 Qleft_fringe and Qright_fringe.
992 * macterm.c (mac_fill_rectangle_to_pixmap)
993 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
994 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
995 Put in #if 0.
996 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
997 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
998 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
999 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1000 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1001 XDrawImageString. Always draw background and foreground separately.
1002 (x_draw_image_foreground): Use clipping instead of computing the
1003 intersection rectangle.
1004 (x_draw_image_glyph_string): Don't draw an image with mask to a
1005 pixmap.
1006 (x_redisplay_interface): Set flush_display_optional member to 0.
1007 (XTread_socket): Correctly reset the TEConverter
1008 object.
1009
fc368889
KS
10102004-11-30 Kim F. Storm <storm@cua.dk>
1011
1012 * lisp.h: New defines to enable buffer overrun checking.
1013 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1014 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1015
1016 * alloc.c: Add more checks for buffer overruns.
1017 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1018 xmalloc_overrun_check_trailer, overrun_check_malloc)
1019 overrun_check_realloc, overrun_check_free): Add.
1020 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1021 (check_sblock, allocate_string_data, compact_small_strings):
1022 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1023 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1024 (check_string_free_list): Add.
1025 (allocate_string, sweep_strings): Call check_string_free_list.
1026
1027 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1028 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1029
0af8cfe1
KS
10302004-11-29 Kim F. Storm <storm@cua.dk>
1031
1032 * fns.c (concat): Use SAFE_ALLOCA.
1033
77220eeb
SM
10342004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1035
1036 * sysdep.c (emacs_write): Don't use QUIT.
1037
a778cf63
KH
10382004-11-29 Kenichi Handa <handa@m17n.org>
1039
1040 * buffer.c (init_buffer): Set current_buffer->directory to a
1041 multibyte string made by string_to_multibyte.
1042
77220eeb 1043 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 1044
e3177e43
AS
10452004-11-27 Andreas Schwab <schwab@suse.de>
1046
1047 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1048
1049 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1050 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1051
77220eeb
SM
1052 * filelock.c (lock_file_1): Call get_boot_time early.
1053 Increase buffer size.
e3177e43 1054
ca5e6fef
EZ
10552004-11-27 Eli Zaretskii <eliz@gnu.org>
1056
1057 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1058 is not defined.
1059
e2811828
KS
10602004-11-27 Kim F. Storm <storm@cua.dk>
1061
1062 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1063 marker out of doc string.
1064
7a262394
SM
10652004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1066
1067 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1068 which was not mentioned in the log.
1069
f33cc5a9
KS
10702004-11-26 Kim F. Storm <storm@cua.dk>
1071
048bb03f
KS
1072 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1073 angle bitmaps at top/bottom line.
1074
f33cc5a9
KS
1075 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1076 set it when it->method is set to next_element_from_display_vector.
1077 (setup_for_ellipsis): Add LEN argument. Callers changed.
1078 Set it->saved_face_id.
1079 (get_next_display_element): Use loop instead of recursion.
1080 Set it->saved_face_id. Combine duplicate code for ctr chars.
1081 (next_element_from_display_vector): Do not set it->saved_face_id.
1082 (next_element_from_ellipsis): Use setup_for_ellipsis.
1083
670e8906
EZ
10842004-11-26 Eli Zaretskii <eliz@gnu.org>
1085
1086 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1087 prevent compiler warnings.
1088
275464e7
SM
10892004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1090
1bf0e604
SM
1091 * keyboard.c (command_loop_1): Print a message describing the key
1092 the user just pressed when this key has no binding.
1093
275464e7
SM
1094 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1095 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1096
1097 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1098
261b01c6
RS
10992004-11-24 Richard M. Stallman <rms@gnu.org>
1100
1101 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1102
1103 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1104
a5bd504e
KS
11052004-11-24 Kim F. Storm <storm@cua.dk>
1106
1107 * xdisp.c (move_it_in_display_line_to, display_line):
1108 Restore saved_face_id also when truncate-lines or hscrolled.
1109
255e4140
JD
11102004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1111
1112 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1113 x-use-old-gtk-file-dialog.
1114
1115 * xfns.c: Define x_use_old_gtk_file_dialog.
1116 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1117 outside ifdef USE_GTK.
1118
cab27d04
SM
11192004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1122 Don't use XFASTINT blindly.
1123
1124 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1125
1126 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1127 in macro arguments.
1128
1129 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1130
1131 * lread.c (oblookup): Don't use XFASTINT blindly.
1132
1133 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1134 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1135
11e0be49
KS
11362004-11-23 Kim F. Storm <storm@cua.dk>
1137
4d721114
KS
1138 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1139 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1140
11e0be49
KS
1141 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1142 signal_p is zero and face name is unknown.
1143 (Fx_list_fonts): Don't signal error in lookup_named_face.
1144 (Fface_font): Signal error in lookup_named_face.
1145 (ascii_face_of_lisp_face): Likewise.
1146
1147 * dispextern.h (lookup_named_face): Fix prototype.
1148
1149 * xdisp.c (handle_single_display_prop): Don't signal error in
1150 lookup_named_face for unknown fringe face name.
1151 (highlight_trailing_whitespace): Don't signal error in
1152 lookup_named_face if trailing-whitespace face unknown.
1153 (calc_line_height_property): Don't signal error in
1154 lookup_named_face if specified face name is unknown.
1155
1156 * fringe.c (update_window_fringes): Show top row indicator if
1157 window has header-line. Don't show arrow at bob and eob
1158 if the boundary indicators are not used.
1159 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1160
1161 * window.c (set_window_buffer): Clear display_error_modiff.
1162
0960a582
KS
11632004-11-22 Kim F. Storm <storm@cua.dk>
1164
1165 * fringe.c (update_window_fringes): Provide sensible fall-back
1166 value for non-nil indicate-buffer-boundaries setting.
1167
b0e9bb28
MR
11682004-11-22 Markus Rost <rost@ias.edu>
1169
1170 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1171
d0bce91e
SM
11722004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1173
1174 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1175
e1814672
KS
11762004-11-21 Kim F. Storm <storm@cua.dk>
1177
b7fd3518
KS
1178 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1179
1180 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1181 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1182
1183 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1184 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1185
1186 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1187 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1188
d0bce91e
SM
1189 * xdisp.c (move_it_in_display_line_to, display_line):
1190 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1191 line is continued before or in middle of element from display vector.
f01d4d05 1192
f1a61389
KS
1193 * indent.c (Fvertical_motion): Fix last change. Use another
1194 method to detect if iterator moved too far ahead after reseat.
1195
e1814672
KS
1196 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1197 expand matrix width for overflow in zero-width area.
1198 (append_glyph, append_composite_glyph, produce_image_glyph)
1199 (append_stretch_glyph): Use it to avoid loop in redisplay.
1200 (note_mode_line_or_margin_highlight): Don't let help-echo from
1201 string override help-echo from image map.
1202
2dafe1c9
LT
12032004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1204
d0bce91e 1205 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1206 * callint.c (Fcall_interactively): Ditto.
1207
fd6866c8 12082004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1209
1210 * minibuf.c (Fminibuffer_complete_and_exit):
1211 Fixup the case of the completed value, for case-indep completion.
1212
dedbac89
RS
12132004-11-20 Richard M. Stallman <rms@gnu.org>
1214
fd6866c8
RS
1215 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1216
9d00469f 1217 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1218 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1219
dedbac89 1220 * search.c (Vsearch_spaces_regexp):
d0bce91e 1221 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1222
2f672bb5
TTN
12232004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1224
1225 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1226
f31a9a68
RS
12272004-11-19 Richard M. Stallman <rms@gnu.org>
1228
1229 * search.c (Vsearch_whitespace_regexp): New variable.
1230 (syms_of_search): Defvar it.
1231 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1232 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1233 is non-nil.
6de891db
RS
1234 (struct regexp_cache): New element whitespace_regexp.
1235 (syms_of_search): Initialize whitespace_regexp elements.
1236 (compile_pattern): Compare whitespace_regexp elements.
1237 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1238
1239 * regex.c (regex_compile): Substitute whitespace_regexp
1240 for spaces, if it is nonzero.
1241 (whitespace_regexp): New variable.
1242 (re_set_whitespace_regexp): New function.
1243
cbc34cb3
KS
12442004-11-19 Kim F. Storm <storm@cua.dk>
1245
1246 * indent.c (Fvertical_motion): Fix last change.
1247
b54a7539
KS
12482004-11-18 Kim F. Storm <storm@cua.dk>
1249
1250 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1251 Instead, move back again if reseating moves too far ahead.
1252
12532004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1254
1255 * xdisp.c (message3): Call clear_message.
1256
5ff504fe
KS
12572004-11-17 Kim F. Storm <storm@cua.dk>
1258
1259 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1260
5ae53dcf
JD
12612004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1262
d0bce91e 1263 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1264
6abf3a27 1265 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1266 (x_menu_set_in_use): Also set popup_activated_flag.
1267
5ff504fe 1268 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1269 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1270
6abf3a27 1271 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1272
ee31cd78
RS
12732004-11-16 Richard M. Stallman <rms@gnu.org>
1274
6abf3a27
SM
1275 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1276 Use map-keymap-internal to implement that.
ee31cd78
RS
1277
1278 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1279
6abf3a27
SM
12802004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1283 a window before using XWINDOW.
1284
1285 * window.c (make_window, Fselect_window, make_dummy_parent)
1286 (save_window_save):
1287 * frame.c (make_frame):
1288 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1289
1290 * lisp.h (NILP): Use EQ rather than XFASTINT.
1291
b4d61105
KS
12922004-11-16 Kim F. Storm <storm@cua.dk>
1293
6abf3a27 1294 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1295
b4d61105
KS
1296 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1297 moving backwards.
1298
12992004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1300
1301 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1302
ab5b02b0
KH
13032004-11-16 Kenichi Handa <handa@m17n.org>
1304
1305 * xdisp.c (display_mode_element): Fix previous change (calculate
1306 end position of substring to display correctly).
1307
c482cf97
KS
13082004-11-16 Kim F. Storm <storm@cua.dk>
1309
1310 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1311 Reported by Andrew M. Scott.
1312
9f89426b
KS
13132004-11-15 Kim F. Storm <storm@cua.dk>
1314
1315 * fns.c (Fsafe_plist_get): New defun.
1316 (syms_of_fns): Defsubr it.
1317
1318 * lisp.h (Fsafe_plist_get): Add EXFUN.
1319
1320 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1321 Use Fsafe_plist_get.
1322 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1323 Fix image map element parsing. Use Fsafe_plist_get.
1324
27418463
RS
13252004-11-15 Richard M. Stallman <rms@gnu.org>
1326
1327 * xdisp.c (get_next_display_element): Fix previous change.
1328
a130b901
JD
13292004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1330
ef614e04
JD
1331 * window.c (shrink_windows): Handle special case of one window left
1332 when trying to shrink the final reminder. Grow windows if
1333 total_removed is less than total_shrink.
1334
a130b901
JD
1335 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1336 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1337 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1338 Construct arg to record_unwind_protect with make_save_value.
a130b901 1339
d9a03ad2
RS
13402004-11-13 Richard M. Stallman <rms@gnu.org>
1341
1342 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1343 (get_next_display_element): Fix previous change to apply only to \n.
1344
1345 * indent.c (Fvertical_motion): Scan to PT from start of line to
1346 make iterator consistent.
1347
1348 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1349
b3935289
JD
13502004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1351
1352 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1353
1354 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1355 Record unwind with clean_up_file_dialog.
1356
78819ebb
KS
1357 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1358 Declare.
b3935289
JD
1359
1360 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1361
af89e871
JD
13622004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1363
457a8155 1364 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1365 (xg_file_sel_destroy): Remove.
46303896
KS
1366 (xg_file_response_cb, pop_down_file_dialog)
1367 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1368 New functions.
6abf3a27
SM
1369 (xg_get_file_with_chooser, xg_get_file_with_selection):
1370 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1371 Move common code to xg_get_file_name. Return widget created.
1372 (xg_get_file_name): Set name, transient for, modal and destroy
1373 with parent here. Connect response signal to xg_file_response_cb,
1374 connect delete-event to gtk_true. Record pop_down_file_dialog
1375 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1376 (xg_create_widget): Make dialogs modal.
1377
af89e871
JD
1378 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1379 Lisp_Object.
1380 (popup_get_selection): Move unwind protect ...
1381 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1382 Move destroy of widget to pop_down_menu.
1383 (popup_widget_loop): Move unwind protect ...
1384 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1385 Move destroy of widget to pop_down_menu.
1386 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1387 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1388 x_mouse_leave and grabbed = 0 to pop_down_menu.
1389
5596fbf1
KS
13902004-11-13 Kim F. Storm <storm@cua.dk>
1391
1392 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1393 (syms_of_xdisp): DEFVAR_BOOL it.
1394 (make_cursor_line_fully_visible, try_cursor_movement)
1395 (try_window_id): Use it.
1396
b9de078a
KS
13972004-11-12 Kim F. Storm <storm@cua.dk>
1398
381f7091
KS
1399 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1400 (struct it): New member max_extra_line_spacing.
1401 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1402 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1403 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1404 part of last line is only extra line spacing (so the text on the
1405 line is fully visible). Use helper macros.
1406 Add W arg (to use them). All callers changed.
1407 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1408 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1409
6abf3a27
SM
1410 * window.c (window_scroll_pixel_based, Frecenter):
1411 Use move_it_vertically_backward directly.
381f7091
KS
1412 (Frecenter): Fix calculation of new start pos for negative arg.
1413 Before, the new start pos was sometimes chosen too far back, so
1414 the last line became only partially visible, and thus would be
1415 either only semi-visible or automatically scrolled to the middle
1416 of the window by redisplay.
1417
1418 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1419 (move_it_vertically_backward): Don't recure to move further back.
1420 (move_it_vertically): Remove superfluous condition.
1421 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1422 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1423 (display_tool_bar_line): Clear row->extra_line_spacing.
1424 (try_scrolling): Use move_it_vertically_backward directly.
1425 (redisplay_window): Likewise.
1426 (compute_line_metrics): Set row->extra_line_spacing.
1427 (display_line, display_string): Likewise.
1428 (x_produce_glyphs): Update it->max_extra_line_spacing.
1429
b9de078a
KS
1430 * xmenu.c (pop_down_menu): Return nil.
1431
c3438661
JD
14322004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1433
1434 * xmenu.c (x_menu_wait_for_event): New function.
1435 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1436 to handle timers.
df00f436
JD
1437 (popup_widget_loop): Add argument do_timers.
1438 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1439 do_timers to popup_widget_loop.
c3438661
JD
1440 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1441 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1442 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1443 popup_get_selection.
f1d1cd24
JD
1444 (pop_down_menu): New function.
1445 (popup_get_selection, popup_widget_loop): Unwind protect to
1446 pop_down_menu.
1447 (popup_widget_loop): Add argument widget.
1448 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1449 argument widget to popup_widget_loop.
c3438661 1450
32e2fb04
SM
14512004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1452
1453 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1454
0faf6806
KS
14552004-11-09 Kim F. Storm <storm@cua.dk>
1456
1457 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1458 Fix various comments referring to XEvents instead of input events.
1459 (x_queue_event): Fix format strings.
1460 (x_stop_queuing_selection_requests): Likewise.
1461
1462 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1463 (pint2hrstr): Add extra braces to silence compiler.
1464
1465 * print.c (print_object): Fix format string.
1466
1467 * lread.c (read1): Fix next_char matching.
1468
1469 * lisp.h (Fdelete): Add EXFUN.
1470 (replace_range_2): Add prototype.
1471
1472 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1473
1474 * intervals.h (NULL_INTERVAL_P): Add separate version when
1475 ENABLE_CHECKING is not defined to silence compiler.
1476 (compare_string_intervals): Add prototype.
1477
1478 * fringe.c (destroy_fringe_bitmap): Fix return type.
1479 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1480
1481 * emacs.c (Fdump_emacs): Fix format string.
1482
1483 * doc.c: Include <ctype.h>.
1484 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1485
1486 * data.c (store_symval_forwarding): Remove unused variables.
1487
1488 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1489
16bf4e32
JD
14902004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1491
1492 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1493 to ${OLDXMENU}.
1494
cdb805a9
KS
14952004-11-09 Kim F. Storm <storm@cua.dk>
1496
1497 * process.c (Fmake_network_process): Remove kludge for interrupted
1498 connects on BSD. If connect is interrupted, just close socket and
1499 start over rather than sleeping and retry with same socket.
1500
d87a9ab8 15012004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1502
a8b16c80
JD
1503 * .cvsignore: Add buildobj.lst.
1504
d87a9ab8
JD
1505 * doc.c: New variable Vbuild_files.
1506 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1507 file names from buildobh.lst. Only attach docstrings from files
1508 that are in Vbuild_files.
1509 (syms_of_doc): Defvar Vbuild_files.
1510
1511 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1512 and w32*.o.
1513 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1514 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1515
1516 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1517 is linked.
1518
b6709e77
KS
15192004-11-09 Kim F. Storm <storm@cua.dk>
1520
1521 * fringe.c (update_window_fringes): Update fringe bitmaps if
1522 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1523 also update previous row to get rid of misc. artifacts.
1524
bae9677d
KS
15252004-11-08 Kim F. Storm <storm@cua.dk>
1526
1527 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1528 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1529
3f8ea68c
EZ
15302004-11-08 Eli Zaretskii <eliz@gnu.org>
1531
1532 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1533 Don't include <sys/time.h> explicitly.
1534 Include <stdio.h> unconditionally, not just on MacOS.
1535
a653f812
KH
15362004-11-08 Kenichi Handa <handa@m17n.org>
1537
1538 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1539 don't pay attention to '\' before '*'.
1540 (fontset_pattern_regexp): Change the meaning of the second arg.
1541 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1542 (check_fontset_name): Try NAME as literal at first, and if it
1543 failes, try NAME as pattern.
1544
c37caf9d
JD
15452004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1546
1547 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1548
b72915a7
AS
15492004-11-07 Andreas Schwab <schwab@suse.de>
1550
78819ebb
KS
1551 * lisp.h (Fmsdos_downcase_filename): Declare.
1552 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1553 * fileio.c: Likewise.
1554
238a44a8
JD
15552004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1556
1557 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1558 comparisons with integers instead of Lisp_Object address.
1559 (Fmsdos_set_keyboard): Declare argument allkeys.
1560
1561 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1562
78819ebb 1563 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1564 int/Lisp_Object mixup.
1565
1566 * fileio.c: Ditto.
1567
31141c13
ST
15682004-11-06 Steven Tamm <steventamm@mac.com>
1569
1570 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1571
f28c1bd9
RS
15722004-11-06 Richard M. Stallman <rms@gnu.org>
1573
1574 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1575
1576 * xfaces.c (merge_named_face): GCPRO the face_name in the
1577 named_merge_point struct that we make.
1578 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1579
1580 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1581 before deciding whether to inactivate mark.
1582
59dede22
EZ
15832004-11-06 Lars Brinkhoff <lars@nocrew.org>
1584
1585 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1586 * editfns.c (Fget_internal_run_time): New function.
1587 (syms_of_data): Defsubr it.
1588 * fns.c (sxhash): As far as possible, merge calculation of
1589 hash code for symbols and strings.
59dede22 1590
27540e81
EZ
15912004-11-06 Eli Zaretskii <eliz@gnu.org>
1592
1593 * frame.c (syms_of_frame): Fix the example in the doc string.
1594
df470e3b
JD
15952004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1596
1597 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1598
1599 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1600 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1601
4cc8522c
LT
16022004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1603
1604 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1605
d4a42098
KS
16062004-11-05 Kim F. Storm <storm@cua.dk>
1607
a8490886
KS
1608 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1609
d4a42098
KS
1610 * fileio.c (Ffile_modes): Doc fix.
1611 (auto_save_1): Check for Ffile_modes nil value.
1612
36a2b04c
KS
16132004-11-05 Kim F. Storm <storm@cua.dk>
1614
1615 * xselect.c (struct selection_event_queue, selection_queue)
1616 (x_queue_selection_requests, x_queue_event)
1617 (x_start_queuing_selection_requests)
1618 (x_stop_queuing_selection_requests): Add new queue for selection
1619 input events to replace previous XEvent queue in xterm.c.
1620 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1621 (x_reply_selection_request): Adapt to new queue.
1622 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1623 (x_handle_selection_request, x_handle_selection_clear): Make static.
1624 (x_handle_selection_event): New function. May queue selection events.
1625 (wait_for_property_change_unwind): Use save_value instead of cons.
1626 Clear property_change_reply_object.
1627 (wait_for_property_change): Abort if already waiting.
1628 Use save_value instead of cons for unwind data.
1629 (x_handle_property_notify): Skip events already arrived, but don't
1630 free them, as "arrived" field is checked by wait_for_property_change,
1631 and it will be freed by unwind or explicit unexpect_property_change.
1632 (x_get_foreign_selection): Add to new queue.
1633 (receive_incremental_selection): Don't unexpect wait_object when done
1634 as it has already been freed by previous wait_for_property_change.
1635
1636 * xterm.h (x_start_queuing_selection_requests)
1637 (x_stop_queuing_selection_requests, x_handle_selection_request)
1638 (x_handle_selection_clear): Remove prototypes.
1639 (x_handle_selection_event): Add prototype.
1640
1641 * xterm.c (handle_one_xevent): Don't queue X selection events
1642 here, it may be too late if we start queuing after we have already
1643 stored some selection events into the kbd buffer.
1644 (struct selection_event_queue, queue, x_queue_selection_requests)
1645 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1646 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1647 (x_catch_errors_unwind): Block input around final XSync.
1648
1649 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1650
1651 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1652 (kbd_buffer_unget_event): New function.
1653 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1654 and use x_handle_selection_event.
1655 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1656
9c3ad9e1
JD
16572004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1658
1659 * xselect.c (TRACE3): New debug macro.
1660 (x_reply_selection_request): Use it.
1661 (receive_incremental_selection): In call to TRACE0, the name of
1662 a symbol is in xname.
1663
a33b89de
KS
16642004-11-05 Kim F. Storm <storm@cua.dk>
1665
1666 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1667
a872928c
JD
16682004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1669
88208bb8
JD
1670 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1671
78819ebb 1672 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1673
1674 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1675 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1676 * xfns.c (syms_of_xfns): ... to here.
1677
a872928c
JD
1678 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1679 it doesn't start with /.
1680
b912921c
KH
16812004-11-04 Kenichi Handa <handa@m17n.org>
1682
1683 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1684 treat it as a literal character.
1685
c524d9a6
KS
16862004-11-03 Kim F. Storm <storm@cua.dk>
1687
1688 * .gdbinit (ppt): New function.
1689
8cfd0f36
JD
16902004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1691
a11e1dce
JD
1692 * xterm.c (x_window_to_scroll_bar): Only call
1693 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1694
8cfd0f36
JD
1695 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1696 of save.
1697
a93563fd
AS
16982004-11-02 Andreas Schwab <schwab@suse.de>
1699
1700 * window.c (Fscroll_right): Fix last change.
1701
2b2d59d8
KS
17022004-11-02 Kim F. Storm <storm@cua.dk>
1703
1704 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1705
17062004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1707
1708 * callproc.c (Fcall_process): Block input around vfork.
1709
ca28104d
KS
17102004-11-02 Kim F. Storm <storm@cua.dk>
1711
1712 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1713 (syms_of_eval): Defsubr it.
1714
29bb7127
RS
17152004-11-02 Richard M. Stallman <rms@gnu.org>
1716
1717 * insdel.c (replace_range_2): New function.
1718
1719 * casefiddle.c (casify_region): Handle changes in byte-length
1720 using replace_range_2.
1721
1722 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1723
b6189c3b 1724 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1725 Subtract 1 from pos when checking previous newline for invisibility.
1726
1727 * window.c (window_scroll_pixel_based): Update preserve_y
1728 for header line if any.
1729 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1730 use a new second argument instead.
1731
1732 * eval.c (Fcall_interactive_p): New function.
1733 (interactive_p): Don't test INTERACTIVE here.
1734 (Finteractive_p): Doc fix.
1735
1736 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1737
b6189c3b 17382004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1739
1740 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1741 comparing font names.
a3fe4aaf 1742
2a00cdb4
JD
17432004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1744
f9d64bb3
JD
1745 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1746 Fx_file_dialog if only directories should be read.
1747
1748 * lisp.h: Fx_file_dialog takes 5 parameters.
1749
32e2fb04
SM
1750 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1751 Add parameter only_dir_p.
f9d64bb3
JD
1752 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1753 dialog, just text field part. Do not add DEFAULT_FILENAME
1754 to list of files if it isn't there.
1755 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1756
32e2fb04
SM
1757 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1758 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1759 a save dialog, add option kNavDontConfirmReplacement, change title
1760 to "Enter name", change text for save button to "Ok".
1761
32e2fb04
SM
1762 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1763 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1764
1765 * gtkutil.c (xg_get_file_with_chooser)
1766 (xg_get_file_with_selection): New functions, only defined ifdef
1767 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1768 respectively.
1769 (xg_get_file_name): Add parameter only_dir_p.
1770 Call xg_get_file_with_chooser or xg_get_file_with_selection
1771 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1772 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1773
1774 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1775
2a00cdb4
JD
1776 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1777
f6749d5d
KS
17782004-11-01 Kim F. Storm <storm@cua.dk>
1779
32e2fb04
SM
1780 * process.c (connect_wait_mask, num_pending_connects):
1781 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1782 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1783 (IF_NON_BLOCKING_CONNECT): New helper macro.
1784 (wait_reading_process_output): Only declare and use local vars
1785 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1786
1a99fe1a
JR
17872004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1788
1789 * w32term.c (x_scroll_run): Delete region objects after use.
1790
fcdb28b4
JD
17912004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1792
495ef86b
JD
1793 * xmenu.c: Add prototypes for forward function declarations.
1794 (popup_get_selection): Remove parameter do_timers, remove call to
1795 timer_check.
32e2fb04
SM
1796 (create_and_show_popup_menu, create_and_show_dialog):
1797 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1798
12e6566a
JD
1799 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1800 tool_bar_items and assign the result to f->tool_bar_items if
1801 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1802 tool_bar_items to assignment of result.
1803
fcdb28b4
JD
1804 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1805 pending_atmers is non-zero.
1806
1a1a0c4c
KS
18072004-10-31 Kim F. Storm <storm@cua.dk>
1808
1809 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1810
a36f1680
JW
18112004-10-28 Will <will@glozer.net>
1812
1813 * macterm.c: allow user to assign key modifiers to the Mac Option
1814 key via a 'mac-option-modifier' variable.
1815
32e2fb04 18162004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1817
1818 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1819 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1820 (x_handle_selection_request, x_handle_selection_clear)
1821 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1822
4f71c13f
RS
18232004-10-28 Richard M. Stallman <rms@gnu.org>
1824
1825 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1826
1827 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1828
068f3848
SM
18292004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1830
1831 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1832 comment-starter over a 1-char one.
1833
4660a9e3
RS
18342004-10-27 Richard M. Stallman <rms@gnu.org>
1835
1836 * xdisp.c (get_next_display_element): In mode lines,
1837 treat newline and tab like other control characters.
1838
1839 * editfns.c (Fmessage): Doc fix.
1840
1841 * indent.c (vmotion): When moving up, check the newline before.
1842 Make prevline an int, not a Lisp_Object.
1843
233f3db6
KS
18442004-10-27 Kim F. Storm <storm@cua.dk>
1845
1846 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1847 Only allocate info and discarded tables once.
1848
1849 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1850 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1851 (SAFE_FREE): Test it to determine if we need to unwind to free.
1852 Remove size arg. All users changed.
1853 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1854
1442465d
JD
18552004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1856
1857 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1858 (xg_destroy_widgets): Rename from remove_from_container.
1859 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1860 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1861 instead of remove_from_container.
1862 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1863 (free_frame_tool_bar): Add comment.
1864
1865 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1866 is not NULL before strcmp.
1867
c8636435
KS
18682004-10-26 Kim F. Storm <storm@cua.dk>
1869
1870 * callint.c (Fcall_interactively): Add 'U' code to get the
1871 up-event discarded by a previous 'k' or 'K' argument.
1872
5629f29b
DK
18732004-10-26 David Kastrup <dak@gnu.org>
1874
1875 * buffer.c (syms_of_buffer): Fix a few typos.
1876
4f2f546e
JD
18772004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1878
1879 * xsmfns.c: Put empty line between comment and function body.
1880 Use two spaces before comment end.
1881
fc1062f5
KH
18822004-10-25 Kenichi Handa <handa@m17n.org>
1883
1884 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1885 PATTERN is full XLFD.
1886
be13f5e5
KH
18872004-10-24 Kenichi Handa <handa@m17n.org>
1888
1889 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1890
1891 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1892 (regex_compile): Return REG_ERANGEX if appropriate.
1893
d0ee2ed3
KH
18942004-10-22 Kenichi Handa <handa@m17n.org>
1895
1896 * editfns.c (Ftranslate_region_internal): New function.
1897 (syms_of_editfns): Defsubr it.
1898
63ea8ea5
JD
18992004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1900
1901 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1902
c27ed90a
JD
19032004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1904
068f3848
SM
1905 * xterm.h (x_output): New member `xic_base_fontname'.
1906 (FRAME_XIC_BASE_FONTNAME): New macro.
1907 (xic_free_xfontset): Declare.
c27ed90a 1908
068f3848
SM
1909 * xfns.c (xic_create_xfontset): Share fontsets between frames
1910 based on base_fontname.
1911 (xic_free_xfontset): New function.
1912 (free_frame_xic): Use it.
1913 (xic_set_xfontset): Ditto.
c27ed90a 1914
068f3848 1915 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1916
1917
59508699
JR
19182004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1919
1920 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1921
dede2792
JD
19222004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1923
3aca2078
JD
1924 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1925 XSync.
1926
dede2792
JD
1927 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1928 New variables and constant.
1929 (main): Calculate heap_bss_diff. If we are dumping and the
1930 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1931 and exec ourself again.
1932 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1933 print a warning.
1934
1935 * lastfile.c: Make my_endbss and my_endbss_static available on all
1936 platforms.
1937
1938 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1939 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1940
1dc5ba01
LT
19412004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1942
1943 * data.c (Flocal_variable_if_set_p): Doc fix.
1944
950090be
JR
19452004-10-19 Jason Rumney <jasonr@gnu.org>
1946
1947 * w32.c (init_environment): Set emacs_dir correctly when running
1948 emacs from the build directory.
1949
8550b998
RS
19502004-10-19 Richard M. Stallman <rms@gnu.org>
1951
1952 * editfns.c (Fdelete_and_extract_region):
1953 If region is empty, return null string.
1954
08dedea6
JD
19552004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1956
1dc5ba01 1957 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1958 and canon_width.
068f3848 1959 (xg_frame_cleared): Remove.
08dedea6 1960
068f3848
SM
1961 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1962 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1963 (xg_create_scroll_bar): Put an event box widget between
1964 the scroll bar widget and the edit widget.
1965 (xg_show_scroll_bar): Show the parent widget (the event box).
1966 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1967 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1968 Move the parent (the event box) widget inside the fixed widget.
1969 Move window clear to xterm.c.
1970
068f3848 1971 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1972
08dedea6 1973 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1974 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1975 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1976 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1977
8550b998 19782004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1979
1980 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1981
84338890
JD
19822004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1983
1984 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1985 gdk_window_clear and move gdk_window_process_all_updates after
1986 clear so events are sent to the X server in correct order.
1987
6e1b0d8c
KH
19882004-10-18 Kenichi Handa <handa@m17n.org>
1989
1990 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1991 comparing font names.
8550b998 1992 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1993 (list_fontsets): Likewise.
1994
1995 * search.c (fast_string_match_ignore_case): New function.
1996
1997 * lisp.h (fast_string_match_ignore_case): Extern it.
1998
345e75a8
KS
19992004-10-17 Kim F. Storm <storm@cua.dk>
2000
2001 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2002 than bitmap if there is not left fringe.
2003 (get_overlay_arrow_glyph_row): Also used on windows system.
2004 (display_line): Display overlay string if no left fringe.
2005
be13cbb7
JR
20062004-10-16 Jason Rumney <jasonr@gnu.org>
2007
2008 * w32fns.c (w32_font_match): Encode font name being matched.
2009
c2e2ede7
RS
20102004-10-16 Richard M. Stallman <rms@gnu.org>
2011
2012 * window.c (Fspecial_display_p): Doc fix.
2013
3584d95d
SM
20142004-10-15 Stefan <monnier@iro.umontreal.ca>
2015
2016 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2017 Don't ignore menus, because where-is-internal already does it for us.
2018
699a0392
KS
20192004-10-15 Kim F. Storm <storm@cua.dk>
2020
b3c7a89b
KS
2021 * xdisp.c (redisplay_window): Only update fringes and vertical
2022 border on window frames.
699a0392 2023
4e382b0f
AS
20242004-10-14 Andreas Schwab <schwab@suse.de>
2025
2026 * m/ia64.h (DATA_SEG_BITS): Don't define.
2027
329a7be2
KS
20282004-10-14 Kim F. Storm <storm@cua.dk>
2029
2030 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 2031 in some X versions.
329a7be2 2032
982241b1
SM
20332004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2034
2035 * fns.c (map_char_table): Add missing gcpros.
2036
9238467d
SM
20372004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2038
2039 * keymap.c (get_keymap): An autoload form is not a keymap.
2040
2041 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2042
4440e3ca
KS
20432004-10-13 Kim F. Storm <storm@cua.dk>
2044
7cfdabde
KS
2045 * callproc.c (Fcall_process): Simplify handling of display arg.
2046 Resume `display_on_the_fly' once a coding system is determined.
2047
4440e3ca
KS
2048 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2049
1c8dec6a
KS
20502004-10-12 Kim F. Storm <storm@cua.dk>
2051
2052 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2053 caller, such as call-process, is not going to poll for input.
2054 (calc_line_height_property): Handle case where it->object is nil.
2055
2056 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2057
170b174c
KH
20582004-10-12 Kenichi Handa <handa@m17n.org>
2059
9238467d
SM
2060 * xdisp.c (get_next_display_element):
2061 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
2062 chars in octal in unibyte buffer.
2063
b583964c
KS
20642004-10-12 Kim F. Storm <storm@cua.dk>
2065
2066 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2067 are no ordinary bindings.
2068
29fabd8c
JD
20692004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2070
9238467d 2071 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 2072
c3f4c690
ST
20732004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2074
9238467d
SM
2075 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2076 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 2077 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
2078 terminal frame.
2079 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2080 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
2081 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2082 Make a cancel file-open dialog be like C-g.
9238467d
SM
2083 * mac.c (mktime): Use emacs_mktime.
2084 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2085 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 2086
9688f9eb
KS
20872004-10-10 Kim F. Storm <storm@cua.dk>
2088
2089 * keyboard.c (timer_resume_idle): New function to resume idle
2090 timer without resetting timers on the idle list.
2091 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2092 (timer_start_idle, timer_stop_idle): Declare static.
2093 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2094
2095 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2096
f7f3a65f
ST
20972004-10-08 Steven Tamm <steventamm@mac.com>
2098
9238467d 2099 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 2100 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 2101 NULL where 0 should be used.
f7f3a65f
ST
2102 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2103 objc/malloc.h
9238467d 2104 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 2105
3c7d999a
KS
21062004-10-07 Kim F. Storm <storm@cua.dk>
2107
2108 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2109 windows. Update vertical line after drawing window fringes, but
2110 only if actually drawing any bitmaps--or there is no fringe.
2111
2112 * xterm.c (x_update_window_end): Likewise.
2113 * macterm.c (x_update_window_end): Likewise.
2114 * w32term.c (x_update_window_end): Likewise.
2115
2116 * fringe.c (draw_window_fringes): Return value now indicates if
2117 any fringe bitmaps were redrawn (or there are no fringes).
2118
2119 * dispextern.h (draw_window_fringes): Update prototype.
2120
bf06c82f
ST
21212004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2122
2123 * macfns.c (mac_get_window_bounds): Add extern.
2124 (x_real_positions): Use mac_get_window_bounds.
2125
2126 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2127 xmenu.c (YAILOM).
3c7d999a 2128
bf06c82f
ST
2129 * macterm.c [!MAC_OSX]: Include Windows.h.
2130 (front_emacs_window): Rename from mac_front_window. All uses
2131 changed. Return the frontmost non-tooltip emacs window.
2132 (mac_get_window_bounds): New function.
2133 (x_calc_absolute_position): Use the difference of width and height
2134 between the inner and outer window.
2135 (x_set_offset): Specify window position by the coordinae of the
2136 outer window. Adjust the position if the title bar is completely
2137 outside the screen.
2138 (app_is_suspended, app_sleep_time): Remove unused variables.
2139 (do_app_resume, do_app_suspend): Remove their contents because
2140 window-activate/deactivate events will do the job.
2141 (do_zoom_window): Remove unused variables. Make compliant to the
2142 standard way of zooming. Set f->left_pos and f->top_pos.
2143 (XTread_socket): Don't use argument `expected'. Don't use
2144 FrontWindow to determine the clicked window. Exclude unprocessed
2145 mouseUp cases in the early stage. Add parentheses to fix operator
2146 precedence.
2147 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2148
4cbbf6b7 21492004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
2150
2151 * config.in: Regenerate.
2152
2153 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2154 HAVE_EXECSHIELD.
2155
b90ee8b5
JD
21562004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2157
2158 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2159 a row if Alt or Meta has been found for that row. Also stop scanning
2160 for Keysyms for that row.
2161
904db1a2
KS
21622004-10-04 Kim F. Storm <storm@cua.dk>
2163
0207b8ad
KS
2164 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2165 to list. Include overlay arrow bitmap in return value.
2166
25f7220c
KS
2167 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2168 bars with fractional column width. If scroll bar separates two
2169 windows, move it towards the window it belongs to. Only update
2170 the padding area below the scroll bar widget when necessary,
2171 i.e. when scroll bar widget is created, moved, or resized.
2172
562020fe
KS
2173 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2174 while tracking/dragging mouse.
2175 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2176
37e34af7
KS
2177 * window.c (coordinates_in_window): Relax check for cursor
2178 on vertial border between mode lines.
2179 (Fset_window_fringes): Do not allow negative widths.
2180 (Fset_window_scroll_bars): Likewise.
2181
904db1a2
KS
2182 * .gdbinit (pp): Shorthand for p ARG + pr.
2183 (ff): New command: flush frame updates (X only).
2184
38fe4f64
MA
21852004-10-03 Michael Albinus <michael.albinus@gmx.de>
2186
2187 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2188
9de36315
KH
21892004-09-30 Kenichi Handa <handa@m17n.org>
2190
07c381ad 2191 * process.c (send_process): Free composition data.
9de36315 2192
07c381ad 2193 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2194
2195 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2196 compositions to encode.
2197 (encode_coding_string): Likewise. Free composition data.
2198
b6189c3b 21992004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2200
2201 * coding.c (code_convert_region): Free composition data.
9de36315 2202
f2a54fbc
KS
22032004-09-29 Kim F. Storm <storm@cua.dk>
2204
dc5d6435
KS
2205 * fringe.c: Remove limit on number of bitmaps.
2206 (fringe_bitmaps, fringe_faces): Change to pointers.
2207 (max_fringe_bitmaps): New var.
2208 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2209 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2210
2211 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2212 (struct glyph_row): Reorder fringe_bitmap related fields.
2213 (struct it): Likewise.
2214
2215 * w32term.c (fringe_bmp): Change to pointer.
2216 (max_fringe_bmp): New var.
2217 (w32_define_fringe_bitmap): Expand fringe_bmp.
2218 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2219 (w32_destroy_fringe_bitmap): Likewise.
2220
22212004-09-29 Kim F. Storm <storm@cua.dk>
2222
2223 * fringe.c: Simplify last change.
f2a54fbc
KS
2224 (lookup_fringe_bitmap): New function.
2225 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2226 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2227 Keep standard bitmaps in Vfringe_bitmaps.
2228 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2229 (Fset_fringe_bitmap_face): Likewise.
2230
2231 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2232 (valid_fringe_bitmap_p): Remove prototype.
2233
2234 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2235
841a8bca
KS
22362004-09-29 Kim F. Storm <storm@cua.dk>
2237
1f2da365
KS
2238 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2239 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2240
841a8bca
KS
2241 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2242
2243 * fringe.c (Vfringe_bitmaps): New variable.
2244 (syms_of_fringe): DEFVAR_LISP it.
2245 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2246 Change arg to Lisp_Object and fail if not an integer.
2247 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2248 (destroy_fringe_bitmap): New functions.
9238467d
SM
2249 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2250 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2251 clear its fringe property.
2252 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2253 Fdestroy_fringe_bitmap.
2254 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2255 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2256 and set fringe property. Signal error if no free slots.
2257 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2258 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2259
2260 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2261 symbols with a fringe property.
2262
4d965590
KS
22632004-09-27 Kim F. Storm <storm@cua.dk>
2264
2265 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2266 Doc fix. Format may now be a symbol or alist, not a cons.
2267
2268 * fringe.c (update_window_fringes): Handle new formats of
2269 indicate-buffer-boundaries (symbol or alist). No longer
2270 allow a simple cons.
2271 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2272
e888c2b3
JD
22732004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2274
9238467d 2275 * config.in: Rebuild.
e888c2b3 2276
83f1cb94
JD
22772004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2278
2279 * config.in: Rebuild.
2280
dd3b1d60 2281 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2282
2c51754c
SM
22832004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2284
2285 * xterm.c (x_term_init): Work around a bug in some X servers.
2286
3df5f8aa
RS
22872004-09-18 Richard M. Stallman <rms@gnu.org>
2288
557ca2c1
RS
2289 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2290
3df5f8aa
RS
2291 * xdisp.c (try_window_reusing_current_matrix):
2292 Handle the case where we reach the old displayed text,
2293 out of sync with the old line boundary.
2294
9238467d 22952004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2296
2297 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2298 narrowed buffer.
2299
bfa02563
KS
23002004-09-14 Kim F. Storm <storm@cua.dk>
2301
a25fe164
KS
2302 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2303
bfa02563
KS
2304 * xfaces.c (Qface_no_inherit): New var.
2305 (syms_of_xfaces): Intern and staticpro it.
2306 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2307 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2308 Don't increment face_change_count when face has non-nil
2309 face-no-inherit property.
2310
126f9c02
SM
23112004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2312
892a8eb5
SM
2313 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2314 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2315
126f9c02 2316 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2317 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2318
c0ad3b38
KS
23192004-09-12 Kim F. Storm <storm@cua.dk>
2320
2321 * editfns.c (Fformat): Handle format strings with multiple text
2322 properties. Reverse text property list from the format string,
2323 so the positions are in increasing order.
2324
844fc085
JD
23252004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2326
2327 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2328 x_uncatch_errors so that possible protocol errors are delivered.
2329
b106731c
EZ
23302004-09-10 Eli Zaretskii <eliz@gnu.org>
2331
21065c92
EZ
2332 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2333 blockinput.h.
2334 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2335 charset.h, and coding.h
9238467d 2336 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2337 (term.o): Depend on window.h and keymap.h.
2338 (abbrev.o): Depend on syntax.h.
2339 (callint.o): Depend on keymap.h.
2340 (casefiddle.o): Depend on charset.h and keymap.h.
2341 (category.o): Depend on keymap.h.
2342 (coding.o): Depend on dispextern.h.
2343 (cmds.o): Depend on keyboard.h and keymap.h.
2344 (dispnew.o): Depend on indent.h and intervals.h.
2345 (doc.o): Depend on keymap.h.
2346 (editfns.o): Depend on frame.h.
2347 (emacs.o): Depend on dispextern.h.
2348 (fileio.o): Don't depend on ccl.h.
2349 (filelock.o): Depend on charset.h and coding.h.
2350 (frame.o): Depend on w32term.h and macterm.h.
2351 (insdel.o): Depend on region-cache.h.
2352 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2353 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2354 (search.o): Depend on $(INTERVALS_SRC).
2355 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2356 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2357 xterm.h, w32term.h, and macterm.h.
2358 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2359 w32term.h, and macterm.h.
2360 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2361 region-cache.h, xterm.h, w32term.h, and macterm.h.
2362 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2363 (data.o): Depend on frame.h.
2364 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2365 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2366 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2367 (intervals.o): Depend on keymap.h.
2368
9238467d
SM
2369 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2370 Add debugging print-out to termscript.
b106731c 2371
64b7122d
RS
23722004-09-09 Richard M. Stallman <rms@gnu.org>
2373
2374 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2375
5670531e
RS
23762004-09-08 Richard M. Stallman <rms@gnu.org>
2377
6cb4a892
RS
2378 * window.c (Fset_window_buffer): Doc fix.
2379
5670531e
RS
2380 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2381
7e388eb7
JL
23822004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2383
2384 * minibuf.c (history_delete_duplicates): New variable.
2385 (read_minibuf): Use it.
2386 (syms_of_minibuf): Create the corresponding lisp variable.
2387
370e3587
KS
23882004-09-08 Kim F. Storm <storm@cua.dk>
2389
2390 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2391 overlay just before point.
2392
f844ba4e
LT
23932004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2394
2395 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2396 * buffer.c (reset_buffer, init_buffer_once):
2397 Handle auto_save_file_format field.
f844ba4e
LT
2398 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2399 `buffer-auto-save-file-format'.
f844ba4e
LT
2400 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2401 (build_annotations): Adapt to replacement of
2402 `auto-save-file-format' with the new buffer-local variable
2403 `buffer-auto-save-file-format'.
2404 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2405
f0f90717
JR
24062004-09-07 Jason Rumney <jasonr@gnu.org>
2407
2408 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2409
9238467d
SM
2410 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2411 Handle Unicode menu titles.
f0f90717 2412
4e14f66c
KS
24132004-09-07 Kim F. Storm <storm@cua.dk>
2414
2415 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2416 property from text property or overlay strings at point.
2417
9238467d 24182004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2419
2420 * xmenu.c (update_submenu_strings): YAILOM.
2421 (set_frame_menubar): Make sure last_i is initialized.
2422
1f06d367
JR
24232004-09-03 Jason Rumney <jasonr@gnu.org>
2424
1806714a 2425 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2426 (digest_single_submenu): Set lname and lkey in widget_value
2427 instead of name and key.
2428 (update_submenu_strings): New function.
2429 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2430 call update_submenu_strings.
2431
2432 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2433 (digest_single_submenu, w32_menu_show): Encode menu strings as
2434 UTF-8 if Unicode API is available.
2435 (utf8to16): New function.
2436 (add_menu_item): Use it when calling Unicode API.
1806714a 2437
46540080
KS
24382004-09-03 Kim F. Storm <storm@cua.dk>
2439
2440 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2441 in overlay or text-property strings; set cursor on corresponding
2442 glyph rather than at end of the string.
2443
9277ba61 24442004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2445
9277ba61 2446 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2447 set a new one before obtaining the global coordinate.
2448 Use FRAME_MAC_WINDOW.
2449 (x_set_name, x_set_title): Encode title to UTF8.
2450 Use SetWindowTitleWithCFString.
9277ba61
ST
2451 (Fx_server_version): Get correct OS version.
2452
1806714a
SM
2453 * macmenu.c (add_menu_item): Remove unused variable `i'.
2454 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2455
2456 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2457 BLOCK_INPUT.
2458 (x_set_offset): Use FRAME_MAC_WINDOW.
2459
2460 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2461 nontext_cursor if it is on a scroll bar.
2462
2463 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2464 Carbon support.
1806714a
SM
2465 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2466 Use LIBS_CARBON.
9277ba61 2467
b10daec7
JD
24682004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2469
2470 * xfns.c (x_set_name_internal): New function. Check if we shall call
2471 xfree before ENCODE_UTF_8.
2472 (x_set_name, x_set_title): Call x_set_name_internal.
2473
f7e22385
JR
24742004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2475
2476 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2477 reload it.
2478
2bf436c3
JD
24792004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2480
1806714a 2481 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2482 (single_submenu): Set lname and lkey in widget_value
2483 instead of name and key.
2484 (update_submenu_strings): New function.
2485 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2486 call update_submenu_strings.
2487
2bf436c3
JD
2488 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2489 instead of name and key.
2490 (update_submenu_strings): New function.
2491 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2492 call update_submenu_strings.
2bf436c3
JD
2493
2494 * gtkutil.h (_widget_value): Added lname and lkey.
2495
11715f92
ST
24962004-08-30 Steven Tamm <steventamm@mac.com>
2497
2498 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2499 by using different names for inner loop variables.
2500
5500be54
JD
25012004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2502
059cd329
JD
2503 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2504 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2505
5500be54
JD
2506 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2507 tool bar items is 0.
2508
383418e5
ST
25092004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2510
2511 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2512 strings in menu items.
2513 (single_submenu): Use ENCODE_MENU_STRING
2514 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2515 button release isn't passed to event loop
2516 (add_menu_item): Use SetMenuItemWithCFString
2517
6eb3ee72
ST
25182004-08-26 Steven Tamm <steventamm@mac.com>
2519
2520 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2521 tool-bar/menu click
2522 * macfns.c (Fx_file_dialog): Implemented using NavServices
2523
10b43ac3
JD
25242004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2525
2728b5d0
JD
2526 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2527
10b43ac3
JD
2528 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2529 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2530 (x_top_window_to_frame): Return 0 if wdesc is None.
2531
2ee3b79e
RS
25322004-08-22 Richard M. Stallman <rms@gnu.org>
2533
2534 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2535 HAVE_TERMIOS]: If there's no char for this signal, drop through
2536 and use system calls.
2537
2538 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2539
9a1ba2ea
KS
25402004-08-20 Kim F. Storm <storm@cua.dk>
2541
2542 * process.c (wait_reading_process_output): Rename from
2543 wait_reading_process_input. All uses changed.
2544 (wait_reading_process_output_1): Rename from
2545 wait_reading_process_input_1. All uses changed.
2546
2547 * dispnew.c (Fsleep_for): Remove obsolete code.
2548
295f3b30
KH
25492004-08-20 Kenichi Handa <handa@m17n.org>
2550
2551 * syntax.c (skip_chars): Fix for unibyte case.
2552
27615979
SM
25532004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2554
2555 * syntax.c (char_quoted): Mixup byte/char pos.
2556 (back_comment): Fixup globals in all cases.
2557
00267f94
JD
25582004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2559
2560 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2561 passing it to gtk_window_set_title.
2562
2439909e
KS
25632004-08-19 Kim F. Storm <storm@cua.dk>
2564
6ba0f14c
KS
2565 * process.c (wait_reading_process_input): Clean up.
2566 Add wait_for_cell, wait_proc, and just_wait_proc args
2567 to avoid overloading `read_kbd' and `do_display' args.
2568 Change read_kbd arg to int. All callers changed.
2569
2439909e
KS
2570 * process.c (process_send_signal): Use CDISABLE.
2571
2572 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2573
101c421e
KS
25742004-08-18 Kim F. Storm <storm@cua.dk>
2575
2576 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2577 forward to wait_reading_process_input via DO_DISPLAY arg.
2578 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2579 object, only process output from that process; also inhibit
2580 running timers if DO_DISPLAY==-2.
2581
c438dc33
KS
25822004-08-17 Kim F. Storm <storm@cua.dk>
2583
2584 * process.c (process_send_signal): Fix last change--use
2585 _POSIX_VDISABLE instead of CVDISABLE when available.
2586
8afc13c6
RS
25872004-08-16 Richard M. Stallman <rms@gnu.org>
2588
2589 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2590 Set VQUIT and VINTR chars to the standard ones if they are unset.
2591 [AIX]: Don't do that here. And don't force VINTR to standard
2592 when SIGNALS_VIA_CHARACTERS.
2593
c438dc33 2594 * process.c (process_send_signal)
8afc13c6
RS
2595 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2596 Do nothing if the character is CVDISABLE.
2597
2598 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2599
c438dc33 2600 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2601 Force POSITION to be between BEGV and ZV.
2602
6dad1714
JPW
26032004-08-14 John Paul Wallington <jpw@gnu.org>
2604
2605 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2606
2607 * fileio.c (Fread_file_name): Doc fix.
2608
2609 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2610
2bd77330
LT
26112004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2612
2613 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2614
c90e7e43
LT
26152004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2616
2617 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2618 Qdisabled_command_hook.
c90e7e43 2619 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2620 Qdisabled_command_hook.
c90e7e43
LT
2621 (syms_of_keyboard): Ditto.
2622
81909a1a
LT
26232004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2624
2625 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2626 (syms_of_keymap) <key-translation-map>: Doc fixes.
2627
0cedd530
SM
26282004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2629
1725a7c9
SM
2630 * window.c (window_list_1): YAILOM.
2631
0cedd530
SM
2632 * fileio.c (make_temp_name): Handle multibyte prefixes.
2633
2515a131
LT
26342004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2635
2636 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2637 Doc fix.
2638
c8b20fb7
KH
26392004-08-03 Kenichi Handa <handa@m17n.org>
2640
2641 * coding.c (decode_coding_string): Adjust coding->consumed, and
2642 etc. with shrinked_bytes.
2643
fb8b092b
KS
26442004-08-03 Kim F. Storm <storm@cua.dk>
2645
2646 * indent.c (compute_motion): Fix check for full width window
2647 in non-window case. Do not count left truncation glyph on
2648 window systems.
2649
df133612
LT
26502004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2651
2652 * data.c (Finteractive_form): Doc fix.
2653
0f7a93c1
KS
26542004-08-02 Kim F. Storm <storm@cua.dk>
2655
2656 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2657 properly accounting for continuation glyph on non-window systems.
2658 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2659 actual window width/height if TOPOS is nil, properly accounting for
2660 continuation glyphs on non-window systems, and optional header lines.
2661 (vmotion): Let compute_motion calculate actual window width.
2662
2663 * window.c (window_scroll_line_based): Let compute_motion
2664 calculate actual window width.
2665
f491e1ed
KS
26662004-08-02 Kim F. Storm <storm@cua.dk>
2667
2668 * process.c (read_process_output): Use whole read buffer.
2669 Don't trigger adaptive read buffering on errors.
2670
83f64226
LT
26712004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2672
2673 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2674
2675 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2676
2677 * callint.c (Fcall_interactively): Doc fix.
2678
8afc13c6
RS
26792004-07-30 Richard M. Stallman <rms@gnu.org>
2680
2681 * abbrev.c (Fexpand_abbrev): Undo previous change.
2682
7c111482
KS
26832004-07-30 Kim F. Storm <storm@cua.dk>
2684
2685 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2686
ee945d08
LT
26872004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2688
2689 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2690
3f911c94
KS
26912004-07-27 Kim F. Storm <storm@cua.dk>
2692
2693 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2694 we have ensured that the glyph fits on the current line (or returned
2695 MOVE_LINE_CONTINUED otherwise).
2696
f29ff8c7
KS
26972004-07-26 Kim F. Storm <storm@cua.dk>
2698
2699 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2700 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2701 if target position is at end of display line but char is not a newline.
2702
81159bb9
RS
27032004-07-25 Richard M. Stallman <rms@gnu.org>
2704
ab431b61
RS
2705 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2706 instead of ON_VERTICAL_BORDER, when on scroll bar.
2707 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2708
2709 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2710
f29ff8c7 2711 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2712 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2713
2714 * alloc.c (check_cons_list): New function (contents commented out).
2715
fc820cc5
LT
27162004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2717
2718 * xfaces.c (Fcolor_supported_p): Doc fix.
2719
2720 * frame.c (Fselect_frame, Fset_frame_selected_window)
2721 (Fframe_visible_p, Fraise_frame): Doc fixes.
2722
289978b5
LT
27232004-07-24 Richard M. Stallman <rms@gnu.org>
2724
78819ebb 2725 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2726
2727 * fileio.c (Fwrite_region): Doc fix.
2728
2729 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2730
2731 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2732 only when a real abbrev is present.
2733
289978b5
LT
2734 * xfns.c (x_icon_verify): New function.
2735 (Fx_create_frame): Use it.
2736
63cc10ae
KS
27372004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2738
2739 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2740
36f826d4
KS
27412004-07-21 Kim F. Storm <storm@cua.dk>
2742
2743 * window.h (struct glyph_matrix): New members nrows_scale_factor
2744 and ncols_scale_factor.
2745
2746 * window.c (make_window): Initialize nrows_scale_factor and
2747 ncols_scale_factor members.
2748
2749 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2750 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2751 (required_matrix_height): Apply nrows_scale_factor.
2752 (required_matrix_width): Apply ncols_scale_factor.
2753
2754 * xdisp.c (display_line): Increment nrows_scale_factor and set
2755 fonts_changed_p if past last allocated row.
2756 (append_glyph, append_composite_glyph, produce_image_glyph)
2757 (append_stretch_glyph): Increment ncols_scale_factor and set
2758 fonts_changed_p if current area is full.
2759
5fc1c546
JD
27602004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2761
2762 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2763
cb7516e5
LT
27642004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2765
2766 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2767 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2768 (Fset_window_start, Fscroll_up, Fscroll_down)
2769 (Fother_window_for_scrolling, Fscroll_other_window)
2770 (Fsave_window_excursion, Fset_window_vscroll)
2771 (syms_of_window) <window-size-fixed>: Doc fixes.
2772
b6189c3b 27732004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2774
2775 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2776 ENCODE_SYSTEM for filenames.
2777
bfcf6608
ST
27782004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2779
2780 * mac.c (sys_select): Block input around call to
2781 ReceiveNextEvent to prevent breakage. Correctly handle
2782 blocking on event queue only by calling ReceiveNextEvent
2783 instead of select (since GUI events aren't on an fd).
2784 (sys_read): Remove function
2785 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2786
e082ac9d
ST
27872004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2788
2789 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2790 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2791
cb7516e5 2792 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2793 frame creation.
2794
2795 * keyboard.c: Undef SIGIO on Carbon
2796
2797 * atimer.c (alarm_signal_handler): Call alarm handlers after
2798 scheduling.
2799
2800 * eval.c (Feval): Remove quit_char test
2801
2802 * process.c (wait_reading_process_input): Remove clearing
2803 stdin for select call on process input.
2804
4b9da0fb
LT
28052004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2806
1204e81c
LT
2807 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2808 capitalization error in docstring.
4b9da0fb 2809
26503ad2
JB
28102004-07-17 Juanma Barranquero <lektu@terra.es>
2811
2812 * keyboard.c (not_single_kboard_state): Do nothing unless
2813 MULTI_KBOARD is defined.
2814
3751eb00
RS
28152004-07-17 Richard M. Stallman <rms@gnu.org>
2816
2817 * window.c (coordinates_in_window): Inside the window but outside
2818 its box to the L or R, return ON_VERTICAL_BORDER.
2819 (window_list_1): Rotate the list to start with WINDOW.
2820
2821 * print.c (print_preprocess): Test for print_depth at limit
2822 before entering in being_printed.
2823
2824 * keyboard.c (not_single_kboard_state): New function.
2825 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2826
2827 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2828 this kboard, and we delete its last frame, go to any_kboard_state.
2829
2830 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2831
b6189c3b 28322004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2833
2834 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2835 system before passing them to OS functions for display.
2836
0f6af254
DK
28372004-07-15 David Kastrup <dak@gnu.org>
2838
f9253326
KS
2839 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2840 Apparently fixes an abort condition.
0f6af254 2841
386c8f42
LT
28422004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2843
2844 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2845 instead of a cons.
2846
366511da
MB
28472004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2848
2849 * keyboard.c (echo_dash): Do nothing if there already is a dash
2850 at the end of the echo string.
2851
f85409d3
KS
28522004-07-12 Kim F. Storm <storm@cua.dk>
2853
2854 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2855 if GC_MARK_STACK.
2856
0ba2e87b
LT
28572004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2858
da38045d
LT
2859 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2860
0ba2e87b
LT
2861 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2862 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2863 (Freplace_buffer_in_windows, Fset_window_buffer)
2864 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2865 (syms_of_window): Expand docstring of `display-buffer-function'.
2866
5668fbb8
LT
28672004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2868
2869 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2870 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2871 that time values of the type (HIGH . LOW) are considered obsolete.
2872
a085bf9d
LT
28732004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2874
669de2fb
LT
2875 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2876 docstring.
2877
bac66325 2878 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2879
8e975df9
JPW
28802004-07-06 John Paul Wallington <jpw@gnu.org>
2881
2882 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2883
fa164e6a
JPW
2884 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2885
2bac9bb1
JD
28862004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2887
2888 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2889 instead of CGMainDisplayID (only in OSX 10.2 and later).
2890
316ef0dc
JPW
28912004-07-04 John Paul Wallington <jpw@gnu.org>
2892
2893 * fileio.c (read_file_name_completion_ignore_case): New variable.
2894 (syms_of_fileio): Declare and initialise it.
2895 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2896
2a1a35c6
EZ
28972004-07-03 Eli Zaretskii <eliz@gnu.org>
2898
2899 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2900 for event.x and event.y.
2901
33a72331
KH
29022004-07-01 Kenichi Handa <handa@m17n.org>
2903
2904 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2905 after getting a new string by pre-write-conversion.
2906
9238467d 29072004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2908
2909 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2910 (x_calc_absolute_position): Remove unused var `child'.
2911
2912 * xfaces.c (x_supports_face_attributes_p)
2913 (Fdisplay_supports_face_attributes_p): YAILOM.
2914 (tty_supports_face_attributes_p): Remove unused var `i'.
2915
2916 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2917 back_unibyte_ok.
2918
2919 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2920
2921 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2922
2923 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2924
f96ec754
AS
29252004-06-30 Andreas Schwab <schwab@suse.de>
2926
2927 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2928 (Finit_image_library): Pass LIBRARIES through to
2929 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2930 (lookup_image_type): Pass Qnil as second argument to
2931 Finit_image_library.
2932
78819ebb 2933 * lisp.h (Finit_image_library): Declare.
f96ec754 2934
59feca74 29352004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2936
31983645
AS
2937 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2938 (XTread_socket): Send mouse button events to the toolbox
2939 dispatcher even when the mouse is grabbed. Don't process window
2940 activate events for non-Emacs windows. Replace function calls to
2941 do_window_activate and do_window_deactivate with their contents.
2942 Reset mouse grabbing status when a window is deactivated.
59feca74 2943
c61278bb
ST
29442004-06-29 Steven Tamm <steventamm@mac.com>
2945
2946 * macterm.c (mac_get_emulated_btn)
2947 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2948 support to correctly mask out modifiers.
2949
c3762cbd
DK
29502004-06-29 David Kastrup <dak@gnu.org>
2951
2952 * search.c (Fset_match_data): Allow buffer before end of list
2953 which can happen if set-match-data is using a pre-consed list.
2954
c61278bb 29552004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2956
2957 * macterm.c (XTread_socket): Correctly set the frame position
2958 after the window is moved.
2959
74cdfe05
JD
29602004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2961
2962 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2963 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2964 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2965 so insensitive and activated icons look ok.
74cdfe05 2966
ef544dc8
JR
29672004-06-27 Jason Rumney <jasonr@gnu.org>
2968
2969 * w32fns.c (file_dialog_callback): Disable edit control if set
2970 to directories only on CDN_INITDONE message.
2971 (Fx_file_dialog): Default to directories only when prompt starts
2972 with "Dired".
2973
7b7990cc
KS
29742004-06-25 Kim F. Storm <storm@cua.dk>
2975
2976 * alloc.c (allocate_misc): Update total_free_markers.
2977 (free_misc): New function.
2978 (safe_alloca_unwind, free_marker): Use it.
2979
2980 * lisp.h (free_misc): Add prototype.
2981
2982 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2983
d8c379f8
RS
29842004-06-24 Richard M. Stallman <rms@gnu.org>
2985
2986 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2987 (syms_of_emacs): Lisp variables deleted.
2988
559cdd07
DK
29892004-06-23 David Kastrup <dak@gnu.org>
2990
94939b84
DK
2991 * search.c (Freplace_match): Adjust the match-data more thoroughly
2992 when replacing strings in the buffer.
2993 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2994 a buffer, add the buffer as last element to the match data.
2995 (Fset_match_data): If an additional element of the match-data is a
2996 buffer, restore it to last_thing_searched.
c8d09ad8 2997 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2998 (restore_match_data): Restore it again.
2999
dce417e7
LT
30002004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3001
3002 * keymap.c (Ftext_char_description): Doc fix.
3003 * doc.c (Fsnarf_documentation): Doc fix.
3004
ef54b2d0
KS
30052004-06-22 Kim F. Storm <storm@cua.dk>
3006
b5bc4d05
KS
3007 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3008
ef54b2d0
KS
3009 * lisp.h (struct Lisp_Save_Value): New member dogc.
3010 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3011 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3012 (SAFE_FREE_LISP): New macro.
3013
3014 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3015 (make_save_value): Init new dogc member.
3016 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3017
3018 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3019 SAFE_FREE_LISP macros.
3020
3d33d993
KS
30212004-06-22 Kim F. Storm <storm@cua.dk>
3022
3023 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3024 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3025 in that memory area are unknown to GC. Add comments.
3026
3027 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3028
5c917f98
KS
30292004-06-21 Kim F. Storm <storm@cua.dk>
3030
3031 * lisp.h (MAX_ALLOCA): Define here.
3032 (safe_alloca_unwind): Add prototype.
3033 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3034
3035 * alloc.c (safe_alloca_unwind): New function.
3036
3037 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3038
3039 * charset.c (Fstring): Use SAFE_ALLOCA.
3040
3041 * coding.c (MAX_ALLOCA): Remove define.
3042
3043 * data.c (MAX_ALLOCA): Remove define.
3044 (Faset): Use SAFE_ALLOCA.
3045
3046 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3047
3048 * fns.c (string_make_multibyte, string_to_multibyte)
3049 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3050 (MAX_ALLOCA): Remove define.
3051 (Fbase64_encode_region, Fbase64_encode_string)
3052 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3053 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3054 memory leak if encoding fails.
3055
3056 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3057
9a09408e
EZ
30582004-06-21 Eli Zaretskii <eliz@gnu.org>
3059
3060 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3061
376de739
RS
30622004-06-20 Richard M. Stallman <rms@gnu.org>
3063
3064 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3065
3066 * search.c (match_limit): Cleaner err msg when no match data available.
3067
3068 * window.c (syms_of_window): Doc fix.
3069
3070 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3071 for Vtransient_mark_mode.
3072
3073 * buffer.c (syms_of_buffer): Doc fix.
3074
acd81db9
DK
30752004-06-21 David Kastrup <dak@gnu.org>
3076
3077 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3078 and unbinding of `case-fold-search' according to
3079 `completion-ignore-case' around calls of string-match and
3080 predicates, respectively. Should give satisfactory performance
3081 in all relevant cases.
3082
f303762d
JD
30832004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3084
95911c74
JD
3085 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3086 clip_x/y_origin.
3087
a6cb6b78
JD
3088 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3089
f303762d
JD
3090 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3091
3092 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3093 on Mac OSX.
3094
bbdb2684
LT
30952004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3096
3097 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3098
5ea48b1c
KS
30992004-06-16 Kim F. Storm <storm@cua.dk>
3100
3101 * dispextern.h (Vimage_types): Remove extern.
3102
803aac3e
MB
31032004-06-16 Miles Bader <miles@gnu.org>
3104
3105 * image.c (lookup_image_type): Initialize image type if necessary.
3106
cdc97764
KS
31072004-06-15 Kim F. Storm <storm@cua.dk>
3108
c4a5739c
KS
3109 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3110 margin at top of window.
3111 (try_window_reusing_current_matrix): Calculate proper cursor position
3112 after scrolling up with non-zero scroll margin, as the old cursor
3113 position corresponds to value of PT before executing this command.
3114 (try_window_id): Consider scroll margin at bottom of window too;
3115 otherwise we fail to scroll when hl-line-mode is enabled.
3116
cdc97764
KS
3117 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3118 proper format and class is a lower-case word.
3119
5b166323
JD
31202004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3121
3122 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 3123 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
3124 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3125 xg_get_gdk_pixmap_and_mask.
cdc97764 3126
5b166323
JD
3127 * xterm.h (struct x_display_info): Typo in comment fixed.
3128
1ebd4f78
JB
31292004-06-14 Juanma Barranquero <lektu@terra.es>
3130
3131 * dispextern.h (Vimage_types): Make it conditional on
3132 HAVE_WINDOW_SYSTEM.
3133
3134 * image.c (Vimage_types): Move from xdisp.c.
3135 (Vimage_type_cache): New variable.
3136 (define_image_type): New argument indicating whether an image
3137 library was loaded; cache loaded status and return t on success,
3138 nil otherwise.
3139 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3140 (w32_delayed_load): New function to load an image library from a
3141 list of possible filenames.
3142 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3143 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 3144 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
3145 (Finit_image_library): New function, extracted from `init_image'.
3146 Try to initialize an image library on demand and cache whether we
3147 were successful or not.
3148 (syms_of_image): Initialize `Vimage_types' and
3149 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3150 Export `init-image-library'.
3151 (init_image): Remove initialization of all image types, except xbm
3152 and pbm.
3153
3154 * xdisp.c (Vimage_types): Delete (moved to image.c).
3155
904ee128
AS
31562004-06-14 Andreas Schwab <schwab@suse.de>
3157
3158 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3159 Avoid calling specbind when completion-regexp-list is empty.
3160
092de21d
RS
31612004-06-13 Richard M. Stallman <rms@gnu.org>
3162
3163 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3164 (re_wctype, re_iswctype, re_wctype_to_bit):
3165 Non-function definitions moved here from regex.c.
1ebd4f78 3166
092de21d
RS
3167 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3168 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3169 (re_wctype, re_iswctype, re_wctype_to_bit):
3170 Non-function definitions moved to regex.h.
3171
3172 * window.c (Fselect_window): Doc fix.
3173
3174 * syntax.c: Include regex.h.
3175 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3176 If requested, make a list of classes, then check the scanned
3177 chars for membership in them.
3178 (in_classes): New function.
3179 Doc fix.
3180
3181 * keyboard.c (cmd_error): Don't call any_kboard_state
3182 if inside a recursive edit level.
3183
31842004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3185
3186 * keyboard.c (command_loop): Call any_kboard_state before
3187 command_loop_2 when at top level.
3188
3ebc0939
AS
31892004-06-13 Andreas Schwab <schwab@suse.de>
3190
cea5d0d4
AS
3191 * print.c (print_object): Always use %ld for printing EMACS_INT.
3192
3193 * keyboard.c (cancel_hourglass_unwind): Return a value.
3194 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3195 (Fexecute_extended_command): Likewise.
3196
3197 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3198 avoid clashes.
3199 (SYNTAX): Likewise.
3200 (SYNTAX_WITH_FLAGS): Likewise.
3201 (SYNTAX_MATCH): Likewise.
3202
3203 * syntax.c (char_quoted): Avoid warning about undefined operation.
3204 (find_defun_start): Likewise.
3205 (scan_lists): Likewise.
3206 (INC_FROM): Likewise.
3207 (scan_sexps_forward): Likewise.
3208
be8c4ce4
AS
3209 * image.c: Include <ctype.h>.
3210
3ebc0939
AS
3211 * xfaces.c (face_attr_equal_p): Declare parameters.
3212
6fb41b5b
KH
32132004-06-13 Kenichi Handa <handa@m17n.org>
3214
3215 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3216
fc3095ce
EZ
32172004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3218
3219 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3220
66189a40
KH
32212004-06-12 Kenichi Handa <handa@m17n.org>
3222
3223 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3224 ccl_prog_stack_struct and update it.
3225 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3226 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3227 ccl->eof_ic on EOF.
3228 (ccl_debug_hook): New function.
3229 (struct ccl_prog_stack): New member eof_ic.
3230 (ccl_driver): Handle EOF in subrountine call correctly.
3231
32322004-06-11 Kenichi Handa <handa@m17n.org>
3233
3234 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3235
1da71023
KS
32362004-06-11 Kim F. Storm <storm@cua.dk>
3237
3238 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3239
e9efcef4
JB
32402004-06-11 Juanma Barranquero <lektu@terra.es>
3241
3242 * keyboard.c (Fposn_at_point): Doc fix.
3243
9b9ceb61
DK
32442004-06-11 David Kastrup <dak@gnu.org>
3245
3246 * search.c (match_limit): Don't flag an error if match-data
3247 exceeding the allocated search_regs.num_regs gets requested, just
3248 return Qnil.
3249
6e87ac8f
MB
32502004-06-08 Miles Bader <miles@gnu.org>
3251
3252 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3253
0b0dea7b
JB
32542004-06-07 Juanma Barranquero <lektu@terra.es>
3255
3256 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3257 (Fcurrent_time_string, Fcurrent_time_zone)
3258 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3259
a0a23346
MB
32602004-06-07 Miles Bader <miles@gnu.org>
3261
08384afd 3262 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3263 (push_named_merge_point): New function.
3264 (merge_named_face): New function.
3265 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3266 Use `merge_named_face'.
3267 (merge_face_inheritance): Function removed.
c8d09ad8 3268 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3269 Add new `err_msgs' and `named_merge_points' args. Return error
3270 status. Only print error messages if ERR_MSGS is true. Don't try to
3271 do :inherit attribute validation.
3272 (merge_face_heights): Handle `unspecified' in both directions.
3273 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3274 Call `merge_face_ref' instead of `merge_face_inheritance'.
3275 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3276 (compute_char_face, face_at_buffer_position)
3277 (face_at_string_position): Call `merge_face_ref' instead of
3278 `merge_face_vector_with_property'.
3279
12d5b185
KH
32802004-06-07 Kenichi Handa <handa@m17n.org>
3281
3282 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3283 the necessary places.
3284
2e2d7ee6
KS
32852004-06-07 Kim F. Storm <storm@cua.dk>
3286
3287 * process.c (Fdelete_process): Undo 2004-05-28 change.
3288 Instead, call status_notify also for network process.
3289 (status_message): Use process instead of status as arg.
3290 Give messages "deleted" or "connection broken by remote peer" for
3291 an exited network process.
3292 (status_notify): Change call to status_message.
3293 (read_process_output): Increase readmax to 4096. Do not increase
3294 buffer size for datagram channels (default is now large enough).
3295
fcf0d299
ST
32962004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3297
3298 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3299 problem due to newly defined variable.
3300
0722292b
MB
33012004-06-06 Miles Bader <miles@gnu.org>
3302
3303 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3304 immediately if non-interactive or not initialized.
3305
ddfb8369
RS
33062004-06-05 Richard M. Stallman <rms@gnu.org>
3307
3308 * minibuf.c (Fcompleting_read): Doc fix.
3309
57015754
AS
33102004-06-05 Andreas Schwab <schwab@suse.de>
3311
3312 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3313
23715ea6
JB
33142004-06-05 Juanma Barranquero <lektu@terra.es>
3315
3316 * keymap.c (Fdescribe_vector): Fix docstring.
3317 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3318
8e330b22
MB
33192004-06-05 Miles Bader <miles@gnu.org>
3320
3321 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3322 attributes have different values than the default face.
3323
9742a3a6
EZ
33242004-06-04 Eli Zaretskii <eliz@gnu.org>
3325
3326 * xfaces.c (x_supports_face_attributes_p): Make this function
3327 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3328 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3329 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3330
9717e36c
MB
33312004-06-04 Miles Bader <miles@gnu.org>
3332
3333 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3334 from Ftty_supports_face_attributes_p.
3335 (x_supports_face_attributes_p): New function.
3336 (Ftty_supports_face_attributes_p): Function deleted.
3337 (Fdisplay_supports_face_attributes_p): New function.
3338 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3339 (face_attr_equal_p): New function.
9717e36c
MB
3340 (lface_equal_p): Use it.
3341
52deb19f
JB
33422004-06-03 Juanma Barranquero <lektu@terra.es>
3343
3344 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3345 (Vw32_color_map): Fix typo in docstring.
3346 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3347 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3348 Make argument names match their use in docstring.
3349
86d373e6
JB
33502004-06-02 Juanma Barranquero <lektu@terra.es>
3351
3352 Work around bugs/problems with MinGW builds of graphics libraries
3353 called from MSVC builds of Emacs.
3354
3355 * image.c (lookup_image): Make pointer to img static.
3356 (png_read_from_memory): Disable "global" optimization.
3357
2fb0ce67
SM
33582004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3359
c8d09ad8
SM
3360 * eval.c (Fcondition_case): Fix usage. Simplify.
3361
2fb0ce67
SM
3362 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3363
50bf7673
ST
33642004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3365
3366 * macfns.c: Don't include ccl.h.
3367 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3368 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3369 TextUtils.h.
c8d09ad8 3370 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3371 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3372 display height/width.
3373 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3374 (unwind_create_tip_frame, compute_tip_xy): New functions.
3375 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3376 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3377 and last_show_tip_args.
2fb0ce67 3378
50bf7673
ST
3379 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3380 (Cursor, No_Cursor): New defines.
c8d09ad8 3381 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3382 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3383
3384 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3385
3386 * macterm.c: Don't include Gestalt.h.
3387 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3388 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3389 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3390 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3391 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3392 (construct_mouse_click, XTmouse_position)
3393 (x_scroll_bar_report_motion, x_calc_absolute_position)
3394 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3395 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3396 (note_mouse_movement): Clear the mouse face and reset the pointer
3397 shape when the pointer goes outside the frame without grabbing.
3398 (mac_front_window): New function.
3399 (mac_window_to_frame): New macro.
3400 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3401 (do_window_activate, do_window_deactivate, do_app_resume)
3402 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3403 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3404 (mac_check_for_quit_char): Use mac_front_window and/or
3405 mac_window_to_frame.
3406 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3407 scroll-bar click event.
3408 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3409 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3410 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3411 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3412 (do_window_update): Don't do anything if the updated window is the
3413 tooltip window.
3414 (do_mouse_moved): Handle mouse movement events here (previously in
3415 XTread_socket). Clear the mouse face if
3416 dpyinfo->mouse_face_hidden is set.
3417 (do_os_event, do_events): Remove (now in XTread_socket).
3418 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3419 Loop until all the events in the queue are processed.
3420 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3421 contents of do_os_event and do_events. Remove mouse movement
3422 handling (now in do_mouse_moved). Add the case where
3423 Vmouse_highlight has an integer value.
3424 (NewMacWindow): Remove.
3425 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3426 excess initializations.
3427 (make_mac_terminal_frame): Previous initializations in
3428 make_mac_frame are moved here.
c8d09ad8
SM
3429 (mac_initialize_display_info):
3430 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3431
3432 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3433 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3434
08fd1251
RS
34352004-05-29 Richard M. Stallman <rms@gnu.org>
3436
3437 * lisp.h (truncate_undo_list): Update decl.
3438
3439 * alloc.c (undo_outer_limit): New variable.
3440 (syms_of_alloc): Defvar it.
3441 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3442
3443 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3444
3445 * alloc.c (lisp_align_malloc): Check for base == 0
3446 regardless of HAVE_POSIX_MEMALIGN.
3447 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3448
227ef0ff
SM
34492004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3450
3451 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3452 (marker_blocks_pending_free): Remove.
3453 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3454 Mark the undo lists after claning them up.
3455 Don't free block in marker_blocks_pending_free.
3456 (mark_buffer): Don't mark undo_list.
3457 (gc_sweep): Sweep hash-tables and strings first.
3458 Do free marker blocks that are empty.
3459
034a6113
SM
34602004-05-28 Jim Blandy <jimb@redhat.com>
3461
3462 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3463 after 'case wordend'. For symbeg and symend, print to stderr,
3464 like the other cases.
3465
33594a8d
NF
34662004-05-28 Noah Friedman <friedman@splode.com>
3467
3468 * process.c (Fdelete_process): Do not call remove_process.
3469
ce50a847
SM
34702004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3471
3472 * alloc.c (struct backtrace): Remove.
3473 (Fgarbage_collect): Use the new mark_backtrace.
3474
3475 * eval.c (mark_backtrace): New function.
3476
3477 * minibuf.c (run_exit_minibuf_hook): New function.
3478 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3479 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3480
1e8dae36
KS
34812004-05-27 Kim F. Storm <storm@cua.dk>
3482
3483 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3484 over display properties, e.g. images, that replace buffer text.
3485
846faa3b
KS
34862004-05-25 Kim F. Storm <storm@cua.dk>
3487
3488 * alloc.c (marker_blocks_pending_free): New var.
3489 (gc_sweep): Store free marker blocks on that list.
3490 (Fgarbage_collect): Free them after undo-list cleanup.
3491
3492 * process.c (wait_reading_process_input): Check connect_wait_mask
3493 before actually accepting connection in case it has already been
3494 accepted due to recursion.
3495
b6189c3b 34962004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3497
ce50a847
SM
3498 * coding.c (Fset_safe_terminal_coding_system_internal):
3499 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3500
71d5a208
RS
35012004-05-22 Richard M. Stallman <rms@gnu.org>
3502
3503 * alloc.c (Fmake_string): Doc fix.
3504
3505 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3506 and the alist pairs too.
3507
3508 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3509
3510 * emacs.c (main): Update copyright year.
3511
3512 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3513
3514 * insdel.c (del_range_2, replace_range): Don't write an anchor
3515 if the gap is empty.
3516
3517 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3518 scroll-down-aggressively is small but positive, put point
3519 near the screen edge.
3520
f63fd14e
JB
35212004-05-22 Juanma Barranquero <lektu@terra.es>
3522
3523 * keymap.c (Fdefine_key): Doc fix.
3524
4d12067c
KS
35252004-05-22 Kim F. Storm <storm@cua.dk>
3526
3527 * alloc.c (struct backtrace): Add debug_on_exit member.
3528 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3529 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3530 the removed cons cells.
3531 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3532 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3533 any cons cells pointing to unallocated stings.
3534 Do not lisp_free any marker blocks, as there may still be pointers
3535 to them from buffer undo lists at this stage of GC.
3536
3537 * keyboard.c (struct backtrace): Add debug_on_exit member.
3538 (Fcommand_execute): Clear it.
3539
931285e2
LT
35402004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3541
3542 * intervals.c (lookup_char_property): Do not prematurely return nil.
3543
669fa600
SM
35442004-05-19 Jim Blandy <jimb@redhat.com>
3545
3546 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3547 beginning and end of symbols.
4d12067c 3548
669fa600
SM
3549 * regex.c (enum syntaxcode): Add Ssymbol.
3550 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3551 (re_opcode_t): New opcodes `symbeg' and `symend'.
3552 (print_partial_compiled_pattern): Print the new opcodes properly.
3553 (regex_compile): Parse the new operators.
ce50a847 3554 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3555 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3556 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3557 (re_match_2_internal): Match symbeg and symend.
3558
3559 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3560
0d8c2e5c
KS
35612004-05-19 Kim F. Storm <storm@cua.dk>
3562
3563 * .gdbinit (xsymbol): Fix last change.
3564
669fa600
SM
35652004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3566
3567 * .gdbinit (xprintstr): New fun.
3568 (xstring, xprintsym): Use it.
3569
3570 * w32proc.c (create_child): Use INTMASK.
3571
3572 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3573 unmarked elements of the undo list.
3574
9a6a4c40
DP
35752004-05-18 David Ponce <david@dponce.com>
3576
3577 * print.c (print): Reset print_depth before to call print_object.
3578
f3c4ec74
JR
35792004-05-18 Jason Rumney <jasonr@gnu.org>
3580
3581 * w32console.c: Prefix RIF functions with w32con_ to avoid
3582 namespace clash with functions in term.c and w32term.c.
3583
3584 * w32menu.c (add_menu_item, w32_menu_display_help)
3585 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3586
0d8c2e5c 3587 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3588
6be49c3a
EZ
35892004-05-18 Eli Zaretskii <eliz@gnu.org>
3590
4d0b9a0a
EZ
3591 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3592
6be49c3a
EZ
3593 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3594 with make_number.
3595 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3596 with XINT.
3597
0bc90bba
KS
35982004-05-18 Kim F. Storm <storm@cua.dk>
3599
89d19988
KS
3600 * blockinput.h (INPUT_BLOCKED_P): New macros.
3601
3602 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3603 (Ftop_level): Unblock input if blocked.
3604
0bc90bba
KS
3605 * buffer.h (GET_OVERLAYS_AT): New macro.
3606 * msdos.c (IT_note_mouse_highlight): Use it.
3607 * textprop.c (get_char_property_and_overlay): Use it.
3608 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3609 * xfaces.c (face_at_buffer_position): Use it.
3610
3611 * print.c (print_object): Increase buf size.
3612
653bd0f6
JR
36132004-05-17 Jason Rumney <jasonr@gnu.org>
3614
3615 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3616 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3617 Lisp_Object using i member.
3618 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3619 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3620 consistently.
3621
3622 * w32proc.c (create_child): Use make_number instead of masking pid.
3623
3624 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3625 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3626 Use EQ to compare Lisp_Objects.
3627 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3628
3629 * w32term.c (w32_num_mouse_buttons): Rename from
3630 Vw32_num_mouse_buttons and make it an int.
3631
3632 * w32.c (init_environment): Use it.
3633
3634 * w32fns.c (w32_wnd_proc): Likewise.
3635
3636 * w32proc.c (w32_pipe_read_delay): Rename from
3637 Vw32_pipe_read_delay and make it an int.
3638
3639 * w32.c (_sys_read_ahead): Use it.
3640
3641 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3642
3643 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3644
3645 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3646 (key_event): Don't mix Lisp_Object and int.
3647
3648 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3649
3650 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3651 modifiers in language change event.
3652
54b53ba7
KS
36532004-05-17 Kim F. Storm <storm@cua.dk>
3654
3655 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3656 Such objects may be freed markers which still exist on an undo list.
3657
6e86a75d
JB
36582004-05-16 Juanma Barranquero <lektu@terra.es>
3659
3660 * data.c (Fset_default): Make argument names match their use in
3661 docstring.
3662
fc80da24
AS
36632004-05-15 Andreas Schwab <schwab@suse.de>
3664
3665 * emacs.c (gdb_array_mark_flag): Define.
3666 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3667
c1380aa6
EZ
36682004-05-15 Eli Zaretskii <eliz@gnu.org>
3669
3670 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3671 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3672 defined for the MS-DOS build.
3673
89458937
SM
36742004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3675
3676 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3677
08020f9a
KH
36782004-05-14 Kenichi Handa <handa@m17n.org>
3679
3680 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3681
a433994a
ST
36822004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3683
3684 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3685 section to frame.c section.
3686 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3687 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3688
a433994a 3689 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3690
a433994a 3691 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3692
a433994a
ST
3693 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3694 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3695 (XTread_socket): Fix int/Lisp_Object mixup.
3696 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3697
a433994a
ST
3698 * macterm.h (struct frame, struct face, struct image)
3699 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3700 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3701 Add prototypes.
a433994a 3702
b51a51b9
KS
37032004-05-14 Kim F. Storm <storm@cua.dk>
3704
3705 * process.c (wait_reading_process_input): Make reentrant.
3706 Make Available and Connecting non-static. Save and restore value
3707 of waiting_for_user_input_p.
3708
2bde1dd8
KS
37092004-05-13 Kim F. Storm <storm@cua.dk>
3710
3711 * keyboard.c (mark_kboards): Don't mark x and y members
3712 that are overloaded in selection request events.
3713
a267ab4d
SM
37142004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3715
3716 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3717
eb15ce9e
GM
37182004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3719
3720 * window.c (Fdisplay_buffer, Fsplit_window)
3721 (split-height-threshold): Doc fix.
3722
7fc92635
JB
37232004-05-13 Juanma Barranquero <lektu@terra.es>
3724
3725 * xfaces.c (Ftty_supports_face_attributes_p)
3726 (Finternal_copy_lisp_face): Fix typo in docstring.
3727 (Finternal_get_lisp_face_attribute): Fix docstring.
3728
1ec2a572
JD
37292004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3730
3731 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3732
ae9292e0
ST
37332004-05-11 Steven Tamm <steventamm@mac.com>
3734
3735 * macfns.c (Fx_create_frame): Default to using tool-bar by
3736 setting tool-bar-lines to 1 in default-frame-alist.
3737
37382004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3739
3740 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3741 (xpm_get_color_table_v, xpm_make_color_table_h)
3742 (xpm_put_color_table_h, xpm_get_color_table_h)
3743 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3744 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3745 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3746
fe97e8df
ST
37472004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3748
a267ab4d 3749 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3750 instead of FRAME_X_P
3751
b47e779e
KS
37522004-05-11 Kim F. Storm <storm@cua.dk>
3753
3754 * process.c (read_process_output): Grow decoding_buf when needed;
3755 this could cause a crash in allocate_string and compact_small_strings.
3756
cdc9b845
EZ
37572004-04-29 Jim Blandy <jimb@redhat.com>
3758
3759 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3760 against proper opcode.
3761
aa7094ba
JB
37622004-05-10 Juanma Barranquero <lektu@terra.es>
3763
3764 * process.c (Fstart_process): Fix docstring.
3765
3766 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3767 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3768 (Fsplit_char, Fchar_charset): Make argument names match their use
3769 in docstring.
3770
e109331a
RS
37712004-05-10 Richard M. Stallman <rms@gnu.org>
3772
3773 * print.c (print_preprocess): Use being_printed, loop_count and
3774 halftail to detect overdeep nesting and cyclic cdr chains.
3775
9a28b921
AS
37762004-05-10 Andreas Schwab <schwab@suse.de>
3777
78819ebb 3778 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3779
3780 * fileio.c (Frename_file): Remove extra argument in call to
3781 Fmake_symbolic_link.
3782
e2c02c1a
KS
37832004-05-10 Kim F. Storm <storm@cua.dk>
3784
3785 * xdisp.c (calc_line_height_property): Use string position when
3786 object is a string.
3787
cfe9d13e
KH
37882004-05-10 Kenichi Handa <handa@m17n.org>
3789
a57e8159
KH
3790 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3791 inhibit-modification-hooks to t temporarily before calling
3792 Ferase_buffer.
3793
3794 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3795 inhibit-modification-hooks to t temporarily before calling
3796 Ferase_buffer.
3797
3798 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3799 inhibit-modification-hooks to t temporarily before calling
3800 Ferase_buffer.
3801
cfe9d13e
KH
3802 * fns.c (count_combining): Delete it.
3803 (concat): Don't check combining bytes.
3804
ceb96489
JR
38052004-05-09 Jason Rumney <jasonr@gnu.org>
3806
3807 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3808 (globals_of_w32fns): Set it.
3809
b6189c3b 38102004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3811
3812 * data.c (Fquo): Simplify.
3813
28712a21
JB
38142004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3815
3816 * data.c (Fquo): If any argument is float, do the computation in
3817 floating point.
3818
0f0af7a8
JB
38192004-05-08 Juanma Barranquero <lektu@terra.es>
3820
88214ef6
JB
3821 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3822 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3823 Fix spelling of Emacs on docstring.
3824 (Fset_process_coding_system, Fprocess_coding_system)
3825 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3826 Make argument names match their use in docstring.
3827 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3828 Fix docstring.
3829
0f0af7a8
JB
3830 * editfns.c (Finsert_buffer_substring): Make argument names match their
3831 use in docstring.
3832
3833 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3834
2a316a84
ST
38352004-05-07 Steven Tamm <steventamm@mac.com>
3836
3837 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3838 around call to ReceiveEvent to avoid certain crashes.
3839
38402004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3841
2a316a84
ST
3842 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3843 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3844 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3845 Save/restore the current graphics port and device handle when
3846 drawing into an offscreen graphics world.
3847
3848 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3849 (gif_load): Likewise.
3850
ab80314b
JB
38512004-05-07 Juanma Barranquero <lektu@terra.es>
3852
3853 * window.c (Fset_window_buffer): Fix docstring.
3854
70646bb5
TTN
38552004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3856
3857 * emacs.c (main) [VMS]: Fix var ref.
3858
b6189c3b 38592004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3860
3861 * data.c (Fsetq_default): Fix docstring.
3862
279d3293
JR
38632004-05-06 Jason Rumney <jasonr@gnu.org>
3864
3865 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3866 to avoid name clash.
3867
f72b5416
JD
38682004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3869
3870 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3871 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3872 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3873
6ab66799
KS
38742004-05-04 Kim F. Storm <storm@cua.dk>
3875
3876 * xdisp.c (Qtotal): New var.
3877 (syms_of_xdisp): Intern and staticpro it.
3878 (calc_line_height_property): New arg total. Set it if
3879 line-spacing property has format (total . VALUE).
3880 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3881 Handle total line-spacing property.
3882
ab2d724b
JD
38832004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3884
3885 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3886 "under" scroll bar when size/position changes.
3887
238add5e
JR
38882004-05-03 Jason Rumney <jasonr@gnu.org>
3889
3890 * makefile.nt: Remove.
3891
1644f4e4
EZ
38922004-05-02 Eli Zaretskii <eliz@gnu.org>
3893
a267ab4d
SM
3894 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3895 Avoid compiler warnings.
05fdbeb8 3896
1644f4e4
EZ
3897 * Makefile.in (region-cache.o): Depend on config.h.
3898
b6189c3b 38992004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3900
3901 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3902 with continuation lines, too.
3903
2b98b088
TTN
39042004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3905
3906 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3907
d9bf7950
SM
39082004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 * xdisp.c (calc_line_height_property): YAILOM (yet another
3911 int/Lisp_Object mixup).
3912
affa509c
EZ
39132004-05-01 Eli Zaretskii <eliz@gnu.org>
3914
3915 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3916 undo bad effect of pack(4) in some versions of system headers.
3917
07c07cfe
JR
39182004-05-01 Jason Rumney <jasonr@gnu.org>
3919
3920 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3921
e71caa4e
KS
39222004-04-30 Kim F. Storm <storm@cua.dk>
3923
3924 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3925 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3926
3927 * dispextern.h (struct it): Remove member use_default_face.
3928 Add members override_ascent, override_descent, override_boff.
3929
3930 * xdisp.c (init_iterator): Handle line-spacing float value.
3931 Initialize override_ascent member.
3932 (append_space_for_newline): Reset override_ascent.
3933 Remove use_default_face.
3934 (calc_line_height_property): New function to calculate value of
3935 line-height and line-spacing properties. Look at overlays, too.
3936 Set override_ascent, override_descent, override_boff members when
3937 using another face than the current face. Float values are now
3938 relative to the frame default font, by default; accept a cons
3939 of ratio and face name to specify value relative to a specific face.
3940 (x_produce_glyphs): Use calc_line_height_property.
3941 Use override_ascent etc. when set to handle different face heights.
3942 A negative line-spacing property value is interpreted as a total
3943 line height, rather than inter-line spacing.
3944 (note_mouse_highlight): Allocate room for 40 overlays initially.
3945
0fddae66
SM
39462004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3947
3948 * data.c (Fsubr_name): New fun.
3949 (syms_of_data): Defsubr it.
3950
712d23dc
KS
39512004-04-29 Kim F. Storm <storm@cua.dk>
3952
3953 * xdisp.c (null_glyph_slice): New var.
3954 (append_glyph, append_composite_glyph, append_stretch_glyph):
3955 Use it to initialize glyph slice.
3956
033ad8c6
SM
39572004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3958
3959 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3960 (on_hot_spot_p): Make sure we always return a value.
3961 (Flookup_image_map): Remove unused var ix and iy.
3962 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3963
93397360
EZ
39642004-04-27 Eli Zaretskii <eliz@gnu.org>
3965
3966 * msdos.c (init_environment): If one of the TMP... environment
3967 variables is set to a drive letter without a trailing slash,
3968 append a slash.
3969
0c54865e
EZ
39702004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3971
3972 * editfns.c (lisp_time_argument): Provide externally.
3973
3974 * fileio.c (Fset_file_times): New function.
3975 (syms_of_fileio): Intern and staticpro it.
3976
d3b111bd
KS
39772004-04-27 Kim F. Storm <storm@cua.dk>
3978
07dc1231
KS
3979 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3980 header line strings.
3981
360fe9d2
KS
3982 * dispextern.h (struct it): New member use_default_face.
3983
d3b111bd
KS
3984 * xdisp.c (Qline_height): New variable.
3985 (syms_of_xdisp): Intern and staticpro it.
3986 (append_space_for_newline): Partially undo 2004-04-25 change;
3987 add default_face_p arg, and restore callers.
3988 Clear it->use_default_face after use.
3989 (x_produce_glyphs): Set default font for ascii char if
3990 it->use_default_font is set. Change line-spacing property to set
3991 just extra line spacing. Handle new line-height property.
3992
0448588b
AS
39932004-04-26 Andreas Schwab <schwab@suse.de>
3994
3995 * print.c (print_object): Print non-ascii characters in bool
3996 vector representation as octal escapes.
3997
3998 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3999 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4000 bool vectors.
4001 * lread.c (read1): Likewise.
4002 * alloc.c (Fmake_bool_vector): Likewise.
4003 * data.c (Faref, Faset): Likewise.
4004 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4005 (mapcar1): Likewise.
d3b111bd 4006
536d6baa
ST
40072004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4008
4009 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4010
ae11577a
MB
40112004-04-26 Miles Bader <miles@gnu.org>
4012
4013 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4014
e198ba87
JB
40152004-04-26 Juanma Barranquero <lektu@terra.es>
4016
4017 * buffer.c (Fpop_to_buffer): Fix docstring.
4018
f3d5f92d 40192004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 4020
f3d5f92d
ST
4021 * lread.c (init_lread): Don't display missing lisp directory
4022 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 4023 may be built without correct installation path.
f3d5f92d 4024
03e35edc
KS
40252004-04-25 Kim F. Storm <storm@cua.dk>
4026
9ff3aa31
KS
4027 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4028
4029 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4030
03e35edc
KS
4031 * xdisp.c (append_space_for_newline): Rename from append_space.
4032 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4033 (x_produce_glyphs): Handle line-spacing property on newline char.
4034 If value is t, adjust ascent and descent to fit current row height.
4035 If value is an integer or float, set extra_line_spacing to integer
4036 value, or to float value x current line height.
4037
f24814e0
KH
40382004-04-23 Kenichi Handa <handa@m17n.org>
4039
4040 * fontset.c (Finternal_char_font): If POSITION is nil, return
4041 font for displaying CH with the default face.
4042
d814862a
JB
40432004-04-23 Juanma Barranquero <lektu@terra.es>
4044
4045 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4046
063a45c5
SM
40472004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4048
4049 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4050 Don't make assumptions about the relative place of i and val.
4051 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4052
ae7ab2d3
KS
40532004-04-21 Kim F. Storm <storm@cua.dk>
4054
4055 * dispextern.h (struct glyph_slice): New struct.
4056 (struct glyph): New member slice.
4057 (GLYPH_SLICE_EQUAL_P): New macro.
4058 (GLYPH_EQUAL_P): Use it.
4059 (struct glyph_string): New member slice.
4060 (struct it_slice): New struct.
4061 (struct it): New member slice, add member to stack too.
4062 New member constrain_row_ascent_descent_p.
4063 (image_ascent): Add prototype.
4064
4065 * dispnew.c (buffer_posn_from_coords): Return full image width
4066 and height even for image slices (posn is relative to full image).
4067 (marginal_area_string): Adjust x0,y0 for image slice.
4068
4069 * image.c (image_ascent): Add slice arg; calculate ascent for
4070 image slice (or full image).
4071
4072 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4073 (syms_of_keyboard): Defsubr them.
4074
4075 * lisp.h (pos_visible_p): Fix prototype.
4076
c62aec78 4077 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
4078 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4079 (x_draw_image_foreground, x_draw_image_relief)
4080 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4081 Draw sliced images.
4082
4083 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4084 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4085 (x_draw_image_foreground, x_draw_image_relief)
4086 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4087 Draw sliced images.
4088
4089 * w32term.h (image_ascent): Remove prototype.
4090
4091 * window.c (Fpos_visible_in_window_p): Return pixel position if
4092 PARTIALLY arg is non-nil. Simplify. Doc fix.
4093 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4094 to return/set vscroll in pixels.
4095
4096 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4097
4098 * xdisp.c (Qslice): New variable.
4099 (syms_of_xdisp): Intern and staticpro it.
4100 (pos_visible_p): Return pixel position in new x and y args.
4101 (init_iterator): Reset it->slice info.
4102 (handle_display_prop): Parse (slice ...) property.
4103 (push_it, pop_it): Save/restore slice info.
4104 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4105 force repositioning of tall row if window is vscrolled, as that
4106 would reset vscroll.
4107 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4108 increasing row height if row is non-empty.
4109 (fill_image_glyph_string): Copy slice info.
4110 (take_vertical_position_into_account): Simplify.
4111 (produce_image_glyph): Handle iterator slice info, setup glyph
4112 slice info. Do not force minimum line height.
4113 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4114 do not increase height (ascent/descent) of non-empty row when
4115 adding normal character glyph; instead reduce glyph ascent/descent
4116 appropriately; if row is higher than current glyph, adjust glyph
4117 descent/ascent to reposition glyph within the existing row.
4118 Likewise, when char is newline, only set ascent/descent if row is
4119 currently empty.
4120 (note_mouse_highlight): Handle hotspots with sliced image.
4121
4122 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4123 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4124 (x_draw_image_foreground, x_draw_image_relief)
4125 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4126 Draw sliced images.
4127
4128 * xterm.h (image_ascent): Remove prototype.
4129
d58f8753
SM
41302004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4131
4132 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4133
4ce2719d
JPW
41342004-04-20 John Paul Wallington <jpw@gnu.org>
4135
4136 * fns.c (Fassoc, Feql): Fix indentation.
4137
d58f8753 4138 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 4139
95f8c3b9
JPW
41402004-04-19 John Paul Wallington <jpw@gnu.org>
4141
4142 * fns.c (Feql): New function.
d58f8753 4143 (syms_of_fns): Defsubr it.
95f8c3b9 4144
b7e85537
JR
41452004-04-18 Jason Rumney <jasonr@gnu.org>
4146
4147 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4148 after closing the clipboard.
4149
5a72efd4
LT
41502004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4151
4152 * buffer.c (Fbuffer_base_buffer): Doc fix.
4153
20dc8583
KS
41542004-04-17 Kim F. Storm <storm@cua.dk>
4155
60962ec4
KS
4156 * keymap.c (Fkey_description): Add optional PREFIX arg.
4157 Combine prefix with KEYS to make up the full key sequence to describe.
4158 Correlate meta_prefix_char and following (simple) key to describe
4159 as meta modifier. All callers changed.
4160 (describe_map): Rename arg `keys' to `prefix'. Remove local
4161 `elt_prefix' var. Use Fkey_description with prefix instead of
4162 elt_prefix combined with Fsingle_key_description.
4163 (describe_vector): Declare static. Replace arg `elt_prefix' with
4164 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4165 if !KEYMAP_P. Use Fkey_description with prefix instead of
4166 Fsingle_key_description.
4167
4168 * keymap.h (Fkey_description): Fix prototype.
4169 (describe_vector): Remove prototype.
4170
409368b9
KS
4171 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4172
20dc8583
KS
4173 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4174 (png_load): Fix calculation of transparent background color on X
4175 and W32 platforms.
4176
75c5501b
JB
41772004-04-16 Juanma Barranquero <lektu@terra.es>
4178
4179 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4180 not too large before computing how much to scroll.
4181
da879ae8
SM
41822004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4183
4184 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4185
d01ca4a8
LT
41862004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4187
4188 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4189 Add hyperlink to Elisp manual to the docstring.
4190
572943b3
SM
41912004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4192
4193 * callint.c (fix_command): Use XDCR.
4194
5e30a0fb
NR
41952004-04-14 Nick Roberts <nick@nick.uklinux.net>
4196
4197 * window.c (Fget_lru_window): Doc fix.
4198
a27ddfaf
KS
41992004-04-14 Kim F. Storm <storm@cua.dk>
4200
4201 * editfns.c (Fformat): Fix allocation size of precision array.
4202
4203 * dispnew.c (update_window): Only set changed_p if
4204 scrolling_window actually did scroll.
4205 (scrolling_window): Only return 1 if we actually did scroll.
4206
4207 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4208 height to glyph height when cursor row is not fully visible.
4209 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4210 failure in case row is higher than window. Callers changed.
4211 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4212 Try to scroll partially visible, higher-than-window cursor row.
4213 (redisplay_window): Always try to scroll partially visible,
4214 higher-than-window cursor row - both initially and again with
4215 centering_position = 0.
4216 Clear desired matrix before retrying with centering_position = 0.
4217
da879ae8
SM
42182004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4219
4220 * syntax.c (scan_lists): Simplify backward string scan.
4221 Fix off-by-one boundary check for string and comment fences.
4222
5fc16e8e
SM
42232004-04-13 Joe Buehler <jbuehler@hekimian.com>
4224
4225 * sheap.c, unexcw.c: New files.
4226
c9aac8e6
LT
42272004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4228
4229 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4230 base buffer has been killed. Correct the error message if the
4231 base buffer does not exist.
4232
1e88a355
SM
42332004-04-12 Joe Buehler <jbuehler@hekimian.com>
4234
4235 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4236 Cygwin itself. Add support for Xaw3d scrollbars.
4237
4238 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4239
4240 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4241
4242 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4243 before Cygwin unexec.
4244
4245 * Makefile.in: Link changes for Cygwin unexec() support.
4246
8dbff9a0
AS
42472004-04-12 Andreas Schwab <schwab@suse.de>
4248
4249 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4250
54dffe35
LT
42512004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4252
4253 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4254 IGNORE argument equals NAME. Doc fix.
4255
99a72bdf
MY
42562004-04-11 Masatake YAMATO <jet@gyve.org>
4257
1e88a355 4258 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4259 empty if they are backwards.
4260
40899d7b
SM
42612004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4262
4263 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4264
f8f853de
SM
42652004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4266
4267 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4268
c953fe1b
KS
42692004-04-06 Kim F. Storm <storm@cua.dk>
4270
661e85c1
KS
4271 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4272 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4273
4274 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4275 clearing highlight.
4276
4277 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4278
4279 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4280 clearing highlight.
4281
c953fe1b
KS
4282 * indent.c (vmotion): Do not reserve one column for continuation
4283 marks on window frames.
4284
c1994268
EZ
42852004-04-04 Eli Zaretskii <eliz@gnu.org>
4286
4287 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4288 from GCC.
4289
9f691b0d
SM
42902004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4291
4292 * .gdbinit-union: Remove.
4293
4294 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4295 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4296 ($nonvalbits): Remove.
4297 ($valmask): Set it by calling xreload to avoid redundancy.
4298
4299 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4300 (gdb_emacs_intbits): Remove.
4301
7a8560d7
JD
43022004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4303
9f691b0d 4304 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4305
3c8111fc
KH
43062004-03-30 Kenichi Handa <handa@m17n.org>
4307
4308 * editfns.c (Fformat): Fix initialization of the array info.
4309
48a0bce4
KS
43102004-03-30 Kim F. Storm <storm@cua.dk>
4311
4312 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4313 (syms_of_xterm): DEFVAR_BOOL it.
4314 (ignore_next_mouse_click_timeout): New var.
4315 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4316 Use it to filter mouse clicks following focus event.
4317
1cd0066c
KS
43182004-03-29 David Ponce <david@dponce.com>
4319
4320 * callint.c (Fcall_interactively): Fix last change.
4321
adb3b353
SM
43222004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * eval.c (Fcommandp): Simplify.
4325
4326 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4327 Extend to handle all kinds of functions.
4328
4329 * lisp.h (Finteractive_form): Declare.
4330
4331 * callint.c (Fcall_interactively): Use it.
4332
6fc4c9c9
KS
43332004-03-26 Kim F. Storm <storm@cua.dk>
4334
4335 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4336 to catch errors in calc_pixel_width_or_height during redisplay.
4337
abdb9b83
MY
43382004-03-26 Masatake YAMATO <jet@gyve.org>
4339
b17856dd 4340 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4341
b17856dd 4342 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4343
b17856dd 4344 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4345
b17856dd 4346 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4347
e8a84b6c
JD
43482004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4349
b17856dd 4350 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4351
36a3fd05
RS
43522004-03-19 Richard M. Stallman <rms@gnu.org>
4353
4354 * s/sol2-6.h: Delete previous change.
4355
ab24c127
KS
43562004-03-19 Kim F. Storm <storm@cua.dk>
4357
4358 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4359 to_charpos corresponds to newline in right fringe. Use local
4360 BUFFER_POS_REACHED_P macro.
4361
992126de
JD
43622004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4363
4364 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4365 to compile on non-window system.
4366
45dbfc84
KS
43672004-03-19 Kim F. Storm <storm@cua.dk>
4368
4369 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4370
4371 * image.c (Qcenter): Move to xdisp.c.
4372
4373 * xdisp.c (Qcenter): Declare here.
adb3b353 4374 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4375 (handle_single_display_prop): Allow space display property on all
4376 platforms.
4377 (display_mode_line): Set mode_line_p before displaying line.
4378 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4379 handling. Remove complex cases for fringes and scroll-bars.
4380 Add left, right, and center alignment positions. Add text (area)
4381 width/height. Return width or height for image specs.
4382 (produce_stretch_glyph): Improve handling of :align-to. Is now
4383 relative to left of text area by default, but other base offsets
4384 can be specified -- also for text lines.
4385
4386 * term.c (produce_glyphs): Handle IT_STRETCH.
4387 (produce_stretch_glyph): New function to handle space width and
4388 align-to display properties on non-window systems.
4389
37264101
SM
43902004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4391
4392 * fileio.c (Fread_file_name): Set completion-ignore-case for
4393 case-insensitive systems.
4394
73bc43da
MY
43952004-03-14 Masatake YAMATO <jet@gyve.org>
4396
4397 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4398 when keymap and cursor are setup.
4399
9062aa89
ST
44002004-03-14 Steven Tamm <steventamm@mac.com>
4401
b17856dd 4402 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4403
e4b1b5ab
KS
44042004-03-14 Kim F. Storm <storm@cua.dk>
4405
4406 * dispextern.h (x_find_image_file): Add prototype.
4407
4408 * image.c (x_find_image_file): Make extern.
4409
4410 * xfns.c (x_find_image_file): Remove prototype.
4411
a6eeaa81 44122004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4413
37264101 4414 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4415
37264101 4416 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4417
e69cfac2
RS
44182004-03-12 Richard M. Stallman <rms@gnu.org>
4419
4420 * fns.c (internal_equal): New arg PROPS controls comparing
4421 text properties. All callers changed.
4422 (Fequal_including_properties): New function.
4423 (syms_of_fns): defsubr it.
4424
45034953
KS
44252004-03-12 Kim F. Storm <storm@cua.dk>
4426
4427 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4428
45034953
KS
4429 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4430 (image_background, image_background_transparent): Fix prototypes.
4431
37264101 4432 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4433
4434 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4435 (x_query_font, x_find_ccl_program, x_set_window_size)
4436 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4437 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4438 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4439
4440 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4441 (x_query_font, x_find_ccl_program, x_set_window_size)
4442 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4443 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4444 (mac_draw_line_to_pixmap): Add prototypes.
4445
44462004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4447
4448 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4449
a12d3d87
KS
44502004-03-11 Kim F. Storm <storm@cua.dk>
4451
d3ab1cf1
KS
4452 * dispextern.h: Move image related prototypes from xfns.c section
4453 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4454 HAVE_X_WINDOWS.
37264101 4455
37de9f51 4456 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4457 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4458 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4459 (GTK_OBJ) [USE_GTK]: New declaration.
4460 (obj): Add $(GTK_OBJ) to list.
4461
5243c06a 44622004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4463
5243c06a
ST
4464 * image.c [MAC_OSX]: Include sys/stat.h
4465
4466 * macfns.c (syms_of_macfns): Remove definitions of things now
4467 defined in image.c
4468
c0f97789
KS
44692004-03-11 Kim F. Storm <storm@cua.dk>
4470
4471 The following changes consolidates the identical/similar image
4472 support code previously found in xfns.c, w32fns.c, and macfns.c
4473 into a new file image.c.
4474
4475 * makefile.w32-in (OBJ1): Add image.o.
4476 ($(BLD)/image.$(O)): Add dependencies.
4477
4478 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4479 (image.o): Add dependencies.
37264101 4480
c0f97789
KS
4481 * image.c: New file with consolidated image support code.
4482 (COLOR_TABLE_SUPPORT): New define to control whether
4483 color table support is available (X only).
4484 (Bitmap_Record): Common name for x_bitmap_record,
4485 w32_bitmap_record, and mac_bitmap_record.
4486 (XImagePtr): Common name for pointer to XImage or equivalent.
4487 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4488 to XImagePtr on X+MAC, and to HDC on W32.
4489 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4490 (NO_PIXMAP): Common name for "None" or equivalent.
4491 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4492 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4493 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4494 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4495 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4496 (XDrawLine): Define on MAC for code sharing.
4497 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4498 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4499 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4500 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4501 (x_reference_bitmap, x_create_bitmap_from_data)
4502 (x_create_bitmap_from_file, x_destroy_bitmap)
4503 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4504 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4505 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4506 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4507 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4508 (define_image_type, lookup_image_type, valid_image_p)
4509 (image_error, enum image_value_type, struct image_keyword)
4510 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4511 (make_image, free_image, prepare_image_for_display, image_ascent)
4512 (four_corners_best, image_background, image_background_transparent)
4513 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4514 (make_image_cache, free_image_cache, clear_image_cache)
4515 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4516 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4517 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4518 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4519 (init_image_func_pointer, image_load_quartz2d)
4520 (struct ct_color, init_color_table, free_color_table)
4521 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4522 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4523 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4524 (x_disable_image, x_build_heuristic_mask)
4525 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4526 (TIFF support, GIF support, Ghostscript support): Consolidate image
4527 code from xfns.c, w32fns.c, and macfns.c.
4528 (syms_of_image): Consolidate image related symbol setup here.
4529 (init_image): Consolidate image related initializations here.
37264101 4530
c0f97789
KS
4531 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4532 and init_image. Remove call to init_xfns.
4533
37264101
SM
4534 * macterm.h (struct mac_bitmap_record): Add file member.
4535 Not currently used, but simplifies code sharing.
c0f97789
KS
4536
4537 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4538 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4539 (x_reference_bitmap, x_create_bitmap_from_data)
4540 (x_create_bitmap_from_file, x_destroy_bitmap)
4541 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4542 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4543 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4544 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4545 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4546 (define_image_type, lookup_image_type, valid_image_p)
4547 (image_error, enum image_value_type, struct image_keyword)
4548 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4549 (make_image, free_image, prepare_image_for_display, image_ascent)
4550 (four_corners_best, image_background, image_background_transparent)
4551 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4552 (make_image_cache, free_image_cache, clear_image_cache)
4553 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4554 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4555 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4556 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4557 (init_image_func_pointer, image_load_quartz2d)
4558 (struct ct_color, init_color_table, free_color_table)
4559 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4560 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4561 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4562 (x_disable_image, x_build_heuristic_mask)
4563 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4564 (TIFF support, GIF support, Ghostscript support): Merge with image
4565 code from xfns.c and macfns.c into image.c.
4566 (syms_of_xfns): Move image related symbols to image.c.
4567 (init_external_image_libraries, init_xfns): Remove; initialization
4568 moved to init_image in image.c.
4569
4570 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4571 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4572 (x_reference_bitmap, x_create_bitmap_from_data)
4573 (x_create_bitmap_from_file, x_destroy_bitmap)
4574 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4575 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4576 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4577 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4578 (define_image_type, lookup_image_type, valid_image_p)
4579 (image_error, enum image_value_type, struct image_keyword)
4580 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4581 (make_image, free_image, prepare_image_for_display, image_ascent)
4582 (four_corners_best, image_background, image_background_transparent)
4583 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4584 (make_image_cache, free_image_cache, clear_image_cache)
4585 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4586 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4587 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4588 (struct ct_color, init_color_table, free_color_table)
4589 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4590 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4591 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4592 (x_disable_image, x_build_heuristic_mask)
4593 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4594 (TIFF support, GIF support, Ghostscript support): Merge with image
4595 code from xfns.c and macfns.c into image.c.
4596 (syms_of_xfns): Move image related symbols to image.c.
4597 (init_external_image_libraries, init_xfns): Remove; initialization
4598 moved to init_image in image.c.
4599
4600 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4601 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4602 (x_reference_bitmap, x_create_bitmap_from_data)
4603 (x_create_bitmap_from_file, x_destroy_bitmap)
4604 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4605 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4606 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4607 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4608 (define_image_type, lookup_image_type, valid_image_p)
4609 (image_error, enum image_value_type, struct image_keyword)
4610 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4611 (make_image, free_image, prepare_image_for_display, image_ascent)
4612 (four_corners_best, image_background, image_background_transparent)
4613 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4614 (make_image_cache, free_image_cache, clear_image_cache)
4615 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4616 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4617 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4618 (struct ct_color, init_color_table, free_color_table)
4619 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4620 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4621 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4622 (x_disable_image, x_build_heuristic_mask)
4623 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4624 (TIFF support, GIF support, Ghostscript support): Merge with
4625 w32fns.c and macfns.c image code into image.c.
4626 (syms_of_xfns): Move image related symbols to image.c.
4627 (init_xfns): Remove; initialization moved to init_image in image.c.
4628
4629 * lisp.h (syms_of_image, init_image): Add protoypes.
4630 (init_xfns): Remove prototype.
4631
4632 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4633 (x_reference_bitmap, x_create_bitmap_from_data)
4634 (x_create_bitmap_from_file, x_destroy_bitmap)
4635 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4636 (gamma_correct) [MAC_OS]: Add prototype.
4637
4638 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4639 (x_reference_bitmap, x_create_bitmap_from_data)
4640 (x_create_bitmap_from_file, x_destroy_bitmap)
4641 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4642
6eced09c
KH
46432004-03-09 Kenichi Handa <handa@etlken2>
4644
4645 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4646 correctly.
4647
9a7e95f3
RS
46482004-03-04 Richard M. Stallman <rms@gnu.org>
4649
04a6e76b
RS
4650 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4651
9a7e95f3
RS
4652 * window.c (Fdisplay_buffer): Doc fix.
4653
4654 * buffer.c (Fpop_to_buffer): Doc fix.
4655
6c2488df
KS
46562004-03-03 Kim F. Storm <storm@cua.dk>
4657
4658 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4659
d8d95bc7
SM
46602004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4661
4662 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4663
357589bf
RS
46642004-03-02 Richard M. Stallman <rms@gnu.org>
4665
4666 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4667
409949b5
KH
46682004-03-02 Kenichi Handa <handa@m17n.org>
4669
4670 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4671
d24bc50f
KS
46722004-03-02 Kim F. Storm <storm@cua.dk>
4673
4674 * window.h (struct window): New member overlay_arrow_bitmap.
4675
4676 * window.c (make_window): Initialize overlay_arrow_bitmap.
4677
4678 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4679 implement and integrate multiple overlay arrows with redisplay.
4680 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4681 (last_arrow_position, last_arrow_string): Replace by properties.
4682 (Qlast_arrow_position, Qlast_arrow_string)
4683 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4684 (syms_of_xdisp): Intern and staticpro them.
4685 (overlay_arrow_string_or_property, update_overlay_arrows)
4686 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4687 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4688 (redisplay_internal): Use them instead of directly accessing
4689 Voverlay_arrow_position etc. for multiple overlay arrows.
4690 (mark_window_display_accurate): Use update_overlay_arrows.
4691 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4692 (try_window_id): Use overlay_arrows_changed_p.
4693 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4694 (display_line): Use overlay_arrow_at_row to check multiple
4695 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4696 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4697 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4698 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4699
4700 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4701 (update_window_fringes): Remove unused code.
4702
c1464661
JR
47032004-03-01 Jason Rumney <jasonr@gnu.org>
4704
4705 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4706
a64387ee
JB
47072004-03-01 Juanma Barranquero <lektu@terra.es>
4708
4709 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4710
4711 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4712
334faa08
JD
47132004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4714
4715 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4716 how many colors can be displayed.
4717
bb62616f
KH
47182004-03-01 Kenichi Handa <handa@m17n.org>
4719
4720 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4721 correctly.
4722
0fd16104
KS
47232004-02-28 Kim F. Storm <storm@cua.dk>
4724
4725 * dispnew.c (update_window): Update header line also if there are
4726 no other changes in window (move code after set_cursor label).
4727
4728 * lisp.h (mark_window_display_accurate): Remove prototype.
4729
4730 * window.c (window_loop, Fforce_window_update): Force mode line
4731 updates by setting prevent_redisplay_optimizations_p and
4732 update_mode_lines.
4733
b59dd9c8
JD
47342004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4735
d8d95bc7 4736 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4737
4738 * xterm.c (x_calc_absolute_position): Call x_real_positions
4739 to get WM window sizes and use those to calculate position.
d8d95bc7 4740 (x_set_offset): Remove code commented out.
b59dd9c8 4741
a874691c
MB
47422004-02-28 Miles Bader <miles@gnu.org>
4743
4744 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4745
3e0c6482
KS
47462004-02-28 Kim F. Storm <storm@cua.dk>
4747
4748 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4749 an event into kbd fifo, but with special handling of quit event;
4750 a quit event is saved for later, and further events are discarded
4751 until the saved quit event has been processed.
4752 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4753 (gen_help_event): Store help event in kbd fifo.
4754 (NREAD_INPUT_EVENTS): Remove.
4755 (read_avail_input): Adapt to new read_socket_hook interface.
4756 Remove allocation and initialization of local input_event buffer,
4757 as read_socket_hook stores events directly in fifo. Allocate and
4758 initialize local hold_quit event to handle postponed quit event
4759 (and store it if set by kbd_buffer_store_event_hold).
4760
4761 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4762 (gen_help_event): Fix prototype.
4763
a64387ee 4764 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4765 numcharsp args. Add hold_quit arg.
f63fd14e 4766 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4767 directly in fifo using kbd_buffer_store_event_hold.
4768
4769 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4770 (read_input_waiting): Adapt to new read_socket_hook interface.
4771 Remove allocation and initialization of local input_event buffer,
4772 as read_socket_hook stores events directly in fifo. Allocate and
4773 initialize local hold_quit event to handle postponed quit event
4774 (and store it if set by kbd_buffer_store_event_hold).
4775
a64387ee 4776 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4777
4778 * termhooks.h (read_socket_hook): Fix prototype.
4779
4780 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4781 numcharsp args. Add hold_quit arg.
f63fd14e 4782 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4783 directly in fifo using kbd_buffer_store_event_hold.
4784
4785 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4786
4787 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4788 Add hold_quit arg. Rework to use just one, local, inev
4789 input_event. Store inev directly in fifo using
3e0c6482
KS
4790 kbd_buffer_store_event_hold. Update count in one place.
4791 Postpone call to gen_help_event until inev is stored; use new
4792 local do_help for this.
4793 Remove local emacs_event in handing of ButtonPress event; just use
4794 inev instead (so no reason to copy it later).
4795
4796 * xsmfns.c (x_session_check_input): Remove numchars arg.
4797
d8d95bc7
SM
4798 * xterm.c (x_focus_changed, x_detect_focus_change):
4799 Remove numchars arg. Always store event into bufp arg.
4800 Return nothing. Callers changed accordingly.
3e0c6482
KS
4801 (glyph_rect): Simplify.
4802 (STORE_KEYSYM_FOR_DEBUG): New macro.
4803 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4804 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4805 (current_hold_quit) [USE_GTK]: Add.
4806 (event_handler_gdk): Adapt to new handle_one_xevent.
4807 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4808 Add hold_quit arg. Rework to use just one, local, inev
4809 input_event. Store inev directly in fifo using
3e0c6482
KS
4810 kbd_buffer_store_event_hold. Update count in one place.
4811 Postpone call to gen_help_event until inev is stored; use new
4812 local do_help for this.
4813 Simplify handling of keysyms (consolidate common code). Fix bug
4814 where count was updated with nchars instead of nbytes.
4815 Remove local emacs_event in handing of ButtonPress event; just use
4816 inev instead (so no reason to copy it later).
4817 Remove `out' label. Rename label `ret' to `done'; add various
4818 `goto done' to clarify code flow in deeply nested blocks.
4819 (x_dispatch_event): Simplify as handle_one_xevent now calls
4820 kbd_buffer_store_event itself.
f63fd14e 4821 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4822 arg. Call handle_one_xevent with new arglist. Store event from
4823 x_session_check_input in fifo.
4824 [USE_GTK]: Setup current_hold_quit.
4825 Decrement handling_signal before unblocking input.
4826 (x_initialize) [USE_GTK]: Initialize current_count.
4827
4828 * xterm.h (x_session_check_input): Fix prototype.
4829
e3564461 48302004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4831
d8d95bc7 4832 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4833
e3564461
ST
4834 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4835 macgui.h).
a64387ee 4836
e3564461 4837 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4838
e3564461
ST
4839 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4840 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4841 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4842 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4843 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4844 (Bitmap): Remove typedef.
4845 (Pixmap): Change int to GWorldPtr.
4846
d8d95bc7 4847 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4848
d8d95bc7
SM
4849 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4850 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4851 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4852 long representation.
4853 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4854 colors used for masks.
4855 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4856
e3564461
ST
4857 * macfns.c: Include sys/types.h and sys/stat.h.
4858 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4859 Include QuickTime/QuickTime.h.
4860 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4861 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4862 functions defined in macterm.c.
4863 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4864 (ZPixmap): New #define for compatibility with xfns.c.
4865 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4866 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4867 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4868 New functions.
e3564461 4869 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4870 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4871 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4872 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4873 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4874 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4875 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4876 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4877 long mixup.
4878 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4879 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4880 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4881 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4882 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4883 (x_alloc_image_color, clear_image_cache, lookup_image)
4884 (x_find_image_file, xbm_read_bitmap_file_data)
4885 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4886 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4887 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4888 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4889 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4890 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4891 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4892 #if 0.
4893 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4894 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4895 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4896 New functions (from xfns.c).
e3564461
ST
4897 (Fx_create_frame): Record unwind_create_frame.
4898 (Fxw_display_color_p): Use dpyinfo->color_p.
4899 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4900 dpyinfo->n_cbits.
4901 (Fx_display_color_cells): Use dpyinfo->n_planes;
4902 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4903 (Qheuristic, cross_disabled_images, emboss_matrix)
4904 (laplace_matrix): New variables (from xfns.c).
4905 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4906 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4907 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4908 (image_background_transparent): New function (from xfns.c).
4909 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4910 (image_load_quicktime): Add declaration.
4911 [MAC_OSX] (image_load_quartz2d): Likewise.
4912 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4913 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4914 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4915 (xbm_load_image_from_file, x_laplace_read_row)
4916 (x_laplace_write_row, pbm_read_file): Remove functions.
4917 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4918 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4919 (colors_in_color_table): Sync with xfns.c (although not used).
4920 (lookup_rgb_color): Don't lookup color table. Just do gamma
4921 correction.
4922 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4923 (x_disable_image): New function (from xfns.c).
4924 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4925 (x_build_heuristic_mask): Sync with xfns.c.
4926 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4927 (HAVE_PBM): Remove #ifdef.
4928 (pbm_load): Sync with xfns.c. Set img->width and img->height
4929 before IMAGE_BACKGROUND.
d8d95bc7 4930 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4931 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4932 Don't enclose with #if HAVE_PNG.
4933 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4934 symbol _CGImageCreateWithPNGDataProvider is defined.
4935 Otherwise use image_load_quicktime.
e3564461 4936 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4937 [HAVE_PNG] (png_load): Sync with xfns.c.
4938 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4939 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4940 HAVE_JPEG.
4941 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4942 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4943 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4944 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4945 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4946 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4947 HAVE_TIFF.
4948 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4949 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4950 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4951 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4952 New functions (from xfns.c).
e3564461 4953 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4954 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4955 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4956 Don't enclose with #if HAVE_GIF.
4957 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4958 animated gif. Otherwise use image_load_quicktime.
4959 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4960 gif_DrawText to avoid conflict with QuickdrawText.h.
4961 [HAVE_GIF] (gif_load): Sync with xfns.c.
4962 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4963 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4964 Ghostscript is not supported yet).
4965 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4966 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4967 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4968 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4969 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4970 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4971 HAVE_PNG. Call EnterMovies to support animated gifs.
4972 Call init_image_func_pointer to bind a symbol
e3564461 4973 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4974
d8d95bc7 4975 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4976 (x_draw_bar_cursor): Sync declaration with xterm.c.
4977 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4978 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4979 graphics).
4980 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4981 (mac_draw_line_to_pixmap, XCreatePixmap)
4982 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4983 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4984 New functions.
4985 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4986 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4987 Cast bits to char *.
e3564461
ST
4988 (reflect_byte): New function (from w32fns.c).
4989 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4990 due to byte alignment.
d8d95bc7
SM
4991 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4992 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4993 (XSetForeground): Remove static (now used in macfns.c).
4994 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4995 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4996 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4997 (x_draw_glyph_string_box, x_draw_image_foreground)
4998 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4999 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5000 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5001 Sync with xterm.c.
5002 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5003 than the xterm.c version when a strictly horizontal or vertical
5004 line is drawn.
5005 (XTset_terminal_window): Add static.
5006 (x_make_frame_visible): Add UNBLOCK_INPUT.
5007 (x_free_frame_resources): New funcion (from xterm.c).
5008 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5009 occurs in tool bar area.
d8d95bc7
SM
5010 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5011 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
5012 Initialize image cache.
5013 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5014 Enclose unused functions with #if 0.
5015 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5016 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 5017 from a mac font name to an XLFD font name according to its script code.
e3564461 5018 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 5019 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
5020 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5021 whose name starts with `.'.
5022 (init_font_name_table): Use decode_mac_font_name. Add both
5023 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5024 of a font is smJapanese.
5025 (mac_do_list_fonts): New function to list fonts that match a given
5026 pattern.
5027 (x_list_fonts, XLoadQueryFont): Use it.
5028 (XLoadQueryFont): Set rbearing field for each variable width
5029 character to avoid needless redraw.
5030 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5031
446f5f3d
KS
50322004-02-26 Kim F. Storm <storm@cua.dk>
5033
af617d0f
KS
5034 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5035 as read_socket_hook handler on X aborts if buffer is too small
5036 and W32 handler doesn't always check buffer limit.
5037
446f5f3d
KS
5038 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5039 right-fringe similar to a display margin image. Specifically,
5040 the characters having the fringe prop are no longer shown, and
5041 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5042 do this. Set fringe bitmap face_id in it->face_id.
5043 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5044 still realize it->face (i.e. the fringe bitmap face).
5045
7d8a0b55
MB
50462004-02-25 Miles Bader <miles@gnu.org>
5047
5048 * xdisp.c (check_it): Check string/string_pos consistency.
5049 (init_iterator): Initialize string-related fields properly.
5050
50512004-02-11 Miles Bader <miles@gnu.org>
5052
5053 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5054
50552004-02-10 Miles Bader <miles@gnu.org>
5056
5057 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5058 BLOCK_INPUT can be nested, so it doesn't make much sense.
5059
a64387ee 50602004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
5061
5062 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5063 (xbm_read_bitmap_data): Use unsigned char for image data.
5064
92f5fba2
LT
50652004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5066
5067 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5068
8565fb3d
JR
50692004-02-22 Jason Rumney <jasonr@gnu.org>
5070
5071 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5072 correctly over other bitmaps.
5073
a6eeaa81 50742004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
5075
5076 * emacs.c (USAGE1): Split into two halves.
5077 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
5078 (USAGE3): Rename from USAGE2.
5079 (USAGE4): Rename from USAGE3.
f8125c39 5080
4effffca
EZ
50812004-02-21 Juri Linkov <juri@jurta.org>
5082
5083 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5084 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5085 --file. Fix -f, -l. Sort options. Untabify.
5086 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5087
923c1e6f
LT
50882004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5089
5090 * category.c (Fdefine_category, Fcategory_docstring)
5091 (Fget_unused_category, Fset_category_table)
5092 (Fcategory_set_mnemonics): Doc fixes.
5093
b0e225fd
KS
50942004-02-20 Kim F. Storm <storm@cua.dk>
5095
5096 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5097 The following changes are relative to the 2004-01-21 revision.
5098 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5099 in one call to read_socket_hook. Value is 8.
5100 (read_avail_input): Separate and rework handling of read_socket_hook
5101 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
5102 in read_socket_hook case, and repeat if full buffer is read.
5103 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
5104 In non-read_socket_hook case, just use a single input_event, and
5105 call kbd_buffer_store_event on the fly for each character.
5106
b15aa9f9
SM
51072004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5108
5109 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5110 Remove unused `gu' alternative.
5111
83c9aa95
AS
51122004-02-19 Andreas Schwab <schwab@suse.de>
5113
5114 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5115 warning.
5116
cc808173
KS
51172004-02-18 Kim F. Storm <storm@cua.dk>
5118
5119 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5120 Fix last change.
5121
ab90a54d
KS
51222004-02-17 Kim F. Storm <storm@cua.dk>
5123
b26f249f
KS
5124 * xdisp.c (fast_find_position): Fix return value of new version;
5125 it was inverted compared to the 21.1 version.
5126 (get_window_cursor_type): Don't look at glyph if NULL.
5127 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 5128
ab90a54d
KS
5129 * keyboard.c: Rework previous change; it didn't consider that the
5130 buf array was allocated on the stack.
5131 (prev_read): Remove variable.
5132 (read_avail_input_buf): New static event buffer array.
b9568dfc 5133 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 5134 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
5135 Use in_read_avail_input to handle re-entrance; when re-entered,
5136 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5137 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
5138 is always cleared on entry. To ensure that, we clear (just) the
5139 entries that were used before we return.
5140 (init_keyboard): Initialize read_avail_input_buf here.
5141
b6189c3b 51422004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
5143
5144 * cmds.c (Fend_of_line): Doc fix.
5145
7b5368c1
EZ
51462004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5147
5148 * keyboard.c (prev_read): New static variable.
5149 (read_avail_input): Use it to zero out only those slots in buf[]
5150 that were used last time we were called.
5151
a6eeaa81 51522004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
5153
5154 * Makefile.in (obj): Move fringe.o from here...
5155 (XOBJ, MAC_OBJ): ...to here.
5156
159c348e
SE
51572004-02-16 Stephen Eglen <stephen@gnu.org>
5158
5159 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5160
d2f14999
SM
51612004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5162
b15aa9f9
SM
5163 * data.c (Fbyteorder):
5164 * fringe.c (Fdefine_fringe_bitmap):
5165 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5166 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5167
8d50508a
JR
51682004-02-16 Jason Rumney <jasonr@gnu.org>
5169
5170 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5171
dd4497dc
ST
51722004-02-15 Steven Tamm <steventamm@mac.com>
5173
5174 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5175 controlling emulation of a three button mouse with option and
5176 command keys.
5177 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5178 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5179
c9159cb3
KS
51802004-02-15 Kim F. Storm <storm@cua.dk>
5181
2cc52658
KS
5182 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5183
c9159cb3
KS
5184 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5185 Perform byte-swapping.
5186
12fde2dc
KS
51872004-02-14 Kim F. Storm <storm@cua.dk>
5188
5189 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5190 bits from char to short to facilitate wider bitmaps.
5191 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5192 member.
5193
5194 * fringe.c (struct fringe_bitmap): Change member bits from char to
5195 short to facilitate 16 bits wide bitmaps. Modify all standard
5196 bitmaps accordingly.
5197 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5198 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5199 (draw_fringe_bitmap): Ditto.
5200 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5201 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5202 handle up to 16 bits wide bitmaps.
5203 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5204 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5205
5206 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5207 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5208 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5209
5210 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5211 so it is no longer necessary to expand them here.
5212
5213 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5214
9d7271e8
KS
52152004-02-12 Kim F. Storm <storm@cua.dk>
5216
5217 * window.c (Fwindow_fringes): Doc fix.
5218
706c1e4f
JD
52192004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5220
5221 * xselect.c (x_get_foreign_selection): Add new optional parameter
5222 time_stamp.
5223 (Fx_get_selection_internal): Ditto, pass time_stamp to
5224 x_get_foreign_selection.
5225
5226 * data.c (Fbyteorder): New function.
5227
c2d12b5d
JD
52282004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5229
5230 * atimer.c: Move include stdio.h to same place as in other files.
5231
5232 * region-cache.c: Ditto.
5233
5234 * sysdep.c: Ditto.
5235
5236 * xfaces.c: Ditto.
5237
4c1947b9
SS
52382004-02-09 Sam Steingold <sds@gnu.org>
5239
89458937 5240 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5241
82722af3
KS
52422004-02-09 Kim F. Storm <storm@cua.dk>
5243
5244 * fringe.c: New file. Move original fringe related declarations
5245 and code from dispextern.h and xdisp.c here.
5246 Rework code to support user defined fringe bitmaps, redefining
5247 standard bitmaps, ability to overlay user defined bitmap with
5248 overlay arrow bitmap, and add faces to bitmaps.
5249 (Voverflow_newline_into_fringe): Declare here.
5250 (enum fringe_bitmap_align): New enum.
5251 (..._bits): All bitmaps are now defined without bitswapping; that
5252 is now done in init_fringe_once (if necessary).
5253 (standard_bitmaps): New array with specifications for the
5254 standard fringe bitmaps.
5255 (fringe_faces): New array.
5256 (valid_fringe_bitmap_id_p): New function.
5257 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5258 (draw_fringe_bitmap): New function which draws fringe bitmap,
5259 possibly overlaying bitmap with cursor in right fringe or the
5260 overlay arrow in the left fringe.
5261 (update_window_fringes): Do not handle overlay arrow here.
5262 Compare and copy fringe bitmap faces.
5263 (init_fringe_bitmap): New function.
5264 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5265 define and destroy user defined fringe bitmaps.
5266 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5267 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5268 (syms_of_fringe): New function. Defsubr new DEFUNs.
5269 DEFVAR_LISP Voverflow_newline_into_fringe.
5270 (init_fringe_once, init_fringe): New functions.
5271 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5272
82722af3
KS
5273 * Makefile.in (obj): Add fringe.o.
5274 (fringe.o): New dependencies.
5275
5276 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5277 bits allocated to hold a fringe number. Increase number of bits
5278 from 4 to 8 to allow user defined fringe bitmaps.
5279 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5280 left_user_fringe_face_id, right_user_fringe_bitmap,
5281 right_user_fringe_face_id.
5282 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5283 Move to new file fringe.c.
5284 (MAX_FRINGE_BITMAPS): Define here.
5285 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5286 and overlay_p. Change member which to int.
5287 (struct redisplay_interface): New members define_fringe_bitmap
5288 and destroy_fringe_bitmap.
5289 (valid_fringe_bitmap_id_p): Add prototype.
5290 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5291
5292 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5293 arrows.
5294 (update_frame): Do flush_display if force_flush_display_p to
5295 ensure display (specifically fringes) are updated in a timely
5296 manner when resizing the frame by dragging the mouse.
5297 (update_window_line): Update row if overlay arrow changed.
5298 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5299 or overlay arrow changed.
5300
5301 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5302 syms_of_fringe, and init_fringe.
5303
5304 * frame.h (struct frame): New member force_flush_display_p.
5305
5306 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5307 Add prototypes.
5308
a3993cc8 5309 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5310 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5311 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5312 Use cursor color for displaying cursor in fringe.
82722af3
KS
5313 (x_redisplay_interface): Add null handlers for
5314 define_fringe_bitmap and destroy_fringe_bitmap functions.
5315
5316 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5317 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5318 for displaying cursor in fringe.
5319 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5320 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5321 (w32_redisplay_interface): Add them to redisplay_interface.
5322 (w32_term_init): Call w32_init_fringe instead of explicitly
5323 defining fringe bitmaps in fringe_bmp array.
5324 (x_delete_display): Call w32_reset_fringes instead of explicitly
5325 destroying fringe bitmaps in fringe_bmp array.
5326
5327 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5328 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5329 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5330 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5331 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5332 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5333 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5334 Move fringe handling vars and code to new file fringe.c.
5335 (handle_display_prop): Handle left-fringe and right-fringe
5336 display properties; store user fringe bitmaps in iterator.
5337 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5338 (clear_garbaged_frames): Set force_flush_display_p if resized.
5339 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5340 (display_line): Handle cursor in fringe at eob.
5341 (display_line): Set row user fringe bitmaps from iterator.
5342
5343 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5344 Use cursor color for displaying cursor in fringe.
5345 (x_redisplay_interface): Add null handlers for
5346 define_fringe_bitmap and destroy_fringe_bitmap functions.
5347
030400eb
JD
53482004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5349
5350 * macfns.c (Fx_change_window_property): Make doc string and
5351 parameters same as for X version.
5352
5353 * w32fns.c (Fx_change_window_property): Ditto.
5354
3af55251
KS
53552004-02-07 Kim F. Storm <storm@cua.dk>
5356
ec110e9e
KS
5357 * xdisp.c (hscroll_window_tree): Position cursor near to right
5358 margin in hscrolled window when jumping to end of line (rather
5359 than centering cursor).
5360
3af55251
KS
5361 * process.c (wait_reading_process_input): Don't do adaptive read
5362 buffering if waiting for a specific process.
5363
b0c138ce
LT
53642004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5365
5366 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5367 (Fread_minibuffer, Feval_minibuffer)
5368 (Fread_string, Fread_no_blanks_input)
5369 (Fcompleting_read): Doc fixes.
5370 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5371 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5372 (read_minibuf): Fix initial comment.
5373 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5374 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5375 checking completion-regexp-list.
5376 (Fdisplay_completion_list): Make it handle arguments that are
5377 symbols. Doc fix.
5378
9676f5ad 53792004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5380
9676f5ad 5381 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5382
9676f5ad
JD
5383 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5384 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5385 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5386 format. Remove unused variable cons.
5b698285
JD
5387
5388 * xselect.c: Include stdio,h.
5389
fc1d15f6
KH
53902004-02-05 Kenichi Handa <handa@m17n.org>
5391
ebaff4af
KH
5392 * fns.c (Fset_char_table_range): Fix previous change.
5393
fc1d15f6
KH
5394 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5395
9676f5ad
JD
53962004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5397
5398 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5399
da75761f
SM
54002004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5401
5402 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5403 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5404
13c5d120
KH
54052004-02-04 Kenichi Handa <handa@m17n.org>
5406
5407 * fns.c (Fset_char_table_range): Handle charsets ascii,
5408 eight-bit-control, and eight-bit-graphic correctly.
5409
2883d842
JR
54102004-02-03 Jason Rumney <jasonr@gnu.org>
5411
5412 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5413
5414 * w32fns.c (x_to_w32_font): Likewise.
5415
69eff41f
JD
54162004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5417
5418 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5419 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5420
5421 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5422 ClientMessages.
5423
5424 * xselect.c: Include termhooks.h and X11/Xproto.h
5425 (x_check_property_data, x_fill_property_data)
5426 (x_property_data_to_lisp, mouse_position_for_drop)
5427 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5428 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5429 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5430
da75761f 5431 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5432 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5433 OUTER_P.
5434 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5435 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5436 if vector_ret_p is true.
5437 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5438
a6eeaa81 54392004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5440
5441 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5442 basename of FILE relative to it, not FILE itself.
5443
09721b31
KH
54442004-02-02 Kenichi Handa <handa@m17n.org>
5445
5446 * coding.c (coding_restore_composition): Check invalid
5447 composition data more rigidly.
5448
eb996101
LT
54492004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5450
5451 * fileio.c (Fread_file_name_internal): Correctly handle the case
5452 where insert-default-directory is nil.
5453 (Fread_file_name): Always return an empty string if the user exits
5454 with an empty minibuffer. Adapt the docstring accordingly.
5455 (syms_of_fileio): Adapt the docstring of insert-default-directory
5456 to the change in Fread_file_name.
5457
a6eeaa81 54582004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5459
5460 * alloca.c [!alloca]: Fix the prototype for xfree.
5461
13f52ed8
KH
54622004-01-29 Kenichi Handa <handa@m17n.org>
5463
5464 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5465 (string_byte_to_char): Likewise.
5466
d57625a0
JR
54672004-01-28 Peter Runestig <peter@runestig.com>
5468
5469 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5470
a64387ee 54712004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5472
5473 * unexmacosx.c (unexec_copy): Do not copy more than was
5474 requested to prevent overwriting during unexec.
5475
eb37b8fd
JD
54762004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5477
ce38070a
JD
5478 * process.c (sigchld_handler): Add comment about not calling malloc.
5479
eb37b8fd
JD
5480 * process.h: Add extern to synch_process_termsig.
5481
a64387ee 54822004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5483
da75761f
SM
5484 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5485 Move setting of scroll bars from make_mac_frame to
5486 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5487
d62a265d
RS
54882004-01-26 Richard M. Stallman <rms@gnu.org>
5489
5490 * search.c (Freplace_match): Handle nonexistent
5491 back-references properly.
5492
54932004-01-03 Richard M. Stallman <rms@gnu.org>
5494
5495 * window.c (decode_any_window): New function.
5496 (Fwindow_height, Fwindow_width, Fwindow_edges)
5497 (Fwindow_pixel_edges, Fwindow_inside_edges)
5498 (Fwindow_inside_pixel_edges): Use decode_any_window.
5499
ff236419
JD
55002004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5501
5502 * process.h: synch_process_termsig new variable.
5503
5504 * callproc.c: Define synch_process_termsig.
5505 (Fcall_process): Initiate synch_process_termsig to zero and
5506 check if non-zero and get signal name after subprocess has ended.
5507
5508 * process.c (sigchld_handler): Set synch_process_termsig
5509 if terminated by a signal. synch_process_death setting removed.
5510
5511 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5512
41b867ea
AS
55132004-01-26 Andreas Schwab <schwab@suse.de>
5514
5515 * print.c (print_preprocess): Declare size as EMACS_INT to not
5516 lose bits.
5517 (print_object): Likewise.
5518 * alloc.c (Fpurecopy): Likewise.
5519
a08084ff
LT
55202004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5521
5522 * window.c (Fwindow_minibuffer_p): Doc fix.
5523
b19ac475
JY
55242004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5525
5526 * editfns.c (Fformat): Make both passes accept the same set of flags.
5527
fe905025
KH
55282004-01-23 Kenichi Handa <handa@m17n.org>
5529
5530 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5531 one, set buffer to OBJECT temporarily.
5532
438fc6c0
SM
55332004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5534
455316e2
SM
5535 * keyboard.c (kbd_buffer_gcpro): Remove.
5536 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5537 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5538 Don't initialize and/or maintain the variable any more. It was made
5539 redundant by my commit of 2003-06-15.
5540
438fc6c0
SM
5541 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5542
5335a4ee
JD
55432004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5544
5545 * lisp.h: Add undef DECL_ALIGN.
5546
dcdaeebc
SM
55472004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5548
5549 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5550 Check interrupt_input_pending explicitly.
5551
5552 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5553
5554 * keyboard.c (handle_async_input): New fun,
5555 extracted from input_available_signal.
5556 (input_available_signal, reinvoke_input_signal): Use it.
5557
9076a823
SM
55582004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5559
d7107586
SM
5560 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5561
5562 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5563 manipulation macros for when tags are in the lower bits.
5564 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5565 (DECL_ALIGN): New macro.
5566 (DEFUN): Use it.
5567
5568 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5569
5570 * s/darwin.h (__attribute__): Remove outdated workaround.
5571
5572 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5573
5574 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5575 Don't check range of malloc address.
5576 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5577
9076a823
SM
5578 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5579
5580 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5581
ba029065
KH
55822004-01-19 Kenichi Handa <handa@m17n.org>
5583
5584 * fontset.c (fontset_font_pattern): Fix previous change.
5585
7af0e8d7
MB
55862004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5587
5588 * xdisp.c (Voverflow_newline_into_fringe)
5589 (move_it_in_display_line_to, redisplay_internal)
5590 (update_window_fringes, redisplay_window, display_line, window):
5591 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5592 that it compiles without a window-system.
5593 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5594
77a9cf69
KS
55952004-01-16 Kim F. Storm <storm@cua.dk>
5596
5597 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5598
a64387ee 5599 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5600 buffer_local_flags for indicate_buffer_boundaries.
5601 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5602 default- variable for it.
5603
5604 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5605 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5606 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5607 overflowing newlines into right fringe.
5608 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5609 and indicate_bottom_line_p for buffer boundaries and scrolling.
5610 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5611 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5612 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5613 and HOLLOW_SQUARE_BITMAP.
5614 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5615 Add prototypes.
5616
5617 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5618 instead of related indicator fields.
5619 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5620 (direct_output_for_insert): Handle exact width lines like
5621 contined lines. Call update_window_fringes.
5622 (update_window): Call update_window_fringes.
5623 (scrolling_window): Don't skip desired rows with changed bitmaps.
5624 Check if fringe bitmaps changes when assigning scrolled rows.
5625
5626 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5627 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5628 (move_it_in_display_line_to): Overflow newline into fringe for
5629 rows that are exactly as wide as the window.
5630 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5631 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5632 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5633 (fringe_bitmaps): Add new bitmaps.
5634 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5635 Select proper bitmap for cursor in fringe when appropriate.
5636 Handle alignment of bitmap to top or bottom of row.
5637 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5638 done by update_window_fringes.
5639 (update_window_fringes, draw_window_fringes): New functions.
5640 (redisplay_internal): Call update_window_fringes in case only
5641 cursor row is updated.
5642 (redisplay_window): Call update_window_fringes.
5643 Explicitly call draw_window_fringes if redisplay was done using
5644 the current matrix or the overlay arrow is in the window.
5645 (try_window_reusing_current_matrix): Mark scrolled rows for
5646 fringe update (to update buffer-boundaries / scrolling icons).
5647 (find_last_unchanged_at_beg_row): Handle exact width lines line
5648 continued lines.
5649 (display_line): Overflow newline into fringe for rows that are
5650 exactly as wide as the window. Don't append space for newline
d7107586 5651 in this case.
77a9cf69
KS
5652 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5653 in fringe as if it had been overwritten.
5654 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5655 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5656 void-text-area-pointer as user options.
5657 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5658
77a9cf69
KS
5659 * xterm.c (x_update_window_end): Call draw_window_fringes.
5660 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5661 in row instead of actually drawing fringe bitmaps.
5662 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5663 (x_draw_window_cursor): Draw cursor in fringe.
5664
5665 * w32term.c (x_update_window_end): Call draw_window_fringes.
5666 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5667 in row instead of actually drawing fringe bitmaps.
5668 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5669 (w32_draw_window_cursor): Draw cursor in fringe.
5670
5671 * macterm.c (x_update_window_end): Call draw_window_fringes.
5672 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5673 in row instead of actually drawing fringe bitmaps.
5674 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5675 (mac_draw_window_cursor): Draw cursor in fringe.
5676
a633a954
JD
56772004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5678
5679 * xterm.c (handle_one_xevent): Don't handle characters that are part
5680 of an old style (XLookupString) compose sequence.
5681
80460525
KH
56822004-01-15 Kenichi Handa <handa@m17n.org>
5683
5684 * search.c (Freplace_match): Use make_multibyte_string or
5685 make_unibyte_string according to the buffer multibyteness.
5686
7fc34f85
SM
56872004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5688
5689 * alloc.c (struct interval_block, struct string_block)
5690 (struct symbol_block, struct marker_block, live_string_p)
5691 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5692 Better preserve alignment for objects in blocks.
5693 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5694
5695 * lread.c (defvar_per_buffer): Remove dead declaration.
5696
5697 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5698 space size.
5699
66070bd1
JD
57002004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5701
5702 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5703 if a key press should pop down. Only pop down if a key is pressed
5704 outside the menu/dialog.
5705 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5706 popup_get_selection.
5707 (create_and_show_dialog): Pass 1 for down_on_keypress to
5708 popup_get_selection.
5709
de7515d6
JD
57102004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5711
5712 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5713 BLOCK/UNBLOCK_INPUT.
5714
160b1b50
JD
57152004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5716
5717 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5718 specified.
5719
3a9f36e6
KH
57202004-01-08 Kenichi Handa <handa@m17n.org>
5721
5722 * editfns.c (Fformat): Fix '&' to '&&'.
5723
3803eb32
AS
57242004-01-08 Andreas Schwab <schwab@suse.de>
5725
5726 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5727 size if PSEUDOVECTOR_FLAG is set.
5728
9da88f37
KH
57292004-01-07 Kenichi Handa <handa@m17n.org>
5730
74ac5074
KH
5731 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5732
9da88f37
KH
5733 * fontset.c (fontset_ref_via_base): Fix previous change.
5734
05faee07
KS
57352004-01-07 Kim F. Storm <storm@cua.dk>
5736
5737 * process.c (read_process_output): Only activate adaptive
5738 buffering if we read less than 256 bytes at a time.
5739
634910c8
KS
57402004-01-06 Kim F. Storm <storm@cua.dk>
5741
5742 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5743 object and image object. Return glyph width and height.
5744 (mode_line_string, marginal_area_string): Ditto.
5745
5746 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5747 (marginal_area_string): Fix prototypes.
5748
5749 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5750 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5751 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5752
5753 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5754 buffer_posn_from_coords, and marginal_area_string functions to
5755 include both string object and image object in the lispy position.
5756 Also add actual glyph width and height to position.
5757 (read_key_sequence): Use real buffer position from mouse
5758 event to find keymap property even when click is in marginal area.
5759
5760 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5761 mode_line_string and marginal_area_string functions to handle
5762 both string object and image object properties.
d7107586 5763
57951c2e
AS
57642004-01-06 Andreas Schwab <schwab@suse.de>
5765
5766 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5767 character.
5768
181e6a61
AS
57692004-01-02 Andreas Schwab <schwab@suse.de>
5770
d7107586
SM
5771 * macterm.c (emacs_options, x_initialized, same_x_server):
5772 Remove unused (and duplicated) definitions.
181e6a61 5773
31e0fbdd
KS
57742004-01-02 Kim F. Storm <storm@cua.dk>
5775
5776 * process.h (struct Lisp_Process): New members for adaptive read
5777 buffering: adaptive_read_buffering, read_output_delay, and
5778 read_output_skip.
5779
5780 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5781 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5782 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5783 (process_output_delay_count, process_output_skip): New vars.
5784 (Vprocess_adaptive_read_buffering): New variable.
5785 (make_process): Initialize adaptive read buffering members.
5786 (Fstart_process): Set adaptive_read_buffering member.
5787 (deactivate_process): Cleanup adaptive read buffering.
5788 (wait_reading_process_input): Temporarily omit delayed
5789 subprocesses from the set of file descriptors to read from;
5790 adjust the select timeout if we skipped any subprocesses.
5791 (read_process_output): Increase adaptive read buffering delay if
5792 we read less than a full buffer; reduce delay when we read a
5793 full buffer.
5794 (send_process): Simplify using local Lisp_Process var.
5795 Reset adaptive read buffering delay after write.
5796 (init_process): Initialize process_output_delay_count and
5797 process_output_skip.
5798 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5799
68c6a789
JR
58002004-01-01 Jason Rumney <jasonr@gnu.org>
5801
d7107586 5802 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5803
3f70fe82
LT
58042003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5805
5806 * print.c (Ferror_message_string): Add hyperlink in the docstring
5807 to the definition of `signal' in the Elisp manual.
5808 * eval.c (Fsignal): Ditto.
5809
b6189c3b 58102003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5811
5812 * fns.c (internal_equal): Return t for two NaN arguments.
5813
7abd90ea
RS
58142003-12-29 Richard M. Stallman <rms@gnu.org>
5815
5816 * data.c (store_symval_forwarding): Handle setting
5817 default-fill-column, etc., by changing the value in
5818 buffers that use the default.
5819
5820 * minibuf.c (Fset_minibuffer_window): Doc fix.
5821
5822 * fileio.c (choose_write_coding_system): Ignore auto_saving
5823 if using the visited file for auto saves.
5824 (Fwrite_region): Don't update SAVE_MODIFF
5825 if auto-saving in visited file.
5826
3e7cfcdc
KH
58272003-12-29 Kenichi Handa <handa@m17n.org>
5828
5829 * dispextern.h (face_font_available_p): Extern it.
5830
5831 * fontset.c (Voverriding_fontspec_alist): New variable.
5832 (lookup_overriding_fontspec): New function.
d7107586 5833 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5834 (fontset_font_pattern): Likewise.
5835 (regulalize_fontname): New function.
5836 (Fset_fontset_font): Call regulalize_fontname.
5837 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5838 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5839 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5840
5841 * xfaces.c (face_font_available_p): New function.
5842
7abd90ea
RS
58432003-12-28 Richard M. Stallman <rms@gnu.org>
5844
5845 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5846 or if its name is nil.
5847
5848 * buffer.c (Fkill_buffer): Don't delete auto-save file
5849 if it's the same as the visited file.
5850
de1d1a40
LT
58512003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5852
5853 * coding.c (Fcheck_coding_system): Doc fix.
5854
204fb75e
KS
58552003-12-28 Kim F. Storm <storm@cua.dk>
5856
5857 * Makefile.in (eval.o): Depend on dispextern.h.
5858
5859 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5860 image glyph using image's ascent.
5861 (mode_line_string): Return image glyph as object clicked on.
5862 Adjust y0 for image glyph using image's ascent.
5863
5864 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5865 (struct glyph): New members, ascent and descent. Used to save
5866 this glyph's ascent and descent, instead of having.
5867 (struct glyph): Declare member face_id using FACE_ID_BITS.
5868 (find_hot_spot): Add prototype.
5869
5870 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5871 (QCmap): Declare extern.
5872 (make_lispy_position): When position is inside image hot-spot,
5873 use hot-spot element's id as posn element.
5874
5875 * lisp.h (IMAGEP): New macro to test for image object type.
5876 (Qimage): Declare extern.
5877
5878 * macfns.c (Qimage): Remove extern (now in lisp.h).
5879 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5880
5881 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5882
5883 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5884 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5885
5886 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5887
5888 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5889
5890 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5891 pointer types.
5892 (Qrelative_width, Qalign_to): Remove unused variables.
5893 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5894 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5895 image maps.
d7107586 5896 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5897 new dx and dy args.
5898 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5899 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5900 than row's ascent and height, to get sensible height on tall rows.
5901 (build_desired_tool_bar_string): Remove Qimage extern.
5902 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5903 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5904 image glyph is alone on the last line.
5905 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5906 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5907 (on_hot_spot_p): New function to check if position is inside an
d7107586 5908 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5909 (find_hot_spot): New function to search for image hot-spot.
5910 (Flookup_image_map): New defun to search for image hot-spot.
5911 (define_frame_cursor1): New aux function to determine frame pointer.
5912 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5913 Handle `pointer' text property and :pointer image property to
5914 control frame pointer shape. Detect image hot-spots for pointer
5915 and help_echo properties. Use define_frame_cursor1.
5916 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5917 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5918 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5919
5920 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5921
5922 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5923 (Qimage): Remove extern (now in lisp.h).
5924 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5925
5926 * xmenu.c (show_help_event): Remove unused code.
5927
5928 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5929 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5930 row's ascent and descent, to get a sensible height on tall rows.
5931
fc052137
LT
59322003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5933
5934 * minibuf.c (Fcompleting_read): Undo previous change.
5935
a64387ee 59362003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5937
5938 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5939 Arguments GCPRO'ed in call to file name handler.
5940
56ffd194
TTN
59412003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5942
5943 * termcap.c (tgetst1): Scan for "%pN"; if all
5944 N are continuous in [1,9], remove all "%pN".
5945
5202d23d
JD
59462003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5947
f26fab36
JD
5948 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5949
5202d23d
JD
5950 * xfaces.c (lface_fully_specified_p): Take into account that
5951 MAC OS always have unspecified stipple.
5952
8babaa59
TTN
59532003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5954
5955 * tparam.c (tparam1): Add handling for `%pN', which
5956 means use param N for the next substitution.
5957
2d176448
TTN
59582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5959
5960 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5961 In case `frame' is nil, consult the selected frame.
5962 (Fcolor_supported_p): Likewise.
5963
adb0708c
LT
59642003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5965
000eeb15
LT
5966 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5967 Doc fixes.
0dc72b11
LT
5968
5969 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5970 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5971 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5972 Doc fix.
5973 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5974 read_minibuf.
5975 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5976 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5977
2e4d132b
KH
59782003-12-03 Kenichi Handa <handa@m17n.org>
5979
5980 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5981 encoding sequence.
5982
3999c705
KH
59832003-12-01 Kenichi Handa <handa@m17n.org>
5984
5985 * composite.c (syms_of_composite): Don't make the compostion hash
5986 table week.
5987
d344ecbb
LT
59882003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5989
5990 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5991 * textprop.c (Fget_char_property_and_overlay): New function.
5992 (syms_of_textprop): Defsubr it.
5993
03d6484e
JD
59942003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5995
019b1f0e
JD
5996 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5997 to compile on terminal configuration.
5998
03d6484e
JD
5999 * fileio.c (Fread_file_name): Check use_file_dialog also before
6000 calling Fx_file_dialog.
6001
6002 * fns.c: use_file_dialog: New variable.
6003 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6004
442d3fd0
KS
60052003-11-29 Kim F. Storm <storm@cua.dk>
6006
6007 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6008 (syms_of_msdos): Don't intern and staticpro them.
6009
0f6a07a8
KS
60102003-11-27 Kim F. Storm <storm@cua.dk>
6011
6012 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6013 coordinates relative to glyph at posn. If glyph is an image,
6014 return that as object at posn. Callers changed.
6015 (mode_line_string, marginal_area_string): Calculate and return
6016 pixel coordinates relative to glyph. Callers changed.
6017
6018 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6019 (marginal_area_string): Fix prototypes.
6020 (window_box_left_offset, window_box_right_offset): Add prototypes.
6021
6022 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6023 Remove prototypes.
6024
6025 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6026
6027 * keyboard.c (make_lispy_position): Add x and y coordinates
6028 relative to the current glyph as 7th element of position.
6029 If glyph is an image, return it in the object element.
6030 (read_key_sequence): Skip checks for keymap property in cases
6031 where POSN_STRING is not a string (e.g. an image).
6032
6033 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6034 (Vshow_text_cursor_in_void): New variable.
6035 (glyph_to_pixel_coords): Don't use negative hpos.
6036 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6037 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 6038 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
6039 (calc_pixel_width_or_height): New aux function, implementing
6040 pixel based artihmetic for glyph widths and heights.
6041 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6042 :width, :height, :align-to, and :ascent, thus allowing these to
6043 be specified in pixels as well as multiples of characters.
6044 Don't produce stretch glyphs with zero width or height.
6045 (get_specified_cursor_type): Declare static.
6046 (get_window_cursor_type): Declare static. Add glyph arg to be
6047 able to know when cursor is on an image; always substitute
6048 hollow-box cursor for filled-box cursor on images, to avoid
6049 negative images and flicker when blinking the cursor.
6050 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6051 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6052 than vertical scroll-bar cursor in display margins.
6053 (note_mouse_highlight): Use non-text cursor rather than text
6054 cursor in fringes and over images in the text area.
6055 Use non-text cursor when mouse pointer is outside editable text,
6056 i.e. in the void after end-of-line or end-of-buffer; this was
6057 already done for W32, but is now standard for all systems --
6058 user can toggle show-text-cursor-in-void to get old behaviour.
6059 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6060 Vdisplay_pixels_per_inch.
6061
00498bfc
AS
60622003-11-25 Andreas Schwab <schwab@suse.de>
6063
6064 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6065 EMACS_INT to not lose bits.
6066 (Ffillarray): Don't set bits beyond the size of a bool vector.
6067
edaa824d
KS
60682003-11-25 Kim F. Storm <storm@cua.dk>
6069
6070 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6071 define this defun on systems that cannot use stderr as lvalue.
6072
74d6f539
GM
60732003-11-24 Gerd Moellmann <gerd@gnu.org>
6074
6075 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6076 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6077 ld's default is incompatible with unexec.
6078
6a1ff3ba
KS
60792003-11-23 Kim F. Storm <storm@cua.dk>
6080
63dc7c6b
KS
6081 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6082 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6083 (Fforce_window_update): New defun.
6084 (syms_of_window): Defsubr it.
6085 (Fset_window_margins, Fset_window_fringes): Doc fix.
6086
6a1ff3ba
KS
6087 * print.c (Fredirect_debugging_output): New defun.
6088 (syms_of_print): Defsubr it.
6089
aef109b7
LT
60902003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6091
6092 * fns.c (Fset_char_table_parent): Doc fix.
6093
6a1ff3ba 60942003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
6095
6096 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6097 for glyph clicked on, rather than (unused) pixel positions.
6098 (mode_line_string, marginal_area_string): Change X and Y args to
6099 pointers for returning actual row/column for glyph clicked on.
6100 Simplify and optimize loops.
6101
aef109b7
LT
6102 * dispextern.h (mode_line_string, marginal_area_string):
6103 Update prototypes.
63ccbe21
KS
6104
6105 * keyboard.c (make_lispy_position): New function for generating
6106 mouse click positions from frame and pixel coordinates.
6107 Enhanced to return buffer position and actual row/column for
6108 events outside the text area using updated mode_line_string and
6109 marginal_area_string functions.
6110 Return left-fringe and right-fringe clicks as such, rather than
6111 clicks in text area.
6112 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6113 pixel_to_glyph_coords, as we never use the results.
6114 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6115 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6116 Eliminate unused code in WHEEL_EVENT handling.
6117 (make_lispy_movement): Use make_lispy_position.
6118
6119 * window.c (coordinates_in_window): Remove redundant tests.
6120 Fix returned X pixel value for left-margin.
6121
6122 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6123 mode_line_string and marginal_area_string parameters.
6124
a64387ee 61252003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 6126
d7107586
SM
6127 * w32.c (struct the_group, getgrgid): Add.
6128 * mac.c (struct my_group, getgrgid): Add.
aef109b7 6129
3dbf3426
LT
61302003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6131
6132 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6133
cae8ddbb 61342003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 6135
d7107586
SM
6136 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6137 include in call to file name handler. Optionally translate numeric
6138 UID and GID to strings. Update docstring.
6139 (directory_files_internal): Add parameter ID-FORMAT.
6140 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6141 include in call to file name handler and call to
6142 directory_files_internal. Update Docstring.
6143 (Fdirectory_files): Add dummy parameter in call to
6144 directory_files_internal.
6145 * lisp.h (Qinteger): Add.
6146 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6147 (Ffile_attributes): Add parameter.
6148 * data.c (Qinteger): Export.
cae8ddbb 6149
2550b848
LT
61502003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6151
3dbf3426 6152 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 6153
88380018
KS
61542003-11-19 Kim F. Storm <storm@cua.dk>
6155
6156 * xdisp.c (init_iterator): Initialize it->start to position
6157 before reseating (in case start position is invisible).
6158 (init_to_row_start): Set it->start to row-start.
6159 (redisplay_window): Accept optional_new_start if start position
6160 is invisible (in which case IT_CHARPOS overshoots PT).
6161 (display_line): Setup row->start from it->start (rather than
6162 it->current which is wrong if first char on line is invisible).
6163 When done, reseat it->start to it->current (= start of next row).
6164 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6165 is only partially visible.
6166
6167 * dispextern.h (struct it): New member start.
6168
854c1a59
SM
61692003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6170
455316e2
SM
6171 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6172 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6173 of block_index outside of the macro call.
6174 (Fgarbage_collect): Remove null code.
6175
6176 * m/amdx86-64.h: Don't redefine XPNTR.
6177
854c1a59
SM
6178 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6179 of VALMASK.
6180
6181 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6182 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6183 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6184
6185 * lisp.h (VALMASK): Only define for non-union type.
6186 (MARKBIT): Remove.
6187 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6188 (XTYPE): Define unconditionally.
6189 (XSETTYPE): Remove one more remnant.
6190 (EQ): Define differently for the union and non-union cases.
6191 (INTMASK): New bit mask.
6192 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6193 (GC_EQ): Delegate to EQ.
6194
6195 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6196
a0c6ef2d
JD
61972003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6198
6199 * xterm.c (x_window_to_scroll_bar): Move check of display to
6200 where window_id is compared.
6201
859492c4
KS
62022003-11-17 Kim F. Storm <storm@cua.dk>
6203
6204 * dispextern.h (struct it): New member first_vpos.
6205
6206 * xdisp.c (start_display): Set it->first_vpos.
6207 (try_window_id): Use first_vpos to start display in first _text_
6208 line if no reusable lines at start of window with header line.
6209
810f2256
JD
62102003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6211
7c402969 6212 * w32fns.c (XPutPixel):
854c1a59
SM
6213 * w32bdf.c (w32_init_bdf_font):
6214 * sunfns.c (sel_read):
6215 * process.c (Fmake_network_process):
6216 * frame.c (store_frame_param):
6217 * fontset.c (Fset_fontset_font):
6218 * emacs.c (shut_down_emacs):
a64387ee 6219 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6220
a32e9bfd
JD
6221 * config.in: Regenerate.
6222
810f2256
JD
6223 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6224 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6225 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6226 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6227 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6228
6229 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6230
6231 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6232 (XTmouse_position, handle_one_xevent): Pass Display* to
6233 x_window_to_scroll_bar.
6234 (x_window_to_scroll_bar): Take a Display* argument.
6235 Check that display for frame is equal to Display* argument.
854c1a59 6236 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6237 x_display_info_for_display instead. Use Display in xev instead
6238 of GDK_DISPLAY.
6239 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6240 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6241 (x_connection_closed): Call xg_display_close for GTK.
6242 (x_term_init): Call xg_display_open for additional displays.
6243 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6244 for GTK.
6245
6246 * xmenu.c (single_menu_item, mouse_position_for_popup)
6247 (x_activate_menubar): Formatting adjustments.
6248
6249 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6250 adjustments.
6251
6252 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6253 (xg_display_close, xg_create_default_cursor)
6254 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6255 handling.
854c1a59
SM
6256 (xg_left_ptr_cursor): Remove.
6257 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6258 cursor here.
6259 (xg_win_to_widget): Take Display* argument, call
6260 gdk_xid_table_lookup_for_display.
6261 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6262 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6263 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6264 in FRAME_X_DISPLAY_INFO.
6265 (xg_get_scroll_id_for_window): Take Display* argument.
6266 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6267 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6268
78819ebb
KS
6269 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6270 Display* argument.
6271 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6272
0b03cc78
JD
62732003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6274
6275 * xterm.c (x_detect_focus_change): Do not change focus frame for
6276 Enter/LeaveNotify if the current focus frame has explicit focus.
6277
77e688fa
KS
62782003-11-14 Kim F. Storm <storm@cua.dk>
6279
6280 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6281 is active and first glyph is only partially visible.
854c1a59 6282
dd429b03
KH
62832003-11-13 Kenichi Handa <handa@m17n.org>
6284
6285 * xdisp.c (select_frame_for_redisplay): New function.
6286 (redisplay_internal): Record also selected_frame for
6287 unwind_redisplay. Call select_frame_for_redisplay before
6288 redrawing each frame.
6289 (unwind_redisplay): Argument changed to a cons.
6290
6d9266f4
LT
62912003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6292
6293 * fns.c (Fstring_to_multibyte): Doc fix.
6294
80060eb3
KH
62952003-11-11 Kenichi Handa <handa@m17n.org>
6296
6297 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6298
74305183
JD
62992003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6300
6301 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6302 program specified positions.
6303
cfda993e
JD
63042003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6305
6306 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6307
df211069
KH
63082003-11-08 Kenichi Handa <handa@m17n.org>
6309
6310 * Makefile.in (lisp): Add kannada.el.
6311 (shortlisp): Likewise.
6312
4307d534
KH
63132003-11-07 Kenichi Handa <handa@m17n.org>
6314
854c1a59
SM
6315 * coding.c (coding_allocate_composition_data):
6316 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6317 (coding_restore_composition): Detect invalid composition data.
6318 Give Fstring and Fvector a Lispy integer, not C int.
6319
854c1a59
SM
63202003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6321
6322 * floatfns.c (Flogb): Don't use VALMASK.
6323
6324 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6325 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6326
6327 * lisp.h (XINT): Move the cast to clarify what is going on.
6328 (GCTYPEMASK, XSETTYPE): Remove.
6329 (XGCTYPE): Make it an alias of XTYPE.
6330
d04103a1
JD
63312003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6332
6333 * xterm.c (x_term_init): Fix formatting.
6334
da18b5ac
JD
63352003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6336
78819ebb
KS
6337 * gtkutil.h (xg_have_tear_offs): Declare.
6338 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6339
6340 * gtkutil.c: Remove variable xg_did_tearoff.
6341 (xg_have_tear_offs): New function.
6342 (tearoff_remove): Just decrease xg_detached_menus.
6343 (tearoff_activate): Increase xg_detached_menus and call
6344 tearoff_remove when tearoff is removed.
854c1a59 6345 (xg_keep_popup): Remove function.
da18b5ac
JD
6346 (create_menus): Give add_tearoff_p as argument to recursive
6347 call to create_menus.
6348 (xg_create_widget): Use variables instead of multiple
6349 strcmp. Tell create_menus to create tear off only for
6350 menu bar menus.
6351 (xg_update_menubar): Change title for a detached menu also.
6352 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6353 of deep_p.
6354 (xg_initialize): Initialize xg_detached_menus, remove
6355 initialization of xg_did_tearoff.
6356
6357 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6358 xg_have_tear_offs returns non-zero.
6359 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6360 call to xg_keep_popup.
6361
64d4923e
AC
63622003-11-01 Andrew Choi <akochoi@shaw.ca>
6363
6364 * macterm.c (XTread_socket): Handle menubar selection and grow
6365 window only for mouseDown events.
854c1a59 6366
6cc8bc07
JD
63672003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6368
6369 * xterm.c (x_term_init): For GTK part, increase x_initialized
6370 to check for more than one display. Use error instead of return 0.
6371
043131c4
AC
63722003-10-31 Andrew Choi <akochoi@shaw.ca>
6373
854c1a59 6374 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6375 (copy_dysymtab): Call it.
6376
bdda99a1
LT
63772003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6378
6379 * eval.c (Fdefvaralias): Doc fix.
6380
800f42ff 63812003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6382
6383 * data.c (Fsetplist): Doc fix.
6384
ef35b389
LK
63852003-10-14 Lute Kamstra <lute@gnu.org>
6386
6387 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6388
ef35b389 63892003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6390
07107abc
KS
6391 * window.c (Fset_window_margins): Simplify arg checking.
6392
f7005886
RS
63932003-10-13 Richard M. Stallman <rms@gnu.org>
6394
6395 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6396 (print_partial_compiled_pattern): Replace assert with a printout.
6397 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6398
6399 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6400
6401 * window.c (Fset_window_margins): Allow only integers as args.
6402 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6403 Doc fixes.
6404
9c0c2af5
LK
64052003-10-13 Lute Kamstra <lute@gnu.org>
6406
6407 * window.c (Fset_window_fringes): Elaborate docstring.
6408
3f080e4e
AC
64092003-10-12 Andrew Choi <akochoi@shaw.ca>
6410
854c1a59 6411 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6412
3f080e4e
AC
6413 * s/darwin.h (GC_MARK_STACK): Define.
6414
0aa513ed
JD
64152003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6416
6417 * window.c (shrink_windows): New function.
6418 (size_window): Call shrink_windows to calculate window sizes when
6419 shrinking frame with more than one window.
6420
6aa8858a
KS
64212003-10-12 Kim F. Storm <storm@cua.dk>
6422
6423 * xdisp.c (compute_fringe_widths): Doc fix.
6424
c2164d91
KH
64252003-10-08 Kenichi Handa <handa@m17n.org>
6426
854c1a59 6427 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6428
f82ac129
KH
64292003-10-07 Kenichi Handa <handa@m17n.org>
6430
6431 * coding.c (Qcoding_system_define_form): New variable.
6432 (syms_of_coding): Intern and staticpro it.
6433 (Fcheck_coding_system): Try to autoload the definition of
6434 CODING-SYSTEM.
6435
9296c947
LT
64362003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6437
6438 * fns.c (Frequire): Doc fix.
6439
c1f0671a
JD
64402003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6441
3d8c3826
JD
6442 * xfns.c (Fx_send_client_event): New function as a base for
6443 manipulating extended window manager hints.
6dc15d98 6444 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6445
068ae0fd
JD
6446 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6447 that function is removed.
6448
6449 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6450 x/y_pixels_outer_diff.
6451 (x_check_expected_move): Calculate move_offset_left/top.
6452
6453 * xterm.h (struct x_output): New members: move_offset_top/left.
6454
854c1a59 6455 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6456 call x_set_offset directly.
6457
6458 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6459
96f09305
JD
6460 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6461
6462 * xterm.c (x_delete_display): Free font names and font_encoder
6463 in dpyinfo->font_table.
6464
854c1a59
SM
6465 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6466 Move xfree of font names to x_delete_display.
96f09305 6467
c1f0671a
JD
6468 * xterm.h (struct x_display_info): New member, wm_type.
6469 (struct x_output): New members, expected_top/left and
6470 check_expected_move.
6471
6472 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6473 is received.
854c1a59
SM
6474 (handle_one_xevent): Rename x_check_expected_move from
6475 x_check_fullscreen_move.
c1f0671a
JD
6476 (x_set_offset): Only add WM decoration sizes to modified_top/left
6477 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6478 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6479 Removed fullscreen specific code. Use check_expected_move,
6480 expected_left/top instead. Also, set wm_type.
6481 (x_term_init): Initialize wm_type to unknown.
6482
6483 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6484 sizes to move_x/y.
6485
be2fdba9
KH
64862003-10-03 Kenichi Handa <handa@m17n.org>
6487
6488 * macterm.c (x_load_font): Clear all members of FONTP before start
6489 filling them.
6490
64912003-10-02 Kenichi Handa <handa@m17n.org>
6492
6493 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6494 before calling find_ccl_program_func. Call find_ccl_program_func
6495 only when fontp->font_encoder is not NULL.
6496
6497 * xterm.c (x_load_font): Clear all members of FONTP before start
6498 filling them.
6499
26a6e439
JPW
65002003-10-03 John Paul Wallington <jpw@gnu.org>
6501
6502 * keymap.c (map_keymap): Don't abort when binding is a vector.
6503
0d4c2dc2
JR
65042003-10-02 Jason Rumney <jasonr@gnu.org>
6505
854c1a59
SM
6506 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6507 Sync dependencies with Makefile.in.
a63cf46f
JR
6508 (alloca.o): Remove.
6509
0d4c2dc2
JR
6510 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6511 filling them.
6512
6513 * w32bdf.c (w32_load_bdf_font): Likewise.
6514
ab8f7d5c
RS
65152003-09-30 Richard M. Stallman <rms@gnu.org>
6516
6517 * term.c (set_tty_color_mode): Calculate current_mode_spec
6518 regardless of value of VAL.
6519
854c1a59 6520 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6521 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6522 Handle over_used when splitting UNDER.
6523
a64387ee 65242003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6525
6526 * regex.c (regex_compile): Free the stack when returning from function.
6527
3413f972
KH
65282003-09-28 Kenichi Handa <handa@m17n.org>
6529
6530 * fontset.c (Finternal_char_font): Change return value to
6531 cons (FONT-NAME . GLYPH-CODE).
6532
a6eeaa81 65332003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6534
6535 * term.c (tty_setup_colors): Treat any negative argument as -1.
6536
f98ddc99
KH
65372003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6538
6539 * process.c (send_process): Delete unused temp_buf.
6540
66c8f1a8
DL
65412003-09-26 Dave Love <fx@gnu.org>
6542
6543 * xterm.c (x_bitmap_mask): Declare.
6544
ca716c26
DL
65452003-09-25 Dave Love <fx@gnu.org>
6546
6547 * Makefile.in (fns.o): Depend on md5.h.
6548
fbe57420
KS
65492003-09-25 Kim F. Storm <storm@cua.dk>
6550
6551 * window.c (set_window_buffer): Fix redisplay problems when
6552 switching between buffers with different display margin widths.
6553
ef6ae4ff
KS
65542003-09-23 Kim F. Storm <storm@cua.dk>
6555
6556 * process.c (set_socket_option): Fix :bindtodevice option.
6557 (Fset_network_process_option): Update process contact list when
6558 setting option succeeds.
6559 (Fmake_network_process): Doc fix.
6560
68e03c1c
DL
65612003-09-23 Dave Love <fx@gnu.org>
6562
7146d1c1 6563 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6564
a6eeaa81 65652003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6566
6567 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6568 color mode is an integer number (it could be -1).
6569
8fe7d8c8
RS
65702003-09-22 Richard M. Stallman <rms@gnu.org>
6571
6572 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6573 in the case where OVER is longer than UNDER.
6574
2f71b5ea
MY
65752003-09-22 Masatake YAMATO <jet@gyve.org>
6576
7146d1c1 6577 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6578 `vertical_type'.
7146d1c1 6579
0c4da023
KS
65802003-09-21 Kim F. Storm <storm@cua.dk>
6581
6582 * frame.c (Vdefault_frame_scroll_bars): New variable.
6583 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6584 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6585 window-system default scroll bar position.
6586
b648413b
KS
6587 * window.c (Fwindow_scroll_bars): Doc fix.
6588
8f5b9e34
JD
65892003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6590
854c1a59 6591 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6592
b0f23edf
RS
65932003-09-19 Richard M. Stallman <rms@gnu.org>
6594
6595 * atimer.h: Don't include lisp.h.
6596 (P_): Define it here (as well as elsewhere).
6597
6598 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6599 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6600
6601 * data.c (Fvariable_binding_locus): New function.
6602 (syms_of_data): defsubr it.
6603 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6604
e1283999
DL
66052003-09-18 Dave Love <fx@gnu.org>
6606
ad5f3636
DL
6607 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6608
e1283999
DL
6609 * process.c (Fnetwork_interface_info): Fix type error.
6610 (Fnetwork_interface_list): Doc fix.
6611 (read_process_output, read_process_output): Delete unused var.
6612
b8c7fd71
KS
66132003-09-17 Kim F. Storm <storm@cua.dk>
6614
6615 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6616 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6617 (Fnetwork_interface_info): Check that ifreq struct has required
6618 fields before accessing them; this requires that those fields are
6619 defined as macros, which may be too restrictive on some platforms,
6620 but it is better than failing on other platforms.
6621 (syms_of_process): Only defsubr above fns when included.
6622
11e0a411
DL
66232003-09-17 Dave Love <fx@gnu.org>
6624
6625 * unexalpha.c: Don't include varargs.h.
6626
e9c50801
KS
66272003-09-17 Kim F. Storm <storm@cua.dk>
6628
6629 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6630 for network process.
6631 (socket_options): Add `:' prefix to option names. Add optbit field.
6632 (set_socket_option): Remove no_error arg and special handling of s < 0.
6633 Return 1<<optbit for known option, 0 for unknown.
6634 Do not interpret 0 as false for boolean option (only nil).
6635 Pass failed option and value to report_file_error.
7146d1c1 6636 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6637 (Fset_network_process_option): New function to set just one option.
6638 (Fmake_network_process): Allow :coding arg to be a cons.
6639 Allow :server arg to be an integer specifying backlog size.
6640 Remove :options arg, and allow options to be specified directly
6641 as :KEY, VALUE pairs. Parse these options before binding socket.
6642 As before, :reuseaddr t is default for a server process, but this
6643 can now be disabled by specifying :reuseaddr nil.
6644 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6645 (init_process): Availability of network options is now checked with
6646 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6647 setup features.
6648 (syms_of_process): Fix defsubr's for the replaced functions.
6649
a0fc3644
DL
66502003-09-16 Dave Love <fx@gnu.org>
6651
6652 * Makefile.in: Depend on coding.h.
6653
6df2a645
KS
66542003-09-14 Kim F. Storm <storm@cua.dk>
6655
6656 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6657 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6658 (syms_of_process): Defsubr them.
6659
6660 * config.in: Regenerate.
7146d1c1
SM
6661
66622003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6663
6664 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6665 * m/news-r6.h (XUNMARK): Remove.
6666 * m/mips.h (XUNMARK): Remove.
6667 * m/mips-siemens.h (XUNMARK): Remove.
6668 * m/iris4d.h (XUNMARK): Remove.
6669 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6670
0930c1a1
SM
66712003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6672
31003b9e
SM
6673 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6674 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6675 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6676 (XTYPE): Use unsigned right-shift.
6677 (XMARKBIT, XMARK, XUNMARK): Remove.
6678
0930c1a1
SM
6679 * alloc.c (init_intervals, init_symbol, init_marker):
6680 Don't preallocate anything.
6681 (Fgarbage_collect, mark_object): Ignore the markbit.
6682
6683 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6684
19bb0fcd 66852003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6686
6687 * xdisp.c (pint2hrstr): New function.
6688 (decode_mode_spec): Add `%i' and `%I' specs.
6689 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6690 for `mode-line-format'.
6691
03bb6a06
AS
66922003-09-07 Andreas Schwab <schwab@suse.de>
6693
6694 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6695 avoid warning.
6696
a6eeaa81 66972003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6698
0930c1a1 6699 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6700
ed159bbf
KS
67012003-09-03 Kim F. Storm <storm@cua.dk>
6702
6703 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6704 change (superseded by 2002-08-30 change); the default blink-off
6705 cursor is now again "no cursor".
6706
fe64a394
JR
67072003-09-01 Jason Rumney <jasonr@gnu.org>
6708
6709 * makefile.w32-in (alloca.o): Remove.
6710 (coding.o): Depend on intervals.h
6711 (emacs.o, bytecode.o): Depend on window.h
6712
c0175e24
DL
67132003-09-01 Dave Love <fx@gnu.org>
6714
6715 * Makefile.in (alloca.o): Remove commands.
6716 (coding.o): Depend on intervals.h composite.h window.h.
6717 (emacs.o): Depend on window.h keyboard.h keymap.h.
6718 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6719 (bytecode.o): Depend on window.h.
6720
a24d4cb2
JR
67212003-08-31 Jason Rumney <jasonr@gnu.org>
6722
4bc2315e
JR
6723 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6724 returned even when font_type is unknown.
6725
a24d4cb2
JR
6726 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6727
9d35adc7
JD
67282003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6729
6730 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6731
6732 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6733 *_offset.
6734
6735 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6736 calculate pixel value.
6737
6f68b035
GM
67382003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6739
0930c1a1
SM
6740 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6741 Don't tell redisplay display is accurate when it's actually been
6742 paused for pending input.
6f68b035 6743
4828b4d7
RS
67442003-08-29 Richard M. Stallman <rms@gnu.org>
6745
6746 * dispnew.c (adjust_glyph_matrix): Call window_box
6747 whenever W is nonzero.
6748
6749 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6750 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6751 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6752 Use indirect_variable to trace thru variable aliases.
6753
6754 * config.in: Updated.
6755
6756 * callint.c (Fcall_interactively): Save and restore
6757 Vthis_command, Vthis_original_command, real_this_command,
6758 and current_kboard->Vlast_command.
6759
6760 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6761
e019878d
GM
67622003-08-29 Gerd Moellmann <gerd@gnu.org>
6763
6764 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6765
85478bc6
KH
67662003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6767
0930c1a1 6768 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6769 (decode_coding_sjis_big5): Likewise.
6770
07ce82d3
JR
67712003-08-27 Jason Rumney <jasonr@gnu.org>
6772
d3703de3
JR
6773 * w32.c (sys_pipe): Protect against file descriptor overflow.
6774
ee4a01d1
JR
6775 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6776
07ce82d3
JR
6777 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6778
a64387ee 67792003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6780
6781 * xfns.c (Vgtk_version_string): New variable.
6782 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6783
a6eeaa81 67842003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6785
0930c1a1 6786 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6787
5459e42a
EZ
6788 * Makefile.in (msdos.o): Depend on intervals.h.
6789
0930c1a1 6790 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6791
231d6cfb
JD
67922003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6793
6794 * xterm.h (struct x_display_info): New fields: client_leader_window
6795 and Xatom_wm_client_leader.
6796
6797 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6798 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6799
6800 * xsmfns.c (create_client_leader_window): New function.
6801 (x_session_initialize): Call create_client_leader_window, take
6802 dpyinfo as argument.
6803
6804 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6805
6806 * Makefile.in (xsmfns.o): Add more depenedencies.
6807
afa88464
DL
68082003-08-21 Dave Love <fx@gnu.org>
6809
6810 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6811
f730033e
KH
68122003-08-21 Kenichi Handa <handa@m17n.org>
6813
6814 * term.c (term_init): Fix previous change; don't rely on the
6815 length of `buffer' if TERMINFO is defined.
6816
6dca786c
DL
68172003-08-20 Dave Love <fx@gnu.org>
6818
6819 * atimer.h: Include lisp.h.
6820
6821 * lisp.h (EMACS_LISP_H): New.
6822 (popup_activated_flag): Don't declare.
6823
6824 * alloca.c: Some merging with gnulib. Change logic and doc
6825 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6826 [DO_BLOCK_INPUT]: Don't include lisp.h.
6827 (xmalloc, xfree): Declare.
6828 (malloc): Don't declare.
6829
0930c1a1 6830 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6831 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6832 atimer.h, blockinput.h.
6833
6834 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6835
78819ebb 6836 * alloca.s: Remove.
6dca786c 6837
3a06a6d9
RS
68382003-08-19 Gerd Moellmann <gerd@gnu.org>
6839
6840 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6841 use -lncurses.
6842
6843 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6844 FreeBSD returns something longer than 2044. Abort if the end of
6845 the buffer is overwritten.
6846
27eeee55
MB
68472003-08-19 Miles Bader <miles@gnu.org>
6848
6849 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6850
2f297815
GM
68512003-08-19 Gerd Moellmann <gerd@gnu.org>
6852
f4446bbf
GM
6853 * alloc.c (lisp_align_malloc): Check for memory full when
6854 allocating ablocks, which also avoids freeing a pointer into an
6855 ablocks structure.
6856
6857 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6858
0930c1a1 6859 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6860
0e7d7aae
RS
68612003-08-16 Richard M. Stallman <rms@gnu.org>
6862
6863 * editfns.c (Fencode_time): Doc fix.
6864
68652003-08-16 David Ponce <david@dponce.com>
6866
6867 * fileio.c (Fwrite_region): Fix conditional expression to issue
6868 the right message.
6869
b6189c3b 68702003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6871
6872 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6873 Set default value to 1.
0e7d7aae 6874
5d551295
KH
68752003-08-15 Kenichi Handa <handa@m17n.org>
6876
6877 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6878 what autoscaled.
6879 (best_matching_font): Once we find a better scalable font, set
6880 non_scalable_has_exact_height_p to 1.
6881 (try_font_list): Call try_alternative_families to try any family
6882 with the given registry.
6883
1661e56b
AS
68842003-08-09 Andreas Schwab <schwab@suse.de>
6885
f29181dc
AS
6886 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6887
1661e56b
AS
6888 * print.c (print_string): Fix printing of multibyte string with
6889 nontrivial printcharfun.
6890
465aa50a
JD
68912003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6892
6893 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6894
6895 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6896
e430e5ba
KH
68972003-07-31 Kenichi Handa <handa@m17n.org>
6898
6899 * process.c (read_process_output): Return the actually read bytes
6900 instead of the result of decoding.
6901
97e7188e
KH
69022003-07-31 Kenichi Handa <handa@m17n.org>
6903
6904 * xterm.h (struct x_bitmap_record): New member have_mask.
6905
6906 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6907 to 0.
6908 (x_create_bitmap_from_file): Likewise.
6909 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6910 (x_destroy_all_bitmaps): Likewise.
6911 (x_create_bitmap_mask): Set have_mask member to 1.
6912
b53094d6
RS
69132003-07-30 Richard M. Stallman <rms@gnu.org>
6914
6915 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6916
631f2082
JD
69172003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6918
6919 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6920
c855f2ca
RS
69212003-07-29 Richard M. Stallman <rms@gnu.org>
6922
6923 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6924 Conditionalize XIM code on HAVE_XIM.
6925
6926 * fns.c (Fclear_string): New function.
6927 (syms_of_fns): defsubr it.
6928
b6189c3b 69292003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6930
0930c1a1 6931 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6932
29ea8ae9
SM
69332003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6934
6935 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6936
6937 * buffer.c (delete_all_overlays): New function.
6938 * buffer.h (delete_all_overlays): Declare.
6939 * coding.c (run_pre_post_conversion_on_str):
6940 * print.c (temp_output_buffer_setup):
6941 * fileio.c (Finsert_file_contents):
6942 * minibuf.c (get_minibuffer): Use it.
6943
1dd7ccf2
AC
69442003-07-22 Andrew Choi <akochoi@shaw.ca>
6945
6946 * unexmacosx.c (unexec_regions_sort_compare):
6947 (unexec_regions_merge): New functions. Sort and merge unexec
6948 regions before dumping them.
6949
f57bd967
DL
69502003-07-22 Dave Love <fx@gnu.org>
6951
6952 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6953
7cdee936
SM
69542003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6955
6956 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6957 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6958 MARKBIT as the gcmarkbit for strings.
6959
e50886d3
RS
69602003-07-21 Richard M. Stallman <rms@gnu.org>
6961
6962 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6963
29ea8ae9 6964 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6965 (syms_of_fns): Corresponding change.
6966
6967 * alloc.c (syms_of_alloc): Doc fixes.
6968
69692003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6970
6971 * s/netbsd.h: Use -Wl syntax.
6972
fdc39b59
RS
69732003-07-17 Richard M. Stallman <rms@gnu.org>
6974
6975 * xterm.c (xim_initialize): Redo 6/24 change.
6976
9c53385f
SM
69772003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6978
6979 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6980 (Fswitch_to_buffer): Don't signal an error when switching to the same
6981 buffer in a dedicated window.
6982
6983 * alloc.c: Use bitmaps for cons, as was done for floats.
6984 (init_float, init_cons): Let the normal code allocate the first block.
6985 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6986 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6987 New macros.
6988 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6989 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6990 (live_cons_p): Check the pointer is not past the `conses' array.
6991 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6992 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6993 (survives_gc_p): Use CONS_MARKED_P and simplify.
6994 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6995
dde13196
PE
69962003-07-13 Paul Eggert <eggert@twinsun.com>
6997
6998 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6999 puts it into BSS instead, at least on Solaris 8 and 9.
7000 This is a valid optimization, and it may occur on other platforms,
7001 so Emacs should not assume that initializing a static variable to
7002 zero puts it into data.
7003 * alloc.c (pure, staticvec):
7004 Initialize these arrays to nonzero, so that they're not
7005 put into BSS by that optimization.
7006
a801bc34
SM
70072003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7008
7009 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7010 (lisp_align_malloc): Use posix_memalign is available.
7011 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7012 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7013 for consistency. Update users.
7014
0c8b2afa
RS
70152003-07-13 Richard M. Stallman <rms@gnu.org>
7016
7017 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7018
668c2ab0
JB
70192003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7020
7021 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7022 and use the Gtk+ function gtk_window_icon_from_file if available.
7023
7024 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7025 handle mask of bitmaps.
7026 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7027 mask property.
7028 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7029
7030 * xterm.h (xg_set_icon): New function.
7031
800bebe3
RS
70322003-07-12 Paul Eggert <eggert@twinsun.com>
7033
7034 * unexelf.c (unexec): Consider a section to precede the .bss
7035 section if its addresses overlap that of .bss.
7036
69e38995
RS
70372003-07-12 Richard M. Stallman <rms@gnu.org>
7038
7039 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7040
7041 * config.in (HAVE_CRTIN): Add #undef.
7042 (INLINE): Really inline only if OPTIMIZE is defined.
7043
7044 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7045 END_FILES_1.
7046 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 7047 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
7048
7049 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
7050 (TERMINFO): Define.
7051 (LIBS_TERMCAP): Define.
7052 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
7053
7054 * xfns.c: Include libpng/png.h instead of png.h.
7055
f1d0c238
AS
70562003-07-11 Andreas Schwab <schwab@suse.de>
7057
7058 * buffer.c (modify_overlay): Update prototype.
7059 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7060 Likewise.
7061
5f6bf5fe
SM
70622003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7063
7064 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7065 (struct interval): Move to intervals.h.
7066 (struct Lisp_Marker): Use EMACS_INT for position info.
7067 (forward_point): Remove prototype of defunct function.
7068 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7069 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7070 (syms_of_textprop, set_text_properties): Remove prototypes that are
7071 already in intervals.h.
7072
7073 * intervals.h (struct interval): Move from lisp.h.
7074 Use EMACS_INT for position and size info.
7075
7076 * coding.c: Include intervals.h for Fset_text_properties.
7077
7078 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7079 position and length information.
7080
2765b457
SM
70812003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7082
7083 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7084 position and length information.
7085
2410d73a
SM
70862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7087
7088 Change overlays_after and overlays_before so the overlays themselves
7089 are linked into lists, rather than using cons cells. After all each
7090 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7091 Lisp_Overlay for free and save up one cons cell per overlay (not
7092 to mention one indirection when traversing the list of overlay).
7093
7094 * lisp.h (struct Lisp_Overlay): New field `next'.
7095
7096 * buffer.h (struct buffer): Change overlays_before and overlays_after
7097 from Lisp lists of overlays to pointers to overlays.
7098
7099 * buffer.c (overlay_strings, recenter_overlay_lists):
7100 Fix typo in eassert in last commit.
7101 (unchain_overlay): New function.
7102 (add_overlay_mod_hooklist): Use AREF.
7103 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7104 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7105 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7106 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7107 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7108 Adjust to new type of overlays_(before|after).
7109
7110 * alloc.c (mark_object): Mark the new `next' field of overlays.
7111 (mark_buffer): Manually mark the overlays_(after|before) fields.
7112
7113 * coding.c (run_pre_post_conversion_on_str):
7114 * editfns.c (overlays_around):
7115 * xdisp.c (load_overlay_strings):
7116 * fileio.c (Finsert_file_contents):
7117 * indent.c (current_column):
7118 * insdel.c (signal_before_change, signal_after_change):
7119 * intervals.c (set_point_both):
7120 * print.c (temp_output_buffer_setup): Use new type for
7121 overlays_(before|after).
7122
04812929
SM
71232003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7124
7125 * buffer.c (report_overlay_modification): Don't run hooks while
7126 traversing the list of overlays.
7127
7128 * buffer.h (struct buffer): Use an int for overlay_center.
7129 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7130 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7131
7132 * buffer.c (reset_buffer, recenter_overlay_lists)
7133 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7134 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7135 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7136 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7137 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7138
7139 * xdisp.c (fast_find_position): Remove unused var.
7140
7141 * cmds.c (Qexpand_abbrev): New sym.
7142 (syms_of_cmds): Initialize it.
7143 (internal_self_insert): Use it to call expand-abbrev.
7144
2e7ecf15
KS
71452003-07-09 Kim F. Storm <storm@cua.dk>
7146
f9711de4 7147 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 7148 was configured with --without-xim.
42f81f64 7149 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 7150
c6de56a0
RS
71512003-07-07 Richard M. Stallman <rms@gnu.org>
7152
7153 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7154
7155 * alloc.c (Fgarbage_collect): Doc fix.
7156
b6189c3b 71572003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
7158
7159 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7160
bfe1a3f7
SM
71612003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7162
04812929
SM
7163 * minibuf.c (read_minibuf): UNGCPRO before returning.
7164 (Ftry_completion, Fall_completions): Doc fix.
7165
bfe1a3f7
SM
7166 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7167 now that `floats' is not the last element of the struct any more.
7168
ee79d1aa
JR
71692003-07-06 Jason Rumney <jasonr@gnu.org>
7170
7171 * w32term.h (ClipboardSequence_Proc): New type.
7172
7173 * w32fns.c (clipboard_sequence_fn): New variable.
7174 (globals_of_w32fns): Initialize it.
7175
7176 * w32select.c (last_clipboard_sequence_number): New variable.
7177 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7178 number if possible.
7179
49723c04
SM
71802003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7181
4698665f
SM
7182 * m/amdx86-64.h (MARKBIT):
7183 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7184 MARKBIT and ARRAY_MARK_FLAG any more.
7185
7186 * m/hp800.h (XSETMARKBIT):
7187 * m/sr2k.h (XSETMARKBIT):
7188 * lisp.h (XSETMARKBIT): Remove unused macro.
7189
49723c04
SM
7190 * lisp.h (mark_object): Change prototype.
7191
7192 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7193 (last_marked): Change accordingly.
7194 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7195 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7196 (mark_buffer): Update calls to mark_object.
7197
7198 * bytecode.c (mark_byte_stack):
7199 * fns.c (sweep_weak_table):
7200 * keyboard.c (mark_kboards): Update calls to mark_object.
7201
1d660eca
JR
72022003-07-06 Jason Rumney <jasonr@gnu.org>
7203
7204 * alloc.c (struct ablock): Only include padding when there is some.
7205
618b5ae4
SM
72062003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7207
7208 * alloc.c (ALIGN): Add casts to simplify usage.
7209 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7210 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7211 (struct ablock, struct ablocks): New types.
7212 (free_ablock): New global var.
7213 (lisp_align_malloc, lisp_align_free): New functions.
7214 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7215 (struct float_block): Reorder and add gcmarkbits.
7216 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7217 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7218 (init_float, make_float): Use lisp_align_malloc.
7219 (free_float, live_float_p): Don't use `type' any more.
7220 (make_float): Use FLOAT_UNMARK to access to mark bit.
7221 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7222 Use FLOAT_MARKED_P to access the mark bit.
7223 (pure_alloc): Simplify use of ALIGN.
7224 (mark_object): Use FLOAT_MARK to access the mark bit.
7225 (gc_sweep): Use new macros to access the float's mark bit.
7226 (init_alloc_once): Init free_ablock.
7227
7228 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7229
3ef06d12
SM
72302003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7231
7232 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7233 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7234 (allocate_buffer): Move.
7235 (string_bytes): Don't mask markbit of `size_byte'.
7236 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7237 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7238 Use the `size' field of buffers (rather than the `name' field) for
7239 the mark bit, as is done for all other vectorlike objects.
7240 Use the new macros to access the mark bit of vectorlike objects.
7241
e81043aa
RS
72422003-06-26 Richard M. Stallman <rms@gnu.org>
7243
7244 * puresize.h (BASE_PURESIZE): Increment base size.
7245
7246 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7247
7248 * xterm.c (xim_initialize): Undo previous change.
7249
2d0834cc
SM
72502003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7251
7252 * alloc.c (survives_gc_p): Simplify.
7253
7254 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7255
7256 * window.c (Fset_window_dedicated_p): Simplify.
7257 (display_buffer_1): Don't raise the win from which minibuf was entered.
7258 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7259 (Fminibuffer_selected_window): Simplify.
7260
7261 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7262
7263 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7264 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7265
7266 * insdel.c (check_markers, adjust_markers_for_delete)
7267 (adjust_markers_for_insert, adjust_markers_for_replace)
7268 (prepare_to_modify_buffer, RESTORE_VALUE):
7269 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7270 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7271 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7272 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7273 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7274 * editfns.c (save_excursion_restore, transpose_markers):
7275 * window.c (delete_window):
7276 * xdisp.c (message_dolog): Update for new types.
7277
d54ae3d8
JD
72782003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7279
a5f696ac
JD
7280 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7281 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7282 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7283
7284 * frame.c (make_frame): Initialize default_face_done_p.
7285
7286 * frame.h (struct frame): Add default_face_done_p.
7287
d54ae3d8
JD
7288 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7289 will be defined.
7290
2336fe58
SM
72912003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7292
7293 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7294 Initialize the new field `gcmarkbit'.
7295 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7296 (mark_interval_tree): Don't mark the tree separately from the nodes.
7297 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7298 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7299 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7300
7301 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7302 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7303 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7304 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7305 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7306
bcea31c2
DL
73072003-06-24 Dave Love <fx@gnu.org>
7308
7309 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7310
7311 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7312 from gnulib.
7313
2601f59e
RS
73142003-06-21 Richard M. Stallman <rms@gnu.org>
7315
7316 * fileio.c (Fwrite_region): Alternate messages
7317 for append and partial write.
7318
7319 * keyboard.c (read_key_sequence): When converting upcase fn key to
7320 downcase, update fkey and keytran so `backspace' gets translated.
7321
7322 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7323
7324 * process.c (wait_reading_process_input): Don't signal SIGIO
7325 in batch mode.
7326
b5d2c621
KH
73272003-06-17 Kenichi Handa <handa@m17n.org>
7328
7329 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7330 composite.h.
7331
7332 * xselect.c: Don't include charset.h, coding.h, composite.h.
7333 (Qforeign_selection): New variable.
7334 (syms_of_xselect): Intern and static it.
7335 (selection_data_to_lisp_data): Return a unibyte string made from
7336 data with `foreign-selection' text property.
7337
6793bc63
SM
73382003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7339
7340 * termhooks.h (EVENT_INIT): New macro.
7341
7342 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7343
7344 * alloc.c (mark_kboards): Move to keyboard.c.
7345
7346 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7347 * xterm.c (x_dispatch_event):
7348 * xmenu.c (find_and_call_menu_selection):
7349 * xdisp.c (handle_tool_bar_click):
7350 * w32menu.c (menubar_selection_callback):
7351 * sysdep.c (kbd_input_ast, read_input_waiting):
7352 * msdos.c (dos_rawgetc):
7353 * macterm.c (mac_check_for_quit_char):
7354 * macmenu.c (menubar_selection_callback):
7355 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7356 data to kbd_buffer_store_event.
7357
b3ea810c
KS
73582003-06-15 Kim F. Storm <storm@cua.dk>
7359
7360 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7361 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7362
b8f75eda
KG
73632003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7364
7365 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7366
ba92ce48
KH
73672003-06-12 Kenichi Handa <handa@m17n.org>
7368
7369 * fileio.c (Fwrite_region): Save and restore restriction.
7370
b80263be
DL
73712003-06-12 Dave Love <fx@gnu.org>
7372
7373 * alloca.c (alloca): Declare arg as size_t.
7374
6793bc63
SM
7375 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7376 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7377
b23c0a83
DL
73782003-06-11 Dave Love <fx@gnu.org>
7379
7380 * search.c (shrink_regexp_cache): Use xrealloc.
7381 (syms_of_search): Use xmalloc.
7382
700e47c2
KS
73832003-06-10 Kim F. Storm <storm@cua.dk>
7384
7385 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7386 Adjust phys_cursor.x to be relative to window box, rather than
7387 text area before checking -- to ensure cursor is redrawn when
7388 exposing window.
7389 Note: This also fixes a similar (older) bug if display margins
7390 are present.
7391
f11aa0b2
KH
73922003-06-06 Kenichi Handa <handa@m17n.org>
7393
7394 * coding.c (encoding_buffer_size): If coding->type is
7395 coding_type_ccl, double magnification on CRLF encoding.
7396
3d143690
JR
73972003-06-06 Jason Rumney <jasonr@gnu.org>
7398
7399 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7400 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7401
7402 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7403 Mac too.
7404
f16205ca
DL
74052003-06-05 Dave Love <fx@gnu.org>
7406
b23c0a83
DL
7407 * strftime.c: Merge changes from gnulib.
7408
f16205ca
DL
7409 * mktime.c (__mktime_internal): Merge changes from gnulib
7410 involving year 69 and dst2.
7411
7412 Changes to merge with gnulib version and be consistent with the
7413 autoconf test:
7414
6793bc63
SM
7415 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7416 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7417 [HAVE_LOCALE_H]: Include locale.h.
7418 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7419
9b87a0bc
KS
74202003-06-05 Kim F. Storm <storm@cua.dk>
7421
7422 * window.c (coordinates_in_window): Convert X and Y to window
7423 relative coordinates inside mode-line and header-line parts.
7424 Convert X and Y to margin area relative coordinates inside left
7425 and right display margin parts.
7426
5a8a15ec
JR
74272003-06-05 Jason Rumney <jasonr@gnu.org>
7428
7429 * w32fns.c (add_system_logical_colors_to_map): New function.
7430 (Fx_open_connection): Use it.
7431
01ed8ff1
SM
74322003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7433
7434 * process.c (allocate_pty): Revert part of the previous patch.
7435 (Faccept_process_output): Simplify.
7436
b427b65d
JR
74372003-06-04 Jason Rumney <jasonr@gnu.org>
7438
7439 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7440
7441 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7442 (lispy_mouse_wheel_names): Remove.
7443 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7444 Always define drag_and_drop_syms.
7445
7446 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7447 WHEEL_EVENT events.
7448
914a8c47
SM
74492003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7450
01ed8ff1
SM
7451 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7452
914a8c47
SM
7453 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7454
adcb132c
JD
74552003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7456
7457 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7458 menu item label.
7459
be781fa7
RS
74602003-06-03 Richard M. Stallman <rms@gnu.org>
7461
7462 * window.c (Fwindow_edges): Doc fix.
7463 (Fwindow_pixel_edges, Fwindow_inside_edges)
7464 (Fwindow_inside_pixel_edges): New functions.
7465 (syms_of_window): defsubr them.
7466
7467 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7468 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7469
914a8c47
SM
74702003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7471
7472 * dispnew.c (Fsit_for): Don't lie about the number of args.
7473
5b07197a
DL
74742003-06-02 Dave Love <fx@gnu.org>
7475
7476 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7477 (syms_of_callproc) <process-environment>: Doc fix.
7478
7479 * doc.c: Use HAVE_FCNTL_H, not USG5.
7480
7481 * xfaces.c (font_rescale_ratio): Fix for K&R.
7482
7483 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7484
7485 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7486
7487 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7488
7489 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7490 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7491
d7107586 7492 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7493
7494 * xmenu.c (ENCODE_MENU_STRING): New.
7495 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7496 Use it.
7497
7498 * coding.h (ENCODE_UTF_8): New.
7499 (Qutf_8): Declare.
7500
7501 * coding.c (Qutf_8): New.
7502 (syms_of_coding): Intern it.
7503
7504 * fns.c: Doc fixes.
7505
7335b336
KH
75062003-06-02 Kenichi Handa <handa@m17n.org>
7507
7508 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7509
914a8c47
SM
75102003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7511
7512 * lread.c (openp): Make sure STR is a string.
7513
9862c135
JR
75142003-06-01 David Ponce <david@dponce.com>
7515
cab27d04 7516 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7517 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7518
7519 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7520 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7521 (discard_mouse_events): Discard WHEEL_EVENT events too.
7522 (lispy_wheel_names, wheel_syms): New.
7523 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7524 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7525 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7526
7527 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7528 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7529 WHEEL_EVENT events.
7530
f984e73e
JPW
75312003-05-31 John Paul Wallington <jpw@gnu.org>
7532
7533 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7534 timer are in lisp/emacs-lisp.
7535
1efcd78f
KH
75362003-05-31 Kenichi Handa <handa@m17n.org>
7537
458c8af4
KH
7538 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7539 region when a buffer is changed to unibyte.
7540
1efcd78f
KH
7541 * charset.h (VALID_LEADING_CODE_P): New macro.
7542 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7543
778e2804
KH
7544 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7545 is nonzero, accept multibyte form of eight-bit-control chars.
7546 (decode_composition_emacs_mule): Likewise.
7547 (decode_coding_emacs_mule): Likewise.
7548 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7549 multibyte form of eight-bit-control chars.
7550
7551 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7552 (Finsert_file_contents): If coding-system-for-read is bound to
7553 Qauto_save_coding, use the coding system emacs-mule with special
7554 setting for recovering a file.
7555 (choose_write_coding_system): On auto saving, use the coding
7556 system emacs-mule with special setting for auto saving.
7557 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7558
034060e4
KH
75592003-05-30 Kenichi Handa <handa@m17n.org>
7560
7561 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7562 properly before calling ccl_driver.
7563
778e2804 7564 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7565
cab27d04 7566 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7567 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7568 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7569
595f5aa5
GM
75702003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7571
7572 * xfaces.c (realize_default_face): Do not abort if lface is
7573 non-existent - reverts change from 2003-05-19.
7574
103e0180
KH
75752003-05-29 Kenichi Handa <handa@m17n.org>
7576
7577 * coding.c (decode_coding_iso2022): Pay attention to the byte
7578 sequence of CTEXT extended segment, and retain those bytes as is.
7579
75802003-05-28 Kenichi Handa <handa@m17n.org>
7581
cab27d04 7582 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7583 of CODING_REPLACEMENT_CHARACTER.
7584 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7585 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7586 check this flag on encoding.
cab27d04
SM
7587 (encode_coding_sjis_big5):
7588 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7589 (Fset_terminal_coding_system_internal):
7590 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7591 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7592
7593 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7594 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7595 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7596
ff6a3bfb 75972003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7598
ff6a3bfb
RS
7599 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7600
7601 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7602
1963c428
KS
76032003-05-28 Kim F. Storm <storm@cua.dk>
7604
7605 * xdisp.c (expose_window): Fix error in calculation of
7606 window relative coordinates of area to redisplay.
7607
2b5d4601
JR
76082003-05-27 Jason Rumney <jasonr@gnu.org>
7609
7610 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7611
1c64a4a2
JB
76122003-05-27 David Ponce <david@dponce.com>
7613
7614 Handle W32 mouse wheel events as mouse click events, like in X.
7615
7616 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7617 MOUSE_WHEEL_EVENT anymore.
7618
7619 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7620 Scrolling down/up the mouse wheel is respectively mapped to mouse
7621 button 4 and 5.
7622 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7623 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7624 WM_MOUSEWHEEL events.
7625
2d031b89
AS
76262003-05-27 Andreas Schwab <schwab@suse.de>
7627
20464fdf
AS
7628 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7629
2d031b89
AS
7630 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7631 partially visible line.
7632
7633 * alloc.c (Fgarbage_collect): Fix last change.
7634
97bc76d4
JPW
76352003-05-26 John Paul Wallington <jpw@gnu.org>
7636
7637 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7638
56613f06
SM
76392003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7640
7641 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7642 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7643
7644 * window.h (window_box_text_cols): Declare.
7645
7646 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7647 (x_draw_vertical_border): Remove unused var `f'.
7648
7649 * xfaces.c (build_scalable_font_name): Remove `unused var
7650 pixel_size' warning.
7651
7652 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7653
7654 * unexelf.c (unexec): Remove `unused var n' warning.
7655
7656 * strftime.c (my_strftime_localtime_r): Remove `defined but
7657 unused' warning.
7658
7659 * process.c (allocate_pty): Remove `unused var stb' and
7660 `cp might be used uninitialized' warnings.
7661
7662 * dispnew.c (mode_line_string): Remove unused var `f'.
7663
7664 * coding.c (find_safe_codings): Remove unused var `i'.
7665
7666 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7667
7668 * buffer.c (Fkill_buffer): Remove unused var `list'.
7669
7670 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7671
93421a1f
JD
76722003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7673
7674 * frame.c (make_frame): Condition want_fullscreen with
7675 HAVE_WINDOW_SYSTEM.
7676
c4b8aebc
JB
76772003-05-25 Juanma Barranquero <lektu@terra.es>
7678
7679 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7680 (Fwindow_scroll_bars): Fix typo in docstring.
7681
0416870b
KS
76822003-05-24 Kim F. Storm <storm@cua.dk>
7683
7684 The following changes serve several purposes:
7685
7686 1) Swap the position of fringes and display margins in windows, i.e.
7687 the fringes are now displayed between the margins and the text area
7688 (by default).
7689
7690 2) Allow fringe and scroll bar parameters to be set per-buffer and
7691 per-window (like display margins). Such settings are now stored
7692 in window configurations, preserved when frames are resized, and
9018a88e 7693 copied when windows are split vertically or horizontally.
0416870b
KS
7694 Several bugs related to display margins have been fixed.
7695
7696 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7697
0416870b
KS
7698 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7699 rather than FRAME_WIDTH (FRAME_FONT (f)).
7700
7701 5) Introduce a consistent naming of variables, members and macros
7702 depending on whether their value is measured in pixels or in
7703 canonical columns/lines. Pixel dimensions are named *_width and
7704 *_height, while canonical columns/lines are named *_cols and
7705 *_lines. Pixel positions are named *_x and *_y, while column/line
7706 positions are named *_col and *_line.
7707
7708 6) Consolidate more of the X, W32, and MAC gui code by moving
7709 common data into struct frame, and generalize it for the non-gui
7710 case by using suitable defaults.
7711
7712 7) Cleanup and consolidate the macros controlling frame and window
7713 layout into frame.h and window.h, and generalize the use of the
7714 various window_box_* functions (enhanced to handle the new fringe
7715 position and the per-window fringe and scroll bar settings).
7716
7717 * frame.h (struct frame): Rename members height to text_lines,
7718 width to text_cols, window_height to total_lines, window_width to
7719 total_cols, new_height to new_text_lines, new_width to
7720 new_text_cols. All uses changed.
7721 (struct frame): New members which consolidate common members of
7722 x_output, w32_output, and mac_output structures: left_pos,
7723 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7724 win_gravity, size_hint_flags, border_width, internal_border_width,
7725 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7726 want_fullscreen. All uses changed.
7727 (struct frame): New member column_width contaning the canonical
7728 column width, analogue to line_height. All uses changed.
7729 (struct frame): Rename members scroll_bar_pixel_width to
7730 config_scroll_bar_width, and scroll_bar_cols to
7731 config_scroll_bar_cols. All uses changed.
7732 (struct frame): New member scroll_bar_actual_width which
7733 consolidates and renames the vertical_scroll_bar_extra member of
7734 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7735 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7736 from x/w32/macterm.h files. All uses changed. Also change code
7737 which referred to f->output_data...->pixel_height.
cab27d04 7738 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7739 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7740 which referred to f->output_data...->pixel_width.
cab27d04 7741 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7742 Also change code which referred to f->height.
cab27d04 7743 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7744 Also change code which referred to f->width.
7745 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7746 to update new_text_lines and new_text_cols members directly.
cab27d04 7747 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7748 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7749 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7750 FRAME_SCROLL_BAR_COLS. All uses changed.
7751 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7752 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7753 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7754 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7755 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7756 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7757 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7758 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7759 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7760 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7761 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7762 Unconditionally return line_height member (it now has proper value
7763 also for non-window frames).
7764 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7765 return new column_width member (rather than the default font width).
7766 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7767 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7768 from x/w32/macterm.h files. Unconditionally return corresponding
7769 member of frame structure (they now have proper values also for
7770 non-window frames).
cab27d04 7771 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7772 Calculate return value from left and right widths.
7773 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7774 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7775 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7776 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7777 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7778 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7779 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7780 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7781 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7782 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7783 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7784 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7785 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7786 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7787 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7788 consolidated from x/mac/w32term.h.
cab27d04 7789 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7790 consolidated from x/mac/w32term.h.
cab27d04 7791 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7792 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7793 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7794 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7795
7796 * window.h (struct window): Rename members left to left_col,
7797 top to top_line, height to total_lines, width to total_cols,
7798 left_margin_width to left_margin_cols, right_margin_width to
7799 right_margin_cols, orig_height to orig_total_lines, orig_top to
7800 orig_top_line. All uses changed.
7801 (struct window): New members left_fringe_width, right_fringe_width,
7802 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7803 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7804 New macros primarily used to simplify other macros.
7805 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7806 referred to XINT (w->width).
7807 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7808 referred to XINT (w->height).
7809 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7810 referred to XINT (w->width) * canon_x_unit.
7811 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7812 referred to XINT (w->height) * canon_y_unit.
7813 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7814 referred to XINT (w->left).
cab27d04 7815 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7816 all uses and code that referred to XINT (w->left) + XINT (w->width).
7817 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7818 referred to XINT (w->top).
7819 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7820 referred to XINT (w->top) + XINT (w->height).
7821 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7822 referred to XINT (w->left) * canon_x_unit.
7823 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7824 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7825 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7826 referred to XINT (w->top) * canon_y_unit.
7827 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7828 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7829 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7830 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7831 All uses changed.
cab27d04 7832 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7833 All uses changed.
cab27d04 7834 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7835 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7836 Do not exclude left fringe width.
cab27d04 7837 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7838 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7839 Do not exclude fringe widths.
7840 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7841 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7842 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7843 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7844 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7845 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7846 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7847 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7848 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7849 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7850 New macros. Change code which referenced corresponding
7851 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7852 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7853 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7854 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7855 allow per-window scroll-bar settings.
7856 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7857 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7858 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7859 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7860 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7861 FRAME_SCROLL_BAR_WIDTH.
7862 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7863 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7864 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7865 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7866 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7867 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7868 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7869 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7870 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7871 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7872 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7873 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7874 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7875 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7876 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7877 (window_from_coordinates): Update prototype.
7878 (Fset_window_buffer): Update EXFUN.
7879 (set_window_buffer): Update prototype.
9018a88e 7880
0416870b 7881 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7882 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7883 changed.
7884 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7885 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7886 internal_border_width is now set to 0 for non-window frames.
7887 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7888 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7889 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7890 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7891 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7892 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7893 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7894 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7895 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7896 Move to window.h and renamed [see window.h changes].
0416870b
KS
7897 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7898 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7899 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7900 Use WINDOW_TOTAL_LINES.
0416870b
KS
7901 (frame_update_line_height): Remove prototype.
7902
7903 * buffer.h (struct buffer): Rename members measured in columns:
7904 left_margin_width to left_margin_cols, right_margin_width to
7905 right_margin_cols. All uses changed.
7906 New members left_fringe_width, right_fringe_width,
7907 fringes_outside_margins for per-buffer fringe settings.
7908 New members scroll_bar_width and vertical_scroll_bar_type for
7909 per-buffer scroll bar settings.
7910
7911 * buffer.c (init_buffer_once): Set buffer_defaults and
7912 buffer_local_flags for new buffer-local variables
7913 left_fringe_width, right_fringe_width, fringes_outside_margins,
7914 scroll_bar_width, and vertical_scroll_bar_type.
7915 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7916 default-* variables for them.
7917
7918 * dispnew.c: Make (many) trivial substitutions for renamed and
7919 new macros in dispextern.h, frame.h and window.h.
7920 (mode_line_string): No need to adjust width for mode lines, as it
7921 is already adjusted by the caller.
7922 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7923
0416870b
KS
7924 * frame.c: Make (many) trivial substitutions for renamed and
7925 new macros in dispextern.h, frame.h and window.h.
7926 (make_frame): Initialize left_fringe_width, right_fringe_width,
7927 fringe_cols, scroll_bar_actual_width, border_width,
7928 internal_border_width, column_width, line_height, x_pixels_diff,
7929 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7930 members with values suitable for a non-window frames.
7931
7932 * gtkutil.c: Make (many) trivial substitutions for renamed and
7933 new macros in dispextern.h, frame.h and window.h.
9018a88e 7934
0416870b
KS
7935 * indent.c: Make (few) trivial substitutions for renamed and
7936 new macros in dispextern.h, frame.h and window.h.
7937
7938 * keyboard.c: Make (many) trivial substitutions for renamed and
7939 new macros in dispextern.h, frame.h and window.h.
7940 (make_lispy_event): Use window positions returned from
7941 window_from_coordinates when constructing the lisp event for
7942 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7943 (incorrect) values locally.
7944 (make_lispy_movement): Use window positions returned from
7945 window_from_coordinates when constructing the lisp event, rather
7946 than calculating (incorrect) values locally.
7947
7948 * scroll.c: Make (some) trivial substitutions for renamed and
7949 new macros in dispextern.h, frame.h and window.h.
7950
7951 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7952 scroll-bars.
7953
7954 * sysdep.c: Make (few) trivial substitutions for renamed and
7955 new macros in dispextern.h, frame.h and window.h.
7956
7957 * term.c: Make (some) trivial substitutions for renamed and
7958 new macros in dispextern.h, frame.h and window.h.
7959
7960 * widget.c: Make (few) trivial substitutions for renamed and
7961 new macros in dispextern.h, frame.h and window.h.
7962
7963 * window.c: Make (many) trivial substitutions for renamed and
7964 new macros in dispextern.h, frame.h and window.h.
7965 (make_window): Initialize new members
7966 left_margin_cols, right_margin_cols, left_fringe_width,
7967 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7968 and vertical_scroll_bar_type.
cab27d04 7969 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7970 and per-window fringes and scroll-bars.
0416870b 7971 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7972 frame's internal_border_width (the effect normally negible since
0416870b
KS
7973 the internal_border_width is typically 0 or 1 pixel, but very
7974 noticeable for an internal_border_width of e.g. 25 pixels).
7975 Upon successful return (other than ON_NOTHING), the coordinates
7976 are now always properly converted to window relative for the
7977 given display element.
7978 (window_from_coordinates): Add new parameters wx and wy to
7979 return the window relative x and y position in the returned
7980 window and part. A null arg means, don't return the position.
7981 All callers changed.
7982 (adjust_window_margins): New function which may reduce the width
7983 of the display margins if a window's text area is too small after
7984 resizing or splitting windows.
7985 (size_window): Fix bug that did not account for display margin
7986 widths when checking the minimum width of a window; use
7987 adjust_window_margins.
7988 (set_window_buffer): Call Fset_window_fringes and
7989 Fset_window_scroll_bars to setup per-window elements.
7990 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7991 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7992 (e.g. after splitting a window or resizing the frame).
7993 All callers changed.
0416870b
KS
7994 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7995 (Fsplit_window): Duplicate original window's display margin,
7996 fringe, and scroll-bar settings; then call Fset_window_buffer with
7997 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7998 window to only preserve the display margins in one of the windows.
c4b8aebc 7999 When splitting horizontally, call adjust_window_margins on both
0416870b 8000 windows to ensure that the text area of the new windows is non too
f9711de4 8001 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
8002 width of the split window was less than the width of the display
8003 margins.
cab27d04 8004 (window_box_text_cols): Rename from window_internal_width.
9018a88e 8005 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
8006 Fix bug that caused vertical separator to be subtracted also on
8007 window frames. Fix another bug that did not reduce the returned
8008 value by the columns used for display margins.
8009 (window_scroll_line_based): Fix bug related to scrolling too much
8010 when display margins are present (implicitly fixed by the fix to
8011 window_box_text_cols).
8012 (scroll_left, scroll_right): Fix bug related to scrolling too far
8013 by default when display margins are present (implicitly fixed by
8014 the fix to window_box_text_cols).
8015 (struct saved_window): Rename members left to left_col, top to
8016 top_line, width to total_cols, height to total_lines, orig_top to
8017 orig_top_line, orig_height to orig_total_lines. All uses changed.
8018 New members left_margin_cols, right_margin_cols,
8019 left_fringe_width, right_fringe_width, fringes_outside_margins,
8020 scroll_bar_width, and vertical_scroll_bar_type for saving
8021 per-window display elements.
8022 (Fset_window_configuration): Restore display margins, fringes,
8023 and scroll bar settings. This fixes a bug which caused display
8024 margins to be discarded when saving and restoring a window
8025 configuration.
8026 (save_window_save): Save display margins, fringes, and scroll bar
8027 settings. This fixes a bug which caused display margins to be
8028 discarded when saving and restoring a window configuration.
8029 (Fset_window_margins): Do nothing if display margins are not
8030 really changed. Otherwise, call adjust_window_margins to ensure
8031 the text area doesn't get too narrow. This fixes a bug which
f9711de4 8032 could cause Emacs to trap if setting display margins wider than
0416870b
KS
8033 the width of the window.
8034 (Fset_window_fringes): New defun to allow user to specifically set
8035 this window's fringe widths and position vs. display margins.
cab27d04 8036 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
8037 (Fset_window_scroll_bars): New defun to allow user to specifically
8038 set this window's scroll bar width and position.
8039 (Fwindow_scroll_bars): New defun to return window's actual scroll
8040 bar settings.
8041 (compare_window_configurations): Also compare display margins,
8042 fringes, and scroll bar settings.
8043 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8044
8045 * xdisp.c: Make (many) trivial substitutions for renamed and
8046 new macros in dispextern.h, frame.h and window.h.
8047 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 8048 and new fringe vs. display margin position. Note that returned
0416870b
KS
8049 value is no longer guaranteed to be a whole multiple of the frame
8050 column width, since per-window fringes may now be any width.
8051 (window_box_left_offset): New function like window_box_left, but
8052 value is relative to left border of window (rather than frame).
8053 (window_box_right_offset): New function like window_box_right,
8054 but value is relative to left border of window.
8055 (window_box_left): Adapt to per-window fringes and scroll bars,
8056 and new fringe vs. display margin position. Simplify by using
8057 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8058 (window_box): Allow null args for unnecessary return values;
8059 change/simplify relevant callers.
8060 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
8061 and new fringe vs. display margin position.
8062 Use window_box_left_offset and window_box_right_offset
0416870b 8063 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
8064 scroll bars, and new fringe vs. display margin position.
8065 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
8066 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8067 fringe vs. display margin position.
8068 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
8069 (redisplay_window): Adapt to per-window scroll bars.
8070 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
8071 bars, and new fringe vs. display margin position.
8072 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 8073 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
8074 bars, and new fringe vs. display margin position. Fix bug which
8075 increased total width of full_width rows by width of scroll bars
8076 although window's total width already includes that.
8077 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8078 (expose_area): Simplify using window_box_left_offset.
8079 (x_draw_vertical_border): Handle per-window scroll bar settings,
8080 mixing windows with left, right and no scroll bars.
8081
8082 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8083 where it's used in x_list_fonts (for clarity).
8084 (frame_update_line_height): Remove unused function; functionality
8085 is now done directly when setting the default font in x_set_font.
8086
8087 * xfns.c: Make (many) trivial substitutions for renamed and
8088 new macros in dispextern.h, frame.h and window.h.
8089
8090 * xmenu.c: Make (some) trivial substitutions for renamed and
8091 new macros in dispextern.h, frame.h and window.h.
8092
8093 * xterm.h (struct x_output): Move members left_pos, top_pos,
8094 border_width, pixel_height, pixel_width, line_height,
8095 internal_border_width, vertical_scroll_bar_extra,
8096 left_fringe_width, right_fringe_width, fringe_cols,
8097 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8098 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8099 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8100 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8101 (PIXEL_WIDTH, PIXEL_HEIGHT)
8102 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8103 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8104 frame.h and renamed [see frame.h changes].
8105 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8106 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8107 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8108 and renamed [see frame.h changes].
9018a88e 8109
0416870b
KS
8110 * xterm.c: Make (several) trivial substitutions for renamed and
8111 new macros in dispextern.h, frame.h and window.h.
cab27d04 8112 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8113 (scroll_run): Adapt to new fringe position.
8114 (glyph_rect): Use window coordinates returned from
8115 window_from_coordinates rather than frame_to_window_pixel_xy.
8116 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8117 scroll-bars.
8118 (handle_one_xevent): Simplify a USE_GTK conditional.
8119 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8120 (fringes are now inside margins, i.e. always in the clipping area).
8121 All callers changed.
8122 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8123 directly, then call compute_fringe_widths. Don't call
8124 frame_update_line_height.
8125
8126 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8127 border_width, pixel_height, pixel_width, line_height,
8128 internal_border_width, vertical_scroll_bar_extra,
8129 left_fringe_width, right_fringe_width, fringe_cols,
8130 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8131 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8132 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8133 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8134 (PIXEL_WIDTH, PIXEL_HEIGHT)
8135 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8136 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8137 frame.h and renamed [see frame.h changes].
8138 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8139 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8140 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8141 and renamed [see frame.h changes].
9018a88e 8142
0416870b
KS
8143 * w32term.c: Make (several) trivial substitutions for renamed and
8144 new macros in dispextern.h, frame.h and window.h.
cab27d04 8145 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8146 (glyph_rect): Use window coordinates returned from
8147 window_from_coordinates rather than frame_to_window_pixel_xy.
8148 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8149 scroll-bars.
8150 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8151 (fringes are now inside margins, i.e. always in the clipping area).
8152 All callers changed.
8153 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8154 directly, then call compute_fringe_widths. Don't call
8155 frame_update_line_height.
8156
8157 * w32console.c: Make (few) trivial substitutions for renamed and
8158 new macros in dispextern.h, frame.h and window.h.
8159
8160 * w32fns.c: Make (many) trivial substitutions for renamed and
8161 new macros in dispextern.h, frame.h and window.h.
8162
8163 * w32menu.c: Make (few) trivial substitutions for renamed and
8164 new macros in dispextern.h, frame.h and window.h.
8165
8166 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8167 border_width, pixel_height, pixel_width, line_height,
8168 internal_border_width, vertical_scroll_bar_extra,
8169 left_fringe_width, right_fringe_width, fringe_cols,
8170 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8171 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8172 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8173 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8174 (PIXEL_WIDTH, PIXEL_HEIGHT)
8175 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8176 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8177 frame.h and renamed [see frame.h changes].
8178 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8179 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8180 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8181 and renamed [see frame.h changes].
9018a88e 8182
0416870b
KS
8183 * macterm.c: Make (several) trivial substitutions for renamed and
8184 new macros in dispextern.h, frame.h and window.h.
cab27d04 8185 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8186 (glyph_rect): Use window coordinates returned from
8187 window_from_coordinates rather than frame_to_window_pixel_xy.
8188 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8189 scroll-bars.
8190 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8191 (fringes are now inside margins, i.e. always in the clipping area).
8192 All callers changed.
8193 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8194 directly, then call compute_fringe_widths. Don't call
8195 frame_update_line_height.
8196
8197 * macfns.c: Make (several) trivial substitutions for renamed and
8198 new macros in dispextern.h, frame.h and window.h.
9018a88e 8199 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8200
8201 * macmenu.c: Make (few) trivial substitutions for renamed and
8202 new macros in dispextern.h, frame.h and window.h.
8203
8204 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8205 and line_height, and use corresponding new members in struct
8206 frame. All uses changed.
8207 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8208 superseeded by corresponding macros in frame.h.
8209
8210 * msdos.c: Make (several) trivial substitutions for renamed and
8211 new macros in dispextern.h, frame.h and window.h.
8212 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8213 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8214 (internal_terminal_init): No need to initialize line_height here;
8215 it now defaults to 1.
8216
9018a88e
SM
82172003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8218
8219 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8220 dropping `down' events.
8221
016bd3c0
AS
82222003-05-24 Andreas Schwab <schwab@suse.de>
8223
8224 * coding.c (find_safe_codings): Fix last change.
8225
4dacadcc
TTN
82262003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8227
8228 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8229
319830ce
SM
82302003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8231
9018a88e
SM
8232 * xdisp.c (display_mode_element): Increase max depth.
8233 Simplify the error handling code. Use a different error string
8234 for the case where we hit the depth limit.
8235
319830ce
SM
8236 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8237
8238 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8239
82402003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8241
8242 * intervals.c (get_local_map): Don't get char-property of previous
8243 point any more: get_pos_property already does it and better.
8244
c67de8ba
DL
82452003-05-21 Dave Love <fx@gnu.org>
8246
8247 [Merged from unicode branch.]
8248
8249 * xfns.c (x_window, x_window): Use use_xim.
8250
8251 * xterm.c (use_xim): Initialize.
8252 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8253 (x_term_init): Maybe set use_xim.
8254
8255 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8256
edd3ff1d
JR
82572003-05-21 Jason Rumney <jasonr@gnu.org>
8258
8259 * unexw32.c (_start): Remove _fmode initialization.
8260
8261 * emacs.c (main) [WINDOWSNT]: Move it here.
8262
463f55ee
DL
82632003-05-20 Dave Love <fx@gnu.org>
8264
8265 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8266
af253914
RS
82672003-05-19 Richard M. Stallman <rms@gnu.org>
8268
8269 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8270 as value for QCfont attribute.
8271 (realize_default_face): lface should already exist; crash if not.
8272 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8273
8274 * frame.c (Fignore_event): Doc fix.
8275
1d211019
KH
82762003-05-19 Kenichi Handa <handa@m17n.org>
8277
8278 * coding.c (decode_coding_string): Handle post-read-conversion
8279 even if the coding doesn't require decoding.
8280
4dd68254
RS
82812003-05-18 Richard M. Stallman <rms@gnu.org>
8282
8283 * callproc.c (Fcall_process_region): Doc fix.
8284
14d87dc9
SM
82852003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8286
deca5d96
SM
8287 * lread.c (Fload): Print a message if package is obsolete.
8288
14d87dc9
SM
8289 * window.c (Fselect_window): Add optional `norecord' arg.
8290 (select_window_1): Fold into Fselect_window.
8291 (select_window_norecord): New function.
8292 (temp_output_buffer_show): Use it. Preserve current buffer.
8293
8294 * window.h (Fselect_window): Update declaration.
8295
8296 * window.c (delete_window, Fother_window, Fset_window_configuration):
8297 * minibuf.c (read_minibuf):
8298 * macterm.c (x_new_focus_frame):
8299 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8300 * callint.c (Fcall_interactively):
8301 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8302
8303 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8304
78f52183
DK
83052003-05-17 David Kastrup <dak@gnu.org>
8306
8307 * process.c (read_process_output): Back out change from 2003-03-09.
8308
14d87dc9
SM
83092003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8310
8311 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8312
8313 * textprop.c (text_property_stickiness): New arg `buffer'.
8314
8315 * intervals.h (text_property_stickiness): New arg `buffer'.
8316 (get_pos_property): Declare.
8317
8318 * intervals.c (get_local_map): Use get_pos_property, to obey
8319 stickiness and empty overlays.
8320 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8321 (merge_properties, intervals_equal, merge_properties_sticky):
8322 Use XCAR, XCDR.
8323 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8324
1fd1cc2f
RS
83252003-05-17 Richard M. Stallman <rms@gnu.org>
8326
4f9f637a
RS
8327 * minibuf.c (read_minibuf): If buffer is empty, record the default
8328 in the history.
8329 (Fminibuffer_complete_word): When deleting the overlap, take account
8330 of its real position.
8331
8332 * fns.c (map_char_table): Fix previous change.
8333
1fd1cc2f
RS
8334 * syntax.c (find_defun_start):
8335 When open_paren_in_column_0_is_defun_start,
8336 return beginning of buffer.
8337
8338 * lisp.h (map_char_table): Declare added arg.
8339
8340 * fns.c (map_char_table): New arg TABLE gets the master table.
8341 All calls changed.
8342 Process default and inheritance, resorting to Faref if necessary.
8343
8344 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8345 (Faccessible_keymaps): Pass new arg to map_char_table.
8346
8347 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8348
8349 * casetab.c (set_case_table): Pass new arg to map_char_table.
8350
8351 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8352
8353 * lisp.h (specbinding_func): New typedef.
8354 (struct specbinding): Use specbinding_func, to put the `volatile'
8355 in the right place.
8356
8357 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8358 to avoid GCC warning.
14d87dc9 8359
b6189c3b 83602003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8361
14d87dc9 8362 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8363
35fb885d
SM
83642003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8365
8366 * keyboard.c (apply_modifiers): Don't fill the other cache.
8367
9a274fbd
SM
83682003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8369
c55b5fad
SM
8370 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8371
9a274fbd
SM
8372 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8373 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8374 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8375 (Fset_window_configuration, Fcurrent_window_configuration)
8376 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8377 (Fpos_visible_in_window_p, mark_window_cursors_off)
8378 (window_internal_height, window_internal_width, Frecenter)
8379 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8380 (replace_buffer_in_all_windows, init_window_once, init_window)
8381 (syms_of_window, keys_of_window): Move from lisp.h.
8382 * lisp.h: Move window.c declarations to window.h.
8383
8384 * bytecode.c: Include window.h.
8385 * emacs.c: Include window.h.
8386
14d87dc9 8387 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8388 (keyremap): Add `parent' field.
8389 (keyremap_step): Use it. Remove `parent' argument.
8390 (read_key_sequence): Setup and use the new `parent' field.
8391
fd93e331
SM
83922003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8393
8394 * keyboard.c (adjust_point_for_property): Ensure termination.
8395
1c4001a1
SM
83962003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8397
8398 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8399 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8400 duplicated handling of function-key-map and key-translation-map
8401 in read_key_sequence.
8402 (read_key_sequence): Use them.
8403
8404 * keyboard.c (adjust_point_for_property): Try harder to move point
8405 to the non-sticky end of an invisible property.
8406
8407 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8408 property intangible as well.
8409
780379b1
AS
84102003-05-10 Andreas Schwab <schwab@suse.de>
8411
8412 * xmenu.c (single_menu_item): Change last parameter to void* to
8413 avoid warning.
8414
ca2de342
RS
84152003-05-09 Richard M. Stallman <rms@gnu.org>
8416
8417 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8418 Bind Qinhibit_modification_hooks to t so there will be no GC.
8419 Rename local `tem' to `save_deactivate_mark'.
8420
8421 * eval.c (specpdl_ptr): Declare volatile.
8422 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8423 before doing the work of unbinding it.
8424
8425 * lisp.h (struct specbinding): Declare elements volatile.
8426 (specpdl_ptr): Declare volatile.
8427
8428 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8429
8430 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8431 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8432
347003be
DL
84332003-05-08 Dave Love <fx@gnu.org>
8434
8435 * coding.c (Vlast_coding_system_used): Doc fix.
8436
5adcec23
JR
84372003-05-07 Jason Rumney <jasonr@gnu.org>
8438
8439 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8440 when system does not support them.
8441
5fe3b8a4
SM
84422003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8443
8444 * fileio.c (Qwrite_region_annotate_functions): New var.
8445 (build_annotations): Use it to process the global part of the hook.
8446 (syms_of_fileio): Init and staticpro it.
8447
8448 * keyboard.c (safe_run_hooks_error): Display a message instead of
8449 silently ignoring the error.
8450
84512003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8452
8453 * keyboard.c (input_available_signal): Mark static.
8454 (menu_bar_items): Use map_keymap.
8455 (menu_bar_one_keymap): Remove.
8456 (menu_bar_item): Adjust arglist (for use in map_keymap).
8457 Properly hide a second binding when not both are keymaps.
8458
8459 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8460 (single_keymap_panes): Use it and map_keymap.
8461 (single_menu_item): Use skp as well.
8462
8463 * keymap.h (map_keymap_function_t): New type.
8464 (map_keymap): Declare.
8465
8466 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8467 (map_keymap_call, Fmap_keymap): New functions.
8468 (syms_of_keymap): Defsubr map-keymap.
8469
4b1b4443
JD
84702003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8471
8472 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8473 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8474 ..._with_mnemonic functions for menu items.
8475
1f816871
KH
84762003-05-01 Kenichi Handa <handa@m17n.org>
8477
8478 * coding.c (coding_system_accept_latin_extra_p): Delete this
8479 function.
8480 (find_safe_codings): Pay attention to
8481 the property tranlsation-table-for-encode of each codings.
8482 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8483
5ed6ba5b
SM
84842003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8485
8486 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8487
32c06229
SM
84882003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8489
8490 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8491
8492 * lisp.h (CHECK): Wrap args in parenthesis.
8493 (specbind): Fix doc: symbol = Qnil is not supported any more.
8494
8495 * bytecode.c (Fbyte_code) <unwind-protect>:
8496 Use Fprogn rather than 0 and Qnil.
8497
8498 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8499 `double', and `triple' modifiers as well.
8500
ed3c3314
RS
85012003-04-30 Richard M. Stallman <rms@gnu.org>
8502
8503 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8504
8505 * alloc.c (abort_on_gc): New variable.
8506 (Fgarbage_collect): Abort if abort_on_gc is set.
8507
8508 * lisp.h (abort_on_gc): Add decl.
8509
8510 * eval.c (Fsignal): Clear abort_on_gc.
8511
8512 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8513 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8514
8515 * xdisp.c (move_it_vertically_backward): Do the final big else
8516 even if nlines is 0.
8517
8518 * xdisp.c (redisplay_internal): Finish the per-frame loop
8519 even if redisplay is suspended by input.
8520
0b325c12
AC
85212003-04-24 Andrew Choi <akochoi@shaw.ca>
8522
8523 * macterm.c (x_list_fonts): Return all fonts that match if
8524 maxnames = -1.
8525
4e837cd0
KH
85262003-04-25 Kenichi Handa <handa@m17n.org>
8527
8528 * syntax.c (skip_chars): Fix previous change.
8529
9af7511a
KH
85302003-04-24 Kenichi Handa <handa@m17n.org>
8531
8532 * syntax.c (skip_chars): Make the code faster by using the common
8533 technique of *p, *stop, and *endp.
8534
e3b2c21f
JD
85352003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8536
8537 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8538 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8539 being updated.
8540
32c06229
SM
85412003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8542
8543 * eval.c (Fapply): Undo last change and add a comment about why.
8544
c6464167
MB
85452003-04-18 Miles Bader <miles@gnu.org>
8546
8547 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8548 pickier PARSE_MULTIBYTE_SEQ.
8549
e509f168
SM
85502003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8551
8552 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8553 Use XCDR, XCAR, CONSP.
8554 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8555 (Fapply): Remove unnecessary GCPRO.
8556
8557 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8558
8559 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8560
8561 * buffer.h: Don't hardcode BEG==1.
8562
8563 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8564
5ceea398
RS
85652003-04-16 Richard M. Stallman <rms@gnu.org>
8566
8567 * xdisp.c (try_window, try_window_reusing_current_matrix):
8568 When at end of window, set window_end_pos to Z-ZV.
8569
8570 * buffer.c (Foverlay_recenter): Doc fix.
8571
e509f168
SM
85722003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8573
8574 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8575
d243e605
AC
85762003-04-14 Andrew Choi <akochoi@shaw.ca>
8577
8578 * macterm.c (mac_check_for_quit_char): Don't check more often than
8579 once a second.
8580
6901b111
SM
85812003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8582
8583 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8584 specially, so that they can't hide an implicit switch-frame event.
8585 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8586 (head_table): Use switch-frame as event_kind for select-window.
8587 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8588
8589 * editfns.c (Fformat): Lisp_Object/int mixup.
8590 (format2): Remove unused var numargs.
8591
e301806f 85922003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8593
6901b111 8594 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8595 (Qafter_insert_file_set_coding): New variable.
8596 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8597 for after-insert-file-adjust-coding-function.
8598 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8599 instead of Vafter_insert_file_adjust_coding_function.
8600
38914424
KH
86012003-04-11 Kenichi Handa <handa@m17n.org>
8602
8603 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8604
8605 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8606 string. Callers changed.
8607
86082003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8609
6901b111 8610 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8611 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8612 (Finsert_file_contents):
8613 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8614 decode-format.
8615
f979dc05
JD
86162003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8617
8618 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8619 get GtkAdjustment as widget now is a GtkRange.
8620
8621 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8622 GtkRange to avoid memory leak.
8623
f8c6b4c2 86242003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8625
50ebc53d
KH
8626 * xfaces.c (Vface_font_rescale_alist): New variable.
8627 (struct font_name): New member rescale_ratio.
8628 (font_rescale_ratio): New function.
6901b111 8629 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8630 (better_font_p): On comparing point sized, pay attention to
8631 recale_ratio member of fonts.
8632 (build_scalable_font_name): Reflect font->rescale_ratio in the
8633 font name.
6901b111 8634 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8635
cb98871c
KH
8636 * lread.c (read1): Before calling index, check if the 2nd
8637 arguemnt is in ASCII range.
8638
4773b8ca
RS
86392003-04-08 Richard M. Stallman <rms@gnu.org>
8640
b0ada147
RS
8641 * fileio.c (Ffile_symlink_p): Doc fix.
8642
8643 * editfns.c (Fformat): Translate positions of text properties
8644 in the format string to apply them to the result.
8645
4773b8ca
RS
8646 * fileio.c (Finsert_file_contents): Doc fix.
8647 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8648
86492003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8650
4773b8ca
RS
8651 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8652
e8f25745 86532003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8654
e8f25745
ST
8655 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8656 that self-contained application finds libexec files.
8657
f8c6b4c2 86582003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8659
6901b111
SM
8660 * coding.c (code_convert_region_unwind):
8661 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8662 (code_convert_region): If post-read-conversion function changed
8663 the value of last-coding-sytem, keep the new value in
8664 coding->symbol so that it won't be overridden.
8665 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8666 (coding_system_accept_latin_extra_p): New function.
8667 (find_safe_codings): Pay attention to characters registered in
8668 latin-extra-code-table.
2310d84c 8669
39c9a034
TTN
86702003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8671
8672 * Makefile.in (md5.o): Add missing dependency info.
8673
eb67c5d6
RS
86742003-04-06 Richard M. Stallman <rms@gnu.org>
8675
8676 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8677
8678 * marker.c (verify_bytepos): New function.
8679
8680 * intervals.c (set_intervals_multibyte_1): When becoming
8681 multibyte, adjust right and left child sizes to a whole set of
8682 characters. If an interval gets zero total-length, delete it.
8683 If an interval consists of just its children, delete one of them.
8684
8685 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8686 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8687
eb67c5d6
RS
8688 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8689 All calls deleted.
8690 (lisp_malloc): Do the work here directly.
8691
b1f81fc5
JB
86922003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8693
8694 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8695 char tables.
8696
86972003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8698
8699 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8700 destructively change "%S" to "%s".
8701
774666fb
MB
87022003-04-03 Miles Bader <miles@gnu.org>
8703
8704 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8705 always set.
8706
19c37f01
DL
87072003-04-01 Dave Love <fx@gnu.org>
8708
8709 * xfns.c (xpm_lookup_color): Grok "opaque".
8710
2f4b24c3
AC
87112003-03-31 Andrew Choi <akochoi@shaw.ca>
8712
8713 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8714 parent window ID.
8715
8716 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8717
8718 * macterm.h (struct mac_output): Define x_pixels_diff and
8719 y_pixels_diff.
b1f81fc5 8720
9443fcf6
JB
87212003-03-31 Juanma Barranquero <lektu@terra.es>
8722
8723 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8724 blockinput.h and files included from it.
8725
e072891b
KS
87262003-03-31 Kim F. Storm <storm@cua.dk>
8727
8728 The following changes consolidates the common code related to
8729 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8730 files into frame.c.
9443fcf6 8731
e072891b
KS
8732 * frame.c: Include blockinput.h.
8733 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8734 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8735 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8736 related vars here.
8737 (struct frame_parm_table, frame_parms): New table for describing
8738 frame parameters and their associated Q-variable.
8739 The order of the parameters corresponds to the sequence of the
8740 frame_parm_handlers table in redisplay_interface.
8741 (x_fullscreen_move, x_set_frame_parameters)
8742 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8743 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8744 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8745 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8746 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8747 Generic functions for processing of frame parameters.
8748 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8749 (display_x_get_resource, x_get_resource_string): Functions for
8750 generic access to X resources.
8751 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8752 (x_default_parameter, Fx_parse_geometry): Functions for generic
8753 access to frame parameters.
6901b111
SM
8754 (x_figure_window_size): Generic calculation of frame size.
8755 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8756 (syms_of_frame): Intern and staticpro frame parameter variables.
8757 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8758 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8759
e072891b
KS
8760 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8761 parameter related vars defined in frame.c.
8762 (EMACS_CLASS): Define here.
8763 (enum FULLSCREEN_*): Define here.
8764 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8765 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8766 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8767 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8768 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8769 (x_set_visibility, x_set_autoraise, x_set_autolower)
8770 (x_set_unsplittable, x_set_vertical_scroll_bars)
8771 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8772 (x_figure_window_size): Add prototypes.
8773
8774 * dispextern.h (frame_parm_handler): New typedef.
8775 (struct redisplay_interface): New member frame_parm_handlers.
8776 (enum resource_types): Move declaration here.
8777 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8778 (x_default_parameter): Add prototypes.
8779
8780 * window.c: Remove extern decl for frame parameter vars.
8781 (change_window_heights): New generic function;
8782 replaces x_change_window_heights. All users changed.
8783
8784 * window.h (change_window_heights): Add prototype.
8785
8786 * xfaces.c: Remove extern decl for frame parameter vars.
8787
8788 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8789 (struct w32_display_info): Fix type of xrdb member.
8790 (enum FULLSCREEN_*): Remove.
8791 Remove prototypes for generic functions (in frame.h).
8792
8793 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8794 parameters now defined in frame.h and frame.c.
f63fd14e 8795 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8796 (enum x_frame_parms): Remove (bogus, unused enum).
8797 (check_x_display_info): Make non-static (for frame.c).
8798 (struct x_frame_parm_table, x_frame_parms): Remove.
8799 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8800 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8801 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8802 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8803 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8804 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8805 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8806 Remove. Use generic functions instead.
8807 (enum resource_types): Remove.
8808 (x_set_scroll_bar_default_width): New global function (for frame.c).
8809 (Fx_create_frame): Depend on x_figure_window_size to add space for
8810 toolbar and setup size_hint_flags.
8811 (x_frame_parm_handlers): New table for redisplay_interface.
8812 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8813
e072891b 8814 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8815 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8816 (x_redisplay_interface): Add x_frame_parm_handlers member.
8817
8818 * w32gui.h (XrmDatabase): New (dummy) typedef.
8819
8820 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8821 (struct w32_display_info): Fix type of xrdb member.
8822 (enum FULLSCREEN_*): Remove.
8823 (x_fullscreen_adjust): Remove prototype.
8824
8825 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8826 parameters now defined in frame.h and frame.c.
f63fd14e 8827 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8828 (enum x_frame_parms): Remove (bogus, unused enum).
8829 (check_x_display_info): Make non-static (for frame.c).
8830 (struct x_frame_parm_table, x_frame_parms): Remove.
8831 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8832 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8833 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8834 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8835 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8836 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8837 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8838 Remove. Use generic functions instead.
8839 (enum resource_types): Remove.
8840 (x_set_scroll_bar_default_width): New global function (for frame.c).
8841 (Fx_create_frame): Depend on x_figure_window_size to add space for
8842 toolbar and setup size_hint_flags.
8843 (w32_frame_parm_handlers): New table for redisplay_interface.
8844 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8845
e072891b
KS
8846 * w32term.c: Remove unnecessary extern declarations.
8847 (x_fullscreen_adjust): Remove. Use generic instead.
8848 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8849
8850 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8851
8852 * macgui.h (XrmDatabase): New (dummy) typedef.
8853
8854 * macterm.h (EMACS_CLASS): Remove.
8855 (struct mac_display_info): Add xrdb member.
8856 (struct mac_output): Add want_fullscreen member.
8857
8858 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8859 parameters now defined in frame.h and frame.c.
f63fd14e 8860 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8861 (check_x_display_info): Make non-static (for frame.c).
8862 (struct x_frame_parm_table, x_frame_parms): Remove.
8863 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8864 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8865 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8866 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8867 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8868 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8869 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8870 Remove. Use generic functions instead.
8871 (enum resource_types): Remove.
8872 (x_set_scroll_bar_default_width): New global function (for frame.c).
8873 (mac_frame_parm_handlers): New table for redisplay_interface.
8874 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8875
e072891b
KS
8876 * macterm.c: Remove unnecessary extern declarations.
8877 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8878
3e6a560b
KS
8879 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8880 included from it (atimer.h and systime.h).
8881
7b7b454e
AS
88822003-03-30 Andreas Schwab <schwab@suse.de>
8883
8884 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8885 parameters for shift_glyphs_for_insert.
8886
8887 * macterm.c (x_redisplay_interface): Add missing entry for
8888 draw_vertical_window_border.
8889
beb402de
KG
88902003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8891
8892 * fileio.c (Fexpand_file_name): In the no-handler case, after
8893 expanding, look again for a handler and invoke it. This is needed
8894 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8895 expansion produces "/user@host:/bar/../baz" which needs to be
8896 expanded again for the finame result "/user@host:/baz".
8897
b676f356
JD
88982003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8899
8900 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8901 of area to be redrawn for better performance.
8902
3c671a56
SM
89032003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8904
8905 * xterm.c (take_vertical_position_into_account): Remove.
8906 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8907 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8908 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8909 (x_set_toolkit_scroll_bar_thumb): Simplify.
8910 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8911 (XTread_socket): Remove unused var.
8912 (x_make_frame_invisible): Replace goto with else.
8913
8914 * xdisp.c (set_vertical_scroll_bar): New fun.
8915 (redisplay_window): Use it.
8916
84f2e615
RS
89172003-03-26 Richard M. Stallman <rms@gnu.org>
8918
8919 * xdisp.c (update_tool_bar): Recompute tool bar if
8920 update_mode_lines is set. Set w->update_mode_line
8921 only if the tool bar contents actually change.
8922 (update_menu_bar): Undo previous change.
8923
70b6104c
JD
89242003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8925
5fd6f727
JD
8926 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8927 (xg_frame_set_char_size): Calculate scroll bar width before frame
8928 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8929 (xg_separator_p): Check for all documented separator types.
8930 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8931 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8932
70b6104c
JD
8933 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8934 so tool bar gets updated.
8935
d9b36d19
SM
89362003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8937
8938 * data.c (store_symval_forwarding): Re-instate part of the code
8939 that was deleted with too much enthusiasm.
8940
89412003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8942
8943 * data.c (store_symval_forwarding): Delete special read-only
8944 hack for type == -1, since we now use ->constant instead.
8945 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8946
8947 * buffer.c (overlays_in): Declare static.
8948 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8949 `constant' field rather than the variable's `type' field.
8950
365fa1b3
AC
89512003-03-24 Andrew Choi <akochoi@shaw.ca>
8952
8953 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8954
8955 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8956
8957 * fns.c [MAC_OSX]: Do not redefine vector.
8958
8959 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8960
8961 * macgui.h: Remove definition of No_Cursor.
8962
d9b36d19 8963 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8964
8965 * xdisp.c: Define No_Cursor.
8966 (x_write_glyphs, notice_overwritten_cursor)
8967 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8968 (note_mouse_highlight): Remove Mac-specific code.
8969 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8970
c0bcce6f
JPW
89712003-03-24 John Paul Wallington <jpw@gnu.org>
8972
8973 * xdisp.c (redisplay_window): If mini window's buffer is not
8974 empty, then redisplay it like other windows.
8975
a526b96c
KS
89762003-03-23 Kim F. Storm <storm@cua.dk>
8977
8978 * w32term.c (w32_draw_window_cursor): Fix last change.
8979
37ab321e
KH
89802003-03-23 Kenichi Handa <handa@m17n.org>
8981
a526b96c
KS
8982 * alloc.c (make_string_from_bytes, make_specified_string):
8983 Add `const' for the arg CONTENTS.
37ab321e
KH
8984
8985 * lisp.h (make_string_from_bytes, make_specified_string):
8986 Prototypes adjusted.
8987
7863d625
JD
89882003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8989
a526b96c 8990 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8991
7863d625
JD
8992 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8993 (XG_SB_RANGE): New define.
8994
8995 * gtkutil.c (xg_fixed_handle_expose): New function.
8996 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8997 expose events.
8998 (xg_update_scrollbar_pos): Take two more arguments, left and width
8999 of scroll bar including borders.
9000 Clear left and right part outside scroll bar separately as some
9001 themes have bars that are not an even number of pixels.
d9b36d19 9002 Don't set reallocate_redraws, don't call
7863d625
JD
9003 gdk_window_process_all_updates.
9004 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9005 so no need to change it. Calculate size and value with XG_SB_RANGE.
9006
d9b36d19
SM
9007 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9008 Pass left and width of scroll bar including borders to
7863d625
JD
9009 xg_update_scrollbar_pos.
9010
af0ad939
TTN
90112003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9012
9013 * Makefile.in: Make sure space precedes end-of-line backslashes.
9014
b22139fd
KS
90152003-03-22 Kim F. Storm <storm@cua.dk>
9016
9017 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9018 Add generic versions here. Remove system specific versions
9019 defined elsewhere.
9020
9021 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9022 Add prototypes.
9023
6e6410cf
KS
9024 * xterm.h (STORE_NATIVE_RECT): New macro.
9025
5c9cc435
KS
90262003-03-21 Kim F. Storm <storm@cua.dk>
9027
00c64fab
SM
9028 * xdisp.c (get_glyph_string_clip_rect):
9029 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
9030
9031 * dispextern.h (struct redisplay_interface): Add active_p
9032 argument to draw_window_cursor member. All uses changed.
9033
acd37560
KS
90342003-03-21 Kim F. Storm <storm@cua.dk>
9035
9036 The following changes consolidate code related to writing and
9037 inserting glyphs, exposing frame, the tool bar, the mouse face,
9038 the output cursor, and help echo from xterm.c, w32term.c and
9039 macterm.c into xdisp.c. It also generalizes the use of the
9040 window_part enum instead of using numeric values throughout.
af0ad939 9041
acd37560
KS
9042 * xdisp.c: Consolidate gui-independent code here.
9043 Include keymap.h.
9044 (Qhelp_echo): Import.
9045 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9046 (help_echo_string, help_echo_window, help_echo_object)
9047 (previous_help_echo_string, help_echo_pos): Declare here.
9048 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9049 (estimate_mode_line_height): Define here. Handle windowing
9050 systems directly (without using estimate_mode_line_height_hook).
9051 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9052 (update_window_cursor, update_cursor_in_window_tree)
9053 (fast_find_position, fast_find_string_pos)
9054 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9055 (expose_area, expose_line, expose_overlaps, expose_window)
9056 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9057 declared static as they are only used locally in xdisp.c.
9058 (draw_glyphs): Rename from x_draw_glyphs and make static.
9059 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9060 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9061 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 9062 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
9063 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9064 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9065 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9066 (note_mouse_highlight, x_clear_window_mouse_face)
9067 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9068 (x_intersect_rectangles): New generic functions for use by xdisp.c
9069 and GUI front-ends.
9070 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9071 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9072
9073 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9074 (NativeRectangle): Generic typedef for rectangle type.
9075 (enum window_part): Move here from window.c.
9076 (struct redisplay_interface): New members flush_display_optional,
9077 define_frame_cursor, clear_frame_area, draw_window_cursor,
9078 draw_vertical_window_border, shift_glyphs_for_insert.
9079 Rename member clear_mouse_face to clear_window_mouse_face.
9080 (estimate_mode_line_height_hook): Remove hook.
9081 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9082 (tool_bar_item_info): Remove prototype.
9083 (help_echo_string, help_echo_window, help_echo_object)
9084 (previous_help_echo_string, help_echo_pos)
9085 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9086 (x_stretch_cursor_p, output_cursor): Declare extern.
9087 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9088 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9089 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9090 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9091 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9092 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9093 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9094 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9095 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9096 Add prototypes.
9097 (mode_line_string, marginal_area_string): Fix prototypes.
9098
9099 * window.c (enum window_part): Move to dispextern.h.
9100 (coordinates_in_window): Use enum window_part member names
9101 instead of numbers to describe return value.
9102 (struct check_window_data): Change part member to window_part.
9103 (check_window_containing): Return window_part unaltered.
9104 (window_from_coordinates): Change part arg from int to enum
9105 window_part. Allow part arg to be null. All users changed.
9106
9107 * window.h (window_from_coordinates): Fix prototype.
9108
9109 * term.c (estimate_mode_line_height): Move to xdisp.c.
9110
9111 * keyboard.c (make_lispy_event): Use enum window_part.
9112
9113 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9114 window_part instead of int in arg list. Users changed.
9115
9116 * xterm.h (No_Cursor): Declare as None for X.
9117 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 9118
acd37560
KS
9119 * xterm.c: Remove consolidated defines and code.
9120 (BETWEEN): Remove unused macro.
9121 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9122 (x_define_frame_cursor, x_clear_frame_area)
9123 (x_draw_window_cursor): New X-specific functions for RIF.
9124 (x_redisplay_interface): Add new members.
9125
9126 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9127
9128 * w32term.h (struct w32_output): Remove cross_cursor member.
9129
9130 * w32term.c: Remove consolidated defines and code.
9131 (BETWEEN): Remove unused macro.
9132 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9133 (w32_define_frame_cursor, w32_clear_frame_area)
9134 (w32_draw_window_cursor): New W32-specific functions for RIF.
9135 (w32_redisplay_interface): Add new members.
9136
a64387ee 9137 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
9138 (XRectangle): Add X compatible rectangle type.
9139 (NativeRectangle): Declare as RECT for W32.
9140 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9141
9142 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9143
9144 * w32console.c: Remove consolidated defines and code.
af0ad939 9145
acd37560
KS
9146 * msdos.h (Display_Info): Add generic typedef.
9147
9148 * msdos.c: Remove consolidated defines and code.
9149 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9150
9151 * macterm.h (struct mac_output): Replace member cross_cursor by
9152 hand_cursor.
9153 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9154
9155 * macterm.c: Remove consolidated defines and code.
9156 (BETWEEN): Remove unused macro.
9157 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9158 (mac_define_frame_cursor, mac_clear_frame_area)
9159 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9160 (x_redisplay_interface): Add new members.
9161
9162 * macgui.h (No_Cursor): Define as 0 for Mac.
9163 (XRectangle): Add X compatible rectangle type.
9164 (NativeRectangle): Declare as Rect for Mac.
9165 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9166
204ccab1
KS
9167 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9168 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9169
9443fcf6 9170 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9171 included from it. Add dependency on keymap.h.
9172
9173 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9174
8ba01a70 91752003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9176
9177 * fileio.c (Fexpand_file_name): Fix previous change.
9178
8ba01a70 91792003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9180
9181 * fileio.c (Ffile_name_directory): Reconstruct file name by
9182 make_specified_string.
9183 (Ffile_name_nondirectory, Ffile_name_as_directory)
9184 (Fdirectory_file_name, Fexpand_file_name)
9185 (Fsubstitute_in_file_name): Likewise.
9186 (Fread_file_name): Compare decoded homedir with DIR and
9187 DEFAULT_FILENAME.
9188
9189 * alloc.c (make_specified_string): If NCHARS is negative, count
9190 the number of characters.
9191
19536747
JD
91922003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9193
de38ae5a
JD
9194 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9195 all widgets.
9196
19536747
JD
9197 * gtkutil.h: Removed xg_ignore_next_thumb.
9198
37ab321e 91992003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9200
9201 * coding.c (Vchar_coding_system_table): Remove this variable.
9202 (Vcoding_system_safe_chars): New variable.
9203 (intersection): Remove this function.
9204 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9205 all codings in SAFE_CODINGS.
00c64fab 9206 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9207 find_safe_codings. Get generic coding systems from
9208 Vcoding_system_safe_chars.
9209 (Fdefine_coding_system_internal): New function.
9210 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9211 Initialize and staticpro Vcoding_system_safe_chars.
9212
17097258
JD
92132003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9214
2a2071c3
JD
9215 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9216 equal old values before updating.
9217
17097258
JD
9218 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9219
9220 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9221
92222003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9223
9224 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9225 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9226 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9227 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9228 (xg_create_scroll_bar): Pass bar to button event callback.
9229 (xg_find_top_left_in_fixed): New function.
9230 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9231 whole scroll bar area. Get old position with
9232 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9233 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9234 dragging is in progress. Calculate whole as for Motif.
9235 Remove code that saved last values. Call gtk_range functions to
9236 set scroll bar sizes.
9237
9238 * gtkutil.h: Removed xg_ignore_next_thumb.
9239
8cb9dfbf
JB
92402003-03-17 Juanma Barranquero <lektu@terra.es>
9241
9242 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9243 and files included from it.
9244
00c64fab
SM
92452003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9246
9247 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9248 multiple occurrences of the same keymap under different prefixes.
9249 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9250
c45bb3b2
JR
92512003-03-16 Jason Rumney <jasonr@gnu.org>
9252
9253 * w32gui.h: Use HDC for Display.
9254
9255 * w32term.c (w32_encode_char): Prevent double-byte chars from
9256 crashing Emacs.
9257
9258 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9259 as binary.
9260
2a6d0874
JB
92612003-03-16 Juanma Barranquero <lektu@terra.es>
9262
9263 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9264
03eb5fab
KS
92652003-03-16 Kim F. Storm <storm@cua.dk>
9266
9267 The following changes consolidate some of the gui-independent
9268 parts of the processing and drawing of "glyph strings" from
9269 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9270
03eb5fab
KS
9271 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9272 21 bits (this reduces number of faces from 4M to 2M).
9273 Replace W32 specific w32_font_type member (2 bits) by generic
9274 font_type member (3 bits) for portability.
9275 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9276 (enum draw_glyphs_face): Define here.
9277 (struct glyph_string): Define here. Merge W32 and X versions.
9278 (struct redisplay_interface): New members per_char_metric,
9279 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9280 (VCENTER_BASELINE_OFFSET): Define here.
9281 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9282 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9283
9284 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9285 (dump_glyph_string): Moved here.
9286 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9287 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9288 (fill_composite_glyph_string, fill_glyph_string)
9289 (fill_image_glyph_string, fill_stretch_glyph_string)
9290 (left_overwritten, left_overwriting, right_overwritten)
9291 (right_overwriting, get_char_face_and_encoding)
9292 (set_glyph_string_background_width, compute_overhangs_and_x)
9293 (append_glyph, append_composite_glyph, produce_image_glyph)
9294 (take_vertical_position_into_account, append_stretch_glyph)
9295 (produce_stretch_glyph): New generic functions (based on X version).
9296 Call platform specific functions through rif.
9297 (INIT_GLYPH_STRING): New macro, hides W32 details.
9298 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9299 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9300 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9301 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9302 (notice_overwritten_cursor):
9303 Generic functions exported to platform modules. Users changed.
9304
9305 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9306 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9307 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9308 New macros for consolidated code.
2a6d0874 9309
03eb5fab
KS
9310 * xterm.c: Remove consolidated defines and code.
9311 (x_per_char_metric, x_encode_char)
9312 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9313 (x_redisplay_interface): Add new members.
9314
9315 * w32gui.h (Display): Add dummy typedef for consolidation.
9316 (XChar2b): Define alias for wchar_t for consolidation.
9317 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9318
9319 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9320 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9321 New macros for consolidation.
9322
fad49844 9323 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9324 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9325 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9326 (w32_per_char_metric): Change font_type arg to int for RIF.
9327 (w32_encode_char): Return int according to RIF requirements.
9328 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9329 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9330 x_get_glyph_overhangs.
9331 (w32_redisplay_interface): Add new members.
9332
9333 * macgui.h (XChar2b): Move typedef here for consolidation.
9334 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9335
9336 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9337 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9338 consolidation.
9339
9340 * macterm.c: Remove consolidated defines and code.
9341 (mac_per_char_metric): New function for RIF.
00c64fab 9342 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9343 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9344 (x_redisplay_interface): Add new members.
9345
00c64fab
SM
93462003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9347
9348 * keymap.c (Vmenu_events): New var.
9349 (syms_of_keymap): Initialize it.
9350 (where_is_internal): Check more carefully what is a menu event.
9351
225c7a07
RS
93522003-03-14 Richard M. Stallman <rms@gnu.org>
9353
9354 * lread.c (read1): After #!, exit loop on eof.
9355
cea9be54
JD
93562003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9357
9ea0e54d
JD
9358 * gtkutil.h: Add declaration for xg_frame_cleared.
9359
0cb35f4e
JD
9360 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9361
cea9be54
JD
9362 * gtkutil.c (struct xg_last_sb_pos): New structure.
9363 (handle_fixed_child): New function.
9364 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9365 and force a redraw on them.
9366 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9367 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9368 so we can avoid unneeded redraws.
9369 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9370 and force a redraw on the scroll bar.
9371 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9372 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9373 (xg_frame_cleared): New function.
cea9be54 9374
20b853f3
KH
93752003-03-13 Kenichi Handa <handa@m17n.org>
9376
9377 * coding.c (Fdetect_coding_region): Fix docstring.
9378 (Fdetect_coding_string): Fix docstring.
9379
7a555aff
AS
93802003-03-13 Andreas Schwab <schwab@suse.de>
9381
25cc0080
AS
9382 * gtkutil.c: Add prototype for create_menus.
9383
30225431
AS
9384 * data.c (long_to_cons): Fix type of top.
9385
9386 * xselect.c (selection_data_to_lisp_data): Use int instead of
9387 long for an integer of size 4.
9388
7a555aff 9389 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9390 (xg_tool_bar_help_callback): Likewise.
7a555aff 9391
a3e4741f
AS
93922003-03-12 Andreas Schwab <schwab@suse.de>
9393
9394 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9395
9668be7c
KS
93962003-03-12 Kim F. Storm <storm@cua.dk>
9397
03eb5fab 9398 The following changes consolidate the fringe handling from
9668be7c 9399 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9400
9668be7c
KS
9401 * xdisp.c: Consolidate fringe handling code here.
9402 (left_bits, right_bits, continued_bits, continuation_bits)
9403 (ov_bits, zv_bits): Define fringe bitmaps.
9404 (fringe_bitmaps): New array holding fringe bitmaps.
9405 (draw_fringe_bitmap): Draw a specific bitmap; call display
9406 specific drawing routine via rif->draw_fringe_bitmap.
9407 (draw_row_fringe_bitmaps): Generic replacement for
9408 x_draw_row_fringe_bitmaps; all callers changed.
9409 (compute_fringe_widths): Generic replacement for
9410 x_compute_fringe_widths; all callers changed.
9411
9412 * dispextern.h (enum fringe_bitmap_type): Define here.
9413 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9414 (fringe_bitmaps): Declare extern.
9415 (struct redisplay_interface): New member draw_fringe_bitmap.
9416 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9417
9418 * xterm.c: Remove generic fringe code.
9419 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9420 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9421
9422 * w32term.c: Remove generic fringe code.
9423 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9424 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9425
9668be7c
KS
9426 * macterm.c: Remove generic fringe code.
9427 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9428 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9429
00a88f32
SM
94302003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9431
9432 * print.c (Fprin1_to_string): Return unibyte string if possible.
9433
1d1de695
DK
94342003-03-09 David Kastrup <dak@gnu.org>
9435
9436 * process.c (read_process_output): We have allocated enough space
9437 for readmax and carryover, so actually use the alloted space.
9438
257f40f2
JD
94392003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9440
9441 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9442 toolkit scrollbar click.
9443
9444 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9445 for USE_GTK.
9446 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9447 also.
9448 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9449 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9450
78819ebb 9451 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9452
9453 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9454 (xg_tool_bar_item_expose_callback): New function.
9455 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9456 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9457 on the tool bar widget.
9458 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9459 to expose on the tool bar item widgets.
9460
15213141
JD
94612003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9462
26b74a0b 9463 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9464 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9465 deleted from the image cache).
9466
15213141
JD
9467 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9468 the event isn't for a frame (i.e. for dialogs).
9469
20b853f3 94702003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9471
9472 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9473 composition components reaches the limit, terminate composing.
9474 (COMPOSITION_OK): New macro.
00a88f32 9475 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9476 composition is found.
9477 (coding_restore_composition): Adjust the number of composition
9478 components if it is not sane.
9479
c9029fe5
JB
94802003-03-06 Juanma Barranquero <lektu@terra.es>
9481
9482 * w32term.h (struct w32_display_info): Add xrdb member to support
9483 passing resources via -xrm on Windows.
9484
9485 * w32term.c (w32_make_rdb): New function.
9486 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9487 struct. Delete leftover code.
9488
9489 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9490 for resources passed on the command line.
9491
9492 * w32reg.c (w32_get_rdb_resource): New function.
9493 (x_get_string_resource): Use it, so resources passed with -xrm
9494 supercede the ones in the registry.
9495
9d00001f
JD
94962003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9497
9498 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9499 instead of x_top_window_to_frame.
9500
ca2417b9
JD
95012003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9502
9503 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9504 when restarting Emacs.
9505
5b20caf0
RS
95062003-03-03 Richard M. Stallman <rms@gnu.org>
9507
9508 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9509 to run kill-buffer-query-functions.
9510 (Qkill_buffer_query_functions): New var.
9511 (syms_of_buffer): Init and staticpro it.
9512
58e91b77
JD
95132003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9514
9515 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9516
932357b4
KS
95172003-02-25 Kim F. Storm <storm@cua.dk>
9518
9519 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9520 If centering point failed to make whole line visible and vscroll
9521 is non-zero, disable vscroll and try centering point again.
9522
9523 * lread.c (read1): Accept `single space' syntax like (? x).
9524
bb8db7e1
JD
95252003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9526
9527 * keyboard.c (cancel_hourglass_unwind): Surround with
9528 #ifdef HAVE_X_WINDOWS
9529
47d77aab
KH
95302003-02-25 Kenichi Handa <handa@m17n.org>
9531
9532 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9533 process only when "subprocesses" is defined.
9534
6a097c0c
SM
95352003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9536
9537 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9538
0b063c27
JB
95392003-02-24 Juanma Barranquero <lektu@terra.es>
9540
d1135afc
JB
9541 * callint.c (fix_command): Declare as static void and move before
9542 Fcall_interactively.
9543
0b063c27
JB
9544 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9545 (syms_of_xdisp): Don't initialize Qwhen.
9546
0af912f0
JD
95472003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9548
9549 * keyboard.c (cancel_hourglass_unwind): New function.
9550 (command_loop_1): Cancel hourglass with unwind-protect.
9551
120d0a23
RS
95522003-02-23 Richard M. Stallman <rms@gnu.org>
9553
9554 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9555 Detect (when ... (region-beginning)) etc.
9556 (Fcall_interactively): Call fix_command.
9557 (Qif, Qwhen): New variables.
9558 (syms_of_callint): Init and staticpro them.
0b063c27 9559
120d0a23
RS
9560 * regex.c (print_partial_compiled_pattern): Output to stderr.
9561
4ece81a6
KG
95622003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9563
9564 * dired.c (directory_files_internal): Don't expand directory.
9565 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9566 instead. From Lars Hansen <larsh@math.ku.dk>.
9567
e52bd6b7
SM
95682003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9569
9570 * fns.c (string_to_multibyte): Remove unused var i.
9571 (Flanginfo): Fix int/Lisp_Object mixup.
9572 (void_call2): New fun.
9573 (Fmap_char_table): Use it in place of call2.
9574
9575 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9576
9577 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9578
9579 * keymap.c (copy_keymap_1): Make it static.
9580
9581 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9582
c33ef7c4
JB
95832003-02-22 David Ponce <david@dponce.com>
9584
9585 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9586
16782258
JD
95872003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9588
9589 * process.h: Removed subtty field from struct Lisp_Process.
9590
9591 * process.c (create_process): Remove setting of subtty.
9592 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9593 (Fprocess_running_child_p, process_send_signal):
9594 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9595 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9596
3abeca61
KG
95972003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9598
9599 * keymap.c (Fdefine_key): Doc fix.
9600
92a8ce63
JB
96012003-02-21 Juanma Barranquero <lektu@terra.es>
9602
9603 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9604
9605 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9606 POLLING_PROBLEM_IN_SELECT.
9607
9608 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9609 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9610
9611 * s/hpux10-20.h: New file.
9612
e52bd6b7
SM
9613 * process.c (wait_reading_process_input):
9614 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9615
20f1ef2e
KH
96162003-02-20 Kenichi Handa <handa@m17n.org>
9617
32d0a9dc
KH
9618 * fontset.c (check_fontset_name): If NAME is nil, return the
9619 default fontset.
9620 (override_font_info): New function.
e52bd6b7 9621 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9622 (Ffontset_info): If FONTSET is not the default fontset, merge
9623 FONTSET onto the copy of the default fontset, and work on that
9624 copy. Document that NAME nil means the default fontset.
9625 (Ffontset_font): Document that NAME nil means the default fontset.
9626
20f1ef2e
KH
9627 * process.c (setup_process_coding_systems): If the process's
9628 in/out descriptor is -1, do nothing.
9629
77d1daf2
AS
96302003-02-19 Andreas Schwab <schwab@suse.de>
9631
e52bd6b7
SM
9632 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9633 Add prototypes.
77d1daf2 9634
f9a45bb3
KH
96352003-02-19 Kenichi Handa <handa@m17n.org>
9636
9637 * xfaces.c (try_alternative_families): Try all scalable fonts if
9638 Vscalable_fonts_allowed is not Qt.
9639
72ecb43c
JD
96402003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9641
9642 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9643
ee5be7c3
JD
96442003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9645
9646 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9647 names.
9648
9649 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9650 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9651 x_face_list_fonts.
9652 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9653 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9654
4cd519a7
KS
96552003-02-18 Kim F. Storm <storm@cua.dk>
9656
068f9882
KS
9657 * lread.c (read1): Fix last change.
9658 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9659
7290a344
AC
96602003-02-18 Andrew Choi <akochoi@shaw.ca>
9661
9662 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9663
1f7fa69b
AS
96642003-02-18 Andreas Schwab <schwab@suse.de>
9665
9666 * window.c (window_scroll_pixel_based): Move outside a
9667 multi-glyph character before setting new window start.
9668
9669 * xdisp.c (in_display_vector_p): New function.
9670 * dispextern.h (in_display_vector_p): Declare.
9671
23e21195
KS
96722003-02-18 Kim F. Storm <storm@cua.dk>
9673
9674 * lread.c (read1): Fix and relax read syntax.
9675 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9676 Only recognize "," after dotted-pair dot if inside backquote.
9677 Never include "`" or "," (inside backquote) in a symbol.
9678 Allow dotted-pair dot after a character constant.
9679 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9680
f098b121
JD
96812003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9682
9683 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9684 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9685 icons. Set name of tool bar to emacs-toolbar.
9686 (update_frame_tool_bar): Connect expose event to
9687 xg_tool_bar_expose_callback.
9688
63020c46
RS
96892003-02-17 Richard M. Stallman <rms@gnu.org>
9690
9691 * keyboard.c (this_command_key_count_reset): New variable.
9692 Initiatize to 0 where this_command_key_count is set.
9693 (read_char): Save and restore this_command_key_count_reset
9694 around input method code.
9695 (read_char): If this_command_key_count_reset, echo reread commands.
9696 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9697
fb4452cc
KH
96982003-02-17 Kenichi Handa <handa@m17n.org>
9699
9700 * fns.c (string_to_multibyte): Always return a multibyte string.
9701
bd11cc09
JR
97022003-02-16 Jason Rumney <jasonr@gnu.org>
9703
e52bd6b7
SM
9704 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9705 Negative max_fonts parameter means list all.
bd11cc09 9706
4cdf4bde
DL
97072003-02-14 Dave Love <fx@gnu.org>
9708
9709 * fns.c (Flanginfo): Doc fix.
9710
023b93f6
KS
97112003-02-13 Kim F. Storm <storm@cua.dk>
9712
37cd4238
KS
9713 * lread.c (read_escape): Interpret \s as a SPACE character, except
9714 for \s-X in a character constant which still is the super modifier.
9715 (read1): Signal an `invalid read syntax' error if a character
9716 constant is immediately followed by a digit or symbol character.
9717
140a6b7e
KS
9718 * search.c (Fmatch_data): Doc fix. Explicitly state that
9719 match-data is undefined if last search failed.
9720
023b93f6
KS
9721 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9722 All uses changed.
9723
7d5c86e5
JB
97242003-02-12 Juanma Barranquero <lektu@terra.es>
9725
9726 * eval.c (Fdefmacro): Fix typo.
9727
295fff2c
KS
97282003-02-12 Kim F. Storm <storm@cua.dk>
9729
9730 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9731 macro is a string, convert meta modifiers in string when copying
9732 the string into a vector.
9733
60f3202d
KS
97342003-02-11 Kim F. Storm <storm@cua.dk>
9735
9736 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9737
61cb0b53
KH
97382003-02-11 Kenichi Handa <handa@m17n.org>
9739
9740 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9741
7392e23c
KS
97422003-02-10 Kim F. Storm <storm@cua.dk>
9743
9744 * process.c: Doc fixes.
9745 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9746
ce4254bd
KH
97472003-02-10 Kenichi Handa <handa@m17n.org>
9748
9c7a329a
KH
9749 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9750
ce4254bd
KH
9751 * process.c (QCfilter_multibyte): New variable.
9752 (setup_process_coding_systems): New function.
e52bd6b7
SM
9753 (Fset_process_buffer, Fset_process_filter):
9754 Call setup_process_coding_systems.
ce4254bd
KH
9755 (Fstart_process): Initialize the member `filter_multibyte' of
9756 struct Lisp_Process.
9757 (create_process): Call setup_process_coding_systems.
9758 (Fmake_network_process): New keyward `:filter-multibyte'.
9759 Initialize the member `filter_multibyte' of struct Lisp_Process.
9760 Call setup_process_coding_systems.
9761 (server_accept_connection): Call setup_process_coding_systems.
9762 (read_process_output): If the process has a filter, decide the
9763 multibyteness of a string to given to the filter by
9764 `filter_multibyte' member of the process. If the process doesn't
9765 have a filter and the result of conversion is unibyte, use
9766 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9767 multibyte form.
9768 (Fset_process_coding_system): Call setup_process_coding_systems.
9769 (Fset_process_filter_multibyte): New function.
9770 (Fprocess_filter_multibyte_p): New function.
9771 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9772 Defsubr Sset_process_filter_multibyte and
9773 Sprocess_filter_multibyte_p.
9774
9775 * process.h (struct Lisp_Process): New member filter_multibyte.
9776
9777 * lisp.h (setup_process_coding_systems): Add prototype.
9778
9779 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9780 process, update coding systems for the process.
9781
b08d5f59
KH
97822003-02-09 Kenichi Handa <handa@m17n.org>
9783
9784 * fns.c (string_to_multibyte): New function.
9785 (Fstring_to_multibyte): New function.
9786 (syms_of_fns): Defsubr it.
9787
0dfd93c0
AS
97882003-02-08 Andreas Schwab <schwab@suse.de>
9789
9790 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9791 instead of the substitution.
9792
7b76ca1c
JD
97932003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9794
9795 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9796
9797 * xmenu.c (menu_position_func): Adjust menu popup position so that
9798 the menu is fully visible.
7b76ca1c 9799
2436a4e4
JD
98002003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9801
9802 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9803 (x_make_frame_invisible, x_wm_set_icon_position):
9804 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9805
9806 * xfns.c (x_set_name, x_set_title): Ditto.
9807
37d1e680
RS
98082003-02-04 Richard M. Stallman <rms@gnu.org>
9809
9810 * keyboard.c (echo_now): Update before_command_echo_length.
9811 (Freset_this_command_lengths): Reset this_command_key_count etc.
9812 immediately rather than arranging to do it later.
9813 (before_command_key_count_1, before_command_echo_length_1)
9814 (before_command_restore_flag): Vars deleted.
9815 (add_command_key): Don't handle before_command_restore_flag.
9816 (read_char, record_menu_key): Don't update before_command_key_count or
9817 before_command_echo_length.
9818 (read_char): Don't handle before_command_restore_flag.
9819
9820 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9821 in direct-output clauses if it wouldn't be called in the ordinary case.
9822
578846a3
KS
98232003-02-04 Kim F. Storm <storm@cua.dk>
9824
9825 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9826
49853a4d
JD
98272003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9828
9829 * gtkutil.c (remove_from_container): Copying list is not needed.
9830 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9831 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9832 on list returned from gtk_container_get_children to avoid memory leak.
9833
8b53dc06
JR
98342003-02-01 Jason Rumney <jasonr@gnu.org>
9835
5d54d177
JR
9836 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9837 local malloc.
9838 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9839 definitions in xpm.h.
9840 (init_xpm_functions): New function.
f63fd14e 9841 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9842 (init_external_image_libraries): Try to load libXpm.dll.
9843
8b53dc06
JR
9844 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9845 timestamp.
9846
b222e415
DL
98472003-01-31 Dave Love <fx@gnu.org>
9848
9849 * syntax.c (Fskip_chars_forward)
9850 (open-paren-in-column-0-is-defun-start): Doc fix.
9851
c60ee5e7
JB
98522003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9853
9854 * fileio.c: Support // at start of name for Cygwin (just added proper
9855 preprocessor tests).
9856
9857 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9858
9859 * Makefile.in: Use @EXEEXT@ for Cygwin.
9860
9861 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9862
9863 * s/cygwin.h: Added for Cygwin port.
9864
53b37591
JB
98652003-01-31 Juanma Barranquero <lektu@terra.es>
9866
9867 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9868 when including gif_lib.h.
fe929957 9869 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9870 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9871 Windows. Disable color table lookups. Call library functions
53b37591 9872 through pointers determined at runtime.
fe929957
JB
9873 (init_external_image_libraries): Try to load libungif.dll and
9874 libtiff.dll.
53b37591 9875
45415a8f
KH
98762003-01-31 Kenichi Handa <handa@m17n.org>
9877
9878 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9879 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9880
a97e4138
JD
98812003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9882
e52bd6b7 9883 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9884
6eed9bed
DL
98852003-01-30 Dave Love <fx@gnu.org>
9886
9887 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9888 (Fgarbage_collect): Use them.
9889 (init_alloc, syms_of_alloc): Set them up.
9890
100dcd40
JB
98912003-01-30 Juanma Barranquero <lektu@terra.es>
9892
9893 * w32fns.c (init_external_image_libraries): Add missing operator.
9894
fbd852af
JR
98952003-01-29 Jason Rumney <jasonr@gnu.org>
9896
9897 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9898 an alternative name for jpeg.dll.
9899
8a2d8020
KH
99002003-01-29 Kenichi Handa <handa@m17n.org>
9901
9902 * xdisp.c (set_cursor_from_row): Pay attention to string display
9903 properties.
9904
058c18c7
AC
99052003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9906
9907 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9908 <escape>.
9909 (keycode_to_xkeysym_table): Reformat and add more comments.
9910 (XTread_socket): Drop special case for backspace.
9911
385f11cf
AC
99122003-01-28 Andrew Choi <akochoi@shaw.ca>
9913
9914 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9915 values in old-style RGB specs.
9916
c922a224
JB
99172003-01-27 Juanma Barranquero <lektu@terra.es>
9918
9919 * w32fns.c (init_external_image_libraries): Try alternate names for the
9920 jpeg dll.
9921
0a1d6de0
JD
99222003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9923
9924 * gtkutil.c (create_dialog, xg_separator_p)
9925 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9926 before calling strcmp or strlen.
9927
a97e4138 99282003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9929
9930 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9931 and handle image load failure.
9932
28908312
JR
99332003-01-26 Jason Rumney <jasonr@gnu.org>
9934
9935 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9936 New functions.
f63fd14e
JB
9937 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9938 Disable color table lookups. Call jpeg library functions
28908312
JR
9939 through pointers determined at runtime.
9940 (init_external_image_libraries): Try to load jpeg.dll.
9941
84e47416
RS
99422003-01-25 Richard M. Stallman <rms@gnu.org>
9943
9944 * lisp.h: Declare format2 instead of format1.
9945
9946 * fileio.c (barf_or_query_if_file_exists):
9947 Call format2 instead of format1.
9948
9949 * editfns.c (format2): New function, replaces format1
9950 but takes exactly two Lisp Objects as format args.
9951
9952 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9953
a97e4138 99542003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9955
9956 * xterm.h: Change to return value of x_dispatch_event to int.
9957
9958 * xterm.c (x_filter_event): New function.
9959 (event_handler_gdk, XTread_socket): Call x_filter_event.
9960 (x_dispatch_event): Change to return value of finish.
9961 (event_handler_gdk): Use return value from x_dispatch_event.
9962
9963 * xfns.c (x_window): Call create_frame_xic for GTK version to
9964 initialize input methods.
9965
9966 * gtkutil.h: Add (void) prototypes.
9967
9968 * gtkutil.c (create_menus): Remove code that puts the help menu to
9969 the right.
9970
54eefef1
JR
99712003-01-25 Jason Rumney <jasonr@gnu.org>
9972
9973 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9974 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9975 (png_load): Adjust colors for Windows. Use Windows
9976 bitmaps. Disable color table lookups.
c262430d
JR
9977 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9978 (init_png_functions): New function.
9979 (png_read_from_memory, png_load): Call png library functions
9980 through pointers determined at runtime.
9981 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9982 (init_external_image_libraries): New function.
9983 (init_xfns): Call it.
54eefef1 9984
1a9e275b
AS
99852003-01-24 Andreas Schwab <schwab@suse.de>
9986
9987 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9988
a97e4138 99892003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9990
9991 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9992 of static initializer.
9993
422eec7e
DL
99942003-01-24 Dave Love <fx@gnu.org>
9995
9996 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9997 architectures.
9998
9999 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10000 Use __alignof__.
10001
2a026b04
KH
100022003-01-24 Kenichi Handa <handa@m17n.org>
10003
10004 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 10005 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
10006 (command_loop_1): Call adjust_point_for_property with proper
10007 second arg.
10008
a18bb28d
JR
100092003-01-22 Jason Rumney <jasonr@gnu.org>
10010
10011 Sync changes with xterm.c and xfns.c.
10012
10013 * w32term.c (x_draw_glyph_string_foreground)
10014 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10015
10016 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10017 phys_cursor's hpos is overwritten. This is still not completely
10018 correct, as it doesn't really make sense to use hpos at all to
10019 get the cursor glyph (as that is relative to the width of the
10020 characters on the line, which may have changed during the update).
10021
10022 * w32term.c (notice_overwritten_cursor): Handle the special case
10023 of the cursor being in the first blank non-text line at the
10024 end of a window.
10025
10026 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10027 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10028 Compute from the x position returned by x_draw_glyphs.
10029
10030 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10031 except for NO_CURSOR and system caret, to make phys_cursor_width
10032 contain what its name suggests.
10033 (notice_overwritten_cursor): Consider the cursor image erased if
10034 the output area intersects the cursor image in y-direction.
10035
6a097c0c
SM
10036 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10037 note_mode_line_highlight and extend.
a18bb28d
JR
10038
10039 * w32term.c (last_window): New variable.
10040 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10041 (note_mouse_movement): Remove reimplemented code in #if 0.
10042
10043 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10044 not update_mode_lines, and always set it to 1.
10045
ac6e47ef
JR
100462003-01-21 Jason Rumney <jasonr@gnu.org>
10047
10048 * w32fns.c (IDC_HAND): Define it if system headers don't.
10049
100502003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10051
10052 * w32term.h (struct w32_output): New member hand_cursor.
10053 (WM_EMACS_SETCURSOR): New message definition.
10054
10055 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10056 function w32_define_cursor.
10057 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10058 position, change member name output_data.x to output_data.w32 and
10059 add function w32_define_cursor.
10060 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10061 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
10062 (w32_initialize_display_info):
10063 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
10064
10065 * w32fns.c (Vx_hand_shape): New variable.
10066 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10067 WM_EMACS_SETCURSOR.
10068 (x-create-frame): Setup Cursor types.
10069
ceb39a17
JB
100702003-01-21 David Ponce <david@dponce.com>
10071
ac6e47ef 10072 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 10073 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 10074 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 10075 2002-09-30.)
ac6e47ef
JR
10076 (w32_draw_relief_rect): Declare all args.
10077 (w32_define_cursor): New.
10078
10079 * w32fns.c (w32_load_cursor): New function.
10080 (w32_init_class): Use it.
10081 (x_put_x_image): Declare all args.
10082
b6189c3b 100832003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
10084
10085 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10086
a97e4138 100872003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
10088
10089 * gtkutil.c: Must include stdio.h before termhooks.h
10090
83fc9c63
DL
100912003-01-21 Dave Love <fx@gnu.org>
10092
10093 * alloc.c (Fgc_status): Print zombie list.
10094 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10095 Fix assignment of zombies.
10096 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10097 Don't take car of non-cons.
10098
10099 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10100
10101 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10102
fe04b8c8
JR
101032003-01-20 David Ponce <david@dponce.com>
10104
10105 * w32menu.c (digest_single_submenu): Declare all args.
10106
10107 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10108 changes in xmenu.c:
10109
10110 (parse_single_submenu): Use individual keymap's prompt
10111 string as pane name, if there is one.
10112 (set_frame_menubar): Save menu_items_n_panes from each call to
10113 parse_single_submenu and use it when calling digest_single_submenu.
10114
539e69a9
ST
101152003-01-20 Steven Tamm <steventamm@mac.com>
10116
10117 * macterm.c (XTread_socket): Checks for valid, visible window
10118 before sending a scroll-wheel event.
10119
675d000f
RS
101202003-01-20 Richard M. Stallman <rms@gnu.org>
10121
10122 * xdisp.c (redisplay_window): If mini window's buffer is not
10123 a minibuffer, then redisplay it like other windows.
10124
a97e4138 101252003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
10126
10127 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10128 external tool bar before setting tool bar height.
10129
048addec
JD
101302003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10131
10132 * xterm.c (handle_one_xevent): Surround popup_activated
10133 with #ifdef:s for non-toolkit version.
10134
10135 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10136 (gtkutil.o): New file.
10137 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10138 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10139
10140 * gtkutil.c: New file for GTK version.
10141
10142 * gtkutil.h: New file for GTK version.
10143
10144 * xterm.h: Add xt_or_gtk_widget.
10145 Include gtk files for USE_GTK.
10146 (struct x_output): Add toolbar_height.
10147 (struct x_output): Add GTK widgets and Gdk size_hints.
10148 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10149 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10150 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10151
10152 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 10153 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
10154 (note_mouse_highlight): Check popup_activated for USE_GTK.
10155 (xt_action_hook): Don't compile if USE_GTK.
10156 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10157 (xg_scroll_callback): New function.
10158 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10159 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10160 for USE_GTK.
10161 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10162 xg_show_scroll_bar for USE_GTK.
10163 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10164 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10165 (event_handler_gdk): New function for USE_GTK.
10166 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10167 (handle_one_xevent): Make sure widget is mapped before
10168 calling x_real_positions for USE_GTK.
10169 (XTread_socket): Add GTK event loop for USE_GTK.
10170 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10171 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10172 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10173 (x_iconify_frame): Add code for USE_GTK.
10174 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10175 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10176 is in gtkutil.c.
10177 (x_term_init): Add initialization for GTK.
10178 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10179
10180 * xmenu.c: Include gtkutil.h for USE_GTK.
10181 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10182 (single_menu_item, single_menu_item, Fx_popup_dialog):
10183 Check for USE_GTK.
048addec
JD
10184 (popup_widget_loop): New function for USE_GTK.
10185 (x_activate_menubar): Add code for USE_GTK.
10186 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10187 (menu_highlight_callback, menubar_selection_callback):
10188 Add USE_GTK versions.
048addec
JD
10189 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10190 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10191 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10192 is in gtkutil.c.
10193 (popup_selection_callback): New version for USE_GTK.
10194 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10195 one USE_X_TOOLKIT version.
048addec
JD
10196 (xmenu_show): Call create_and_show_popup_menu.
10197 (dialog_selection_callback): New version for USE_GTK.
10198 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10199 one USE_X_TOOLKIT version.
048addec
JD
10200 (xdialog_show): Call create_and_show_dialog.
10201
10202 * xfns.c: Include gtkutil for USE_GTK.
10203 (x_window_to_frame, x_any_window_to_frame)
10204 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10205 (x_top_window_to_frame): Add code for USE_GTK.
10206 (x_set_background_color): Call xg_set_background_color for GTK.
10207 (x_set_menu_bar_lines): Check for USE_GTK.
10208 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10209 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10210 (x_window): Call xg_create_frame_widgets for USE_GTK.
10211 (Fx_create_frame): Check for USE_GTK
10212 (Fx_file_dialog): New implementation for USE_GTK.
10213
10214 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10215 (update_menu_bar): Add check for USE_GTK.
10216 (update_tool_bar): Add check for USE_GTK and external tool bar.
10217 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10218 (redisplay_internal): Add check for USE_GTK and popup_activated.
10219 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10220 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10221 (display_menu_bar): Add check for USE_GTK
10222
78819ebb 10223 * lisp.h (Vx_resource_name): Declare extern.
048addec 10224
a64387ee 10225 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10226 for USE_GTK.
10227 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10228
10229 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10230 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10231 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10232
10233 * fileio.c (Fread_file_name): Add check for USE_GTK.
10234
6bdb309a
SM
10235 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10236 Add check for USE_GTK.
048addec
JD
10237
10238 * config.in: Added HAVE_GTK
10239
10240 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10241
102422003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10243
10244 * charset.h (Funibyte_char_to_multibyte): Export.
10245
102462003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10247
10248 * xmenu.c (mouse_position_for_popup): New function.
10249 (Fx_popup_menu): Call mouse_position_for_popup for X and
10250 mouse_position_hook for others.
10251
102522003-01-17 Kim F. Storm <storm@cua.dk>
10253
10254 * editfns.c (Finsert): Mention `string-make-multibyte' and
10255 `string-as-multibyte' in doc string.
10256
102572003-01-17 Kenichi Handa <handa@m17n.org>
10258
10259 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10260
048addec
JD
10261 * editfns.c (Fformat): Convert an unibyte char argument that is
10262 formatted by "%c" to multibyte if the total result must be a
10263 multibyte string.
cd7df9c0 10264
048addec 102652003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10266
048addec
JD
10267 * process.c (set-process-filter): Document unibyte/multibyte-ness
10268 of string argument.
56210ecd 10269
048addec 102702003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10271
048addec 10272 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10273
048addec
JD
10274 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10275 (re_search_2): Likewise.
6df8b9fe 10276
048addec 102772003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10278
048addec
JD
10279 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10280 buffer is unibyte.
292ddc31 10281
048addec 102822003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10283
048addec 10284 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10285
048addec
JD
10286 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10287 (Fprevious_char_property_change)
10288 (Fnext_single_char_property_change)
10289 (Fprevious_single_char_property_change, Fnext_property_change)
10290 (Fnext_single_property_change, Fprevious_property_change)
10291 (Fprevious_single_property_change, Fadd_text_properties)
10292 (Fput_text_property, Fset_text_properties)
10293 (Fremove_text_properties, Fremove_list_of_text_properties)
10294 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10295
048addec 102962003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10297
048addec
JD
10298 * process.h (struct Lisp_Process): New member plist replaces old
10299 member private_vars. All uses changed.
63e4e4c6 10300
048addec 10301 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10302 (QCplist): Rename from QCvars. Change all uses.
048addec 10303 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10304 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10305 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10306 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10307
048addec 103082003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10309
6bdb309a 10310 * m/delta.h: Remove (obsolete).
e833850f 10311
048addec 103122003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10313
048addec
JD
10314 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10315 behaviour in front of symlinks.
10316 (Fdelete_file): Raise an error on directories.
817cb127 10317
048addec 103182003-01-13 Dave Love <fx@gnu.org>
817cb127 10319
048addec 10320 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10321
048addec 103222003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10323
048addec
JD
10324 * minibuf.c (minibuffer_completion_contents):
10325 Error if point is inside prompt.
3e8cf2ea 10326
048addec
JD
10327 * keyboard.c (command_loop_1): Don't redisplay directly
10328 if there's a post-command-hook.
3e8cf2ea 10329
048addec
JD
10330 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10331 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10332
048addec 103332003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10334
048addec 10335 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10336
048addec
JD
10337 * process.c (QCvars): New variable.
10338 (syms_of_process): Intern and staticpro it.
10339 (Fset_process_contact): Removed function.
10340 (Fprocess_variable, Fset_process_variable): New functions.
10341 (syms_of_process): Defsubr them.
10342 (Fstart_process): Initialize private_vars plist to nil.
10343 (Fmake_network_process): New arg :vars to setup the private
10344 variables for new network process.
10345 (server_accept_connection): Copy server's private variables to
10346 client process.
2c10f029 10347
048addec
JD
10348 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10349 crashes). Code rewritten and simplified. Now directly aligns the
10350 pointer and recalculates pure_bytes_used, rather than aligning the
10351 size and adjusting the pointer.
b8a76c6c 10352
048addec 103532003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10354
048addec
JD
10355 * process.c (Fset_process_contact): New function.
10356 (syms_of_process): defsubr it.
10357 (make-network-process): Update doc.
3a8d0899 10358
048addec 103592003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10360
048addec
JD
10361 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10362 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10363
048addec 103642003-01-10 Dave Love <fx@gnu.org>
4abc7470 10365
048addec 10366 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10367
048addec 103682003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10369
048addec
JD
10370 * process.c (Fmake_network_process): Convert new port number
10371 to host byte order for `:service t' case. From Mario Lang.
bf338245 10372
048addec 103732003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10374
048addec
JD
10375 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10376 instead of XtAppProcessEvent.
bf338245 10377
048addec
JD
10378 * xterm.c (handle_one_xevent): New function.
10379 (x_dispatch_event): New function.
10380 (XTread_socket): Call handle_one_xevent.
bf338245 10381
048addec 10382 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10383
048addec
JD
10384 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10385 call XQueryPointer to get coordinates.
10386 (popup_get_selection): Do not set popup_activated_flag to zero,
10387 let popup_deactivate_callback do that. Needed for Motif.
10388 Call x_dispatch_event instead of XtDispatchEvent.
10389 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10390
048addec 103912003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10392
6bdb309a 10393 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10394 connection's local address in :local property of contact info.
10395 (Fmake_network_process): Record local network address for new
10396 client processes in :local property of contact info.
6bdb309a 10397 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10398
048addec 103992003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10400
048addec 10401 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10402
048addec 104032003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10404
048addec 10405 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10406
048addec
JD
10407 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10408 use the same test as for custom-variable-p.
8c6d74c6 10409
048addec 104102003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10411
048addec
JD
10412 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10413 Count LAST_LINE_MISFIT in scroll margin for end of window.
10414 Move label too_near_end before setting SCROLL_MARGIN_POS.
10415 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10416
048addec
JD
10417 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10418 scroll_conservatively case. If scrolling that much doesn't change
10419 STARTP, move it down one line.
e833850f 10420
048addec
JD
10421 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10422 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10423
048addec
JD
10424 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10425 selected frame.
8c6d74c6 10426
048addec
JD
10427 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10428 (syms_of_keymap): staticpro them.
10429 (Fapropos_internal): Initialize them and clear them out.
10430 Don't GCPRO them.
8c6d74c6 10431
048addec
JD
10432 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10433 Doc fixes.
8c6d74c6 10434
048addec
JD
10435 * lisp.h: New misc type Lisp_Save_Value.
10436 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10437 (XSAVE_VALUE): New macro.
10438 (struct Lisp_Save_Value): New data type.
10439 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10440 (make_save_value): Declare.
8c6d74c6 10441
048addec 10442 * alloc.c (make_save_value): New function.
8c6d74c6 10443
048addec
JD
10444 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10445 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10446
048addec 104472003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10448
048addec 10449 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10450
048addec
JD
10451 * keyboard.c (command_loop_1): Call adjust_point_for_property
10452 in direct action cases for Qforward_char and Qbackward_char.
10453 Set already_adjusted so it won't be done twice.
8c6d74c6 10454
b6189c3b 104552002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10456
048addec
JD
10457 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10458 type definition of size_t.
8c609cff 10459
048addec 104602003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10461
048addec
JD
10462 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10463 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10464
048addec 104652002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10466
048addec
JD
10467 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10468 to default to t.
fa634a5e 10469
048addec 104702002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10471
048addec 10472 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10473
048addec 104742002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10475
048addec
JD
10476 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10477 allow building in a different directory than source. Uses some
10478 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10479
048addec 104802002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10481
048addec
JD
10482 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10483 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10484 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10485 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10486
048addec 104872002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10488
048addec
JD
10489 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10490 <scroll-down-aggressively>: Doc fix.
2155ecf3 10491
048addec
JD
10492 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10493 string as pane name, if there is one.
10494 (set_frame_menubar): Save menu_items_n_panes from each call to
10495 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10496
048addec
JD
10497 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10498 Don't try to make last line fully visible if it is past end of window.
61f1d295 10499
048addec 105002002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10501
048addec
JD
10502 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10503 (mac_menu_show): Add support for hierarchical popup menus.
10504 (add_menu_item): Remove indentation support.
10505 (fill_submenu, fill_menu): Create hierarchical menus
10506 instead of using indentation.
0b17a217 10507
048addec 105082002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10509
048addec
JD
10510 * xdisp.c (try_cursor_movement): Don't call try_window here.
10511 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10512
048addec 10513 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10514
048addec 105152002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10516
048addec
JD
10517 * macterm.c (XTread_socket): Call KeyTranslate for control and
10518 meta to deal correctly shifted non-alpha characters, like C-S-5
10519 being treated like C-%. Does not look for shift key to deal
10520 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10521
048addec 105222002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10523
048addec
JD
10524 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10525 If it is non-nil, run timers. Use an unwind-protect to requeue
10526 the events that were read ahead.
10527 (popup_get_selection_unwind): New subroutine.
10528 (popup_get_selection_queue): File-scope variable now holds that queue.
10529 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10530 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10531 Use an unwind-protect to pop down the dialog box.
10532 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10533
048addec
JD
10534 * xdisp.c (row_containing_pos): Change exit test using last_y.
10535 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10536
048addec
JD
10537 * lread.c (load_error_handler): New function.
10538 (Fload): Handle errors in Fsubstitute_in_file_name.
10539 Don't expect Fsignal to return.
f02cac82 10540
048addec
JD
10541 * eval.c: Errors and throws work right with interrupt blocking.
10542 (struct catchtag): New elt interrupt_input_blocked.
10543 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10544 (internal_catch, Fcondition_case, internal_condition_case)
10545 (internal_condition_case_1, internal_condition_case_2): Save it.
10546 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10547
048addec 10548 * editfns.c (Fformat): Add parens.
f02cac82 10549
048addec
JD
10550 * dired.c (file_name_completion): Fix that change.
10551 Delete special quit-handling code; just use QUIT.
f02cac82 10552
b6189c3b 105532002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10554
048addec
JD
10555 * dired.c (file_name_completion): Close directory on error
10556 just as in directory_files_internal.
1a590729 10557
048addec 105582002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10559
048addec
JD
10560 * window.c (Fset_window_configuration): Set old_point to correct
10561 value when new_current_buffer == current_buffer.
f02cac82 10562
048addec 105632002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10564
048addec
JD
10565 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10566 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10567 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10568
048addec
JD
10569 These changes were in part based upon suggestions made by Peter
10570 'Luna' Runestig [peter@runestig.com].
9785d95b 10571
048addec
JD
10572 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10573 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10574 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10575 global variables.
9785d95b 10576
048addec
JD
10577 * w32.c (globals_of_w32): New function. Used to initialize those
10578 global variables that must always be initialized on startup even
10579 when the global variable initialized is non zero. Its primary
10580 purpose at this time is to set the global variables
10581 g_b_init_is_windows_9x, g_b_init_open_process_token,
10582 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10583 g_b_init_get_sid_identifier_authority to 0 on startup.
10584 Called from main.
9785d95b 10585
048addec
JD
10586 * w32.c (is_windows_9x): Perform initialization only if
10587 g_b_init_is_windows_9x is equal to 0. On initialization set
10588 g_b_init_is_windows_9x equal to 1.
2308af15 10589
048addec
JD
10590 * w32.c (open_process_token): Perform initialization only if
10591 g_b_init_open_process_token is equal to 0. On initialization set
10592 g_b_init_open_process_token equal to 1.
2308af15 10593
048addec
JD
10594 * w32.c (get_token_information): Perform initialization only if
10595 g_b_init_get_token_information is equal to 0. On initialization
10596 set g_b_init_get_token_information equal to 1.
9785d95b 10597
048addec
JD
10598 * w32.c (lookup_account_sid): Perform initialization only if
10599 g_b_init_lookup_account_sid is equal to 0. On initialization
10600 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10601
048addec
JD
10602 * w32.c (get_sid_identifier_authority): Perform initialization
10603 only if g_b_init_get_sid_identifier_authority is equal to 0.
10604 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10605
f63fd14e 10606 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10607 those global variables that must always be initialized on startup
10608 even when the global variable initialized is non zero.
10609 Its primary purpose at this time is to initialize the global variable
10610 track_mouse_event_fn.
9785d95b 10611
a64387ee 10612 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10613 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10614
048addec 10615 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10616
f63fd14e 10617 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10618 initialize those global variables that must always be initialized
10619 on startup even when the global variable initialized is non zero.
10620 Its primary purpose at this time is to initialize the global
10621 variables get_menu_item_info and set_menu_item_info.
9785d95b 10622
048addec
JD
10623 * w32menu.c (initialize_frame_menubar): Remove initialization of
10624 get_menu_item_info and set_menu_item_info.
9785d95b 10625
048addec 10626 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10627
048addec
JD
10628 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10629 Declare them.
9785d95b 10630
048addec
JD
10631 * emacs.c (main): Call globals_of_w32 prior to calling
10632 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10633 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10634 is defined.
9785d95b 10635
048addec
JD
10636 * w32term.c (x_update_window_begin): Fix Windows API error
10637 detected by BoundsChecker. Test to determine if
10638 w32_system_caret_hwnd is NULL prior to attempting to use
10639 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10640
048addec
JD
10641 * w32term.c (x_update_window_end): Fix Windows API error
10642 detected by BoundsChecker. Test to determine if
10643 w32_system_caret_hwnd is NULL prior to attempting to use
10644 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10645
048addec 106462002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10647
048addec
JD
10648 * coding.c (coding_system_require_warning): New variable.
10649 (syms_of_coding): DEFVAR it.
b6da19ef 10650
048addec 10651 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10652
048addec
JD
10653 * fileio.c (choose_write_coding_system): Even if
10654 Vcoding_system_for_write is non-nil, if
10655 coding_system_require_warning is nonzero, call
10656 Vselect_safe_coding_system_function.
bfcf6dbe 10657
048addec 106582002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10659
048addec
JD
10660 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10661 (lisp): Add font-core.
2c568af5 10662
048addec 106632002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10664
048addec
JD
10665 * textprop.c (text_read_only): New arg `propval'.
10666 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10667 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10668
048addec 106692002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10670
048addec 10671 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10672
048addec 106732002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10674
048addec
JD
10675 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10676 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10677 Be more careful about when help_events are generated.
96720f09 10678
048addec 106792002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10680
048addec
JD
10681 * macterm.c (mac_check_for_quit_char): Correctly set the
10682 modifiers of the event to 0.
10683 * mac.c (sys_select): Duplicate rfds before calling select to
10684 ensure that rfds survive the while loop.
e5ae1c49 10685
048addec 106862002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10687
048addec
JD
10688 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10689 row_containing_pos returned NULL.
2eb46b2d 10690
048addec 106912002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10692
6bdb309a 10693 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10694 non-blocking.
6bdb309a 10695 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10696 the one given.
b11f1d8a 10697
048addec 106982002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10699
048addec 10700 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10701
048addec 107022002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10703
048addec
JD
10704 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10705 as the last thing.
a4ac5b17 10706
048addec 107072002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10708
048addec 10709 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10710
048addec 107112002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10712
048addec
JD
10713 * editfns.c (Fformat): Handle precision in string conversion
10714 specifiers like libc functions do (ie, print at most that many
10715 characters).
85cce843 10716
048addec 107172002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10718
048addec
JD
10719 * xdisp.c (row_containing_pos): Check more carefully
10720 whether charpos is really in the row before returning it.
0d4d26a7 10721
048addec 107222002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10723
048addec 10724 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10725
048addec
JD
10726 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10727 each stack frame. This may change as it could be time consuming.
0d4d26a7 10728
048addec
JD
10729 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10730 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10731 (mac_initialize): Add code to check for pressing of quit_char
048addec 10732 in the OS event queue.
b11f1d8a 10733
048addec
JD
10734 * mac.c (sys_select): Call mac_check_for_quit_char every second
10735 while blocking on select.
0d4d26a7 10736
048addec
JD
10737 * mac.c (sys_read): Use sys_select to test for input first
10738 before calling read, to allow C-g to break.
9252f7bc 10739
048addec 107402002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10741
048addec 10742 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10743
048addec 10744 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10745
048addec 10746 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10747
048addec
JD
10748 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10749 autoload.
9252f7bc 10750
048addec 10751 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10752
048addec 10753 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10754
048addec 107552002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10756
048addec 10757 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10758
048addec 107592002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10760
048addec 10761 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10762
048addec 10763 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10764
048addec 10765 * alloca.c: Don't use #error.
02d588e2 10766
048addec 107672002-12-03 Dave Love <fx@gnu.org>
02d588e2 10768
048addec
JD
10769 * buffer.c (Qucs_set_table_for_input): New.
10770 (Fget_buffer_create): Use it.
10771 (Qset_buffer_major_mode_hook): Deleted.
10772 (Fset_buffer_major_mode): Revert previous change.
10773 (init_buffer_once): Intern ucs-set-table-for-input.
10774 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10775 Add &Qucs_set_table_for_input.
451e2697 10776
048addec 107772002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10778
048addec
JD
10779 * callint.c (Fcall_interactively): Use next_event only if less
10780 than key_count.
72742a99 10781
048addec 107822002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10783
048addec
JD
10784 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10785 names to 255 characters.
72742a99 10786
048addec
JD
10787 * macterm.c (XTread_socket): If all frames have been collapsed,
10788 expand the first one before handling drag-and-drop events.
72742a99 10789
048addec
JD
10790 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10791 which is detected by autoconf.
40e6ff95 10792
048addec 107932002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10794
048addec
JD
10795 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10796 offset in two hints table to allow prebinding to be redone and
10797 allow the executable to be stripped.
c02138c6 10798
048addec 107992002-11-29 Dave Love <fx@gnu.org>
c02138c6 10800
048addec
JD
10801 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10802 already provided.
0e47bbf7 10803
048addec 108042002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10805
048addec
JD
10806 * xdisp.c (start_display): Check more intelligently for
10807 whether the line is continued.
10808 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10809
048addec 108102002-11-28 Dave Love <fx@gnu.org>
44129dcb 10811
048addec
JD
10812 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10813 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10814
048addec 108152002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10816
048addec
JD
10817 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10818 more descriptive error output from lread.c:Fload upon most require
10819 cycles during boostrapping.
1637fd2c 10820
048addec 108212002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10822
048addec
JD
10823 * fileio.c (Finsert_file_contents): Give a more appropriate error
10824 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10825
048addec
JD
10826 * dired.c (Ffile_attributes): Don't return negative file sizes for
10827 files bigger than 2Gb when off_t is 32 bit.
540c2788 10828
048addec 108292002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10830
048addec 10831 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10832
048addec
JD
10833 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10834 Test GETPGRP_VOID instead.
10835 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10836
048addec
JD
10837 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10838 Don't define.
10839 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10840
048addec 10841 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10842
048addec 108432002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10844
048addec
JD
10845 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10846 supported.
4042a81a 10847
048addec 108482002-11-25 Dave Love <fx@gnu.org>
4042a81a 10849
048addec 10850 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10851
048addec 10852 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10853
048addec 108542002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10855
048addec 10856 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10857
048addec 108582002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10859
048addec
JD
10860 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10861 determine the size of pointers alloced in unexed space instead
10862 of using possibly invalid emacs_zone pointers. This fixes the
10863 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10864
048addec 108652002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10866
048addec 10867 * search.c (Fstring_match): Doc fix.
c1ee53bc 10868
048addec
JD
10869 * callint.c (Fcall_interactively): If a command fails because
10870 `*' detects a read-only buffer, but RECORD_FLAG is set,
10871 record it anyway if the args don't actually do tty input.
5598c32e 10872
048addec 108732002-11-22 Dave Love <fx@gnu.org>
5598c32e 10874
048addec 10875 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10876
048addec
JD
10877 * keyboard.c (interrupt_signal): Provide forward declaration.
10878 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10879
048addec 10880 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10881
048addec 108822002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10883
048addec
JD
10884 * eval.c (interactive_p): Skip any number of bytecode
10885 and special form frames, in any order.
516eea8e 10886
048addec 108872002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10888
048addec
JD
10889 * w32fns.c (convert_mono_to_color_image): New function.
10890 (xbm_load, xbm_load_image): Use it when foreground or background
10891 is explicitly set.
04dbfa08 10892
048addec 108932002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10894
048addec 10895 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10896
048addec 108972002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10898
048addec
JD
10899 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10900 (XPutPixel): Swap blue and red.
10901 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10902 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10903 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10904 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10905
048addec 109062002-11-18 Dave Love <fx@gnu.org>
d824beee 10907
048addec 10908 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10909
048addec 10910 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10911
048addec 10912 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10913
048addec
JD
10914 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10915 malloc, realloc, calloc.
d824beee 10916
048addec
JD
10917 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10918 (bcmp): Don't define.
d824beee 10919
048addec 10920 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10921
048addec 10922 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10923
048addec 10924 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10925
048addec 10926 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10927
048addec
JD
10928 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10929 Don't include alloca.h.
d824beee 10930
048addec 10931 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10932
048addec 10933 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10934
048addec 10935 * process.c (_GNU_SOURCE): Don't define.
1998560a 10936
048addec 10937 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10938
048addec 109392002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10940
048addec 10941 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10942
048addec 109432002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10944
048addec
JD
10945 * dispextern.h (struct face): Add `overstrike' field.
10946 * xterm.c (x_draw_glyph_string_foreground)
10947 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10948 * xfaces.c (load_face_font): Set `face->overstrike' based on
10949 result from choose_face_font.
10950 (best_matching_font, choose_face_font): Add `needs_overstrike'
10951 argument, and use it to return whether overstriking is desirable
10952 for this face/font combo.
10953 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10954
048addec 109552002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10956
048addec
JD
10957 This change is my fix for the following entry in etc/PROBLEMS:
10958 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10959 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10960
048addec
JD
10961 * w32.c: Added wrapper functions around the win32 API functions
10962 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10963 GetSidIdentifierAuthority. These wrapper functions serve two
10964 purposes:
10965 1. They ensure that the wrapped function can never be called
10966 when Emacs is running on an operating system on which they are
10967 not supported (Microsoft Windows 95 / 98 / ME).
10968 2. They call the wrapped functions via function pointers rather
10969 than calling them directly. This avoids taking advantage of the
10970 undocumented fact that although these functions are not supported
10971 in the 9x branch of Microsoft Windows, the functions do exist in
10972 the version of advapi32.dll that is found in the 9x branch of
10973 Microsoft Windows.
f60ae425 10974
6bdb309a 10975 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10976 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10977 and GetSidIdentifierAuthority with calls to the newly added
10978 wrapper functions.
f60ae425 10979
048addec
JD
10980 * w32.h: Added extern declarations for the following functions:
10981 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10982 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10983
6bdb309a 10984 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10985 function pointer track_mouse_event_fn in the handler for the
10986 WM_SETFOCUS message.
3582b6a3 10987
6bdb309a 10988 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10989 reinitialize the function pointers set_menu_item_info and
10990 get_menu_item_info.
f60ae425 10991
048addec 109922002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10993
048addec
JD
10994 * sound.c: Added a partial implementation of play-sound-internal
10995 for Microsoft Windows. Added various #ifdef / #else / #endif
10996 code blocks to separate the code that will compile under
10997 Microsoft Windows from the code that is specific to Gnu/Linux.
10998 Moved several blocks of code around to make this separation of code
10999 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 11000
048addec 11001 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 11002
048addec
JD
11003 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11004 added support for play-sound-internal under Windows would be
11005 included in the build of Emacs.
517f42a0 11006
048addec 110072002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 11008
048addec 11009 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 11010
048addec 11011 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 11012
048addec 110132002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 11014
048addec
JD
11015 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11016 (adjust_point_for_property): Move out of display and invisible even if
11017 we were already inside before (in case a property was added while
11018 we weren't looking). Be more careful when handling invisible props.
11019 Skip invisible text as if it really wasn't there at all.
aab83f91 11020
048addec 110212002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 11022
048addec
JD
11023 * w32term.c (x_draw_image_foreground)
11024 (w32_draw_image_foreground_1): Use standard copy and invert
11025 operations to draw images.
aab83f91 11026
048addec
JD
11027 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11028 depth of 1.
11029 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11030 (XPutPixel): Don't invert bits here.
a4478a76 11031
048addec 110322002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 11033
048addec
JD
11034 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11035 (w32_draw_image_foreground_1): Handle image masks.
11036 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 11037
048addec
JD
11038 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11039 (x_from_xcolors): Adjust RGB values for W32.
11040 (image_background, image_background_transparent)
11041 (postprocess_image, x_to_xcolors, x_disable_image)
11042 (x_build_heuristic_mask): Adapt for W32 and enable.
11043 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11044 (xbm_load): Remove unused variable.
03670a65 11045
048addec 110462002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 11047
048addec 11048 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 11049
048addec 110502002-11-14 Dave Love <fx@gnu.org>
59daa29a 11051
048addec 11052 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 11053
048addec
JD
11054 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11055 * xmenu.c (unuse_menu_items, digest_single_submenu):
11056 * xfns.c (x_put_x_image):
11057 * xdisp.c (message2_nolog, set_message):
11058 * undo.c (record_point):
11059 * terminfo.c (tparam):
11060 * syntax.c (scan_sexps_forward):
11061 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11062 * composite.c (update_compositions):
11063 * cm.c (calccost, cmgoto):
11064 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 11065
048addec 11066 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 11067
048addec
JD
11068 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11069 Don't declare.
59daa29a 11070
048addec 11071 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 11072
048addec
JD
11073 * fns.c (Fcopy_sequence): Doc fix.
11074 (Fmap_char_table): Cast `call2'.
3947677c 11075
048addec
JD
110762002-11-14 Francesco Potorti` <pot@gnu.org>
11077
11078 * s/sol2-8.h: New file.
11079
110802002-11-14 Kim F. Storm <storm@cua.dk>
11081
11082 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11083 dependency on `risky-local-variable' and the :propertize form.
11084
110852002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11086
11087 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11088
11089 * syntax.c (scan_sexps_forward): Undo last patch.
11090 Use a more obvious fix: check eob before updating the syntax table.
11091
110922002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11093
11094 * syntax.c (scan_sexps_forward): Update syntax table before reading
11095 a char rather than after so we don't update the table past eob.
11096
110972002-11-09 Dave Love <fx@gnu.org>
11098
11099 * buffer.c (Fset_buffer_major_mode): Fix last change.
11100
11101 * regex.c (regexec): Fix pmatch declaration.
11102
11103 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11104
11105 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11106 to self-inserting characters.
11107 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11108
11109 * coding.c (Vtranslation_table_for_input): New.
11110 (syms_of_coding): DEFVAR it.
11111
111122002-11-08 Juanma Barranquero <lektu@terra.es>
11113
11114 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11115 window.
11116
111172002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11118
6bdb309a 11119 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
11120 cp, and i.
11121
111222002-11-06 Dave Love <fx@gnu.org>
11123
11124 * buffer.c (Qset_buffer_major_mode_hook): New.
11125 (Fset_buffer_major_mode): Use it.
11126
111272002-11-06 Richard M. Stallman <rms@gnu.org>
11128
11129 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11130 and stop_polling.
11131
11132 * process.c (wait_reading_process_input):
11133 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11134 Avoid initialization for auto Lisp_Object var.
11135
11136 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11137
11138 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11139
111402002-11-05 Richard M. Stallman <rms@gnu.org>
11141
11142 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11143
11144 * callint.c (Fcall_interactively): New local filter_specs.
11145 (Fcall_interactively): Check for progn as well as let.
11146 Add a gcpro.
11147 (Qprogn): New variable.
11148 (syms_of_callint): Staticpro and init Qprogn.
11149
111502002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11151
11152 * lread.c (Feval_buffer): Doc fix.
11153
111542002-11-04 Dave Love <fx@gnu.org>
11155
11156 * keyboard.c (read_char): Always translate iff
11157 Vkeyboard_translate_table is a char table and c is valid.
11158
11159 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11160 and fix C types.
11161
111622002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11163
11164 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11165
11166 * editfns.c (get_pos_property): Don't hardcode Qfield.
11167
11168 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11169 overlays. Also handle `invisible' prop.
11170
111712002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11172
11173 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11174 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11175
111762002-11-01 Andreas Schwab <schwab@suse.de>
11177
11178 * editfns.c (Fmessage): Revert last change to properly handle %%.
11179
111802002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11181
11182 * xmenu.c (unuse_menu_items): New fun.
11183 (menu_items_inuse): New var.
11184 (syms_of_xmenu): Initialize it.
11185 (init_menu_items): Use it to detect re-entrance.
11186 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11187 (Fx_popup_menu): Remove spurious XSETFRAME.
11188
11189 * editfns.c (find_field): Make an exception for nil fields.
11190
111912002-11-01 Dave Love <fx@gnu.org>
11192
11193 * m/gec63.h: Deleted.
11194
111952002-10-31 Dave Love <fx@gnu.org>
11196
11197 * xterm.c (XTread_socket): Fix last change.
11198 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11199
112002002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11201
11202 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11203
112042002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11205
11206 * editfns.c (overlays_around, get_pos_property): New funs.
11207 (find_field): Use them.
11208 Also be careful not to modify POS before its last use.
11209 (Fmessage): Don't Fformat if there's nothing to format.
11210
112112002-10-30 Dave Love <fx@gnu.org>
11212
11213 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11214 [HAVE_PTY_H]; Include pty.h.
11215
11216 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11217
11218 * xterm.c (Qeql): Declare.
11219 (Vx_keysym_table): New.
11220 (syms_of_xterm): Initialize it.
11221 (XTread_socket): Use it. Deal with ASCII keysyms.
11222 (XSetIMValues) [HAVE_X11R6]: Prototype.
11223
11224 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11225 (lispy_kana_keys): Comment out.
11226 (make_lispy_event) [XK_kana_A]: Comment out.
11227 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11228 Fix sprintf call.
11229
11230 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11231 regexp.h change).
11232 (TERMINFO, LIBS_TERMCAP): Define.
11233
11234 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11235 (bcmp): Define conditional on HAVE_BCMP.
11236 (NO_SIOCTL_H): Don't define.
11237 (TIOCSIGSEND): Don't make conditional on IRIX6.
11238
11239 * s/sol2-5.h: Don't include strings.h.
11240 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11241
11242 * s/irix6-0.h (IRIX6): Don't define.
11243 (bcopy, bcmp, bzero): Don't undef.
11244
11245 * s/irix6-5.h: Don't include strings.h.
11246 (IRIX6): Don't define.
11247 (bcopy, bcmp, bzero): Don't undef.
11248
11249 * syntax.c (Fforward_comment): Doc fix.
11250
112512002-10-29 Kim F. Storm <storm@cua.dk>
11252
11253 * process.c (Fsignal_process): Allow PROCESS to be specified by
11254 name in addition to pid (as integer or string).
11255
112562002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11257
11258 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11259 environments.
11260
112612002-10-27 Kim F. Storm <storm@cua.dk>
11262
11263 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11264
11265 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11266
11267 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11268
11269 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11270
112712002-10-26 Richard M. Stallman <rms@gnu.org>
11272
11273 * editfns.c (Fformat): Detect invalid format letters for floats.
11274
112752002-10-25 Kenichi Handa <handa@m17n.org>
11276
11277 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11278 (x_set_title): Likewise.
11279
112802002-10-25 Juanma Barranquero <lektu@terra.es>
11281
11282 * macgui.h:
11283 * w32gui.h: Remove definition of XColor.
11284
11285 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11286
112872002-10-24 Kim F. Storm <storm@cua.dk>
11288
11289 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11290 Callers changed (supply dummy arg).
11291
11292 * lisp.h (get_window_cursor_type): Update prototype.
11293
11294 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11295 get_window_cursor_type to track system caret.
11296
112972002-10-24 Kim F. Storm <storm@cua.dk>
11298
11299 * process.c (Fformat_network_address): New function.
11300 (syms_of_process): Defsubr it.
11301 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11302 service/host is not set; before Emacs would crash in that case.
048addec
JD
11303 (Fmake_network_process): Don't use Ffind_operation_coding_system
11304 to setup coding system if host or service is not set.
11305
113062002-10-23 Juanma Barranquero <lektu@terra.es>
11307
11308 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11309
11310 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11311 COLORREF.
11312
11313 * macgui.h:
11314 * w32gui.h: Add definition of XColor.
11315
11316 * macfns.c:
11317 * w32fns.c:
11318 * xfaces.c: Remove definition of XColor.
11319
113202002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11321
11322 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11323
11324 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11325 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11326 window if it is dedicated.
11327 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11328 (Vspecial_display_function): Update docstring.
11329
11330 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11331 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11332 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11333
113342002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11335
11336 * casefiddle.c (casify_region): Don't treat a prefix char as part
11337 of a word when at the beginning.
11338
113392002-10-17 Juanma Barranquero <lektu@terra.es>
11340
11341 * lread.c (syms_of_lread): Fix typos.
11342
113432002-10-17 Dave Love <fx@gnu.org>
11344
11345 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11346
113472002-10-16 Richard M. Stallman <rms@gnu.org>
11348
11349 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11350
113512002-10-14 Juanma Barranquero <lektu@terra.es>
11352
11353 * w16select.c (syms_of_win16select): Fix docstring for
11354 `selection-coding-system'.
11355
11356 * w32select.c (syms_of_w32select): Likewise.
11357
113582002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11359
11360 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11361 a backslash-quoted char.
11362 (scan_lists, scan_sexps_forward): Pacify the compiler.
11363
113642002-10-13 Richard M. Stallman <rms@gnu.org>
11365
11366 * window.c (window_scroll): Set immediate_quit.
11367
11368 * print.c (print): When backquote form is the car of a list,
11369 output in old style. Use old_backquote_output to output all
11370 comma forms inside it in old style too.
11371
11372 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11373
113742002-10-11 Markus Rost <rost@math.ohio-state.edu>
11375
11376 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11377 batch mode).
11378
11379 * lread.c (Fload): Doc fix (load-suffixes).
11380
113812002-10-10 Steven Tamm <steventamm@mac.com>
11382
11383 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11384 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11385 Also switch the default to Qnil from Qt.
11386
113872002-10-08 Kenichi Handa <handa@m17n.org>
11388
11389 * coding.c (code_convert_region): When we need more GAP for
11390 conversion, pay attention to the case that coding->produced is not
11391 greater than coding->consumed.
11392
113932002-10-07 Richard M. Stallman <rms@gnu.org>
11394
11395 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11396
113972002-10-06 Andrew Choi <akochoi@shaw.ca>
11398
11399 * macmenu.c (mac_menu_show): Add j to count menu items; match
11400 menu_item_selection to it to find selected item.
11401
114022002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11403
11404 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11405 cases. The correct fix is to pass ReparentNotify to Xt.
11406 The shell widget interprets ConfigureNotify differently depending
11407 on if it has been reparented or not.
11408
114092002-10-05 Markus Rost <rost@math.ohio-state.edu>
11410
11411 * editfns.c (Fformat_time_string): Doc fix.
11412
114132002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11414
11415 * fns.c (Flength): Doc fix.
11416
114172002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11418
11419 * keyboard.c (keyremap): New struct.
11420 (read_key_sequence): Use it: globally replace keytran_foo with
11421 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11422 keytran_next and fkey_next to just `next'.
11423
114242002-10-04 Steven Tamm <steventamm@mac.com>
11425
11426 * macterm.c (keycode_to_xkeysym_table): Change return to be
11427 treated like an X keysym.
11428
114292002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11430
11431 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11432 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11433 This is to also handle x/y changes that occur because of a resize.
11434
114352002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11436
11437 * frame.c (Vdelete_frame_functions): New variable.
11438 (syms_of_frame): Initialize and defvar it.
11439 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11440 it when frame's `tooltip' parameter is non-nil.
11441
11442 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11443
11444 * w32fns.c (x_create_tip_frame): Likewise.
11445
11446 * macfns.c (x_create_tip_frame): Likewise.
11447
114482002-09-30 Kenichi Handa <handa@m17n.org>
11449
11450 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11451 -1 before calling ccl_driver.
11452
11453 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11454 Only when it is non-nil, handle composition sequence.
11455 (setup_coding_system) <0>: Don't force composition handling.
11456
11457 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11458
114592002-09-29 Richard M. Stallman <rms@gnu.org>
11460
11461 * search.c (Freplace_match): Adjust match data for the substitution
11462 just made in the buffer.
11463
11464 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11465 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11466
114672002-09-27 Richard M. Stallman <rms@gnu.org>
11468
11469 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11470 (read_char): Use them. Do all exits thru the end of the function.
11471
114722002-09-27 Kenichi Handa <handa@etl.go.jp>
11473
11474 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11475 is nil.
11476
114772002-09-26 Richard M. Stallman <rms@gnu.org>
11478
11479 * regex.h (__restrict_arr): Don't define if already defined.
11480
11481 * coding.c (run_pre_post_conversion_on_str):
11482 Save and restore Vdeactivate_mark.
11483
114842002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11485
11486 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11487
114882002-09-26 Kenichi Handa <handa@etl.go.jp>
11489
11490 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11491 nonzero, try face's family at first. Otherwise try FAMILY at first.
11492 (choose_face_font): If C is a single byte char or latin-1, call
11493 try_font_list with PREFER_FACE_FAMILY 1.
11494
114952002-09-21 Richard M. Stallman <rms@gnu.org>
11496
11497 * window.c (select_window_1): Don't select frame.
11498 Set frame's selected window only when frame itself is selected.
11499 (Fselect_window): Doc fix.
11500
115012002-09-18 Kim F. Storm <storm@cua.dk>
11502
11503 * process.c (make-network-process): Doc fix (there is no
11504 network-server-log-function hook).
11505
115062002-09-18 Richard M. Stallman <rms@gnu.org>
11507
11508 * print.c (print): Clear out the unused parts of Vprint_number_table.
11509 (syms_of_print): Doc fix for `print-number-table'.
11510
11511 * unexelf.c (unexec): Undo previous change.
11512
115132002-09-17 Andreas Schwab <schwab@suse.de>
11514
11515 * m/alpha.h [LINUX]: Don't define DATA_START.
11516
115172002-09-16 Dave Love <fx@gnu.org>
11518
11519 * unexelf.c (unexec): Deal with .got, reinstating change from
11520 25-08-1999.
11521
115222002-09-13 Richard M. Stallman <rms@gnu.org>
11523
11524 * s/sol2-6.h (UNEXEC): Comment out definition.
11525
11526 * unexsol.c (unexec): Don't downcase first letter of error msg.
11527
11528 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11529
115302002-09-12 Markus Rost <rost@math.ohio-state.edu>
11531
11532 * unexsol.c: Include buffer.h, charset.h, coding.h.
11533
115342002-09-11 Richard M. Stallman <rms@gnu.org>
11535
11536 * unexsol.c: Don't use report_file_error; do it by hand
11537 using dlerror.
11538
11539 * process.c (wait_reading_process_input, both versions):
11540 Before calling turn_on_atimers, call stop_polling.
11541
11542 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11543
11544 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11545 we go to too_near_end, call clear_glyph_matrix.
11546 (redisplay_window): After make_cursor_line_fully_visible,
11547 call clear_glyph_matrix and bypass `goto done'.
11548
11549 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11550 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11551
115522002-09-10 Richard M. Stallman <rms@gnu.org>
11553
11554 * fileio.c (Fdo_auto_save): Catch error making directory.
11555 Only call push_message if we need to.
11556 At the same time, make an unwind-protect to pop it.
11557 Rename local message_p to old_message_p.
11558 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11559 (do_auto_save_unwind): Don't call pop_message.
11560
11561 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11562
11563 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11564
11565 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11566
11567 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11568
115692002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11570
11571 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11572 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11573 (re_match_2_internal): Be more careful with infinite loops.
11574
115752002-09-10 Kim F. Storm <storm@cua.dk>
11576
11577 * macros.c (end_kbd_macro): New function.
11578 (Fend_kbd_macro): Use it.
11579
11580 * macros.h (end_kbd_macro): Declare extern.
11581
11582 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11583 end and save it instead of discarding it.
11584
115852002-09-09 Markus Rost <rost@math.ohio-state.edu>
11586
11587 * s/sol2-6.h: Fix typo. Add comment.
11588
115892002-09-09 Richard M. Stallman <rms@gnu.org>
11590
11591 * regex.c (regnum_t): Use signed int, not unsigned int.
11592
11593 * s/sol2-6.h: New file.
11594
11595 * s/sol2-5.h (UNEXEC): Definition deleted.
11596
115972002-09-08 Kim F. Storm <storm@cua.dk>
11598
11599 * macros.c (executing_macro_index): Change type to EMACS_INT.
11600 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11601
11602 * macros.h (executing_macro_index): Change type to EMACS_INT.
11603
116042002-09-06 Richard M. Stallman <rms@gnu.org>
11605
11606 * casetab.c (set_case_table): Make canon table point to eqv table.
11607
116082002-09-06 Juanma Barranquero <lektu@terra.es>
11609
11610 * coding.c (syms_of_coding): Fix spacing.
11611
11612 * composite.c (Fcompose_region_internal)
11613 (Fcompose_string_internal): Likewise.
11614
11615 * data.c (Flsh): Likewise.
11616
11617 * fontset.c (Fset_fontset_font): Likewise.
11618
11619 * macfns.c (Fx_server_max_request_size): Likewise.
11620
11621 * w16select.c (syms_of_win16select): Likewise.
11622
11623 * w32select.c (syms_of_w32select): Likewise.
11624
11625 * xselect.c (syms_of_xselect): Likewise.
11626
116272002-09-05 Richard M. Stallman <rms@gnu.org>
11628
11629 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11630 call EXTEND_RANGE_TABLE and return a proper value.
11631 (set_image_of_range): Don't call set_image_of_range_1
11632 if no TRANSLATE or if range includes all of Latin-1.
11633 Only call it for the Latin-1 part of the range.
11634 For other cases, make two separate ranges,
11635 one for the original specified characters and one for
11636 their case-conversions.
11637
116382002-09-04 Richard M. Stallman <rms@gnu.org>
11639
11640 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11641
11642 * window.c (displayed_window_lines): Correct for one-off bug
11643 in HEIGHT on non-window displays.
11644
11645 * regex.c (set_image_of_range_1): New function.
11646 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11647 Return a value to indicate running out of memory.
11648 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11649 (extend_range_table_work_area): New subroutine.
11650 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11651 Different calling conventions, and used from set_image_of_range{,_1}.
11652 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11653
116542002-09-04 Juanma Barranquero <lektu@terra.es>
11655
11656 * makefile.w32-in: All dependencies updated.
11657
116582002-09-01 Richard M. Stallman <rms@gnu.org>
11659
11660 * unexsol.c: New file.
11661
11662 * xfns.c (Qbox): Declare external, don't define.
11663
11664 * xdisp.c (redisplay_window) <force-start case>:
11665 If point is on semi-visible last line, reposition
11666 it at previous line.
11667
11668 * alloc.c (display_malloc_warning): Use display-warning.
11669 (malloc_warning_1): Function deleted.
11670
11671 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11672
11673 * lread.c (read1): Handle #! by skipping the line.
11674
116752002-08-31 Richard M. Stallman <rms@gnu.org>
11676
11677 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11678 Don't include LDFLAGS.
11679 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11680
116812002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11682
11683 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11684 member of x_display_info unless we compile for some window system.
11685
116862002-08-31 Kim F. Storm <storm@cua.dk>
11687
11688 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11689 (get_window_cursor_type): Don't use them.
11690 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11691
116922002-08-30 Kenichi Handa <handa@etl.go.jp>
11693
11694 * xdisp.c (get_next_display_element): Fix previous change.
11695
116962002-08-30 Andrew Choi <akochoi@shaw.ca>
11697
11698 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11699 (expose_window): Use it to fix the display of overlapping
11700 rows (merge code from xterm.c).
11701
11702 * macfns.c (Qbox): Add extern declaration.
11703
117042002-08-30 Juanma Barranquero <lektu@terra.es>
11705
11706 * w32fns.c (Qbox): Make extern.
11707 (syms_of_w32fns): Remove initialization of Qbox.
11708
117092002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11710
11711 * xfns.c (Fx_open_connection): Fix error message.
11712
117132002-08-30 Kim F. Storm <storm@cua.dk>
11714
11715 The following changes consolidates the handling of the cursor
11716 type in xdisp.c, moving duplicate code and functionality from
11717 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11718
11719 * frame.h (enum text_cursor_kinds): Consolidated here.
11720 Added DEFAULT_CURSOR value.
11721 (struct frame) <desired_cursor, cursor_width>
11722 <blink_off_cursor, blink_off_cursor_width>: New fields.
11723 Consolidated from output_x, output_w32 and output_mac structs.
11724 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11725 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11726
11727 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11728 Variables consolidated here.
11729 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11730 (Vcursor_in_non_selected_windows): Renamed from
11731 cursor_in_non_selected_windows and changed to Lisp_Object.
11732 (syms_of_xdisp): Define and staticpro new and moved variables.
11733 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11734 consolidated here. Recognize Qhollow setting.
11735 (set_frame_cursor_types): New function to set frame cursor types
11736 based on the frame parameters.
11737 (get_window_cursor_type): New function to calculate new cursor
11738 type and width for the specified window. Based on duplicated
11739 code consolidated here.
11740 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11741 check buffer-local alternate-cursor-type and blink-cursor-alist
11742 before using built-in blink off methods.
11743
11744 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11745
11746 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11747 (get_specified_cursor_type, get_window_cursor_type)
11748 (set_frame_cursor_types): Added prototypes.
11749
11750 * macfns.c (x_specified_cursor_type): Removed.
11751 (x_set_cursor_type): Use set_frame_cursor_types.
11752 (Qbar, Qbox): Removed.
11753 (syms_of_macfns): Don't intern or staticpro them.
11754
11755 * macterm.c (x_specified_cursor_type): Remove prototype.
11756 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11757 (x_display_and_set_cursor): Use get_window_cursor_type.
11758 Remove unused local variables cursor_non_selected, active_cursor.
11759 Redraw cursor if hbar cursor width changes.
11760 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11761
11762 * macterm.h (enum text_cursor_kinds): Removed.
11763 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11764 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11765 (FRAME_DESIRED_CURSOR): Macro removed.
11766
11767 * w32fns.c (Vblink_cursor_alist): Removed.
11768 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11769 (syms_of_w32fns): Don't intern, staticpro, or define them.
11770 (x_specified_cursor_type): Removed.
11771 (x_set_cursor_type): Use set_frame_cursor_types.
11772
11773 * w32term.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_off_state.
11777 Redraw cursor if hbar cursor width changes.
11778 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11779
11780 * w32term.h (enum text_cursor_kinds): Removed.
11781 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11782 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11783 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11784 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11785 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11786 w32_highlight_frame.
11787
11788 * xfns.c (Vblink_cursor_alist): Removed.
11789 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11790 (syms_of_xfns): Don't intern, staticpro, or define them.
11791 (x_specified_cursor_type): Removed.
11792 (x_set_cursor_type): Use set_frame_cursor_types.
11793
11794 * xterm.c (x_specified_cursor_type): Remove prototype.
11795 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11796 (x_display_and_set_cursor): Use get_window_cursor_type.
11797 Remove unused local variables cursor_off_state.
11798 Redraw cursor if hbar cursor width changes.
11799
11800 * xterm.h (enum text_cursor_kinds): Removed.
11801 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11802 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11803 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11804 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11805 (x_specified_cursor_type): Remove prototype.
11806
118072002-08-28 Richard M. Stallman <rms@gnu.org>
11808
11809 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11810 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11811 (Vblink_cursor_alist): New variable.
11812 (syms_of_w32fns): Initialize and defvar it.
11813 (x_specified_cursor_type): Recognize Qbox for filled box.
11814 Exceptions are hollow boxes.
11815 (Qbox, Qhollow): New variables.
11816 (syms_of_w32fns): Initialize and staticpro them.
11817
11818 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11819 New macros.
11820 (struct w32_output): New fields blink_off_cursor,
11821 blink_off_cursor_width.
11822 (FRAME_CURSOR_WIDTH): New macro.
11823
11824 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11825 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11826
11827 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11828 for bar cursor.
11829
11830 * w32term.c (expose_overlaps): New function.
11831 (expose_window): Use it to fix the display of overlapping rows.
11832
118332002-08-28 Simon Josefsson <jas@extundo.com>
11834
11835 * xfns.c (Fx_open_connection): Improve help when X connection
11836 fails, xhost is insecure and xauth is better.
11837
118382002-08-28 Juanma Barranquero <lektu@terra.es>
11839
11840 * makefile.w32-in: Add missing dependencies on w32term.h and
11841 composite.h.
11842
11843 * emacs.c (USAGE1): Add missing newline.
11844
118452002-08-27 Andrew Choi <akochoi@shaw.ca>
11846
11847 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11848
118492002-08-27 Richard M. Stallman <rms@gnu.org>
11850
11851 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11852 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11853 (Vblink_cursor_alist): New variable.
11854 (syms_of_xfns): Initialize and defvar it.
11855 (x_specified_cursor_type): Recognize Qbox for filled box.
11856 Exceptions are hollow boxes.
11857 (Qbox, Qhollow): New variables.
11858 (syms_of_xfns): Initialize and staticpro them.
11859
11860 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11861 New macros.
11862 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11863
11864 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11865 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11866
11867 * emacs.c (main): Handle --script.
11868 (USAGE1): Mention --script.
11869 (standard_args): Define sort order for --script.
11870
118712002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11872
11873 * xdisp.c (redisplay_updating_p): Variable removed.
11874 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11875 New variables.
11876 (init_iterator): Don't free realized faces if
11877 inhibit_free_realized_faces is set.
11878 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11879 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11880 initialize Qinhibit_free_realized_faces.
11881
11882 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11883 when iterator is adding glyphs to a glyph matrix.
11884
118852002-08-27 Kenichi Handa <handa@etl.go.jp>
11886
11887 * xdisp.c (get_next_display_element): In unibyte case, don't use
11888 octal form for such eight-bit characters that can be converted to
11889 multibyte char.
11890
118912002-08-26 Kim F. Storm <storm@cua.dk>
11892
b6189c3b
KS
11893 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11894 foreground and background colors. From Joe Buehler.
048addec
JD
11895
118962002-08-26 Miles Bader <miles@gnu.org>
11897
11898 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11899
119002002-08-25 Andrew Choi <akochoi@shaw.ca>
11901
11902 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11903 defined instead of MAC_OSX.
11904
11905 * s/darwin.h (select): Define select to sys_select only if
11906 HAVE_CARBON is defined.
11907 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11908 (DONT_REOPEN_PTY): #def it.
11909
11910 * macterm.c (XTread_socket): Remove code to call
11911 SendEventToEventTarget for keys with command modifiers when
11912 mac_command_key_is_meta is nil.
11913
119142002-08-24 Andreas Schwab <schwab@suse.de>
11915
11916 * eval.c (Fdefvar): Fix last change.
11917
119182002-08-23 Richard M. Stallman <rms@gnu.org>
11919
11920 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11921 Record variables in load history as (defvar . VAR).
11922 (Fdefvar): Don't record in load history if no initial value.
11923 (Qdefvar): New variable.
11924 (syms_of_eval): Init and staticpro it.
11925
11926 * lread.c (syms_of_lread): Doc fix.
11927 (build_load_history): Use Fmember to see if a definition
11928 is already in the Vload_history element.
11929
11930 * process.c (Fstart_process): Remove /: from program name.
11931
11932 * emacs.c (decode_env_path): Don't add /: if file name handler
11933 has a `safe-magic' property.
11934
11935 * callproc.c (Fcall_process): Remove /: from program name.
11936
119372002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11938
11939 * regex.c (PATFETCH): Remove the translating fetch.
11940 (PATFETCH_RAW): Rename to PATFETCH.
11941 (set_image_of_range): New fun.
11942 (SET_RANGE_TABLE_WORK_AREA): Use it.
11943 (regex_compile): Don't translate the pattern chars so eagerly.
11944 Only do it when inserting an `exactn' bytecode or when handling
11945 a char-range.
11946 (mutually_exclusive_p): Avoid empty statement.
11947
119482002-08-22 Kim F. Storm <storm@cua.dk>
11949
11950 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11951 end up on a partially visible line; this reverts a specific part
11952 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11953 display error which has been reported several times now.
11954 However it introduces the problem that changes was supposed to fix.
11955 See my comments in the source if you want to debug this further.
11956
119572002-08-20 Kenichi Handa <handa@etl.go.jp>
11958
11959 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11960
119612002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11962
11963 * msdos.c (croak): Add `void' to definition.
11964
c1380aa6 11965 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11966 Don't define them, they are defined in msdos.c.
11967
11968 * mem-limits.h [MSDOS]: Declare etext.
11969
11970 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11971 `const' since CORRECT_DIR_SEPS modifies its target.
11972
119732002-08-19 Kim F. Storm <storm@cua.dk>
11974
2fb0ce67 11975 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11976 KEEP-RECORD to avoid clearing lossage when we just want to clear
11977 the current key sequence (kmacro needs this).
11978
119792002-08-19 Kenichi Handa <handa@localhost>
11980
11981 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11982
11983 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11984 cons, return Qnil.
11985
119862002-08-17 Richard M. Stallman <rms@gnu.org>
11987
11988 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11989
11990 * sysdep.c [!VMS]: Include sys/files.h.
11991
11992 * editfns.c (save_restriction_restore): Defend from unchained marker.
11993
11994 * buffer.c (overlays_at): Handle extending vec uniformly.
11995 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11996
119972002-08-15 Andrew Choi <akochoi@shaw.ca>
11998
11999 * mac.c (init_mac_osx_environment): New function.
12000
12001 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12002
120032002-08-14 Kim F. Storm <storm@cua.dk>
12004
12005 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12006 executing macro before appending to it (when used from Lisp).
12007 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12008 which is called prior to each iteration of macro (for kmacro.el).
12009 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12010
12011 * lisp.h (Fexecute_kbd_macro): Update prototype.
12012
12013 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12014
120152002-08-14 Kenichi Handa <handa@etl.go.jp>
12016
12017 * xselect.c (QUTF8_STRING): New variable.
12018 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12019 (x_atom_to_symbol): Likewise.
12020 (x_get_local_selection): New argument local_request. If it is
12021 nonzero, call handler_fn with the second arg nil.
12022 (x_handle_selection_request): Call x_get_local_selection with
12023 local_request 0.
12024 (lisp_data_to_selection_data): Don't encode the string here.
12025 (Fx_get_selection_internal): Call x_get_local_selection with
12026 local_request 1.
12027 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12028
12029 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12030
12031 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12032
120332002-08-13 Richard M. Stallman <rms@gnu.org>
12034
12035 * minibuf.c (Fminibufferp): New function.
12036 (syms_of_minibuf): Defsubr it.
12037 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12038
120392002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12040
12041 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12042
120432002-08-12 Richard M. Stallman <rms@gnu.org>
12044
12045 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12046 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12047 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12048 already.
12049
12050 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12051
120522002-08-11 Andrew Choi <akochoi@shaw.ca>
12053
12054 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12055 (Vmac_pass_command_to_system): New variable.
12056 (Vmac_pass_control_to_system): New variable.
12057 (do_mouse_moved): Check wp with is_emacs_window.
12058 (XTread_socket): Check window_ptr with is_emacs_window.
12059 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12060 events back to Mac Toolbox for processing, depending on values of
12061 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12062 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12063 Vmac_pass_control_to_system.
12064
120652002-08-10 Kenichi Handa <handa@etl.go.jp>
12066
12067 * coding.c (unencodable_char_position): New function.
12068 (Funencodable_char_position): New function.
12069 (syms_of_coding): Defsubr Funencodable_char_position.
12070
120712002-08-10 Andrew Choi <akochoi@shaw.ca>
12072
12073 * mac.c (sys_select) [MAC_OSX]: New function.
12074
12075 * macterm.c (MakeMeTheFrontProcess): New function.
12076 (mac_initialize): Call MakeMeTheFrontProcess.
12077
12078 * s/darwin.h: Define select to sys_select.
12079
120802002-08-09 Richard M. Stallman <rms@gnu.org>
12081
12082 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12083
120842002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12085
12086 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12087 end of the buffer.
12088
120892002-08-08 Ken Raeburn <raeburn@mit.edu>
12090
12091 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12092
12093 * puresize.h (BASE_PURESIZE): Increase to 910000.
12094
120952002-08-08 Kenichi Handa <handa@etl.go.jp>
12096
12097 * coding.c (Ffind_operation_coding_system): For write-region, if
12098 VISIT is a filename, make it the target.
12099
121002002-08-07 Richard M. Stallman <rms@gnu.org>
12101
12102 * alloc.c (mark_object): Detect long lists for debugging.
12103 (mark_object_loop_halt): New variable.
12104
12105 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12106
12107 * data.c (Fmake_variable_frame_local): Doc fix.
12108
121092002-08-01 David Ponce <david@dponce.com>
12110
12111 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12112 (malloc_widget_value, free_widget_value)
12113 (w32_free_submenu_strings): Use them.
12114
12115 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12116 (push_menu_pane, push_menu_item, single_keymap_panes)
12117 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12118 (single_submenu, set_frame_menubar)
12119 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12120
12121 (Fx_popup_menu): Don't show pop up menu until preceding one is
12122 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12123
12124 * w32menu.c: Changes adapted from xmenu.c
12125 (set_frame_menubar): First parse all submenus,
12126 then make widget_value trees from them.
12127 Don't allocate any widget_value objects
12128 until we are done with the parsing.
12129 (parse_single_submenu): New function.
12130 (digest_single_submenu): New function.
12131 (single_submenu): Function deleted, replaced by those two.
12132
121332002-08-04 Andrew Choi <akochoi@shaw.ca>
12134
12135 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12136 returns a valid window pointer before proceeding for keyDown and
12137 autoKey events.
12138
121392002-08-03 Andrew Choi <akochoi@shaw.ca>
12140
12141 * macterm.c (USE_CARBON_EVENTS): New macro.
12142 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12143 (x_iconify_frame): Call CollapseWindow.
12144 (Vmac_reverse_ctrl_meta): New variable.
12145 (Vmac_wheel_button_is_mouse_2): New variable.
12146 (init_mac_drag_n_drop): New function.
12147 (mac_do_receive_drag): New function.
12148 (mac_handle_service_event): New function.
12149 (init_service_handler): New function.
12150 (mac_to_emacs_modifiers): New function.
12151 (mac_event_to_emacs_modifiers): New function.
12152 (mac_get_mouse_btn): New function.
12153 (mac_convert_event_ref): New function.
12154 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12155 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12156 mac_get_mouse_btn.
12157 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12158
12159 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12160 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12161 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12162 TOOL_BAR_EVENT for MAC_OS as well.
12163 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12164 as for WINDOWS_NT.
12165 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12166
12167 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12168
121692002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12170
12171 * xdisp.c (forward_to_next_line_start): Fix a condition that
12172 lead to a newline being skipped.
12173
121742002-08-02 Andrew Choi <akochoi@shaw.ca>
12175
12176 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12177
121782002-08-01 Richard M. Stallman <rms@gnu.org>
12179
12180 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12181
121822002-07-31 Andrew Choi <akochoi@shaw.ca>
12183
12184 * macfns.c: #undef init_process before #define-ing it.
12185
12186 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12187 HAVE_CARBON is defined.
12188
121892002-07-31 Richard M. Stallman <rms@gnu.org>
12190
12191 * xmenu.c (set_frame_menubar): First parse all submenus,
12192 then make widget_value trees from them.
12193 Don't allocate any widget_value objects
12194 until we are done with the parsing.
12195 (parse_single_submenu): New function.
12196 (digest_single_submenu): New function.
12197 (single_submenu): Function deleted, replaced by those two.
12198
121992002-07-30 Juanma Barranquero <lektu@terra.es>
12200
12201 * w32proc.c (syms_of_ntproc): Fix docstring of
12202 `w32-get-true-file-attributes'.
12203
122042002-07-28 Richard M. Stallman <rms@gnu.org>
12205
12206 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12207 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12208
12209 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12210
12211 * keyboard.c (make_lispy_event):
12212 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12213 Explicitly clear up_modifier in event->modifiers.
12214
122152002-07-27 Richard M. Stallman <rms@gnu.org>
12216
12217 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12218
12219 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12220 for bar cursor.
12221
122222002-07-26 Kenichi Handa <handa@etl.go.jp>
12223
12224 * coding.c (detect_coding_iso2022): While checking a byte sequence
12225 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12226 it in the normal loop.
12227
122282002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12229
12230 * xterm.c (expose_overlaps): New function.
12231 (expose_window): Use it to fix the display of overlapping rows.
12232
12233 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12234
122352002-07-23 Ken Raeburn <raeburn@gnu.org>
12236
12237 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12238 since it only depends on XUINT.
12239
12240 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12241 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12242 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12243 Macros deleted.
3947677c 12244
77d1daf2
AS
12245 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12246 its value over other approaches.
12247 * sysdep.c (start_of_data): Don't define the function if a macro
12248 form has been defined.
8a8e19a3 12249
048addec
JD
122502002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12251
12252 * xdisp.c (redisplay_updating_p): New variable.
12253 (init_iterator): Don't free realized faces when
12254 redisplay_updating_p is set.
12255 (redisplay_internal): Set redisplay_updating_p while updating
12256 the display.
12257
122582002-07-23 Richard M. Stallman <rms@gnu.org>
12259
12260 * editfns.c (Fmessage): Treat "" like nil.
12261
122622002-07-23 Kenichi Handa <handa@etl.go.jp>
12263
12264 * xdisp.c (face_before_or_after_it_pos):
12265 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12266
122672002-07-22 Juanma Barranquero <lektu@terra.es>
12268
12269 * callproc.c (init_callproc) [DOS_NT]:
12270 Initialize Vshared_game_score_directory to nil.
12271 (syms_of_callproc) [DOS_NT]: Likewise.
12272
122732002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12274
12275 * xdisp.c (display_line): Replace an abort with xassert.
12276
122772002-07-21 Richard M. Stallman <rms@gnu.org>
12278
12279 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12280 and END_UNCHANGED when setting buffer_unchanged_p.
12281 Use current_matrix_up_to_date_p to decide whether to use
12282 try_cursor_movement.
12283
12284 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12285
12286 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12287
12288 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12289 Set to nil if dir does not exist.
12290 (syms_of_callproc): Init unconditionally and simply.
12291
12292 * buffer.c (Fbuffer_list): Doc fix.
12293
122942002-07-21 Ken Raeburn <raeburn@gnu.org>
12295
12296 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12297
12298 * buffer.c (mmap_realloc): When shrinking, make sure number of
12299 pages to unmap is rounded towards zero.
12300
12301 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12302 (XSETINT): Deleted.
12303
12304 * m/att3b.h (XINT): Don't define.
12305 (VALBITS, VALMASK, XTYPE): Deleted.
12306 (DATA_SEG_BITS): Define.
12307 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12308 ARRAY_MARK_FLAG): Deleted.
12309 (DATA_SEG_BITS): Define.
12310 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12311 (DATA_SEG_BITS): Define.
12312
123132002-07-20 Richard M. Stallman <rms@gnu.org>
12314
12315 * print.c (print_error_message): New args CONTEXT and CALLER.
12316 Calls changed.
12317
12318 * lisp.h (print_error_message): Declare new args.
12319
12320 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12321 and CONTEXT to print_error_message, don't print them here.
12322 For a Quit, don't use Vsignaling_function.
12323 Call message_log_maybe_newline.
12324
12325 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12326
123272002-07-20 Kim F. Storm <storm@cua.dk>
12328
12329 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12330
123312002-07-19 Ken Raeburn <raeburn@gnu.org>
12332
12333 * bytecode.c (struct byte_stack): Pointers into byte string now
12334 point to const.
12335 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12336 const.
12337 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12338 * coding.c (encode_eol, detect_coding, detect_eol):
12339 (decode_coding, encode_coding, detect_coding_system):
12340 Source strings now treated as const.
12341 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12342 modify Lisp string contents.
12343 * coding.h (decode_coding, encode_coding, detect_coding,
12344 detect_eol): Declarations updated.
12345 * composite.c (compose_chars_in_text): Treat Lisp string contents
12346 as const.
12347 * dispnew.c (safe_bcopy): Source pointer now points to const.
12348 * lisp.h (STRING_COPYIN): New macro.
12349 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12350 (internal_with_output_to_temp_buffer): Declarations updated.
12351 * print.c (temp_output_buffer_setup):
12352 (internal_with_output_to_temp_buffer): Buffer name argument is now
12353 pointer to const.
12354 * sound.c (struct sound_device): Function pointer field "write"
12355 buffer argument now points to const.
12356 (vox_write): Buffer argument points to const.
12357 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12358 contents as const.
12359 * sysdep.c (emacs_write): Buffer pointer now const.
12360 * term.c (encode_terminal_code): Buffer pointer now const.
12361 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12362 (x_face_list_fonts, x_update_menu_appearance):
12363 (hash_string_case_insensitive): Treat Lisp string contents as const.
12364
123652002-07-19 Juanma Barranquero <lektu@terra.es>
12366
048addec
JD
12367 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12368
12369 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12370 (Ffile_name_as_directory): Fix argument name in docstring.
12371 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12372
123732002-07-18 Richard M. Stallman <rms@gnu.org>
12374
12375 * data.c (Fdefalias): Doc fix.
12376
123772002-07-17 Dave Love <fx@gnu.org>
12378
12379 * intervals.h (text_property_stickiness): Use P_.
12380
12381 * ccl.c: Remove `emacs' conditionals.
12382 (ccl_backtrace_table): Fix size spec.
12383 (ccl_driver): Fix type errors.
12384
123852002-07-16 Ken Raeburn <raeburn@gnu.org>
12386
12387 * alloc.c (xstrdup, make_string, make_unibyte_string)
12388 (make_multibyte_string, build_string): String pointer args now
12389 point to const.
12390 * charset.c (find_charset_in_text, c_string_width):
12391 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12392 * fileio.c (report_file_error):
12393 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12394 (count_combining_before, count_combining_after, insert_1_both):
12395 (insert, insert_and_inherit, insert_string):
12396 (insert_before_markers, insert_before_markers_and_inherit):
12397 * lread.c (intern, oblookup, hash_string):
12398 * minibuf.c (temp_echo_area_glyphs):
12399 * search.c (fast_c_string_match_ignore_case):
12400 * sysdep.c (emacs_open, set_file_times):
12401 * xfaces.c (xstricmp):
12402 * xdisp.c (store_frame_title, string_char_and_length):
12403 (message_dolog, message2, message2_nolog, set_message): Likewise.
12404 (set_message_1): Cast message string argument to const pointer.
12405 * editfns.c (general_insert_function): Insertion function now
12406 takes pointer to const for input data.
12407 * charset.h (find_charset_in_text, c_string_width):
12408 (parse_str_as_multibyte): Declarations updated.
12409 * dispextern.h (xstricmp): Declaration updated.
12410 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12411 (count_size_as_multibyte, count_combining_before):
12412 (count_combining_after, insert_1, insert_1_both, message_dolog):
12413 (insert, insert_and_inherit, insert_before_markers)
12414 (insert_before_markers_and_inherit, set_message, message2):
12415 (message2_dolog, build_string, make_string, make_unibyte_string):
12416 (make_multibyte_string, intern, oblookup, report_file_error):
12417 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12418 (emacs_open, xstrdup): Declarations updated.
12419 * systime.h (set_file_times): Declaration updated.
12420
12421 * charset.c (find_charset_in_text, lisp_string_width): Use const
12422 for pointer to lisp string data.
12423 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12424 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12425 * coding.c (Ffind_coding_systems_region_interval):
12426 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12427 (Fmake_directory_internal, Fdelete_directory):
12428 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12429 * fontset.c (font_family_registry, fs_query_fontset):
12430 (list_fontsets):
12431 * frame.c (Fframe_parameter):
12432 * keyboard.c (cmd_error_internal):
12433 * keymap.c (Fdescribe_buffer_bindings):
12434 * lread.c (complete_filename_p, openp):
12435 * minibuf.c (Fminibuffer_complete_word):
12436 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12437 (face_before_or_after_it_pos, next_element_from_string):
12438 (get_overlay_arrow_glyph_row, display_mode_element):
12439 (decode_mode_spec_coding):
12440 * xterm.c (same_x_server): Likewise.
12441
12442 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12443 settings of non-existent fields.
12444
12445 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12446 copy a lisp value.
12447
12448 * lread.c (Fintern_soft): Use string macros instead of
12449 Lisp_String fields.
12450 * keyboard.c (echo_char, parse_modifiers_uncached):
12451 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12452 * textprop.c (validate_interval_range, interval_of): Likewise.
12453
12454 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12455
12456 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12457 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12458 XSTRING()->size_byte.
12459
12460 * lisp.h (SDATA, SREF): Produce rvalue.
12461 (SSET): New macro.
12462 * alloc.c (make_event_array): Use SSET for storing into a string.
12463 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12464 a string.
12465 * casefiddle.c (casify_object): Use SSET.
12466 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12467 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12468 address of string contents.
12469 * data.c (Faref): Use SDATA.
12470 (Faset): Use SDATA, SSET.
12471 * dired.c (directory_files_internal): Use SSET.
12472 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12473 (Fread_file_name): Use SREF, SSET.
12474 * fns.c (concat): Use SSET.
12475 (concat, Fdelete): Use SDATA.
12476 * insdel.c (insert_from_string_1): Use SDATA.
12477 * keyboard.c (Fevent_convert_list): Use SREF.
12478 * lread.c (Fload): Use SDATA, SSET.
12479 * macfns.c (validate_x_resource_name): Use SSET.
12480 * process.c (status_message): Use SSET.
12481 * search.c (wordify): Use SDATA.
12482 (Freplace_match): Use SREF.
12483 * w32fns.c (validate_x_resource_name): Use SSET.
12484 * xfns.c (validate_x_resource_name): Use SSET.
12485 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12486
124872002-07-16 Richard M. Stallman <rms@gnu.org>
12488
12489 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12490
12491 * xdisp.c (reconsider_clip_changes):
12492 Don't test prevent_redisplay_optimizations_p.
12493 (redisplay_internal): Test prevent_redisplay_optimizations_p
12494 along with clip_changed in some cases.
12495 (try_window_id): Likewise.
12496 (redisplay_window): New local var buffer_unchanged_p.
12497
12498 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12499
12500 * process.c (create_process): Test USG_SUBTTY_WORKS.
12501 (process_send_signal): Clean up handling of GID.
12502 Detect errors in ioctls meant to set GID.
12503
12504 * window.c (temp_output_buffer_show):
12505 Don't set prevent_redisplay_optimizations_p.
12506
125072002-07-15 Juanma Barranquero <lektu@terra.es>
12508
12509 * eval.c (Fdefvaralias): Add docstring argument.
12510
125112002-07-15 Ken Raeburn <raeburn@gnu.org>
12512
12513 * lisp.h (STRING_INTERVALS): Produce rvalue.
12514 (STRING_SET_INTERVALS): New macro.
12515 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12516 * fns.c (Fstring_as_multibyte): Likewise.
12517 * intervals.c (balance_possible_root_interval, delete_interval)
12518 (create_root_interval, copy_intervals_to_string): Likewise.
12519 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12520 instead of 0.
12521
125222002-07-14 Ken Raeburn <raeburn@gnu.org>
12523
12524 * lisp.h (STRING_SET_CHARS): New macro.
12525 (SCHARS, SBYTES): Produce rvalues.
12526 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12527 * fns.c (concat): Likewise.
12528 * lread.c (read_vector): Likewise.
12529
12530 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12531 (STRING_SET_UNIBYTE): New macro.
12532 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12533 length of -1) changed to use STRING_SET_UNIBYTE.
12534 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12535 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12536 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12537 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12538 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12539 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12540 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12541 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12542 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12543 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12544 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12545 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12546 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12547 unchanged for now.
12548
125492002-07-13 Kim F. Storm <storm@cua.dk>
12550
12551 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12552
125532002-07-12 Richard M. Stallman <rms@gnu.org>
12554
12555 * fileio.c (Fwrite_region): Doc fix.
12556
12557 * print.c (print_error_message): Don't handle Vsignaling_function here.
12558
12559 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12560 (command_loop_1): Avoid certain actions after memory-full error.
12561
12562 * eval.c (Fsignal): Don't call cancel_hourglass.
12563 For a memory-full error, don't call Vsignal_hook_function
12564 and don't set Vsignaling_function.
12565
12566 * process.c (process_send_signal): Add abort call.
12567
125682002-07-11 Markus Rost <rost@math.ohio-state.edu>
12569
12570 * keymap.c (Fkey_binding): Fix typo.
12571
125722002-07-11 Richard M. Stallman <rms@gnu.org>
12573
12574 * alloc.c (Vmemory_full): New variable.
12575 (Vmemory_signal_data): Renamed from memory_signal_data.
12576 Uses changed.
12577 (syms_of_alloc): Defvar them.
12578 (memory_full, buffer_memory_full): Set Vmemory_full.
12579
12580 * lisp.h (Vmemory_full): Add declaration.
12581 (current_column, indented_beyond_p): Change declaration.
12582
12583 * indent.c (last_known_column): Declare as double, not float.
12584 (current_column, current_column_1, string_display_width)
12585 (position_indentation): Return `double'.
12586 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12587
12588 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12589 (back_to_previous_visible_line_start)
12590 (reseat_at_next_visible_line_start, next_element_from_buffer):
12591 Use `double', not `float', when calling indented_beyond_p.
12592
12593 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12594
12595 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12596
125972002-07-11 Juanma Barranquero <lektu@terra.es>
12598
12599 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12600 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12601 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12602 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12603 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12604 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12605
126062002-07-10 Juanma Barranquero <lektu@terra.es>
12607
d814862a
JB
12608 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12609 All callers changed.
048addec
JD
12610
126112002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12612
12613 * data.c (Fdefalias): Add an optional `docstring' argument.
12614 (set_internal, Fsetq_default): Use XCAR/XCDR.
12615
12616 * composite.c (HASH_VALUE, HASH_KEY):
12617 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12618
126192002-07-09 Kenichi Handa <handa@etl.go.jp>
12620
12621 * callproc.c (Fcall_process): Fix previous change.
12622
126232002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12624
12625 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12626 Add support for hash-tables.
12627 (Ftry_completion): Return t even if the string appears multiple times.
12628
12629 * fns.c (Fnconc): Use XCDR.
12630 (Fprovide): Use CONSP and XCDR.
12631 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12632 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12633 (Fmake_hash_table): Accept `:size nil'.
12634 (Fmakehash): Delete: moved to subr.el.
12635 (syms_of_fns): Don't defsubr makehash.
12636
12637 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12638 (HASH_TABLE_SIZE): Move from fns.c.
12639
126402002-07-07 Richard M. Stallman <rms@gnu.org>
12641
12642 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12643 Instead just return 0 when there is something to be done.
12644 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12645 retry scrolling as if cursor were off the bottom.
12646 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12647 return CURSOR_MOVEMENT_MUST_SCROLL.
12648 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12649 go to try_to_scroll.
12650
12651 * buffer.c (Fbuffer_local_value): Store current value into its binding
12652 so we get the up-to-date value for the binding that is loaded.
12653
12654 * eval.c (Fdefmacro): Doc fix.
12655
126562002-07-05 Dave Love <fx@gnu.org>
12657
12658 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12659 correctly.
12660
12661 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12662 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12663 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12664 CCL_LookupCharConstTbl.
12665 (syms_of_ccl): Defvar translation-hash-table-vector.
12666
126672002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12668
12669 * xdisp.c: Remove unused variable `face'.
12670
126712002-07-04 Juanma Barranquero <lektu@terra.es>
12672
12673 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12674 obsolescence information.
12675
126762002-07-03 Andrew Choi <akochoi@shaw.ca>
12677
12678 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12679 pattern. Search cache first.
12680 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12681 for Japanese font.
12682 (XLoadQueryFont): Use it.
12683
126842002-07-02 Richard M. Stallman <rms@gnu.org>
12685
12686 * keymap.c (Fdefine_key): Doc fix.
12687
12688 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12689
126902002-07-02 Juanma Barranquero <lektu@terra.es>
12691
12692 * keymap.c (syms_of_keymap): Fix typo.
12693
126942002-07-01 Andrew Choi <akochoi@shaw.ca>
12695
12696 * s/darwin.h: Define POSIX_SIGNALS.
12697
12698 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12699 and FSRefMakePath to convert FSSpec returned with Apple Event to
12700 Posix pathname.
12701 (mac_initialize) [TARGET_API_MAC_CARBON]:
12702 Call init_required_apple_events and disable the `Quit' menu item
12703 provided automatically by the Carbon Toolbox.
12704
127052002-07-01 Dave Love <fx@gnu.org>
12706
12707 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12708 for K&R.
12709
12710 * xterm.c: Fix prototype for K&R.
12711
12712 * term.c (costs_set): Declare static, non-initialized for pcc.
12713
127142002-07-01 Richard M. Stallman <rms@gnu.org>
12715
12716 * keyboard.c (timer_last_idleness_start_time): New variable.
12717 (timer_start_idle): Set that.
12718 (read_key_sequence): Use that to reset timer_idleness_start_time
12719 to previous value.
12720
12721 * window.c (Frecenter): With arg, set optional_new_start.
12722
12723 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12724
12725 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12726 buffer for completion.
12727
127282002-06-29 Ken Raeburn <raeburn@gnu.org>
12729
12730 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12731
127322002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12733
12734 * keyboard.c (readable_filtered_events): New function that filters
12735 FOCUS_IN_EVENT depending on parameter.
12736 (readable_events): Calls readable_filtered_events, not filtering
12737 FOCUS_IN_EVENT.
12738 (get_filtered_input_pending): New function, filtering parameter passed
12739 to readable_filtered_events.
12740 (get_input_pending): Calls get_filtered_input_pending, not filtering
12741 FOCUS_IN_EVENT.
12742 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12743 FOCUS_IN_EVENT.
12744
12745 * xterm.h (struct x_output): Add focus_state.
12746
12747 * xterm.c (x_focus_changed): New function.
12748 (x_detect_focus_change): New function.
12749 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12750 EnterNotify and LeaveNotify to track X focus changes.
12751
127522002-06-28 Andreas Schwab <schwab@suse.de>
12753
12754 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12755
127562002-06-27 Kim F. Storm <storm@cua.dk>
12757
12758 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12759 (mode_line_string_face_prop): New variables.
12760 (store_mode_line_string): New function.
12761 (display_mode_element): Use store_mode_line_string to
12762 add mode-line string elements to mode_line_string_list
12763 when mode_line_string_list is non-nil.
12764 (Fformat_mode_line): Now returns propertized string by
12765 default. New arg NO-PROPS to ignore properties.
12766 (decode_mode_spec): Only add two dashes for %- in propertized
12767 mode-line string.
12768 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12769
127702002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12771
12772 * minibuf.c (minibuffer_completion_contents): Add return type.
12773
127742002-06-27 Juanma Barranquero <lektu@terra.es>
12775
12776 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12777
127782002-06-26 Juanma Barranquero <lektu@terra.es>
12779
12780 * fileio.c (read_file_name_cleanup): Add missing return.
12781
127822002-06-26 Richard M. Stallman <rms@gnu.org>
12783
12784 * window.c (Frecenter): Don't set force_start flag.
12785
12786 * minibuf.c (do_completion, Fminibuffer_complete_word)
12787 (Fminibuffer_completion_help): Complete just the text before point.
12788 (minibuffer_completion_contents): New function.
12789
12790 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12791
12792 * frame.c (frames_bury_buffer): Function deleted.
12793
127942002-06-25 Miles Bader <miles@gnu.org>
12795
12796 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12797 the end of callint_message, allow for a terminating '\0'.
12798
127992002-06-24 Juanma Barranquero <lektu@terra.es>
12800
12801 * w32select.c: Include composite.h
12802
12803 * w16select.c: Likewise.
12804
128052002-06-24 Kenichi Handa <handa@etl.go.jp>
12806
12807 * callproc.c (Fcall_process): If code detection is necessary,
12808 call detect_coding directly here.
12809
12810 * coding.c (detect_eol): Preserve coding->cmp_data.
12811
12812 * w16select.c (Fw16_get_clipboard_data):
12813 * w32fns.c (w32_to_x_font):
12814 * w32select.c (Fw32_get_clipboard_data):
12815 * xselect.c (selection_data_to_lisp_data):
12816 * xterm.c (XTread_socket): Disable composition handling.
12817
128182002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12819
12820 * print.c (temp_output_buffer_setup): Kill all local variables.
12821
128222002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12823
12824 * lread.c (Fread): Remove redundant and imprecise declaration.
12825
12826 * xfns.c (check_x_display_info): Use check_x_frame.
12827
12828 * .gdbinit (xprintsym): Use the new `xname' field.
12829 (xsymbol): Use it.
12830
128312002-06-22 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32fns.c (file_dialog_callback): New function.
12834 (Fx_file_dialog): Allow selecting directories as well as files.
12835
128362002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12837
12838 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12839 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12840
128412002-06-17 Andrew Choi <akochoi@shaw.ca>
12842
12843 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12844 black and white before scrolling. Restore frame background and
12845 foreground color after scrolling.
12846 (do_window_update): Call XClearWindow before calling expose_frame.
12847 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12848 FRAME_FOREGROUND_PIXEL of frame.
12849
12850 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12851 test Mac command key as <ALT> key.
12852
128532002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12854
12855 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12856
12857 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12858 Lookup keys in function-key-map immediately so that key-translation-map
12859 can be applied earlier.
12860 Remove function_key_possible and key_translation_possible, replaced
12861 by checking `keytran_start < t'.
12862
12863 * .gdbinit (xsymbol): Use the new `xname' field.
12864
128652002-06-17 Andrew Choi <akochoi@shaw.ca>
12866
12867 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12868 test Mac command key as <ALT> key.
12869
12870 * mac.c (do_applescript): Call initialize_applescript if necessary
12871 when first called. Dispose of result_desc only when there is no error.
12872 (Fdo_applescript): Use %d format specifier instead of %ld.
12873
128742002-06-16 Andrew Choi <akochoi@shaw.ca>
12875
12876 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12877 of FrontWindow for cases keyDown and autoKey.
12878
12879 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12880 Vdefault_fontset to Monaco with mac-roman coding.
12881
12882 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12883 init_process before and after inclusion of Carbon/Carbon.h, resp.
12884
12885 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12886 cursor_gc.
12887 (add_font_name_table_entry): New function.
12888 (init_font_name_table): Use add_font_name_table_entry; add italic,
12889 bold, and bold-italic entries for truetype fonts.
12890
12891 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12892 for Mac too.
12893 (try_font_list) [MAC_OS]: If no font matches given registry, try
12894 fonts with any registry matching face_family.
12895 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12896
12897 * s/darwin.h: If autoconf detects the Ncurses library, define
12898 LIBS_TERMCAP to -lncurses to use it.
12899
129002002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12901
12902 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12903
129042002-06-15 Richard M. Stallman <rms@gnu.org>
12905
12906 * window.c (Fset_window_configuration): Explicitly preserve
12907 the point value that new_current_buffer had at the start.
12908
129092002-06-14 Juanma Barranquero <lektu@terra.es>
12910
12911 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12912 Fix typos.
12913
129142002-06-14 Kim F. Storm <storm@cua.dk>
12915
12916 * insdel.c (insert_1_both, insert_from_string_1)
12917 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12918 insert happened in the end_unchanged region. Otherwise, the
12919 redisplay may be confused and duplicate the last line in the
12920 buffer [seen after save-buffer when require-final-newline==t].
12921
129222002-06-13 Jason Rumney <jasonr@gnu.org>
12923
12924 * w32.c (init_environment): Remove EMACSLOCKDIR.
12925 (stat): Swap _S_IFDIR and _S_IFREG.
12926
129272002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12928
12929 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12930 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12931 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12932 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12933 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12934 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12935 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12936 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12937 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12938 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12939 SELECTION_REQUEST_EVENT, selection_clear_event to
12940 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12941 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12942 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12943 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12944 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12945 no_event to NO_EVENT.
12946
129472002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12948
12949 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12950
129512002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12952
12953 * intervals.c (textget): Don't forget to `return'.
12954 (lookup_char_property): Use XCAR/XCDR.
12955
129562002-06-12 Juanma Barranquero <lektu@terra.es>
12957
12958 * xdisp.c (Fformat_mode_line): Fix typo.
12959
129602002-06-12 Kim F. Storm <storm@cua.dk>
12961
12962 * xdisp.c (Fformat_mode_line): New function.
12963 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12964 (store_frame_title_char, store_frame_title): Use unconditionally.
12965 (init_xdisp): Defsubr Fformat_mode_line.
12966 Initialize frame_title_buf etc. unconditionally.
12967
129682002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12969
12970 * keyboard.c (read_key_sequence):
12971 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12972 things through those maps after downcasing events.
12973 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12974 applies after function-key-map.
12975 Make sure that keytran can be done in the middle in the sequence.
12976 Be careful not to throw away events past the one we downcase.
12977
12978 * lread.c (read_integer): Remove unused var `tem'.
12979 (read1): Fix int/Lisp_Object mixup.
12980
12981 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12982
129832002-06-11 Richard M. Stallman <rms@gnu.org>
12984
12985 * keyboard.c (readable_events): Ignore any number of
12986 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12987
129882002-06-09 Miles Bader <miles@gnu.org>
12989
12990 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12991 (parse_rgb_list, tty_lookup_color): New functions.
12992 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12993 (color_distance, Fcolor_distance): New functions.
12994 (TTY_SAME_COLOR_THRESHOLD): New macro.
12995 (Qtty_color_standard_values): New variable.
12996 (syms_of_xfaces): Initialize new vars & functions.
12997
129982002-06-08 Colin Walters <walters@verbum.org>
12999
13000 * textprop.c (Vchar_property_alias_alist): New variable.
13001 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13002
13003 * intervals.c (lookup_char_property): New function for looking up
13004 overlay and text properties, created from textget.
13005 (textget): Use it.
13006
13007 * intervals.h (lookup_char_property): Declare.
13008 (Vchar_property_alias_alist): Declare.
13009
13010 * buffer.c (Foverlay_get): Use lookup_char_property.
13011
130122002-06-07 Sam Steingold <sds@gnu.org>
13013
13014 * xselect.c (lisp_data_to_selection_data): Fix last change:
13015 *data_ret is not a Lisp string, while unibyte_string is.
13016
130172002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13018
13019 * xselect.c (lisp_data_to_selection_data): Fix last change:
13020 set size_ret.
13021
130222002-06-07 Andreas Schwab <schwab@suse.de>
13023
13024 * m/amdx86-64.h: New file.
13025
130262002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13027
13028 * fns.c (Fstring_make_unibyte): Doc fix.
13029
13030 * xselect.c (lisp_data_to_selection_data): If the requested type
13031 is STRING, call string_make_unibyte to encode the selected text
13032 as a string.
13033
13034 * window.c (Fset_window_hscroll): Doc fix.
13035
130362002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13037
13038 * fileio.c (choose_write_coding_system):
13039 Call select-safe-coding-system properly.
13040
130412002-06-03 Richard M. Stallman <rms@gnu.org>
13042
13043 * xdisp.c (message_with_string): Error if STRING is not a string.
13044
13045 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13046
13047 * fileio.c (choose_write_coding_system): Pass FILE arg to
13048 Vselect_safe_coding_system_function.
13049
130502002-06-03 Ken Raeburn <raeburn@gnu.org>
13051
13052 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13053
130542002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13055
13056 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13057 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13058 * keymap.c (describe_command): Likewise.
13059 * minibuf.c (read_minibuf): Likewise.
13060
13061 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13062 Cast `current_column' return value to int.
13063 (back_to_previous_visible_line_start)
13064 (reseat_at_next_visible_line_start, next_element_from_buffer):
13065 Cast `indented_beyond_p' 3rd arg to float.
13066
13067 * indent.c (last_known_column): Now a float.
13068 (current_column_1, position_indentation, current_column)
13069 (string_display_width): Return float.
13070 (Fcurrent_column): Cast `current_column' return value to int.
13071 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13072 (indented_beyond_p): Third arg now a float.
13073 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13074
13075 * lisp.h (current_column): Now returns float.
13076 (indented_beyond_p): 3rd arg now a float.
13077
130782002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13079
13080 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13081 is Qcompound_text_with_extensions.
13082
13083 * xselect.c (lisp_data_to_selection_data): Always set selection
13084 type as string if x_encode_text returns streingp non-NULL.
13085
13086 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13087
130882002-05-30 Richard M. Stallman <rms@gnu.org>
13089
13090 * window.c (Fset_window_configuration): Correct the handling
13091 of point in current buffer, to work with multiple windows.
13092
130932002-05-29 Colin Walters <walters@verbum.org>
13094
13095 * lread.c (Fread_from_string): Don't depend on order of evaluation
13096 for C function parameters.
13097
130982002-05-28 Richard M. Stallman <rms@gnu.org>
13099
13100 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13101 way for blinked-off state and for a nonselected window.
13102
13103 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13104 instead, see if the new start pos is at beginning of line.
13105
13106 * fileio.c (Fwrite_region): If START is a string, don't
13107 make any annotations.
13108
13109 * eval.c (syms_of_eval): Doc fix.
13110
131112002-05-28 Colin Walters <walters@debian.org>
13112
13113 * emacs.c (USAGE1): Add --no-splash.
13114 (standard_args): Ditto.
13115
131162002-05-28 Colin Walters <walters@gnu.org>
13117
13118 * lread.c (readchar_count): New variable.
13119 (readchar): Increment it.
13120 (unreadchar): Decrement it.
13121 (read_multibyte): Decrement it.
13122 (Vread_with_symbol_positions): New variable.
13123 (Vread_symbol_positions_list): New variable.
13124 (read_internal_start): New function, created from Fread and
13125 Fread_from_string. Handle Vread_symbol_positions_list and
13126 Vread_with_symbol_positions.
13127 (readevalloop, Fread, Fread_from_string): Use it.
13128 (read1): Use readchar_count to add symbol positions to
13129 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13130 (syms_of_lread): DEFVAR_LISP and initialize them.
13131
13132 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13133 (substitute_object_recurse, substitute_object_in_subtree)
13134 (substitute_in_interval): Prototype.
13135 (read_multibyte): Return c if it's less than zero.
13136
131372002-05-28 Kim F. Storm <storm@cua.dk>
13138
13139 * fileio.c (Fread_file_name_internal): Added brute-force
13140 speed up for using predicate file-directory-p.
13141
131422002-05-28 Kim F. Storm <storm@cua.dk>
13143
13144 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13145 New variables.
13146 (syms_of_fileio): DEFVAR_LISP them.
13147 (read_file_name_cleanup): New unwind function.
13148 (Fread_file_name_internal): Only return completions satifying
13149 Vread_file_name_predicate. Temporarily unwind protect and rebind
13150 default-directory while checking completions against the predicate.
13151 (Fread_file_name): Added PREDICATE argument. Specbind it to
13152 Vread_file_name_predicate during completion.
13153 Call Vread_file_name_function to read the file name if non-nil.
13154
13155 * lisp.h (Fread_file_name): Now has 6 args.
13156
13157 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13158 predicate for Fread_file_name when reading directory name.
13159 Supply Qnil for predicate in other calls to Fread_file_name.
13160
131612002-05-26 Miles Bader <miles@gnu.org>
13162
13163 * term.c (tty_capable_p): New function.
13164 * dispextern.h (tty_capable_p): New function declaration.
13165 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13166 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13167
131682002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13169
13170 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13171 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13172 (Vwrite_region_annotate_functions): Docstring fix.
13173
131742002-05-23 Kim F. Storm <storm@cua.dk>
13175
13176 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13177 phys_cursor's hpos is overwritten. This is still not completely
13178 correct, as it doesn't really make sense to use hpos at all to
13179 get the cursor glyph (as that is relative to the width of the
13180 characters on the line, which may have changed during the update).
13181
131822002-05-22 Jason Rumney <jasonr@gnu.org>
13183
13184 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13185 Lisp_Object.
13186 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13187 Use modified enumfont_t struct.
13188
13189 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13190
13191 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13192 Handle the `hbar' cursor type.
13193 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13194
13195 * w32fns.c (Qhbar): New variable.
13196 (x_specified_cursor_type): Use it.
13197
131982002-05-21 Ken Raeburn <raeburn@gnu.org>
13199
13200 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13201 now, when the address is needed.
13202
132032002-05-21 Colin Walters <walters@gnu.org>
13204
13205 * Makefile.in (shortlisp): Add font-core.el.
13206
132072002-05-20 Richard M. Stallman <rms@gnu.org>
13208
13209 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13210
13211 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13212 equivalent key bindings here.
13213
132142002-05-20 Ken Raeburn <raeburn@gnu.org>
13215
13216 Change symbol structure to contain a lisp object for the symbol
13217 name:
13218 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13219 object field named "xname".
13220 (SYMBOL_NAME): New macro.
13221 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13222 name field.
13223 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13224 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13225 instead of name field.
13226 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13227 SYMBOL_NAME instead of XSYMBOL and name field.
13228 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13229 instead of XSYMBOL and name field.
13230 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13231 and SYMBOL_NAME instead of XSYMBOL and name field.
13232 * coding.c (Fread_coding_system, code_convert_region1)
13233 (code_convert_string1, code_convert_string_norecord)
13234 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13235 XSYMBOL and name field.
13236 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13237 (Fmake_variable_buffer_local, Fmake_local_variable)
13238 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13239 of XSYMBOL and name field.
13240 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13241 XSYMBOL and name field.
13242 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13243 instead of XSYMBOL and name field.
13244 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13245 XSYMBOL and name field.
13246 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13247 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13248 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13249 instead of XSYMBOL and name field.
13250 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13251 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13252 (parse_solitary_modifier, Fexecute_extended_command):
13253 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13254 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13255 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13256 of XSYMBOL and name field.
13257 (describe_command, describe_translation): Use SYMBOL_NAME and
13258 assignment instead of XSYMBOL and name field and XSETSTRING.
13259 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13260 instead of XSYMBOL and name field.
13261 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13262 name field and XSETSTRING.
13263 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13264 of XSYMBOL and name field.
13265 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13266 assignment instead of XSYMBOL and name field and XSETSTRING.
13267 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13268 XSTRING instead of XSYMBOL and name field.
13269 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13270 and XSTRING instead of XSYMBOL and name field.
13271 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13272 and XSTRING instead of XSYMBOL and name field.
13273 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13274 XSTRING instead of XSYMBOL and name field.
13275 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13276 of XSYMBOL and name field.
13277 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13278 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13279
132802002-05-19 Ken Raeburn <raeburn@gnu.org>
13281
13282 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13283 and XCDR real rvalues in most configurations.
13284
13285 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13286 Don't take the address of the cdr part of a cons cell; instead, track
13287 the parent cell and call XSETCDR, or set the variable for the head
13288 of the list if we haven't started down the list yet.
13289
132902002-05-19 Richard M. Stallman <rms@gnu.org>
13291
13292 * doc.c (reread_doc_file): Don't ask for confirmation.
13293
132942002-05-18 Jason Rumney <jasonr@gnu.org>
13295
13296 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13297 (xbm_load_image): Use it.
13298 (xbm_load): Ditto.
13299 (xbm_read_bitmap_data): Reverted to xfns.c version.
13300 From David Ponce <david@dponce.com>.
13301
133022002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13303
13304 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13305 2.02 and later.
13306
133072002-05-16 Juanma Barranquero <lektu@terra.es>
13308
13309 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13310
133112002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13312
13313 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13314 meaningful test.
13315 (read_char_minibuf_menu_prompt): Fix typo.
13316
133172002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13318
13319 * eval.c (Fcommandp): Doc fix.
13320
133212002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13322
13323 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13324 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13325 (Fset_keymap_parent): Gcpro a bit more.
13326 (access_keymap): Gcpro around meta_map call and around the main loop.
13327 (get_keyelt): Gcpro when following indirect references.
13328 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13329 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13330 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13331 Remove useless ad-hoc remap code.
13332
133332002-05-13 Richard M. Stallman <rms@gnu.org>
13334
13335 * search.c (search_buffer): Give up boyer moore search if inverse
13336 translation change charset_base.
13337
133382002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13339
13340 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13341 characters is carried over from the previous block of text, adjust
13342 coding->produced to account for the extra character.
13343
133442002-05-11 Andreas Schwab <schwab@suse.de>
13345
13346 * coding.c (intersection): Keep the elements of the returned list
13347 in the same order as in the first list.
13348
133492002-05-11 Kim F. Storm <storm@cua.dk>
13350
13351 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13352 only update cmm_size if realloc actually succeeds.
13353 Testing with initial size of 2 elements revealed that using
13354 realloc on GNU/Linux would cause a random trap in xmalloc
13355 later on, so I rewrote the code to use malloc/bcopy/free instead
13356 of realloc.
13357
133582002-05-10 Jason Rumney <jasonr@gnu.org>
13359
13360 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13361
133622002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13363
13364 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13365 parens, to ensure correct evaluation order.
13366
133672002-05-10 Kim F. Storm <storm@cua.dk>
13368
13369 * keymap.c (Vemulation_mode_map_alists): New variable.
13370 (syms_of_keymap): DEFVAR_LISP it.
13371 (current_minor_maps): Process keymap alists in that list before
13372 minor-mode-overriding-map-alist and minor-mode-map-alist.
13373
133742002-05-09 Richard M. Stallman <rms@gnu.org>
13375
13376 * search.c (Freplace_match): Doc fix.
13377
133782002-05-09 Kim F. Storm <storm@cua.dk>
13379
13380 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13381 Enlarge cursor rectangle drawn around image with non-zero relief.
13382
13383 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13384 Enlarge cursor rectangle drawn around image with non-zero relief.
13385
13386 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13387 Enlarge cursor rectangle drawn around image with non-zero relief.
13388
133892002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13390
13391 * xselect.c (lisp_data_to_selection_data): Don't set selection
13392 type if comes from the Lisp object's car. If the selection
13393 contains a pure ASCII text, always return QSTRING as its type.
13394
133952002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13396
13397 * mac.c (mac-cut-function): Doc fix.
13398
133992002-05-05 Richard M. Stallman <rms@gnu.org>
13400
13401 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13402
134032002-05-04 Jason Rumney <jasonr@gnu.org>
13404
13405 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13406 for event-click-count.
13407
13408 * process.c (init_process): Only add server subfeature if we can
13409 use non-blocking I/O.
13410
134112002-05-04 Andrew Choi <akochoi@shaw.ca>
13412
13413 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13414 repeatedly.
13415
134162002-05-03 Jason Rumney <jasonr@gnu.org>
13417
13418 * process.c (Fmake_network_process): Only support server sockets
13419 when we can make them non-blocking.
13420
13421 * s/ms-w32.h (HAVE_SELECT): Define.
13422
13423 * w32.h (FILE_NDELAY): New flag.
13424
13425 * w32.c (sys_getpeername, fcntl): New functions.
13426 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13427
13428 * w32proc.c: include sys/file.h.
13429
134302002-05-03 Colin Walters <walters@verbum.org>
13431
13432 * callproc.c (Vgame_score_directory): Renamed to
13433 Vshared_game_score_directory.
13434
134352002-04-30 Richard M. Stallman <rms@gnu.org>
13436
13437 * s/gnu.h [emacs]: Include stdio.h.
13438 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13439
13440 * eval.c (do_autoload): Error if called while preparing to dump.
13441
13442 * fns.c (Frequire): Error if need to load while preparing to dump.
13443
134442002-04-28 Colin Walters <walters@verbum.org>
13445
13446 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13447 Default to "~/.emacs.d/games".
13448
134492002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13450
13451 * lread.c (openp): Change arg exec_only to predicate.
13452 (build_load_history): Use XCAR/XCDR.
13453 (Flocate_file_internal): New fun.
13454 (syms_of_lread): Defsubr it.
13455 (Fload): Update call to openp.
13456
13457 * lisp.h (openp): Update prototype.
13458
13459 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13460 * w32proc.c (sys_spawnve):
13461 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13462 * w32.c (check_windows_init_file):
13463 * sound.c (Fplay_sound_internal):
13464 * process.c (Fstart_process):
13465 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13466 * mac.c (run_mac_command):
13467 * emacs.c (init_cmdargs):
13468 * callproc.c (Fcall_process): Update call to openp.
13469
13470 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13471
13472 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13473
134742002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13475
13476 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13477 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13478
134792002-04-28 Richard M. Stallman <rms@gnu.org>
13480
13481 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13482
13483 * eval.c (Fcommandp): New arg for_call_interactively.
13484 * lisp.h (Fcommandp): Declare new arg.
13485
134862002-04-28 Jason Rumney <jasonr@gnu.org>
13487
13488 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13489
13490 * w32.c (stat, fstat): Use file index information to generate
13491 inodes for directories where available.
13492
134932002-04-26 Andrew Choi <akochoi@shaw.ca>
13494
13495 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13496 [HAVE_CARBON]: Include Mac object files.
13497
13498 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13499 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13500 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13501 MAC_OSX, and MAC_OS instead of macintosh.
13502
13503 * editfns.c [MAC_OS8]: Include stdio.h.
13504
13505 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13506
13507 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13508 Apple Monaco.
13509
78819ebb 13510 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13511 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13512 calling select.
13513
13514 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13515
13516 * tparam.c [MAC_OSX]: Don't define BC and UP.
13517
13518 * config.in [HAVE_CARBON]: Add.
13519
13520 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13521 Move here from mac/src and mac/inc.
13522
13523 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13524
135252002-04-26 Gerd Moellmann <gerd@gnu.org>
13526
13527 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13528 Compute phys_cursor_width from the x position returned
13529 by x_draw_glyhs, which is cheaper.
13530 (x_display_and_set_cursor): Compute the buffer-local value
13531 of `cursor-in-non-selected-windows' only when needed.
13532
135332002-04-25 Gerd Moellmann <gerd@gnu.org>
13534
13535 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13536 cursor on a stretch glyph has a width that depends on
13537 x_stretch_cursor_p.
13538
135392002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13540
13541 * abbrev.c (abbrev-start-location): Doc fix.
13542
13543 * indent.c (Fvertical_motion): Fix last change.
13544
135452002-04-25 Gerd Moellmann <gerd@gnu.org>
13546
13547 * indent.c (Fvertical_motion): Move to the start of the line
13548 containing PT before moving up or down.
13549
135502002-04-24 Gerd Moellmann <gerd@gnu.org>
13551
13552 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13553 case of writing a whole row, more or less analogous to the case of
13554 writing only parts of a row.
13555
13556 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13557 0 for NO_CURSOR.
13558
13559 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13560
135612002-04-23 Colin Walters <walters@verbum.org>
13562
13563 * buffer.c (syms_of_buffer): Doc fix.
13564
135652002-04-23 Gerd Moellmann <gerd@gnu.org>
13566
13567 * xterm.c (notice_overwritten_cursor): Handle the special case
13568 of the cursor being in the first blank non-text line at the
13569 end of a window.
13570
13571 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13572 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13573 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13574 bar cursors only, to make phys_cursor_width contain what its name
13575 suggests.
13576 (notice_overwritten_cursor): Consider the cursor image erased if
13577 the output area intersects the cursor image in y-direction.
13578
135792002-04-23 Simon Marshall <simon@gnu.org>
13580
13581 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13582 to XC_hand2.
13583
135842002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13585
13586 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13587
135882002-04-22 Kim F. Storm <storm@cua.dk>
13589
13590 * textprop.c (remove_properties): Fixed trap for malformed plist.
13591
135922002-04-22 Richard M. Stallman <rms@gnu.org>
13593
13594 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13595
13596 * window.c (make_window): Initialize height_fixed_p,
13597 last_cursor_off_p, and p->cursor_off_p slots.
13598
135992002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13600
13601 * fns.c (use-dialog-box): Doc fix.
13602
136032002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13604
13605 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13606 variables `row', `i' and `area'.
13607 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13608 toolkit library.
13609
136102002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13611
13612 * xfaces.c (clear_font_table): Don't free the default font of
13613 a frame even if it's on another display.
13614 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13615 that could be Qt.
13616
136172002-04-19 Juanma Barranquero <lektu@terra.es>
13618
13619 * indent.c (Fmove_to_column): Remove unused local variable
13620 `next_boundary_byte'.
13621 (current_column_1): Likewise.
13622
136232002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13624
13625 * msdos.c (Qhbar): New variable.
13626 (syms_of_msdos): Intern and staticpro it.
13627 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13628 cursor type.
13629
136302002-04-19 Dave Lambert <dlambert@acm.org>
13631
13632 Theses change implement an underscore-like (`hbar') cursor.
13633
13634 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13635
13636 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13637 Handle the `hbar' cursor type.
13638 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13639
13640 * xfns.c (Qhbar): New variable.
13641 (syms_of_xfns): Intern and staticpro it.
13642 (x_specified_cursor_type): Handle `hbar' cursor.
13643
13644 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13645 not defined.
13646
136472002-04-18 Richard M. Stallman <rms@gnu.org>
13648
13649 * textprop.c (remove_properties): New arg LIST allows scanning
13650 either a list or a plist.
13651 (interval_has_some_properties_list): New function, like
13652 interval_has_some_properties using list instead of plist.
13653 All callers changed.
13654 (Fremove_list_of_text_properties): New function.
13655 (syms_of_textprop): Defsubr it.
13656
136572002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13658
13659 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13660
136612002-04-17 Juanma Barranquero <lektu@terra.es>
13662
13663 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13664
136652002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13666
13667 * window.c (coordinates_in_window): Don't report on margin area
13668 if its width is zero.
13669
136702002-04-16 Jason Rumney <jasonr@gnu.org>
13671
13672 * w32fns.c (Fx_file_dialog): Decode file name before using.
13673
13674 * w32term.c (construct_drag_n_drop): Likewise.
13675
136762002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13677
13678 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13679 store load-history in pure space.
13680
13681 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13682
136832002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13684
13685 * xterm.c (Qlatin_1, Qutf_8): New vars.
13686 (syms_of_xterm): Initialize them.
13687 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13688 decoding the output of X*LookupString.
13689 Always use latin-1 to decode the output of XLookupString.
13690 Try Xutf8LookupString if XmbLookupString failed.
13691
13692 * region-cache.c (new_region_cache): Use BEG.
13693
136942002-04-16 Gerd Moellmann <gerd@gnu.org>
13695
13696 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13697 configuration files.
13698 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13699 returns 0.
13700
137012002-04-15 Andreas Schwab <schwab@suse.de>
13702
13703 * config.in: Regenerated using autoheader.
13704
13705 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13706 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13707 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13708 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13709 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13710 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13711 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13712 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13713 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13714 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13715 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13716 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13717 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13718 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13719 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13720 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13721 STACK_DIRECTION, now set by autoconf.
13722
137232002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13724
13725 * dispnew.c (marginal_area_string): Sort arguments.
13726
13727 * dispextern.h (marginal_area_string): Add prototype.
13728
137292002-04-13 Richard M. Stallman <rms@gnu.org>
13730
13731 * fileio.c (Finsert_file_contents):
13732 Don't call temp_output_buffer_setup--do just part, by hand.
13733
13734 * coding.c (run_pre_post_conversion_on_str):
13735 Don't call temp_output_buffer_setup--do just part, by hand.
13736
13737 * keyboard.c (command_loop_1): Don't call start_hourglass
13738 or cancel_hourglass when executing a macro.
13739
13740 * marker.c (count_markers): New function.
13741
13742 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13743 grow without limit. Move recently used elements to the front.
13744
137452002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13746
13747 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13748
137492002-04-12 Gerd Moellmann <gerd@gnu.org>
13750
13751 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13752 rows marginal areas.
13753 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13754 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13755
13756 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13757
137582002-04-12 Dave Love <fx@gnu.org>
13759
13760 * dispnew.c (marginal_area_string): New.
13761
13762 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13763 (Qleft_margin, Qright_margin): Declare.
13764 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13765
13766 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13767 note_mode_line_highlight and extended.
13768
13769 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13770 (make_lispy_event): Deal with mouse events in margins.
13771
137722002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13773
13774 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13775
13776 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13777 than deactivating the mark if tmm is set to `lambda'.
13778 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13779 Use a single event for HELP_EVENT.
13780 (Fexecute_extended_command): Save last_point_position.
13781
137822002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13783
13784 * lisp.h (Fpropertize): Add prototype.
13785
13786 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13787
137882002-04-10 Colin Walters <walters@verbum.org>
13789
13790 * config.in: Add HAVE_SHARED_GAME_DIR.
13791
13792 * callproc.c: (Vgame_score_directory): New variable.
13793 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13794
137952002-04-10 Richard M. Stallman <rms@gnu.org>
13796
13797 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13798
137992002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13800
13801 * minibuf.c (read_minibuf): Use empty_string.
13802 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13803 Short-circuit the search as soon as it "failed".
13804 (Fall_completions): Allow lambda forms and lists of strings for alist.
13805 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13806 when require_match is nil.
13807 (Ftest_completion): Rename from `test_completion' and export to elisp.
13808 Call the predicate also when alist is a list.
13809 Obey Vcompletion_regexp_list.
13810 (do_completion, Fminibuffer_complete_and_exit): Use it.
13811 (Fassoc_string): Rename from `assoc_for_completion'.
13812 Allow list of strings as well and export to elisp.
13813
138142002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13815
13816 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13817
138182002-04-08 Juanma Barranquero <lektu@terra.es>
13819
13820 * w32.c (sys_accept): Don't hide variable `s'.
13821
138222002-04-05 Gerd Moellmann <gerd@gnu.org>
13823
13824 * callint.c (Fcall_interactively): Use INTEGERP instead of
13825 NUMBERP for checking Vhistory_length.
13826
138272002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13828
13829 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13830 Doc fix to reflect it.
13831
138322002-04-04 Richard M. Stallman <rms@gnu.org>
13833
13834 * xdisp.c (display_mode_element): New arg RISKY.
13835 Disregard text props found or specified within a variable
13836 that isn't marked risky-local-variable.
13837 (Qrisky_local_variable): New variable.
13838 (syms_of_xdisp): Init and staticpro it.
13839
138402002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13841
13842 * undo.c (record_point): New fun.
13843 (record_delete, record_insert): Use it.
13844
138452002-04-03 Juanma Barranquero <lektu@terra.es>
13846
13847 * doc.c (Fdocumentation): Add missing parentheses.
13848 (Fdocumentation_property): Likewise.
13849
138502002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13851
13852 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13853 data is 0, just return nil.
13854
138552002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13856
13857 * msdos.c (syms_of_msdos): Fix last change with
13858 mouse_autoselect_window.
13859
138602002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13861
13862 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13863 mouse_autoselect_window.
13864
138652002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13866
13867 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13868 with system-specific keysyms. Use it also for unknown function keys.
13869
13870 * doc.c (reread_doc_file): Return whether reload was attempted.
13871 (Fdocumentation, Fdocumentation_property): Don't try to reload
13872 if the doc is 0 and only ask once.
13873
13874 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13875
138762002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13877
13878 * keyboard.c (read_char): If the event was Qselect_window,
13879 restore timer_idleness_start_time to its previous value.
13880
13881 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13882
138832002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13884
13885 * region-cache.c (new_region_cache): Use BEG.
13886
13887 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13888 Use BEG and BEG_BYTE.
13889
13890 * doc.c (get_doc_string): Return nil if the location is wrong.
13891 (reread_doc_file): New fun.
13892 (Fdocumentation, Fdocumentation_property):
13893 Call it if get_doc_string fails.
13894 (Fsnarf_documentation): Make it work for a dumped Emacs.
13895
13896 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13897 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13898
13899 * charset.c (Fstring): Allow 0 arguments.
13900
13901 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13902
13903 * process.c (DATAGRAM_CONN_P, list_processes_1)
13904 (Fprocess_datagram_address, Fset_process_datagram_address)
13905 (Fset_network_process_options, server_accept_connection):
13906 Fix some int/Lisp_Object confusions (thank you union types).
13907
139082002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13909
13910 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13911
13912 * w32term.c: Likewise.
13913 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13914
13915 * keyboard.c (Qselect_window): New symbol.
13916 (head_table): Use it.
13917 (keys_of_keyboard): Bound select-window event to handle-select-window.
13918 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13919
13920 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13921 (last_window): New variable.
13922 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13923 (note_mouse_movement): Remove reimplemented code in #if 0.
13924 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13925 Emacs windows.
13926
13927 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13928
139292002-03-31 Gerd Moellmann <gerd@gnu.org>
13930
13931 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13932 Callers changed.
13933
139342002-03-30 Richard M. Stallman <rms@gnu.org>
13935
13936 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13937 loop whenever it stops making progress.
13938
13939 * widget.c (set_frame_size): Don't call change_frame_size.
13940
139412002-03-30 Gerd Moellmann <gerd@gnu.org>
13942
13943 * dispnew.c (direct_output_for_insert):
13944 Call mark_window_display_accurate.
13945
139462002-03-29 Jason Rumney <jasonr@gnu.org>
13947
13948 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13949
139502002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13951
13952 * Makefile.in (lread.o): Depend on coding.h.
13953
13954 * lread.c (openp, Fload): Encode the file name before passing it
13955 to `stat', `access', and `emacs_open'.
13956 (openp): GCPRO the encoded file name. Don't recompute Lisp
13957 strings unnecessarily.
13958
139592002-03-29 Kim F. Storm <storm@cua.dk>
13960
13961 * fns.c (Flax_plist_put): Doc fix.
13962
139632002-03-28 Miles Bader <miles@gnu.org>
13964
13965 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13966
139672002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13968
13969 * process.c (set-network-process-options): Add usage.
13970 (make-network-process): Doc fix.
13971
139722002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13973
13974 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13975
139762002-03-26 Richard M. Stallman <rms@gnu.org>
13977
13978 * fns.c (Fsubstring_no_properties): New function.
13979 (Flax_plist_get, Flax_plist_put): New functions.
13980 (syms_of_fns): defsubr them.
13981
13982 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13983 don't test or alter w->update_mode_line.
13984
13985 * window.c (Fdisplay_buffer): Doc fix.
13986
139872002-03-24 Richard M. Stallman <rms@gnu.org>
13988
13989 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13990
139912002-03-24 Gerd Moellmann <gerd@gnu.org>
13992
13993 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13994 (Fdefmacro): Handle `(declare ...)'.
13995 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13996 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13997
139982002-03-24 Jason Rumney <jasonr@gnu.org>
13999
14000 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14001 (xbm_file_p): Add prototypes.
14002 (xbm_format, xbm_image_p): Sync with xfns.c.
14003 (reflect_byte): New function.
14004 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14005 (xbm_load_image): Create bitmaps with a depth of 1.
14006 (init_xfns): Enable XBM images.
14007
140082002-03-23 Jason Rumney <jasonr@gnu.org>
14009
14010 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14011 correctly. Do not pass up_modifier to keyboard buffer.
14012
14013 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14014
140152002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14016
14017 * Makefile.in (bootstrapclean): New target.
14018 (bootstrap-temacs, bootstrap-doc): Remove.
14019 (bootstrap-emacs): Use a bog-standard `temacs'.
14020 Don't bother to build a DOC file.
14021
14022 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14023
14024 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14025 in temacs even if !CANNOT_DUMP.
14026 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14027
14028 * alloc.c (check_pure_size): Only output a warning.
14029
140302002-03-22 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14033 supported.
14034
14035 * w32term.c (zv_bits): Declare as short, for word alignment.
14036 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14037 (syms_of_w32term): Define x-use-underline-position-properties.
14038
14039 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14040 (clear_image_cache): Block input, fix logic, clear matrices in
14041 all frames that share this cache.
14042
140432002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14044
14045 * emacs.c (main): Update the Copyright year in the blurb printed
14046 by "emacs --version".
14047
14048 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14049
14050 * xterm.c (XTread_socket): If XK_ISO_Lock and
14051 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14052 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14053
140542002-03-21 Kim F. Storm <storm@cua.dk>
14055
14056 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14057 menu-bar bindings in keymap and local-map properties _are_ used.
14058 But try keymap property first in accordance with 2002-01-03 patch.
14059 Added comment describing why this is not always reliable.
14060 (tool_bar_items): Ditto for tool-bar.
14061
140622002-03-21 Jason Rumney <jasonr@gnu.org>
14063
14064 * w32fns.c (x_clear_image_1): Disable color table code.
14065
140662002-03-21 Kim F. Storm <storm@cua.dk>
14067
14068 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14069 removed the wrong version of the DEFUN macro; fixed it.
14070
14071 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14072 Fmember rather than Fmemq).
14073 (Fprovide): Check that subfeatures is a list.
14074
14075 * process.c (QCfeature, QCdatagram): Removed variables.
14076 (QCtype, Qdatagram): New variables.
14077 (network_process_featurep): Removed function.
14078 (Fmake_network_process): Removed :feature check.
14079 Use :type 'datagram instead of :datagram t to create a datagram
14080 socket. This allows us to add other connection types (e.g. raw
14081 sockets) later in a consistent manner.
14082 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14083 supported subfeatures for feature make-network-process.
14084 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14085 Intern and staticpro QCtype and Qdatagram.
14086 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14087
14088 * xfns.c: (QCtype): Remove duplicate declaration and
14089 initialization (is now declared in process.c).
14090
14091 * w32fns.c: (QCtype): Remove duplicate declaration and
14092 initialization (is now declared in process.c).
14093
140942002-03-21 Richard M. Stallman <rms@gnu.org>
14095
14096 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14097 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14098 when jumping to `fail' to avoid undoing reg changes in the
14099 last iteration of the loop.
14100 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14101
14102 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14103 Depend on process.h.
14104
141052002-03-20 Jason Rumney <jasonr@gnu.org>
14106
14107 Most of the following changes are still conditional on HAVE_IMAGES
14108 which is not set by default on Windows.
14109
14110 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14111
14112 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14113 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14114 (four_corners_best, x_clear_image_1, x_clear_image)
14115 (x_alloc_image_color, postprocess_image)
14116 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14117 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14118 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14119
14120 * w32gui.h (struct XImage): Define.
14121
14122 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14123 extract mouse co-ordinates.
14124
141252002-03-20 Jason Rumney <jasonr@gnu.org>
14126
14127 * w32.c (init_winsock): Dynamically load new server and UDP
14128 socket functions.
14129 (socket_to_fd): New function.
14130 (sys_socket): Use it.
14131 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14132 (sys_recvfrom, sys_sendto): New wrapper functions.
14133
14134 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14135 and initialization.
14136
14137 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14138
141392002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14140
14141 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14142 Don't use "sun" as a variable, it's a predefined constant on Sun
14143 machines.
14144
141452002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14146
14147 * bytecode.c (Fbyte_code): Revert last change.
14148
141492002-03-19 Kim F. Storm <storm@cua.dk>
14150
14151 * makefile.w32-in (LIBS): Add $(WSOCK32).
14152 From David Ponce <dponce@voila.fr>.
14153
141542002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14155
14156 * process.c (wait_reading_process_input): Move variables `pname'
14157 and `pnamelen' down where they are used.
14158
14159 * bytecode.c (Fbyte_code): Discard unused computed value to
14160 prevent gcc warning.
14161
14162 * lisp.h (Fplist_member): Add prototype.
14163
141642002-03-18 Kim F. Storm <storm@cua.dk>
14165
14166 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14167 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14168
14169 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14170 Remove explicit GNU_LINUX settings for datagram support.
14171
141722002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14173
14174 * process.c (Fmake_network_process): Remove unused variable `sa'.
14175 Doc fix. Add usage:.
14176 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14177
141782002-03-17 Richard M. Stallman <rms@gnu.org>
14179
14180 * xdisp.c (cursor_type_changed): New variable.
14181 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14182 Clear it when clearing windows_or_buffers_changed.
14183 (try_cursor_movement, redisplay_window, try_window_id)
14184 (try_window_reusing_current_matrix): Test cursor_type_changed
14185 along with windows_or_buffers_changed.
14186
14187 * window.h (cursor_type_changed): New variable.
14188
14189 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14190 not update_mode_lines, and always set it to 1.
14191
14192 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14193 if no frames needed redrawing.
14194
141952002-03-17 Kim F. Storm <storm@cua.dk>
14196
14197 The following changes add support for network server processes,
14198 datagram connections, and local (unix) sockets.
14199
14200 * process.h (struct Lisp_Process): New member log.
14201 Doc fix: Member command used to indicate stopped network process.
14202 Doc fix: Member childp contains plist for network process.
14203 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14204
14205 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14206 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14207 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14208 New variables.
14209 (NETCONN1_P): New macro.
14210 (DATAGRAM_SOCKETS): New conditional symbol.
14211 (datagram_address): New array.
14212 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14213 (status_message): Use concat3.
14214 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14215 for a stopped network process.
14216 (Fset_process_buffer): Update contact plist for network process.
14217 (Fset_process_filter): Ditto. Don't enable input for stopped
14218 network processes. Server must listen, even if filter is t.
14219 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14220 New functions.
14221 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14222 (Fprocess_contact): Added KEY argument. Handle datagrams.
14223 (list_processes_1): Optionally show only processes with the query
14224 on exit flag set. Dynamically adjust column widths. Omit tty
14225 column if not needed. Report stopped network processes.
14226 Identify server and datagram network processes.
14227 (Flist_processes): New optional arg `query-only'.
14228 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14229 (conv_lisp_to_sockaddr, set_socket_options)
14230 (network_process_featurep, unwind_request_sigio): New helper functions.
14231 (Fprocess_datagram_address, Fset_process_datagram_address):
14232 (Fset_network_process_options): New lisp functions.
14233 (Fopen_network_stream): Removed. Now defined in simple.el.
14234 (Fmake_network_process): New lisp function. Code is based on previous
14235 Fopen_network_stream, but heavily reworked with new property list based
14236 argument list, support for datagrams, server processes, and local
14237 sockets in addition to old client-only functionality.
14238 (server_accept_connection): New function.
14239 (wait_reading_process_input): Use it to handle incoming connects.
14240 Do not enable input on a new connection if process is stopped.
f63fd14e 14241 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14242 (send_process): Handle datagram sockets.
14243 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14244 network process is indicated by setting command field to t .
14245 (Fprocess_send_eof): No-op if datagram connection.
14246 (Fstatus_notify): Don't read input for a stream server socket or a
14247 stopped network process.
14248 (init_process): Initialize datagram_address array.
14249 (syms_of_process): Intern and staticpro new variables, defsubr new
14250 functions.
14251
142522002-03-16 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14255 startup case.
14256
142572002-03-16 Richard M. Stallman <rms@gnu.org>
14258
14259 * xdisp.c (redisplay_internal, redisplay_windows):
14260 Use list_of_error to call internal_condition_case_1.
14261 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14262 so as to catch all errors with no possibility of debugger redisplay.
14263 (list_of_error): New variable.
14264 (syms_of_xdisp): Init and staticpro it.
14265
14266 * print.c (print_object): Delete `\ ' from printed rep of frame.
14267
142682002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14269
14270 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14271 until its implementation is fixed.
14272
142732002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14274
14275 * xfns.c (png_load): Remove unused variable `gamma_str'.
14276
142772002-03-14 Richard M. Stallman <rms@gnu.org>
14278
14279 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14280
142812002-03-14 Miles Bader <miles@gnu.org>
14282
14283 * intervals.c (adjust_for_invis_intang): New function.
14284 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14285 work for dealing with invisible+intangible regions. Do so before
14286 and after both forward and backward movements, to handle both
14287 front-sticky and rear-sticky cases.
14288 * textprop.c (text_property_stickiness): Function moved here from
14289 `editfns.c'.
14290 * intervals.h (text_property_stickiness): New declaration.
14291 * editfns.c (char_property_eq): Function removed.
14292 (text_property_stickiness): Function moved to `textprop.c'.
14293
142942002-03-13 Jason Rumney <jasonr@gnu.org>
14295
14296 * config.in: Add STRFTIME_NO_POSIX2.
14297
14298 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14299 and %OX when underlying strftime does not.
14300
143012002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14302
14303 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14304 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14305 line) to avoid annoying flicker.
14306 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14307 (XTread_socket): Mark it static.
14308
14309 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14310
143112002-03-13 Kim F. Storm <storm@cua.dk>
14312
14313 * puresize.h (BASE_PURESIZE): Increase to 775000.
14314
143152002-03-12 Juanma Barranquero <lektu@terra.es>
14316
14317 * editfns.c (syms_of_editfns): Fix typo.
14318
143192002-03-12 Gerd Moellmann <gerd@gnu.org>
14320
14321 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14322 Include termopt.h for interrupt_input.
14323
143242002-03-11 Andreas Schwab <schwab@suse.de>
14325
14326 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14327
143282002-03-11 Gerd Moellmann <gerd@gnu.org>
14329
14330 * xterm.c (note_mouse_movement): Put code for
14331 x_autoselect_window_p in #if 0.
14332
14333 * lread.c (Fload): Don't assume that message_with_string uses the
14334 string it is given like a C string.
14335
143362002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14337
78819ebb 14338 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14339
14340 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14341 x_session_have_connection.
14342 (x_initialize): Add call to x_session_initialize.
14343
14344 * termhooks.h (enum event_kind): Add save_session_event.
14345
14346 * keyboard.c: Add Emacs event save_session_event.
14347
14348 * emacs.c (main): Add call to syms_of_xsmfns.
14349
78819ebb 14350 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14351
14352 * config.in: Add HAVE_X_SM.
14353
14354 * Makefile.in (LIBXT): Add -lSM -lICE
14355 if HAVE_X_SM and not USE_X_TOOLKIT.
14356 (XOBJ): New file xsmfns.c added.
14357
14358 * xsmfns.c: New file for X session management.
14359
143602002-03-09 Jason Rumney <jasonr@gnu.org>
14361
14362 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14363 read-only when setting modified time.
14364
143652002-03-08 Gerd Moellmann <gerd@gnu.org>
14366
14367 * xdisp.c (move_it_vertically_backward): At the end of the function,
14368 when moving forward by lines, treat terminal frames specially.
14369
14370 * keyboard.c (echo_char): Make sure to add a separator between
14371 keys even if echo_dash hasn't been called.
14372
14373 * xdisp.c: Use new string macros.
14374 (update_echo_area): Pass number of bytes to message3 instead of
14375 number of chars.
14376 (set_message_1): Don't access a string's size_byte directly.
14377 (decode_mode_spec_coding): Use number of bytes of eoltype string
14378 instead number of chars.
14379
14380 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14381
143822002-03-08 Juanma Barranquero <lektu@terra.es>
14383
14384 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14385 24-bit.
14386
143872002-03-06 Jason Rumney <jasonr@gnu.org>
14388
14389 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14390
143912002-03-06 Gerd Moellmann <gerd@gnu.org>
14392
14393 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14394 (cancel_echoing, echo_length, echo_truncate): Changed to
14395 work with new kboard definition.
14396 (echo_now): Use message3_nolog instead of message2_nolog.
14397
14398 * alloc.c (mark_kboards): Mark echo_string.
14399
14400 * keyboard.h (ECHOBUFSIZE): Removed.
14401 (struct kboard): Member echoptr removed, member echobuf renamed
14402 to echo_string.
14403
14404 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14405 message3 instead of message2 to display the message using STRING's
14406 text properties.
14407
144082002-03-05 Andreas Schwab <schwab@suse.de>
14409
14410 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14411
144122002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14413
14414 * frame.c (default-frame-alist): Explain that setting it doesn't
14415 affect existing frames.
14416
144172002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14418
14419 * indent.c (skip_invisible): Fix my brain fart.
14420
14421 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14422
144232002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14424
14425 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14426 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14427 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14428 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14429 and variables to use EMACS_INT instead of just int.
14430
14431 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14432
144332002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14434
14435 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14436 environment, pass it down with corrected value.
14437
144382002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14439
14440 * lread.c (read_filtered_event): Do not call start_hourglass
14441 before returning.
14442
144432002-03-04 Juanma Barranquero <lektu@terra.es>
14444
14445 * w32term.c (x_display_and_set_cursor): Fix typo.
14446
144472002-03-03 Richard M. Stallman <rms@gnu.org>
14448
14449 * fileio.c (Fmake_temp_name): Doc fix.
14450
144512002-03-03 Gary Wong <gtw@gnu.org>
14452
14453 * termcap.c [!emacs]: Replace ospeed for building standalone
14454 libtermcap, for binary compatibility.
14455
14456 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14457
144582002-03-03 Richard M. Stallman <rms@gnu.org>
14459
14460 * xrdb.c (file_p): Rename arg `path' to `filename'.
14461
14462 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14463 only if it is an integer.
14464
14465 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14466 If png_get_sRGB gives an answer, call png_set_gamma
14467 using the default image gamma value.
14468
14469 * lread.c (read1): When reading from a file, default string to
14470 multibyte only if it has some multibyte characters.
14471
14472 * print.c (print_object): Output multibyte chars 128...255
14473 using \x even if ! print_escape_multibyte.
14474
14475 * xdisp.c (display_mode_element): Move the places where
14476 bytepos, charpos, this, and lisp_string are set.
14477 Use lisp_string to set bytepos.
14478
14479 * xdisp.c (redisplay_internal):
14480 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14481
14482 * xdisp.c (display_mode_element): Merge properties specified with
14483 :propertize onto those that come with the string.
14484
144852002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14486
14487 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14488 automatic-hscrolling. Users changed.
14489 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14490 Users changed.
14491 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14492
144932002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14494
14495 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14496
144972002-03-02 Kim F. Storm <storm@cua.dk>
14498
14499 * window.c (Fminibuffer_selected_window): New function.
14500 (syms_of_window): Defsubr it.
14501
145022002-03-01 Kim F. Storm <storm@cua.dk>
14503
14504 * window.h (struct window): New member phys_cursor_width.
14505
14506 * window.c (make_window, replace_window): Init phys_cursor_width.
14507
14508 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14509 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14510
14511 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14512 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14513
14514 * lisp.h (GCPRO6): New macro.
14515
14516 * process.c (Fopen_network_stream): Use GCPRO6.
14517
145182002-03-01 Kim F. Storm <storm@cua.dk>
14519
14520 * process.c (Qconnect, Qfailed): New variables.
14521 (syms_of_process): Intern and staticpro them.
14522 (Fprocess_status): Document connect and failed return values.
14523 [NON_BLOCKING_CONNECT]: New conditional.
14524 (connect_wait_mask, num_pending_connects): New variables.
14525 (status_message): Convert Qfailed status.
14526 (Fopen_network_stream): Added support for non-blocking connect.
14527 New optional args: filter, sentinel, non_blocking. Doc updated.
14528 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14529 (deactivate_process): Handle pending non-blocking connect.
14530 (wait_reading_process_input): Poll for status of non-blocking
14531 connects. Exec sentinel directly when connect succeeds.
14532 (status_notify): Don't read process output if not yet connected.
14533
145342002-02-28 Kim F. Storm <storm@cua.dk>
14535
14536 * window.c: (minibuf_selected_window): Renamed from
14537 Vminibuf_selected_window. Users changed.
14538 (syms_of_window): Staticpro it.
14539
145402002-02-26 Kim F. Storm <storm@cua.dk>
14541
14542 The following changes add a new Vminibuf_selected_window variable
14543 which is similar to Vminibuf_scroll_window, but which is only set
14544 on entry to the minibuffer (from a non-minibuffer window):
14545
14546 * window.c: (Vminibuf_selected_window): New variable.
14547 (struct save_window_data): New member minibuf_selected_window.
14548 (Fset_window_configuration): Restore Vminibuf_selected_window.
14549 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14550 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14551 (compare_window_configurations): Compare minibuf_selected_window.
14552
14553 * window.h: (Vminibuf_selected_window): Declare extern.
14554
14555 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14556 entry to minibuffer or on entry from a non-minibuffer window.
14557
14558 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14559 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14560
14561 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14562 instead of Vminibuf_scroll_window when deciding in which window
14563 the region should be highlighted. Consequently, the region remains
14564 highlighteded even when a completion buffer is also displayed.
14565
145662002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14567
14568 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14569
14570 * xselect.c (Qcompound_text_with_extensions): Renamed from
14571 Qcompound_text_no_extensions.
14572 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14573
145742002-02-26 Juanma Barranquero <lektu@terra.es>
14575
14576 * w32proc.c (syms_of_ntproc): Doc fix.
14577
145782002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14579
14580 * intervals.h: Include "dispextern.h" unconditionally.
14581
145822002-02-24 Jason Rumney <jasonr@gnu.org>
14583
14584 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14585 and disp-table.elc.
14586 (lisp): Add emacs-lisp/backquote.elc.
14587
145882002-02-24 Kim F. Storm <storm@cua.dk>
14589
14590 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14591 The validation of the event type was too strict as it didn't
14592 allow string events; buffer names are used in bindings for
14593 menu-bar-select-buffer (see `menu-bar-update-buffers').
14594
145952002-02-23 Kim F. Storm <storm@cua.dk>
14596
14597 The following changes rework my patch of 2002-02-06 which
14598 added command remapping by entering the commands directly into
14599 the keymaps. Now, command remapping uses an explicit `remap'
14600 prefix in the keymaps, i.e. [remap COMMAND].
14601
14602 * keymap.c (Qremap, remap_command_vector): New variables.
14603 (is_command_symbol): Removed function.
14604 (Fdefine_key): No longer accept a symbol for KEY.
14605 Added validation of [remap COMMAND] argument for KEY.
14606 The DEF is no longer required to be a symbol when remapping a command.
14607 (Fremap_command): New function to remap command through keymaps.
14608 (Flookup_key): Perform command remapping initiated by
14609 Fremap_command directly for speed.
14610 (Fkey_binding): Use Fremap_command for command remapping.
14611 (where_is_internal): Handle new command remapping representation.
14612 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14613 staticpro them. Defsubr Fremap_command.
14614
14615 * keymap.h (Fremap_command): Declare extern.
14616 (is_command_symbol): Remove extern.
14617
14618 * keyboard.c (command_loop_1): Use Fremap_command for command
14619 remapping; now try command remapping for all symbols.
14620
146212002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14622
14623 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14624
146252002-02-23 Jason Rumney <jasonr@gnu.org>
14626
14627 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14628 on the string before encoding it.
14629 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14630 after decoding it.
14631
14632 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14633
146342002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14635
14636 * w32term.c (enter_timestamp): Remove unused static variable to
14637 prevent warning.
14638
14639 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14640
146412002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14642
14643 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14644
14645 * xselect.c (selection_data_to_lisp_data): Fix last change.
14646
146472002-02-22 Jason Rumney <jasonr@gnu.org>
14648
14649 * w32term.h (struct w32_output): New member menu_command_in_progress.
14650
14651 * w32menu.c (menubar_selection_callback): Free the menu and
14652 clear the menu_command_in_progress flag.
14653
14654 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14655 (menu_free_timer): New variable.
14656 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14657 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14658 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14659 menu command is in progress.
14660 <WM_COMMAND>: Set the menu_command_in_progress flag.
14661 Kill any menu_free_timer that is running.
14662
14663 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14664 Call ExtTextOutA rather than ExtTextOut.
14665
146662002-02-22 Eli Zaretskii <eliz@gnu.org>
14667
14668 * puresize.h (BASE_PURESIZE): Increase to 755000.
14669
146702002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14671
14672 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14673 on the string before encoding it.
14674 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14675 after decoding it.
14676
146772002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14678
14679 Support for ICCCM Extended Segments in X selections:
14680
14681 * xselect.c <Qcompound_text_no_extensions>: New variable.
14682 (syms_of_xselect): Intern and staticpro it.
14683 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14684 selection text.
14685 (lisp_data_to_selection_data): If next-selection-coding-system is
14686 compound-text-no-extensions, set the type of selection to be
14687 compound-text.
14688
14689 * xterm.h (x_encode_text): Update prototype.
14690
14691 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14692 callers changed. If SELECTIONP is non-zero, run the
14693 pre-write-conversion function before encoding the selection text.
14694
146952002-02-21 Kim F. Storm <storm@cua.dk>
14696
14697 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14698
14699 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14700 Correct composing of language-change event.
14701
147022002-02-20 Kim F. Storm <storm@cua.dk>
14703
14704 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14705 bindings at PT when building menu (the menu is not updated often
14706 enough for this to work reliable).
14707 (tool_bar_items): Likewise.
14708 (current_active_maps): Removed unused (and buggy) function.
14709
147102002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14711
14712 * xfns.c (gif_load): Use correct width and height for GIF images.
14713
147142002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14715
14716 * floatfns.c (Fatan): Accept an optional second arg and call
14717 atan2 if passed 2 args.
14718
147192002-02-18 Jason Rumney <jasonr@gnu.org>
14720
14721 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14722
147232002-02-17 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32term.c (x_autoselect_window_p): New variable.
14726 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14727 (note_mouse_movement): Use it.
14728
14729 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14730
14731 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14732
14733 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14734 New variables.
14735 (syms_of_w32fns): Intern and staticpro them.
14736 (x_frame_parms) <"fullscreen">: New parameter.
14737 (x_fullscreen_move, x_set_fullscreen): New functions.
14738 (x_set_frame_parameters): Support Qfullscreen.
14739 (x_real_positions): Save x/y_pixels_diff frame params.
14740 (x_figure_window_size): Support full-screen frames.
14741 (Fx_create_frame): Default the fullscreen parameter.
14742
14743 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14744 (x_fullscreen_adjust): New functions.
14745 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14746 fullscreen. Call x_check_fullscreen_move, and set the
14747 want_fullscreen member of output_data.w32
14748 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14749
14750 * w32term.h: New enum for FULLSCREEN_* constants.
14751 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14752 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14753 (x-fullscreen-adjust): New prototype.
14754
147552002-02-17 Kim F. Storm <storm@cua.dk>
14756
14757 * frame.c: (Vmouse_highlight): New variable.
14758 (syms_of_frame): DEFVAR_LISP it.
14759
14760 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14761
048addec 14762 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14763
048addec
JD
14764 * xterm.c (disable_mouse_highlight): Removed variable.
14765 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14766 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14767 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14768 and on after keyboard input.
14769 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14770
048addec 14771 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14772
048addec
JD
14773 * msdos.c (disable_mouse_highlight): Removed variable.
14774 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14775 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14776 (internal_terminal_init): Initialize mouse_face_hidden.
14777 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14778 and on after keyboard input.
4f1b1854 14779
048addec 14780 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14781
048addec
JD
14782 * w32term.c (disable_mouse_highlight): Removed variable.
14783 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14784 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14785 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14786 and on after keyboard input.
14787 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14788
048addec 147892002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14790
048addec
JD
14791 * msdos.c (last_mouse_window): New variable.
14792 (dos_rawgetc): Fix last change--if the mouse is in the same window
14793 as recorded in last_mouse_window, don't select this window.
5cb6905d 14794
048addec 14795 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14796
048addec
JD
14797 * msdos.c (x_autoselect_window_p): New variable.
14798 (syms_of_msdos): Defvar it.
14799 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14800 which the last mouse movement occured, unless it is already selected.
437dfb9f 14801
048addec
JD
14802 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14803 New variables.
14804 (syms_of_xdisp): DEVFAR them.
14805 (hscroll_window_tree): Use automatic_hscroll_margin and
14806 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14807
048addec 148082002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14809
048addec
JD
14810 * xterm.c (x-autoselect-window): New variable.
14811 (note_mouse_movement): Use it.
9f696a00 14812
048addec 14813 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14814
048addec 148152002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14816
bfa02563 14817 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14818
048addec 14819 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14820
048addec 148212002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14822
048addec 14823 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14824
048addec
JD
14825 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14826 (Vx_super_keysym): New variables.
14827 (syms_of_xterm): DEFVAR_LISP them.
14828 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14829 variables to determine which keys to use for the various modifiers.
a474d59c 14830
048addec 148312002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14832
048addec
JD
14833 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14834 (mode_line_in_non_selected_windows): New variable.
14835 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14836
048addec
JD
14837 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14838 Use mode_line_in_non_selected_windows.
14839 (mode_line_in_non_selected_windows): Declare extern.
14840 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14841
048addec 148422002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14843
048addec
JD
14844 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14845 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14846 (Fclear_this_command_keys): Doc fixes.
2d10309f 14847
048addec
JD
14848 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14849 (update_face_from_frame_parameter): Increment face_change_count
14850 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14851
048addec
JD
14852 * xdisp.c (QCpropertize): New variable.
14853 (mode_line_proptrans_alist): New variable.
14854 (display_mode_element): New arg PROPS; all calls changed.
14855 Implement this, for strings.
14856 Handle literal output of strings by sharing the
14857 main-line code for strings, using local var `literal'.
14858 Handle :propertize feature.
14859 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14860 mode_line_proptrans_alist.
0b1e6b54 14861
048addec 148622002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14863
048addec
JD
14864 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14865 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14866
048addec
JD
14867 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14868 (CURRENT_MODE_LINE_FACE_ID): Use it.
14869 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14870
048addec
JD
14871 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14872 to get mode line face.
e17144de 14873
048addec 148742002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14875
048addec
JD
14876 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14877 variables; cus-start.el doesn't need them anymore.
44368f8f 14878
048addec 148792002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14880
048addec
JD
14881 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14882 reduction. This fixes a display problem where stray newlines were
14883 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14884
048addec 148852002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14886
048addec 14887 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14888
048addec 14889 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14890
048addec 148912002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14892
048addec
JD
14893 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14894 match each other.
14895 (w32_load_system_font): Prevent Cleartype fonts from loading.
14896 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14897
048addec 148982002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14899
048addec
JD
14900 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14901 (CURRENT_MODE_LINE_HEIGHT): Use it.
14902 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14903
048addec
JD
14904 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14905 (pos_visible_p, handle_face_prop): Likewise.
14906 (display_mode_lines): Likewise, but for the real selected window.
14907 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14908
048addec
JD
14909 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14910 in non-selected windows.
14911 (realize_basic_faces): Realize it.
14912 (syms_of_term): Intern and staticpro it.
308dd672 14913
048addec 149142002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14915
048addec
JD
14916 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14917 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14918
048addec 149192002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14920
048addec
JD
14921 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14922 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14923
048addec 14924 * floatfns.c (Fround): Doc fix.
3c1e6b46 14925
048addec 149262002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14927
048addec 14928 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14929
048addec 149302002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14931
048addec 14932 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14933
048addec 149342002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14935
048addec
JD
14936 * keymap.c (where_is_internal): Only check whether definition is
14937 remapped if it fulfills is_command_symbol.
0065bb74 14938
048addec 149392002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14940
048addec 14941 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14942
048addec 14943 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14944
048addec 149452002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14946
048addec
JD
14947 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14948 defining command remapping. Doc updated.
14949 (Flookup_key): Remap command through keymap if KEY is a symbol.
14950 (is_command_symbol): New function.
14951 (Fkey_binding): Use it. New optional argument NO-REMAP.
14952 Doc updated. Callers changed. Perform command remapping via
14953 recursive call unless that arg is non-nil.
14954 (where_is_internal): New argument no_remap. Callers changed.
14955 Call recursively to find original key bindings for a remapped
14956 comand unless that arg is non-nil.
14957 (Fwhere_is_internal): New optional argument NO-REMAP.
14958 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14959
048addec
JD
14960 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14961 (is_command_symbol): Added prototype.
0d8466cc 14962
048addec
JD
14963 * keyboard.c (Vthis_original_command): New variable.
14964 (syms_of_keyboard): DEFVAR_LISP it.
14965 (command_loop_1): Set it, and perform command remapping.
15fff01d 14966
048addec 149672002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14968
048addec 14969 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14970
048addec 149712002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14972
048addec 14973 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14974
048addec 149752002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14976
048addec 14977 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14978
048addec 149792002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14980
048addec 14981 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14982
048addec 149832002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14984
048addec 14985 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14986
048addec
JD
14987 * lread.c (read1): Redesign strategy for force_multibyte and
14988 force_singlebyte. Now is_multibyte records whether read_buffer
14989 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14990
048addec 149912002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14992
048addec
JD
14993 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14994 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14995
048addec 149962002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14997
048addec
JD
14998 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14999 latter never being defined on GNU/Linux.
749f499f 15000
048addec 150012002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 15002
048addec
JD
15003 * xfaces.c (realize_default_face): Don't set the weight and slant of
15004 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 15005
048addec 150062002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 15007
048addec
JD
15008 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15009 Call cancel_hourglass unconditionally.
d0fd26dd 15010
048addec
JD
15011 * eval.c (Fsignal): Remove duplicated declaration of
15012 the variable `display_hourglass_p'.
b4c45162 15013
048addec 150142002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 15015
048addec 15016 * editfns.c (region_limit): Nicer error message.
c95eaa61 15017
048addec
JD
15018 * coding.c (decode_composition_emacs_mule):
15019 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 15020
048addec
JD
15021 * callint.c (check_mark): New arg to specify clearer error message.
15022 Callers changed.
c95eaa61 15023
048addec 150242002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 15025
048addec 15026 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 15027
048addec 150282002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 15029
048addec
JD
15030 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15031 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15032 Fix doc-strings.
c95eaa61 15033
048addec 150342002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 15035
048addec 15036 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 15037
048addec
JD
15038 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15039 and scroll_up_aggressively.
c95eaa61 15040
048addec 150412002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 15042
048addec 15043 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 15044
048addec 150452002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 15046
048addec
JD
15047 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15048 (Fprevious_property_change, Fprevious_single_property_change):
15049 Stay within the narrowed-buffer boundaries.
e2c3786a 15050
048addec 150512002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 15052
048addec
JD
15053 * term.c (Ftty_display_color_cells): New function.
15054 (syms_of_term): Defsubr it.
15055 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15056 argument name to DISPLAY. Doc fix.
bf794306 15057
048addec
JD
15058 * dispextern.h: Add prototype for set_tty_color_mode and
15059 tty_setup_colors.
bf794306 15060
048addec 150612002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 15062
048addec
JD
15063 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15064 If region left to draw is not what was expected, mark the frame as
15065 garbaged.
62582985 15066
048addec
JD
15067 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15068 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 15069
048addec 150702002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 15071
048addec
JD
15072 * w32term.c (x_update_window_begin): Only hide caret if
15073 w32_use_visible_system_caret is set.
15074 (x_update_window_end): Only show caret if
15075 w32_use_visible_system_caret is set.
15076 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 15077
048addec 15078 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 15079
048addec 150802002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 15081
048addec
JD
15082 * unexelf.c (unexec): Define n so as to cause compilation error
15083 for the code where people have often written n instead of nn.
1e9a6186 15084
048addec 15085 * .gdbinit (hookpost-run): Defined.
1e9a6186 15086
048addec 150872002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 15088
048addec 15089 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 15090
048addec 150912002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 15092
048addec
JD
15093 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15094 if fullscreen is being set.
7c75be36 15095
048addec 150962002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 15097
048addec
JD
15098 * minibuf.c (Fminibuffer_contents)
15099 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15100 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 15101
048addec 151022002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 15103
048addec 15104 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 15105
048addec 151062002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 15107
048addec
JD
15108 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15109 height before comparison.
15110 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 15111
048addec 151122002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 15113
048addec
JD
15114 * w32term.c (w32_system_caret_width): Remove.
15115 (w32_use_visible_system_caret): New user flag.
15116 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15117 Windows reports a screen reader running.
15118 (x_update_window_begin): Hide the system caret.
15119 (x_update_window_end): Show the system caret.
15120 (x_display_and_set_cursor): Don't draw a cursor when
15121 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 15122
048addec
JD
15123 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15124 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15125 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15126 the user requests it. Use system default width when creating.
15127 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 15128
048addec
JD
15129 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15130 New window messages.
905cc05a 15131
048addec 151322002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 15133
048addec 15134 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 15135
048addec 151362002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 15137
048addec 15138 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 15139
048addec 151402002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 15141
048addec 15142 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 15143
048addec 151442002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 15145
048addec
JD
15146 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15147 that Windows returns. If a double check fails, try to guess how
15148 ExtTextOut is going to act.
4d0fa4f3 15149
048addec
JD
15150 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15151 in place of stricmp.
15152 (w32_list_synthesized_fonts): Removed.
15153 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15154 (struct enumfont_t): New element; list.
15155 (enum_font_cb2): List all style and charset variations of a font.
15156 (Fw32_select_font): New optional argument; include_proportional.
15157 Exclude vertical fonts. Exclude proportional fonts unless
15158 include_proportional is non-nil.
15159 (w32_enable_synthesized_fonts): Change to a boolean.
15160 (Fw32_send_sys_command): Doc fix.
493faf20 15161
048addec 151622002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15163
048addec
JD
15164 * dispnew.c (update_frame): Move the variable `tem' to the block
15165 where it is used.
4971e491 15166
048addec 151672002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15168
048addec
JD
15169 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15170 call to face-set-after-frame-default.
4971e491 15171
048addec 151722002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15173
048addec
JD
15174 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15175 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15176
048addec 151772002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15178
048addec
JD
15179 * window.c (enlarge_window): When exceeding size of parent,
15180 directly delete all the siblings instead of trying to resize it.
201c831a 15181
048addec 151822002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15183
048addec 15184 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15185
048addec 151862002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15187
048addec 15188 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15189
048addec 151902002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15191
048addec
JD
15192 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15193 is invisible. This can happen if cursor is on top line of a
15194 window, and we switch to a buffer with a header line.
d77fbc16 15195
048addec 15196 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15197
048addec 151982002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15199
048addec
JD
15200 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15201 `dont_resize' only when used.
61e3b944 15202
048addec 15203 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15204
048addec 152052002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15206
048addec
JD
15207 * xdisp.c (display_mode_element): When computing charpos, depend
15208 on multibyteness of elt, not the text in field.
8af01033 15209
048addec 152102002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15211
048addec
JD
15212 * buffer.c (Fkill_all_local_variables):
15213 Increment `update_mode_lines' only once.
7363986a 15214
048addec 152152002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15216
048addec
JD
15217 * lisp.h (adjust_after_replace_noundo)
15218 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15219
048addec 15220 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15221
048addec 152222002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15223
048addec
JD
15224 Support for the --color command-line argument and tty-color-mode
15225 frame parameter:
f1a85b89 15226
048addec
JD
15227 * term.c (tty_default_color_capabilities, tty_setup_colors)
15228 (set_tty_color_mode): New functions.
15229 (term_init): Call tty_default_color_capabilities.
15230 (Qtty_color_mode_alist): New variable.
15231 (syms_of_term): Intern and staticpro it.
f1a85b89 15232
048addec
JD
15233 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15234 frames.
15235 (do_switch_frame): For termcap frames, switch the tty
15236 color mode as specified by the frame's parameters.
15237 (Qtty_color_mode): New variable.
15238 (syms_of_frame): Intern and staticpro it.
3a62677f 15239
048addec
JD
15240 * emacs.c (USAGE2): Add the --color option.
15241 (standard_args): Ditto.
72244db2 15242
048addec
JD
152432002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15244
15245 * xterm.h (struct x_output): New members want_fullscreen,
15246 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15247 y_pixels_outer_diff.
15248 New enum for FULLSCREEN_* constants.
15249 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15250 is NULL.
15251 (x_fullscreen_adjust): Add prototype.
3a62677f 15252
048addec
JD
15253 * emacs.c (USAGE2): Add the new full-screen arguments.
15254 (standard_args): Ditto.
3a62677f 15255
048addec
JD
15256 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15257 New variables.
15258 (syms_of_xfns): Intern and staticpro them.
15259 (x_frame_parms) <"fullscreen">: New parameter.
15260 (x_fullscreen_move, x_set_fullscreen): New functions.
15261 (x_set_frame_parameters): Support for Qfullscreen.
15262 (x_real_positions): More accurate computation of the frame position.
15263 (x_figure_window_size): Support full-screen frames.
15264 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15265
048addec
JD
15266 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15267 (XTread_socket) <Expose>: Call x_check_fullscreen.
15268 <ConfigureNotify>: Don't resize to fullscreen.
15269 Call x_check_fullscreen_move, and set the want_fullscreen member of
15270 output_data.x.
3a62677f 15271
048addec 152722002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15273
048addec
JD
15274 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15275 for mice with more than 3 buttons.
b8523839 15276
048addec
JD
15277 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15278 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15279
048addec
JD
15280 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15281 (syms_of_w32fns): DEFVAR_BOOL it.
15282 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15283
048addec 152842002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15285
048addec 15286 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15287
048addec 152882002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15289
048addec 15290 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15291
048addec 152922002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15293
048addec
JD
15294 * .gdbinit (xbuffer): Remove address operator since data is now a
15295 pointer.
c93674bb 15296
048addec 152972002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15298
048addec 15299 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15300
048addec 15301 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15302
048addec 153032002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15304
048addec
JD
15305 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15306 when checking for multiple frames.
91175673 15307
048addec 153082002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15309
048addec
JD
15310 * window.c (delete_window): Rewrite the code for changing the
15311 selected window to handle the case where WINDOW is not a leaf.
91175673 15312
048addec 153132002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15314
048addec
JD
15315 * process.c (send_process): Set src_multibyte to 1 after the call
15316 top setup_coding_system, not before the call.
e0fead5d 15317
048addec 153182002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15319
048addec
JD
15320 * xmenu.c (set_frame_menubar, xmenu_show):
15321 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15322
048addec
JD
15323 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15324 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15325
048addec 153262002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15327
048addec 15328 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15329
048addec 15330 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15331
048addec 15332 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15333
048addec 153342002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15335
048addec
JD
15336 * insdel.c (make_gap_larger): Make sure buffer size does not
15337 overflow range of int.
62854fe2 15338
048addec 153392002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15340
048addec
JD
15341 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15342 OVERLAPS_P.
656f46bb 15343
048addec 15344 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15345
048addec
JD
15346 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15347 to the left or to the right of the pointer, put it against
15348 the left screen edge.
15349 (x_frame_parms): Add missing braces around initializer.
036e218d 15350
048addec
JD
15351 * w32term.c (x_setup_relief_colors): Don't compute an image's
15352 background color if it doesn't have a Pixmap.
15353 (notice_overwritten_cursor): Don't depend on
15354 output_cursor and updated_area. Compare pixel coordinates with
15355 window's cursor pixel coordinates.
15356 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15357 Call notice_overwritten_cursor with new arg list.
15358 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15359 unconditionally.
15360 (x_draw_image_relief): Use predefined macro instead of
15361 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15362
048addec 15363 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15364
048addec 153652002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15366
048addec 15367 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15368
048addec 153692002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15370
048addec
JD
15371 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15372 (Fkey_binding): Try the `keymap' property map first.
15373 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15374 minor mode bindings.
90647b07 15375
048addec 153762002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15377
048addec 15378 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15379
048addec 153802002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15381
048addec
JD
15382 * keyboard.c (read_key_sequence): Handle the keymap property
15383 before minor mode maps.
9fbc32aa 15384
048addec
JD
15385 * editfns.c (Fformat): Update thissize from field_width
15386 based on the actual width, in the string case.
036e218d 15387
048addec 153882002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15389
048addec
JD
15390 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15391 when used as truth value to prevent gcc warnings.
9fbc32aa 15392
048addec
JD
15393 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15394 * w32proc.c: Include <config.h>.
9fbc32aa 15395
048addec 153962002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15397
048addec
JD
15398 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15399 not EMACS_INT, to make them compatible with DEFVAR_INT.
15400 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15401
048addec 154022002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15403
048addec
JD
15404 * print.c (print_object): Test print_escape_nonascii only for
15405 unibyte strings.
15406 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15407 when outputting to a multibyte buffer.
9fbc32aa 15408
048addec 154092001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15410
048addec
JD
15411 * print.c (print_object): In multibyte string, use hex escapes.
15412 Use octal only for unibyte strings.
15413 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15414
048addec
JD
15415 * lread.c (read_escape): New arg BYTEREP for reporting whether
15416 escape forces unibyte or multibyte.
15417 (read1): When reading a string, take note of that info.
0142178a 15418
048addec 154192001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15420
048addec
JD
15421 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15422 comparison to test lisp value returned by Fget.
d4824a5d 15423
048addec 154242001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15425
048addec 15426 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15427
048addec 15428 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15429
048addec
JD
15430 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15431 Handle modifier bits. Correct typo in error message.
99e380ee 15432
048addec 154332001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15434
048addec
JD
15435 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15436 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15437 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15438 Update calls to Fdefine_abbrev.
15439 (write_abbrev): Update for changed data format.
15440 Don't list "system" abbrevs.
15441 (Fexpand_abbrev): Update use count with new data format.
15442 (describe_abbrev): Update for changed data format.
15443 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15444
048addec 15445 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15446
048addec 15447 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15448
048addec
JD
15449 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15450 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15451
048addec
JD
15452 * keymap.c (Flookup_key): Error message if key has wrong data type.
15453 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15454 (exclude_key): New variable.
59a86c99 15455
048addec 154562001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15457
048addec
JD
15458 * xterm.c (x_setup_relief_colors): Don't compute an image's
15459 background color if it doesn't have a Pixmap.
eb77a5f4 15460
048addec
JD
15461 * xterm.c (notice_overwritten_cursor): Don't depend on
15462 output_cursor and updated_area. Compare pixel coordinates with
15463 window's cursor pixel coordinates.
15464 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15465 Call notice_overwritten_cursor with new arg list.
15466 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15467 unconditionally.
eb77a5f4 15468
048addec
JD
15469 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15470 height of the cursor line to the amount to scroll.
eb77a5f4 15471
048addec 154722001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15473
048addec
JD
15474 * intervals.c (set_point_both): The position after an invisible,
15475 intangible character is not an acceptable stopping point.
bb313871 15476
048addec 154772001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15478
048addec
JD
15479 * window.c (enlarge_window): In new preserve_before code, convert
15480 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15481
048addec 154822001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15483
048addec 15484 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15485
048addec 154862001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15487
048addec
JD
15488 * keyboard.c (record_char): Ignore duplicate help-echo events only
15489 separated by mouse-movement. When tracking mouse, only record
15490 first and last mouse-movement event in same window.
15491 Don't record mouse-movement events in keyboard macros.
3ce081f5 15492
048addec 154932001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15494
048addec
JD
15495 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15496 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15497
048addec
JD
15498 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15499 instead of Fstring_as_unibyte.
9fabb2f5 15500
048addec 155012001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15502
048addec 15503 The following changes remove mocklisp support:
9fabb2f5 15504
048addec 15505 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15506
048addec
JD
15507 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15508 `Qmocklisp' and `Qmocklisp_arguments'.
15509 Remove prototype of syms_of_mocklisp.
2fa0eedf 15510
048addec 15511 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15512
048addec
JD
15513 * callint.c: Do not include mocklisp.h.
15514 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15515
048addec
JD
15516 * eval.c: Remove variables `Qmocklisp_arguments',
15517 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15518 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15519 Do not test for mocklisp case.
15520 (Fwhile): Remove unused variable `tem'.
15521 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15522
048addec 15523 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15524
048addec 15525 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15526
048addec 15527 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15528
048addec 155292001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15530
048addec
JD
15531 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15532 to the left or to the right of the pointer, put it against
15533 the left screen edge.
6108b49c 15534
048addec 155352001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15536
048addec
JD
15537 * Makefile.in (distclean): Remove .gdbinit if we are building
15538 outside the source tree.
5eea19a4 15539
048addec 155402001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15541
048addec 15542 * w32.c (emacs_root_dir): New function.
5eea19a4 15543
048addec 15544 * msdos.c (emacs_root_dir): New function.
5eea19a4 15545
048addec
JD
15546 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15547 of the current drive as the fallback for default_directory.
438e57dd 15548
048addec
JD
15549 * dired.c (file_name_completion): Run the elements of
15550 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15551
048addec
JD
15552 * lisp.h (scmp): Remove prototype, since it's now a static
15553 function private to dired.c.
c88e5347 15554
048addec 155552001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15556
048addec
JD
15557 * dired.c (scmp): Function moved from minibuf.c.
15558 Delete multibyte handling--used only on encoded strings.
59ce1461 15559
048addec 15560 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15561
048addec 15562 * fns.c (merge): Add QUIT call.
59ce1461 15563
048addec 155642001-12-18 Dave Love <fx@gnu.org>
8727d588 15565
048addec
JD
15566 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15567 language/georgian.el.
8727d588 15568
048addec 155692001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15570
048addec
JD
15571 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15572 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15573
048addec 155742001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15575
048addec
JD
15576 * xdisp.c (window_box_height): Do not return negative values.
15577 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15578
048addec 15579 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15580
048addec 15581 * term.c (keys): Likewise.
deece6f5 15582
048addec 15583 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15584
048addec 155852001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15586
048addec
JD
15587 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15588 patch (COMPOSING_P, not COMPOSING).
28ff4293 15589
048addec 155902001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15591
048addec 15592 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15593
048addec
JD
15594 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15595 before calling decode_coding.
9b46de40 15596
048addec 15597 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15598
048addec
JD
15599 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15600 instead of only for COMPOSITION_DISABLED.
9b46de40 15601
048addec 156022001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15603
048addec 15604 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15605
048addec 15606 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15607
048addec
JD
15608 * buffer.h (struct buffer): New field `display_error_modiff'.
15609 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15610
048addec 15611 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15612
048addec
JD
15613 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15614 Call redisplay_window, but not if display_error_modiff field says no.
15615 (redisplay_window_error): New function.
15616 (displayed_buffer): New variable.
15617 (redisplay_internal, redisplay_windows): Call the new functions
15618 instead of redisplay_window directly.
2cd23960 15619
048addec 156202001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15621
048addec 15622 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15623
048addec 156242001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15625
048addec 15626 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15627 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15628 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15629
048addec 156302001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15631
048addec
JD
15632 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15633 parameter have a numeric value all the time.
f6fa0866 15634
048addec 15635 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15636
048addec 156372001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15638
048addec 15639 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15640
048addec
JD
15641 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15642 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15643
048addec 156442001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15645
048addec
JD
15646 * xdisp.c (move_it_vertically_backward): Change heuristic
15647 for the case that we didn't move far enough initially.
91c153e2 15648
048addec
JD
15649 * window.c (Frecenter): Simplify computation in the case of window
15650 system frames and ARG < 0; use window_box_height.
65b7d3e7 15651
048addec 156522001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15653
048addec
JD
15654 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15655 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15656
048addec 156572001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15658
048addec
JD
15659 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15660 arg is negative.
be676094 15661
048addec 156622001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15663
048addec
JD
15664 * m/hp800.h: Split the __hpux conditional into the parts
15665 that are right for GNU/Linux too and the parts that are not.
15666 Use the former if GNU_LINUX.
15667 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15668
048addec 15669 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15670
048addec 156712001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15672
048addec
JD
15673 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15674 `new style' [w/`doc:' keyword].
032a857d 15675
048addec 156762001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15677
048addec
JD
15678 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15679 before using.
b6270150 15680
048addec 156812001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15682
048addec
JD
15683 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15684 keyword].
98cbb9fa 15685
048addec 156862001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15687
048addec 15688 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15689
048addec 15690 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15691
048addec 156922001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15693
048addec 15694 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15695 Add comment to explain where the struct came from.
048addec
JD
15696 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15697 (add_menu_item): Process pop-up menus first to avoid memory leak.
15698 (add_menu_item, w32_menu_display_help): Use `help' field as
15699 Lisp_Object.
15700 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15701
048addec 157022001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15703
048addec 15704 * COPYING: Moved back.
fa336b91 15705
048addec
JD
15706 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15707 Add parentheses around && within ||.
077907d4 15708
048addec 15709 * indent.c (compute_motion): Likewise.
aa2af83a 15710
048addec 15711 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15712
048addec
JD
15713 * coding.c (setup_coding_system, shrink_encoding_region)
15714 (Fdecode_sjis_char): Likewise.
60a653f1 15715
048addec 157162001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15717
048addec
JD
15718 * xdisp.c (display_mode_element): Don't read past end of string if
15719 it ends with '%'.
60a653f1 15720
048addec
JD
15721 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15722 can hold.
60a653f1 15723
048addec
JD
15724 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15725 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15726 type changed to Lisp_Object.
15727 (syms_of_data): DEFVAR_LISP them.
60a653f1 15728
048addec 157292001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15730
048addec
JD
15731 * callproc.c (init_callproc): Set Vdata_directory based on the source
15732 location whenever Emacs was run uninstalled.
60a653f1 15733
048addec 157342001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15735
048addec
JD
15736 * config.in (HAVE_WORKING_VFORK): New #undefs.
15737 * process.c (create_process):
15738 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15739 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15740 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15741 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15742 * m/intel386.h (HAVE_VFORK): Likewise.
15743 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15744 * m/mips.h (HAVE_VFORK): Likewise.
15745 * s/freebsd.h (vfork): Remove #define.
15746 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15747 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15748
048addec 157492001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15750
048addec
JD
15751 * s/hpux10.h (random): Add undef.
15752 (HAVE_RANDOM): Define it just once.
60a653f1 15753
048addec 157542001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15755
048addec 15756 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15757
048addec 157582001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15759
048addec
JD
15760 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15761 scroll bars of the frame before deleting the frame itself. If the
15762 frame has a widget, delete the frame with XtDestroyWidget, and do
15763 not call XDestroyWindow before that.
60a653f1 15764
048addec 157652001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15766
048addec 15767 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15768
048addec 15769 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15770
048addec 157712001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15772
048addec
JD
15773 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15774 excessively large.
60a653f1 15775
048addec
JD
15776 * insdel.c (make_gap_larger): New function.
15777 (make_gap_smaller): New function.
15778 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15779 Call make_gap_smaller if arg is negative.
60a653f1 15780
048addec 157812001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15782
048addec
JD
15783 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15784 Pass a dummy argument when calling interrupt_signal.
15785 (parse_menu_item): Mark disabled items before checking for empty def.
15786 (read_char_minibuf_menu_prompt): Make safety more visible.
15787 (read_key_sequence): Add a `first_unbound' variable.
15788 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15789 unbound prefix as soon as we can detect it.
60a653f1 15790
048addec
JD
15791 * doc.c (Fsnarf_documentation): Add prototype.
15792 (get_doc_string): Handle negative arguments.
15793 (Fdocumentation): Use AREF and ASIZE.
15794 Move the calls to get_doc_string to a single place.
15795 Don't confuse an interactive-spec for a docstring reference.
15796 (Fdocumentation_property): Take advantage of the fact that
15797 get_doc_string now ignores the sign of the docstring position.
60a653f1 15798
048addec 15799 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15800
048addec 158012001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15802
a64387ee 15803 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15804
048addec 158052001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15806
048addec
JD
15807 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15808 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15809
048addec 158102001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15811
048addec
JD
15812 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15813 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15814
048addec 15815 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15816
048addec 158172001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15818
048addec 15819 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15820
048addec 158212001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15822
048addec 15823 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15824
048addec 158252001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15826
f63fd14e 15827 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15828
048addec
JD
15829 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15830 [!WM_MOUSELEAVE]: Define.
60a653f1 15831
048addec
JD
15832 * w32menu.c (current_popup_menu, get_menu_item_info):
15833 (set_menu_item_info): New vars.
15834 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15835 (w32_menu_show): Set current_popup_menu.
15836 (add_menu_item): Allocate new strings for owner-drawn menu items
15837 and help strings.
15838 Use owner-draw for disabled menu items again.
15839 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15840 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15841
048addec
JD
15842 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15843 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15844 <WM_EXITMENULOOP>: Free menu strings.
15845 <WM_MOUSELEAVE>: Stop tracking mouse.
15846 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15847
048addec
JD
15848 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15849 and mouse face.
60a653f1 15850
048addec 158512001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15852
048addec
JD
15853 The following changes add left-fringe and right-fringe
15854 frame parameters to adjust fringe widths, or remove one or
15855 both fringes.
60a653f1 15856
048addec
JD
15857 * frame.h (struct frame): Remove trunc_area_pixel_width and
15858 trunc_area_cols fields.
15859 (Qleft_fringe, Qright_fringe): Declare.
15860 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15861
048addec
JD
15862 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15863 (syms_of_frame): Initialize them.
60a653f1 15864
048addec
JD
15865 * window.c (coordinates_in_window): Handle separate left and right
15866 fringe widths.
60a653f1 15867
048addec
JD
15868 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15869 and fringe_cols fields.
15870 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15871 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15872 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15873 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15874 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15875 (x_compute_fringe_widths): Add prototype.
60a653f1 15876
048addec
JD
15877 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15878 fill fringe evenly with small dashes.
f63fd14e 15879 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15880 clip the new ZV bitmap to avoid jitter between rows.
15881 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15882 background. Don't draw fringe bitmaps if fringe width is zero.
15883 (x_compute_fringe_widths): New function.
15884 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15885
048addec
JD
15886 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15887 (x_set_frame_parameters): Process `font' parameter before other
15888 parameters as fringe widths depend on it.
15889 (x_set_fringe_width): New function.
15890 (x_figure_window_size): Use x_compute_fringe_widths.
15891 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15892 parameters.
60a653f1 15893
048addec
JD
15894 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15895 (EmacsFrameSetCharSize): Ditto.
60a653f1 15896
048addec
JD
15897 * w32term.h: Merged changes from xterm.h.
15898 * w32term.c: Merged changes from xterm.c.
15899 * w32fns.c: Merged changes from xfns.c.
60a653f1 15900
048addec 159012001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15902
048addec 15903 * COPYING: Removed.
60a653f1 15904
048addec 159052001-11-29 Dave Love <fx@gnu.org>
60a653f1 15906
048addec
JD
15907 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15908 extra extra slot.
15909 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15910
048addec 159112001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15912
048addec
JD
15913 * fileio.c (file-name-coding-system)
15914 (default-file-name-coding-system): Doc fix (links to referenced
15915 variables added).
60a653f1 15916
048addec 159172001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15918
048addec
JD
15919 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15920 Add dummy uses of gcproN variables.
60a653f1 15921
048addec
JD
15922 * category.c (describe_category, describe_category_1)
15923 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15924 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15925
048addec 159262001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15927
048addec 15928 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15929
048addec
JD
15930 * Makefile.in (lispdir): New variable, referring to build dir.
15931 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15932
048addec 159332001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15934
048addec
JD
15935 * w32menu.c (w32_menu_display_help): Actually add the new argument
15936 OWNER.
60a653f1 15937
048addec 159382001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15939
048addec
JD
15940 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15941 menu items. From David Ponce <dponce@wanadoo.fr>.
15942 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15943 conditionally.
f63fd14e 15944 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15945 help event in the owner frame's keyboard buffer.
60a653f1 15946
048addec
JD
15947 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15948 (Fx_show_tip): Don't subtract last width from row width.
15949
15950 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15951 (w32_read_socket): Use EQ to compare frames.
60a653f1 15952
048addec 159532001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15954
048addec
JD
15955 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15956 OVERLAPS_P.
60a653f1 15957
048addec 159582001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15959
048addec
JD
15960 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15961 `gcpro3' and `gcpro4'.
60a653f1 15962
048addec 15963 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15964
048addec 159652001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15966
048addec 15967 * ccl.c: Use AREF and ASIZE.
60a653f1 15968
048addec 159692001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15970
048addec
JD
15971 * lisp.h (run_hook_list_with_args): Remove.
15972 (LIST_END_P): Fix call to wrong_type_argument.
15973 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15974
048addec 159752001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15976
048addec
JD
15977 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15978 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15979
048addec
JD
15980 * eval.c: Use AREF and ASIZE.
15981 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15982
048addec
JD
15983 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15984 which match the end of the file-name.
15985 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15986 is not a valid env var, but leave it as is instead.
60a653f1 15987
048addec
JD
15988 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15989 Make nil bindings in char-tables transparent.
15990 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15991
048addec 159922001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15993
048addec
JD
15994 * textprop.c (set_text_properties_1): Allow START, END in either order.
15995 Do nothing if range is empty.
60a653f1 15996
048addec 15997 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15998
048addec
JD
15999 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16000 (clean): Not here.
60a653f1 16001
048addec 160022001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16003
048addec
JD
16004 * textprop.c (set_text_properties_1): Clearly mark that the
16005 interval should not be empty.
60a653f1 16006
048addec
JD
16007 * intervals.c (graft_intervals_into_buffer):
16008 Don't call set_text_properties_1 on an empty interval.
60a653f1 16009
048addec 160102001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 16011
048addec 16012 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 16013
048addec
JD
16014 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16015 don't lose the data in it.
60a653f1 16016
048addec 160172001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 16018
048addec 16019 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 16020
c62aec78 16021 * buffer.c (Fkill_buffer): Likewise.
60a653f1 16022
c62aec78 16023 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 16024
048addec 160252001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16026
048addec 16027 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 16028
048addec 160292001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16030
048addec
JD
16031 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16032 Niemitalo <kon@iki.fi>.
60a653f1 16033
048addec 160342001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 16035
048addec 16036 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 16037
048addec
JD
16038 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16039 (Fx_show_tip): Block input during frame creation.
16040 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 16041
048addec 160422001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 16043
048addec
JD
16044 * lread.c (Fload): Detect recursive load error for more than 3
16045 nestings of the same file.
16046 (Vrecursive_load_depth_limit): Variable deleted.
16047 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 16048
048addec 160492001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 16050
048addec
JD
16051 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16052 mouse position if either left or top is not specified.
60a653f1 16053
048addec
JD
16054 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16055 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16056 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16057 (my_create_tip_window): Assign tip_window.
16058 (x_create_tip_frame): Use same defaults as X.
16059 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 16060 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 16061
048addec
JD
16062 * w32term.c (x_after_update_window_line): Doc fix.
16063 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16064 frames.
16065 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 16066
048addec
JD
16067 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16068 for all Windowed systems.
60a653f1 16069
048addec 160702001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16071
048addec
JD
16072 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16073 realized, use the initial screen colors to clear the screen.
60a653f1 16074
048addec 160752001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16076
048addec
JD
16077 * textprop.c (Fset_text_properties): Remove unused variables
16078 `unchanged', `prev_changed', `s' and `len'.
60a653f1 16079
048addec
JD
16080 * search.c (Freplace_match): Remove unused variable `inslen'.
16081
16082 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16083
160842001-11-22 Jason Rumney <jasonr@gnu.org>
16085
16086 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16087 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16088 (my_create_tip_window): New function.
16089 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16090 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16091
160922001-11-20 Jason Rumney <jasonr@gnu.org>
16093
16094 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16095 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16096
16097 * w32fns.c (Vw32_system_coding_system): Remove.
16098 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16099
161002001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16101
16102 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16103 after build_annotations.
16104
16105 * syntax.c (describe_syntax): Add dummy arg.
16106 (describe_syntax_1): Update call to describe_vector.
16107
16108 * category.c (describe_category): Add dummy arg.
16109 (describe_category_1): Update call to describe_vector.
16110
16111 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16112 (describe_command, describe_translation): Add dummy second param.
16113 (describe_map): Call elt_describer with two arguments.
16114 (describe_vector_princ): Add `fun' parameter.
16115 Call it instead of the hardcoded `princ'.
16116 (describe_vector): Add arg `args'.
16117 Pass it as a new second argument to elt_describer.
60a653f1 16118
048addec 16119 * keymap.h (describe_vector): Update prototype.
60a653f1 16120
048addec
JD
16121 * frame.c: Don't include keymap.h any more.
16122 (keys_of_frame): Remove.
60a653f1 16123
048addec 16124 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 16125
048addec 16126 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 16127
048addec 161282001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 16129
048addec
JD
16130 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16131 if defined, 0 otherwise.
16132 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16133 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 16134
048addec 161352001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 16136
048addec 16137 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 16138
048addec 161392001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 16140
048addec
JD
16141 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16142 (x_draw_bar_cursor): If the background color of the glyph under
16143 the cursor equals the frame's cursor color, use the glyph's
16144 foreground color for drawing the bar cursor.
16145 (x_after_update_window_line): Clear internal border in different
16146 circumstances.
16147 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16148 (w32_draw_relief_rect): Correct relief by 1 pixel.
16149 (x_set_glyph_string_background_width):
16150 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16151 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16152 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16153 if cursor_in_non_selected_windows is false.
16154 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16155 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16156 Notice if cursor gets overwritten.
16157 (notice_overwritten_cursor): Renamed from
16158 note_overwritten_text_cursor. Rewritten to take glyph widths
16159 into account, and to take X positions as parameters.
16160 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16161 around call to x_draw_glyphs.
16162 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16163 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16164 color to use for image glyph reliefs.
16165 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16166 (glyph_rect): Remove unused variable `area'.
60a653f1 16167
048addec
JD
16168 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16169 some items.
16170 (x_set_internal_border_width): Set frame garbaged when window
16171 doesn't exist yet.
16172 (Fx_create_frame): Accept zero tool_bar_button_relief.
16173 (x_clear_image_1, four_corners_best, image_background)
16174 (image_background_transparent): New functions.
16175 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16176 (gs_format): Add `:background' entry.
16177 (lookup_image): Set IMG's background color if specified.
16178 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16179 when appropriate.
16180 (x_clear_image_1): Reset `background_valid' and
16181 `background_transparent_valid' fields.
16182 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16183 calculating it here. Set IMG's background_transparent field.
16184 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16185 (enum png_keyword_index): Add PNG_BACKGROUND.
16186 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16187 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16188 (enum gif_keyword_index): Add GIF_BACKGROUND.
16189 (enum gs_keyword_index): Add GS_BACKGROUND.
16190 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16191 Pre-calculate image background color where necessary.
16192 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16193 Use display info's n_cbits entry for screen depth.
16194 (Fx_show_tip): Remove unused variables `buffer', `top',
16195 `left', `max_width' and `max_height'.
60a653f1 16196
048addec 16197 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16198
048addec 161992001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16200
048addec 16201 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16202
048addec 162032001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16204
048addec 16205 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16206
048addec 162072001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16208
048addec
JD
16209 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16210 (message_dolog_marker3): New static variables hold three markers.
16211 (syms_of_xdisp): Initialize and staticpro them.
16212 (message_dolog): Use message_dolog_marker1..3 instead of
16213 allocating markers each time. Unchain them when done.
60a653f1 16214
048addec 162152001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16216
048addec 16217 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16218
048addec 162192001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16220
048addec 16221 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16222
048addec 162232001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16224
048addec 16225 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16226
048addec 162272001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16228
048addec 16229 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16230
048addec 162312001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16232
048addec
JD
16233 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16234 with invalid position.
60a653f1 16235
048addec 162362001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16237
048addec 16238 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16239
048addec
JD
16240 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16241 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16242 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16243
048addec 16244 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16245
048addec 162462001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16247
048addec
JD
16248 * fileio.c (build_annotations): Split off the tail.
16249 (build_annotations_2): New fun. Extracted from build_annotations.
16250 (Fwrite_region): Split the call to build_annotations into two
16251 calls to build_annotations and build_annotations_2.
077907d4 16252
048addec 162532001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16254
048addec
JD
16255 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16256 clear_waiting_for_input with argument.
1756e2fb 16257
048addec 16258 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16259
048addec 16260 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16261
048addec 16262 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16263
048addec 16264 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16265
048addec 162662001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16267
048addec
JD
16268 * fileio.c (choose_write_coding_system): New fun, extracted
16269 from Fwrite_region.
16270 (Fwrite_region): Use it.
fa336b91 16271
048addec
JD
16272 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16273 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16274 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16275
048addec 162762001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16277
048addec 16278 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16279
048addec
JD
16280 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16281 Required for ISC 4.1.
fa336b91 16282
048addec 162832001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16284
048addec
JD
16285 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16286 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16287
048addec 162882001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16289
048addec
JD
16290 The following changes are made to clean up the various internal
16291 references to the fringes to actually use the term `fringe' for
16292 them. Previously, they were called `flags areas', `bitmap areas',
16293 `left/right side of windows', or implicitly as `flags' or
16294 `bitmaps':
fa336b91 16295
048addec 16296 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16297 Comments fixed. Use renamed symbols.
06e8f738 16298
f63fd14e 16299 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16300
048addec
JD
16301 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16302 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16303 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16304
048addec 16305 * msdos.c: Comment fix.
9ce647f4 16306
048addec 16307 * w32fns.c: Use renamed symbols.
9b784ab8 16308
f63fd14e 16309 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16310 (fringe_bitmap_type): Renamed from bitmap_type.
16311 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16312 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16313 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16314
f63fd14e 16315 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16316 (fringes_extra): Renamed from flags_areas_extra.
16317 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16318 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16319 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16320 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16321 (FRAME_X_LEFT_FRINGE_WIDTH):
16322 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16323 (FRAME_X_RIGHT_FRINGE_WIDTH):
16324 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16325
048addec 16326 * widget.c: Use renamed symbols.
9f7e52b4 16327
f63fd14e 16328 * window.c: Comment fixes. Use renamed symbols.
048addec 16329 (coordinates-in-window-p): Doc fix.
fa336b91 16330
f63fd14e 16331 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16332
048addec 16333 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16334
048addec 16335 * xfns.c: Use renamed symbols.
89512fcd 16336
f63fd14e 16337 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16338 (fringe_bitmap_type): Renamed from bitmap_type.
16339 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16340 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16341 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16342
f63fd14e 16343 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16344 (fringes_extra): Renamed from flags_areas_extra.
16345 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16346 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16347 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16348 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16349 (FRAME_X_LEFT_FRINGE_WIDTH):
16350 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16351 (FRAME_X_RIGHT_FRINGE_WIDTH):
16352 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16353
163542001-11-15 Jason Rumney <jasonr@gnu.org>
16355
16356 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16357 work for most menu items. From David Ponce
16358 <david.ponce@wanadoo.fr>.
16359
163602001-11-15 Gerd Moellmann <gerd@gnu.org>
16361
16362 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16363 Some x_set_* function expect to be called even if old and new
16364 value are equal.
16365
16366 * xdisp.c (build_desired_tool_bar_string): Accept zero
16367 tool_bar_button_relief.
16368
16369 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16370
16371 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16372
16373 * xterm.c (x_draw_bar_cursor): If the background color of the
16374 glyph under the cursor equals the frame's cursor color, use
16375 the glyph's foreground color for drawing the bar cursor.
16376
16377 * dispnew.c (direct_output_forward_char): Fix character/byte
16378 position comparison.
7d18891d 16379
048addec 163802001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16381
048addec
JD
16382 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16383 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16384 Update arguments to find_field.
16385 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16386 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16387 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16388 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16389
048addec 163902001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16391
048addec 16392 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16393
048addec
JD
16394 * dispextern.h (image_background, image_background_transparent):
16395 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16396
048addec 163972001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16398
048addec 16399 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16400
048addec 16401 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16402
048addec 16403 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16404
048addec 16405 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16406
048addec 16407 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16408
048addec 16409 * eval.c (syms_of_eval): Doc fix.
7d18891d 16410
048addec 16411 * coding.c (syms_of_coding): Doc fix.
7d18891d 16412
048addec 16413 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16414
048addec 16415 * dispnew.c (syms_of_display): Doc fix.
9474c847 16416
048addec 16417 * category.c (Fget_unused_category): Doc fix.
9474c847 16418
048addec 16419 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16420
048addec 164212001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16422
048addec 16423 * print.c (prin1, print): Doc fix.
e3059a5d 16424
048addec 164252001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16426
048addec
JD
16427 * fontset.h: Remove declarations of variables
16428 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16429
048addec
JD
16430 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16431 `Vclip_large_size_font'.
eae936e2 16432
048addec 164332001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16434
048addec 16435 * w32fns.c: Doc fix.
ddb67bdc 16436
048addec 164372001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16438
048addec 16439 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16440
048addec 16441 * fns.c: Doc fix.
6e1b91d7 16442
048addec 16443 * emacs.c: Doc fix.
1c1d3d69 16444
048addec 16445 * coding.c: Doc fix.
1c1d3d69 16446
048addec
JD
16447 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16448 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16449 `new style' [w/`doc:' keyword].
b6f4c7ba 16450
048addec 164512001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16452
048addec
JD
16453 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16454 LeaveNotify events. Only FocusIn and FocusOut do that now.
16455 (x_display_and_set_cursor): Do display hollow cursors in active
16456 minibuffer windows when they are not selected.
b6f4c7ba 16457
048addec 164582001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16459
048addec 16460 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16461 * w32term.c: Change doc-string comments to `new style'
16462 [w/`doc:' keyword]. Doc fixes.
a89f435d 16463
048addec
JD
16464 * w32fns.c: Don't define max.
16465 (Fx_open_connection): Only execute once.
a4cd0cd7 16466
048addec 164672001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16468
048addec
JD
16469 * ccl.c: Change macros to use do-while block instead of if-else.
16470 Use braces to follow GNU Coding Standards.
eafb659a 16471
048addec 164722001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16473
048addec 16474 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16475
048addec 16476 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16477
048addec
JD
16478 * insdel.c (replace_range): Use adjust_markers_for_replace
16479 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16480
78819ebb 16481 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16482
048addec
JD
16483 * textprop.c (set_text_properties_1): New subroutine
16484 broken out of set_text_properties.
16485 (set_text_properties): Use set_text_properties_1.
91823618 16486
048addec
JD
16487 * intervals.c (graft_intervals_into_buffer):
16488 Use set_text_properties_1 to clear out properties.
91823618 16489
048addec
JD
16490 * search.c (Freplace_match): Use replace_range to insert
16491 and delete. Don't request property inheritance from
16492 surrounding text.
86928dfb 16493
048addec 164942001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16495
048addec 16496 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16497 vertical fonts. Allow them if face name is explicitly specified.
048addec 16498 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16499
048addec 165002001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16501
048addec
JD
16502 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16503 instead of malloc/free.
a78e0303 16504
048addec 165052001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16506
048addec
JD
16507 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16508 Coding Standards.
16509 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16510
048addec 16511 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16512
048addec 16513 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16514
048addec
JD
16515 * coding.c (encode_coding): Use precomputed value of `src'.
16516 (encode_coding): Remove unused variable `src_end'.
16517 (code_convert_region): Remove unused variables `count'.
830ddd77 16518
048addec 165192001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16520
048addec
JD
16521 * w32term.c (x_display_and_set_cursor): Do not move system caret
16522 if cursor_glyph is NULL.
55c6d645 16523
048addec 165242001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16525
048addec 16526 * keymap.c (access_keymap): Fix compilation error.
5de38842 16527
048addec 165282001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16529
048addec 16530 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16531
048addec 165322001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16533
048addec
JD
16534 * intervals.c (graft_intervals_into_buffer):
16535 Remove #ifdef'd-out code.
16536 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16537
048addec
JD
16538 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16539 code (eval-current-buffer).
16540 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16541
048addec 165422001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16543
048addec 16544 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16545
048addec 165462001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16547
048addec 16548 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16549
048addec
JD
16550 * keyboard.c (make_lispy_event): Check integerness and fix
16551 Lisp_Object/int mixup.
17893c65 16552
048addec 165532001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16554
048addec 16555 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16556
048addec
JD
16557 * fontset.c (fontset_font_pattern): Remove unused variable
16558 `family_registry'.
d5360cc7 16559
048addec 16560 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16561
048addec 165622001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16563
048addec 16564 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16565
048addec
JD
16566 * buffer.c (Fkill_buffer): Don't delete auto save file
16567 if buffer is modified.
d9d54213 16568
048addec 165692001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16570
048addec
JD
16571 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16572 CHECK_NUMBER_CDR.
b116830b 16573
048addec 165742001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16575
048addec 16576 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16577
048addec 165782001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16579
048addec 16580 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16581
048addec 165822001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16583
048addec 16584 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16585
048addec 165862001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16587
048addec
JD
16588 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16589 the program image directly.
982f6c7e 16590
048addec 165912001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16592
048addec 16593 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16594
048addec 165952001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16596
048addec
JD
16597 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16598 and CHECK_BUFFER.
d31053f9 16599
048addec
JD
16600 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16601 (record_char): Likewise.
d31053f9 16602
048addec
JD
16603 * keyboard.c (make_lispy_event): Don't insist a drag event must
16604 move to a different buffer position. Instead, check for moving at
16605 least double_click_fuzz.
982f6c7e 16606
048addec 16607 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16608
048addec 16609 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16610
048addec
JD
16611 * indent.c (current_column_1, Fmove_to_column): Separate the code
16612 for display-table glyphs from the code for buffer text, to fix
16613 bugs in the former.
830047fd 16614
048addec 166152001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16616
048addec
JD
16617 * buffer.c (Fbuffer_local_value): New function.
16618 (syms_of_buffer): Defsubr it.
2df5238c 16619
048addec
JD
16620 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16621 value of `cursor-in-non-selected-windows'.
4e397688 16622
048addec
JD
16623 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16624 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16625 (syms_of_xdisp): Initialize it.
48b0f3ae 16626
048addec 166272001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16628
048addec 16629 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16630
048addec
JD
16631 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16632 keyword].
3ecaf7e5 16633
048addec
JD
16634 * eval.c (top_level_value, top_level_set): Remove commented and
16635 #ifdef'd-out code.
16636 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16637
048addec 166382001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16639
048addec 16640 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16641
048addec 16642 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16643
048addec 16644 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16645
048addec 166462001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16647
048addec
JD
16648 * lisp.h (CHECK_STRING_CAR): New macro.
16649 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16650 treating XCAR and XCDR as lvalues.
16651 (openp): Use CHECK_STRING_CAR.
16652 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16653
048addec 166542001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16655
048addec
JD
16656 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16657 (SIGMASKTYPE): Define.
1b1acc13 16658
048addec 16659 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16660
048addec 166612001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16662
048addec
JD
16663 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16664 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16665 Fix typos in comments.
6cb16f95 16666
048addec
JD
16667 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16668 and #ifdef'd-out code.
16669 Fix and reindent comments.
6cb16f95 16670
048addec 16671 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16672
048addec
JD
16673 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16674 argument `i' in macros.
6cb16f95 16675
048addec
JD
16676 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16677 `i' in macros.
7e9d3c2f 16678
048addec
JD
16679 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16680 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16681 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16682 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16683 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16684 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16685 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16686 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16687 in macros.
7e9d3c2f 16688
048addec
JD
16689 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16690 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16691 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16692 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16693 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16694 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16695 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16696 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16697 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16698 (remove unused second argument).
7e9d3c2f 16699
048addec 167002001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16701
048addec
JD
16702 * syntax.c (describe_syntax): New wrapper.
16703 (Finternal_describe_syntax_value): Rename from describe_syntax.
16704 Don't insert space at front and \n at the end.
16705 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16706
048addec
JD
16707 * regex.c (re_wctype): Try to fix some warnings.
16708 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16709
048addec 167102001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16711
048addec 16712 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16713
048addec 167142001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16715
048addec 16716 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16717
048addec 16718 * data.c (Fsetq_default): Ditto.
c22e59e1 16719
048addec 16720 * callint.c (Finteractive): Ditto.
9271ed2c 16721
048addec 167222001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16723
048addec
JD
16724 * macros.c: Don't include keymap.h any more.
16725
167262001-11-01 Richard M. Stallman <rms@gnu.org>
16727
16728 * data.c (Fmake_local_variable): Doc fix.
16729
16730 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16731 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16732
048addec 16733 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16734 bindings along with or instead of the buffer local map.
16735 Make the overriding maps override what they should.
16736
f00691a3 167372001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16738
16739 * window.c (grow_mini_window): Fix typo in comment.
16740
27188d11
GM
167412001-11-01 Gerd Moellmann <gerd@gnu.org>
16742
7b49b9d2
GM
16743 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16744 (XTset_vertical_scroll_bar): Likewise.
16745
43f7c3ea
GM
16746 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16747 instead of IMAGE_BACKGROUND.
c22e59e1 16748
b350c2e5
GM
16749 * xfns.c (four_corners_best): Reindent.
16750
c22e59e1 16751 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16752 Handle :box so that it is possible to specify sexprs.
16753
bf00d461
EZ
167542001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16755
16756 * s/hpux11.h: New file.
16757
f00691a3 167582001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16759
2b209b97
PJ
16760 * emacs.c (USAGE1): Show command line option --no-window-system
16761 instead of --no-windows in usage.
16762 (standard_args): Rename --no-windows to --no-window-system.
16763 (bug_reporting_address): Follow Emacs coding conventions.
16764
9dbc9081
PJ
16765 * eval.c (Fcommandp): Doc fix.
16766 Change doc-string comments to `new style' [w/`doc:' keyword].
16767
4e10df59
PJ
16768 * frame.c (Fframe_live_p): Doc fix.
16769
16770 * buffer.c (selective-display-ellipses): Doc fix.
16771
dd387b25
GM
167722001-10-31 Gerd Moellmann <gerd@gnu.org>
16773
fe957e65
GM
16774 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16775
dd387b25
GM
16776 * xfaces.c (realize_x_face): If C is not a single-byte character,
16777 set the face's colors_copied_bitwise_p instead of the defaulted_p
16778 members which have a different meaning.
16779 (free_face_colors): Do nothing for a face whose colors have been
16780 copied bitwise.
16781
c22e59e1 16782 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16783
f00691a3 167842001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16785
687784e8
PJ
16786 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16787 [w/`doc:' keyword].
2e1280f8 16788
b9d9a9b9
GM
167892001-10-31 Gerd Moellmann <gerd@gnu.org>
16790
16791 * fns.c (require_unwind): Return Lisp_Object.
16792
f00691a3 167932001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16794
fa1361cb
PJ
16795 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16796 (last-input-char): Revert doc-string to be the same as the
16797 doc-string of `last-input-event'.
16798
6c465a15 16799 * xdisp.c: Fix typos in comments.
48400103 16800
eafa3196
GM
168012001-10-31 Gerd Moellmann <gerd@gnu.org>
16802
16803 * window.c (grow_mini_window): Handle case that the root
16804 window is already smaller than the nominal mininum height.
16805
747d3f2a
SM
168062001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16807
bf9bb76f
SM
16808 * emacs.c (main): Don't call keys_of_macros any more.
16809
16810 * lisp.h (keys_of_macros): Remove.
16811
16812 * macros.c (keys_of_macros): Remove.
16813
747d3f2a
SM
16814 * xfaces.c (Fface_attribute_relative_p): Declare args.
16815
5e905a57
JR
168162001-10-30 Jason Rumney <jasonr@gnu.org>
16817
16818 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16819 (enum_font_cb2): Ignore fonts with vertical orientation.
16820
3a426197
RS
168212001-10-30 Richard M. Stallman <rms@gnu.org>
16822
16823 * keyboard.c (Finput_pending_p): Doc fix.
16824
a742d646
GM
168252001-10-30 Gerd Moellmann <gerd@gnu.org>
16826
259cf6bc
GM
16827 * xterm.c (x_after_update_window_line): Don't run the code
16828 clearing in borders for rows whose visible height is 0.
16829
3f99f948
GM
16830 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16831 resized_p flag is set. If not set, use the much less flickering
16832 method previously used.
16833
16834 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16835
16836 * frame.h (struct frame) <resized_p>: New member.
16837
b4a3be43
GM
16838 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16839 as large as the number of bytes to convert.
747d3f2a 16840
a742d646
GM
16841 * lread.c (to_multibyte): New function.
16842 (read1): Use it.
16843
cacbb9e9
EZ
168442001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16845
16846 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16847
99cb6b2f
GM
168482001-10-30 Gerd Moellmann <gerd@gnu.org>
16849
327f42ee 16850 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16851 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16852 if the row's fill_line_p is set and drawing the last glyph with
16853 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16854
99cb6b2f
GM
16855 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16856
8e8223e2
SM
168572001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16858
16859 * xmenu.c: Include coding.h and charset.h.
16860 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16861 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16862 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16863 Explicitly set wv->help. Use `TRUE' rather than `True'.
16864 (menu_help_callback): Use empty_string.
16865
16866 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16867 (Fx_popup_dialog): Explicitly init f.
16868 (w32_menu_display_help): Use empty_string.
16869
4d083a8f
RS
168702001-10-29 Richard M. Stallman <rms@gnu.org>
16871
b2304472
RS
16872 * fns.c (Frequire): Detect recursive try to require the same
16873 feature 3 or more levels deep, and get error.
16874 (require_unwind): New subroutine.
16875 (require_nesting_list): New variable.
16876 (syms_of_fns): Init and staticpro it.
16877
4d083a8f
RS
16878 * print.c (print_object): Clarify indication of insertion type.
16879
2fe41216
EZ
168802001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16881
90480000
EZ
16882 * coding.c (syms_of_coding): Document that locale-coding-system is
16883 used for decoding input on X.
16884
2fe41216
EZ
16885 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16886
f00691a3 168872001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16888
16889 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16890 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16891
60ebcfe8
GM
168922001-10-29 Gerd Moellmann <gerd@gnu.org>
16893
9a7bdceb
GM
16894 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16895 use NO_CURSOR if cursor_in_non_selected_windows is false.
16896
3f08fcd2
GM
16897 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16898 the slant attribute if FRAME is t.
16899
0ccfdad2
GM
16900 * xfns.c (x_set_internal_border_width): Set frame garbaged
16901 when X window doesn't exist yet.
16902
ef253080
GM
16903 * xterm.c (x_after_update_window_line): Clear internal border
16904 in different circumstances.
b116830b 16905
60ebcfe8
GM
16906 * xterm.c (XTread_socket) <KeyPress>: Don't use
16907 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16908 <handa@etl.go.jp>.
16909
73d25f9c
EZ
169102001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16911
16912 * m/ibms390.h: New file. From Adam Thornton
16913 <athornton@sinenomine.net>.
16914
cac1daf0
GM
169152001-10-28 Gerd Moellmann <gerd@gnu.org>
16916
053b3256 16917 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16918
cac1daf0
GM
16919 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16920 a loop counter.
16921
f00691a3 169222001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16923
f9711de4 16924 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16925
4707d2d0
PJ
16926 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16927 keyword].
16928 Fix typos in comments.
b116830b 16929
d883731c
PJ
16930 * emacs.c (bug_reporting_address): New function.
16931 Use it when displaying usage message.
16932
04012254
PJ
16933 * minibuf.c (read_minibuf): Remove unused external declaration of
16934 variable `Qread_only'.
16935
13b1a09c
PJ
16936 * keymap.c (access_keymap): Remove unused variable `charset'.
16937
5bbf4378
MB
169382001-10-28 Miles Bader <miles@gnu.org>
16939
16940 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16941 Remove #ifdef'd-out code.
16942 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16943 (syms_of_xfaces): Initialize them.
16944
1ce1e4ee
JR
169452001-10-27 Jason Rumney <jasonr@gnu.org>
16946
16947 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16948 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16949 position using the system caret.
16950
16951 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16952 (w32_system_caret_height, w32_system_caret_x)
16953 (w32_system_caret_y): New variables for tracking system caret.
16954 (w32_initialize): Initialize them.
c2d53558 16955 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16956
c2d53558
SM
16957 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16958 New messages types.
1ce1e4ee
JR
16959
16960 * w32term.c (note_mouse_highlight): Clear old help_echo.
16961
f00691a3 169622001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16963
bb4600a4
PJ
16964 * xterm.c: Fix typo in a comment.
16965
7db35a48
PJ
16966 * emacs.c: Fix typos in comments.
16967 Remove unnecessary spaces.
16968 Change doc-string comments to `new style' [w/`doc:' keyword].
16969 (USAGE2): Fix typos in usage string.
16970
a7248e4f
PJ
16971 * xterm.c: Fix typo in a comment.
16972
4e30ce42
PJ
16973 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16974 emacs.c.
16975
62725a92
GM
169762001-10-27 Gerd Moellmann <gerd@gnu.org>
16977
798dbe1f 16978 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16979 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16980 farther backward when target_y was not reached.
16981
62725a92
GM
16982 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16983 Display errno only if non-zero.
16984 (sound_warning): New function.
16985 (vox_configure): Don't treat failing to set sample rate as error.
16986 (various places): Improve error messages.
16987
d4e34d24
EZ
169882001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16989
944e6f60
EZ
16990 * fileio.c (Faccess_file): Run the argument filename through
16991 Fexpand_file_name, before using it.
16992
d4e34d24
EZ
16993 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16994 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16995
38d2af0c
GM
169962001-10-26 Gerd Moellmann <gerd@gnu.org>
16997
da80a8d5
GM
16998 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16999
38d2af0c
GM
17000 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17001 Fix clearing in the case of scroll bars on the right.
c2d53558 17002
45de4a6f 170032001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
17004
17005 * w32gui.h (XImage): Add a dummy typedef.
17006
fbd5ceb2
GM
170072001-10-26 Gerd Moellmann <gerd@gnu.org>
17008
c2d53558 17009 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 17010
b23236fb
EZ
170112001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17012
17013 * frame.c (Fframe_parameter): Fix last change.
17014
5d991fc4
EZ
17015 * fileio.c: Revert last change (which removed old commented-out
17016 version of expand-file-name). Add a comment that explains why
17017 this old version should not be removed.
17018
879eadc3
GM
170192001-10-25 Gerd Moellmann <gerd@gnu.org>
17020
75700ff2
GM
17021 * frame.c (Fframe_parameter): Fix a bug whereby some
17022 ``artificial'' frame parameters, like `minibuffer' were not
17023 obtained by calling Fframe_parameters.
17024
dfe92a6a
GM
17025 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17026 cursor differently.
17027
879eadc3
GM
17028 * xdisp.c (move_it_vertically_backward): Compute line height
17029 differently. Add heuristic to try to be more compatible to 20.x.
17030
e1010ebe
SM
170312001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17032
d73a471b
SM
17033 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17034
d6da5a06
GM
17035 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17036 boolean.
e1010ebe 17037
f66bd220
MB
170382001-10-25 Miles Bader <miles@gnu.org>
17039
17040 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17041 BG is a pointer to a structure, not a structure.
17042 (gif_format, png_format): Add missing commas.
17043
d436d538
RS
170442001-10-24 Richard M. Stallman <rms@gnu.org>
17045
17046 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 17047 (syms_of_xfaces): Defsubr it.
d436d538 17048
f00691a3 170492001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
17050
17051 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17052 variable `area'.
17053
f00691a3 170542001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 17055
c2d53558 17056 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 17057
e2a57b34
MB
170582001-10-25 Miles Bader <miles@gnu.org>
17059
17060 * dispextern.h (struct image): Add `background',
17061 `background_valid', and `background_transparent' fields.
17062 (image_background, image_background_transparent): New declarations.
17063 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17064 * xfns.c (image_background, image_background_transparent)
17065 (four_corners_best): New functions.
c2d53558 17066 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
17067 (gs_format): Add `:background' entry.
17068 (lookup_image): Set IMG's background color if specified.
17069 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17070 when appropriate.
17071 (x_clear_image_1): Reset `background_valid' and
17072 `background_transparent_valid' fields.
17073 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17074 calculating it here. Set IMG's background_transparent field.
17075 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17076 (enum png_keyword_index): Add PNG_BACKGROUND.
17077 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17078 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17079 (enum gif_keyword_index): Add GIF_BACKGROUND.
17080 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 17081 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
17082 Pre-calculate image background color where necessary.
17083 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17084 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17085 color to use for image glyph reliefs.
17086
b547b6e8
GM
170872001-10-24 Gerd Moellmann <gerd@gnu.org>
17088
d9e3b8c6
GM
17089 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17090 in full-width rows.
c2d53558 17091
b547b6e8
GM
17092 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17093 Fix clearing of area not covered by scroll bar.
17094
f00691a3 170952001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
17096
17097 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17098 and `real_start'.
c2d53558 17099 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
17100 (glyph_rect): Remove unused variable `area'.
17101
76cb5e06
GM
171022001-10-24 Gerd Moellmann <gerd@gnu.org>
17103
bdbdebff 17104 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
17105
17106 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17107 (row_containing_pos): Take additional argument DY.
17108 Treat rows ending in middle of char differently.
62e33982
GM
17109 (display_line): Handle tabs on window systems differently.
17110
17111 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17112 with additional argument.
17113
17114 * dispextern.h (row_containing_pos): Adjust prototype.
17115
76cb5e06
GM
17116 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17117 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17118 (try_window_id, try_window_reusing_current_matrix)
17119 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 17120 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 17121
f00691a3 171222001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 17123
c9e60620
PJ
17124 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17125 gnuemacs).
17126 (HAVE_BOXES): Fix typo in comment.
17127 (push_menu_pane): Fix typo in comment.
17128
3b552d56
PJ
17129 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17130 of `Qwhen'.
17131 (single_display_prop_string_p): Remove unused local declarations
17132 of `Qwhen' and `Qmargin'.
17133 (string_buffer_position): Remove unused variable `around'.
17134 (store_frame_title): Remove unused variable `width'.
17135
15c565ac
PJ
17136 * window.c: Don't define max.
17137 (coordinates_in_window): Remove unused variable `uy'.
17138
a8818eb9
PJ
17139 * widget.c: Don't define max.
17140
996fee11
PJ
17141 * process.c: Don't define max.
17142 (create_process): Remove unused variable `buffer'.
17143
496e1a5b
GM
171442001-10-23 Gerd Moellmann <gerd@gnu.org>
17145
c2d53558 17146 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 17147
5905ae8b
EZ
171482001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17149
17150 * xfaces.c (Finternal_set_lisp_face_attribute)
17151 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17152 frame is on a windowed display.
17153
24db49fb
GM
171542001-10-23 Gerd Moellmann <gerd@gnu.org>
17155
c2d53558
SM
17156 * dispnew.c (sync_window_with_frame_matrix_rows):
17157 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
17158 of marginal areas.
17159
c2d53558 17160 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17161
f0487f05
EZ
171622001-10-23 Andreas Schwab <schwab@suse.de>
17163
17164 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17165 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17166
f0a48a01
GM
171672001-10-23 Gerd Moellmann <gerd@gnu.org>
17168
c2d53558 17169 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17170 REAL_END. Notice if cursor gets overwritten.
17171 (notice_overwritten_cursor): Take X positions as parameters.
17172 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17173 around call to x_draw_glyphs.
17174
f00691a3 171752001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17176
fc11dff0
PJ
17177 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17178 instead of C) and usage.
a50a10a0 17179
fc11dff0
PJ
17180 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17181 of C) and usage.
a50a10a0
PJ
17182
17183 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17184 `left', `max_width' and `max_height'.
17185
8738febd
GM
171862001-10-23 Gerd Moellmann <gerd@gnu.org>
17187
17188 * xdisp.c (display_line): For a tab continued to the next line,
17189 set row's ends_in_middle_of_char_p.
17190
653c329b
GM
171912001-10-22 Gerd Moellmann <gerd@gnu.org>
17192
17193 * xdisp.c (display_line): Fix computation of continuation lines
17194 width for TABs.
17195
f00691a3 171962001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17197
7ba51063
PJ
17198 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17199 `Qlaplace'.
17200
f958c5ac
PJ
17201 * fileio.c: Remove unused code.
17202
eb360291
MB
172032001-10-22 Miles Bader <miles@gnu.org>
17204
17205 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17206 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17207 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17208
98515cf0
JR
172092001-10-21 Jason Rumney <jasonr@gnu.org>
17210
17211 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17212
93026d88
EZ
172132001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17214
17215 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17216 (Finsert_string): Avoid the multi-line string literals warning.
17217
c9a95b79
MB
172182001-10-22 Miles Bader <miles@gnu.org>
17219
17220 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17221 (Fdocumentation): Don't use it.
17222 (syms_of_doc): Don't initialize it.
17223
17224 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17225 * print.c (Fwith_output_to_temp_buffer): Likewise.
17226 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17227 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17228 (Fsave_restriction): Likewise.
c2d53558
SM
17229 * eval.c (Frun_hooks, Frun_hook_with_args)
17230 (Frun_hook_with_args_until_failure)
17231 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17232 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17233 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17234 (Funwind_protect, Fcondition_case): Likewise.
17235 * coding.c (Ffind_operation_coding_system): Likewise.
17236 * keyboard.c (Ftrack_mouse): Likewise.
17237
a3b10252
MB
172382001-10-21 Miles Bader <miles@gnu.org>
17239
c2d53558 17240 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17241 (Fmake_hash_table): Add usage: string to doc string.
17242 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17243 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17244 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17245 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17246 (Fml_prefix_argument_loop): Likewise.
17247
f00691a3 172482001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17249
c2d53558 17250 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17251
c6f73eec
PJ
17252 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17253 style' [w/`doc:' keyword].
17254
17255 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17256 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17257 comments to `new style' [w/`doc:' keyword].
17258
3cf3436e
JR
172592001-10-21 Jason Rumney <jasonr@gnu.org>
17260
17261 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17262
c169b8f1
JR
17263 * w32term.c (remember_mouse_glyph): New function.
17264 (w32_mouse_position): Use it.
17265 (note_mouse_movement): If the mouse moved off the glyph, remember
17266 its new position.
c2d53558 17267
4fdd691b
JR
17268 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17269 (w32_display_info): Add mouse_face_overlay.
17270
c169b8f1
JR
17271 * w32term.c (notice_overwritten_cursor): Renamed from
17272 note_overwritten_text_cursor. Rewritten to take glyph widths into
17273 account.
17274 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17275 (fast_find_string_pos): New function.
17276 (fast_find_position): Return the correct vpos. Add parameter
17277 STOP. In the final row, stop before glyphs having STOP as object.
17278 Don't consider glyphs that are not from a buffer.
17279 (fast_find_position) [0]: Add a presumably more correct version
17280 for after 21.1.
17281 (expose_window_tree, expose_frame): Don't compute intersections here.
17282 (expose_window): Do it here instead.
17283 (expose_window_tree, expose_window, expose_line): Return 1 when
17284 overwriting mouse-face.
17285 (expose_window): If W is the window currently being updated, mark
17286 the frame garbaged.
17287 (expose_frame): If mouse-face was overwritten, redo it.
17288 (x_use_underline_position_properties): New variable.
17289 (syms_of_xterm): DEFVAR_BOOL it.
17290 (x_draw_glyph_string): Add comment to use it in future.
17291 (x_draw_glyph_string): Restore clipping after drawing box.
17292 Fix a computation of the underline position.
17293 (w32_get_glyph_string_clip_rect): Minor cleanup.
17294 (x_fill_stretch_glyph_string): Remove an assertion.
17295 (x_produce_glyphs): Don't convert multibyte characters
17296 to unibyte characters in unibyte buffers.
17297 (cursor_in_mouse_face_p): New function.
17298 (x_draw_stretch_glyph_string): Use it to choose a different GC
17299 when drawing a cursor within highlighted text. Don't draw
17300 background again if it has already been drawn.
17301 (x_draw_glyph_string_box): Don't draw a full-width
17302 box just because the glyph row's full_width_p flag is set.
17303 (x_draw_glyphs): Fix computation of rightmost x for
17304 full-width rows.
17305 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17306 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17307 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17308 (x_update_window_end): Handle overwritten mouse face
17309 also for tool bar windows.
17310 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17311 DRAW is DRAW_IMAGE_RAISED.
17312 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17313 actually redrawn. Make the function static.
17314 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17315 optimize away highlighting if we pass over that same overlay again.
17316 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17317 to detect a case where we have to highlight a different region
17318 despite not having left the currently highlighted region.
17319 Set mouse_face_overlay in the x_display_info. Avoid changing the
17320 mouse pointer shape when show_mouse_face has already done it, or
17321 there is no need. Handle mouse-face and help-echo in strings.
17322 (glyph_rect): New function.
17323 (w32_mouse_position): Use it to raise the threshold for mouse
17324 movement event generation.
17325 (w32_initialize_display_info): Initialize the x_display_info's
17326 mouse_face_overlay.
17327 (w32_set_vertical_scroll_bar): Don't clear a zero height
17328 or width area.
17329 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17330 a widget to zero height.
17331
3cf3436e 17332 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17333 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17334 equivalents in menu_items.
17335 (w32_menu_show): Don't overwrite an item's name with its key
17336 description in case the description is a multibyte string.
17337 (single_submenu): Some cleanup.
17338
17339 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17340 (postprocess_image): New function.
17341 (lookup_image): Call it for all image types except PostScript.
17342 (x_kill_gs_process): Call postprocess_image.
17343 (tiff_error_handler, tiff_warning_handler): New functions.
17344 (tiff_load): Install them as handlers.
17345 (x_kill_gs_process): Recognize if someone has cleared the image
17346 cache under us.
17347 (valid_image_p): Protect better against invalid image
17348 specifications. Previous code could signal an error.
17349 (Fx_hide_tip, Fshow_tip): Doc fix.
17350 (Fv_max_tooltip_size): New variable.
17351 (syns_of_xfns): DEFVAR_LISP it.
17352 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17353 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17354 window_width. Use a maximum tooltip size specified by
17355 Vx_max_tooltip_size, if that has valid contents.
17356 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17357 Make sure the tooltip is completely visible.
17358 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17359 (Fx_create_frame): Adjust the frame's height for presence
17360 of the tool bar before calling x_figure_window_size.
17361 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17362 when the window gets smaller.
17363 (x_set_foreground_color): Set frame's cursor_pixel.
17364 (x_set_foreground_color, x_set_background_color): Cleaned up.
17365 (x_set_font): Handle case of x_new_fontset returning the same name
17366 as before, although there was a change in fontsets.
17367
386ca361
MB
173682001-10-21 Miles Bader <miles@gnu.org>
17369
c2d53558 17370 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17371 (Flogxor): Add usage: string to doc string.
17372 * charset.c (Fstring): Likewise.
17373 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17374 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17375
f00691a3 173762001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17377
03be2694
PJ
17378 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17379
17380 * alloc.c: Reindent DEFUNs with doc: keywords.
17381
17382 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17383
14ff1ee0
PJ
17384 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17385 keyword].
17386
2f147815 17387See ChangeLog.9 for earlier changes.
6922b018
KH
17388
17389;; Local Variables:
49b3bd82 17390;; coding: iso-2022-7bit
6922b018 17391;; End:
2a34a036 17392
2f147815 17393 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17394 Copying and distribution of this file, with or without modification,
17395 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17396
17397;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4