* macfns.c (x_set_foreground_color, x_set_background_color): Sync
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9cdd4884
ST
12005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macfns.c (x_set_foreground_color, x_set_background_color): Sync
4 with xfns.c.
5 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
6 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
7 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
8
88948d55
KS
92005-01-14 Kim F. Storm <storm@cua.dk>
10
11 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
12
20d6de82
RS
132005-01-13 Richard M. Stallman <rms@gnu.org>
14
15 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
16 if Voverriding_terminal_local_map is non-nil.
17
18 * keyboard.c (syms_of_keyboard): Doc fix.
19
f75a592e
KS
202005-01-13 Kim F. Storm <storm@cua.dk>
21
22 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
23 (specify 0 for FACE instead). Reorder arg list. Doc fix.
24
28f94a34
RS
252005-01-12 Richard M. Stallman <rms@gnu.org>
26
27 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
28 face property for characters that don't specify one.
29
30 * fns.c (Frequire): Record in load-history unconditionally.
31
57a230b1
KS
322005-01-10 Kim F. Storm <storm@cua.dk>
33
34 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
35
36 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
37 Callers changed.
38 Add support to merge with lisp face id too (if face_name is t).
39
40 * xdisp.c (get_next_display_element, next_element_from_display_vector):
41 Don't lookup lface_id from display table glyphs here; instead use
42 merge_faces to merge the lisp face id into current face.
43
8ab2c119
KS
442005-01-09 Kim F. Storm <storm@cua.dk>
45
46 * dispextern.h (struct it): New member dpvec_face_id.
47 (merge_into_realized_face): Add prototype.
48
49 * xfaces.c (merge_into_realized_face): New function. Used to
50 merge escape-glyph face or face from display table into current face.
51
52 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
53 (syms_of_xdisp): DEFVAR_LISP it.
54 (escape_glyph_face): Remove var.
55 (redisplay_window): Don't initialize it.
56 (setup_for_ellipsis, get_next_display_element):
57 Set it->dpvec_face_id to -1.
58 (get_next_display_element): Test Vshow_nonbreak_escape.
59 Do not setup escape_glyph_face.
60 Properly merge escape-glyph face or face from display table with
61 current face for escape and control characters. Set
62 it->dpvec_face_id to relevant face id instead of adding it to each
63 element of display vector.
64 (next_element_from_display_vector): If it->dpvec_face_id is set,
65 use that instead of lface_id from glyph itself.
66
e0910857
JD
672005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
68
69 * xterm.h (struct x_output): New member, toolbar_detached.
70
71 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
72 38.
73 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
74 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
75 (xg_create_tool_bar): Initialize toolbar_detached.
76 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
77 toolbar_detached is zero.
78
ff59904a
JD
792005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
80
9b85e63d
JD
81 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
82 gtk_menu_popup if not for_click, so callbacks for the menu are called.
83
ff59904a
JD
84 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
85 (xg_tool_bar_callback, xg_tool_bar_help_callback)
86 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
87 warning.
88
89 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 90 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
91 XFLOAT_DATA to get extract number from Lisp object.
92
f9a23a6f
KS
932005-01-07 Kim F. Storm <storm@cua.dk>
94
95 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
96 Set stop_charpos to current charpos instead of 0.
97
28f94a34
RS
982005-01-06 Nick Roberts <nickrob@snap.net.nz>
99
100 * xdisp.c (Fformat_mode_line): First arg now required.
101
a6fffcdc
ST
1022005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
103
104 * macterm.c (XLoadQueryFont): Correctly handle 0 size
105 font widths that are returned from some Japanese fonts.
106
c35b0c6b
KS
1072005-01-06 Kim F. Storm <storm@cua.dk>
108
109 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
110 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
111 (destroy_fringe_bitmap): Set fringe_faces element to nil.
112 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
113 fringe_faces array and init elements to nil.
114 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
115 non-persistent face id.
116 (mark_fringe_data): New function for GC.
117
118 * alloc.c (mark_fringe_data): Declare extern.
119 (Fgarbage_collect): Call mark_fringe_data.
120
121 * alloc.c (overrun_check_free): Invalidate freed memory if
122 XMALLOC_CLEAR_FREE_MEMORY is defined.
123
e0e76ab9
ST
1242005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
125
126 * macfns.c: Include sys/param.h.
127 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
128 and function.
129 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
130 of filename string. Set event callback function when creating
131 dialog boxes. Add code conversions for filenames. Don't dispose
132 apple event descriptor record if failed to create it.
133
134 * macterm.c: Include sys/param.h.
135 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
136 kEventWindowUpdate.
137 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
138 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
139 of FSSpec from apple event descriptor record.
140 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
141 size of filename string.
142 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
143 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
144 file dialog is in action.
145 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject
146 only when there are no filename items. Set background color
147 before (un)highlighting the window below the dragged items.
148 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
149
043bc640
KH
1502005-01-05 Romain Francoise <romain@orebokech.com>
151
152 * term.c (encode_terminal_code): Fix buffer size computation.
153
dd496df6
RS
1542005-01-04 Richard M. Stallman <rms@gnu.org>
155
156 * xdisp.c (Fformat_mode_line): Doc fix.
157
026cdede
SM
1582005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
159
160 * alloc.c (refill_memory_reserve): Move.
161 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
162 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
163
d57c7572
RS
1642005-01-03 Richard M. Stallman <rms@gnu.org>
165
166 * window.c (window_scroll_pixel_based): Don't correct preserve_y
167 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
168
b14f868c
JR
1692005-01-03 Jason Rumney <jasonr@gnu.org>
170
171 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
172 fontp->space_width to FONT_WIDTH so they are valid.
173
174 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
175 average width. Set fontp->average_width and fontp->space_width to
176 their appropriate values.
177
178 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
179 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
180 fontp->space_width.
181
e169f939
ST
1822005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
183
184 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
185 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
186 metrics for max and min bounds.
187 (x_load_font): Correctly calculate average font width metrics.
188
19996af4
RS
1892005-01-02 Richard M. Stallman <rms@gnu.org>
190
191 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
192
42d02da0
JD
1932004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
194
195 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
196
1db7dd46
RS
1972004-12-31 Richard M. Stallman <rms@gnu.org>
198
b437860a
RS
199 * xdisp.c (setup_for_ellipsis, get_next_display_element):
200 Set it->ellipsis_p to 1 or 0.
201 (display_line): Record whether row ends in mid-ellipsis.
202 (set_cursor_from_row): If ends in ellipsis. find start of it.
203 (cursor_row_p): If PT's at the end of the ellipsis the row
204 ends within, don't display cursor on this row.
205
206 * dispextern.h (struct it): New element ellipsis_p.
207 (struct glyph_row): New element ends_in_ellipsis_p.
208
209 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
210 position if we're reading from something other than the buffer.
211
1db7dd46
RS
212 * window.c (window_scroll_pixel_based): Only look at
213 Vscroll_preserve_screen_position if the old PT can't be kept.
214 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
215
1225f637
KS
2162004-12-30 Kim F. Storm <storm@cua.dk>
217
218 * xdisp.c (get_line_height_property): New function extracted from
219 original calc_line_height_property.
220 (calc_line_height_property): Rework. Handle t and (nil . ratio).
221 (x_produce_glyphs): Use them to handle line-height and
222 line-spacing according to new height spec.
223 (Qtotal): Remove.
33b2f4ea 224 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 225
c243063e
KH
2262004-12-30 Kenichi Handa <handa@m17n.org>
227
228 * fileio.c (Finsert_file_contents): Don't use
229 current_buffer->buffer_file_coding_system even if REPLACE is
230 non-nil. Call Qafter_insert_file_set_coding with the second arg
231 VISIT.
232
233 * fontset.h (struct font_info): New members space_width and
234 average_width.
235
236 * frame.h (struct frame): New member space_width.
237 (FRAME_SPACE_WIDTH): New macro.
238
239 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
240
241 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
242 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 243 fontp->space_width.
c243063e
KH
244 (x_load_font): Calculate fontp->space_width and
245 fontp->average_width.
246 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
247
248 * xdisp.c (x_produce_glyphs): Calculate tab width by
249 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
250
456e761b
ST
2512004-12-29 Sanghyuk Suh <han9kin@mac.com>
252
253 * macterm.c (SelectionRange): Add Xcode position apple event struct.
254 (do_ae_open_documents): Handle Xcode-style file position open
255 events.
256
188577ce
LT
2572004-12-29 Luc Teirlinck <teirllm@auburn.edu>
258
259 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
260
99ec74b9
RS
2612004-12-29 Richard M. Stallman <rms@gnu.org>
262
263 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
264
30c92fab
ST
2652004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266
267 * macfns.c (install_window_handler): Modify extern to return OSErr
268 value.
269 (mac_window): Handle return value of install_window_handler.
270
271 * macterm.c (reflect_byte): Remove function.
272 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
273 Lookup table instead.
274 (mac_do_font_lists): Simplify calculation of the longest
275 nonspecial string.
276 (init_mac_drag_n_drop): Remove function and declaration.
277 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
278 init_mac_drag_n_drop.
279 (mac_do_track_drag): New function and declaration.
280 (install_window_handler): Return OSErr value.
281 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
282 handlers for tracking/receiving drag-and-drop items.
283 (do_ae_open_documents): Generate unibyte strings for filenames.
284 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
285 only non-filename items. Set event modifiers. Set return value.
286
4b982924
DN
2872004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
288
289 * coding.c (decode_coding): Fix previous change.
290
93fdf45f
RS
2912004-12-28 Richard M. Stallman <rms@gnu.org>
292
293 * xdisp.c (back_to_previous_visible_line_start):
294 Don't call handle_display_prop.
295
5bdca8af
DN
2962004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
297
298 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
299 (decode_coding_emacs_mule, encode_coding_emacs_mule)
300 (decode_coding_iso2022, encode_designation_at_bol)
301 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
302 (decode_coding): Constify arguments and local vars.
303
33385c6f
JD
3042004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
305
306 * xmenu.c (popup_get_selection): Only pop down dialogs
307 on C-g and Escape.
95bdef2e 308 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 309 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 310 parameter down_on_keypress to popup_get_selection.
33385c6f 311
b15325b2
ST
3122004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
313
314 * dispextern.h: Change HAVE_CARBON to MAC_OS.
315 (struct glyph_string): Likewise.
a2c7e69a 316
b15325b2
ST
317 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
318 mac_initialize.
a2c7e69a 319
b15325b2
ST
320 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
321 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 322
b15325b2 323 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 324
b15325b2
ST
325 * frame.c (x_set_frame_parameters, x_report_frame_params)
326 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
327 (x_set_border_width, Vdefault_frame_scroll_bars): Change
328 HAVE_CARBON to MAC_OS.
a2c7e69a 329
b15325b2
ST
330 * image.c [MAC_OS]: Include sys/stat.h.
331 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
332 QuickTimeComponents.h.
a2c7e69a 333
b15325b2
ST
334 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
335 [!MAC_OSX] (select): Use mac_wait_next_event.
336 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
337 Vexec_suffixes.
338 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
339 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
340 (mac_clear_font_name_table): Add extern.
341 (Fmac_clear_font_name_table): New defun.
342 (syms_of_mac): Defsubr it.
343 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
344 [MAC_OSX] (select_and_poll_event): New function.
345 [MAC_OSX] (sys_select): Use it.
346 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
347 [MAC_OSX && SELECT_USE_CFSOCKET]
348 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
349 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
350 RunLoop for simultaneously monitoring two kinds of inputs, window
351 events and process outputs, without periodically polling.
a2c7e69a 352
b15325b2
ST
353 * macfns.c (mac_initialized): Remove extern.
354 (stricmp): Put in #if 0. All callers changed to use xstricmp in
355 xfaces.c.
356 (strnicmp): Decrement `n' at the end of each loop, not the
357 beginning.
358 (check_mac): Use the term "Mac native windows" instead of "Mac
359 OS".
360 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
361 (mac_get_rdb_resource): New function (from w32reg.c).
362 (x_get_string_resource): Use it.
363 (install_window_handler): Add extern.
364 (mac_window): New function.
365 (Fx_create_frame): Use it instead of make_mac_frame. Set
366 parameter for Qfullscreen. Call x_wm_set_size_hint.
367 (Fx_open_connection, Fx_close_connection): New defuns.
368 (syms_of_macfns): Defsubr them.
369 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
370 kWindowNoUpdatesAttribute to the window attribute.
371 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
372 (x_create_tip_frame): Don't call ShowWindow.
373 (Fx_show_tip): Call ShowWindow.
374 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
375 TARGET_API_MAC_CARBON'.
376 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
377 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 378
b15325b2
ST
379 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
380 Windows.h.
381 (Window): Typedef to WindowPtr and move outside `#if
382 TARGET_API_MAC_CARBON'.
383 (XSizeHints): New struct.
a2c7e69a 384
b15325b2
ST
385 * macterm.c (x_update_begin, x_update_end)
386 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
387 frame.
388 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
389 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
390 (construct_mouse_click): Put in #if 0.
391 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
392 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
393 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
394 (activate_scroll_bars, deactivate_scroll_bars)
395 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
396 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
397 if the position is neither user-specified nor program-specified.
398 (x_free_frame_resources): Free size_hints.
399 (x_wm_set_size_hint): Allocate size_hints if needed. Set
400 size_hints.
401 (mac_clear_font_name_table): New function.
402 (mac_do_list_fonts): Initialize font_name_table if needed.
403 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
404 around mac_do_list_fonts.
405 (mac_unload_font): New function.
406 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
407 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
408 and definitions with #if TARGET_API_MAC_CARBON.
409 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
410 (install_window_handler): Add decl.
411 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
412 window. Use UpdateControls. Get the rectangle that should be
413 updated and restrict the target of expose_frame to it.
414 (do_grow_window): Set minimum height/width according to
415 size_hints.
416 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
417 (do_zoom_window): Don't use x_set_window_size.
418 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
419 (install_window_handler): New function.
420 [!USE_CARBON_EVENTS] (mouse_region): New variable.
421 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
422 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
423 GetEventDispatcherTarget inside BLOCK_INPUT.
424 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
425 Update mouse_region when mouse is moved.
426 (make_mac_frame): Remove.
427 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
428 mouse pointer shapes. Change values of f->left_pos and
429 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
430 call ShowWindow.
431 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
432 Vinvocation_name and Vsystem_name.
433 (mac_make_rdb): New function (from w32term.c).
434 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
435 already been opened. Don't pass argument to
436 mac_initialize_display_info. Don't set dpyinfo->height/width.
437 Add entries to x_display_list and x_display_name_list.
438 (x_delete_display): New function.
439 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
440 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
441
b15325b2
ST
442 * macterm.h (check_mac): Add extern.
443 (struct mac_output): New member size_hints.
444 (FRAME_SIZE_HINTS): New macro.
445 (mac_unload_font): Add extern.
a2c7e69a 446
b15325b2 447 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 448
b15325b2
ST
449 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
450
92d2947b
RS
4512004-12-27 Richard M. Stallman <rms@gnu.org>
452
ebbd14f1
RS
453 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
454 (syms_of_buffer): Don't defsubr it.
455
456 * process.c (list_processes_1): Set undo_list instead
457 of calling Fbuffer_disable_undo.
458
92d2947b
RS
459 * xdisp.c (single_display_spec_string_p): Renamed from
460 single_display_prop_string_p.
461 (single_display_spec_intangible_p): Renamed from
462 single_display_prop_intangible_p.
463 (handle_single_display_spec): Renamed from handle_single_display_prop.
464 Rewritten to be easier to understand.
465
a2c7e69a 466 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
467 and variables get just NAME.
468
469 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
470
471 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
472 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
473 (Qdefvar): Var deleted.
474 (syms_of_eval): Don't initialze it.
475
476 * lread.c (syms_of_lread) <load-history>: Doc fix.
477
9f6fcdc5
JD
4782004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
479
480 * xmenu.c (popup_get_selection): Pop down on C-g.
481 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
482 pops down menu on C-g.
483 (xdialog_show): If dialog popped down and no button in the dialog was
484 pushed, call Fsignal to quit.
485 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
486 Fsignal to quit.
487
488 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
489
490 * gtkutil.c (xg_initialize): Install bindings for C-g so that
491 dialogs and menus pop down.
492
d8ca23a0
KH
4932004-12-27 Kenichi Handa <handa@m17n.org>
494
495 * coding.c (code_convert_region): Fix calculation of `ratio'.
496
857ae68b
JD
4972004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
498
133c0116
JD
499 * gtkutil.c (update_frame_tool_bar): Make the value of
500 tool-bar-button-margin control margins of images in tool bar.
501
857ae68b
JD
502 * alloc.c (check_depth): New variable.
503 (overrun_check_malloc, overrun_check_realloc): Only add
504 overhead and write check pattern if check_depth is 1 (to handle
505 recursive calls). Increase/decrease check_depth in entry/exit.
506 (overrun_check_free): Only check for overhead if check_depth is 1.
507 Increase/decrease check_depth in entry/exit.
508
bd55c35c
JD
5092004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
510
511 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
512 before touching input_available_clear_time, to avoid accessing it
513 from multiple threads.
514
66354420
JR
5152004-12-23 Jason Rumney <jasonr@gnu.org>
516
517 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
518 of JPEG library.
519
55f4edbc
RS
5202004-12-22 Richard M. Stallman <rms@gnu.org>
521
522 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
523
524 * lisp.h (Vundo_outer_limit): Fix decl.
525
526 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
527 Uses changed.
528 (syms_of_undo): Initialize appropriately.
529 (truncate_undo_list): If it's nil, there's no limit.
530
7a0ea9e3
KH
5312004-12-22 Kenichi Handa <handa@m17n.org>
532
533 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
534
fda2922a
RS
5352004-12-21 Richard M. Stallman <rms@gnu.org>
536
537 * eval.c (unwind_to_catch): Clear immediate_quit.
538
539 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
540 specially as `\ ' and `\-'.
541
542 * keyboard.c (kbd_buffer_store_event_hold):
543 In the code for while-no-input, handle immediate_quit.
544
545 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
546 Call that at the very start.
547 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
548 (syms_of_alloc): Don't define undo-limit,
549 undo-strong-limit and undo-outer-limit here.
550
551 * undo.c (truncate_undo_list): Return void.
552 Take just one argument, the buffer.
553 Make it current, and inhibit recursive GC.
554 Access and update the undo list directly; return void.
555 Refer to the undo...limit variables directly.
556 Test undo_outer_limit only after counting the whole current command.
557 When it's exceeded, call the function in undo-outer-limit-function.
558 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
559 (Vundo_outer_limit_function): New variable.
560 (syms_of_undo): Define undo-limit, undo-strong-limit
561 and undo-outer-limit here, and undo-outer-limit-function.
562 Doc fixes.
563
564 * lisp.h (truncate_undo_list): Update decl.
565
5662004-12-21 Piet van Oostrum <piet@cs.uu.nl>
567
568 * fileio.c (Fread_file_name): Delete duplicates in
569 file-name-history when history_delete_duplicates is true.
570
68c69027
ST
5712004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
572
573 * macterm.c (mac_do_list_fonts): Fix memory leak
574
134579f2
RS
5752004-12-20 Richard M. Stallman <rms@gnu.org>
576
577 * regex.c (re_match_2_internal) <symend, wordend>:
578 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
579
fbe6152f
ST
5802004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
581
582 * macterm.c (endif, x_font_name_to_mac_font_name): Use
583 maccentraleurroman instead of maccentraleuropean
584 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
585 quickly finding a specific font without needing regexps.
586
fecad3f6
JD
5872004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
588
333f1b6f
JD
589 * syssignal.h: Declare main_thread.
590 (SIGNAL_THREAD_CHECK): New macro.
591
592 * keyboard.c (input_available_signal): Move thread checking code
593 to macro SIGNAL_THREAD_CHECK and call that macro.
594 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
595
596 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
597
598 * emacs.c: Define main_thread.
599 (main): Initialize main_thread.
600 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
601 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
602
603 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
604
605 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
606
607 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
608
a2c7e69a 609 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
610 SIGNAL_THREAD_CHECK.
611
612 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
613
614 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
615
fecad3f6
JD
616 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
617 returning when xg_ignore_gtk_scrollbar is true.
618
2a84c6da
KS
6192004-12-14 Kim F. Storm <storm@cua.dk>
620
621 * keyboard.c (read_char): Save and restore echo_string when
622 handling input method.
623
d9c1ce9d
RS
6242004-12-13 Richard M. Stallman <rms@gnu.org>
625
626 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
627
628 * keyboard.c (Vthrow_on_input): New variable.
629 (syms_of_keyboard): Defvar and initialize it.
630 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
631
632 * lisp.h (QUIT): Check for Vthrow_on_input.
633 (Vthrow_on_input): Declare it.
634
a6495ed5
KS
6352004-12-13 Kim F. Storm <storm@cua.dk>
636
637 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
638 vector.
639
24a0e22f
RS
6402004-12-12 Richard M. Stallman <rms@gnu.org>
641
642 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
643
644 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
645 (Ftry_completion): Really use outer `zero'; eliminate inner one.
646
d6d31e57
KH
6472004-12-12 Kenichi Handa <handa@m17n.org>
648
649 * term.c (encode_terminal_code): Fix previous change.
650
6f8ffb88
SM
6512004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
652
fb6f5cbf
SM
653 * keyboard.c (handle_async_input): Remove pthread mutex handling.
654 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
655
6f8ffb88
SM
656 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
657 in macro arguments.
658
659 * minibuf.c (Ftry_completion, Fall_completions): Don't use
660 XFASTINT blindly.
661
662 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
663
c83c9f9d
JD
6642004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
665
2f25767f
JD
666 * w32term.c (x_calc_absolute_position): Remove calculation of
667 difference between inner and outer window. Don't subtract difference
668 for left and top calculations.
669
c83c9f9d
JD
670 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
671 for left and top calculations. Remove call to x_real_positions.
24a0e22f 672 [Bug report by Drew Adams in November]
c83c9f9d
JD
673 (x_check_expected_move): Do not set change_gravity to 1 when calling
674 x_set_offset.
675
cc1caa4e
RS
6762004-12-08 Richard M. Stallman <rms@gnu.org>
677
678 * xdisp.c (get_next_display_element): Use `escape-glyph' for
679 control chars and escaped octal codes.
680 (Qescape_glyph): New variable.
681 (syms_of_xdisp): Initialize it.
682 (escape_glyph_face): New variable.
683 (redisplay_window): Initialize it.
684
e0e30823
RS
6852004-12-07 Paul Eggert <eggert@cs.ucla.edu>
686
687 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
688 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
689
f415cacd
JD
6902004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
691
cf435f39
JD
692 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
693 reset_malloc_hooks.
694
6f8ffb88
SM
695 * keyboard.c (handle_async_input, input_available_signal):
696 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 697
f415cacd
JD
698 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
699
19b1f29a
SM
7002004-12-07 Stefan <monnier@iro.umontreal.ca>
701
702 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
703
704 * config.in: Regenerate.
705
ded997c1
JD
7062004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
707
453a4f1b
JD
708 * xmenu.c (Fx_popup_menu): Correct documentation about position.
709 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
710 if not given by a mouse click to correspond with x-popup-menu
711 documentation.
712
9a38524c
JD
713 * config.in: Regenerate.
714
aa477689
JD
715 * gtkutil.c: Include signal.h and syssignal.h.
716 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
717
718 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
719 new variables main_thread and alloc_mutex,
720 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
721 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
722 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
723 (UN)BLOCK_INPUT.
724 (emacs_blocked_free, emacs_blocked_malloc)
725 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
726 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
727 (reset_malloc_hooks): New function.
728
729 * lisp.h: Declare reset_malloc_hooks.
730
731 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
732
733 * keyboard.c: Conditionally include pthread.h
6f8ffb88 734 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
735 thread, block signal, send signal to main thread and return.
736
ded997c1 737 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 738 Set current folder in file chooser if default_filename is a directory.
ded997c1 739
c72b0edd
SM
7402004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
741
742 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
743 Remove redundant correctness checks.
744 (regex_compile): Fix up error codes for \{..\} expressions.
745
c721eee5
RS
7462004-12-05 Richard M. Stallman <rms@gnu.org>
747
748 * regex.c (regex_compile): Fix end-of-pattern case for space.
749
d8f96db8
ST
7502004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
751
6108209e
KS
752 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
753 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 754 crashes with invalid characters.
6108209e
KS
755 * macmenu.c (add_menu_item): Use it.
756 * image.c (image_load_quartz2d): Likewise.
757 * macfns.c (x_set_name, x_set_title): Likewise.
758 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
759 creating them each time for labels.
d8f96db8 760
ab67e8b6
RS
7612004-12-02 Richard M. Stallman <rms@gnu.org>
762
763 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
764 don't use it here.
765
766 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
767 (interactive_p): Skip Scalled_interactively_p frames
768 like Sinteractive_p frames.
b8217ea6 769 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
770
771 * data.c (Fmake_variable_buffer_local): Doc fix.
772 (Fmake_local_variable): Doc fix.
773
774 * insdel.c (insert_from_string_before_markers)
775 (insert_from_string): Don't modify buffer on empty insertion.
776
777 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
778
f86bdc80
ST
7792004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
780
781 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
782 menu text as UTF8 fails.
783
1cae6d39
KS
7842004-12-01 Kim F. Storm <storm@cua.dk>
785
786 * alloc.c: Add commentary for last change.
787 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
788 sizeof(size_t) != 4.
789 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
790 Use them. Also clear header and trailer of freed memory.
791 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
792 (string_overrun_cookie): Rename from string_overrun_pattern.
793 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
794
77ea0764
AS
7952004-12-01 Andreas Schwab <schwab@suse.de>
796
797 * lisp.h: Declare string_to_multibyte.
798
2d5cd4e6
KH
7992004-12-01 Kenichi Handa <handa@m17n.org>
800
801 * w32console.c (w32con_write_glyphs): Decide coding here.
802 Adjusted for the change of encode_terminal_code.
803
804 * term.c (encode_terminal_code): Don't make it "static".
805
25a0994a
KH
8062004-11-30 Kenichi Handa <handa@m17n.org>
807
19b1f29a 808 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 809 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
810 characters at once, and return a pointer to the result of encoding.
811 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
812 (insert_glyphs): Likewise.
813 (term_init): Initialize encode_terminal_bufsize to 0.
814
815 * coding.c (Vcode_conversion_workbuf_name): New variable.
816 (syms_of_coding): Initialize and staticpro it.
817 (set_conversion_work_buffer): New function.
818 (run_pre_post_conversion_on_str): Use it.
819 (run_pre_write_conversin_on_c_str): New function.
820
821 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
822
fc7a70cc
ST
8232004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
824
825 * keyboard.c: Don't undef SIGIO
826 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
827 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
828 (macfns.o): Don't depend on ccl.h.
829 * macfns.c (mac_frame_parm_handlers): Set handlers for
830 Qleft_fringe and Qright_fringe.
831 * macterm.c (mac_fill_rectangle_to_pixmap)
832 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
833 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
834 Put in #if 0.
835 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
836 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
837 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
838 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
839 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
840 XDrawImageString. Always draw background and foreground separately.
841 (x_draw_image_foreground): Use clipping instead of computing the
842 intersection rectangle.
843 (x_draw_image_glyph_string): Don't draw an image with mask to a
844 pixmap.
845 (x_redisplay_interface): Set flush_display_optional member to 0.
846 (XTread_socket): Correctly reset the TEConverter
847 object.
848
fc368889
KS
8492004-11-30 Kim F. Storm <storm@cua.dk>
850
851 * lisp.h: New defines to enable buffer overrun checking.
852 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
853 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
854
855 * alloc.c: Add more checks for buffer overruns.
856 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
857 xmalloc_overrun_check_trailer, overrun_check_malloc)
858 overrun_check_realloc, overrun_check_free): Add.
859 (GC_STRING_EXTRA, string_overrun_pattern): Add.
860 (check_sblock, allocate_string_data, compact_small_strings):
861 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
862 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
863 (check_string_free_list): Add.
864 (allocate_string, sweep_strings): Call check_string_free_list.
865
866 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
867 XMALLOC_OVERRUN_CHECK to avoid crash during load.
868
0af8cfe1
KS
8692004-11-29 Kim F. Storm <storm@cua.dk>
870
871 * fns.c (concat): Use SAFE_ALLOCA.
872
77220eeb
SM
8732004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
874
875 * sysdep.c (emacs_write): Don't use QUIT.
876
a778cf63
KH
8772004-11-29 Kenichi Handa <handa@m17n.org>
878
879 * buffer.c (init_buffer): Set current_buffer->directory to a
880 multibyte string made by string_to_multibyte.
881
77220eeb 882 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 883
e3177e43
AS
8842004-11-27 Andreas Schwab <schwab@suse.de>
885
886 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
887
888 * s/gnu-linux.h: Enable no-op gcpros on ia64.
889 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
890
77220eeb
SM
891 * filelock.c (lock_file_1): Call get_boot_time early.
892 Increase buffer size.
e3177e43 893
ca5e6fef
EZ
8942004-11-27 Eli Zaretskii <eliz@gnu.org>
895
896 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
897 is not defined.
898
e2811828
KS
8992004-11-27 Kim F. Storm <storm@cua.dk>
900
901 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
902 marker out of doc string.
903
7a262394
SM
9042004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
905
906 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
907 which was not mentioned in the log.
908
f33cc5a9
KS
9092004-11-26 Kim F. Storm <storm@cua.dk>
910
048bb03f
KS
911 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
912 angle bitmaps at top/bottom line.
913
f33cc5a9
KS
914 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
915 set it when it->method is set to next_element_from_display_vector.
916 (setup_for_ellipsis): Add LEN argument. Callers changed.
917 Set it->saved_face_id.
918 (get_next_display_element): Use loop instead of recursion.
919 Set it->saved_face_id. Combine duplicate code for ctr chars.
920 (next_element_from_display_vector): Do not set it->saved_face_id.
921 (next_element_from_ellipsis): Use setup_for_ellipsis.
922
670e8906
EZ
9232004-11-26 Eli Zaretskii <eliz@gnu.org>
924
925 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
926 prevent compiler warnings.
927
275464e7
SM
9282004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
929
1bf0e604
SM
930 * keyboard.c (command_loop_1): Print a message describing the key
931 the user just pressed when this key has no binding.
932
275464e7
SM
933 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
934 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
935
936 * lread.c (readchar): Check QUIT when `getc' is interrupted.
937
261b01c6
RS
9382004-11-24 Richard M. Stallman <rms@gnu.org>
939
940 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
941
942 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
943
a5bd504e
KS
9442004-11-24 Kim F. Storm <storm@cua.dk>
945
946 * xdisp.c (move_it_in_display_line_to, display_line):
947 Restore saved_face_id also when truncate-lines or hscrolled.
948
255e4140
JD
9492004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
950
951 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
952 x-use-old-gtk-file-dialog.
953
954 * xfns.c: Define x_use_old_gtk_file_dialog.
955 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
956 outside ifdef USE_GTK.
957
cab27d04
SM
9582004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
961 Don't use XFASTINT blindly.
962
963 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
964
965 * indent.c (skip_invisible): Avoid non-idempotent side-effects
966 in macro arguments.
967
968 * keymap.c (Flookup_key): Check INTEGERP before XINT.
969
970 * lread.c (oblookup): Don't use XFASTINT blindly.
971
972 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
973 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
974
11e0be49
KS
9752004-11-23 Kim F. Storm <storm@cua.dk>
976
4d721114
KS
977 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
978 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
979
11e0be49
KS
980 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
981 signal_p is zero and face name is unknown.
982 (Fx_list_fonts): Don't signal error in lookup_named_face.
983 (Fface_font): Signal error in lookup_named_face.
984 (ascii_face_of_lisp_face): Likewise.
985
986 * dispextern.h (lookup_named_face): Fix prototype.
987
988 * xdisp.c (handle_single_display_prop): Don't signal error in
989 lookup_named_face for unknown fringe face name.
990 (highlight_trailing_whitespace): Don't signal error in
991 lookup_named_face if trailing-whitespace face unknown.
992 (calc_line_height_property): Don't signal error in
993 lookup_named_face if specified face name is unknown.
994
995 * fringe.c (update_window_fringes): Show top row indicator if
996 window has header-line. Don't show arrow at bob and eob
997 if the boundary indicators are not used.
998 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
999
1000 * window.c (set_window_buffer): Clear display_error_modiff.
1001
0960a582
KS
10022004-11-22 Kim F. Storm <storm@cua.dk>
1003
1004 * fringe.c (update_window_fringes): Provide sensible fall-back
1005 value for non-nil indicate-buffer-boundaries setting.
1006
b0e9bb28
MR
10072004-11-22 Markus Rost <rost@ias.edu>
1008
1009 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1010
d0bce91e
SM
10112004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1014
e1814672
KS
10152004-11-21 Kim F. Storm <storm@cua.dk>
1016
b7fd3518
KS
1017 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1018
1019 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1020 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1021
1022 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1023 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1024
1025 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1026 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1027
d0bce91e
SM
1028 * xdisp.c (move_it_in_display_line_to, display_line):
1029 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1030 line is continued before or in middle of element from display vector.
f01d4d05 1031
f1a61389
KS
1032 * indent.c (Fvertical_motion): Fix last change. Use another
1033 method to detect if iterator moved too far ahead after reseat.
1034
e1814672
KS
1035 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1036 expand matrix width for overflow in zero-width area.
1037 (append_glyph, append_composite_glyph, produce_image_glyph)
1038 (append_stretch_glyph): Use it to avoid loop in redisplay.
1039 (note_mode_line_or_margin_highlight): Don't let help-echo from
1040 string override help-echo from image map.
1041
2dafe1c9
LT
10422004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1043
d0bce91e 1044 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1045 * callint.c (Fcall_interactively): Ditto.
1046
fd6866c8 10472004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1048
1049 * minibuf.c (Fminibuffer_complete_and_exit):
1050 Fixup the case of the completed value, for case-indep completion.
1051
dedbac89
RS
10522004-11-20 Richard M. Stallman <rms@gnu.org>
1053
fd6866c8
RS
1054 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1055
9d00469f 1056 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1057 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1058
dedbac89 1059 * search.c (Vsearch_spaces_regexp):
d0bce91e 1060 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1061
2f672bb5
TTN
10622004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1063
1064 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1065
f31a9a68
RS
10662004-11-19 Richard M. Stallman <rms@gnu.org>
1067
1068 * search.c (Vsearch_whitespace_regexp): New variable.
1069 (syms_of_search): Defvar it.
1070 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1071 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1072 is non-nil.
6de891db
RS
1073 (struct regexp_cache): New element whitespace_regexp.
1074 (syms_of_search): Initialize whitespace_regexp elements.
1075 (compile_pattern): Compare whitespace_regexp elements.
1076 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1077
1078 * regex.c (regex_compile): Substitute whitespace_regexp
1079 for spaces, if it is nonzero.
1080 (whitespace_regexp): New variable.
1081 (re_set_whitespace_regexp): New function.
1082
cbc34cb3
KS
10832004-11-19 Kim F. Storm <storm@cua.dk>
1084
1085 * indent.c (Fvertical_motion): Fix last change.
1086
b54a7539
KS
10872004-11-18 Kim F. Storm <storm@cua.dk>
1088
1089 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1090 Instead, move back again if reseating moves too far ahead.
1091
10922004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1093
1094 * xdisp.c (message3): Call clear_message.
1095
5ff504fe
KS
10962004-11-17 Kim F. Storm <storm@cua.dk>
1097
1098 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1099
5ae53dcf
JD
11002004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1101
d0bce91e 1102 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1103
6abf3a27 1104 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1105 (x_menu_set_in_use): Also set popup_activated_flag.
1106
5ff504fe 1107 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1108 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1109
6abf3a27 1110 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1111
ee31cd78
RS
11122004-11-16 Richard M. Stallman <rms@gnu.org>
1113
6abf3a27
SM
1114 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1115 Use map-keymap-internal to implement that.
ee31cd78
RS
1116
1117 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1118
6abf3a27
SM
11192004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1122 a window before using XWINDOW.
1123
1124 * window.c (make_window, Fselect_window, make_dummy_parent)
1125 (save_window_save):
1126 * frame.c (make_frame):
1127 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1128
1129 * lisp.h (NILP): Use EQ rather than XFASTINT.
1130
b4d61105
KS
11312004-11-16 Kim F. Storm <storm@cua.dk>
1132
6abf3a27 1133 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1134
b4d61105
KS
1135 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1136 moving backwards.
1137
11382004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1139
1140 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1141
ab5b02b0
KH
11422004-11-16 Kenichi Handa <handa@m17n.org>
1143
1144 * xdisp.c (display_mode_element): Fix previous change (calculate
1145 end position of substring to display correctly).
1146
c482cf97
KS
11472004-11-16 Kim F. Storm <storm@cua.dk>
1148
1149 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1150 Reported by Andrew M. Scott.
1151
9f89426b
KS
11522004-11-15 Kim F. Storm <storm@cua.dk>
1153
1154 * fns.c (Fsafe_plist_get): New defun.
1155 (syms_of_fns): Defsubr it.
1156
1157 * lisp.h (Fsafe_plist_get): Add EXFUN.
1158
1159 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1160 Use Fsafe_plist_get.
1161 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1162 Fix image map element parsing. Use Fsafe_plist_get.
1163
27418463
RS
11642004-11-15 Richard M. Stallman <rms@gnu.org>
1165
1166 * xdisp.c (get_next_display_element): Fix previous change.
1167
a130b901
JD
11682004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1169
ef614e04
JD
1170 * window.c (shrink_windows): Handle special case of one window left
1171 when trying to shrink the final reminder. Grow windows if
1172 total_removed is less than total_shrink.
1173
a130b901
JD
1174 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1175 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1176 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1177 Construct arg to record_unwind_protect with make_save_value.
a130b901 1178
d9a03ad2
RS
11792004-11-13 Richard M. Stallman <rms@gnu.org>
1180
1181 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1182 (get_next_display_element): Fix previous change to apply only to \n.
1183
1184 * indent.c (Fvertical_motion): Scan to PT from start of line to
1185 make iterator consistent.
1186
1187 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1188
b3935289
JD
11892004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1190
1191 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1192
1193 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1194 Record unwind with clean_up_file_dialog.
1195
78819ebb
KS
1196 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1197 Declare.
b3935289
JD
1198
1199 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1200
af89e871
JD
12012004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1202
457a8155 1203 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1204 (xg_file_sel_destroy): Remove.
46303896
KS
1205 (xg_file_response_cb, pop_down_file_dialog)
1206 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1207 New functions.
6abf3a27
SM
1208 (xg_get_file_with_chooser, xg_get_file_with_selection):
1209 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1210 Move common code to xg_get_file_name. Return widget created.
1211 (xg_get_file_name): Set name, transient for, modal and destroy
1212 with parent here. Connect response signal to xg_file_response_cb,
1213 connect delete-event to gtk_true. Record pop_down_file_dialog
1214 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1215 (xg_create_widget): Make dialogs modal.
1216
af89e871
JD
1217 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1218 Lisp_Object.
1219 (popup_get_selection): Move unwind protect ...
1220 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1221 Move destroy of widget to pop_down_menu.
1222 (popup_widget_loop): Move unwind protect ...
1223 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1224 Move destroy of widget to pop_down_menu.
1225 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1226 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1227 x_mouse_leave and grabbed = 0 to pop_down_menu.
1228
5596fbf1
KS
12292004-11-13 Kim F. Storm <storm@cua.dk>
1230
1231 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1232 (syms_of_xdisp): DEFVAR_BOOL it.
1233 (make_cursor_line_fully_visible, try_cursor_movement)
1234 (try_window_id): Use it.
1235
b9de078a
KS
12362004-11-12 Kim F. Storm <storm@cua.dk>
1237
381f7091
KS
1238 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1239 (struct it): New member max_extra_line_spacing.
1240 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1241 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1242 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1243 part of last line is only extra line spacing (so the text on the
1244 line is fully visible). Use helper macros.
1245 Add W arg (to use them). All callers changed.
1246 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1247 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1248
6abf3a27
SM
1249 * window.c (window_scroll_pixel_based, Frecenter):
1250 Use move_it_vertically_backward directly.
381f7091
KS
1251 (Frecenter): Fix calculation of new start pos for negative arg.
1252 Before, the new start pos was sometimes chosen too far back, so
1253 the last line became only partially visible, and thus would be
1254 either only semi-visible or automatically scrolled to the middle
1255 of the window by redisplay.
1256
1257 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1258 (move_it_vertically_backward): Don't recure to move further back.
1259 (move_it_vertically): Remove superfluous condition.
1260 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1261 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1262 (display_tool_bar_line): Clear row->extra_line_spacing.
1263 (try_scrolling): Use move_it_vertically_backward directly.
1264 (redisplay_window): Likewise.
1265 (compute_line_metrics): Set row->extra_line_spacing.
1266 (display_line, display_string): Likewise.
1267 (x_produce_glyphs): Update it->max_extra_line_spacing.
1268
b9de078a
KS
1269 * xmenu.c (pop_down_menu): Return nil.
1270
c3438661
JD
12712004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1272
1273 * xmenu.c (x_menu_wait_for_event): New function.
1274 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1275 to handle timers.
df00f436
JD
1276 (popup_widget_loop): Add argument do_timers.
1277 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1278 do_timers to popup_widget_loop.
c3438661
JD
1279 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1280 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1281 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1282 popup_get_selection.
f1d1cd24
JD
1283 (pop_down_menu): New function.
1284 (popup_get_selection, popup_widget_loop): Unwind protect to
1285 pop_down_menu.
1286 (popup_widget_loop): Add argument widget.
1287 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1288 argument widget to popup_widget_loop.
c3438661 1289
32e2fb04
SM
12902004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1293
0faf6806
KS
12942004-11-09 Kim F. Storm <storm@cua.dk>
1295
1296 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1297 Fix various comments referring to XEvents instead of input events.
1298 (x_queue_event): Fix format strings.
1299 (x_stop_queuing_selection_requests): Likewise.
1300
1301 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1302 (pint2hrstr): Add extra braces to silence compiler.
1303
1304 * print.c (print_object): Fix format string.
1305
1306 * lread.c (read1): Fix next_char matching.
1307
1308 * lisp.h (Fdelete): Add EXFUN.
1309 (replace_range_2): Add prototype.
1310
1311 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1312
1313 * intervals.h (NULL_INTERVAL_P): Add separate version when
1314 ENABLE_CHECKING is not defined to silence compiler.
1315 (compare_string_intervals): Add prototype.
1316
1317 * fringe.c (destroy_fringe_bitmap): Fix return type.
1318 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1319
1320 * emacs.c (Fdump_emacs): Fix format string.
1321
1322 * doc.c: Include <ctype.h>.
1323 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1324
1325 * data.c (store_symval_forwarding): Remove unused variables.
1326
1327 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1328
16bf4e32
JD
13292004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1330
1331 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1332 to ${OLDXMENU}.
1333
cdb805a9
KS
13342004-11-09 Kim F. Storm <storm@cua.dk>
1335
1336 * process.c (Fmake_network_process): Remove kludge for interrupted
1337 connects on BSD. If connect is interrupted, just close socket and
1338 start over rather than sleeping and retry with same socket.
1339
d87a9ab8 13402004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1341
a8b16c80
JD
1342 * .cvsignore: Add buildobj.lst.
1343
d87a9ab8
JD
1344 * doc.c: New variable Vbuild_files.
1345 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1346 file names from buildobh.lst. Only attach docstrings from files
1347 that are in Vbuild_files.
1348 (syms_of_doc): Defvar Vbuild_files.
1349
1350 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1351 and w32*.o.
1352 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1353 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1354
1355 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1356 is linked.
1357
b6709e77
KS
13582004-11-09 Kim F. Storm <storm@cua.dk>
1359
1360 * fringe.c (update_window_fringes): Update fringe bitmaps if
1361 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1362 also update previous row to get rid of misc. artifacts.
1363
bae9677d
KS
13642004-11-08 Kim F. Storm <storm@cua.dk>
1365
1366 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1367 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1368
3f8ea68c
EZ
13692004-11-08 Eli Zaretskii <eliz@gnu.org>
1370
1371 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1372 Don't include <sys/time.h> explicitly.
1373 Include <stdio.h> unconditionally, not just on MacOS.
1374
a653f812
KH
13752004-11-08 Kenichi Handa <handa@m17n.org>
1376
1377 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1378 don't pay attention to '\' before '*'.
1379 (fontset_pattern_regexp): Change the meaning of the second arg.
1380 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1381 (check_fontset_name): Try NAME as literal at first, and if it
1382 failes, try NAME as pattern.
1383
c37caf9d
JD
13842004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1385
1386 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1387
b72915a7
AS
13882004-11-07 Andreas Schwab <schwab@suse.de>
1389
78819ebb
KS
1390 * lisp.h (Fmsdos_downcase_filename): Declare.
1391 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1392 * fileio.c: Likewise.
1393
238a44a8
JD
13942004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1395
1396 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1397 comparisons with integers instead of Lisp_Object address.
1398 (Fmsdos_set_keyboard): Declare argument allkeys.
1399
1400 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1401
78819ebb 1402 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1403 int/Lisp_Object mixup.
1404
1405 * fileio.c: Ditto.
1406
31141c13
ST
14072004-11-06 Steven Tamm <steventamm@mac.com>
1408
1409 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1410
f28c1bd9
RS
14112004-11-06 Richard M. Stallman <rms@gnu.org>
1412
1413 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1414
1415 * xfaces.c (merge_named_face): GCPRO the face_name in the
1416 named_merge_point struct that we make.
1417 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1418
1419 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1420 before deciding whether to inactivate mark.
1421
59dede22
EZ
14222004-11-06 Lars Brinkhoff <lars@nocrew.org>
1423
1424 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1425 * editfns.c (Fget_internal_run_time): New function.
1426 (syms_of_data): Defsubr it.
1427 * fns.c (sxhash): As far as possible, merge calculation of
1428 hash code for symbols and strings.
59dede22 1429
27540e81
EZ
14302004-11-06 Eli Zaretskii <eliz@gnu.org>
1431
1432 * frame.c (syms_of_frame): Fix the example in the doc string.
1433
df470e3b
JD
14342004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1435
1436 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1437
1438 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1439 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1440
4cc8522c
LT
14412004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1442
1443 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1444
d4a42098
KS
14452004-11-05 Kim F. Storm <storm@cua.dk>
1446
a8490886
KS
1447 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1448
d4a42098
KS
1449 * fileio.c (Ffile_modes): Doc fix.
1450 (auto_save_1): Check for Ffile_modes nil value.
1451
36a2b04c
KS
14522004-11-05 Kim F. Storm <storm@cua.dk>
1453
1454 * xselect.c (struct selection_event_queue, selection_queue)
1455 (x_queue_selection_requests, x_queue_event)
1456 (x_start_queuing_selection_requests)
1457 (x_stop_queuing_selection_requests): Add new queue for selection
1458 input events to replace previous XEvent queue in xterm.c.
1459 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1460 (x_reply_selection_request): Adapt to new queue.
1461 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1462 (x_handle_selection_request, x_handle_selection_clear): Make static.
1463 (x_handle_selection_event): New function. May queue selection events.
1464 (wait_for_property_change_unwind): Use save_value instead of cons.
1465 Clear property_change_reply_object.
1466 (wait_for_property_change): Abort if already waiting.
1467 Use save_value instead of cons for unwind data.
1468 (x_handle_property_notify): Skip events already arrived, but don't
1469 free them, as "arrived" field is checked by wait_for_property_change,
1470 and it will be freed by unwind or explicit unexpect_property_change.
1471 (x_get_foreign_selection): Add to new queue.
1472 (receive_incremental_selection): Don't unexpect wait_object when done
1473 as it has already been freed by previous wait_for_property_change.
1474
1475 * xterm.h (x_start_queuing_selection_requests)
1476 (x_stop_queuing_selection_requests, x_handle_selection_request)
1477 (x_handle_selection_clear): Remove prototypes.
1478 (x_handle_selection_event): Add prototype.
1479
1480 * xterm.c (handle_one_xevent): Don't queue X selection events
1481 here, it may be too late if we start queuing after we have already
1482 stored some selection events into the kbd buffer.
1483 (struct selection_event_queue, queue, x_queue_selection_requests)
1484 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1485 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1486 (x_catch_errors_unwind): Block input around final XSync.
1487
1488 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1489
1490 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1491 (kbd_buffer_unget_event): New function.
1492 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1493 and use x_handle_selection_event.
1494 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1495
9c3ad9e1
JD
14962004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1497
1498 * xselect.c (TRACE3): New debug macro.
1499 (x_reply_selection_request): Use it.
1500 (receive_incremental_selection): In call to TRACE0, the name of
1501 a symbol is in xname.
1502
a33b89de
KS
15032004-11-05 Kim F. Storm <storm@cua.dk>
1504
1505 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1506
a872928c
JD
15072004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1508
88208bb8
JD
1509 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1510
78819ebb 1511 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1512
1513 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1514 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1515 * xfns.c (syms_of_xfns): ... to here.
1516
a872928c
JD
1517 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1518 it doesn't start with /.
1519
b912921c
KH
15202004-11-04 Kenichi Handa <handa@m17n.org>
1521
1522 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1523 treat it as a literal character.
1524
c524d9a6
KS
15252004-11-03 Kim F. Storm <storm@cua.dk>
1526
1527 * .gdbinit (ppt): New function.
1528
8cfd0f36
JD
15292004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1530
a11e1dce
JD
1531 * xterm.c (x_window_to_scroll_bar): Only call
1532 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1533
8cfd0f36
JD
1534 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1535 of save.
1536
a93563fd
AS
15372004-11-02 Andreas Schwab <schwab@suse.de>
1538
1539 * window.c (Fscroll_right): Fix last change.
1540
2b2d59d8
KS
15412004-11-02 Kim F. Storm <storm@cua.dk>
1542
1543 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1544
15452004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1546
1547 * callproc.c (Fcall_process): Block input around vfork.
1548
ca28104d
KS
15492004-11-02 Kim F. Storm <storm@cua.dk>
1550
1551 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1552 (syms_of_eval): Defsubr it.
1553
29bb7127
RS
15542004-11-02 Richard M. Stallman <rms@gnu.org>
1555
1556 * insdel.c (replace_range_2): New function.
1557
1558 * casefiddle.c (casify_region): Handle changes in byte-length
1559 using replace_range_2.
1560
1561 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1562
b6189c3b 1563 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1564 Subtract 1 from pos when checking previous newline for invisibility.
1565
1566 * window.c (window_scroll_pixel_based): Update preserve_y
1567 for header line if any.
1568 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1569 use a new second argument instead.
1570
1571 * eval.c (Fcall_interactive_p): New function.
1572 (interactive_p): Don't test INTERACTIVE here.
1573 (Finteractive_p): Doc fix.
1574
1575 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1576
b6189c3b 15772004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1578
1579 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1580 comparing font names.
a3fe4aaf 1581
2a00cdb4
JD
15822004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1583
f9d64bb3
JD
1584 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1585 Fx_file_dialog if only directories should be read.
1586
1587 * lisp.h: Fx_file_dialog takes 5 parameters.
1588
32e2fb04
SM
1589 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1590 Add parameter only_dir_p.
f9d64bb3
JD
1591 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1592 dialog, just text field part. Do not add DEFAULT_FILENAME
1593 to list of files if it isn't there.
1594 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1595
32e2fb04
SM
1596 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1597 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1598 a save dialog, add option kNavDontConfirmReplacement, change title
1599 to "Enter name", change text for save button to "Ok".
1600
32e2fb04
SM
1601 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1602 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1603
1604 * gtkutil.c (xg_get_file_with_chooser)
1605 (xg_get_file_with_selection): New functions, only defined ifdef
1606 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1607 respectively.
1608 (xg_get_file_name): Add parameter only_dir_p.
1609 Call xg_get_file_with_chooser or xg_get_file_with_selection
1610 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1611 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1612
1613 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1614
2a00cdb4
JD
1615 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1616
f6749d5d
KS
16172004-11-01 Kim F. Storm <storm@cua.dk>
1618
32e2fb04
SM
1619 * process.c (connect_wait_mask, num_pending_connects):
1620 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1621 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1622 (IF_NON_BLOCKING_CONNECT): New helper macro.
1623 (wait_reading_process_output): Only declare and use local vars
1624 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1625
1a99fe1a
JR
16262004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1627
1628 * w32term.c (x_scroll_run): Delete region objects after use.
1629
fcdb28b4
JD
16302004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1631
495ef86b
JD
1632 * xmenu.c: Add prototypes for forward function declarations.
1633 (popup_get_selection): Remove parameter do_timers, remove call to
1634 timer_check.
32e2fb04
SM
1635 (create_and_show_popup_menu, create_and_show_dialog):
1636 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1637
12e6566a
JD
1638 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1639 tool_bar_items and assign the result to f->tool_bar_items if
1640 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1641 tool_bar_items to assignment of result.
1642
fcdb28b4
JD
1643 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1644 pending_atmers is non-zero.
1645
1a1a0c4c
KS
16462004-10-31 Kim F. Storm <storm@cua.dk>
1647
1648 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1649
a36f1680
JW
16502004-10-28 Will <will@glozer.net>
1651
1652 * macterm.c: allow user to assign key modifiers to the Mac Option
1653 key via a 'mac-option-modifier' variable.
1654
32e2fb04 16552004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1656
1657 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1658 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1659 (x_handle_selection_request, x_handle_selection_clear)
1660 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1661
4f71c13f
RS
16622004-10-28 Richard M. Stallman <rms@gnu.org>
1663
1664 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1665
1666 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1667
068f3848
SM
16682004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1669
1670 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1671 comment-starter over a 1-char one.
1672
4660a9e3
RS
16732004-10-27 Richard M. Stallman <rms@gnu.org>
1674
1675 * xdisp.c (get_next_display_element): In mode lines,
1676 treat newline and tab like other control characters.
1677
1678 * editfns.c (Fmessage): Doc fix.
1679
1680 * indent.c (vmotion): When moving up, check the newline before.
1681 Make prevline an int, not a Lisp_Object.
1682
233f3db6
KS
16832004-10-27 Kim F. Storm <storm@cua.dk>
1684
1685 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1686 Only allocate info and discarded tables once.
1687
1688 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1689 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1690 (SAFE_FREE): Test it to determine if we need to unwind to free.
1691 Remove size arg. All users changed.
1692 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1693
1442465d
JD
16942004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1695
1696 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1697 (xg_destroy_widgets): Rename from remove_from_container.
1698 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1699 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1700 instead of remove_from_container.
1701 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1702 (free_frame_tool_bar): Add comment.
1703
1704 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1705 is not NULL before strcmp.
1706
c8636435
KS
17072004-10-26 Kim F. Storm <storm@cua.dk>
1708
1709 * callint.c (Fcall_interactively): Add 'U' code to get the
1710 up-event discarded by a previous 'k' or 'K' argument.
1711
5629f29b
DK
17122004-10-26 David Kastrup <dak@gnu.org>
1713
1714 * buffer.c (syms_of_buffer): Fix a few typos.
1715
4f2f546e
JD
17162004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1717
1718 * xsmfns.c: Put empty line between comment and function body.
1719 Use two spaces before comment end.
1720
fc1062f5
KH
17212004-10-25 Kenichi Handa <handa@m17n.org>
1722
1723 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1724 PATTERN is full XLFD.
1725
be13f5e5
KH
17262004-10-24 Kenichi Handa <handa@m17n.org>
1727
1728 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1729
1730 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1731 (regex_compile): Return REG_ERANGEX if appropriate.
1732
d0ee2ed3
KH
17332004-10-22 Kenichi Handa <handa@m17n.org>
1734
1735 * editfns.c (Ftranslate_region_internal): New function.
1736 (syms_of_editfns): Defsubr it.
1737
63ea8ea5
JD
17382004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1739
1740 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1741
c27ed90a
JD
17422004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1743
068f3848
SM
1744 * xterm.h (x_output): New member `xic_base_fontname'.
1745 (FRAME_XIC_BASE_FONTNAME): New macro.
1746 (xic_free_xfontset): Declare.
c27ed90a 1747
068f3848
SM
1748 * xfns.c (xic_create_xfontset): Share fontsets between frames
1749 based on base_fontname.
1750 (xic_free_xfontset): New function.
1751 (free_frame_xic): Use it.
1752 (xic_set_xfontset): Ditto.
c27ed90a 1753
068f3848 1754 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1755
1756
59508699
JR
17572004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1758
1759 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1760
dede2792
JD
17612004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1762
3aca2078
JD
1763 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1764 XSync.
1765
dede2792
JD
1766 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1767 New variables and constant.
1768 (main): Calculate heap_bss_diff. If we are dumping and the
1769 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1770 and exec ourself again.
1771 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1772 print a warning.
1773
1774 * lastfile.c: Make my_endbss and my_endbss_static available on all
1775 platforms.
1776
1777 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1778 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1779
1dc5ba01
LT
17802004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1781
1782 * data.c (Flocal_variable_if_set_p): Doc fix.
1783
950090be
JR
17842004-10-19 Jason Rumney <jasonr@gnu.org>
1785
1786 * w32.c (init_environment): Set emacs_dir correctly when running
1787 emacs from the build directory.
1788
8550b998
RS
17892004-10-19 Richard M. Stallman <rms@gnu.org>
1790
1791 * editfns.c (Fdelete_and_extract_region):
1792 If region is empty, return null string.
1793
08dedea6
JD
17942004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1795
1dc5ba01 1796 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1797 and canon_width.
068f3848 1798 (xg_frame_cleared): Remove.
08dedea6 1799
068f3848
SM
1800 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1801 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1802 (xg_create_scroll_bar): Put an event box widget between
1803 the scroll bar widget and the edit widget.
1804 (xg_show_scroll_bar): Show the parent widget (the event box).
1805 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1806 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1807 Move the parent (the event box) widget inside the fixed widget.
1808 Move window clear to xterm.c.
1809
068f3848 1810 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1811
08dedea6 1812 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1813 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1814 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1815 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1816
8550b998 18172004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1818
1819 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1820
84338890
JD
18212004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1822
1823 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1824 gdk_window_clear and move gdk_window_process_all_updates after
1825 clear so events are sent to the X server in correct order.
1826
6e1b0d8c
KH
18272004-10-18 Kenichi Handa <handa@m17n.org>
1828
1829 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1830 comparing font names.
8550b998 1831 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1832 (list_fontsets): Likewise.
1833
1834 * search.c (fast_string_match_ignore_case): New function.
1835
1836 * lisp.h (fast_string_match_ignore_case): Extern it.
1837
345e75a8
KS
18382004-10-17 Kim F. Storm <storm@cua.dk>
1839
1840 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1841 than bitmap if there is not left fringe.
1842 (get_overlay_arrow_glyph_row): Also used on windows system.
1843 (display_line): Display overlay string if no left fringe.
1844
be13cbb7
JR
18452004-10-16 Jason Rumney <jasonr@gnu.org>
1846
1847 * w32fns.c (w32_font_match): Encode font name being matched.
1848
c2e2ede7
RS
18492004-10-16 Richard M. Stallman <rms@gnu.org>
1850
1851 * window.c (Fspecial_display_p): Doc fix.
1852
3584d95d
SM
18532004-10-15 Stefan <monnier@iro.umontreal.ca>
1854
1855 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1856 Don't ignore menus, because where-is-internal already does it for us.
1857
699a0392
KS
18582004-10-15 Kim F. Storm <storm@cua.dk>
1859
b3c7a89b
KS
1860 * xdisp.c (redisplay_window): Only update fringes and vertical
1861 border on window frames.
699a0392 1862
4e382b0f
AS
18632004-10-14 Andreas Schwab <schwab@suse.de>
1864
1865 * m/ia64.h (DATA_SEG_BITS): Don't define.
1866
329a7be2
KS
18672004-10-14 Kim F. Storm <storm@cua.dk>
1868
1869 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1870 in some X versions.
329a7be2 1871
982241b1
SM
18722004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1873
1874 * fns.c (map_char_table): Add missing gcpros.
1875
9238467d
SM
18762004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1877
1878 * keymap.c (get_keymap): An autoload form is not a keymap.
1879
1880 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1881
4440e3ca
KS
18822004-10-13 Kim F. Storm <storm@cua.dk>
1883
7cfdabde
KS
1884 * callproc.c (Fcall_process): Simplify handling of display arg.
1885 Resume `display_on_the_fly' once a coding system is determined.
1886
4440e3ca
KS
1887 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1888
1c8dec6a
KS
18892004-10-12 Kim F. Storm <storm@cua.dk>
1890
1891 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1892 caller, such as call-process, is not going to poll for input.
1893 (calc_line_height_property): Handle case where it->object is nil.
1894
1895 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1896
170b174c
KH
18972004-10-12 Kenichi Handa <handa@m17n.org>
1898
9238467d
SM
1899 * xdisp.c (get_next_display_element):
1900 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1901 chars in octal in unibyte buffer.
1902
b583964c
KS
19032004-10-12 Kim F. Storm <storm@cua.dk>
1904
1905 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1906 are no ordinary bindings.
1907
29fabd8c
JD
19082004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1909
9238467d 1910 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1911
c3f4c690
ST
19122004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1913
9238467d
SM
1914 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1915 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1916 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1917 terminal frame.
1918 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1919 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1920 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1921 Make a cancel file-open dialog be like C-g.
9238467d
SM
1922 * mac.c (mktime): Use emacs_mktime.
1923 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1924 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1925
9688f9eb
KS
19262004-10-10 Kim F. Storm <storm@cua.dk>
1927
1928 * keyboard.c (timer_resume_idle): New function to resume idle
1929 timer without resetting timers on the idle list.
1930 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1931 (timer_start_idle, timer_stop_idle): Declare static.
1932 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1933
1934 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1935
f7f3a65f
ST
19362004-10-08 Steven Tamm <steventamm@mac.com>
1937
9238467d 1938 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1939 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1940 NULL where 0 should be used.
f7f3a65f
ST
1941 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1942 objc/malloc.h
9238467d 1943 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1944
3c7d999a
KS
19452004-10-07 Kim F. Storm <storm@cua.dk>
1946
1947 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1948 windows. Update vertical line after drawing window fringes, but
1949 only if actually drawing any bitmaps--or there is no fringe.
1950
1951 * xterm.c (x_update_window_end): Likewise.
1952 * macterm.c (x_update_window_end): Likewise.
1953 * w32term.c (x_update_window_end): Likewise.
1954
1955 * fringe.c (draw_window_fringes): Return value now indicates if
1956 any fringe bitmaps were redrawn (or there are no fringes).
1957
1958 * dispextern.h (draw_window_fringes): Update prototype.
1959
bf06c82f
ST
19602004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1961
1962 * macfns.c (mac_get_window_bounds): Add extern.
1963 (x_real_positions): Use mac_get_window_bounds.
1964
1965 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1966 xmenu.c (YAILOM).
3c7d999a 1967
bf06c82f
ST
1968 * macterm.c [!MAC_OSX]: Include Windows.h.
1969 (front_emacs_window): Rename from mac_front_window. All uses
1970 changed. Return the frontmost non-tooltip emacs window.
1971 (mac_get_window_bounds): New function.
1972 (x_calc_absolute_position): Use the difference of width and height
1973 between the inner and outer window.
1974 (x_set_offset): Specify window position by the coordinae of the
1975 outer window. Adjust the position if the title bar is completely
1976 outside the screen.
1977 (app_is_suspended, app_sleep_time): Remove unused variables.
1978 (do_app_resume, do_app_suspend): Remove their contents because
1979 window-activate/deactivate events will do the job.
1980 (do_zoom_window): Remove unused variables. Make compliant to the
1981 standard way of zooming. Set f->left_pos and f->top_pos.
1982 (XTread_socket): Don't use argument `expected'. Don't use
1983 FrontWindow to determine the clicked window. Exclude unprocessed
1984 mouseUp cases in the early stage. Add parentheses to fix operator
1985 precedence.
1986 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1987
4cbbf6b7 19882004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1989
1990 * config.in: Regenerate.
1991
1992 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1993 HAVE_EXECSHIELD.
1994
b90ee8b5
JD
19952004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1996
1997 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1998 a row if Alt or Meta has been found for that row. Also stop scanning
1999 for Keysyms for that row.
2000
904db1a2
KS
20012004-10-04 Kim F. Storm <storm@cua.dk>
2002
0207b8ad
KS
2003 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2004 to list. Include overlay arrow bitmap in return value.
2005
25f7220c
KS
2006 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2007 bars with fractional column width. If scroll bar separates two
2008 windows, move it towards the window it belongs to. Only update
2009 the padding area below the scroll bar widget when necessary,
2010 i.e. when scroll bar widget is created, moved, or resized.
2011
562020fe
KS
2012 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2013 while tracking/dragging mouse.
2014 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2015
37e34af7
KS
2016 * window.c (coordinates_in_window): Relax check for cursor
2017 on vertial border between mode lines.
2018 (Fset_window_fringes): Do not allow negative widths.
2019 (Fset_window_scroll_bars): Likewise.
2020
904db1a2
KS
2021 * .gdbinit (pp): Shorthand for p ARG + pr.
2022 (ff): New command: flush frame updates (X only).
2023
38fe4f64
MA
20242004-10-03 Michael Albinus <michael.albinus@gmx.de>
2025
2026 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2027
9de36315
KH
20282004-09-30 Kenichi Handa <handa@m17n.org>
2029
07c381ad 2030 * process.c (send_process): Free composition data.
9de36315 2031
07c381ad 2032 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2033
2034 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2035 compositions to encode.
2036 (encode_coding_string): Likewise. Free composition data.
2037
b6189c3b 20382004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2039
2040 * coding.c (code_convert_region): Free composition data.
9de36315 2041
f2a54fbc
KS
20422004-09-29 Kim F. Storm <storm@cua.dk>
2043
dc5d6435
KS
2044 * fringe.c: Remove limit on number of bitmaps.
2045 (fringe_bitmaps, fringe_faces): Change to pointers.
2046 (max_fringe_bitmaps): New var.
2047 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2048 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2049
2050 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2051 (struct glyph_row): Reorder fringe_bitmap related fields.
2052 (struct it): Likewise.
2053
2054 * w32term.c (fringe_bmp): Change to pointer.
2055 (max_fringe_bmp): New var.
2056 (w32_define_fringe_bitmap): Expand fringe_bmp.
2057 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2058 (w32_destroy_fringe_bitmap): Likewise.
2059
20602004-09-29 Kim F. Storm <storm@cua.dk>
2061
2062 * fringe.c: Simplify last change.
f2a54fbc
KS
2063 (lookup_fringe_bitmap): New function.
2064 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2065 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2066 Keep standard bitmaps in Vfringe_bitmaps.
2067 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2068 (Fset_fringe_bitmap_face): Likewise.
2069
2070 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2071 (valid_fringe_bitmap_p): Remove prototype.
2072
2073 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2074
841a8bca
KS
20752004-09-29 Kim F. Storm <storm@cua.dk>
2076
1f2da365
KS
2077 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2078 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2079
841a8bca
KS
2080 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2081
2082 * fringe.c (Vfringe_bitmaps): New variable.
2083 (syms_of_fringe): DEFVAR_LISP it.
2084 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2085 Change arg to Lisp_Object and fail if not an integer.
2086 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2087 (destroy_fringe_bitmap): New functions.
9238467d
SM
2088 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2089 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2090 clear its fringe property.
2091 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2092 Fdestroy_fringe_bitmap.
2093 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2094 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2095 and set fringe property. Signal error if no free slots.
2096 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2097 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2098
2099 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2100 symbols with a fringe property.
2101
4d965590
KS
21022004-09-27 Kim F. Storm <storm@cua.dk>
2103
2104 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2105 Doc fix. Format may now be a symbol or alist, not a cons.
2106
2107 * fringe.c (update_window_fringes): Handle new formats of
2108 indicate-buffer-boundaries (symbol or alist). No longer
2109 allow a simple cons.
2110 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2111
e888c2b3
JD
21122004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2113
9238467d 2114 * config.in: Rebuild.
e888c2b3 2115
83f1cb94
JD
21162004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2117
2118 * config.in: Rebuild.
2119
dd3b1d60 2120 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2121
2c51754c
SM
21222004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2123
2124 * xterm.c (x_term_init): Work around a bug in some X servers.
2125
3df5f8aa
RS
21262004-09-18 Richard M. Stallman <rms@gnu.org>
2127
557ca2c1
RS
2128 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2129
3df5f8aa
RS
2130 * xdisp.c (try_window_reusing_current_matrix):
2131 Handle the case where we reach the old displayed text,
2132 out of sync with the old line boundary.
2133
9238467d 21342004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2135
2136 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2137 narrowed buffer.
2138
bfa02563
KS
21392004-09-14 Kim F. Storm <storm@cua.dk>
2140
a25fe164
KS
2141 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2142
bfa02563
KS
2143 * xfaces.c (Qface_no_inherit): New var.
2144 (syms_of_xfaces): Intern and staticpro it.
2145 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2146 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2147 Don't increment face_change_count when face has non-nil
2148 face-no-inherit property.
2149
126f9c02
SM
21502004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2151
892a8eb5
SM
2152 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2153 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2154
126f9c02 2155 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2156 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2157
c0ad3b38
KS
21582004-09-12 Kim F. Storm <storm@cua.dk>
2159
2160 * editfns.c (Fformat): Handle format strings with multiple text
2161 properties. Reverse text property list from the format string,
2162 so the positions are in increasing order.
2163
844fc085
JD
21642004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2165
2166 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2167 x_uncatch_errors so that possible protocol errors are delivered.
2168
b106731c
EZ
21692004-09-10 Eli Zaretskii <eliz@gnu.org>
2170
21065c92
EZ
2171 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2172 blockinput.h.
2173 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2174 charset.h, and coding.h
9238467d 2175 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2176 (term.o): Depend on window.h and keymap.h.
2177 (abbrev.o): Depend on syntax.h.
2178 (callint.o): Depend on keymap.h.
2179 (casefiddle.o): Depend on charset.h and keymap.h.
2180 (category.o): Depend on keymap.h.
2181 (coding.o): Depend on dispextern.h.
2182 (cmds.o): Depend on keyboard.h and keymap.h.
2183 (dispnew.o): Depend on indent.h and intervals.h.
2184 (doc.o): Depend on keymap.h.
2185 (editfns.o): Depend on frame.h.
2186 (emacs.o): Depend on dispextern.h.
2187 (fileio.o): Don't depend on ccl.h.
2188 (filelock.o): Depend on charset.h and coding.h.
2189 (frame.o): Depend on w32term.h and macterm.h.
2190 (insdel.o): Depend on region-cache.h.
2191 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2192 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2193 (search.o): Depend on $(INTERVALS_SRC).
2194 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2195 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2196 xterm.h, w32term.h, and macterm.h.
2197 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2198 w32term.h, and macterm.h.
2199 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2200 region-cache.h, xterm.h, w32term.h, and macterm.h.
2201 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2202 (data.o): Depend on frame.h.
2203 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2204 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2205 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2206 (intervals.o): Depend on keymap.h.
2207
9238467d
SM
2208 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2209 Add debugging print-out to termscript.
b106731c 2210
64b7122d
RS
22112004-09-09 Richard M. Stallman <rms@gnu.org>
2212
2213 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2214
5670531e
RS
22152004-09-08 Richard M. Stallman <rms@gnu.org>
2216
6cb4a892
RS
2217 * window.c (Fset_window_buffer): Doc fix.
2218
5670531e
RS
2219 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2220
7e388eb7
JL
22212004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2222
2223 * minibuf.c (history_delete_duplicates): New variable.
2224 (read_minibuf): Use it.
2225 (syms_of_minibuf): Create the corresponding lisp variable.
2226
370e3587
KS
22272004-09-08 Kim F. Storm <storm@cua.dk>
2228
2229 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2230 overlay just before point.
2231
f844ba4e
LT
22322004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2233
2234 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2235 * buffer.c (reset_buffer, init_buffer_once):
2236 Handle auto_save_file_format field.
f844ba4e
LT
2237 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2238 `buffer-auto-save-file-format'.
f844ba4e
LT
2239 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2240 (build_annotations): Adapt to replacement of
2241 `auto-save-file-format' with the new buffer-local variable
2242 `buffer-auto-save-file-format'.
2243 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2244
f0f90717
JR
22452004-09-07 Jason Rumney <jasonr@gnu.org>
2246
2247 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2248
9238467d
SM
2249 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2250 Handle Unicode menu titles.
f0f90717 2251
4e14f66c
KS
22522004-09-07 Kim F. Storm <storm@cua.dk>
2253
2254 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2255 property from text property or overlay strings at point.
2256
9238467d 22572004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2258
2259 * xmenu.c (update_submenu_strings): YAILOM.
2260 (set_frame_menubar): Make sure last_i is initialized.
2261
1f06d367
JR
22622004-09-03 Jason Rumney <jasonr@gnu.org>
2263
1806714a 2264 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2265 (digest_single_submenu): Set lname and lkey in widget_value
2266 instead of name and key.
2267 (update_submenu_strings): New function.
2268 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2269 call update_submenu_strings.
2270
2271 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2272 (digest_single_submenu, w32_menu_show): Encode menu strings as
2273 UTF-8 if Unicode API is available.
2274 (utf8to16): New function.
2275 (add_menu_item): Use it when calling Unicode API.
1806714a 2276
46540080
KS
22772004-09-03 Kim F. Storm <storm@cua.dk>
2278
2279 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2280 in overlay or text-property strings; set cursor on corresponding
2281 glyph rather than at end of the string.
2282
9277ba61 22832004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2284
9277ba61 2285 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2286 set a new one before obtaining the global coordinate.
2287 Use FRAME_MAC_WINDOW.
2288 (x_set_name, x_set_title): Encode title to UTF8.
2289 Use SetWindowTitleWithCFString.
9277ba61
ST
2290 (Fx_server_version): Get correct OS version.
2291
1806714a
SM
2292 * macmenu.c (add_menu_item): Remove unused variable `i'.
2293 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2294
2295 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2296 BLOCK_INPUT.
2297 (x_set_offset): Use FRAME_MAC_WINDOW.
2298
2299 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2300 nontext_cursor if it is on a scroll bar.
2301
2302 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2303 Carbon support.
1806714a
SM
2304 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2305 Use LIBS_CARBON.
9277ba61 2306
b10daec7
JD
23072004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2308
2309 * xfns.c (x_set_name_internal): New function. Check if we shall call
2310 xfree before ENCODE_UTF_8.
2311 (x_set_name, x_set_title): Call x_set_name_internal.
2312
f7e22385
JR
23132004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2314
2315 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2316 reload it.
2317
2bf436c3
JD
23182004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2319
1806714a 2320 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2321 (single_submenu): Set lname and lkey in widget_value
2322 instead of name and key.
2323 (update_submenu_strings): New function.
2324 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2325 call update_submenu_strings.
2326
2bf436c3
JD
2327 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2328 instead of name and key.
2329 (update_submenu_strings): New function.
2330 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2331 call update_submenu_strings.
2bf436c3
JD
2332
2333 * gtkutil.h (_widget_value): Added lname and lkey.
2334
11715f92
ST
23352004-08-30 Steven Tamm <steventamm@mac.com>
2336
2337 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2338 by using different names for inner loop variables.
2339
5500be54
JD
23402004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2341
059cd329
JD
2342 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2343 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2344
5500be54
JD
2345 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2346 tool bar items is 0.
2347
383418e5
ST
23482004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2349
2350 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2351 strings in menu items.
2352 (single_submenu): Use ENCODE_MENU_STRING
2353 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2354 button release isn't passed to event loop
2355 (add_menu_item): Use SetMenuItemWithCFString
2356
6eb3ee72
ST
23572004-08-26 Steven Tamm <steventamm@mac.com>
2358
2359 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2360 tool-bar/menu click
2361 * macfns.c (Fx_file_dialog): Implemented using NavServices
2362
10b43ac3
JD
23632004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2364
2728b5d0
JD
2365 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2366
10b43ac3
JD
2367 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2368 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2369 (x_top_window_to_frame): Return 0 if wdesc is None.
2370
2ee3b79e
RS
23712004-08-22 Richard M. Stallman <rms@gnu.org>
2372
2373 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2374 HAVE_TERMIOS]: If there's no char for this signal, drop through
2375 and use system calls.
2376
2377 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2378
9a1ba2ea
KS
23792004-08-20 Kim F. Storm <storm@cua.dk>
2380
2381 * process.c (wait_reading_process_output): Rename from
2382 wait_reading_process_input. All uses changed.
2383 (wait_reading_process_output_1): Rename from
2384 wait_reading_process_input_1. All uses changed.
2385
2386 * dispnew.c (Fsleep_for): Remove obsolete code.
2387
295f3b30
KH
23882004-08-20 Kenichi Handa <handa@m17n.org>
2389
2390 * syntax.c (skip_chars): Fix for unibyte case.
2391
27615979
SM
23922004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2393
2394 * syntax.c (char_quoted): Mixup byte/char pos.
2395 (back_comment): Fixup globals in all cases.
2396
00267f94
JD
23972004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2398
2399 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2400 passing it to gtk_window_set_title.
2401
2439909e
KS
24022004-08-19 Kim F. Storm <storm@cua.dk>
2403
6ba0f14c
KS
2404 * process.c (wait_reading_process_input): Clean up.
2405 Add wait_for_cell, wait_proc, and just_wait_proc args
2406 to avoid overloading `read_kbd' and `do_display' args.
2407 Change read_kbd arg to int. All callers changed.
2408
2439909e
KS
2409 * process.c (process_send_signal): Use CDISABLE.
2410
2411 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2412
101c421e
KS
24132004-08-18 Kim F. Storm <storm@cua.dk>
2414
2415 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2416 forward to wait_reading_process_input via DO_DISPLAY arg.
2417 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2418 object, only process output from that process; also inhibit
2419 running timers if DO_DISPLAY==-2.
2420
c438dc33
KS
24212004-08-17 Kim F. Storm <storm@cua.dk>
2422
2423 * process.c (process_send_signal): Fix last change--use
2424 _POSIX_VDISABLE instead of CVDISABLE when available.
2425
8afc13c6
RS
24262004-08-16 Richard M. Stallman <rms@gnu.org>
2427
2428 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2429 Set VQUIT and VINTR chars to the standard ones if they are unset.
2430 [AIX]: Don't do that here. And don't force VINTR to standard
2431 when SIGNALS_VIA_CHARACTERS.
2432
c438dc33 2433 * process.c (process_send_signal)
8afc13c6
RS
2434 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2435 Do nothing if the character is CVDISABLE.
2436
2437 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2438
c438dc33 2439 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2440 Force POSITION to be between BEGV and ZV.
2441
6dad1714
JPW
24422004-08-14 John Paul Wallington <jpw@gnu.org>
2443
2444 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2445
2446 * fileio.c (Fread_file_name): Doc fix.
2447
2448 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2449
2bd77330
LT
24502004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2451
2452 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2453
c90e7e43
LT
24542004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2455
2456 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2457 Qdisabled_command_hook.
c90e7e43 2458 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2459 Qdisabled_command_hook.
c90e7e43
LT
2460 (syms_of_keyboard): Ditto.
2461
81909a1a
LT
24622004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2463
2464 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2465 (syms_of_keymap) <key-translation-map>: Doc fixes.
2466
0cedd530
SM
24672004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2468
1725a7c9
SM
2469 * window.c (window_list_1): YAILOM.
2470
0cedd530
SM
2471 * fileio.c (make_temp_name): Handle multibyte prefixes.
2472
2515a131
LT
24732004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2474
2475 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2476 Doc fix.
2477
c8b20fb7
KH
24782004-08-03 Kenichi Handa <handa@m17n.org>
2479
2480 * coding.c (decode_coding_string): Adjust coding->consumed, and
2481 etc. with shrinked_bytes.
2482
fb8b092b
KS
24832004-08-03 Kim F. Storm <storm@cua.dk>
2484
2485 * indent.c (compute_motion): Fix check for full width window
2486 in non-window case. Do not count left truncation glyph on
2487 window systems.
2488
df133612
LT
24892004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2490
2491 * data.c (Finteractive_form): Doc fix.
2492
0f7a93c1
KS
24932004-08-02 Kim F. Storm <storm@cua.dk>
2494
2495 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2496 properly accounting for continuation glyph on non-window systems.
2497 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2498 actual window width/height if TOPOS is nil, properly accounting for
2499 continuation glyphs on non-window systems, and optional header lines.
2500 (vmotion): Let compute_motion calculate actual window width.
2501
2502 * window.c (window_scroll_line_based): Let compute_motion
2503 calculate actual window width.
2504
f491e1ed
KS
25052004-08-02 Kim F. Storm <storm@cua.dk>
2506
2507 * process.c (read_process_output): Use whole read buffer.
2508 Don't trigger adaptive read buffering on errors.
2509
83f64226
LT
25102004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2511
2512 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2513
2514 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2515
2516 * callint.c (Fcall_interactively): Doc fix.
2517
8afc13c6
RS
25182004-07-30 Richard M. Stallman <rms@gnu.org>
2519
2520 * abbrev.c (Fexpand_abbrev): Undo previous change.
2521
7c111482
KS
25222004-07-30 Kim F. Storm <storm@cua.dk>
2523
2524 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2525
ee945d08
LT
25262004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2527
2528 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2529
3f911c94
KS
25302004-07-27 Kim F. Storm <storm@cua.dk>
2531
2532 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2533 we have ensured that the glyph fits on the current line (or returned
2534 MOVE_LINE_CONTINUED otherwise).
2535
f29ff8c7
KS
25362004-07-26 Kim F. Storm <storm@cua.dk>
2537
2538 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2539 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2540 if target position is at end of display line but char is not a newline.
2541
81159bb9
RS
25422004-07-25 Richard M. Stallman <rms@gnu.org>
2543
ab431b61
RS
2544 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2545 instead of ON_VERTICAL_BORDER, when on scroll bar.
2546 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2547
2548 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2549
f29ff8c7 2550 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2551 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2552
2553 * alloc.c (check_cons_list): New function (contents commented out).
2554
fc820cc5
LT
25552004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2556
2557 * xfaces.c (Fcolor_supported_p): Doc fix.
2558
2559 * frame.c (Fselect_frame, Fset_frame_selected_window)
2560 (Fframe_visible_p, Fraise_frame): Doc fixes.
2561
289978b5
LT
25622004-07-24 Richard M. Stallman <rms@gnu.org>
2563
78819ebb 2564 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2565
2566 * fileio.c (Fwrite_region): Doc fix.
2567
2568 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2569
2570 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2571 only when a real abbrev is present.
2572
289978b5
LT
2573 * xfns.c (x_icon_verify): New function.
2574 (Fx_create_frame): Use it.
2575
63cc10ae
KS
25762004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2577
2578 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2579
36f826d4
KS
25802004-07-21 Kim F. Storm <storm@cua.dk>
2581
2582 * window.h (struct glyph_matrix): New members nrows_scale_factor
2583 and ncols_scale_factor.
2584
2585 * window.c (make_window): Initialize nrows_scale_factor and
2586 ncols_scale_factor members.
2587
2588 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2589 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2590 (required_matrix_height): Apply nrows_scale_factor.
2591 (required_matrix_width): Apply ncols_scale_factor.
2592
2593 * xdisp.c (display_line): Increment nrows_scale_factor and set
2594 fonts_changed_p if past last allocated row.
2595 (append_glyph, append_composite_glyph, produce_image_glyph)
2596 (append_stretch_glyph): Increment ncols_scale_factor and set
2597 fonts_changed_p if current area is full.
2598
5fc1c546
JD
25992004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2600
2601 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2602
cb7516e5
LT
26032004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2604
2605 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2606 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2607 (Fset_window_start, Fscroll_up, Fscroll_down)
2608 (Fother_window_for_scrolling, Fscroll_other_window)
2609 (Fsave_window_excursion, Fset_window_vscroll)
2610 (syms_of_window) <window-size-fixed>: Doc fixes.
2611
b6189c3b 26122004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2613
2614 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2615 ENCODE_SYSTEM for filenames.
2616
bfcf6608
ST
26172004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2618
2619 * mac.c (sys_select): Block input around call to
2620 ReceiveNextEvent to prevent breakage. Correctly handle
2621 blocking on event queue only by calling ReceiveNextEvent
2622 instead of select (since GUI events aren't on an fd).
2623 (sys_read): Remove function
2624 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2625
e082ac9d
ST
26262004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2627
2628 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2629 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2630
cb7516e5 2631 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2632 frame creation.
2633
2634 * keyboard.c: Undef SIGIO on Carbon
2635
2636 * atimer.c (alarm_signal_handler): Call alarm handlers after
2637 scheduling.
2638
2639 * eval.c (Feval): Remove quit_char test
2640
2641 * process.c (wait_reading_process_input): Remove clearing
2642 stdin for select call on process input.
2643
4b9da0fb
LT
26442004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2645
1204e81c
LT
2646 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2647 capitalization error in docstring.
4b9da0fb 2648
26503ad2
JB
26492004-07-17 Juanma Barranquero <lektu@terra.es>
2650
2651 * keyboard.c (not_single_kboard_state): Do nothing unless
2652 MULTI_KBOARD is defined.
2653
3751eb00
RS
26542004-07-17 Richard M. Stallman <rms@gnu.org>
2655
2656 * window.c (coordinates_in_window): Inside the window but outside
2657 its box to the L or R, return ON_VERTICAL_BORDER.
2658 (window_list_1): Rotate the list to start with WINDOW.
2659
2660 * print.c (print_preprocess): Test for print_depth at limit
2661 before entering in being_printed.
2662
2663 * keyboard.c (not_single_kboard_state): New function.
2664 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2665
2666 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2667 this kboard, and we delete its last frame, go to any_kboard_state.
2668
2669 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2670
b6189c3b 26712004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2672
2673 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2674 system before passing them to OS functions for display.
2675
0f6af254
DK
26762004-07-15 David Kastrup <dak@gnu.org>
2677
f9253326
KS
2678 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2679 Apparently fixes an abort condition.
0f6af254 2680
386c8f42
LT
26812004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2682
2683 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2684 instead of a cons.
2685
366511da
MB
26862004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2687
2688 * keyboard.c (echo_dash): Do nothing if there already is a dash
2689 at the end of the echo string.
2690
f85409d3
KS
26912004-07-12 Kim F. Storm <storm@cua.dk>
2692
2693 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2694 if GC_MARK_STACK.
2695
0ba2e87b
LT
26962004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2697
da38045d
LT
2698 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2699
0ba2e87b
LT
2700 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2701 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2702 (Freplace_buffer_in_windows, Fset_window_buffer)
2703 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2704 (syms_of_window): Expand docstring of `display-buffer-function'.
2705
5668fbb8
LT
27062004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2707
2708 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2709 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2710 that time values of the type (HIGH . LOW) are considered obsolete.
2711
a085bf9d
LT
27122004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2713
669de2fb
LT
2714 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2715 docstring.
2716
bac66325 2717 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2718
8e975df9
JPW
27192004-07-06 John Paul Wallington <jpw@gnu.org>
2720
2721 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2722
fa164e6a
JPW
2723 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2724
2bac9bb1
JD
27252004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2726
2727 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2728 instead of CGMainDisplayID (only in OSX 10.2 and later).
2729
316ef0dc
JPW
27302004-07-04 John Paul Wallington <jpw@gnu.org>
2731
2732 * fileio.c (read_file_name_completion_ignore_case): New variable.
2733 (syms_of_fileio): Declare and initialise it.
2734 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2735
2a1a35c6
EZ
27362004-07-03 Eli Zaretskii <eliz@gnu.org>
2737
2738 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2739 for event.x and event.y.
2740
33a72331
KH
27412004-07-01 Kenichi Handa <handa@m17n.org>
2742
2743 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2744 after getting a new string by pre-write-conversion.
2745
9238467d 27462004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2747
2748 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2749 (x_calc_absolute_position): Remove unused var `child'.
2750
2751 * xfaces.c (x_supports_face_attributes_p)
2752 (Fdisplay_supports_face_attributes_p): YAILOM.
2753 (tty_supports_face_attributes_p): Remove unused var `i'.
2754
2755 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2756 back_unibyte_ok.
2757
2758 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2759
2760 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2761
2762 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2763
f96ec754
AS
27642004-06-30 Andreas Schwab <schwab@suse.de>
2765
2766 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2767 (Finit_image_library): Pass LIBRARIES through to
2768 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2769 (lookup_image_type): Pass Qnil as second argument to
2770 Finit_image_library.
2771
78819ebb 2772 * lisp.h (Finit_image_library): Declare.
f96ec754 2773
59feca74 27742004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2775
31983645
AS
2776 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2777 (XTread_socket): Send mouse button events to the toolbox
2778 dispatcher even when the mouse is grabbed. Don't process window
2779 activate events for non-Emacs windows. Replace function calls to
2780 do_window_activate and do_window_deactivate with their contents.
2781 Reset mouse grabbing status when a window is deactivated.
59feca74 2782
c61278bb
ST
27832004-06-29 Steven Tamm <steventamm@mac.com>
2784
2785 * macterm.c (mac_get_emulated_btn)
2786 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2787 support to correctly mask out modifiers.
2788
c3762cbd
DK
27892004-06-29 David Kastrup <dak@gnu.org>
2790
2791 * search.c (Fset_match_data): Allow buffer before end of list
2792 which can happen if set-match-data is using a pre-consed list.
2793
c61278bb 27942004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2795
2796 * macterm.c (XTread_socket): Correctly set the frame position
2797 after the window is moved.
2798
74cdfe05
JD
27992004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2800
2801 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2802 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2803 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2804 so insensitive and activated icons look ok.
74cdfe05 2805
ef544dc8
JR
28062004-06-27 Jason Rumney <jasonr@gnu.org>
2807
2808 * w32fns.c (file_dialog_callback): Disable edit control if set
2809 to directories only on CDN_INITDONE message.
2810 (Fx_file_dialog): Default to directories only when prompt starts
2811 with "Dired".
2812
7b7990cc
KS
28132004-06-25 Kim F. Storm <storm@cua.dk>
2814
2815 * alloc.c (allocate_misc): Update total_free_markers.
2816 (free_misc): New function.
2817 (safe_alloca_unwind, free_marker): Use it.
2818
2819 * lisp.h (free_misc): Add prototype.
2820
2821 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2822
d8c379f8
RS
28232004-06-24 Richard M. Stallman <rms@gnu.org>
2824
2825 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2826 (syms_of_emacs): Lisp variables deleted.
2827
559cdd07
DK
28282004-06-23 David Kastrup <dak@gnu.org>
2829
94939b84
DK
2830 * search.c (Freplace_match): Adjust the match-data more thoroughly
2831 when replacing strings in the buffer.
2832 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2833 a buffer, add the buffer as last element to the match data.
2834 (Fset_match_data): If an additional element of the match-data is a
2835 buffer, restore it to last_thing_searched.
c8d09ad8 2836 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2837 (restore_match_data): Restore it again.
2838
dce417e7
LT
28392004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2840
2841 * keymap.c (Ftext_char_description): Doc fix.
2842 * doc.c (Fsnarf_documentation): Doc fix.
2843
ef54b2d0
KS
28442004-06-22 Kim F. Storm <storm@cua.dk>
2845
b5bc4d05
KS
2846 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2847
ef54b2d0
KS
2848 * lisp.h (struct Lisp_Save_Value): New member dogc.
2849 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2850 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2851 (SAFE_FREE_LISP): New macro.
2852
2853 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2854 (make_save_value): Init new dogc member.
2855 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2856
2857 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2858 SAFE_FREE_LISP macros.
2859
3d33d993
KS
28602004-06-22 Kim F. Storm <storm@cua.dk>
2861
2862 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2863 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2864 in that memory area are unknown to GC. Add comments.
2865
2866 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2867
5c917f98
KS
28682004-06-21 Kim F. Storm <storm@cua.dk>
2869
2870 * lisp.h (MAX_ALLOCA): Define here.
2871 (safe_alloca_unwind): Add prototype.
2872 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2873
2874 * alloc.c (safe_alloca_unwind): New function.
2875
2876 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2877
2878 * charset.c (Fstring): Use SAFE_ALLOCA.
2879
2880 * coding.c (MAX_ALLOCA): Remove define.
2881
2882 * data.c (MAX_ALLOCA): Remove define.
2883 (Faset): Use SAFE_ALLOCA.
2884
2885 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2886
2887 * fns.c (string_make_multibyte, string_to_multibyte)
2888 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2889 (MAX_ALLOCA): Remove define.
2890 (Fbase64_encode_region, Fbase64_encode_string)
2891 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2892 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2893 memory leak if encoding fails.
2894
2895 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2896
9a09408e
EZ
28972004-06-21 Eli Zaretskii <eliz@gnu.org>
2898
2899 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2900
376de739
RS
29012004-06-20 Richard M. Stallman <rms@gnu.org>
2902
2903 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2904
2905 * search.c (match_limit): Cleaner err msg when no match data available.
2906
2907 * window.c (syms_of_window): Doc fix.
2908
2909 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2910 for Vtransient_mark_mode.
2911
2912 * buffer.c (syms_of_buffer): Doc fix.
2913
acd81db9
DK
29142004-06-21 David Kastrup <dak@gnu.org>
2915
2916 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2917 and unbinding of `case-fold-search' according to
2918 `completion-ignore-case' around calls of string-match and
2919 predicates, respectively. Should give satisfactory performance
2920 in all relevant cases.
2921
f303762d
JD
29222004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2923
95911c74
JD
2924 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2925 clip_x/y_origin.
2926
a6cb6b78
JD
2927 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2928
f303762d
JD
2929 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2930
2931 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2932 on Mac OSX.
2933
bbdb2684
LT
29342004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2935
2936 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2937
5ea48b1c
KS
29382004-06-16 Kim F. Storm <storm@cua.dk>
2939
2940 * dispextern.h (Vimage_types): Remove extern.
2941
803aac3e
MB
29422004-06-16 Miles Bader <miles@gnu.org>
2943
2944 * image.c (lookup_image_type): Initialize image type if necessary.
2945
cdc97764
KS
29462004-06-15 Kim F. Storm <storm@cua.dk>
2947
c4a5739c
KS
2948 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2949 margin at top of window.
2950 (try_window_reusing_current_matrix): Calculate proper cursor position
2951 after scrolling up with non-zero scroll margin, as the old cursor
2952 position corresponds to value of PT before executing this command.
2953 (try_window_id): Consider scroll margin at bottom of window too;
2954 otherwise we fail to scroll when hl-line-mode is enabled.
2955
cdc97764
KS
2956 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2957 proper format and class is a lower-case word.
2958
5b166323
JD
29592004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2960
2961 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2962 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2963 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2964 xg_get_gdk_pixmap_and_mask.
cdc97764 2965
5b166323
JD
2966 * xterm.h (struct x_display_info): Typo in comment fixed.
2967
1ebd4f78
JB
29682004-06-14 Juanma Barranquero <lektu@terra.es>
2969
2970 * dispextern.h (Vimage_types): Make it conditional on
2971 HAVE_WINDOW_SYSTEM.
2972
2973 * image.c (Vimage_types): Move from xdisp.c.
2974 (Vimage_type_cache): New variable.
2975 (define_image_type): New argument indicating whether an image
2976 library was loaded; cache loaded status and return t on success,
2977 nil otherwise.
2978 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2979 (w32_delayed_load): New function to load an image library from a
2980 list of possible filenames.
2981 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2982 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2983 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2984 (Finit_image_library): New function, extracted from `init_image'.
2985 Try to initialize an image library on demand and cache whether we
2986 were successful or not.
2987 (syms_of_image): Initialize `Vimage_types' and
2988 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2989 Export `init-image-library'.
2990 (init_image): Remove initialization of all image types, except xbm
2991 and pbm.
2992
2993 * xdisp.c (Vimage_types): Delete (moved to image.c).
2994
904ee128
AS
29952004-06-14 Andreas Schwab <schwab@suse.de>
2996
2997 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2998 Avoid calling specbind when completion-regexp-list is empty.
2999
092de21d
RS
30002004-06-13 Richard M. Stallman <rms@gnu.org>
3001
3002 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3003 (re_wctype, re_iswctype, re_wctype_to_bit):
3004 Non-function definitions moved here from regex.c.
1ebd4f78 3005
092de21d
RS
3006 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3007 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3008 (re_wctype, re_iswctype, re_wctype_to_bit):
3009 Non-function definitions moved to regex.h.
3010
3011 * window.c (Fselect_window): Doc fix.
3012
3013 * syntax.c: Include regex.h.
3014 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3015 If requested, make a list of classes, then check the scanned
3016 chars for membership in them.
3017 (in_classes): New function.
3018 Doc fix.
3019
3020 * keyboard.c (cmd_error): Don't call any_kboard_state
3021 if inside a recursive edit level.
3022
30232004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3024
3025 * keyboard.c (command_loop): Call any_kboard_state before
3026 command_loop_2 when at top level.
3027
3ebc0939
AS
30282004-06-13 Andreas Schwab <schwab@suse.de>
3029
cea5d0d4
AS
3030 * print.c (print_object): Always use %ld for printing EMACS_INT.
3031
3032 * keyboard.c (cancel_hourglass_unwind): Return a value.
3033 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3034 (Fexecute_extended_command): Likewise.
3035
3036 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3037 avoid clashes.
3038 (SYNTAX): Likewise.
3039 (SYNTAX_WITH_FLAGS): Likewise.
3040 (SYNTAX_MATCH): Likewise.
3041
3042 * syntax.c (char_quoted): Avoid warning about undefined operation.
3043 (find_defun_start): Likewise.
3044 (scan_lists): Likewise.
3045 (INC_FROM): Likewise.
3046 (scan_sexps_forward): Likewise.
3047
be8c4ce4
AS
3048 * image.c: Include <ctype.h>.
3049
3ebc0939
AS
3050 * xfaces.c (face_attr_equal_p): Declare parameters.
3051
6fb41b5b
KH
30522004-06-13 Kenichi Handa <handa@m17n.org>
3053
3054 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3055
fc3095ce
EZ
30562004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3057
3058 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3059
66189a40
KH
30602004-06-12 Kenichi Handa <handa@m17n.org>
3061
3062 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3063 ccl_prog_stack_struct and update it.
3064 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3065 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3066 ccl->eof_ic on EOF.
3067 (ccl_debug_hook): New function.
3068 (struct ccl_prog_stack): New member eof_ic.
3069 (ccl_driver): Handle EOF in subrountine call correctly.
3070
30712004-06-11 Kenichi Handa <handa@m17n.org>
3072
3073 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3074
1da71023
KS
30752004-06-11 Kim F. Storm <storm@cua.dk>
3076
3077 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3078
e9efcef4
JB
30792004-06-11 Juanma Barranquero <lektu@terra.es>
3080
3081 * keyboard.c (Fposn_at_point): Doc fix.
3082
9b9ceb61
DK
30832004-06-11 David Kastrup <dak@gnu.org>
3084
3085 * search.c (match_limit): Don't flag an error if match-data
3086 exceeding the allocated search_regs.num_regs gets requested, just
3087 return Qnil.
3088
6e87ac8f
MB
30892004-06-08 Miles Bader <miles@gnu.org>
3090
3091 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3092
0b0dea7b
JB
30932004-06-07 Juanma Barranquero <lektu@terra.es>
3094
3095 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3096 (Fcurrent_time_string, Fcurrent_time_zone)
3097 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3098
a0a23346
MB
30992004-06-07 Miles Bader <miles@gnu.org>
3100
08384afd 3101 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3102 (push_named_merge_point): New function.
3103 (merge_named_face): New function.
3104 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3105 Use `merge_named_face'.
3106 (merge_face_inheritance): Function removed.
c8d09ad8 3107 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3108 Add new `err_msgs' and `named_merge_points' args. Return error
3109 status. Only print error messages if ERR_MSGS is true. Don't try to
3110 do :inherit attribute validation.
3111 (merge_face_heights): Handle `unspecified' in both directions.
3112 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3113 Call `merge_face_ref' instead of `merge_face_inheritance'.
3114 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3115 (compute_char_face, face_at_buffer_position)
3116 (face_at_string_position): Call `merge_face_ref' instead of
3117 `merge_face_vector_with_property'.
3118
12d5b185
KH
31192004-06-07 Kenichi Handa <handa@m17n.org>
3120
3121 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3122 the necessary places.
3123
2e2d7ee6
KS
31242004-06-07 Kim F. Storm <storm@cua.dk>
3125
3126 * process.c (Fdelete_process): Undo 2004-05-28 change.
3127 Instead, call status_notify also for network process.
3128 (status_message): Use process instead of status as arg.
3129 Give messages "deleted" or "connection broken by remote peer" for
3130 an exited network process.
3131 (status_notify): Change call to status_message.
3132 (read_process_output): Increase readmax to 4096. Do not increase
3133 buffer size for datagram channels (default is now large enough).
3134
fcf0d299
ST
31352004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3136
3137 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3138 problem due to newly defined variable.
3139
0722292b
MB
31402004-06-06 Miles Bader <miles@gnu.org>
3141
3142 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3143 immediately if non-interactive or not initialized.
3144
ddfb8369
RS
31452004-06-05 Richard M. Stallman <rms@gnu.org>
3146
3147 * minibuf.c (Fcompleting_read): Doc fix.
3148
57015754
AS
31492004-06-05 Andreas Schwab <schwab@suse.de>
3150
3151 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3152
23715ea6
JB
31532004-06-05 Juanma Barranquero <lektu@terra.es>
3154
3155 * keymap.c (Fdescribe_vector): Fix docstring.
3156 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3157
8e330b22
MB
31582004-06-05 Miles Bader <miles@gnu.org>
3159
3160 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3161 attributes have different values than the default face.
3162
9742a3a6
EZ
31632004-06-04 Eli Zaretskii <eliz@gnu.org>
3164
3165 * xfaces.c (x_supports_face_attributes_p): Make this function
3166 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3167 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3168 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3169
9717e36c
MB
31702004-06-04 Miles Bader <miles@gnu.org>
3171
3172 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3173 from Ftty_supports_face_attributes_p.
3174 (x_supports_face_attributes_p): New function.
3175 (Ftty_supports_face_attributes_p): Function deleted.
3176 (Fdisplay_supports_face_attributes_p): New function.
3177 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3178 (face_attr_equal_p): New function.
9717e36c
MB
3179 (lface_equal_p): Use it.
3180
52deb19f
JB
31812004-06-03 Juanma Barranquero <lektu@terra.es>
3182
3183 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3184 (Vw32_color_map): Fix typo in docstring.
3185 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3186 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3187 Make argument names match their use in docstring.
3188
86d373e6
JB
31892004-06-02 Juanma Barranquero <lektu@terra.es>
3190
3191 Work around bugs/problems with MinGW builds of graphics libraries
3192 called from MSVC builds of Emacs.
3193
3194 * image.c (lookup_image): Make pointer to img static.
3195 (png_read_from_memory): Disable "global" optimization.
3196
2fb0ce67
SM
31972004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3198
c8d09ad8
SM
3199 * eval.c (Fcondition_case): Fix usage. Simplify.
3200
2fb0ce67
SM
3201 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3202
50bf7673
ST
32032004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3204
3205 * macfns.c: Don't include ccl.h.
3206 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3207 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3208 TextUtils.h.
c8d09ad8 3209 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3210 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3211 display height/width.
3212 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3213 (unwind_create_tip_frame, compute_tip_xy): New functions.
3214 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3215 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3216 and last_show_tip_args.
2fb0ce67 3217
50bf7673
ST
3218 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3219 (Cursor, No_Cursor): New defines.
c8d09ad8 3220 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3221 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3222
3223 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3224
3225 * macterm.c: Don't include Gestalt.h.
3226 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3227 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3228 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3229 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3230 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3231 (construct_mouse_click, XTmouse_position)
3232 (x_scroll_bar_report_motion, x_calc_absolute_position)
3233 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3234 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3235 (note_mouse_movement): Clear the mouse face and reset the pointer
3236 shape when the pointer goes outside the frame without grabbing.
3237 (mac_front_window): New function.
3238 (mac_window_to_frame): New macro.
3239 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3240 (do_window_activate, do_window_deactivate, do_app_resume)
3241 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3242 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3243 (mac_check_for_quit_char): Use mac_front_window and/or
3244 mac_window_to_frame.
3245 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3246 scroll-bar click event.
3247 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3248 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3249 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3250 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3251 (do_window_update): Don't do anything if the updated window is the
3252 tooltip window.
3253 (do_mouse_moved): Handle mouse movement events here (previously in
3254 XTread_socket). Clear the mouse face if
3255 dpyinfo->mouse_face_hidden is set.
3256 (do_os_event, do_events): Remove (now in XTread_socket).
3257 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3258 Loop until all the events in the queue are processed.
3259 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3260 contents of do_os_event and do_events. Remove mouse movement
3261 handling (now in do_mouse_moved). Add the case where
3262 Vmouse_highlight has an integer value.
3263 (NewMacWindow): Remove.
3264 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3265 excess initializations.
3266 (make_mac_terminal_frame): Previous initializations in
3267 make_mac_frame are moved here.
c8d09ad8
SM
3268 (mac_initialize_display_info):
3269 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3270
3271 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3272 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3273
08fd1251
RS
32742004-05-29 Richard M. Stallman <rms@gnu.org>
3275
3276 * lisp.h (truncate_undo_list): Update decl.
3277
3278 * alloc.c (undo_outer_limit): New variable.
3279 (syms_of_alloc): Defvar it.
3280 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3281
3282 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3283
3284 * alloc.c (lisp_align_malloc): Check for base == 0
3285 regardless of HAVE_POSIX_MEMALIGN.
3286 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3287
227ef0ff
SM
32882004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3289
3290 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3291 (marker_blocks_pending_free): Remove.
3292 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3293 Mark the undo lists after claning them up.
3294 Don't free block in marker_blocks_pending_free.
3295 (mark_buffer): Don't mark undo_list.
3296 (gc_sweep): Sweep hash-tables and strings first.
3297 Do free marker blocks that are empty.
3298
034a6113
SM
32992004-05-28 Jim Blandy <jimb@redhat.com>
3300
3301 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3302 after 'case wordend'. For symbeg and symend, print to stderr,
3303 like the other cases.
3304
33594a8d
NF
33052004-05-28 Noah Friedman <friedman@splode.com>
3306
3307 * process.c (Fdelete_process): Do not call remove_process.
3308
ce50a847
SM
33092004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3310
3311 * alloc.c (struct backtrace): Remove.
3312 (Fgarbage_collect): Use the new mark_backtrace.
3313
3314 * eval.c (mark_backtrace): New function.
3315
3316 * minibuf.c (run_exit_minibuf_hook): New function.
3317 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3318 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3319
1e8dae36
KS
33202004-05-27 Kim F. Storm <storm@cua.dk>
3321
3322 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3323 over display properties, e.g. images, that replace buffer text.
3324
846faa3b
KS
33252004-05-25 Kim F. Storm <storm@cua.dk>
3326
3327 * alloc.c (marker_blocks_pending_free): New var.
3328 (gc_sweep): Store free marker blocks on that list.
3329 (Fgarbage_collect): Free them after undo-list cleanup.
3330
3331 * process.c (wait_reading_process_input): Check connect_wait_mask
3332 before actually accepting connection in case it has already been
3333 accepted due to recursion.
3334
b6189c3b 33352004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3336
ce50a847
SM
3337 * coding.c (Fset_safe_terminal_coding_system_internal):
3338 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3339
71d5a208
RS
33402004-05-22 Richard M. Stallman <rms@gnu.org>
3341
3342 * alloc.c (Fmake_string): Doc fix.
3343
3344 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3345 and the alist pairs too.
3346
3347 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3348
3349 * emacs.c (main): Update copyright year.
3350
3351 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3352
3353 * insdel.c (del_range_2, replace_range): Don't write an anchor
3354 if the gap is empty.
3355
3356 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3357 scroll-down-aggressively is small but positive, put point
3358 near the screen edge.
3359
f63fd14e
JB
33602004-05-22 Juanma Barranquero <lektu@terra.es>
3361
3362 * keymap.c (Fdefine_key): Doc fix.
3363
4d12067c
KS
33642004-05-22 Kim F. Storm <storm@cua.dk>
3365
3366 * alloc.c (struct backtrace): Add debug_on_exit member.
3367 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3368 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3369 the removed cons cells.
3370 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3371 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3372 any cons cells pointing to unallocated stings.
3373 Do not lisp_free any marker blocks, as there may still be pointers
3374 to them from buffer undo lists at this stage of GC.
3375
3376 * keyboard.c (struct backtrace): Add debug_on_exit member.
3377 (Fcommand_execute): Clear it.
3378
931285e2
LT
33792004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3380
3381 * intervals.c (lookup_char_property): Do not prematurely return nil.
3382
669fa600
SM
33832004-05-19 Jim Blandy <jimb@redhat.com>
3384
3385 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3386 beginning and end of symbols.
4d12067c 3387
669fa600
SM
3388 * regex.c (enum syntaxcode): Add Ssymbol.
3389 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3390 (re_opcode_t): New opcodes `symbeg' and `symend'.
3391 (print_partial_compiled_pattern): Print the new opcodes properly.
3392 (regex_compile): Parse the new operators.
ce50a847 3393 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3394 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3395 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3396 (re_match_2_internal): Match symbeg and symend.
3397
3398 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3399
0d8c2e5c
KS
34002004-05-19 Kim F. Storm <storm@cua.dk>
3401
3402 * .gdbinit (xsymbol): Fix last change.
3403
669fa600
SM
34042004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3405
3406 * .gdbinit (xprintstr): New fun.
3407 (xstring, xprintsym): Use it.
3408
3409 * w32proc.c (create_child): Use INTMASK.
3410
3411 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3412 unmarked elements of the undo list.
3413
9a6a4c40
DP
34142004-05-18 David Ponce <david@dponce.com>
3415
3416 * print.c (print): Reset print_depth before to call print_object.
3417
f3c4ec74
JR
34182004-05-18 Jason Rumney <jasonr@gnu.org>
3419
3420 * w32console.c: Prefix RIF functions with w32con_ to avoid
3421 namespace clash with functions in term.c and w32term.c.
3422
3423 * w32menu.c (add_menu_item, w32_menu_display_help)
3424 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3425
0d8c2e5c 3426 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3427
6be49c3a
EZ
34282004-05-18 Eli Zaretskii <eliz@gnu.org>
3429
4d0b9a0a
EZ
3430 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3431
6be49c3a
EZ
3432 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3433 with make_number.
3434 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3435 with XINT.
3436
0bc90bba
KS
34372004-05-18 Kim F. Storm <storm@cua.dk>
3438
89d19988
KS
3439 * blockinput.h (INPUT_BLOCKED_P): New macros.
3440
3441 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3442 (Ftop_level): Unblock input if blocked.
3443
0bc90bba
KS
3444 * buffer.h (GET_OVERLAYS_AT): New macro.
3445 * msdos.c (IT_note_mouse_highlight): Use it.
3446 * textprop.c (get_char_property_and_overlay): Use it.
3447 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3448 * xfaces.c (face_at_buffer_position): Use it.
3449
3450 * print.c (print_object): Increase buf size.
3451
653bd0f6
JR
34522004-05-17 Jason Rumney <jasonr@gnu.org>
3453
3454 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3455 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3456 Lisp_Object using i member.
3457 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3458 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3459 consistently.
3460
3461 * w32proc.c (create_child): Use make_number instead of masking pid.
3462
3463 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3464 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3465 Use EQ to compare Lisp_Objects.
3466 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3467
3468 * w32term.c (w32_num_mouse_buttons): Rename from
3469 Vw32_num_mouse_buttons and make it an int.
3470
3471 * w32.c (init_environment): Use it.
3472
3473 * w32fns.c (w32_wnd_proc): Likewise.
3474
3475 * w32proc.c (w32_pipe_read_delay): Rename from
3476 Vw32_pipe_read_delay and make it an int.
3477
3478 * w32.c (_sys_read_ahead): Use it.
3479
3480 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3481
3482 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3483
3484 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3485 (key_event): Don't mix Lisp_Object and int.
3486
3487 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3488
3489 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3490 modifiers in language change event.
3491
54b53ba7
KS
34922004-05-17 Kim F. Storm <storm@cua.dk>
3493
3494 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3495 Such objects may be freed markers which still exist on an undo list.
3496
6e86a75d
JB
34972004-05-16 Juanma Barranquero <lektu@terra.es>
3498
3499 * data.c (Fset_default): Make argument names match their use in
3500 docstring.
3501
fc80da24
AS
35022004-05-15 Andreas Schwab <schwab@suse.de>
3503
3504 * emacs.c (gdb_array_mark_flag): Define.
3505 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3506
c1380aa6
EZ
35072004-05-15 Eli Zaretskii <eliz@gnu.org>
3508
3509 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3510 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3511 defined for the MS-DOS build.
3512
89458937
SM
35132004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3514
3515 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3516
08020f9a
KH
35172004-05-14 Kenichi Handa <handa@m17n.org>
3518
3519 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3520
a433994a
ST
35212004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3522
3523 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3524 section to frame.c section.
3525 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3526 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3527
a433994a 3528 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3529
a433994a 3530 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3531
a433994a
ST
3532 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3533 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3534 (XTread_socket): Fix int/Lisp_Object mixup.
3535 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3536
a433994a
ST
3537 * macterm.h (struct frame, struct face, struct image)
3538 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3539 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3540 Add prototypes.
a433994a 3541
b51a51b9
KS
35422004-05-14 Kim F. Storm <storm@cua.dk>
3543
3544 * process.c (wait_reading_process_input): Make reentrant.
3545 Make Available and Connecting non-static. Save and restore value
3546 of waiting_for_user_input_p.
3547
2bde1dd8
KS
35482004-05-13 Kim F. Storm <storm@cua.dk>
3549
3550 * keyboard.c (mark_kboards): Don't mark x and y members
3551 that are overloaded in selection request events.
3552
a267ab4d
SM
35532004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3554
3555 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3556
eb15ce9e
GM
35572004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3558
3559 * window.c (Fdisplay_buffer, Fsplit_window)
3560 (split-height-threshold): Doc fix.
3561
7fc92635
JB
35622004-05-13 Juanma Barranquero <lektu@terra.es>
3563
3564 * xfaces.c (Ftty_supports_face_attributes_p)
3565 (Finternal_copy_lisp_face): Fix typo in docstring.
3566 (Finternal_get_lisp_face_attribute): Fix docstring.
3567
1ec2a572
JD
35682004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3569
3570 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3571
ae9292e0
ST
35722004-05-11 Steven Tamm <steventamm@mac.com>
3573
3574 * macfns.c (Fx_create_frame): Default to using tool-bar by
3575 setting tool-bar-lines to 1 in default-frame-alist.
3576
35772004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3578
3579 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3580 (xpm_get_color_table_v, xpm_make_color_table_h)
3581 (xpm_put_color_table_h, xpm_get_color_table_h)
3582 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3583 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3584 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3585
fe97e8df
ST
35862004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3587
a267ab4d 3588 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3589 instead of FRAME_X_P
3590
b47e779e
KS
35912004-05-11 Kim F. Storm <storm@cua.dk>
3592
3593 * process.c (read_process_output): Grow decoding_buf when needed;
3594 this could cause a crash in allocate_string and compact_small_strings.
3595
cdc9b845
EZ
35962004-04-29 Jim Blandy <jimb@redhat.com>
3597
3598 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3599 against proper opcode.
3600
aa7094ba
JB
36012004-05-10 Juanma Barranquero <lektu@terra.es>
3602
3603 * process.c (Fstart_process): Fix docstring.
3604
3605 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3606 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3607 (Fsplit_char, Fchar_charset): Make argument names match their use
3608 in docstring.
3609
e109331a
RS
36102004-05-10 Richard M. Stallman <rms@gnu.org>
3611
3612 * print.c (print_preprocess): Use being_printed, loop_count and
3613 halftail to detect overdeep nesting and cyclic cdr chains.
3614
9a28b921
AS
36152004-05-10 Andreas Schwab <schwab@suse.de>
3616
78819ebb 3617 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3618
3619 * fileio.c (Frename_file): Remove extra argument in call to
3620 Fmake_symbolic_link.
3621
e2c02c1a
KS
36222004-05-10 Kim F. Storm <storm@cua.dk>
3623
3624 * xdisp.c (calc_line_height_property): Use string position when
3625 object is a string.
3626
cfe9d13e
KH
36272004-05-10 Kenichi Handa <handa@m17n.org>
3628
a57e8159
KH
3629 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3630 inhibit-modification-hooks to t temporarily before calling
3631 Ferase_buffer.
3632
3633 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3634 inhibit-modification-hooks to t temporarily before calling
3635 Ferase_buffer.
3636
3637 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3638 inhibit-modification-hooks to t temporarily before calling
3639 Ferase_buffer.
3640
cfe9d13e
KH
3641 * fns.c (count_combining): Delete it.
3642 (concat): Don't check combining bytes.
3643
ceb96489
JR
36442004-05-09 Jason Rumney <jasonr@gnu.org>
3645
3646 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3647 (globals_of_w32fns): Set it.
3648
b6189c3b 36492004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3650
3651 * data.c (Fquo): Simplify.
3652
28712a21
JB
36532004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3654
3655 * data.c (Fquo): If any argument is float, do the computation in
3656 floating point.
3657
0f0af7a8
JB
36582004-05-08 Juanma Barranquero <lektu@terra.es>
3659
88214ef6
JB
3660 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3661 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3662 Fix spelling of Emacs on docstring.
3663 (Fset_process_coding_system, Fprocess_coding_system)
3664 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3665 Make argument names match their use in docstring.
3666 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3667 Fix docstring.
3668
0f0af7a8
JB
3669 * editfns.c (Finsert_buffer_substring): Make argument names match their
3670 use in docstring.
3671
3672 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3673
2a316a84
ST
36742004-05-07 Steven Tamm <steventamm@mac.com>
3675
3676 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3677 around call to ReceiveEvent to avoid certain crashes.
3678
36792004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3680
2a316a84
ST
3681 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3682 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3683 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3684 Save/restore the current graphics port and device handle when
3685 drawing into an offscreen graphics world.
3686
3687 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3688 (gif_load): Likewise.
3689
ab80314b
JB
36902004-05-07 Juanma Barranquero <lektu@terra.es>
3691
3692 * window.c (Fset_window_buffer): Fix docstring.
3693
70646bb5
TTN
36942004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3695
3696 * emacs.c (main) [VMS]: Fix var ref.
3697
b6189c3b 36982004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3699
3700 * data.c (Fsetq_default): Fix docstring.
3701
279d3293
JR
37022004-05-06 Jason Rumney <jasonr@gnu.org>
3703
3704 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3705 to avoid name clash.
3706
f72b5416
JD
37072004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3708
3709 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3710 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3711 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3712
6ab66799
KS
37132004-05-04 Kim F. Storm <storm@cua.dk>
3714
3715 * xdisp.c (Qtotal): New var.
3716 (syms_of_xdisp): Intern and staticpro it.
3717 (calc_line_height_property): New arg total. Set it if
3718 line-spacing property has format (total . VALUE).
3719 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3720 Handle total line-spacing property.
3721
ab2d724b
JD
37222004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3723
3724 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3725 "under" scroll bar when size/position changes.
3726
238add5e
JR
37272004-05-03 Jason Rumney <jasonr@gnu.org>
3728
3729 * makefile.nt: Remove.
3730
1644f4e4
EZ
37312004-05-02 Eli Zaretskii <eliz@gnu.org>
3732
a267ab4d
SM
3733 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3734 Avoid compiler warnings.
05fdbeb8 3735
1644f4e4
EZ
3736 * Makefile.in (region-cache.o): Depend on config.h.
3737
b6189c3b 37382004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3739
3740 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3741 with continuation lines, too.
3742
2b98b088
TTN
37432004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3744
3745 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3746
d9bf7950
SM
37472004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3748
3749 * xdisp.c (calc_line_height_property): YAILOM (yet another
3750 int/Lisp_Object mixup).
3751
affa509c
EZ
37522004-05-01 Eli Zaretskii <eliz@gnu.org>
3753
3754 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3755 undo bad effect of pack(4) in some versions of system headers.
3756
07c07cfe
JR
37572004-05-01 Jason Rumney <jasonr@gnu.org>
3758
3759 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3760
e71caa4e
KS
37612004-04-30 Kim F. Storm <storm@cua.dk>
3762
3763 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3764 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3765
3766 * dispextern.h (struct it): Remove member use_default_face.
3767 Add members override_ascent, override_descent, override_boff.
3768
3769 * xdisp.c (init_iterator): Handle line-spacing float value.
3770 Initialize override_ascent member.
3771 (append_space_for_newline): Reset override_ascent.
3772 Remove use_default_face.
3773 (calc_line_height_property): New function to calculate value of
3774 line-height and line-spacing properties. Look at overlays, too.
3775 Set override_ascent, override_descent, override_boff members when
3776 using another face than the current face. Float values are now
3777 relative to the frame default font, by default; accept a cons
3778 of ratio and face name to specify value relative to a specific face.
3779 (x_produce_glyphs): Use calc_line_height_property.
3780 Use override_ascent etc. when set to handle different face heights.
3781 A negative line-spacing property value is interpreted as a total
3782 line height, rather than inter-line spacing.
3783 (note_mouse_highlight): Allocate room for 40 overlays initially.
3784
0fddae66
SM
37852004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3786
3787 * data.c (Fsubr_name): New fun.
3788 (syms_of_data): Defsubr it.
3789
712d23dc
KS
37902004-04-29 Kim F. Storm <storm@cua.dk>
3791
3792 * xdisp.c (null_glyph_slice): New var.
3793 (append_glyph, append_composite_glyph, append_stretch_glyph):
3794 Use it to initialize glyph slice.
3795
033ad8c6
SM
37962004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3797
3798 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3799 (on_hot_spot_p): Make sure we always return a value.
3800 (Flookup_image_map): Remove unused var ix and iy.
3801 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3802
93397360
EZ
38032004-04-27 Eli Zaretskii <eliz@gnu.org>
3804
3805 * msdos.c (init_environment): If one of the TMP... environment
3806 variables is set to a drive letter without a trailing slash,
3807 append a slash.
3808
0c54865e
EZ
38092004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3810
3811 * editfns.c (lisp_time_argument): Provide externally.
3812
3813 * fileio.c (Fset_file_times): New function.
3814 (syms_of_fileio): Intern and staticpro it.
3815
d3b111bd
KS
38162004-04-27 Kim F. Storm <storm@cua.dk>
3817
07dc1231
KS
3818 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3819 header line strings.
3820
360fe9d2
KS
3821 * dispextern.h (struct it): New member use_default_face.
3822
d3b111bd
KS
3823 * xdisp.c (Qline_height): New variable.
3824 (syms_of_xdisp): Intern and staticpro it.
3825 (append_space_for_newline): Partially undo 2004-04-25 change;
3826 add default_face_p arg, and restore callers.
3827 Clear it->use_default_face after use.
3828 (x_produce_glyphs): Set default font for ascii char if
3829 it->use_default_font is set. Change line-spacing property to set
3830 just extra line spacing. Handle new line-height property.
3831
0448588b
AS
38322004-04-26 Andreas Schwab <schwab@suse.de>
3833
3834 * print.c (print_object): Print non-ascii characters in bool
3835 vector representation as octal escapes.
3836
3837 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3838 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3839 bool vectors.
3840 * lread.c (read1): Likewise.
3841 * alloc.c (Fmake_bool_vector): Likewise.
3842 * data.c (Faref, Faset): Likewise.
3843 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3844 (mapcar1): Likewise.
d3b111bd 3845
536d6baa
ST
38462004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3847
3848 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3849
ae11577a
MB
38502004-04-26 Miles Bader <miles@gnu.org>
3851
3852 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3853
e198ba87
JB
38542004-04-26 Juanma Barranquero <lektu@terra.es>
3855
3856 * buffer.c (Fpop_to_buffer): Fix docstring.
3857
f3d5f92d 38582004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3859
f3d5f92d
ST
3860 * lread.c (init_lread): Don't display missing lisp directory
3861 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3862 may be built without correct installation path.
f3d5f92d 3863
03e35edc
KS
38642004-04-25 Kim F. Storm <storm@cua.dk>
3865
9ff3aa31
KS
3866 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3867
3868 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3869
03e35edc
KS
3870 * xdisp.c (append_space_for_newline): Rename from append_space.
3871 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3872 (x_produce_glyphs): Handle line-spacing property on newline char.
3873 If value is t, adjust ascent and descent to fit current row height.
3874 If value is an integer or float, set extra_line_spacing to integer
3875 value, or to float value x current line height.
3876
f24814e0
KH
38772004-04-23 Kenichi Handa <handa@m17n.org>
3878
3879 * fontset.c (Finternal_char_font): If POSITION is nil, return
3880 font for displaying CH with the default face.
3881
d814862a
JB
38822004-04-23 Juanma Barranquero <lektu@terra.es>
3883
3884 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3885
063a45c5
SM
38862004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3887
3888 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3889 Don't make assumptions about the relative place of i and val.
3890 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3891
ae7ab2d3
KS
38922004-04-21 Kim F. Storm <storm@cua.dk>
3893
3894 * dispextern.h (struct glyph_slice): New struct.
3895 (struct glyph): New member slice.
3896 (GLYPH_SLICE_EQUAL_P): New macro.
3897 (GLYPH_EQUAL_P): Use it.
3898 (struct glyph_string): New member slice.
3899 (struct it_slice): New struct.
3900 (struct it): New member slice, add member to stack too.
3901 New member constrain_row_ascent_descent_p.
3902 (image_ascent): Add prototype.
3903
3904 * dispnew.c (buffer_posn_from_coords): Return full image width
3905 and height even for image slices (posn is relative to full image).
3906 (marginal_area_string): Adjust x0,y0 for image slice.
3907
3908 * image.c (image_ascent): Add slice arg; calculate ascent for
3909 image slice (or full image).
3910
3911 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3912 (syms_of_keyboard): Defsubr them.
3913
3914 * lisp.h (pos_visible_p): Fix prototype.
3915
c62aec78 3916 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3917 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3918 (x_draw_image_foreground, x_draw_image_relief)
3919 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3920 Draw sliced images.
3921
3922 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3923 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3924 (x_draw_image_foreground, x_draw_image_relief)
3925 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3926 Draw sliced images.
3927
3928 * w32term.h (image_ascent): Remove prototype.
3929
3930 * window.c (Fpos_visible_in_window_p): Return pixel position if
3931 PARTIALLY arg is non-nil. Simplify. Doc fix.
3932 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3933 to return/set vscroll in pixels.
3934
3935 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3936
3937 * xdisp.c (Qslice): New variable.
3938 (syms_of_xdisp): Intern and staticpro it.
3939 (pos_visible_p): Return pixel position in new x and y args.
3940 (init_iterator): Reset it->slice info.
3941 (handle_display_prop): Parse (slice ...) property.
3942 (push_it, pop_it): Save/restore slice info.
3943 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3944 force repositioning of tall row if window is vscrolled, as that
3945 would reset vscroll.
3946 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3947 increasing row height if row is non-empty.
3948 (fill_image_glyph_string): Copy slice info.
3949 (take_vertical_position_into_account): Simplify.
3950 (produce_image_glyph): Handle iterator slice info, setup glyph
3951 slice info. Do not force minimum line height.
3952 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3953 do not increase height (ascent/descent) of non-empty row when
3954 adding normal character glyph; instead reduce glyph ascent/descent
3955 appropriately; if row is higher than current glyph, adjust glyph
3956 descent/ascent to reposition glyph within the existing row.
3957 Likewise, when char is newline, only set ascent/descent if row is
3958 currently empty.
3959 (note_mouse_highlight): Handle hotspots with sliced image.
3960
3961 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3962 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3963 (x_draw_image_foreground, x_draw_image_relief)
3964 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3965 Draw sliced images.
3966
3967 * xterm.h (image_ascent): Remove prototype.
3968
d58f8753
SM
39692004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3970
3971 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3972
4ce2719d
JPW
39732004-04-20 John Paul Wallington <jpw@gnu.org>
3974
3975 * fns.c (Fassoc, Feql): Fix indentation.
3976
d58f8753 3977 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3978
95f8c3b9
JPW
39792004-04-19 John Paul Wallington <jpw@gnu.org>
3980
3981 * fns.c (Feql): New function.
d58f8753 3982 (syms_of_fns): Defsubr it.
95f8c3b9 3983
b7e85537
JR
39842004-04-18 Jason Rumney <jasonr@gnu.org>
3985
3986 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3987 after closing the clipboard.
3988
5a72efd4
LT
39892004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3990
3991 * buffer.c (Fbuffer_base_buffer): Doc fix.
3992
20dc8583
KS
39932004-04-17 Kim F. Storm <storm@cua.dk>
3994
60962ec4
KS
3995 * keymap.c (Fkey_description): Add optional PREFIX arg.
3996 Combine prefix with KEYS to make up the full key sequence to describe.
3997 Correlate meta_prefix_char and following (simple) key to describe
3998 as meta modifier. All callers changed.
3999 (describe_map): Rename arg `keys' to `prefix'. Remove local
4000 `elt_prefix' var. Use Fkey_description with prefix instead of
4001 elt_prefix combined with Fsingle_key_description.
4002 (describe_vector): Declare static. Replace arg `elt_prefix' with
4003 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4004 if !KEYMAP_P. Use Fkey_description with prefix instead of
4005 Fsingle_key_description.
4006
4007 * keymap.h (Fkey_description): Fix prototype.
4008 (describe_vector): Remove prototype.
4009
409368b9
KS
4010 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4011
20dc8583
KS
4012 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4013 (png_load): Fix calculation of transparent background color on X
4014 and W32 platforms.
4015
75c5501b
JB
40162004-04-16 Juanma Barranquero <lektu@terra.es>
4017
4018 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4019 not too large before computing how much to scroll.
4020
da879ae8
SM
40212004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4022
4023 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4024
d01ca4a8
LT
40252004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4026
4027 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4028 Add hyperlink to Elisp manual to the docstring.
4029
572943b3
SM
40302004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4031
4032 * callint.c (fix_command): Use XDCR.
4033
5e30a0fb
NR
40342004-04-14 Nick Roberts <nick@nick.uklinux.net>
4035
4036 * window.c (Fget_lru_window): Doc fix.
4037
a27ddfaf
KS
40382004-04-14 Kim F. Storm <storm@cua.dk>
4039
4040 * editfns.c (Fformat): Fix allocation size of precision array.
4041
4042 * dispnew.c (update_window): Only set changed_p if
4043 scrolling_window actually did scroll.
4044 (scrolling_window): Only return 1 if we actually did scroll.
4045
4046 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4047 height to glyph height when cursor row is not fully visible.
4048 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4049 failure in case row is higher than window. Callers changed.
4050 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4051 Try to scroll partially visible, higher-than-window cursor row.
4052 (redisplay_window): Always try to scroll partially visible,
4053 higher-than-window cursor row - both initially and again with
4054 centering_position = 0.
4055 Clear desired matrix before retrying with centering_position = 0.
4056
da879ae8
SM
40572004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4058
4059 * syntax.c (scan_lists): Simplify backward string scan.
4060 Fix off-by-one boundary check for string and comment fences.
4061
5fc16e8e
SM
40622004-04-13 Joe Buehler <jbuehler@hekimian.com>
4063
4064 * sheap.c, unexcw.c: New files.
4065
c9aac8e6
LT
40662004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4067
4068 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4069 base buffer has been killed. Correct the error message if the
4070 base buffer does not exist.
4071
1e88a355
SM
40722004-04-12 Joe Buehler <jbuehler@hekimian.com>
4073
4074 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4075 Cygwin itself. Add support for Xaw3d scrollbars.
4076
4077 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4078
4079 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4080
4081 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4082 before Cygwin unexec.
4083
4084 * Makefile.in: Link changes for Cygwin unexec() support.
4085
8dbff9a0
AS
40862004-04-12 Andreas Schwab <schwab@suse.de>
4087
4088 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4089
54dffe35
LT
40902004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4091
4092 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4093 IGNORE argument equals NAME. Doc fix.
4094
99a72bdf
MY
40952004-04-11 Masatake YAMATO <jet@gyve.org>
4096
1e88a355 4097 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4098 empty if they are backwards.
4099
40899d7b
SM
41002004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4101
4102 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4103
f8f853de
SM
41042004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4105
4106 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4107
c953fe1b
KS
41082004-04-06 Kim F. Storm <storm@cua.dk>
4109
661e85c1
KS
4110 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4111 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4112
4113 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4114 clearing highlight.
4115
4116 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4117
4118 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4119 clearing highlight.
4120
c953fe1b
KS
4121 * indent.c (vmotion): Do not reserve one column for continuation
4122 marks on window frames.
4123
c1994268
EZ
41242004-04-04 Eli Zaretskii <eliz@gnu.org>
4125
4126 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4127 from GCC.
4128
9f691b0d
SM
41292004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4130
4131 * .gdbinit-union: Remove.
4132
4133 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4134 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4135 ($nonvalbits): Remove.
4136 ($valmask): Set it by calling xreload to avoid redundancy.
4137
4138 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4139 (gdb_emacs_intbits): Remove.
4140
7a8560d7
JD
41412004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4142
9f691b0d 4143 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4144
3c8111fc
KH
41452004-03-30 Kenichi Handa <handa@m17n.org>
4146
4147 * editfns.c (Fformat): Fix initialization of the array info.
4148
48a0bce4
KS
41492004-03-30 Kim F. Storm <storm@cua.dk>
4150
4151 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4152 (syms_of_xterm): DEFVAR_BOOL it.
4153 (ignore_next_mouse_click_timeout): New var.
4154 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4155 Use it to filter mouse clicks following focus event.
4156
1cd0066c
KS
41572004-03-29 David Ponce <david@dponce.com>
4158
4159 * callint.c (Fcall_interactively): Fix last change.
4160
adb3b353
SM
41612004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4162
4163 * eval.c (Fcommandp): Simplify.
4164
4165 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4166 Extend to handle all kinds of functions.
4167
4168 * lisp.h (Finteractive_form): Declare.
4169
4170 * callint.c (Fcall_interactively): Use it.
4171
6fc4c9c9
KS
41722004-03-26 Kim F. Storm <storm@cua.dk>
4173
4174 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4175 to catch errors in calc_pixel_width_or_height during redisplay.
4176
abdb9b83
MY
41772004-03-26 Masatake YAMATO <jet@gyve.org>
4178
b17856dd 4179 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4180
b17856dd 4181 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4182
b17856dd 4183 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4184
b17856dd 4185 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4186
e8a84b6c
JD
41872004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4188
b17856dd 4189 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4190
36a3fd05
RS
41912004-03-19 Richard M. Stallman <rms@gnu.org>
4192
4193 * s/sol2-6.h: Delete previous change.
4194
ab24c127
KS
41952004-03-19 Kim F. Storm <storm@cua.dk>
4196
4197 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4198 to_charpos corresponds to newline in right fringe. Use local
4199 BUFFER_POS_REACHED_P macro.
4200
992126de
JD
42012004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4202
4203 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4204 to compile on non-window system.
4205
45dbfc84
KS
42062004-03-19 Kim F. Storm <storm@cua.dk>
4207
4208 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4209
4210 * image.c (Qcenter): Move to xdisp.c.
4211
4212 * xdisp.c (Qcenter): Declare here.
adb3b353 4213 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4214 (handle_single_display_prop): Allow space display property on all
4215 platforms.
4216 (display_mode_line): Set mode_line_p before displaying line.
4217 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4218 handling. Remove complex cases for fringes and scroll-bars.
4219 Add left, right, and center alignment positions. Add text (area)
4220 width/height. Return width or height for image specs.
4221 (produce_stretch_glyph): Improve handling of :align-to. Is now
4222 relative to left of text area by default, but other base offsets
4223 can be specified -- also for text lines.
4224
4225 * term.c (produce_glyphs): Handle IT_STRETCH.
4226 (produce_stretch_glyph): New function to handle space width and
4227 align-to display properties on non-window systems.
4228
37264101
SM
42292004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4230
4231 * fileio.c (Fread_file_name): Set completion-ignore-case for
4232 case-insensitive systems.
4233
73bc43da
MY
42342004-03-14 Masatake YAMATO <jet@gyve.org>
4235
4236 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4237 when keymap and cursor are setup.
4238
9062aa89
ST
42392004-03-14 Steven Tamm <steventamm@mac.com>
4240
b17856dd 4241 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4242
e4b1b5ab
KS
42432004-03-14 Kim F. Storm <storm@cua.dk>
4244
4245 * dispextern.h (x_find_image_file): Add prototype.
4246
4247 * image.c (x_find_image_file): Make extern.
4248
4249 * xfns.c (x_find_image_file): Remove prototype.
4250
a6eeaa81 42512004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4252
37264101 4253 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4254
37264101 4255 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4256
e69cfac2
RS
42572004-03-12 Richard M. Stallman <rms@gnu.org>
4258
4259 * fns.c (internal_equal): New arg PROPS controls comparing
4260 text properties. All callers changed.
4261 (Fequal_including_properties): New function.
4262 (syms_of_fns): defsubr it.
4263
45034953
KS
42642004-03-12 Kim F. Storm <storm@cua.dk>
4265
4266 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4267
45034953
KS
4268 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4269 (image_background, image_background_transparent): Fix prototypes.
4270
37264101 4271 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4272
4273 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4274 (x_query_font, x_find_ccl_program, x_set_window_size)
4275 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4276 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4277 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4278
4279 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4280 (x_query_font, x_find_ccl_program, x_set_window_size)
4281 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4282 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4283 (mac_draw_line_to_pixmap): Add prototypes.
4284
42852004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4286
4287 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4288
a12d3d87
KS
42892004-03-11 Kim F. Storm <storm@cua.dk>
4290
d3ab1cf1
KS
4291 * dispextern.h: Move image related prototypes from xfns.c section
4292 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4293 HAVE_X_WINDOWS.
37264101 4294
37de9f51 4295 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4296 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4297 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4298 (GTK_OBJ) [USE_GTK]: New declaration.
4299 (obj): Add $(GTK_OBJ) to list.
4300
5243c06a 43012004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4302
5243c06a
ST
4303 * image.c [MAC_OSX]: Include sys/stat.h
4304
4305 * macfns.c (syms_of_macfns): Remove definitions of things now
4306 defined in image.c
4307
c0f97789
KS
43082004-03-11 Kim F. Storm <storm@cua.dk>
4309
4310 The following changes consolidates the identical/similar image
4311 support code previously found in xfns.c, w32fns.c, and macfns.c
4312 into a new file image.c.
4313
4314 * makefile.w32-in (OBJ1): Add image.o.
4315 ($(BLD)/image.$(O)): Add dependencies.
4316
4317 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4318 (image.o): Add dependencies.
37264101 4319
c0f97789
KS
4320 * image.c: New file with consolidated image support code.
4321 (COLOR_TABLE_SUPPORT): New define to control whether
4322 color table support is available (X only).
4323 (Bitmap_Record): Common name for x_bitmap_record,
4324 w32_bitmap_record, and mac_bitmap_record.
4325 (XImagePtr): Common name for pointer to XImage or equivalent.
4326 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4327 to XImagePtr on X+MAC, and to HDC on W32.
4328 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4329 (NO_PIXMAP): Common name for "None" or equivalent.
4330 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4331 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4332 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4333 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4334 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4335 (XDrawLine): Define on MAC for code sharing.
4336 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4337 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4338 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4339 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4340 (x_reference_bitmap, x_create_bitmap_from_data)
4341 (x_create_bitmap_from_file, x_destroy_bitmap)
4342 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4343 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4344 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4345 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4346 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4347 (define_image_type, lookup_image_type, valid_image_p)
4348 (image_error, enum image_value_type, struct image_keyword)
4349 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4350 (make_image, free_image, prepare_image_for_display, image_ascent)
4351 (four_corners_best, image_background, image_background_transparent)
4352 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4353 (make_image_cache, free_image_cache, clear_image_cache)
4354 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4355 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4356 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4357 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4358 (init_image_func_pointer, image_load_quartz2d)
4359 (struct ct_color, init_color_table, free_color_table)
4360 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4361 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4362 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4363 (x_disable_image, x_build_heuristic_mask)
4364 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4365 (TIFF support, GIF support, Ghostscript support): Consolidate image
4366 code from xfns.c, w32fns.c, and macfns.c.
4367 (syms_of_image): Consolidate image related symbol setup here.
4368 (init_image): Consolidate image related initializations here.
37264101 4369
c0f97789
KS
4370 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4371 and init_image. Remove call to init_xfns.
4372
37264101
SM
4373 * macterm.h (struct mac_bitmap_record): Add file member.
4374 Not currently used, but simplifies code sharing.
c0f97789
KS
4375
4376 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4377 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4378 (x_reference_bitmap, x_create_bitmap_from_data)
4379 (x_create_bitmap_from_file, x_destroy_bitmap)
4380 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4381 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4382 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4383 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4384 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4385 (define_image_type, lookup_image_type, valid_image_p)
4386 (image_error, enum image_value_type, struct image_keyword)
4387 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4388 (make_image, free_image, prepare_image_for_display, image_ascent)
4389 (four_corners_best, image_background, image_background_transparent)
4390 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4391 (make_image_cache, free_image_cache, clear_image_cache)
4392 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4393 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4394 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4395 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4396 (init_image_func_pointer, image_load_quartz2d)
4397 (struct ct_color, init_color_table, free_color_table)
4398 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4399 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4400 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4401 (x_disable_image, x_build_heuristic_mask)
4402 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4403 (TIFF support, GIF support, Ghostscript support): Merge with image
4404 code from xfns.c and macfns.c into image.c.
4405 (syms_of_xfns): Move image related symbols to image.c.
4406 (init_external_image_libraries, init_xfns): Remove; initialization
4407 moved to init_image in image.c.
4408
4409 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4410 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4411 (x_reference_bitmap, x_create_bitmap_from_data)
4412 (x_create_bitmap_from_file, x_destroy_bitmap)
4413 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4414 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4415 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4416 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4417 (define_image_type, lookup_image_type, valid_image_p)
4418 (image_error, enum image_value_type, struct image_keyword)
4419 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4420 (make_image, free_image, prepare_image_for_display, image_ascent)
4421 (four_corners_best, image_background, image_background_transparent)
4422 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4423 (make_image_cache, free_image_cache, clear_image_cache)
4424 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4425 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4426 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4427 (struct ct_color, init_color_table, free_color_table)
4428 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4429 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4430 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4431 (x_disable_image, x_build_heuristic_mask)
4432 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4433 (TIFF support, GIF support, Ghostscript support): Merge with image
4434 code from xfns.c and macfns.c into image.c.
4435 (syms_of_xfns): Move image related symbols to image.c.
4436 (init_external_image_libraries, init_xfns): Remove; initialization
4437 moved to init_image in image.c.
4438
4439 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4440 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4441 (x_reference_bitmap, x_create_bitmap_from_data)
4442 (x_create_bitmap_from_file, x_destroy_bitmap)
4443 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4444 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4445 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4446 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4447 (define_image_type, lookup_image_type, valid_image_p)
4448 (image_error, enum image_value_type, struct image_keyword)
4449 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4450 (make_image, free_image, prepare_image_for_display, image_ascent)
4451 (four_corners_best, image_background, image_background_transparent)
4452 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4453 (make_image_cache, free_image_cache, clear_image_cache)
4454 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4455 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4456 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4457 (struct ct_color, init_color_table, free_color_table)
4458 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4459 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4460 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4461 (x_disable_image, x_build_heuristic_mask)
4462 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4463 (TIFF support, GIF support, Ghostscript support): Merge with
4464 w32fns.c and macfns.c image code into image.c.
4465 (syms_of_xfns): Move image related symbols to image.c.
4466 (init_xfns): Remove; initialization moved to init_image in image.c.
4467
4468 * lisp.h (syms_of_image, init_image): Add protoypes.
4469 (init_xfns): Remove prototype.
4470
4471 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4472 (x_reference_bitmap, x_create_bitmap_from_data)
4473 (x_create_bitmap_from_file, x_destroy_bitmap)
4474 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4475 (gamma_correct) [MAC_OS]: Add prototype.
4476
4477 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4478 (x_reference_bitmap, x_create_bitmap_from_data)
4479 (x_create_bitmap_from_file, x_destroy_bitmap)
4480 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4481
6eced09c
KH
44822004-03-09 Kenichi Handa <handa@etlken2>
4483
4484 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4485 correctly.
4486
9a7e95f3
RS
44872004-03-04 Richard M. Stallman <rms@gnu.org>
4488
04a6e76b
RS
4489 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4490
9a7e95f3
RS
4491 * window.c (Fdisplay_buffer): Doc fix.
4492
4493 * buffer.c (Fpop_to_buffer): Doc fix.
4494
6c2488df
KS
44952004-03-03 Kim F. Storm <storm@cua.dk>
4496
4497 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4498
d8d95bc7
SM
44992004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4500
4501 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4502
357589bf
RS
45032004-03-02 Richard M. Stallman <rms@gnu.org>
4504
4505 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4506
409949b5
KH
45072004-03-02 Kenichi Handa <handa@m17n.org>
4508
4509 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4510
d24bc50f
KS
45112004-03-02 Kim F. Storm <storm@cua.dk>
4512
4513 * window.h (struct window): New member overlay_arrow_bitmap.
4514
4515 * window.c (make_window): Initialize overlay_arrow_bitmap.
4516
4517 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4518 implement and integrate multiple overlay arrows with redisplay.
4519 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4520 (last_arrow_position, last_arrow_string): Replace by properties.
4521 (Qlast_arrow_position, Qlast_arrow_string)
4522 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4523 (syms_of_xdisp): Intern and staticpro them.
4524 (overlay_arrow_string_or_property, update_overlay_arrows)
4525 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4526 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4527 (redisplay_internal): Use them instead of directly accessing
4528 Voverlay_arrow_position etc. for multiple overlay arrows.
4529 (mark_window_display_accurate): Use update_overlay_arrows.
4530 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4531 (try_window_id): Use overlay_arrows_changed_p.
4532 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4533 (display_line): Use overlay_arrow_at_row to check multiple
4534 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4535 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4536 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4537 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4538
4539 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4540 (update_window_fringes): Remove unused code.
4541
c1464661
JR
45422004-03-01 Jason Rumney <jasonr@gnu.org>
4543
4544 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4545
a64387ee
JB
45462004-03-01 Juanma Barranquero <lektu@terra.es>
4547
4548 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4549
4550 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4551
334faa08
JD
45522004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4553
4554 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4555 how many colors can be displayed.
4556
bb62616f
KH
45572004-03-01 Kenichi Handa <handa@m17n.org>
4558
4559 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4560 correctly.
4561
0fd16104
KS
45622004-02-28 Kim F. Storm <storm@cua.dk>
4563
4564 * dispnew.c (update_window): Update header line also if there are
4565 no other changes in window (move code after set_cursor label).
4566
4567 * lisp.h (mark_window_display_accurate): Remove prototype.
4568
4569 * window.c (window_loop, Fforce_window_update): Force mode line
4570 updates by setting prevent_redisplay_optimizations_p and
4571 update_mode_lines.
4572
b59dd9c8
JD
45732004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4574
d8d95bc7 4575 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4576
4577 * xterm.c (x_calc_absolute_position): Call x_real_positions
4578 to get WM window sizes and use those to calculate position.
d8d95bc7 4579 (x_set_offset): Remove code commented out.
b59dd9c8 4580
a874691c
MB
45812004-02-28 Miles Bader <miles@gnu.org>
4582
4583 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4584
3e0c6482
KS
45852004-02-28 Kim F. Storm <storm@cua.dk>
4586
4587 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4588 an event into kbd fifo, but with special handling of quit event;
4589 a quit event is saved for later, and further events are discarded
4590 until the saved quit event has been processed.
4591 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4592 (gen_help_event): Store help event in kbd fifo.
4593 (NREAD_INPUT_EVENTS): Remove.
4594 (read_avail_input): Adapt to new read_socket_hook interface.
4595 Remove allocation and initialization of local input_event buffer,
4596 as read_socket_hook stores events directly in fifo. Allocate and
4597 initialize local hold_quit event to handle postponed quit event
4598 (and store it if set by kbd_buffer_store_event_hold).
4599
4600 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4601 (gen_help_event): Fix prototype.
4602
a64387ee 4603 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4604 numcharsp args. Add hold_quit arg.
f63fd14e 4605 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4606 directly in fifo using kbd_buffer_store_event_hold.
4607
4608 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4609 (read_input_waiting): Adapt to new read_socket_hook interface.
4610 Remove allocation and initialization of local input_event buffer,
4611 as read_socket_hook stores events directly in fifo. Allocate and
4612 initialize local hold_quit event to handle postponed quit event
4613 (and store it if set by kbd_buffer_store_event_hold).
4614
a64387ee 4615 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4616
4617 * termhooks.h (read_socket_hook): Fix prototype.
4618
4619 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4620 numcharsp args. Add hold_quit arg.
f63fd14e 4621 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4622 directly in fifo using kbd_buffer_store_event_hold.
4623
4624 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4625
4626 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4627 Add hold_quit arg. Rework to use just one, local, inev
4628 input_event. Store inev directly in fifo using
3e0c6482
KS
4629 kbd_buffer_store_event_hold. Update count in one place.
4630 Postpone call to gen_help_event until inev is stored; use new
4631 local do_help for this.
4632 Remove local emacs_event in handing of ButtonPress event; just use
4633 inev instead (so no reason to copy it later).
4634
4635 * xsmfns.c (x_session_check_input): Remove numchars arg.
4636
d8d95bc7
SM
4637 * xterm.c (x_focus_changed, x_detect_focus_change):
4638 Remove numchars arg. Always store event into bufp arg.
4639 Return nothing. Callers changed accordingly.
3e0c6482
KS
4640 (glyph_rect): Simplify.
4641 (STORE_KEYSYM_FOR_DEBUG): New macro.
4642 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4643 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4644 (current_hold_quit) [USE_GTK]: Add.
4645 (event_handler_gdk): Adapt to new handle_one_xevent.
4646 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4647 Add hold_quit arg. Rework to use just one, local, inev
4648 input_event. Store inev directly in fifo using
3e0c6482
KS
4649 kbd_buffer_store_event_hold. Update count in one place.
4650 Postpone call to gen_help_event until inev is stored; use new
4651 local do_help for this.
4652 Simplify handling of keysyms (consolidate common code). Fix bug
4653 where count was updated with nchars instead of nbytes.
4654 Remove local emacs_event in handing of ButtonPress event; just use
4655 inev instead (so no reason to copy it later).
4656 Remove `out' label. Rename label `ret' to `done'; add various
4657 `goto done' to clarify code flow in deeply nested blocks.
4658 (x_dispatch_event): Simplify as handle_one_xevent now calls
4659 kbd_buffer_store_event itself.
f63fd14e 4660 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4661 arg. Call handle_one_xevent with new arglist. Store event from
4662 x_session_check_input in fifo.
4663 [USE_GTK]: Setup current_hold_quit.
4664 Decrement handling_signal before unblocking input.
4665 (x_initialize) [USE_GTK]: Initialize current_count.
4666
4667 * xterm.h (x_session_check_input): Fix prototype.
4668
e3564461 46692004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4670
d8d95bc7 4671 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4672
e3564461
ST
4673 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4674 macgui.h).
a64387ee 4675
e3564461 4676 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4677
e3564461
ST
4678 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4679 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4680 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4681 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4682 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4683 (Bitmap): Remove typedef.
4684 (Pixmap): Change int to GWorldPtr.
4685
d8d95bc7 4686 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4687
d8d95bc7
SM
4688 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4689 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4690 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4691 long representation.
4692 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4693 colors used for masks.
4694 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4695
e3564461
ST
4696 * macfns.c: Include sys/types.h and sys/stat.h.
4697 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4698 Include QuickTime/QuickTime.h.
4699 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4700 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4701 functions defined in macterm.c.
4702 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4703 (ZPixmap): New #define for compatibility with xfns.c.
4704 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4705 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4706 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4707 New functions.
e3564461 4708 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4709 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4710 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4711 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4712 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4713 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4714 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4715 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4716 long mixup.
4717 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4718 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4719 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4720 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4721 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4722 (x_alloc_image_color, clear_image_cache, lookup_image)
4723 (x_find_image_file, xbm_read_bitmap_file_data)
4724 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4725 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4726 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4727 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4728 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4729 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4730 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4731 #if 0.
4732 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4733 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4734 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4735 New functions (from xfns.c).
e3564461
ST
4736 (Fx_create_frame): Record unwind_create_frame.
4737 (Fxw_display_color_p): Use dpyinfo->color_p.
4738 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4739 dpyinfo->n_cbits.
4740 (Fx_display_color_cells): Use dpyinfo->n_planes;
4741 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4742 (Qheuristic, cross_disabled_images, emboss_matrix)
4743 (laplace_matrix): New variables (from xfns.c).
4744 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4745 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4746 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4747 (image_background_transparent): New function (from xfns.c).
4748 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4749 (image_load_quicktime): Add declaration.
4750 [MAC_OSX] (image_load_quartz2d): Likewise.
4751 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4752 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4753 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4754 (xbm_load_image_from_file, x_laplace_read_row)
4755 (x_laplace_write_row, pbm_read_file): Remove functions.
4756 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4757 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4758 (colors_in_color_table): Sync with xfns.c (although not used).
4759 (lookup_rgb_color): Don't lookup color table. Just do gamma
4760 correction.
4761 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4762 (x_disable_image): New function (from xfns.c).
4763 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4764 (x_build_heuristic_mask): Sync with xfns.c.
4765 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4766 (HAVE_PBM): Remove #ifdef.
4767 (pbm_load): Sync with xfns.c. Set img->width and img->height
4768 before IMAGE_BACKGROUND.
d8d95bc7 4769 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4770 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4771 Don't enclose with #if HAVE_PNG.
4772 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4773 symbol _CGImageCreateWithPNGDataProvider is defined.
4774 Otherwise use image_load_quicktime.
e3564461 4775 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4776 [HAVE_PNG] (png_load): Sync with xfns.c.
4777 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4778 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4779 HAVE_JPEG.
4780 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4781 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4782 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4783 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4784 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4785 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4786 HAVE_TIFF.
4787 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4788 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4789 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4790 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4791 New functions (from xfns.c).
e3564461 4792 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4793 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4794 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4795 Don't enclose with #if HAVE_GIF.
4796 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4797 animated gif. Otherwise use image_load_quicktime.
4798 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4799 gif_DrawText to avoid conflict with QuickdrawText.h.
4800 [HAVE_GIF] (gif_load): Sync with xfns.c.
4801 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4802 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4803 Ghostscript is not supported yet).
4804 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4805 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4806 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4807 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4808 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4809 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4810 HAVE_PNG. Call EnterMovies to support animated gifs.
4811 Call init_image_func_pointer to bind a symbol
e3564461 4812 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4813
d8d95bc7 4814 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4815 (x_draw_bar_cursor): Sync declaration with xterm.c.
4816 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4817 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4818 graphics).
4819 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4820 (mac_draw_line_to_pixmap, XCreatePixmap)
4821 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4822 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4823 New functions.
4824 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4825 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4826 Cast bits to char *.
e3564461
ST
4827 (reflect_byte): New function (from w32fns.c).
4828 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4829 due to byte alignment.
d8d95bc7
SM
4830 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4831 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4832 (XSetForeground): Remove static (now used in macfns.c).
4833 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4834 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4835 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4836 (x_draw_glyph_string_box, x_draw_image_foreground)
4837 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4838 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4839 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4840 Sync with xterm.c.
4841 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4842 than the xterm.c version when a strictly horizontal or vertical
4843 line is drawn.
4844 (XTset_terminal_window): Add static.
4845 (x_make_frame_visible): Add UNBLOCK_INPUT.
4846 (x_free_frame_resources): New funcion (from xterm.c).
4847 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4848 occurs in tool bar area.
d8d95bc7
SM
4849 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4850 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4851 Initialize image cache.
4852 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4853 Enclose unused functions with #if 0.
4854 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4855 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4856 from a mac font name to an XLFD font name according to its script code.
e3564461 4857 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4858 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4859 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4860 whose name starts with `.'.
4861 (init_font_name_table): Use decode_mac_font_name. Add both
4862 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4863 of a font is smJapanese.
4864 (mac_do_list_fonts): New function to list fonts that match a given
4865 pattern.
4866 (x_list_fonts, XLoadQueryFont): Use it.
4867 (XLoadQueryFont): Set rbearing field for each variable width
4868 character to avoid needless redraw.
4869 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4870
446f5f3d
KS
48712004-02-26 Kim F. Storm <storm@cua.dk>
4872
af617d0f
KS
4873 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4874 as read_socket_hook handler on X aborts if buffer is too small
4875 and W32 handler doesn't always check buffer limit.
4876
446f5f3d
KS
4877 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4878 right-fringe similar to a display margin image. Specifically,
4879 the characters having the fringe prop are no longer shown, and
4880 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4881 do this. Set fringe bitmap face_id in it->face_id.
4882 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4883 still realize it->face (i.e. the fringe bitmap face).
4884
7d8a0b55
MB
48852004-02-25 Miles Bader <miles@gnu.org>
4886
4887 * xdisp.c (check_it): Check string/string_pos consistency.
4888 (init_iterator): Initialize string-related fields properly.
4889
48902004-02-11 Miles Bader <miles@gnu.org>
4891
4892 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4893
48942004-02-10 Miles Bader <miles@gnu.org>
4895
4896 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4897 BLOCK_INPUT can be nested, so it doesn't make much sense.
4898
a64387ee 48992004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4900
4901 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4902 (xbm_read_bitmap_data): Use unsigned char for image data.
4903
92f5fba2
LT
49042004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4905
4906 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4907
8565fb3d
JR
49082004-02-22 Jason Rumney <jasonr@gnu.org>
4909
4910 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4911 correctly over other bitmaps.
4912
a6eeaa81 49132004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4914
4915 * emacs.c (USAGE1): Split into two halves.
4916 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4917 (USAGE3): Rename from USAGE2.
4918 (USAGE4): Rename from USAGE3.
f8125c39 4919
4effffca
EZ
49202004-02-21 Juri Linkov <juri@jurta.org>
4921
4922 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4923 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4924 --file. Fix -f, -l. Sort options. Untabify.
4925 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4926
923c1e6f
LT
49272004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4928
4929 * category.c (Fdefine_category, Fcategory_docstring)
4930 (Fget_unused_category, Fset_category_table)
4931 (Fcategory_set_mnemonics): Doc fixes.
4932
b0e225fd
KS
49332004-02-20 Kim F. Storm <storm@cua.dk>
4934
4935 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4936 The following changes are relative to the 2004-01-21 revision.
4937 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4938 in one call to read_socket_hook. Value is 8.
4939 (read_avail_input): Separate and rework handling of read_socket_hook
4940 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4941 in read_socket_hook case, and repeat if full buffer is read.
4942 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4943 In non-read_socket_hook case, just use a single input_event, and
4944 call kbd_buffer_store_event on the fly for each character.
4945
b15aa9f9
SM
49462004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4947
4948 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4949 Remove unused `gu' alternative.
4950
83c9aa95
AS
49512004-02-19 Andreas Schwab <schwab@suse.de>
4952
4953 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4954 warning.
4955
cc808173
KS
49562004-02-18 Kim F. Storm <storm@cua.dk>
4957
4958 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4959 Fix last change.
4960
ab90a54d
KS
49612004-02-17 Kim F. Storm <storm@cua.dk>
4962
b26f249f
KS
4963 * xdisp.c (fast_find_position): Fix return value of new version;
4964 it was inverted compared to the 21.1 version.
4965 (get_window_cursor_type): Don't look at glyph if NULL.
4966 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4967
ab90a54d
KS
4968 * keyboard.c: Rework previous change; it didn't consider that the
4969 buf array was allocated on the stack.
4970 (prev_read): Remove variable.
4971 (read_avail_input_buf): New static event buffer array.
b9568dfc 4972 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4973 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4974 Use in_read_avail_input to handle re-entrance; when re-entered,
4975 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4976 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4977 is always cleared on entry. To ensure that, we clear (just) the
4978 entries that were used before we return.
4979 (init_keyboard): Initialize read_avail_input_buf here.
4980
b6189c3b 49812004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4982
4983 * cmds.c (Fend_of_line): Doc fix.
4984
7b5368c1
EZ
49852004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4986
4987 * keyboard.c (prev_read): New static variable.
4988 (read_avail_input): Use it to zero out only those slots in buf[]
4989 that were used last time we were called.
4990
a6eeaa81 49912004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4992
4993 * Makefile.in (obj): Move fringe.o from here...
4994 (XOBJ, MAC_OBJ): ...to here.
4995
159c348e
SE
49962004-02-16 Stephen Eglen <stephen@gnu.org>
4997
4998 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4999
d2f14999
SM
50002004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5001
b15aa9f9
SM
5002 * data.c (Fbyteorder):
5003 * fringe.c (Fdefine_fringe_bitmap):
5004 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5005 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5006
8d50508a
JR
50072004-02-16 Jason Rumney <jasonr@gnu.org>
5008
5009 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5010
dd4497dc
ST
50112004-02-15 Steven Tamm <steventamm@mac.com>
5012
5013 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5014 controlling emulation of a three button mouse with option and
5015 command keys.
5016 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5017 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5018
c9159cb3
KS
50192004-02-15 Kim F. Storm <storm@cua.dk>
5020
2cc52658
KS
5021 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5022
c9159cb3
KS
5023 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5024 Perform byte-swapping.
5025
12fde2dc
KS
50262004-02-14 Kim F. Storm <storm@cua.dk>
5027
5028 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5029 bits from char to short to facilitate wider bitmaps.
5030 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5031 member.
5032
5033 * fringe.c (struct fringe_bitmap): Change member bits from char to
5034 short to facilitate 16 bits wide bitmaps. Modify all standard
5035 bitmaps accordingly.
5036 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5037 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5038 (draw_fringe_bitmap): Ditto.
5039 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5040 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5041 handle up to 16 bits wide bitmaps.
5042 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5043 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5044
5045 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5046 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5047 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5048
5049 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5050 so it is no longer necessary to expand them here.
5051
5052 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5053
9d7271e8
KS
50542004-02-12 Kim F. Storm <storm@cua.dk>
5055
5056 * window.c (Fwindow_fringes): Doc fix.
5057
706c1e4f
JD
50582004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5059
5060 * xselect.c (x_get_foreign_selection): Add new optional parameter
5061 time_stamp.
5062 (Fx_get_selection_internal): Ditto, pass time_stamp to
5063 x_get_foreign_selection.
5064
5065 * data.c (Fbyteorder): New function.
5066
c2d12b5d
JD
50672004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5068
5069 * atimer.c: Move include stdio.h to same place as in other files.
5070
5071 * region-cache.c: Ditto.
5072
5073 * sysdep.c: Ditto.
5074
5075 * xfaces.c: Ditto.
5076
4c1947b9
SS
50772004-02-09 Sam Steingold <sds@gnu.org>
5078
89458937 5079 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5080
82722af3
KS
50812004-02-09 Kim F. Storm <storm@cua.dk>
5082
5083 * fringe.c: New file. Move original fringe related declarations
5084 and code from dispextern.h and xdisp.c here.
5085 Rework code to support user defined fringe bitmaps, redefining
5086 standard bitmaps, ability to overlay user defined bitmap with
5087 overlay arrow bitmap, and add faces to bitmaps.
5088 (Voverflow_newline_into_fringe): Declare here.
5089 (enum fringe_bitmap_align): New enum.
5090 (..._bits): All bitmaps are now defined without bitswapping; that
5091 is now done in init_fringe_once (if necessary).
5092 (standard_bitmaps): New array with specifications for the
5093 standard fringe bitmaps.
5094 (fringe_faces): New array.
5095 (valid_fringe_bitmap_id_p): New function.
5096 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5097 (draw_fringe_bitmap): New function which draws fringe bitmap,
5098 possibly overlaying bitmap with cursor in right fringe or the
5099 overlay arrow in the left fringe.
5100 (update_window_fringes): Do not handle overlay arrow here.
5101 Compare and copy fringe bitmap faces.
5102 (init_fringe_bitmap): New function.
5103 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5104 define and destroy user defined fringe bitmaps.
5105 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5106 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5107 (syms_of_fringe): New function. Defsubr new DEFUNs.
5108 DEFVAR_LISP Voverflow_newline_into_fringe.
5109 (init_fringe_once, init_fringe): New functions.
5110 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5111
82722af3
KS
5112 * Makefile.in (obj): Add fringe.o.
5113 (fringe.o): New dependencies.
5114
5115 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5116 bits allocated to hold a fringe number. Increase number of bits
5117 from 4 to 8 to allow user defined fringe bitmaps.
5118 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5119 left_user_fringe_face_id, right_user_fringe_bitmap,
5120 right_user_fringe_face_id.
5121 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5122 Move to new file fringe.c.
5123 (MAX_FRINGE_BITMAPS): Define here.
5124 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5125 and overlay_p. Change member which to int.
5126 (struct redisplay_interface): New members define_fringe_bitmap
5127 and destroy_fringe_bitmap.
5128 (valid_fringe_bitmap_id_p): Add prototype.
5129 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5130
5131 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5132 arrows.
5133 (update_frame): Do flush_display if force_flush_display_p to
5134 ensure display (specifically fringes) are updated in a timely
5135 manner when resizing the frame by dragging the mouse.
5136 (update_window_line): Update row if overlay arrow changed.
5137 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5138 or overlay arrow changed.
5139
5140 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5141 syms_of_fringe, and init_fringe.
5142
5143 * frame.h (struct frame): New member force_flush_display_p.
5144
5145 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5146 Add prototypes.
5147
a3993cc8 5148 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5149 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5150 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5151 Use cursor color for displaying cursor in fringe.
82722af3
KS
5152 (x_redisplay_interface): Add null handlers for
5153 define_fringe_bitmap and destroy_fringe_bitmap functions.
5154
5155 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5156 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5157 for displaying cursor in fringe.
5158 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5159 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5160 (w32_redisplay_interface): Add them to redisplay_interface.
5161 (w32_term_init): Call w32_init_fringe instead of explicitly
5162 defining fringe bitmaps in fringe_bmp array.
5163 (x_delete_display): Call w32_reset_fringes instead of explicitly
5164 destroying fringe bitmaps in fringe_bmp array.
5165
5166 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5167 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5168 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5169 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5170 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5171 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5172 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5173 Move fringe handling vars and code to new file fringe.c.
5174 (handle_display_prop): Handle left-fringe and right-fringe
5175 display properties; store user fringe bitmaps in iterator.
5176 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5177 (clear_garbaged_frames): Set force_flush_display_p if resized.
5178 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5179 (display_line): Handle cursor in fringe at eob.
5180 (display_line): Set row user fringe bitmaps from iterator.
5181
5182 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5183 Use cursor color for displaying cursor in fringe.
5184 (x_redisplay_interface): Add null handlers for
5185 define_fringe_bitmap and destroy_fringe_bitmap functions.
5186
030400eb
JD
51872004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5188
5189 * macfns.c (Fx_change_window_property): Make doc string and
5190 parameters same as for X version.
5191
5192 * w32fns.c (Fx_change_window_property): Ditto.
5193
3af55251
KS
51942004-02-07 Kim F. Storm <storm@cua.dk>
5195
ec110e9e
KS
5196 * xdisp.c (hscroll_window_tree): Position cursor near to right
5197 margin in hscrolled window when jumping to end of line (rather
5198 than centering cursor).
5199
3af55251
KS
5200 * process.c (wait_reading_process_input): Don't do adaptive read
5201 buffering if waiting for a specific process.
5202
b0c138ce
LT
52032004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5204
5205 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5206 (Fread_minibuffer, Feval_minibuffer)
5207 (Fread_string, Fread_no_blanks_input)
5208 (Fcompleting_read): Doc fixes.
5209 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5210 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5211 (read_minibuf): Fix initial comment.
5212 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5213 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5214 checking completion-regexp-list.
5215 (Fdisplay_completion_list): Make it handle arguments that are
5216 symbols. Doc fix.
5217
9676f5ad 52182004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5219
9676f5ad 5220 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5221
9676f5ad
JD
5222 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5223 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5224 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5225 format. Remove unused variable cons.
5b698285
JD
5226
5227 * xselect.c: Include stdio,h.
5228
fc1d15f6
KH
52292004-02-05 Kenichi Handa <handa@m17n.org>
5230
ebaff4af
KH
5231 * fns.c (Fset_char_table_range): Fix previous change.
5232
fc1d15f6
KH
5233 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5234
9676f5ad
JD
52352004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5236
5237 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5238
da75761f
SM
52392004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5240
5241 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5242 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5243
13c5d120
KH
52442004-02-04 Kenichi Handa <handa@m17n.org>
5245
5246 * fns.c (Fset_char_table_range): Handle charsets ascii,
5247 eight-bit-control, and eight-bit-graphic correctly.
5248
2883d842
JR
52492004-02-03 Jason Rumney <jasonr@gnu.org>
5250
5251 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5252
5253 * w32fns.c (x_to_w32_font): Likewise.
5254
69eff41f
JD
52552004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5256
5257 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5258 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5259
5260 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5261 ClientMessages.
5262
5263 * xselect.c: Include termhooks.h and X11/Xproto.h
5264 (x_check_property_data, x_fill_property_data)
5265 (x_property_data_to_lisp, mouse_position_for_drop)
5266 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5267 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5268 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5269
da75761f 5270 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5271 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5272 OUTER_P.
5273 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5274 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5275 if vector_ret_p is true.
5276 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5277
a6eeaa81 52782004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5279
5280 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5281 basename of FILE relative to it, not FILE itself.
5282
09721b31
KH
52832004-02-02 Kenichi Handa <handa@m17n.org>
5284
5285 * coding.c (coding_restore_composition): Check invalid
5286 composition data more rigidly.
5287
eb996101
LT
52882004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5289
5290 * fileio.c (Fread_file_name_internal): Correctly handle the case
5291 where insert-default-directory is nil.
5292 (Fread_file_name): Always return an empty string if the user exits
5293 with an empty minibuffer. Adapt the docstring accordingly.
5294 (syms_of_fileio): Adapt the docstring of insert-default-directory
5295 to the change in Fread_file_name.
5296
a6eeaa81 52972004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5298
5299 * alloca.c [!alloca]: Fix the prototype for xfree.
5300
13f52ed8
KH
53012004-01-29 Kenichi Handa <handa@m17n.org>
5302
5303 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5304 (string_byte_to_char): Likewise.
5305
d57625a0
JR
53062004-01-28 Peter Runestig <peter@runestig.com>
5307
5308 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5309
a64387ee 53102004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5311
5312 * unexmacosx.c (unexec_copy): Do not copy more than was
5313 requested to prevent overwriting during unexec.
5314
eb37b8fd
JD
53152004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5316
ce38070a
JD
5317 * process.c (sigchld_handler): Add comment about not calling malloc.
5318
eb37b8fd
JD
5319 * process.h: Add extern to synch_process_termsig.
5320
a64387ee 53212004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5322
da75761f
SM
5323 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5324 Move setting of scroll bars from make_mac_frame to
5325 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5326
d62a265d
RS
53272004-01-26 Richard M. Stallman <rms@gnu.org>
5328
5329 * search.c (Freplace_match): Handle nonexistent
5330 back-references properly.
5331
53322004-01-03 Richard M. Stallman <rms@gnu.org>
5333
5334 * window.c (decode_any_window): New function.
5335 (Fwindow_height, Fwindow_width, Fwindow_edges)
5336 (Fwindow_pixel_edges, Fwindow_inside_edges)
5337 (Fwindow_inside_pixel_edges): Use decode_any_window.
5338
ff236419
JD
53392004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5340
5341 * process.h: synch_process_termsig new variable.
5342
5343 * callproc.c: Define synch_process_termsig.
5344 (Fcall_process): Initiate synch_process_termsig to zero and
5345 check if non-zero and get signal name after subprocess has ended.
5346
5347 * process.c (sigchld_handler): Set synch_process_termsig
5348 if terminated by a signal. synch_process_death setting removed.
5349
5350 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5351
41b867ea
AS
53522004-01-26 Andreas Schwab <schwab@suse.de>
5353
5354 * print.c (print_preprocess): Declare size as EMACS_INT to not
5355 lose bits.
5356 (print_object): Likewise.
5357 * alloc.c (Fpurecopy): Likewise.
5358
a08084ff
LT
53592004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5360
5361 * window.c (Fwindow_minibuffer_p): Doc fix.
5362
b19ac475
JY
53632004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5364
5365 * editfns.c (Fformat): Make both passes accept the same set of flags.
5366
fe905025
KH
53672004-01-23 Kenichi Handa <handa@m17n.org>
5368
5369 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5370 one, set buffer to OBJECT temporarily.
5371
438fc6c0
SM
53722004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5373
455316e2
SM
5374 * keyboard.c (kbd_buffer_gcpro): Remove.
5375 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5376 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5377 Don't initialize and/or maintain the variable any more. It was made
5378 redundant by my commit of 2003-06-15.
5379
438fc6c0
SM
5380 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5381
5335a4ee
JD
53822004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5383
5384 * lisp.h: Add undef DECL_ALIGN.
5385
dcdaeebc
SM
53862004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5387
5388 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5389 Check interrupt_input_pending explicitly.
5390
5391 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5392
5393 * keyboard.c (handle_async_input): New fun,
5394 extracted from input_available_signal.
5395 (input_available_signal, reinvoke_input_signal): Use it.
5396
9076a823
SM
53972004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5398
d7107586
SM
5399 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5400
5401 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5402 manipulation macros for when tags are in the lower bits.
5403 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5404 (DECL_ALIGN): New macro.
5405 (DEFUN): Use it.
5406
5407 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5408
5409 * s/darwin.h (__attribute__): Remove outdated workaround.
5410
5411 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5412
5413 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5414 Don't check range of malloc address.
5415 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5416
9076a823
SM
5417 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5418
5419 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5420
ba029065
KH
54212004-01-19 Kenichi Handa <handa@m17n.org>
5422
5423 * fontset.c (fontset_font_pattern): Fix previous change.
5424
7af0e8d7
MB
54252004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5426
5427 * xdisp.c (Voverflow_newline_into_fringe)
5428 (move_it_in_display_line_to, redisplay_internal)
5429 (update_window_fringes, redisplay_window, display_line, window):
5430 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5431 that it compiles without a window-system.
5432 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5433
77a9cf69
KS
54342004-01-16 Kim F. Storm <storm@cua.dk>
5435
5436 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5437
a64387ee 5438 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5439 buffer_local_flags for indicate_buffer_boundaries.
5440 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5441 default- variable for it.
5442
5443 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5444 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5445 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5446 overflowing newlines into right fringe.
5447 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5448 and indicate_bottom_line_p for buffer boundaries and scrolling.
5449 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5450 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5451 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5452 and HOLLOW_SQUARE_BITMAP.
5453 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5454 Add prototypes.
5455
5456 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5457 instead of related indicator fields.
5458 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5459 (direct_output_for_insert): Handle exact width lines like
5460 contined lines. Call update_window_fringes.
5461 (update_window): Call update_window_fringes.
5462 (scrolling_window): Don't skip desired rows with changed bitmaps.
5463 Check if fringe bitmaps changes when assigning scrolled rows.
5464
5465 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5466 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5467 (move_it_in_display_line_to): Overflow newline into fringe for
5468 rows that are exactly as wide as the window.
5469 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5470 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5471 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5472 (fringe_bitmaps): Add new bitmaps.
5473 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5474 Select proper bitmap for cursor in fringe when appropriate.
5475 Handle alignment of bitmap to top or bottom of row.
5476 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5477 done by update_window_fringes.
5478 (update_window_fringes, draw_window_fringes): New functions.
5479 (redisplay_internal): Call update_window_fringes in case only
5480 cursor row is updated.
5481 (redisplay_window): Call update_window_fringes.
5482 Explicitly call draw_window_fringes if redisplay was done using
5483 the current matrix or the overlay arrow is in the window.
5484 (try_window_reusing_current_matrix): Mark scrolled rows for
5485 fringe update (to update buffer-boundaries / scrolling icons).
5486 (find_last_unchanged_at_beg_row): Handle exact width lines line
5487 continued lines.
5488 (display_line): Overflow newline into fringe for rows that are
5489 exactly as wide as the window. Don't append space for newline
d7107586 5490 in this case.
77a9cf69
KS
5491 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5492 in fringe as if it had been overwritten.
5493 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5494 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5495 void-text-area-pointer as user options.
5496 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5497
77a9cf69
KS
5498 * xterm.c (x_update_window_end): Call draw_window_fringes.
5499 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5500 in row instead of actually drawing fringe bitmaps.
5501 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5502 (x_draw_window_cursor): Draw cursor in fringe.
5503
5504 * w32term.c (x_update_window_end): Call draw_window_fringes.
5505 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5506 in row instead of actually drawing fringe bitmaps.
5507 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5508 (w32_draw_window_cursor): Draw cursor in fringe.
5509
5510 * macterm.c (x_update_window_end): Call draw_window_fringes.
5511 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5512 in row instead of actually drawing fringe bitmaps.
5513 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5514 (mac_draw_window_cursor): Draw cursor in fringe.
5515
a633a954
JD
55162004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5517
5518 * xterm.c (handle_one_xevent): Don't handle characters that are part
5519 of an old style (XLookupString) compose sequence.
5520
80460525
KH
55212004-01-15 Kenichi Handa <handa@m17n.org>
5522
5523 * search.c (Freplace_match): Use make_multibyte_string or
5524 make_unibyte_string according to the buffer multibyteness.
5525
7fc34f85
SM
55262004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5527
5528 * alloc.c (struct interval_block, struct string_block)
5529 (struct symbol_block, struct marker_block, live_string_p)
5530 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5531 Better preserve alignment for objects in blocks.
5532 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5533
5534 * lread.c (defvar_per_buffer): Remove dead declaration.
5535
5536 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5537 space size.
5538
66070bd1
JD
55392004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5540
5541 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5542 if a key press should pop down. Only pop down if a key is pressed
5543 outside the menu/dialog.
5544 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5545 popup_get_selection.
5546 (create_and_show_dialog): Pass 1 for down_on_keypress to
5547 popup_get_selection.
5548
de7515d6
JD
55492004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5550
5551 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5552 BLOCK/UNBLOCK_INPUT.
5553
160b1b50
JD
55542004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5555
5556 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5557 specified.
5558
3a9f36e6
KH
55592004-01-08 Kenichi Handa <handa@m17n.org>
5560
5561 * editfns.c (Fformat): Fix '&' to '&&'.
5562
3803eb32
AS
55632004-01-08 Andreas Schwab <schwab@suse.de>
5564
5565 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5566 size if PSEUDOVECTOR_FLAG is set.
5567
9da88f37
KH
55682004-01-07 Kenichi Handa <handa@m17n.org>
5569
74ac5074
KH
5570 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5571
9da88f37
KH
5572 * fontset.c (fontset_ref_via_base): Fix previous change.
5573
05faee07
KS
55742004-01-07 Kim F. Storm <storm@cua.dk>
5575
5576 * process.c (read_process_output): Only activate adaptive
5577 buffering if we read less than 256 bytes at a time.
5578
634910c8
KS
55792004-01-06 Kim F. Storm <storm@cua.dk>
5580
5581 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5582 object and image object. Return glyph width and height.
5583 (mode_line_string, marginal_area_string): Ditto.
5584
5585 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5586 (marginal_area_string): Fix prototypes.
5587
5588 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5589 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5590 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5591
5592 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5593 buffer_posn_from_coords, and marginal_area_string functions to
5594 include both string object and image object in the lispy position.
5595 Also add actual glyph width and height to position.
5596 (read_key_sequence): Use real buffer position from mouse
5597 event to find keymap property even when click is in marginal area.
5598
5599 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5600 mode_line_string and marginal_area_string functions to handle
5601 both string object and image object properties.
d7107586 5602
57951c2e
AS
56032004-01-06 Andreas Schwab <schwab@suse.de>
5604
5605 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5606 character.
5607
181e6a61
AS
56082004-01-02 Andreas Schwab <schwab@suse.de>
5609
d7107586
SM
5610 * macterm.c (emacs_options, x_initialized, same_x_server):
5611 Remove unused (and duplicated) definitions.
181e6a61 5612
31e0fbdd
KS
56132004-01-02 Kim F. Storm <storm@cua.dk>
5614
5615 * process.h (struct Lisp_Process): New members for adaptive read
5616 buffering: adaptive_read_buffering, read_output_delay, and
5617 read_output_skip.
5618
5619 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5620 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5621 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5622 (process_output_delay_count, process_output_skip): New vars.
5623 (Vprocess_adaptive_read_buffering): New variable.
5624 (make_process): Initialize adaptive read buffering members.
5625 (Fstart_process): Set adaptive_read_buffering member.
5626 (deactivate_process): Cleanup adaptive read buffering.
5627 (wait_reading_process_input): Temporarily omit delayed
5628 subprocesses from the set of file descriptors to read from;
5629 adjust the select timeout if we skipped any subprocesses.
5630 (read_process_output): Increase adaptive read buffering delay if
5631 we read less than a full buffer; reduce delay when we read a
5632 full buffer.
5633 (send_process): Simplify using local Lisp_Process var.
5634 Reset adaptive read buffering delay after write.
5635 (init_process): Initialize process_output_delay_count and
5636 process_output_skip.
5637 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5638
68c6a789
JR
56392004-01-01 Jason Rumney <jasonr@gnu.org>
5640
d7107586 5641 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5642
3f70fe82
LT
56432003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5644
5645 * print.c (Ferror_message_string): Add hyperlink in the docstring
5646 to the definition of `signal' in the Elisp manual.
5647 * eval.c (Fsignal): Ditto.
5648
b6189c3b 56492003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5650
5651 * fns.c (internal_equal): Return t for two NaN arguments.
5652
7abd90ea
RS
56532003-12-29 Richard M. Stallman <rms@gnu.org>
5654
5655 * data.c (store_symval_forwarding): Handle setting
5656 default-fill-column, etc., by changing the value in
5657 buffers that use the default.
5658
5659 * minibuf.c (Fset_minibuffer_window): Doc fix.
5660
5661 * fileio.c (choose_write_coding_system): Ignore auto_saving
5662 if using the visited file for auto saves.
5663 (Fwrite_region): Don't update SAVE_MODIFF
5664 if auto-saving in visited file.
5665
3e7cfcdc
KH
56662003-12-29 Kenichi Handa <handa@m17n.org>
5667
5668 * dispextern.h (face_font_available_p): Extern it.
5669
5670 * fontset.c (Voverriding_fontspec_alist): New variable.
5671 (lookup_overriding_fontspec): New function.
d7107586 5672 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5673 (fontset_font_pattern): Likewise.
5674 (regulalize_fontname): New function.
5675 (Fset_fontset_font): Call regulalize_fontname.
5676 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5677 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5678 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5679
5680 * xfaces.c (face_font_available_p): New function.
5681
7abd90ea
RS
56822003-12-28 Richard M. Stallman <rms@gnu.org>
5683
5684 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5685 or if its name is nil.
5686
5687 * buffer.c (Fkill_buffer): Don't delete auto-save file
5688 if it's the same as the visited file.
5689
de1d1a40
LT
56902003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5691
5692 * coding.c (Fcheck_coding_system): Doc fix.
5693
204fb75e
KS
56942003-12-28 Kim F. Storm <storm@cua.dk>
5695
5696 * Makefile.in (eval.o): Depend on dispextern.h.
5697
5698 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5699 image glyph using image's ascent.
5700 (mode_line_string): Return image glyph as object clicked on.
5701 Adjust y0 for image glyph using image's ascent.
5702
5703 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5704 (struct glyph): New members, ascent and descent. Used to save
5705 this glyph's ascent and descent, instead of having.
5706 (struct glyph): Declare member face_id using FACE_ID_BITS.
5707 (find_hot_spot): Add prototype.
5708
5709 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5710 (QCmap): Declare extern.
5711 (make_lispy_position): When position is inside image hot-spot,
5712 use hot-spot element's id as posn element.
5713
5714 * lisp.h (IMAGEP): New macro to test for image object type.
5715 (Qimage): Declare extern.
5716
5717 * macfns.c (Qimage): Remove extern (now in lisp.h).
5718 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5719
5720 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5721
5722 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5723 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5724
5725 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5726
5727 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5728
5729 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5730 pointer types.
5731 (Qrelative_width, Qalign_to): Remove unused variables.
5732 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5733 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5734 image maps.
d7107586 5735 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5736 new dx and dy args.
5737 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5738 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5739 than row's ascent and height, to get sensible height on tall rows.
5740 (build_desired_tool_bar_string): Remove Qimage extern.
5741 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5742 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5743 image glyph is alone on the last line.
5744 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5745 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5746 (on_hot_spot_p): New function to check if position is inside an
d7107586 5747 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5748 (find_hot_spot): New function to search for image hot-spot.
5749 (Flookup_image_map): New defun to search for image hot-spot.
5750 (define_frame_cursor1): New aux function to determine frame pointer.
5751 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5752 Handle `pointer' text property and :pointer image property to
5753 control frame pointer shape. Detect image hot-spots for pointer
5754 and help_echo properties. Use define_frame_cursor1.
5755 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5756 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5757 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5758
5759 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5760
5761 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5762 (Qimage): Remove extern (now in lisp.h).
5763 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5764
5765 * xmenu.c (show_help_event): Remove unused code.
5766
5767 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5768 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5769 row's ascent and descent, to get a sensible height on tall rows.
5770
fc052137
LT
57712003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5772
5773 * minibuf.c (Fcompleting_read): Undo previous change.
5774
a64387ee 57752003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5776
5777 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5778 Arguments GCPRO'ed in call to file name handler.
5779
56ffd194
TTN
57802003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5781
5782 * termcap.c (tgetst1): Scan for "%pN"; if all
5783 N are continuous in [1,9], remove all "%pN".
5784
5202d23d
JD
57852003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5786
f26fab36
JD
5787 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5788
5202d23d
JD
5789 * xfaces.c (lface_fully_specified_p): Take into account that
5790 MAC OS always have unspecified stipple.
5791
8babaa59
TTN
57922003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5793
5794 * tparam.c (tparam1): Add handling for `%pN', which
5795 means use param N for the next substitution.
5796
2d176448
TTN
57972003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5798
5799 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5800 In case `frame' is nil, consult the selected frame.
5801 (Fcolor_supported_p): Likewise.
5802
adb0708c
LT
58032003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5804
000eeb15
LT
5805 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5806 Doc fixes.
0dc72b11
LT
5807
5808 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5809 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5810 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5811 Doc fix.
5812 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5813 read_minibuf.
5814 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5815 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5816
2e4d132b
KH
58172003-12-03 Kenichi Handa <handa@m17n.org>
5818
5819 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5820 encoding sequence.
5821
3999c705
KH
58222003-12-01 Kenichi Handa <handa@m17n.org>
5823
5824 * composite.c (syms_of_composite): Don't make the compostion hash
5825 table week.
5826
d344ecbb
LT
58272003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5828
5829 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5830 * textprop.c (Fget_char_property_and_overlay): New function.
5831 (syms_of_textprop): Defsubr it.
5832
03d6484e
JD
58332003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5834
019b1f0e
JD
5835 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5836 to compile on terminal configuration.
5837
03d6484e
JD
5838 * fileio.c (Fread_file_name): Check use_file_dialog also before
5839 calling Fx_file_dialog.
5840
5841 * fns.c: use_file_dialog: New variable.
5842 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5843
442d3fd0
KS
58442003-11-29 Kim F. Storm <storm@cua.dk>
5845
5846 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5847 (syms_of_msdos): Don't intern and staticpro them.
5848
0f6a07a8
KS
58492003-11-27 Kim F. Storm <storm@cua.dk>
5850
5851 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5852 coordinates relative to glyph at posn. If glyph is an image,
5853 return that as object at posn. Callers changed.
5854 (mode_line_string, marginal_area_string): Calculate and return
5855 pixel coordinates relative to glyph. Callers changed.
5856
5857 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5858 (marginal_area_string): Fix prototypes.
5859 (window_box_left_offset, window_box_right_offset): Add prototypes.
5860
5861 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5862 Remove prototypes.
5863
5864 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5865
5866 * keyboard.c (make_lispy_position): Add x and y coordinates
5867 relative to the current glyph as 7th element of position.
5868 If glyph is an image, return it in the object element.
5869 (read_key_sequence): Skip checks for keymap property in cases
5870 where POSN_STRING is not a string (e.g. an image).
5871
5872 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5873 (Vshow_text_cursor_in_void): New variable.
5874 (glyph_to_pixel_coords): Don't use negative hpos.
5875 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5876 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5877 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5878 (calc_pixel_width_or_height): New aux function, implementing
5879 pixel based artihmetic for glyph widths and heights.
5880 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5881 :width, :height, :align-to, and :ascent, thus allowing these to
5882 be specified in pixels as well as multiples of characters.
5883 Don't produce stretch glyphs with zero width or height.
5884 (get_specified_cursor_type): Declare static.
5885 (get_window_cursor_type): Declare static. Add glyph arg to be
5886 able to know when cursor is on an image; always substitute
5887 hollow-box cursor for filled-box cursor on images, to avoid
5888 negative images and flicker when blinking the cursor.
5889 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5890 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5891 than vertical scroll-bar cursor in display margins.
5892 (note_mouse_highlight): Use non-text cursor rather than text
5893 cursor in fringes and over images in the text area.
5894 Use non-text cursor when mouse pointer is outside editable text,
5895 i.e. in the void after end-of-line or end-of-buffer; this was
5896 already done for W32, but is now standard for all systems --
5897 user can toggle show-text-cursor-in-void to get old behaviour.
5898 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5899 Vdisplay_pixels_per_inch.
5900
00498bfc
AS
59012003-11-25 Andreas Schwab <schwab@suse.de>
5902
5903 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5904 EMACS_INT to not lose bits.
5905 (Ffillarray): Don't set bits beyond the size of a bool vector.
5906
edaa824d
KS
59072003-11-25 Kim F. Storm <storm@cua.dk>
5908
5909 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5910 define this defun on systems that cannot use stderr as lvalue.
5911
74d6f539
GM
59122003-11-24 Gerd Moellmann <gerd@gnu.org>
5913
5914 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5915 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5916 ld's default is incompatible with unexec.
5917
6a1ff3ba
KS
59182003-11-23 Kim F. Storm <storm@cua.dk>
5919
63dc7c6b
KS
5920 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5921 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5922 (Fforce_window_update): New defun.
5923 (syms_of_window): Defsubr it.
5924 (Fset_window_margins, Fset_window_fringes): Doc fix.
5925
6a1ff3ba
KS
5926 * print.c (Fredirect_debugging_output): New defun.
5927 (syms_of_print): Defsubr it.
5928
aef109b7
LT
59292003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5930
5931 * fns.c (Fset_char_table_parent): Doc fix.
5932
6a1ff3ba 59332003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5934
5935 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5936 for glyph clicked on, rather than (unused) pixel positions.
5937 (mode_line_string, marginal_area_string): Change X and Y args to
5938 pointers for returning actual row/column for glyph clicked on.
5939 Simplify and optimize loops.
5940
aef109b7
LT
5941 * dispextern.h (mode_line_string, marginal_area_string):
5942 Update prototypes.
63ccbe21
KS
5943
5944 * keyboard.c (make_lispy_position): New function for generating
5945 mouse click positions from frame and pixel coordinates.
5946 Enhanced to return buffer position and actual row/column for
5947 events outside the text area using updated mode_line_string and
5948 marginal_area_string functions.
5949 Return left-fringe and right-fringe clicks as such, rather than
5950 clicks in text area.
5951 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5952 pixel_to_glyph_coords, as we never use the results.
5953 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5954 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5955 Eliminate unused code in WHEEL_EVENT handling.
5956 (make_lispy_movement): Use make_lispy_position.
5957
5958 * window.c (coordinates_in_window): Remove redundant tests.
5959 Fix returned X pixel value for left-margin.
5960
5961 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5962 mode_line_string and marginal_area_string parameters.
5963
a64387ee 59642003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5965
d7107586
SM
5966 * w32.c (struct the_group, getgrgid): Add.
5967 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5968
3dbf3426
LT
59692003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5970
5971 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5972
cae8ddbb 59732003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5974
d7107586
SM
5975 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5976 include in call to file name handler. Optionally translate numeric
5977 UID and GID to strings. Update docstring.
5978 (directory_files_internal): Add parameter ID-FORMAT.
5979 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5980 include in call to file name handler and call to
5981 directory_files_internal. Update Docstring.
5982 (Fdirectory_files): Add dummy parameter in call to
5983 directory_files_internal.
5984 * lisp.h (Qinteger): Add.
5985 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5986 (Ffile_attributes): Add parameter.
5987 * data.c (Qinteger): Export.
cae8ddbb 5988
2550b848
LT
59892003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5990
3dbf3426 5991 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5992
88380018
KS
59932003-11-19 Kim F. Storm <storm@cua.dk>
5994
5995 * xdisp.c (init_iterator): Initialize it->start to position
5996 before reseating (in case start position is invisible).
5997 (init_to_row_start): Set it->start to row-start.
5998 (redisplay_window): Accept optional_new_start if start position
5999 is invisible (in which case IT_CHARPOS overshoots PT).
6000 (display_line): Setup row->start from it->start (rather than
6001 it->current which is wrong if first char on line is invisible).
6002 When done, reseat it->start to it->current (= start of next row).
6003 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6004 is only partially visible.
6005
6006 * dispextern.h (struct it): New member start.
6007
854c1a59
SM
60082003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6009
455316e2
SM
6010 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6011 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6012 of block_index outside of the macro call.
6013 (Fgarbage_collect): Remove null code.
6014
6015 * m/amdx86-64.h: Don't redefine XPNTR.
6016
854c1a59
SM
6017 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6018 of VALMASK.
6019
6020 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6021 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6022 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6023
6024 * lisp.h (VALMASK): Only define for non-union type.
6025 (MARKBIT): Remove.
6026 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6027 (XTYPE): Define unconditionally.
6028 (XSETTYPE): Remove one more remnant.
6029 (EQ): Define differently for the union and non-union cases.
6030 (INTMASK): New bit mask.
6031 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6032 (GC_EQ): Delegate to EQ.
6033
6034 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6035
a0c6ef2d
JD
60362003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6037
6038 * xterm.c (x_window_to_scroll_bar): Move check of display to
6039 where window_id is compared.
6040
859492c4
KS
60412003-11-17 Kim F. Storm <storm@cua.dk>
6042
6043 * dispextern.h (struct it): New member first_vpos.
6044
6045 * xdisp.c (start_display): Set it->first_vpos.
6046 (try_window_id): Use first_vpos to start display in first _text_
6047 line if no reusable lines at start of window with header line.
6048
810f2256
JD
60492003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6050
7c402969 6051 * w32fns.c (XPutPixel):
854c1a59
SM
6052 * w32bdf.c (w32_init_bdf_font):
6053 * sunfns.c (sel_read):
6054 * process.c (Fmake_network_process):
6055 * frame.c (store_frame_param):
6056 * fontset.c (Fset_fontset_font):
6057 * emacs.c (shut_down_emacs):
a64387ee 6058 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6059
a32e9bfd
JD
6060 * config.in: Regenerate.
6061
810f2256
JD
6062 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6063 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6064 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6065 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6066 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6067
6068 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6069
6070 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6071 (XTmouse_position, handle_one_xevent): Pass Display* to
6072 x_window_to_scroll_bar.
6073 (x_window_to_scroll_bar): Take a Display* argument.
6074 Check that display for frame is equal to Display* argument.
854c1a59 6075 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6076 x_display_info_for_display instead. Use Display in xev instead
6077 of GDK_DISPLAY.
6078 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6079 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6080 (x_connection_closed): Call xg_display_close for GTK.
6081 (x_term_init): Call xg_display_open for additional displays.
6082 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6083 for GTK.
6084
6085 * xmenu.c (single_menu_item, mouse_position_for_popup)
6086 (x_activate_menubar): Formatting adjustments.
6087
6088 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6089 adjustments.
6090
6091 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6092 (xg_display_close, xg_create_default_cursor)
6093 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6094 handling.
854c1a59
SM
6095 (xg_left_ptr_cursor): Remove.
6096 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6097 cursor here.
6098 (xg_win_to_widget): Take Display* argument, call
6099 gdk_xid_table_lookup_for_display.
6100 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6101 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6102 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6103 in FRAME_X_DISPLAY_INFO.
6104 (xg_get_scroll_id_for_window): Take Display* argument.
6105 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6106 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6107
78819ebb
KS
6108 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6109 Display* argument.
6110 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6111
0b03cc78
JD
61122003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6113
6114 * xterm.c (x_detect_focus_change): Do not change focus frame for
6115 Enter/LeaveNotify if the current focus frame has explicit focus.
6116
77e688fa
KS
61172003-11-14 Kim F. Storm <storm@cua.dk>
6118
6119 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6120 is active and first glyph is only partially visible.
854c1a59 6121
dd429b03
KH
61222003-11-13 Kenichi Handa <handa@m17n.org>
6123
6124 * xdisp.c (select_frame_for_redisplay): New function.
6125 (redisplay_internal): Record also selected_frame for
6126 unwind_redisplay. Call select_frame_for_redisplay before
6127 redrawing each frame.
6128 (unwind_redisplay): Argument changed to a cons.
6129
6d9266f4
LT
61302003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6131
6132 * fns.c (Fstring_to_multibyte): Doc fix.
6133
80060eb3
KH
61342003-11-11 Kenichi Handa <handa@m17n.org>
6135
6136 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6137
74305183
JD
61382003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6139
6140 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6141 program specified positions.
6142
cfda993e
JD
61432003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6144
6145 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6146
df211069
KH
61472003-11-08 Kenichi Handa <handa@m17n.org>
6148
6149 * Makefile.in (lisp): Add kannada.el.
6150 (shortlisp): Likewise.
6151
4307d534
KH
61522003-11-07 Kenichi Handa <handa@m17n.org>
6153
854c1a59
SM
6154 * coding.c (coding_allocate_composition_data):
6155 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6156 (coding_restore_composition): Detect invalid composition data.
6157 Give Fstring and Fvector a Lispy integer, not C int.
6158
854c1a59
SM
61592003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6160
6161 * floatfns.c (Flogb): Don't use VALMASK.
6162
6163 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6164 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6165
6166 * lisp.h (XINT): Move the cast to clarify what is going on.
6167 (GCTYPEMASK, XSETTYPE): Remove.
6168 (XGCTYPE): Make it an alias of XTYPE.
6169
d04103a1
JD
61702003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6171
6172 * xterm.c (x_term_init): Fix formatting.
6173
da18b5ac
JD
61742003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6175
78819ebb
KS
6176 * gtkutil.h (xg_have_tear_offs): Declare.
6177 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6178
6179 * gtkutil.c: Remove variable xg_did_tearoff.
6180 (xg_have_tear_offs): New function.
6181 (tearoff_remove): Just decrease xg_detached_menus.
6182 (tearoff_activate): Increase xg_detached_menus and call
6183 tearoff_remove when tearoff is removed.
854c1a59 6184 (xg_keep_popup): Remove function.
da18b5ac
JD
6185 (create_menus): Give add_tearoff_p as argument to recursive
6186 call to create_menus.
6187 (xg_create_widget): Use variables instead of multiple
6188 strcmp. Tell create_menus to create tear off only for
6189 menu bar menus.
6190 (xg_update_menubar): Change title for a detached menu also.
6191 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6192 of deep_p.
6193 (xg_initialize): Initialize xg_detached_menus, remove
6194 initialization of xg_did_tearoff.
6195
6196 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6197 xg_have_tear_offs returns non-zero.
6198 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6199 call to xg_keep_popup.
6200
64d4923e
AC
62012003-11-01 Andrew Choi <akochoi@shaw.ca>
6202
6203 * macterm.c (XTread_socket): Handle menubar selection and grow
6204 window only for mouseDown events.
854c1a59 6205
6cc8bc07
JD
62062003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6207
6208 * xterm.c (x_term_init): For GTK part, increase x_initialized
6209 to check for more than one display. Use error instead of return 0.
6210
043131c4
AC
62112003-10-31 Andrew Choi <akochoi@shaw.ca>
6212
854c1a59 6213 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6214 (copy_dysymtab): Call it.
6215
bdda99a1
LT
62162003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6217
6218 * eval.c (Fdefvaralias): Doc fix.
6219
800f42ff 62202003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6221
6222 * data.c (Fsetplist): Doc fix.
6223
ef35b389
LK
62242003-10-14 Lute Kamstra <lute@gnu.org>
6225
6226 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6227
ef35b389 62282003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6229
07107abc
KS
6230 * window.c (Fset_window_margins): Simplify arg checking.
6231
f7005886
RS
62322003-10-13 Richard M. Stallman <rms@gnu.org>
6233
6234 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6235 (print_partial_compiled_pattern): Replace assert with a printout.
6236 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6237
6238 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6239
6240 * window.c (Fset_window_margins): Allow only integers as args.
6241 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6242 Doc fixes.
6243
9c0c2af5
LK
62442003-10-13 Lute Kamstra <lute@gnu.org>
6245
6246 * window.c (Fset_window_fringes): Elaborate docstring.
6247
3f080e4e
AC
62482003-10-12 Andrew Choi <akochoi@shaw.ca>
6249
854c1a59 6250 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6251
3f080e4e
AC
6252 * s/darwin.h (GC_MARK_STACK): Define.
6253
0aa513ed
JD
62542003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6255
6256 * window.c (shrink_windows): New function.
6257 (size_window): Call shrink_windows to calculate window sizes when
6258 shrinking frame with more than one window.
6259
6aa8858a
KS
62602003-10-12 Kim F. Storm <storm@cua.dk>
6261
6262 * xdisp.c (compute_fringe_widths): Doc fix.
6263
c2164d91
KH
62642003-10-08 Kenichi Handa <handa@m17n.org>
6265
854c1a59 6266 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6267
f82ac129
KH
62682003-10-07 Kenichi Handa <handa@m17n.org>
6269
6270 * coding.c (Qcoding_system_define_form): New variable.
6271 (syms_of_coding): Intern and staticpro it.
6272 (Fcheck_coding_system): Try to autoload the definition of
6273 CODING-SYSTEM.
6274
9296c947
LT
62752003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6276
6277 * fns.c (Frequire): Doc fix.
6278
c1f0671a
JD
62792003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6280
3d8c3826
JD
6281 * xfns.c (Fx_send_client_event): New function as a base for
6282 manipulating extended window manager hints.
6dc15d98 6283 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6284
068ae0fd
JD
6285 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6286 that function is removed.
6287
6288 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6289 x/y_pixels_outer_diff.
6290 (x_check_expected_move): Calculate move_offset_left/top.
6291
6292 * xterm.h (struct x_output): New members: move_offset_top/left.
6293
854c1a59 6294 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6295 call x_set_offset directly.
6296
6297 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6298
96f09305
JD
6299 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6300
6301 * xterm.c (x_delete_display): Free font names and font_encoder
6302 in dpyinfo->font_table.
6303
854c1a59
SM
6304 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6305 Move xfree of font names to x_delete_display.
96f09305 6306
c1f0671a
JD
6307 * xterm.h (struct x_display_info): New member, wm_type.
6308 (struct x_output): New members, expected_top/left and
6309 check_expected_move.
6310
6311 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6312 is received.
854c1a59
SM
6313 (handle_one_xevent): Rename x_check_expected_move from
6314 x_check_fullscreen_move.
c1f0671a
JD
6315 (x_set_offset): Only add WM decoration sizes to modified_top/left
6316 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6317 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6318 Removed fullscreen specific code. Use check_expected_move,
6319 expected_left/top instead. Also, set wm_type.
6320 (x_term_init): Initialize wm_type to unknown.
6321
6322 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6323 sizes to move_x/y.
6324
be2fdba9
KH
63252003-10-03 Kenichi Handa <handa@m17n.org>
6326
6327 * macterm.c (x_load_font): Clear all members of FONTP before start
6328 filling them.
6329
63302003-10-02 Kenichi Handa <handa@m17n.org>
6331
6332 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6333 before calling find_ccl_program_func. Call find_ccl_program_func
6334 only when fontp->font_encoder is not NULL.
6335
6336 * xterm.c (x_load_font): Clear all members of FONTP before start
6337 filling them.
6338
26a6e439
JPW
63392003-10-03 John Paul Wallington <jpw@gnu.org>
6340
6341 * keymap.c (map_keymap): Don't abort when binding is a vector.
6342
0d4c2dc2
JR
63432003-10-02 Jason Rumney <jasonr@gnu.org>
6344
854c1a59
SM
6345 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6346 Sync dependencies with Makefile.in.
a63cf46f
JR
6347 (alloca.o): Remove.
6348
0d4c2dc2
JR
6349 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6350 filling them.
6351
6352 * w32bdf.c (w32_load_bdf_font): Likewise.
6353
ab8f7d5c
RS
63542003-09-30 Richard M. Stallman <rms@gnu.org>
6355
6356 * term.c (set_tty_color_mode): Calculate current_mode_spec
6357 regardless of value of VAL.
6358
854c1a59 6359 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6360 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6361 Handle over_used when splitting UNDER.
6362
a64387ee 63632003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6364
6365 * regex.c (regex_compile): Free the stack when returning from function.
6366
3413f972
KH
63672003-09-28 Kenichi Handa <handa@m17n.org>
6368
6369 * fontset.c (Finternal_char_font): Change return value to
6370 cons (FONT-NAME . GLYPH-CODE).
6371
a6eeaa81 63722003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6373
6374 * term.c (tty_setup_colors): Treat any negative argument as -1.
6375
f98ddc99
KH
63762003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6377
6378 * process.c (send_process): Delete unused temp_buf.
6379
66c8f1a8
DL
63802003-09-26 Dave Love <fx@gnu.org>
6381
6382 * xterm.c (x_bitmap_mask): Declare.
6383
ca716c26
DL
63842003-09-25 Dave Love <fx@gnu.org>
6385
6386 * Makefile.in (fns.o): Depend on md5.h.
6387
fbe57420
KS
63882003-09-25 Kim F. Storm <storm@cua.dk>
6389
6390 * window.c (set_window_buffer): Fix redisplay problems when
6391 switching between buffers with different display margin widths.
6392
ef6ae4ff
KS
63932003-09-23 Kim F. Storm <storm@cua.dk>
6394
6395 * process.c (set_socket_option): Fix :bindtodevice option.
6396 (Fset_network_process_option): Update process contact list when
6397 setting option succeeds.
6398 (Fmake_network_process): Doc fix.
6399
68e03c1c
DL
64002003-09-23 Dave Love <fx@gnu.org>
6401
7146d1c1 6402 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6403
a6eeaa81 64042003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6405
6406 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6407 color mode is an integer number (it could be -1).
6408
8fe7d8c8
RS
64092003-09-22 Richard M. Stallman <rms@gnu.org>
6410
6411 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6412 in the case where OVER is longer than UNDER.
6413
2f71b5ea
MY
64142003-09-22 Masatake YAMATO <jet@gyve.org>
6415
7146d1c1 6416 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6417 `vertical_type'.
7146d1c1 6418
0c4da023
KS
64192003-09-21 Kim F. Storm <storm@cua.dk>
6420
6421 * frame.c (Vdefault_frame_scroll_bars): New variable.
6422 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6423 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6424 window-system default scroll bar position.
6425
b648413b
KS
6426 * window.c (Fwindow_scroll_bars): Doc fix.
6427
8f5b9e34
JD
64282003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6429
854c1a59 6430 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6431
b0f23edf
RS
64322003-09-19 Richard M. Stallman <rms@gnu.org>
6433
6434 * atimer.h: Don't include lisp.h.
6435 (P_): Define it here (as well as elsewhere).
6436
6437 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6438 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6439
6440 * data.c (Fvariable_binding_locus): New function.
6441 (syms_of_data): defsubr it.
6442 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6443
e1283999
DL
64442003-09-18 Dave Love <fx@gnu.org>
6445
ad5f3636
DL
6446 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6447
e1283999
DL
6448 * process.c (Fnetwork_interface_info): Fix type error.
6449 (Fnetwork_interface_list): Doc fix.
6450 (read_process_output, read_process_output): Delete unused var.
6451
b8c7fd71
KS
64522003-09-17 Kim F. Storm <storm@cua.dk>
6453
6454 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6455 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6456 (Fnetwork_interface_info): Check that ifreq struct has required
6457 fields before accessing them; this requires that those fields are
6458 defined as macros, which may be too restrictive on some platforms,
6459 but it is better than failing on other platforms.
6460 (syms_of_process): Only defsubr above fns when included.
6461
11e0a411
DL
64622003-09-17 Dave Love <fx@gnu.org>
6463
6464 * unexalpha.c: Don't include varargs.h.
6465
e9c50801
KS
64662003-09-17 Kim F. Storm <storm@cua.dk>
6467
6468 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6469 for network process.
6470 (socket_options): Add `:' prefix to option names. Add optbit field.
6471 (set_socket_option): Remove no_error arg and special handling of s < 0.
6472 Return 1<<optbit for known option, 0 for unknown.
6473 Do not interpret 0 as false for boolean option (only nil).
6474 Pass failed option and value to report_file_error.
7146d1c1 6475 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6476 (Fset_network_process_option): New function to set just one option.
6477 (Fmake_network_process): Allow :coding arg to be a cons.
6478 Allow :server arg to be an integer specifying backlog size.
6479 Remove :options arg, and allow options to be specified directly
6480 as :KEY, VALUE pairs. Parse these options before binding socket.
6481 As before, :reuseaddr t is default for a server process, but this
6482 can now be disabled by specifying :reuseaddr nil.
6483 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6484 (init_process): Availability of network options is now checked with
6485 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6486 setup features.
6487 (syms_of_process): Fix defsubr's for the replaced functions.
6488
a0fc3644
DL
64892003-09-16 Dave Love <fx@gnu.org>
6490
6491 * Makefile.in: Depend on coding.h.
6492
6df2a645
KS
64932003-09-14 Kim F. Storm <storm@cua.dk>
6494
6495 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6496 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6497 (syms_of_process): Defsubr them.
6498
6499 * config.in: Regenerate.
7146d1c1
SM
6500
65012003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6502
6503 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6504 * m/news-r6.h (XUNMARK): Remove.
6505 * m/mips.h (XUNMARK): Remove.
6506 * m/mips-siemens.h (XUNMARK): Remove.
6507 * m/iris4d.h (XUNMARK): Remove.
6508 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6509
0930c1a1
SM
65102003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6511
31003b9e
SM
6512 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6513 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6514 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6515 (XTYPE): Use unsigned right-shift.
6516 (XMARKBIT, XMARK, XUNMARK): Remove.
6517
0930c1a1
SM
6518 * alloc.c (init_intervals, init_symbol, init_marker):
6519 Don't preallocate anything.
6520 (Fgarbage_collect, mark_object): Ignore the markbit.
6521
6522 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6523
19bb0fcd 65242003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6525
6526 * xdisp.c (pint2hrstr): New function.
6527 (decode_mode_spec): Add `%i' and `%I' specs.
6528 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6529 for `mode-line-format'.
6530
03bb6a06
AS
65312003-09-07 Andreas Schwab <schwab@suse.de>
6532
6533 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6534 avoid warning.
6535
a6eeaa81 65362003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6537
0930c1a1 6538 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6539
ed159bbf
KS
65402003-09-03 Kim F. Storm <storm@cua.dk>
6541
6542 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6543 change (superseded by 2002-08-30 change); the default blink-off
6544 cursor is now again "no cursor".
6545
fe64a394
JR
65462003-09-01 Jason Rumney <jasonr@gnu.org>
6547
6548 * makefile.w32-in (alloca.o): Remove.
6549 (coding.o): Depend on intervals.h
6550 (emacs.o, bytecode.o): Depend on window.h
6551
c0175e24
DL
65522003-09-01 Dave Love <fx@gnu.org>
6553
6554 * Makefile.in (alloca.o): Remove commands.
6555 (coding.o): Depend on intervals.h composite.h window.h.
6556 (emacs.o): Depend on window.h keyboard.h keymap.h.
6557 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6558 (bytecode.o): Depend on window.h.
6559
a24d4cb2
JR
65602003-08-31 Jason Rumney <jasonr@gnu.org>
6561
4bc2315e
JR
6562 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6563 returned even when font_type is unknown.
6564
a24d4cb2
JR
6565 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6566
9d35adc7
JD
65672003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6568
6569 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6570
6571 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6572 *_offset.
6573
6574 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6575 calculate pixel value.
6576
6f68b035
GM
65772003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6578
0930c1a1
SM
6579 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6580 Don't tell redisplay display is accurate when it's actually been
6581 paused for pending input.
6f68b035 6582
4828b4d7
RS
65832003-08-29 Richard M. Stallman <rms@gnu.org>
6584
6585 * dispnew.c (adjust_glyph_matrix): Call window_box
6586 whenever W is nonzero.
6587
6588 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6589 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6590 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6591 Use indirect_variable to trace thru variable aliases.
6592
6593 * config.in: Updated.
6594
6595 * callint.c (Fcall_interactively): Save and restore
6596 Vthis_command, Vthis_original_command, real_this_command,
6597 and current_kboard->Vlast_command.
6598
6599 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6600
e019878d
GM
66012003-08-29 Gerd Moellmann <gerd@gnu.org>
6602
6603 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6604
85478bc6
KH
66052003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6606
0930c1a1 6607 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6608 (decode_coding_sjis_big5): Likewise.
6609
07ce82d3
JR
66102003-08-27 Jason Rumney <jasonr@gnu.org>
6611
d3703de3
JR
6612 * w32.c (sys_pipe): Protect against file descriptor overflow.
6613
ee4a01d1
JR
6614 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6615
07ce82d3
JR
6616 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6617
a64387ee 66182003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6619
6620 * xfns.c (Vgtk_version_string): New variable.
6621 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6622
a6eeaa81 66232003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6624
0930c1a1 6625 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6626
5459e42a
EZ
6627 * Makefile.in (msdos.o): Depend on intervals.h.
6628
0930c1a1 6629 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6630
231d6cfb
JD
66312003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6632
6633 * xterm.h (struct x_display_info): New fields: client_leader_window
6634 and Xatom_wm_client_leader.
6635
6636 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6637 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6638
6639 * xsmfns.c (create_client_leader_window): New function.
6640 (x_session_initialize): Call create_client_leader_window, take
6641 dpyinfo as argument.
6642
6643 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6644
6645 * Makefile.in (xsmfns.o): Add more depenedencies.
6646
afa88464
DL
66472003-08-21 Dave Love <fx@gnu.org>
6648
6649 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6650
f730033e
KH
66512003-08-21 Kenichi Handa <handa@m17n.org>
6652
6653 * term.c (term_init): Fix previous change; don't rely on the
6654 length of `buffer' if TERMINFO is defined.
6655
6dca786c
DL
66562003-08-20 Dave Love <fx@gnu.org>
6657
6658 * atimer.h: Include lisp.h.
6659
6660 * lisp.h (EMACS_LISP_H): New.
6661 (popup_activated_flag): Don't declare.
6662
6663 * alloca.c: Some merging with gnulib. Change logic and doc
6664 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6665 [DO_BLOCK_INPUT]: Don't include lisp.h.
6666 (xmalloc, xfree): Declare.
6667 (malloc): Don't declare.
6668
0930c1a1 6669 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6670 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6671 atimer.h, blockinput.h.
6672
6673 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6674
78819ebb 6675 * alloca.s: Remove.
6dca786c 6676
3a06a6d9
RS
66772003-08-19 Gerd Moellmann <gerd@gnu.org>
6678
6679 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6680 use -lncurses.
6681
6682 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6683 FreeBSD returns something longer than 2044. Abort if the end of
6684 the buffer is overwritten.
6685
27eeee55
MB
66862003-08-19 Miles Bader <miles@gnu.org>
6687
6688 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6689
2f297815
GM
66902003-08-19 Gerd Moellmann <gerd@gnu.org>
6691
f4446bbf
GM
6692 * alloc.c (lisp_align_malloc): Check for memory full when
6693 allocating ablocks, which also avoids freeing a pointer into an
6694 ablocks structure.
6695
6696 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6697
0930c1a1 6698 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6699
0e7d7aae
RS
67002003-08-16 Richard M. Stallman <rms@gnu.org>
6701
6702 * editfns.c (Fencode_time): Doc fix.
6703
67042003-08-16 David Ponce <david@dponce.com>
6705
6706 * fileio.c (Fwrite_region): Fix conditional expression to issue
6707 the right message.
6708
b6189c3b 67092003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6710
6711 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6712 Set default value to 1.
0e7d7aae 6713
5d551295
KH
67142003-08-15 Kenichi Handa <handa@m17n.org>
6715
6716 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6717 what autoscaled.
6718 (best_matching_font): Once we find a better scalable font, set
6719 non_scalable_has_exact_height_p to 1.
6720 (try_font_list): Call try_alternative_families to try any family
6721 with the given registry.
6722
1661e56b
AS
67232003-08-09 Andreas Schwab <schwab@suse.de>
6724
f29181dc
AS
6725 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6726
1661e56b
AS
6727 * print.c (print_string): Fix printing of multibyte string with
6728 nontrivial printcharfun.
6729
465aa50a
JD
67302003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6731
6732 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6733
6734 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6735
e430e5ba
KH
67362003-07-31 Kenichi Handa <handa@m17n.org>
6737
6738 * process.c (read_process_output): Return the actually read bytes
6739 instead of the result of decoding.
6740
97e7188e
KH
67412003-07-31 Kenichi Handa <handa@m17n.org>
6742
6743 * xterm.h (struct x_bitmap_record): New member have_mask.
6744
6745 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6746 to 0.
6747 (x_create_bitmap_from_file): Likewise.
6748 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6749 (x_destroy_all_bitmaps): Likewise.
6750 (x_create_bitmap_mask): Set have_mask member to 1.
6751
b53094d6
RS
67522003-07-30 Richard M. Stallman <rms@gnu.org>
6753
6754 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6755
631f2082
JD
67562003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6757
6758 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6759
c855f2ca
RS
67602003-07-29 Richard M. Stallman <rms@gnu.org>
6761
6762 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6763 Conditionalize XIM code on HAVE_XIM.
6764
6765 * fns.c (Fclear_string): New function.
6766 (syms_of_fns): defsubr it.
6767
b6189c3b 67682003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6769
0930c1a1 6770 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6771
29ea8ae9
SM
67722003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6773
6774 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6775
6776 * buffer.c (delete_all_overlays): New function.
6777 * buffer.h (delete_all_overlays): Declare.
6778 * coding.c (run_pre_post_conversion_on_str):
6779 * print.c (temp_output_buffer_setup):
6780 * fileio.c (Finsert_file_contents):
6781 * minibuf.c (get_minibuffer): Use it.
6782
1dd7ccf2
AC
67832003-07-22 Andrew Choi <akochoi@shaw.ca>
6784
6785 * unexmacosx.c (unexec_regions_sort_compare):
6786 (unexec_regions_merge): New functions. Sort and merge unexec
6787 regions before dumping them.
6788
f57bd967
DL
67892003-07-22 Dave Love <fx@gnu.org>
6790
6791 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6792
7cdee936
SM
67932003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6794
6795 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6796 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6797 MARKBIT as the gcmarkbit for strings.
6798
e50886d3
RS
67992003-07-21 Richard M. Stallman <rms@gnu.org>
6800
6801 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6802
29ea8ae9 6803 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6804 (syms_of_fns): Corresponding change.
6805
6806 * alloc.c (syms_of_alloc): Doc fixes.
6807
68082003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6809
6810 * s/netbsd.h: Use -Wl syntax.
6811
fdc39b59
RS
68122003-07-17 Richard M. Stallman <rms@gnu.org>
6813
6814 * xterm.c (xim_initialize): Redo 6/24 change.
6815
9c53385f
SM
68162003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6817
6818 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6819 (Fswitch_to_buffer): Don't signal an error when switching to the same
6820 buffer in a dedicated window.
6821
6822 * alloc.c: Use bitmaps for cons, as was done for floats.
6823 (init_float, init_cons): Let the normal code allocate the first block.
6824 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6825 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6826 New macros.
6827 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6828 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6829 (live_cons_p): Check the pointer is not past the `conses' array.
6830 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6831 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6832 (survives_gc_p): Use CONS_MARKED_P and simplify.
6833 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6834
dde13196
PE
68352003-07-13 Paul Eggert <eggert@twinsun.com>
6836
6837 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6838 puts it into BSS instead, at least on Solaris 8 and 9.
6839 This is a valid optimization, and it may occur on other platforms,
6840 so Emacs should not assume that initializing a static variable to
6841 zero puts it into data.
6842 * alloc.c (pure, staticvec):
6843 Initialize these arrays to nonzero, so that they're not
6844 put into BSS by that optimization.
6845
a801bc34
SM
68462003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6847
6848 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6849 (lisp_align_malloc): Use posix_memalign is available.
6850 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6851 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6852 for consistency. Update users.
6853
0c8b2afa
RS
68542003-07-13 Richard M. Stallman <rms@gnu.org>
6855
6856 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6857
668c2ab0
JB
68582003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6859
6860 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6861 and use the Gtk+ function gtk_window_icon_from_file if available.
6862
6863 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6864 handle mask of bitmaps.
6865 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6866 mask property.
6867 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6868
6869 * xterm.h (xg_set_icon): New function.
6870
800bebe3
RS
68712003-07-12 Paul Eggert <eggert@twinsun.com>
6872
6873 * unexelf.c (unexec): Consider a section to precede the .bss
6874 section if its addresses overlap that of .bss.
6875
69e38995
RS
68762003-07-12 Richard M. Stallman <rms@gnu.org>
6877
6878 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6879
6880 * config.in (HAVE_CRTIN): Add #undef.
6881 (INLINE): Really inline only if OPTIMIZE is defined.
6882
6883 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6884 END_FILES_1.
6885 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6886 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6887
6888 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6889 (TERMINFO): Define.
6890 (LIBS_TERMCAP): Define.
6891 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6892
6893 * xfns.c: Include libpng/png.h instead of png.h.
6894
f1d0c238
AS
68952003-07-11 Andreas Schwab <schwab@suse.de>
6896
6897 * buffer.c (modify_overlay): Update prototype.
6898 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6899 Likewise.
6900
5f6bf5fe
SM
69012003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6902
6903 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6904 (struct interval): Move to intervals.h.
6905 (struct Lisp_Marker): Use EMACS_INT for position info.
6906 (forward_point): Remove prototype of defunct function.
6907 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6908 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6909 (syms_of_textprop, set_text_properties): Remove prototypes that are
6910 already in intervals.h.
6911
6912 * intervals.h (struct interval): Move from lisp.h.
6913 Use EMACS_INT for position and size info.
6914
6915 * coding.c: Include intervals.h for Fset_text_properties.
6916
6917 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6918 position and length information.
6919
2765b457
SM
69202003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6921
6922 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6923 position and length information.
6924
2410d73a
SM
69252003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6926
6927 Change overlays_after and overlays_before so the overlays themselves
6928 are linked into lists, rather than using cons cells. After all each
6929 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6930 Lisp_Overlay for free and save up one cons cell per overlay (not
6931 to mention one indirection when traversing the list of overlay).
6932
6933 * lisp.h (struct Lisp_Overlay): New field `next'.
6934
6935 * buffer.h (struct buffer): Change overlays_before and overlays_after
6936 from Lisp lists of overlays to pointers to overlays.
6937
6938 * buffer.c (overlay_strings, recenter_overlay_lists):
6939 Fix typo in eassert in last commit.
6940 (unchain_overlay): New function.
6941 (add_overlay_mod_hooklist): Use AREF.
6942 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6943 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6944 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6945 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6946 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6947 Adjust to new type of overlays_(before|after).
6948
6949 * alloc.c (mark_object): Mark the new `next' field of overlays.
6950 (mark_buffer): Manually mark the overlays_(after|before) fields.
6951
6952 * coding.c (run_pre_post_conversion_on_str):
6953 * editfns.c (overlays_around):
6954 * xdisp.c (load_overlay_strings):
6955 * fileio.c (Finsert_file_contents):
6956 * indent.c (current_column):
6957 * insdel.c (signal_before_change, signal_after_change):
6958 * intervals.c (set_point_both):
6959 * print.c (temp_output_buffer_setup): Use new type for
6960 overlays_(before|after).
6961
04812929
SM
69622003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6963
6964 * buffer.c (report_overlay_modification): Don't run hooks while
6965 traversing the list of overlays.
6966
6967 * buffer.h (struct buffer): Use an int for overlay_center.
6968 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6969 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6970
6971 * buffer.c (reset_buffer, recenter_overlay_lists)
6972 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6973 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6974 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6975 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6976 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6977
6978 * xdisp.c (fast_find_position): Remove unused var.
6979
6980 * cmds.c (Qexpand_abbrev): New sym.
6981 (syms_of_cmds): Initialize it.
6982 (internal_self_insert): Use it to call expand-abbrev.
6983
2e7ecf15
KS
69842003-07-09 Kim F. Storm <storm@cua.dk>
6985
f9711de4 6986 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6987 was configured with --without-xim.
42f81f64 6988 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6989
c6de56a0
RS
69902003-07-07 Richard M. Stallman <rms@gnu.org>
6991
6992 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6993
6994 * alloc.c (Fgarbage_collect): Doc fix.
6995
b6189c3b 69962003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6997
6998 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6999
bfe1a3f7
SM
70002003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7001
04812929
SM
7002 * minibuf.c (read_minibuf): UNGCPRO before returning.
7003 (Ftry_completion, Fall_completions): Doc fix.
7004
bfe1a3f7
SM
7005 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7006 now that `floats' is not the last element of the struct any more.
7007
ee79d1aa
JR
70082003-07-06 Jason Rumney <jasonr@gnu.org>
7009
7010 * w32term.h (ClipboardSequence_Proc): New type.
7011
7012 * w32fns.c (clipboard_sequence_fn): New variable.
7013 (globals_of_w32fns): Initialize it.
7014
7015 * w32select.c (last_clipboard_sequence_number): New variable.
7016 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7017 number if possible.
7018
49723c04
SM
70192003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7020
4698665f
SM
7021 * m/amdx86-64.h (MARKBIT):
7022 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7023 MARKBIT and ARRAY_MARK_FLAG any more.
7024
7025 * m/hp800.h (XSETMARKBIT):
7026 * m/sr2k.h (XSETMARKBIT):
7027 * lisp.h (XSETMARKBIT): Remove unused macro.
7028
49723c04
SM
7029 * lisp.h (mark_object): Change prototype.
7030
7031 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7032 (last_marked): Change accordingly.
7033 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7034 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7035 (mark_buffer): Update calls to mark_object.
7036
7037 * bytecode.c (mark_byte_stack):
7038 * fns.c (sweep_weak_table):
7039 * keyboard.c (mark_kboards): Update calls to mark_object.
7040
1d660eca
JR
70412003-07-06 Jason Rumney <jasonr@gnu.org>
7042
7043 * alloc.c (struct ablock): Only include padding when there is some.
7044
618b5ae4
SM
70452003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7046
7047 * alloc.c (ALIGN): Add casts to simplify usage.
7048 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7049 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7050 (struct ablock, struct ablocks): New types.
7051 (free_ablock): New global var.
7052 (lisp_align_malloc, lisp_align_free): New functions.
7053 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7054 (struct float_block): Reorder and add gcmarkbits.
7055 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7056 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7057 (init_float, make_float): Use lisp_align_malloc.
7058 (free_float, live_float_p): Don't use `type' any more.
7059 (make_float): Use FLOAT_UNMARK to access to mark bit.
7060 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7061 Use FLOAT_MARKED_P to access the mark bit.
7062 (pure_alloc): Simplify use of ALIGN.
7063 (mark_object): Use FLOAT_MARK to access the mark bit.
7064 (gc_sweep): Use new macros to access the float's mark bit.
7065 (init_alloc_once): Init free_ablock.
7066
7067 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7068
3ef06d12
SM
70692003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7070
7071 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7072 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7073 (allocate_buffer): Move.
7074 (string_bytes): Don't mask markbit of `size_byte'.
7075 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7076 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7077 Use the `size' field of buffers (rather than the `name' field) for
7078 the mark bit, as is done for all other vectorlike objects.
7079 Use the new macros to access the mark bit of vectorlike objects.
7080
e81043aa
RS
70812003-06-26 Richard M. Stallman <rms@gnu.org>
7082
7083 * puresize.h (BASE_PURESIZE): Increment base size.
7084
7085 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7086
7087 * xterm.c (xim_initialize): Undo previous change.
7088
2d0834cc
SM
70892003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7090
7091 * alloc.c (survives_gc_p): Simplify.
7092
7093 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7094
7095 * window.c (Fset_window_dedicated_p): Simplify.
7096 (display_buffer_1): Don't raise the win from which minibuf was entered.
7097 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7098 (Fminibuffer_selected_window): Simplify.
7099
7100 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7101
7102 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7103 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7104
7105 * insdel.c (check_markers, adjust_markers_for_delete)
7106 (adjust_markers_for_insert, adjust_markers_for_replace)
7107 (prepare_to_modify_buffer, RESTORE_VALUE):
7108 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7109 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7110 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7111 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7112 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7113 * editfns.c (save_excursion_restore, transpose_markers):
7114 * window.c (delete_window):
7115 * xdisp.c (message_dolog): Update for new types.
7116
d54ae3d8
JD
71172003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7118
a5f696ac
JD
7119 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7120 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7121 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7122
7123 * frame.c (make_frame): Initialize default_face_done_p.
7124
7125 * frame.h (struct frame): Add default_face_done_p.
7126
d54ae3d8
JD
7127 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7128 will be defined.
7129
2336fe58
SM
71302003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7131
7132 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7133 Initialize the new field `gcmarkbit'.
7134 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7135 (mark_interval_tree): Don't mark the tree separately from the nodes.
7136 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7137 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7138 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7139
7140 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7141 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7142 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7143 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7144 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7145
bcea31c2
DL
71462003-06-24 Dave Love <fx@gnu.org>
7147
7148 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7149
7150 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7151 from gnulib.
7152
2601f59e
RS
71532003-06-21 Richard M. Stallman <rms@gnu.org>
7154
7155 * fileio.c (Fwrite_region): Alternate messages
7156 for append and partial write.
7157
7158 * keyboard.c (read_key_sequence): When converting upcase fn key to
7159 downcase, update fkey and keytran so `backspace' gets translated.
7160
7161 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7162
7163 * process.c (wait_reading_process_input): Don't signal SIGIO
7164 in batch mode.
7165
b5d2c621
KH
71662003-06-17 Kenichi Handa <handa@m17n.org>
7167
7168 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7169 composite.h.
7170
7171 * xselect.c: Don't include charset.h, coding.h, composite.h.
7172 (Qforeign_selection): New variable.
7173 (syms_of_xselect): Intern and static it.
7174 (selection_data_to_lisp_data): Return a unibyte string made from
7175 data with `foreign-selection' text property.
7176
6793bc63
SM
71772003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7178
7179 * termhooks.h (EVENT_INIT): New macro.
7180
7181 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7182
7183 * alloc.c (mark_kboards): Move to keyboard.c.
7184
7185 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7186 * xterm.c (x_dispatch_event):
7187 * xmenu.c (find_and_call_menu_selection):
7188 * xdisp.c (handle_tool_bar_click):
7189 * w32menu.c (menubar_selection_callback):
7190 * sysdep.c (kbd_input_ast, read_input_waiting):
7191 * msdos.c (dos_rawgetc):
7192 * macterm.c (mac_check_for_quit_char):
7193 * macmenu.c (menubar_selection_callback):
7194 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7195 data to kbd_buffer_store_event.
7196
b3ea810c
KS
71972003-06-15 Kim F. Storm <storm@cua.dk>
7198
7199 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7200 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7201
b8f75eda
KG
72022003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7203
7204 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7205
ba92ce48
KH
72062003-06-12 Kenichi Handa <handa@m17n.org>
7207
7208 * fileio.c (Fwrite_region): Save and restore restriction.
7209
b80263be
DL
72102003-06-12 Dave Love <fx@gnu.org>
7211
7212 * alloca.c (alloca): Declare arg as size_t.
7213
6793bc63
SM
7214 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7215 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7216
b23c0a83
DL
72172003-06-11 Dave Love <fx@gnu.org>
7218
7219 * search.c (shrink_regexp_cache): Use xrealloc.
7220 (syms_of_search): Use xmalloc.
7221
700e47c2
KS
72222003-06-10 Kim F. Storm <storm@cua.dk>
7223
7224 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7225 Adjust phys_cursor.x to be relative to window box, rather than
7226 text area before checking -- to ensure cursor is redrawn when
7227 exposing window.
7228 Note: This also fixes a similar (older) bug if display margins
7229 are present.
7230
f11aa0b2
KH
72312003-06-06 Kenichi Handa <handa@m17n.org>
7232
7233 * coding.c (encoding_buffer_size): If coding->type is
7234 coding_type_ccl, double magnification on CRLF encoding.
7235
3d143690
JR
72362003-06-06 Jason Rumney <jasonr@gnu.org>
7237
7238 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7239 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7240
7241 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7242 Mac too.
7243
f16205ca
DL
72442003-06-05 Dave Love <fx@gnu.org>
7245
b23c0a83
DL
7246 * strftime.c: Merge changes from gnulib.
7247
f16205ca
DL
7248 * mktime.c (__mktime_internal): Merge changes from gnulib
7249 involving year 69 and dst2.
7250
7251 Changes to merge with gnulib version and be consistent with the
7252 autoconf test:
7253
6793bc63
SM
7254 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7255 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7256 [HAVE_LOCALE_H]: Include locale.h.
7257 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7258
9b87a0bc
KS
72592003-06-05 Kim F. Storm <storm@cua.dk>
7260
7261 * window.c (coordinates_in_window): Convert X and Y to window
7262 relative coordinates inside mode-line and header-line parts.
7263 Convert X and Y to margin area relative coordinates inside left
7264 and right display margin parts.
7265
5a8a15ec
JR
72662003-06-05 Jason Rumney <jasonr@gnu.org>
7267
7268 * w32fns.c (add_system_logical_colors_to_map): New function.
7269 (Fx_open_connection): Use it.
7270
01ed8ff1
SM
72712003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7272
7273 * process.c (allocate_pty): Revert part of the previous patch.
7274 (Faccept_process_output): Simplify.
7275
b427b65d
JR
72762003-06-04 Jason Rumney <jasonr@gnu.org>
7277
7278 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7279
7280 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7281 (lispy_mouse_wheel_names): Remove.
7282 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7283 Always define drag_and_drop_syms.
7284
7285 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7286 WHEEL_EVENT events.
7287
914a8c47
SM
72882003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7289
01ed8ff1
SM
7290 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7291
914a8c47
SM
7292 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7293
adcb132c
JD
72942003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7295
7296 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7297 menu item label.
7298
be781fa7
RS
72992003-06-03 Richard M. Stallman <rms@gnu.org>
7300
7301 * window.c (Fwindow_edges): Doc fix.
7302 (Fwindow_pixel_edges, Fwindow_inside_edges)
7303 (Fwindow_inside_pixel_edges): New functions.
7304 (syms_of_window): defsubr them.
7305
7306 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7307 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7308
914a8c47
SM
73092003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7310
7311 * dispnew.c (Fsit_for): Don't lie about the number of args.
7312
5b07197a
DL
73132003-06-02 Dave Love <fx@gnu.org>
7314
7315 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7316 (syms_of_callproc) <process-environment>: Doc fix.
7317
7318 * doc.c: Use HAVE_FCNTL_H, not USG5.
7319
7320 * xfaces.c (font_rescale_ratio): Fix for K&R.
7321
7322 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7323
7324 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7325
7326 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7327
7328 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7329 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7330
d7107586 7331 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7332
7333 * xmenu.c (ENCODE_MENU_STRING): New.
7334 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7335 Use it.
7336
7337 * coding.h (ENCODE_UTF_8): New.
7338 (Qutf_8): Declare.
7339
7340 * coding.c (Qutf_8): New.
7341 (syms_of_coding): Intern it.
7342
7343 * fns.c: Doc fixes.
7344
7335b336
KH
73452003-06-02 Kenichi Handa <handa@m17n.org>
7346
7347 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7348
914a8c47
SM
73492003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7350
7351 * lread.c (openp): Make sure STR is a string.
7352
9862c135
JR
73532003-06-01 David Ponce <david@dponce.com>
7354
cab27d04 7355 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7356 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7357
7358 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7359 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7360 (discard_mouse_events): Discard WHEEL_EVENT events too.
7361 (lispy_wheel_names, wheel_syms): New.
7362 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7363 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7364 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7365
7366 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7367 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7368 WHEEL_EVENT events.
7369
f984e73e
JPW
73702003-05-31 John Paul Wallington <jpw@gnu.org>
7371
7372 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7373 timer are in lisp/emacs-lisp.
7374
1efcd78f
KH
73752003-05-31 Kenichi Handa <handa@m17n.org>
7376
458c8af4
KH
7377 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7378 region when a buffer is changed to unibyte.
7379
1efcd78f
KH
7380 * charset.h (VALID_LEADING_CODE_P): New macro.
7381 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7382
778e2804
KH
7383 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7384 is nonzero, accept multibyte form of eight-bit-control chars.
7385 (decode_composition_emacs_mule): Likewise.
7386 (decode_coding_emacs_mule): Likewise.
7387 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7388 multibyte form of eight-bit-control chars.
7389
7390 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7391 (Finsert_file_contents): If coding-system-for-read is bound to
7392 Qauto_save_coding, use the coding system emacs-mule with special
7393 setting for recovering a file.
7394 (choose_write_coding_system): On auto saving, use the coding
7395 system emacs-mule with special setting for auto saving.
7396 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7397
034060e4
KH
73982003-05-30 Kenichi Handa <handa@m17n.org>
7399
7400 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7401 properly before calling ccl_driver.
7402
778e2804 7403 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7404
cab27d04 7405 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7406 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7407 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7408
595f5aa5
GM
74092003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7410
7411 * xfaces.c (realize_default_face): Do not abort if lface is
7412 non-existent - reverts change from 2003-05-19.
7413
103e0180
KH
74142003-05-29 Kenichi Handa <handa@m17n.org>
7415
7416 * coding.c (decode_coding_iso2022): Pay attention to the byte
7417 sequence of CTEXT extended segment, and retain those bytes as is.
7418
74192003-05-28 Kenichi Handa <handa@m17n.org>
7420
cab27d04 7421 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7422 of CODING_REPLACEMENT_CHARACTER.
7423 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7424 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7425 check this flag on encoding.
cab27d04
SM
7426 (encode_coding_sjis_big5):
7427 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7428 (Fset_terminal_coding_system_internal):
7429 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7430 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7431
7432 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7433 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7434 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7435
ff6a3bfb 74362003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7437
ff6a3bfb
RS
7438 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7439
7440 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7441
1963c428
KS
74422003-05-28 Kim F. Storm <storm@cua.dk>
7443
7444 * xdisp.c (expose_window): Fix error in calculation of
7445 window relative coordinates of area to redisplay.
7446
2b5d4601
JR
74472003-05-27 Jason Rumney <jasonr@gnu.org>
7448
7449 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7450
1c64a4a2
JB
74512003-05-27 David Ponce <david@dponce.com>
7452
7453 Handle W32 mouse wheel events as mouse click events, like in X.
7454
7455 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7456 MOUSE_WHEEL_EVENT anymore.
7457
7458 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7459 Scrolling down/up the mouse wheel is respectively mapped to mouse
7460 button 4 and 5.
7461 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7462 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7463 WM_MOUSEWHEEL events.
7464
2d031b89
AS
74652003-05-27 Andreas Schwab <schwab@suse.de>
7466
20464fdf
AS
7467 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7468
2d031b89
AS
7469 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7470 partially visible line.
7471
7472 * alloc.c (Fgarbage_collect): Fix last change.
7473
97bc76d4
JPW
74742003-05-26 John Paul Wallington <jpw@gnu.org>
7475
7476 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7477
56613f06
SM
74782003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7479
7480 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7481 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7482
7483 * window.h (window_box_text_cols): Declare.
7484
7485 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7486 (x_draw_vertical_border): Remove unused var `f'.
7487
7488 * xfaces.c (build_scalable_font_name): Remove `unused var
7489 pixel_size' warning.
7490
7491 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7492
7493 * unexelf.c (unexec): Remove `unused var n' warning.
7494
7495 * strftime.c (my_strftime_localtime_r): Remove `defined but
7496 unused' warning.
7497
7498 * process.c (allocate_pty): Remove `unused var stb' and
7499 `cp might be used uninitialized' warnings.
7500
7501 * dispnew.c (mode_line_string): Remove unused var `f'.
7502
7503 * coding.c (find_safe_codings): Remove unused var `i'.
7504
7505 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7506
7507 * buffer.c (Fkill_buffer): Remove unused var `list'.
7508
7509 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7510
93421a1f
JD
75112003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7512
7513 * frame.c (make_frame): Condition want_fullscreen with
7514 HAVE_WINDOW_SYSTEM.
7515
c4b8aebc
JB
75162003-05-25 Juanma Barranquero <lektu@terra.es>
7517
7518 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7519 (Fwindow_scroll_bars): Fix typo in docstring.
7520
0416870b
KS
75212003-05-24 Kim F. Storm <storm@cua.dk>
7522
7523 The following changes serve several purposes:
7524
7525 1) Swap the position of fringes and display margins in windows, i.e.
7526 the fringes are now displayed between the margins and the text area
7527 (by default).
7528
7529 2) Allow fringe and scroll bar parameters to be set per-buffer and
7530 per-window (like display margins). Such settings are now stored
7531 in window configurations, preserved when frames are resized, and
9018a88e 7532 copied when windows are split vertically or horizontally.
0416870b
KS
7533 Several bugs related to display margins have been fixed.
7534
7535 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7536
0416870b
KS
7537 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7538 rather than FRAME_WIDTH (FRAME_FONT (f)).
7539
7540 5) Introduce a consistent naming of variables, members and macros
7541 depending on whether their value is measured in pixels or in
7542 canonical columns/lines. Pixel dimensions are named *_width and
7543 *_height, while canonical columns/lines are named *_cols and
7544 *_lines. Pixel positions are named *_x and *_y, while column/line
7545 positions are named *_col and *_line.
7546
7547 6) Consolidate more of the X, W32, and MAC gui code by moving
7548 common data into struct frame, and generalize it for the non-gui
7549 case by using suitable defaults.
7550
7551 7) Cleanup and consolidate the macros controlling frame and window
7552 layout into frame.h and window.h, and generalize the use of the
7553 various window_box_* functions (enhanced to handle the new fringe
7554 position and the per-window fringe and scroll bar settings).
7555
7556 * frame.h (struct frame): Rename members height to text_lines,
7557 width to text_cols, window_height to total_lines, window_width to
7558 total_cols, new_height to new_text_lines, new_width to
7559 new_text_cols. All uses changed.
7560 (struct frame): New members which consolidate common members of
7561 x_output, w32_output, and mac_output structures: left_pos,
7562 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7563 win_gravity, size_hint_flags, border_width, internal_border_width,
7564 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7565 want_fullscreen. All uses changed.
7566 (struct frame): New member column_width contaning the canonical
7567 column width, analogue to line_height. All uses changed.
7568 (struct frame): Rename members scroll_bar_pixel_width to
7569 config_scroll_bar_width, and scroll_bar_cols to
7570 config_scroll_bar_cols. All uses changed.
7571 (struct frame): New member scroll_bar_actual_width which
7572 consolidates and renames the vertical_scroll_bar_extra member of
7573 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7574 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7575 from x/w32/macterm.h files. All uses changed. Also change code
7576 which referred to f->output_data...->pixel_height.
cab27d04 7577 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7578 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7579 which referred to f->output_data...->pixel_width.
cab27d04 7580 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7581 Also change code which referred to f->height.
cab27d04 7582 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7583 Also change code which referred to f->width.
7584 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7585 to update new_text_lines and new_text_cols members directly.
cab27d04 7586 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7587 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7588 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7589 FRAME_SCROLL_BAR_COLS. All uses changed.
7590 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7591 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7592 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7593 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7594 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7595 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7596 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7597 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7598 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7599 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7600 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7601 Unconditionally return line_height member (it now has proper value
7602 also for non-window frames).
7603 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7604 return new column_width member (rather than the default font width).
7605 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7606 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7607 from x/w32/macterm.h files. Unconditionally return corresponding
7608 member of frame structure (they now have proper values also for
7609 non-window frames).
cab27d04 7610 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7611 Calculate return value from left and right widths.
7612 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7613 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7614 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7615 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7616 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7617 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7618 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7619 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7620 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7621 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7622 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7623 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7624 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7625 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7626 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7627 consolidated from x/mac/w32term.h.
cab27d04 7628 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7629 consolidated from x/mac/w32term.h.
cab27d04 7630 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7631 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7632 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7633 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7634
7635 * window.h (struct window): Rename members left to left_col,
7636 top to top_line, height to total_lines, width to total_cols,
7637 left_margin_width to left_margin_cols, right_margin_width to
7638 right_margin_cols, orig_height to orig_total_lines, orig_top to
7639 orig_top_line. All uses changed.
7640 (struct window): New members left_fringe_width, right_fringe_width,
7641 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7642 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7643 New macros primarily used to simplify other macros.
7644 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7645 referred to XINT (w->width).
7646 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7647 referred to XINT (w->height).
7648 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7649 referred to XINT (w->width) * canon_x_unit.
7650 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7651 referred to XINT (w->height) * canon_y_unit.
7652 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7653 referred to XINT (w->left).
cab27d04 7654 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7655 all uses and code that referred to XINT (w->left) + XINT (w->width).
7656 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7657 referred to XINT (w->top).
7658 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7659 referred to XINT (w->top) + XINT (w->height).
7660 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7661 referred to XINT (w->left) * canon_x_unit.
7662 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7663 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7664 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7665 referred to XINT (w->top) * canon_y_unit.
7666 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7667 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7668 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7669 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7670 All uses changed.
cab27d04 7671 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7672 All uses changed.
cab27d04 7673 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7674 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7675 Do not exclude left fringe width.
cab27d04 7676 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7677 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7678 Do not exclude fringe widths.
7679 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7680 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7681 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7682 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7683 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7684 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7685 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7686 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7687 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7688 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7689 New macros. Change code which referenced corresponding
7690 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7691 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7692 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7693 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7694 allow per-window scroll-bar settings.
7695 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7696 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7697 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7698 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7699 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7700 FRAME_SCROLL_BAR_WIDTH.
7701 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7702 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7703 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7704 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7705 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7706 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7707 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7708 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7709 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7710 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7711 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7712 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7713 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7714 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7715 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7716 (window_from_coordinates): Update prototype.
7717 (Fset_window_buffer): Update EXFUN.
7718 (set_window_buffer): Update prototype.
9018a88e 7719
0416870b 7720 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7721 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7722 changed.
7723 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7724 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7725 internal_border_width is now set to 0 for non-window frames.
7726 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7727 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7728 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7729 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7730 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7731 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7732 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7733 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7734 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7735 Move to window.h and renamed [see window.h changes].
0416870b
KS
7736 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7737 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7738 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7739 Use WINDOW_TOTAL_LINES.
0416870b
KS
7740 (frame_update_line_height): Remove prototype.
7741
7742 * buffer.h (struct buffer): Rename members measured in columns:
7743 left_margin_width to left_margin_cols, right_margin_width to
7744 right_margin_cols. All uses changed.
7745 New members left_fringe_width, right_fringe_width,
7746 fringes_outside_margins for per-buffer fringe settings.
7747 New members scroll_bar_width and vertical_scroll_bar_type for
7748 per-buffer scroll bar settings.
7749
7750 * buffer.c (init_buffer_once): Set buffer_defaults and
7751 buffer_local_flags for new buffer-local variables
7752 left_fringe_width, right_fringe_width, fringes_outside_margins,
7753 scroll_bar_width, and vertical_scroll_bar_type.
7754 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7755 default-* variables for them.
7756
7757 * dispnew.c: Make (many) trivial substitutions for renamed and
7758 new macros in dispextern.h, frame.h and window.h.
7759 (mode_line_string): No need to adjust width for mode lines, as it
7760 is already adjusted by the caller.
7761 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7762
0416870b
KS
7763 * frame.c: Make (many) trivial substitutions for renamed and
7764 new macros in dispextern.h, frame.h and window.h.
7765 (make_frame): Initialize left_fringe_width, right_fringe_width,
7766 fringe_cols, scroll_bar_actual_width, border_width,
7767 internal_border_width, column_width, line_height, x_pixels_diff,
7768 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7769 members with values suitable for a non-window frames.
7770
7771 * gtkutil.c: Make (many) trivial substitutions for renamed and
7772 new macros in dispextern.h, frame.h and window.h.
9018a88e 7773
0416870b
KS
7774 * indent.c: Make (few) trivial substitutions for renamed and
7775 new macros in dispextern.h, frame.h and window.h.
7776
7777 * keyboard.c: Make (many) trivial substitutions for renamed and
7778 new macros in dispextern.h, frame.h and window.h.
7779 (make_lispy_event): Use window positions returned from
7780 window_from_coordinates when constructing the lisp event for
7781 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7782 (incorrect) values locally.
7783 (make_lispy_movement): Use window positions returned from
7784 window_from_coordinates when constructing the lisp event, rather
7785 than calculating (incorrect) values locally.
7786
7787 * scroll.c: Make (some) trivial substitutions for renamed and
7788 new macros in dispextern.h, frame.h and window.h.
7789
7790 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7791 scroll-bars.
7792
7793 * sysdep.c: Make (few) trivial substitutions for renamed and
7794 new macros in dispextern.h, frame.h and window.h.
7795
7796 * term.c: Make (some) trivial substitutions for renamed and
7797 new macros in dispextern.h, frame.h and window.h.
7798
7799 * widget.c: Make (few) trivial substitutions for renamed and
7800 new macros in dispextern.h, frame.h and window.h.
7801
7802 * window.c: Make (many) trivial substitutions for renamed and
7803 new macros in dispextern.h, frame.h and window.h.
7804 (make_window): Initialize new members
7805 left_margin_cols, right_margin_cols, left_fringe_width,
7806 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7807 and vertical_scroll_bar_type.
cab27d04 7808 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7809 and per-window fringes and scroll-bars.
0416870b 7810 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7811 frame's internal_border_width (the effect normally negible since
0416870b
KS
7812 the internal_border_width is typically 0 or 1 pixel, but very
7813 noticeable for an internal_border_width of e.g. 25 pixels).
7814 Upon successful return (other than ON_NOTHING), the coordinates
7815 are now always properly converted to window relative for the
7816 given display element.
7817 (window_from_coordinates): Add new parameters wx and wy to
7818 return the window relative x and y position in the returned
7819 window and part. A null arg means, don't return the position.
7820 All callers changed.
7821 (adjust_window_margins): New function which may reduce the width
7822 of the display margins if a window's text area is too small after
7823 resizing or splitting windows.
7824 (size_window): Fix bug that did not account for display margin
7825 widths when checking the minimum width of a window; use
7826 adjust_window_margins.
7827 (set_window_buffer): Call Fset_window_fringes and
7828 Fset_window_scroll_bars to setup per-window elements.
7829 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7830 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7831 (e.g. after splitting a window or resizing the frame).
7832 All callers changed.
0416870b
KS
7833 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7834 (Fsplit_window): Duplicate original window's display margin,
7835 fringe, and scroll-bar settings; then call Fset_window_buffer with
7836 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7837 window to only preserve the display margins in one of the windows.
c4b8aebc 7838 When splitting horizontally, call adjust_window_margins on both
0416870b 7839 windows to ensure that the text area of the new windows is non too
f9711de4 7840 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7841 width of the split window was less than the width of the display
7842 margins.
cab27d04 7843 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7844 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7845 Fix bug that caused vertical separator to be subtracted also on
7846 window frames. Fix another bug that did not reduce the returned
7847 value by the columns used for display margins.
7848 (window_scroll_line_based): Fix bug related to scrolling too much
7849 when display margins are present (implicitly fixed by the fix to
7850 window_box_text_cols).
7851 (scroll_left, scroll_right): Fix bug related to scrolling too far
7852 by default when display margins are present (implicitly fixed by
7853 the fix to window_box_text_cols).
7854 (struct saved_window): Rename members left to left_col, top to
7855 top_line, width to total_cols, height to total_lines, orig_top to
7856 orig_top_line, orig_height to orig_total_lines. All uses changed.
7857 New members left_margin_cols, right_margin_cols,
7858 left_fringe_width, right_fringe_width, fringes_outside_margins,
7859 scroll_bar_width, and vertical_scroll_bar_type for saving
7860 per-window display elements.
7861 (Fset_window_configuration): Restore display margins, fringes,
7862 and scroll bar settings. This fixes a bug which caused display
7863 margins to be discarded when saving and restoring a window
7864 configuration.
7865 (save_window_save): Save display margins, fringes, and scroll bar
7866 settings. This fixes a bug which caused display margins to be
7867 discarded when saving and restoring a window configuration.
7868 (Fset_window_margins): Do nothing if display margins are not
7869 really changed. Otherwise, call adjust_window_margins to ensure
7870 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7871 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7872 the width of the window.
7873 (Fset_window_fringes): New defun to allow user to specifically set
7874 this window's fringe widths and position vs. display margins.
cab27d04 7875 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7876 (Fset_window_scroll_bars): New defun to allow user to specifically
7877 set this window's scroll bar width and position.
7878 (Fwindow_scroll_bars): New defun to return window's actual scroll
7879 bar settings.
7880 (compare_window_configurations): Also compare display margins,
7881 fringes, and scroll bar settings.
7882 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7883
7884 * xdisp.c: Make (many) trivial substitutions for renamed and
7885 new macros in dispextern.h, frame.h and window.h.
7886 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7887 and new fringe vs. display margin position. Note that returned
0416870b
KS
7888 value is no longer guaranteed to be a whole multiple of the frame
7889 column width, since per-window fringes may now be any width.
7890 (window_box_left_offset): New function like window_box_left, but
7891 value is relative to left border of window (rather than frame).
7892 (window_box_right_offset): New function like window_box_right,
7893 but value is relative to left border of window.
7894 (window_box_left): Adapt to per-window fringes and scroll bars,
7895 and new fringe vs. display margin position. Simplify by using
7896 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7897 (window_box): Allow null args for unnecessary return values;
7898 change/simplify relevant callers.
7899 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7900 and new fringe vs. display margin position.
7901 Use window_box_left_offset and window_box_right_offset
0416870b 7902 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7903 scroll bars, and new fringe vs. display margin position.
7904 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7905 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7906 fringe vs. display margin position.
7907 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7908 (redisplay_window): Adapt to per-window scroll bars.
7909 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7910 bars, and new fringe vs. display margin position.
7911 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7912 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7913 bars, and new fringe vs. display margin position. Fix bug which
7914 increased total width of full_width rows by width of scroll bars
7915 although window's total width already includes that.
7916 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7917 (expose_area): Simplify using window_box_left_offset.
7918 (x_draw_vertical_border): Handle per-window scroll bar settings,
7919 mixing windows with left, right and no scroll bars.
7920
7921 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7922 where it's used in x_list_fonts (for clarity).
7923 (frame_update_line_height): Remove unused function; functionality
7924 is now done directly when setting the default font in x_set_font.
7925
7926 * xfns.c: Make (many) trivial substitutions for renamed and
7927 new macros in dispextern.h, frame.h and window.h.
7928
7929 * xmenu.c: Make (some) trivial substitutions for renamed and
7930 new macros in dispextern.h, frame.h and window.h.
7931
7932 * xterm.h (struct x_output): Move members left_pos, top_pos,
7933 border_width, pixel_height, pixel_width, line_height,
7934 internal_border_width, vertical_scroll_bar_extra,
7935 left_fringe_width, right_fringe_width, fringe_cols,
7936 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7937 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7938 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7939 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7940 (PIXEL_WIDTH, PIXEL_HEIGHT)
7941 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7942 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7943 frame.h and renamed [see frame.h changes].
7944 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7945 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7946 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7947 and renamed [see frame.h changes].
9018a88e 7948
0416870b
KS
7949 * xterm.c: Make (several) trivial substitutions for renamed and
7950 new macros in dispextern.h, frame.h and window.h.
cab27d04 7951 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7952 (scroll_run): Adapt to new fringe position.
7953 (glyph_rect): Use window coordinates returned from
7954 window_from_coordinates rather than frame_to_window_pixel_xy.
7955 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7956 scroll-bars.
7957 (handle_one_xevent): Simplify a USE_GTK conditional.
7958 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7959 (fringes are now inside margins, i.e. always in the clipping area).
7960 All callers changed.
7961 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7962 directly, then call compute_fringe_widths. Don't call
7963 frame_update_line_height.
7964
7965 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7966 border_width, pixel_height, pixel_width, line_height,
7967 internal_border_width, vertical_scroll_bar_extra,
7968 left_fringe_width, right_fringe_width, fringe_cols,
7969 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7970 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7971 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7972 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7973 (PIXEL_WIDTH, PIXEL_HEIGHT)
7974 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7975 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7976 frame.h and renamed [see frame.h changes].
7977 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7978 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7979 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7980 and renamed [see frame.h changes].
9018a88e 7981
0416870b
KS
7982 * w32term.c: Make (several) trivial substitutions for renamed and
7983 new macros in dispextern.h, frame.h and window.h.
cab27d04 7984 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7985 (glyph_rect): Use window coordinates returned from
7986 window_from_coordinates rather than frame_to_window_pixel_xy.
7987 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7988 scroll-bars.
7989 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7990 (fringes are now inside margins, i.e. always in the clipping area).
7991 All callers changed.
7992 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7993 directly, then call compute_fringe_widths. Don't call
7994 frame_update_line_height.
7995
7996 * w32console.c: Make (few) trivial substitutions for renamed and
7997 new macros in dispextern.h, frame.h and window.h.
7998
7999 * w32fns.c: Make (many) trivial substitutions for renamed and
8000 new macros in dispextern.h, frame.h and window.h.
8001
8002 * w32menu.c: Make (few) trivial substitutions for renamed and
8003 new macros in dispextern.h, frame.h and window.h.
8004
8005 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8006 border_width, pixel_height, pixel_width, line_height,
8007 internal_border_width, vertical_scroll_bar_extra,
8008 left_fringe_width, right_fringe_width, fringe_cols,
8009 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8010 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8011 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8012 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8013 (PIXEL_WIDTH, PIXEL_HEIGHT)
8014 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8015 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8016 frame.h and renamed [see frame.h changes].
8017 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8018 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8019 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8020 and renamed [see frame.h changes].
9018a88e 8021
0416870b
KS
8022 * macterm.c: Make (several) trivial substitutions for renamed and
8023 new macros in dispextern.h, frame.h and window.h.
cab27d04 8024 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8025 (glyph_rect): Use window coordinates returned from
8026 window_from_coordinates rather than frame_to_window_pixel_xy.
8027 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8028 scroll-bars.
8029 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8030 (fringes are now inside margins, i.e. always in the clipping area).
8031 All callers changed.
8032 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8033 directly, then call compute_fringe_widths. Don't call
8034 frame_update_line_height.
8035
8036 * macfns.c: Make (several) trivial substitutions for renamed and
8037 new macros in dispextern.h, frame.h and window.h.
9018a88e 8038 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8039
8040 * macmenu.c: Make (few) trivial substitutions for renamed and
8041 new macros in dispextern.h, frame.h and window.h.
8042
8043 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8044 and line_height, and use corresponding new members in struct
8045 frame. All uses changed.
8046 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8047 superseeded by corresponding macros in frame.h.
8048
8049 * msdos.c: Make (several) trivial substitutions for renamed and
8050 new macros in dispextern.h, frame.h and window.h.
8051 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8052 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8053 (internal_terminal_init): No need to initialize line_height here;
8054 it now defaults to 1.
8055
9018a88e
SM
80562003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8057
8058 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8059 dropping `down' events.
8060
016bd3c0
AS
80612003-05-24 Andreas Schwab <schwab@suse.de>
8062
8063 * coding.c (find_safe_codings): Fix last change.
8064
4dacadcc
TTN
80652003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8066
8067 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8068
319830ce
SM
80692003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8070
9018a88e
SM
8071 * xdisp.c (display_mode_element): Increase max depth.
8072 Simplify the error handling code. Use a different error string
8073 for the case where we hit the depth limit.
8074
319830ce
SM
8075 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8076
8077 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8078
80792003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8080
8081 * intervals.c (get_local_map): Don't get char-property of previous
8082 point any more: get_pos_property already does it and better.
8083
c67de8ba
DL
80842003-05-21 Dave Love <fx@gnu.org>
8085
8086 [Merged from unicode branch.]
8087
8088 * xfns.c (x_window, x_window): Use use_xim.
8089
8090 * xterm.c (use_xim): Initialize.
8091 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8092 (x_term_init): Maybe set use_xim.
8093
8094 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8095
edd3ff1d
JR
80962003-05-21 Jason Rumney <jasonr@gnu.org>
8097
8098 * unexw32.c (_start): Remove _fmode initialization.
8099
8100 * emacs.c (main) [WINDOWSNT]: Move it here.
8101
463f55ee
DL
81022003-05-20 Dave Love <fx@gnu.org>
8103
8104 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8105
af253914
RS
81062003-05-19 Richard M. Stallman <rms@gnu.org>
8107
8108 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8109 as value for QCfont attribute.
8110 (realize_default_face): lface should already exist; crash if not.
8111 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8112
8113 * frame.c (Fignore_event): Doc fix.
8114
1d211019
KH
81152003-05-19 Kenichi Handa <handa@m17n.org>
8116
8117 * coding.c (decode_coding_string): Handle post-read-conversion
8118 even if the coding doesn't require decoding.
8119
4dd68254
RS
81202003-05-18 Richard M. Stallman <rms@gnu.org>
8121
8122 * callproc.c (Fcall_process_region): Doc fix.
8123
14d87dc9
SM
81242003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8125
deca5d96
SM
8126 * lread.c (Fload): Print a message if package is obsolete.
8127
14d87dc9
SM
8128 * window.c (Fselect_window): Add optional `norecord' arg.
8129 (select_window_1): Fold into Fselect_window.
8130 (select_window_norecord): New function.
8131 (temp_output_buffer_show): Use it. Preserve current buffer.
8132
8133 * window.h (Fselect_window): Update declaration.
8134
8135 * window.c (delete_window, Fother_window, Fset_window_configuration):
8136 * minibuf.c (read_minibuf):
8137 * macterm.c (x_new_focus_frame):
8138 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8139 * callint.c (Fcall_interactively):
8140 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8141
8142 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8143
78f52183
DK
81442003-05-17 David Kastrup <dak@gnu.org>
8145
8146 * process.c (read_process_output): Back out change from 2003-03-09.
8147
14d87dc9
SM
81482003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8149
8150 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8151
8152 * textprop.c (text_property_stickiness): New arg `buffer'.
8153
8154 * intervals.h (text_property_stickiness): New arg `buffer'.
8155 (get_pos_property): Declare.
8156
8157 * intervals.c (get_local_map): Use get_pos_property, to obey
8158 stickiness and empty overlays.
8159 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8160 (merge_properties, intervals_equal, merge_properties_sticky):
8161 Use XCAR, XCDR.
8162 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8163
1fd1cc2f
RS
81642003-05-17 Richard M. Stallman <rms@gnu.org>
8165
4f9f637a
RS
8166 * minibuf.c (read_minibuf): If buffer is empty, record the default
8167 in the history.
8168 (Fminibuffer_complete_word): When deleting the overlap, take account
8169 of its real position.
8170
8171 * fns.c (map_char_table): Fix previous change.
8172
1fd1cc2f
RS
8173 * syntax.c (find_defun_start):
8174 When open_paren_in_column_0_is_defun_start,
8175 return beginning of buffer.
8176
8177 * lisp.h (map_char_table): Declare added arg.
8178
8179 * fns.c (map_char_table): New arg TABLE gets the master table.
8180 All calls changed.
8181 Process default and inheritance, resorting to Faref if necessary.
8182
8183 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8184 (Faccessible_keymaps): Pass new arg to map_char_table.
8185
8186 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8187
8188 * casetab.c (set_case_table): Pass new arg to map_char_table.
8189
8190 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8191
8192 * lisp.h (specbinding_func): New typedef.
8193 (struct specbinding): Use specbinding_func, to put the `volatile'
8194 in the right place.
8195
8196 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8197 to avoid GCC warning.
14d87dc9 8198
b6189c3b 81992003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8200
14d87dc9 8201 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8202
35fb885d
SM
82032003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8204
8205 * keyboard.c (apply_modifiers): Don't fill the other cache.
8206
9a274fbd
SM
82072003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8208
c55b5fad
SM
8209 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8210
9a274fbd
SM
8211 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8212 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8213 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8214 (Fset_window_configuration, Fcurrent_window_configuration)
8215 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8216 (Fpos_visible_in_window_p, mark_window_cursors_off)
8217 (window_internal_height, window_internal_width, Frecenter)
8218 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8219 (replace_buffer_in_all_windows, init_window_once, init_window)
8220 (syms_of_window, keys_of_window): Move from lisp.h.
8221 * lisp.h: Move window.c declarations to window.h.
8222
8223 * bytecode.c: Include window.h.
8224 * emacs.c: Include window.h.
8225
14d87dc9 8226 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8227 (keyremap): Add `parent' field.
8228 (keyremap_step): Use it. Remove `parent' argument.
8229 (read_key_sequence): Setup and use the new `parent' field.
8230
fd93e331
SM
82312003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8232
8233 * keyboard.c (adjust_point_for_property): Ensure termination.
8234
1c4001a1
SM
82352003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8236
8237 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8238 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8239 duplicated handling of function-key-map and key-translation-map
8240 in read_key_sequence.
8241 (read_key_sequence): Use them.
8242
8243 * keyboard.c (adjust_point_for_property): Try harder to move point
8244 to the non-sticky end of an invisible property.
8245
8246 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8247 property intangible as well.
8248
780379b1
AS
82492003-05-10 Andreas Schwab <schwab@suse.de>
8250
8251 * xmenu.c (single_menu_item): Change last parameter to void* to
8252 avoid warning.
8253
ca2de342
RS
82542003-05-09 Richard M. Stallman <rms@gnu.org>
8255
8256 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8257 Bind Qinhibit_modification_hooks to t so there will be no GC.
8258 Rename local `tem' to `save_deactivate_mark'.
8259
8260 * eval.c (specpdl_ptr): Declare volatile.
8261 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8262 before doing the work of unbinding it.
8263
8264 * lisp.h (struct specbinding): Declare elements volatile.
8265 (specpdl_ptr): Declare volatile.
8266
8267 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8268
8269 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8270 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8271
347003be
DL
82722003-05-08 Dave Love <fx@gnu.org>
8273
8274 * coding.c (Vlast_coding_system_used): Doc fix.
8275
5adcec23
JR
82762003-05-07 Jason Rumney <jasonr@gnu.org>
8277
8278 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8279 when system does not support them.
8280
5fe3b8a4
SM
82812003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8282
8283 * fileio.c (Qwrite_region_annotate_functions): New var.
8284 (build_annotations): Use it to process the global part of the hook.
8285 (syms_of_fileio): Init and staticpro it.
8286
8287 * keyboard.c (safe_run_hooks_error): Display a message instead of
8288 silently ignoring the error.
8289
82902003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8291
8292 * keyboard.c (input_available_signal): Mark static.
8293 (menu_bar_items): Use map_keymap.
8294 (menu_bar_one_keymap): Remove.
8295 (menu_bar_item): Adjust arglist (for use in map_keymap).
8296 Properly hide a second binding when not both are keymaps.
8297
8298 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8299 (single_keymap_panes): Use it and map_keymap.
8300 (single_menu_item): Use skp as well.
8301
8302 * keymap.h (map_keymap_function_t): New type.
8303 (map_keymap): Declare.
8304
8305 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8306 (map_keymap_call, Fmap_keymap): New functions.
8307 (syms_of_keymap): Defsubr map-keymap.
8308
4b1b4443
JD
83092003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8310
8311 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8312 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8313 ..._with_mnemonic functions for menu items.
8314
1f816871
KH
83152003-05-01 Kenichi Handa <handa@m17n.org>
8316
8317 * coding.c (coding_system_accept_latin_extra_p): Delete this
8318 function.
8319 (find_safe_codings): Pay attention to
8320 the property tranlsation-table-for-encode of each codings.
8321 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8322
5ed6ba5b
SM
83232003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8324
8325 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8326
32c06229
SM
83272003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8328
8329 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8330
8331 * lisp.h (CHECK): Wrap args in parenthesis.
8332 (specbind): Fix doc: symbol = Qnil is not supported any more.
8333
8334 * bytecode.c (Fbyte_code) <unwind-protect>:
8335 Use Fprogn rather than 0 and Qnil.
8336
8337 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8338 `double', and `triple' modifiers as well.
8339
ed3c3314
RS
83402003-04-30 Richard M. Stallman <rms@gnu.org>
8341
8342 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8343
8344 * alloc.c (abort_on_gc): New variable.
8345 (Fgarbage_collect): Abort if abort_on_gc is set.
8346
8347 * lisp.h (abort_on_gc): Add decl.
8348
8349 * eval.c (Fsignal): Clear abort_on_gc.
8350
8351 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8352 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8353
8354 * xdisp.c (move_it_vertically_backward): Do the final big else
8355 even if nlines is 0.
8356
8357 * xdisp.c (redisplay_internal): Finish the per-frame loop
8358 even if redisplay is suspended by input.
8359
0b325c12
AC
83602003-04-24 Andrew Choi <akochoi@shaw.ca>
8361
8362 * macterm.c (x_list_fonts): Return all fonts that match if
8363 maxnames = -1.
8364
4e837cd0
KH
83652003-04-25 Kenichi Handa <handa@m17n.org>
8366
8367 * syntax.c (skip_chars): Fix previous change.
8368
9af7511a
KH
83692003-04-24 Kenichi Handa <handa@m17n.org>
8370
8371 * syntax.c (skip_chars): Make the code faster by using the common
8372 technique of *p, *stop, and *endp.
8373
e3b2c21f
JD
83742003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8375
8376 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8377 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8378 being updated.
8379
32c06229
SM
83802003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8381
8382 * eval.c (Fapply): Undo last change and add a comment about why.
8383
c6464167
MB
83842003-04-18 Miles Bader <miles@gnu.org>
8385
8386 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8387 pickier PARSE_MULTIBYTE_SEQ.
8388
e509f168
SM
83892003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8390
8391 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8392 Use XCDR, XCAR, CONSP.
8393 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8394 (Fapply): Remove unnecessary GCPRO.
8395
8396 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8397
8398 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8399
8400 * buffer.h: Don't hardcode BEG==1.
8401
8402 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8403
5ceea398
RS
84042003-04-16 Richard M. Stallman <rms@gnu.org>
8405
8406 * xdisp.c (try_window, try_window_reusing_current_matrix):
8407 When at end of window, set window_end_pos to Z-ZV.
8408
8409 * buffer.c (Foverlay_recenter): Doc fix.
8410
e509f168
SM
84112003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8412
8413 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8414
d243e605
AC
84152003-04-14 Andrew Choi <akochoi@shaw.ca>
8416
8417 * macterm.c (mac_check_for_quit_char): Don't check more often than
8418 once a second.
8419
6901b111
SM
84202003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8421
8422 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8423 specially, so that they can't hide an implicit switch-frame event.
8424 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8425 (head_table): Use switch-frame as event_kind for select-window.
8426 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8427
8428 * editfns.c (Fformat): Lisp_Object/int mixup.
8429 (format2): Remove unused var numargs.
8430
e301806f 84312003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8432
6901b111 8433 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8434 (Qafter_insert_file_set_coding): New variable.
8435 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8436 for after-insert-file-adjust-coding-function.
8437 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8438 instead of Vafter_insert_file_adjust_coding_function.
8439
38914424
KH
84402003-04-11 Kenichi Handa <handa@m17n.org>
8441
8442 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8443
8444 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8445 string. Callers changed.
8446
84472003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8448
6901b111 8449 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8450 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8451 (Finsert_file_contents):
8452 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8453 decode-format.
8454
f979dc05
JD
84552003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8456
8457 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8458 get GtkAdjustment as widget now is a GtkRange.
8459
8460 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8461 GtkRange to avoid memory leak.
8462
f8c6b4c2 84632003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8464
50ebc53d
KH
8465 * xfaces.c (Vface_font_rescale_alist): New variable.
8466 (struct font_name): New member rescale_ratio.
8467 (font_rescale_ratio): New function.
6901b111 8468 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8469 (better_font_p): On comparing point sized, pay attention to
8470 recale_ratio member of fonts.
8471 (build_scalable_font_name): Reflect font->rescale_ratio in the
8472 font name.
6901b111 8473 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8474
cb98871c
KH
8475 * lread.c (read1): Before calling index, check if the 2nd
8476 arguemnt is in ASCII range.
8477
4773b8ca
RS
84782003-04-08 Richard M. Stallman <rms@gnu.org>
8479
b0ada147
RS
8480 * fileio.c (Ffile_symlink_p): Doc fix.
8481
8482 * editfns.c (Fformat): Translate positions of text properties
8483 in the format string to apply them to the result.
8484
4773b8ca
RS
8485 * fileio.c (Finsert_file_contents): Doc fix.
8486 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8487
84882003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8489
4773b8ca
RS
8490 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8491
e8f25745 84922003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8493
e8f25745
ST
8494 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8495 that self-contained application finds libexec files.
8496
f8c6b4c2 84972003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8498
6901b111
SM
8499 * coding.c (code_convert_region_unwind):
8500 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8501 (code_convert_region): If post-read-conversion function changed
8502 the value of last-coding-sytem, keep the new value in
8503 coding->symbol so that it won't be overridden.
8504 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8505 (coding_system_accept_latin_extra_p): New function.
8506 (find_safe_codings): Pay attention to characters registered in
8507 latin-extra-code-table.
2310d84c 8508
39c9a034
TTN
85092003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8510
8511 * Makefile.in (md5.o): Add missing dependency info.
8512
eb67c5d6
RS
85132003-04-06 Richard M. Stallman <rms@gnu.org>
8514
8515 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8516
8517 * marker.c (verify_bytepos): New function.
8518
8519 * intervals.c (set_intervals_multibyte_1): When becoming
8520 multibyte, adjust right and left child sizes to a whole set of
8521 characters. If an interval gets zero total-length, delete it.
8522 If an interval consists of just its children, delete one of them.
8523
8524 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8525 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8526
eb67c5d6
RS
8527 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8528 All calls deleted.
8529 (lisp_malloc): Do the work here directly.
8530
b1f81fc5
JB
85312003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8532
8533 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8534 char tables.
8535
85362003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8537
8538 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8539 destructively change "%S" to "%s".
8540
774666fb
MB
85412003-04-03 Miles Bader <miles@gnu.org>
8542
8543 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8544 always set.
8545
19c37f01
DL
85462003-04-01 Dave Love <fx@gnu.org>
8547
8548 * xfns.c (xpm_lookup_color): Grok "opaque".
8549
2f4b24c3
AC
85502003-03-31 Andrew Choi <akochoi@shaw.ca>
8551
8552 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8553 parent window ID.
8554
8555 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8556
8557 * macterm.h (struct mac_output): Define x_pixels_diff and
8558 y_pixels_diff.
b1f81fc5 8559
9443fcf6
JB
85602003-03-31 Juanma Barranquero <lektu@terra.es>
8561
8562 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8563 blockinput.h and files included from it.
8564
e072891b
KS
85652003-03-31 Kim F. Storm <storm@cua.dk>
8566
8567 The following changes consolidates the common code related to
8568 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8569 files into frame.c.
9443fcf6 8570
e072891b
KS
8571 * frame.c: Include blockinput.h.
8572 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8573 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8574 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8575 related vars here.
8576 (struct frame_parm_table, frame_parms): New table for describing
8577 frame parameters and their associated Q-variable.
8578 The order of the parameters corresponds to the sequence of the
8579 frame_parm_handlers table in redisplay_interface.
8580 (x_fullscreen_move, x_set_frame_parameters)
8581 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8582 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8583 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8584 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8585 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8586 Generic functions for processing of frame parameters.
8587 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8588 (display_x_get_resource, x_get_resource_string): Functions for
8589 generic access to X resources.
8590 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8591 (x_default_parameter, Fx_parse_geometry): Functions for generic
8592 access to frame parameters.
6901b111
SM
8593 (x_figure_window_size): Generic calculation of frame size.
8594 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8595 (syms_of_frame): Intern and staticpro frame parameter variables.
8596 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8597 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8598
e072891b
KS
8599 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8600 parameter related vars defined in frame.c.
8601 (EMACS_CLASS): Define here.
8602 (enum FULLSCREEN_*): Define here.
8603 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8604 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8605 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8606 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8607 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8608 (x_set_visibility, x_set_autoraise, x_set_autolower)
8609 (x_set_unsplittable, x_set_vertical_scroll_bars)
8610 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8611 (x_figure_window_size): Add prototypes.
8612
8613 * dispextern.h (frame_parm_handler): New typedef.
8614 (struct redisplay_interface): New member frame_parm_handlers.
8615 (enum resource_types): Move declaration here.
8616 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8617 (x_default_parameter): Add prototypes.
8618
8619 * window.c: Remove extern decl for frame parameter vars.
8620 (change_window_heights): New generic function;
8621 replaces x_change_window_heights. All users changed.
8622
8623 * window.h (change_window_heights): Add prototype.
8624
8625 * xfaces.c: Remove extern decl for frame parameter vars.
8626
8627 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8628 (struct w32_display_info): Fix type of xrdb member.
8629 (enum FULLSCREEN_*): Remove.
8630 Remove prototypes for generic functions (in frame.h).
8631
8632 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8633 parameters now defined in frame.h and frame.c.
f63fd14e 8634 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8635 (enum x_frame_parms): Remove (bogus, unused enum).
8636 (check_x_display_info): Make non-static (for frame.c).
8637 (struct x_frame_parm_table, x_frame_parms): Remove.
8638 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8639 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8640 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8641 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8642 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8643 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8644 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8645 Remove. Use generic functions instead.
8646 (enum resource_types): Remove.
8647 (x_set_scroll_bar_default_width): New global function (for frame.c).
8648 (Fx_create_frame): Depend on x_figure_window_size to add space for
8649 toolbar and setup size_hint_flags.
8650 (x_frame_parm_handlers): New table for redisplay_interface.
8651 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8652
e072891b 8653 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8654 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8655 (x_redisplay_interface): Add x_frame_parm_handlers member.
8656
8657 * w32gui.h (XrmDatabase): New (dummy) typedef.
8658
8659 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8660 (struct w32_display_info): Fix type of xrdb member.
8661 (enum FULLSCREEN_*): Remove.
8662 (x_fullscreen_adjust): Remove prototype.
8663
8664 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8665 parameters now defined in frame.h and frame.c.
f63fd14e 8666 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8667 (enum x_frame_parms): Remove (bogus, unused enum).
8668 (check_x_display_info): Make non-static (for frame.c).
8669 (struct x_frame_parm_table, x_frame_parms): Remove.
8670 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8671 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8672 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8673 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8674 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8675 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8676 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8677 Remove. Use generic functions instead.
8678 (enum resource_types): Remove.
8679 (x_set_scroll_bar_default_width): New global function (for frame.c).
8680 (Fx_create_frame): Depend on x_figure_window_size to add space for
8681 toolbar and setup size_hint_flags.
8682 (w32_frame_parm_handlers): New table for redisplay_interface.
8683 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8684
e072891b
KS
8685 * w32term.c: Remove unnecessary extern declarations.
8686 (x_fullscreen_adjust): Remove. Use generic instead.
8687 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8688
8689 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8690
8691 * macgui.h (XrmDatabase): New (dummy) typedef.
8692
8693 * macterm.h (EMACS_CLASS): Remove.
8694 (struct mac_display_info): Add xrdb member.
8695 (struct mac_output): Add want_fullscreen member.
8696
8697 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8698 parameters now defined in frame.h and frame.c.
f63fd14e 8699 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8700 (check_x_display_info): Make non-static (for frame.c).
8701 (struct x_frame_parm_table, x_frame_parms): Remove.
8702 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8703 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8704 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8705 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8706 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8707 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8708 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8709 Remove. Use generic functions instead.
8710 (enum resource_types): Remove.
8711 (x_set_scroll_bar_default_width): New global function (for frame.c).
8712 (mac_frame_parm_handlers): New table for redisplay_interface.
8713 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8714
e072891b
KS
8715 * macterm.c: Remove unnecessary extern declarations.
8716 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8717
3e6a560b
KS
8718 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8719 included from it (atimer.h and systime.h).
8720
7b7b454e
AS
87212003-03-30 Andreas Schwab <schwab@suse.de>
8722
8723 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8724 parameters for shift_glyphs_for_insert.
8725
8726 * macterm.c (x_redisplay_interface): Add missing entry for
8727 draw_vertical_window_border.
8728
beb402de
KG
87292003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8730
8731 * fileio.c (Fexpand_file_name): In the no-handler case, after
8732 expanding, look again for a handler and invoke it. This is needed
8733 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8734 expansion produces "/user@host:/bar/../baz" which needs to be
8735 expanded again for the finame result "/user@host:/baz".
8736
b676f356
JD
87372003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8738
8739 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8740 of area to be redrawn for better performance.
8741
3c671a56
SM
87422003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8743
8744 * xterm.c (take_vertical_position_into_account): Remove.
8745 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8746 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8747 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8748 (x_set_toolkit_scroll_bar_thumb): Simplify.
8749 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8750 (XTread_socket): Remove unused var.
8751 (x_make_frame_invisible): Replace goto with else.
8752
8753 * xdisp.c (set_vertical_scroll_bar): New fun.
8754 (redisplay_window): Use it.
8755
84f2e615
RS
87562003-03-26 Richard M. Stallman <rms@gnu.org>
8757
8758 * xdisp.c (update_tool_bar): Recompute tool bar if
8759 update_mode_lines is set. Set w->update_mode_line
8760 only if the tool bar contents actually change.
8761 (update_menu_bar): Undo previous change.
8762
70b6104c
JD
87632003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8764
5fd6f727
JD
8765 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8766 (xg_frame_set_char_size): Calculate scroll bar width before frame
8767 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8768 (xg_separator_p): Check for all documented separator types.
8769 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8770 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8771
70b6104c
JD
8772 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8773 so tool bar gets updated.
8774
d9b36d19
SM
87752003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8776
8777 * data.c (store_symval_forwarding): Re-instate part of the code
8778 that was deleted with too much enthusiasm.
8779
87802003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8781
8782 * data.c (store_symval_forwarding): Delete special read-only
8783 hack for type == -1, since we now use ->constant instead.
8784 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8785
8786 * buffer.c (overlays_in): Declare static.
8787 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8788 `constant' field rather than the variable's `type' field.
8789
365fa1b3
AC
87902003-03-24 Andrew Choi <akochoi@shaw.ca>
8791
8792 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8793
8794 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8795
8796 * fns.c [MAC_OSX]: Do not redefine vector.
8797
8798 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8799
8800 * macgui.h: Remove definition of No_Cursor.
8801
d9b36d19 8802 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8803
8804 * xdisp.c: Define No_Cursor.
8805 (x_write_glyphs, notice_overwritten_cursor)
8806 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8807 (note_mouse_highlight): Remove Mac-specific code.
8808 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8809
c0bcce6f
JPW
88102003-03-24 John Paul Wallington <jpw@gnu.org>
8811
8812 * xdisp.c (redisplay_window): If mini window's buffer is not
8813 empty, then redisplay it like other windows.
8814
a526b96c
KS
88152003-03-23 Kim F. Storm <storm@cua.dk>
8816
8817 * w32term.c (w32_draw_window_cursor): Fix last change.
8818
37ab321e
KH
88192003-03-23 Kenichi Handa <handa@m17n.org>
8820
a526b96c
KS
8821 * alloc.c (make_string_from_bytes, make_specified_string):
8822 Add `const' for the arg CONTENTS.
37ab321e
KH
8823
8824 * lisp.h (make_string_from_bytes, make_specified_string):
8825 Prototypes adjusted.
8826
7863d625
JD
88272003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8828
a526b96c 8829 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8830
7863d625
JD
8831 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8832 (XG_SB_RANGE): New define.
8833
8834 * gtkutil.c (xg_fixed_handle_expose): New function.
8835 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8836 expose events.
8837 (xg_update_scrollbar_pos): Take two more arguments, left and width
8838 of scroll bar including borders.
8839 Clear left and right part outside scroll bar separately as some
8840 themes have bars that are not an even number of pixels.
d9b36d19 8841 Don't set reallocate_redraws, don't call
7863d625
JD
8842 gdk_window_process_all_updates.
8843 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8844 so no need to change it. Calculate size and value with XG_SB_RANGE.
8845
d9b36d19
SM
8846 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8847 Pass left and width of scroll bar including borders to
7863d625
JD
8848 xg_update_scrollbar_pos.
8849
af0ad939
TTN
88502003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8851
8852 * Makefile.in: Make sure space precedes end-of-line backslashes.
8853
b22139fd
KS
88542003-03-22 Kim F. Storm <storm@cua.dk>
8855
8856 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8857 Add generic versions here. Remove system specific versions
8858 defined elsewhere.
8859
8860 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8861 Add prototypes.
8862
6e6410cf
KS
8863 * xterm.h (STORE_NATIVE_RECT): New macro.
8864
5c9cc435
KS
88652003-03-21 Kim F. Storm <storm@cua.dk>
8866
00c64fab
SM
8867 * xdisp.c (get_glyph_string_clip_rect):
8868 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8869
8870 * dispextern.h (struct redisplay_interface): Add active_p
8871 argument to draw_window_cursor member. All uses changed.
8872
acd37560
KS
88732003-03-21 Kim F. Storm <storm@cua.dk>
8874
8875 The following changes consolidate code related to writing and
8876 inserting glyphs, exposing frame, the tool bar, the mouse face,
8877 the output cursor, and help echo from xterm.c, w32term.c and
8878 macterm.c into xdisp.c. It also generalizes the use of the
8879 window_part enum instead of using numeric values throughout.
af0ad939 8880
acd37560
KS
8881 * xdisp.c: Consolidate gui-independent code here.
8882 Include keymap.h.
8883 (Qhelp_echo): Import.
8884 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8885 (help_echo_string, help_echo_window, help_echo_object)
8886 (previous_help_echo_string, help_echo_pos): Declare here.
8887 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8888 (estimate_mode_line_height): Define here. Handle windowing
8889 systems directly (without using estimate_mode_line_height_hook).
8890 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8891 (update_window_cursor, update_cursor_in_window_tree)
8892 (fast_find_position, fast_find_string_pos)
8893 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8894 (expose_area, expose_line, expose_overlaps, expose_window)
8895 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8896 declared static as they are only used locally in xdisp.c.
8897 (draw_glyphs): Rename from x_draw_glyphs and make static.
8898 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8899 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8900 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8901 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8902 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8903 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8904 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8905 (note_mouse_highlight, x_clear_window_mouse_face)
8906 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8907 (x_intersect_rectangles): New generic functions for use by xdisp.c
8908 and GUI front-ends.
8909 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8910 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8911
8912 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8913 (NativeRectangle): Generic typedef for rectangle type.
8914 (enum window_part): Move here from window.c.
8915 (struct redisplay_interface): New members flush_display_optional,
8916 define_frame_cursor, clear_frame_area, draw_window_cursor,
8917 draw_vertical_window_border, shift_glyphs_for_insert.
8918 Rename member clear_mouse_face to clear_window_mouse_face.
8919 (estimate_mode_line_height_hook): Remove hook.
8920 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8921 (tool_bar_item_info): Remove prototype.
8922 (help_echo_string, help_echo_window, help_echo_object)
8923 (previous_help_echo_string, help_echo_pos)
8924 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8925 (x_stretch_cursor_p, output_cursor): Declare extern.
8926 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8927 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8928 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8929 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8930 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8931 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8932 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8933 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8934 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8935 Add prototypes.
8936 (mode_line_string, marginal_area_string): Fix prototypes.
8937
8938 * window.c (enum window_part): Move to dispextern.h.
8939 (coordinates_in_window): Use enum window_part member names
8940 instead of numbers to describe return value.
8941 (struct check_window_data): Change part member to window_part.
8942 (check_window_containing): Return window_part unaltered.
8943 (window_from_coordinates): Change part arg from int to enum
8944 window_part. Allow part arg to be null. All users changed.
8945
8946 * window.h (window_from_coordinates): Fix prototype.
8947
8948 * term.c (estimate_mode_line_height): Move to xdisp.c.
8949
8950 * keyboard.c (make_lispy_event): Use enum window_part.
8951
8952 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8953 window_part instead of int in arg list. Users changed.
8954
8955 * xterm.h (No_Cursor): Declare as None for X.
8956 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8957
acd37560
KS
8958 * xterm.c: Remove consolidated defines and code.
8959 (BETWEEN): Remove unused macro.
8960 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8961 (x_define_frame_cursor, x_clear_frame_area)
8962 (x_draw_window_cursor): New X-specific functions for RIF.
8963 (x_redisplay_interface): Add new members.
8964
8965 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8966
8967 * w32term.h (struct w32_output): Remove cross_cursor member.
8968
8969 * w32term.c: Remove consolidated defines and code.
8970 (BETWEEN): Remove unused macro.
8971 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8972 (w32_define_frame_cursor, w32_clear_frame_area)
8973 (w32_draw_window_cursor): New W32-specific functions for RIF.
8974 (w32_redisplay_interface): Add new members.
8975
a64387ee 8976 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8977 (XRectangle): Add X compatible rectangle type.
8978 (NativeRectangle): Declare as RECT for W32.
8979 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8980
8981 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8982
8983 * w32console.c: Remove consolidated defines and code.
af0ad939 8984
acd37560
KS
8985 * msdos.h (Display_Info): Add generic typedef.
8986
8987 * msdos.c: Remove consolidated defines and code.
8988 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8989
8990 * macterm.h (struct mac_output): Replace member cross_cursor by
8991 hand_cursor.
8992 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8993
8994 * macterm.c: Remove consolidated defines and code.
8995 (BETWEEN): Remove unused macro.
8996 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8997 (mac_define_frame_cursor, mac_clear_frame_area)
8998 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8999 (x_redisplay_interface): Add new members.
9000
9001 * macgui.h (No_Cursor): Define as 0 for Mac.
9002 (XRectangle): Add X compatible rectangle type.
9003 (NativeRectangle): Declare as Rect for Mac.
9004 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9005
204ccab1
KS
9006 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9007 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9008
9443fcf6 9009 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9010 included from it. Add dependency on keymap.h.
9011
9012 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9013
8ba01a70 90142003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9015
9016 * fileio.c (Fexpand_file_name): Fix previous change.
9017
8ba01a70 90182003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9019
9020 * fileio.c (Ffile_name_directory): Reconstruct file name by
9021 make_specified_string.
9022 (Ffile_name_nondirectory, Ffile_name_as_directory)
9023 (Fdirectory_file_name, Fexpand_file_name)
9024 (Fsubstitute_in_file_name): Likewise.
9025 (Fread_file_name): Compare decoded homedir with DIR and
9026 DEFAULT_FILENAME.
9027
9028 * alloc.c (make_specified_string): If NCHARS is negative, count
9029 the number of characters.
9030
19536747
JD
90312003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9032
de38ae5a
JD
9033 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9034 all widgets.
9035
19536747
JD
9036 * gtkutil.h: Removed xg_ignore_next_thumb.
9037
37ab321e 90382003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9039
9040 * coding.c (Vchar_coding_system_table): Remove this variable.
9041 (Vcoding_system_safe_chars): New variable.
9042 (intersection): Remove this function.
9043 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9044 all codings in SAFE_CODINGS.
00c64fab 9045 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9046 find_safe_codings. Get generic coding systems from
9047 Vcoding_system_safe_chars.
9048 (Fdefine_coding_system_internal): New function.
9049 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9050 Initialize and staticpro Vcoding_system_safe_chars.
9051
17097258
JD
90522003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9053
2a2071c3
JD
9054 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9055 equal old values before updating.
9056
17097258
JD
9057 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9058
9059 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9060
90612003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9062
9063 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9064 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9065 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9066 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9067 (xg_create_scroll_bar): Pass bar to button event callback.
9068 (xg_find_top_left_in_fixed): New function.
9069 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9070 whole scroll bar area. Get old position with
9071 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9072 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9073 dragging is in progress. Calculate whole as for Motif.
9074 Remove code that saved last values. Call gtk_range functions to
9075 set scroll bar sizes.
9076
9077 * gtkutil.h: Removed xg_ignore_next_thumb.
9078
8cb9dfbf
JB
90792003-03-17 Juanma Barranquero <lektu@terra.es>
9080
9081 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9082 and files included from it.
9083
00c64fab
SM
90842003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9085
9086 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9087 multiple occurrences of the same keymap under different prefixes.
9088 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9089
c45bb3b2
JR
90902003-03-16 Jason Rumney <jasonr@gnu.org>
9091
9092 * w32gui.h: Use HDC for Display.
9093
9094 * w32term.c (w32_encode_char): Prevent double-byte chars from
9095 crashing Emacs.
9096
9097 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9098 as binary.
9099
2a6d0874
JB
91002003-03-16 Juanma Barranquero <lektu@terra.es>
9101
9102 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9103
03eb5fab
KS
91042003-03-16 Kim F. Storm <storm@cua.dk>
9105
9106 The following changes consolidate some of the gui-independent
9107 parts of the processing and drawing of "glyph strings" from
9108 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9109
03eb5fab
KS
9110 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9111 21 bits (this reduces number of faces from 4M to 2M).
9112 Replace W32 specific w32_font_type member (2 bits) by generic
9113 font_type member (3 bits) for portability.
9114 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9115 (enum draw_glyphs_face): Define here.
9116 (struct glyph_string): Define here. Merge W32 and X versions.
9117 (struct redisplay_interface): New members per_char_metric,
9118 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9119 (VCENTER_BASELINE_OFFSET): Define here.
9120 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9121 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9122
9123 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9124 (dump_glyph_string): Moved here.
9125 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9126 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9127 (fill_composite_glyph_string, fill_glyph_string)
9128 (fill_image_glyph_string, fill_stretch_glyph_string)
9129 (left_overwritten, left_overwriting, right_overwritten)
9130 (right_overwriting, get_char_face_and_encoding)
9131 (set_glyph_string_background_width, compute_overhangs_and_x)
9132 (append_glyph, append_composite_glyph, produce_image_glyph)
9133 (take_vertical_position_into_account, append_stretch_glyph)
9134 (produce_stretch_glyph): New generic functions (based on X version).
9135 Call platform specific functions through rif.
9136 (INIT_GLYPH_STRING): New macro, hides W32 details.
9137 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9138 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9139 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9140 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9141 (notice_overwritten_cursor):
9142 Generic functions exported to platform modules. Users changed.
9143
9144 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9145 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9146 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9147 New macros for consolidated code.
2a6d0874 9148
03eb5fab
KS
9149 * xterm.c: Remove consolidated defines and code.
9150 (x_per_char_metric, x_encode_char)
9151 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9152 (x_redisplay_interface): Add new members.
9153
9154 * w32gui.h (Display): Add dummy typedef for consolidation.
9155 (XChar2b): Define alias for wchar_t for consolidation.
9156 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9157
9158 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9159 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9160 New macros for consolidation.
9161
fad49844 9162 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9163 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9164 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9165 (w32_per_char_metric): Change font_type arg to int for RIF.
9166 (w32_encode_char): Return int according to RIF requirements.
9167 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9168 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9169 x_get_glyph_overhangs.
9170 (w32_redisplay_interface): Add new members.
9171
9172 * macgui.h (XChar2b): Move typedef here for consolidation.
9173 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9174
9175 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9176 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9177 consolidation.
9178
9179 * macterm.c: Remove consolidated defines and code.
9180 (mac_per_char_metric): New function for RIF.
00c64fab 9181 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9182 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9183 (x_redisplay_interface): Add new members.
9184
00c64fab
SM
91852003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9186
9187 * keymap.c (Vmenu_events): New var.
9188 (syms_of_keymap): Initialize it.
9189 (where_is_internal): Check more carefully what is a menu event.
9190
225c7a07
RS
91912003-03-14 Richard M. Stallman <rms@gnu.org>
9192
9193 * lread.c (read1): After #!, exit loop on eof.
9194
cea9be54
JD
91952003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9196
9ea0e54d
JD
9197 * gtkutil.h: Add declaration for xg_frame_cleared.
9198
0cb35f4e
JD
9199 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9200
cea9be54
JD
9201 * gtkutil.c (struct xg_last_sb_pos): New structure.
9202 (handle_fixed_child): New function.
9203 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9204 and force a redraw on them.
9205 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9206 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9207 so we can avoid unneeded redraws.
9208 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9209 and force a redraw on the scroll bar.
9210 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9211 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9212 (xg_frame_cleared): New function.
cea9be54 9213
20b853f3
KH
92142003-03-13 Kenichi Handa <handa@m17n.org>
9215
9216 * coding.c (Fdetect_coding_region): Fix docstring.
9217 (Fdetect_coding_string): Fix docstring.
9218
7a555aff
AS
92192003-03-13 Andreas Schwab <schwab@suse.de>
9220
25cc0080
AS
9221 * gtkutil.c: Add prototype for create_menus.
9222
30225431
AS
9223 * data.c (long_to_cons): Fix type of top.
9224
9225 * xselect.c (selection_data_to_lisp_data): Use int instead of
9226 long for an integer of size 4.
9227
7a555aff 9228 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9229 (xg_tool_bar_help_callback): Likewise.
7a555aff 9230
a3e4741f
AS
92312003-03-12 Andreas Schwab <schwab@suse.de>
9232
9233 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9234
9668be7c
KS
92352003-03-12 Kim F. Storm <storm@cua.dk>
9236
03eb5fab 9237 The following changes consolidate the fringe handling from
9668be7c 9238 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9239
9668be7c
KS
9240 * xdisp.c: Consolidate fringe handling code here.
9241 (left_bits, right_bits, continued_bits, continuation_bits)
9242 (ov_bits, zv_bits): Define fringe bitmaps.
9243 (fringe_bitmaps): New array holding fringe bitmaps.
9244 (draw_fringe_bitmap): Draw a specific bitmap; call display
9245 specific drawing routine via rif->draw_fringe_bitmap.
9246 (draw_row_fringe_bitmaps): Generic replacement for
9247 x_draw_row_fringe_bitmaps; all callers changed.
9248 (compute_fringe_widths): Generic replacement for
9249 x_compute_fringe_widths; all callers changed.
9250
9251 * dispextern.h (enum fringe_bitmap_type): Define here.
9252 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9253 (fringe_bitmaps): Declare extern.
9254 (struct redisplay_interface): New member draw_fringe_bitmap.
9255 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9256
9257 * xterm.c: Remove generic fringe code.
9258 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9259 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9260
9261 * w32term.c: Remove generic fringe code.
9262 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9263 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9264
9668be7c
KS
9265 * macterm.c: Remove generic fringe code.
9266 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9267 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9268
00a88f32
SM
92692003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9270
9271 * print.c (Fprin1_to_string): Return unibyte string if possible.
9272
1d1de695
DK
92732003-03-09 David Kastrup <dak@gnu.org>
9274
9275 * process.c (read_process_output): We have allocated enough space
9276 for readmax and carryover, so actually use the alloted space.
9277
257f40f2
JD
92782003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9279
9280 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9281 toolkit scrollbar click.
9282
9283 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9284 for USE_GTK.
9285 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9286 also.
9287 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9288 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9289
78819ebb 9290 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9291
9292 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9293 (xg_tool_bar_item_expose_callback): New function.
9294 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9295 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9296 on the tool bar widget.
9297 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9298 to expose on the tool bar item widgets.
9299
15213141
JD
93002003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9301
26b74a0b 9302 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9303 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9304 deleted from the image cache).
9305
15213141
JD
9306 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9307 the event isn't for a frame (i.e. for dialogs).
9308
20b853f3 93092003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9310
9311 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9312 composition components reaches the limit, terminate composing.
9313 (COMPOSITION_OK): New macro.
00a88f32 9314 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9315 composition is found.
9316 (coding_restore_composition): Adjust the number of composition
9317 components if it is not sane.
9318
c9029fe5
JB
93192003-03-06 Juanma Barranquero <lektu@terra.es>
9320
9321 * w32term.h (struct w32_display_info): Add xrdb member to support
9322 passing resources via -xrm on Windows.
9323
9324 * w32term.c (w32_make_rdb): New function.
9325 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9326 struct. Delete leftover code.
9327
9328 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9329 for resources passed on the command line.
9330
9331 * w32reg.c (w32_get_rdb_resource): New function.
9332 (x_get_string_resource): Use it, so resources passed with -xrm
9333 supercede the ones in the registry.
9334
9d00001f
JD
93352003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9336
9337 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9338 instead of x_top_window_to_frame.
9339
ca2417b9
JD
93402003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9341
9342 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9343 when restarting Emacs.
9344
5b20caf0
RS
93452003-03-03 Richard M. Stallman <rms@gnu.org>
9346
9347 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9348 to run kill-buffer-query-functions.
9349 (Qkill_buffer_query_functions): New var.
9350 (syms_of_buffer): Init and staticpro it.
9351
58e91b77
JD
93522003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9353
9354 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9355
932357b4
KS
93562003-02-25 Kim F. Storm <storm@cua.dk>
9357
9358 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9359 If centering point failed to make whole line visible and vscroll
9360 is non-zero, disable vscroll and try centering point again.
9361
9362 * lread.c (read1): Accept `single space' syntax like (? x).
9363
bb8db7e1
JD
93642003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9365
9366 * keyboard.c (cancel_hourglass_unwind): Surround with
9367 #ifdef HAVE_X_WINDOWS
9368
47d77aab
KH
93692003-02-25 Kenichi Handa <handa@m17n.org>
9370
9371 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9372 process only when "subprocesses" is defined.
9373
6a097c0c
SM
93742003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9375
9376 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9377
0b063c27
JB
93782003-02-24 Juanma Barranquero <lektu@terra.es>
9379
d1135afc
JB
9380 * callint.c (fix_command): Declare as static void and move before
9381 Fcall_interactively.
9382
0b063c27
JB
9383 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9384 (syms_of_xdisp): Don't initialize Qwhen.
9385
0af912f0
JD
93862003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9387
9388 * keyboard.c (cancel_hourglass_unwind): New function.
9389 (command_loop_1): Cancel hourglass with unwind-protect.
9390
120d0a23
RS
93912003-02-23 Richard M. Stallman <rms@gnu.org>
9392
9393 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9394 Detect (when ... (region-beginning)) etc.
9395 (Fcall_interactively): Call fix_command.
9396 (Qif, Qwhen): New variables.
9397 (syms_of_callint): Init and staticpro them.
0b063c27 9398
120d0a23
RS
9399 * regex.c (print_partial_compiled_pattern): Output to stderr.
9400
4ece81a6
KG
94012003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9402
9403 * dired.c (directory_files_internal): Don't expand directory.
9404 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9405 instead. From Lars Hansen <larsh@math.ku.dk>.
9406
e52bd6b7
SM
94072003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9408
9409 * fns.c (string_to_multibyte): Remove unused var i.
9410 (Flanginfo): Fix int/Lisp_Object mixup.
9411 (void_call2): New fun.
9412 (Fmap_char_table): Use it in place of call2.
9413
9414 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9415
9416 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9417
9418 * keymap.c (copy_keymap_1): Make it static.
9419
9420 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9421
c33ef7c4
JB
94222003-02-22 David Ponce <david@dponce.com>
9423
9424 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9425
16782258
JD
94262003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9427
9428 * process.h: Removed subtty field from struct Lisp_Process.
9429
9430 * process.c (create_process): Remove setting of subtty.
9431 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9432 (Fprocess_running_child_p, process_send_signal):
9433 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9434 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9435
3abeca61
KG
94362003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9437
9438 * keymap.c (Fdefine_key): Doc fix.
9439
92a8ce63
JB
94402003-02-21 Juanma Barranquero <lektu@terra.es>
9441
9442 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9443
9444 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9445 POLLING_PROBLEM_IN_SELECT.
9446
9447 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9448 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9449
9450 * s/hpux10-20.h: New file.
9451
e52bd6b7
SM
9452 * process.c (wait_reading_process_input):
9453 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9454
20f1ef2e
KH
94552003-02-20 Kenichi Handa <handa@m17n.org>
9456
32d0a9dc
KH
9457 * fontset.c (check_fontset_name): If NAME is nil, return the
9458 default fontset.
9459 (override_font_info): New function.
e52bd6b7 9460 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9461 (Ffontset_info): If FONTSET is not the default fontset, merge
9462 FONTSET onto the copy of the default fontset, and work on that
9463 copy. Document that NAME nil means the default fontset.
9464 (Ffontset_font): Document that NAME nil means the default fontset.
9465
20f1ef2e
KH
9466 * process.c (setup_process_coding_systems): If the process's
9467 in/out descriptor is -1, do nothing.
9468
77d1daf2
AS
94692003-02-19 Andreas Schwab <schwab@suse.de>
9470
e52bd6b7
SM
9471 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9472 Add prototypes.
77d1daf2 9473
f9a45bb3
KH
94742003-02-19 Kenichi Handa <handa@m17n.org>
9475
9476 * xfaces.c (try_alternative_families): Try all scalable fonts if
9477 Vscalable_fonts_allowed is not Qt.
9478
72ecb43c
JD
94792003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9480
9481 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9482
ee5be7c3
JD
94832003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9484
9485 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9486 names.
9487
9488 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9489 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9490 x_face_list_fonts.
9491 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9492 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9493
4cd519a7
KS
94942003-02-18 Kim F. Storm <storm@cua.dk>
9495
068f9882
KS
9496 * lread.c (read1): Fix last change.
9497 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9498
7290a344
AC
94992003-02-18 Andrew Choi <akochoi@shaw.ca>
9500
9501 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9502
1f7fa69b
AS
95032003-02-18 Andreas Schwab <schwab@suse.de>
9504
9505 * window.c (window_scroll_pixel_based): Move outside a
9506 multi-glyph character before setting new window start.
9507
9508 * xdisp.c (in_display_vector_p): New function.
9509 * dispextern.h (in_display_vector_p): Declare.
9510
23e21195
KS
95112003-02-18 Kim F. Storm <storm@cua.dk>
9512
9513 * lread.c (read1): Fix and relax read syntax.
9514 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9515 Only recognize "," after dotted-pair dot if inside backquote.
9516 Never include "`" or "," (inside backquote) in a symbol.
9517 Allow dotted-pair dot after a character constant.
9518 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9519
f098b121
JD
95202003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9521
9522 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9523 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9524 icons. Set name of tool bar to emacs-toolbar.
9525 (update_frame_tool_bar): Connect expose event to
9526 xg_tool_bar_expose_callback.
9527
63020c46
RS
95282003-02-17 Richard M. Stallman <rms@gnu.org>
9529
9530 * keyboard.c (this_command_key_count_reset): New variable.
9531 Initiatize to 0 where this_command_key_count is set.
9532 (read_char): Save and restore this_command_key_count_reset
9533 around input method code.
9534 (read_char): If this_command_key_count_reset, echo reread commands.
9535 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9536
fb4452cc
KH
95372003-02-17 Kenichi Handa <handa@m17n.org>
9538
9539 * fns.c (string_to_multibyte): Always return a multibyte string.
9540
bd11cc09
JR
95412003-02-16 Jason Rumney <jasonr@gnu.org>
9542
e52bd6b7
SM
9543 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9544 Negative max_fonts parameter means list all.
bd11cc09 9545
4cdf4bde
DL
95462003-02-14 Dave Love <fx@gnu.org>
9547
9548 * fns.c (Flanginfo): Doc fix.
9549
023b93f6
KS
95502003-02-13 Kim F. Storm <storm@cua.dk>
9551
37cd4238
KS
9552 * lread.c (read_escape): Interpret \s as a SPACE character, except
9553 for \s-X in a character constant which still is the super modifier.
9554 (read1): Signal an `invalid read syntax' error if a character
9555 constant is immediately followed by a digit or symbol character.
9556
140a6b7e
KS
9557 * search.c (Fmatch_data): Doc fix. Explicitly state that
9558 match-data is undefined if last search failed.
9559
023b93f6
KS
9560 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9561 All uses changed.
9562
7d5c86e5
JB
95632003-02-12 Juanma Barranquero <lektu@terra.es>
9564
9565 * eval.c (Fdefmacro): Fix typo.
9566
295fff2c
KS
95672003-02-12 Kim F. Storm <storm@cua.dk>
9568
9569 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9570 macro is a string, convert meta modifiers in string when copying
9571 the string into a vector.
9572
60f3202d
KS
95732003-02-11 Kim F. Storm <storm@cua.dk>
9574
9575 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9576
61cb0b53
KH
95772003-02-11 Kenichi Handa <handa@m17n.org>
9578
9579 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9580
7392e23c
KS
95812003-02-10 Kim F. Storm <storm@cua.dk>
9582
9583 * process.c: Doc fixes.
9584 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9585
ce4254bd
KH
95862003-02-10 Kenichi Handa <handa@m17n.org>
9587
9c7a329a
KH
9588 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9589
ce4254bd
KH
9590 * process.c (QCfilter_multibyte): New variable.
9591 (setup_process_coding_systems): New function.
e52bd6b7
SM
9592 (Fset_process_buffer, Fset_process_filter):
9593 Call setup_process_coding_systems.
ce4254bd
KH
9594 (Fstart_process): Initialize the member `filter_multibyte' of
9595 struct Lisp_Process.
9596 (create_process): Call setup_process_coding_systems.
9597 (Fmake_network_process): New keyward `:filter-multibyte'.
9598 Initialize the member `filter_multibyte' of struct Lisp_Process.
9599 Call setup_process_coding_systems.
9600 (server_accept_connection): Call setup_process_coding_systems.
9601 (read_process_output): If the process has a filter, decide the
9602 multibyteness of a string to given to the filter by
9603 `filter_multibyte' member of the process. If the process doesn't
9604 have a filter and the result of conversion is unibyte, use
9605 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9606 multibyte form.
9607 (Fset_process_coding_system): Call setup_process_coding_systems.
9608 (Fset_process_filter_multibyte): New function.
9609 (Fprocess_filter_multibyte_p): New function.
9610 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9611 Defsubr Sset_process_filter_multibyte and
9612 Sprocess_filter_multibyte_p.
9613
9614 * process.h (struct Lisp_Process): New member filter_multibyte.
9615
9616 * lisp.h (setup_process_coding_systems): Add prototype.
9617
9618 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9619 process, update coding systems for the process.
9620
b08d5f59
KH
96212003-02-09 Kenichi Handa <handa@m17n.org>
9622
9623 * fns.c (string_to_multibyte): New function.
9624 (Fstring_to_multibyte): New function.
9625 (syms_of_fns): Defsubr it.
9626
0dfd93c0
AS
96272003-02-08 Andreas Schwab <schwab@suse.de>
9628
9629 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9630 instead of the substitution.
9631
7b76ca1c
JD
96322003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9633
9634 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9635
9636 * xmenu.c (menu_position_func): Adjust menu popup position so that
9637 the menu is fully visible.
7b76ca1c 9638
2436a4e4
JD
96392003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9640
9641 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9642 (x_make_frame_invisible, x_wm_set_icon_position):
9643 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9644
9645 * xfns.c (x_set_name, x_set_title): Ditto.
9646
37d1e680
RS
96472003-02-04 Richard M. Stallman <rms@gnu.org>
9648
9649 * keyboard.c (echo_now): Update before_command_echo_length.
9650 (Freset_this_command_lengths): Reset this_command_key_count etc.
9651 immediately rather than arranging to do it later.
9652 (before_command_key_count_1, before_command_echo_length_1)
9653 (before_command_restore_flag): Vars deleted.
9654 (add_command_key): Don't handle before_command_restore_flag.
9655 (read_char, record_menu_key): Don't update before_command_key_count or
9656 before_command_echo_length.
9657 (read_char): Don't handle before_command_restore_flag.
9658
9659 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9660 in direct-output clauses if it wouldn't be called in the ordinary case.
9661
578846a3
KS
96622003-02-04 Kim F. Storm <storm@cua.dk>
9663
9664 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9665
49853a4d
JD
96662003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9667
9668 * gtkutil.c (remove_from_container): Copying list is not needed.
9669 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9670 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9671 on list returned from gtk_container_get_children to avoid memory leak.
9672
8b53dc06
JR
96732003-02-01 Jason Rumney <jasonr@gnu.org>
9674
5d54d177
JR
9675 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9676 local malloc.
9677 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9678 definitions in xpm.h.
9679 (init_xpm_functions): New function.
f63fd14e 9680 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9681 (init_external_image_libraries): Try to load libXpm.dll.
9682
8b53dc06
JR
9683 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9684 timestamp.
9685
b222e415
DL
96862003-01-31 Dave Love <fx@gnu.org>
9687
9688 * syntax.c (Fskip_chars_forward)
9689 (open-paren-in-column-0-is-defun-start): Doc fix.
9690
c60ee5e7
JB
96912003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9692
9693 * fileio.c: Support // at start of name for Cygwin (just added proper
9694 preprocessor tests).
9695
9696 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9697
9698 * Makefile.in: Use @EXEEXT@ for Cygwin.
9699
9700 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9701
9702 * s/cygwin.h: Added for Cygwin port.
9703
53b37591
JB
97042003-01-31 Juanma Barranquero <lektu@terra.es>
9705
9706 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9707 when including gif_lib.h.
fe929957 9708 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9709 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9710 Windows. Disable color table lookups. Call library functions
53b37591 9711 through pointers determined at runtime.
fe929957
JB
9712 (init_external_image_libraries): Try to load libungif.dll and
9713 libtiff.dll.
53b37591 9714
45415a8f
KH
97152003-01-31 Kenichi Handa <handa@m17n.org>
9716
9717 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9718 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9719
a97e4138
JD
97202003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9721
e52bd6b7 9722 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9723
6eed9bed
DL
97242003-01-30 Dave Love <fx@gnu.org>
9725
9726 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9727 (Fgarbage_collect): Use them.
9728 (init_alloc, syms_of_alloc): Set them up.
9729
100dcd40
JB
97302003-01-30 Juanma Barranquero <lektu@terra.es>
9731
9732 * w32fns.c (init_external_image_libraries): Add missing operator.
9733
fbd852af
JR
97342003-01-29 Jason Rumney <jasonr@gnu.org>
9735
9736 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9737 an alternative name for jpeg.dll.
9738
8a2d8020
KH
97392003-01-29 Kenichi Handa <handa@m17n.org>
9740
9741 * xdisp.c (set_cursor_from_row): Pay attention to string display
9742 properties.
9743
058c18c7
AC
97442003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9745
9746 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9747 <escape>.
9748 (keycode_to_xkeysym_table): Reformat and add more comments.
9749 (XTread_socket): Drop special case for backspace.
9750
385f11cf
AC
97512003-01-28 Andrew Choi <akochoi@shaw.ca>
9752
9753 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9754 values in old-style RGB specs.
9755
c922a224
JB
97562003-01-27 Juanma Barranquero <lektu@terra.es>
9757
9758 * w32fns.c (init_external_image_libraries): Try alternate names for the
9759 jpeg dll.
9760
0a1d6de0
JD
97612003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9762
9763 * gtkutil.c (create_dialog, xg_separator_p)
9764 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9765 before calling strcmp or strlen.
9766
a97e4138 97672003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9768
9769 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9770 and handle image load failure.
9771
28908312
JR
97722003-01-26 Jason Rumney <jasonr@gnu.org>
9773
9774 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9775 New functions.
f63fd14e
JB
9776 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9777 Disable color table lookups. Call jpeg library functions
28908312
JR
9778 through pointers determined at runtime.
9779 (init_external_image_libraries): Try to load jpeg.dll.
9780
84e47416
RS
97812003-01-25 Richard M. Stallman <rms@gnu.org>
9782
9783 * lisp.h: Declare format2 instead of format1.
9784
9785 * fileio.c (barf_or_query_if_file_exists):
9786 Call format2 instead of format1.
9787
9788 * editfns.c (format2): New function, replaces format1
9789 but takes exactly two Lisp Objects as format args.
9790
9791 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9792
a97e4138 97932003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9794
9795 * xterm.h: Change to return value of x_dispatch_event to int.
9796
9797 * xterm.c (x_filter_event): New function.
9798 (event_handler_gdk, XTread_socket): Call x_filter_event.
9799 (x_dispatch_event): Change to return value of finish.
9800 (event_handler_gdk): Use return value from x_dispatch_event.
9801
9802 * xfns.c (x_window): Call create_frame_xic for GTK version to
9803 initialize input methods.
9804
9805 * gtkutil.h: Add (void) prototypes.
9806
9807 * gtkutil.c (create_menus): Remove code that puts the help menu to
9808 the right.
9809
54eefef1
JR
98102003-01-25 Jason Rumney <jasonr@gnu.org>
9811
9812 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9813 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9814 (png_load): Adjust colors for Windows. Use Windows
9815 bitmaps. Disable color table lookups.
c262430d
JR
9816 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9817 (init_png_functions): New function.
9818 (png_read_from_memory, png_load): Call png library functions
9819 through pointers determined at runtime.
9820 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9821 (init_external_image_libraries): New function.
9822 (init_xfns): Call it.
54eefef1 9823
1a9e275b
AS
98242003-01-24 Andreas Schwab <schwab@suse.de>
9825
9826 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9827
a97e4138 98282003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9829
9830 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9831 of static initializer.
9832
422eec7e
DL
98332003-01-24 Dave Love <fx@gnu.org>
9834
9835 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9836 architectures.
9837
9838 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9839 Use __alignof__.
9840
2a026b04
KH
98412003-01-24 Kenichi Handa <handa@m17n.org>
9842
9843 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9844 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9845 (command_loop_1): Call adjust_point_for_property with proper
9846 second arg.
9847
a18bb28d
JR
98482003-01-22 Jason Rumney <jasonr@gnu.org>
9849
9850 Sync changes with xterm.c and xfns.c.
9851
9852 * w32term.c (x_draw_glyph_string_foreground)
9853 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9854
9855 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9856 phys_cursor's hpos is overwritten. This is still not completely
9857 correct, as it doesn't really make sense to use hpos at all to
9858 get the cursor glyph (as that is relative to the width of the
9859 characters on the line, which may have changed during the update).
9860
9861 * w32term.c (notice_overwritten_cursor): Handle the special case
9862 of the cursor being in the first blank non-text line at the
9863 end of a window.
9864
9865 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9866 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9867 Compute from the x position returned by x_draw_glyphs.
9868
9869 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9870 except for NO_CURSOR and system caret, to make phys_cursor_width
9871 contain what its name suggests.
9872 (notice_overwritten_cursor): Consider the cursor image erased if
9873 the output area intersects the cursor image in y-direction.
9874
6a097c0c
SM
9875 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9876 note_mode_line_highlight and extend.
a18bb28d
JR
9877
9878 * w32term.c (last_window): New variable.
9879 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9880 (note_mouse_movement): Remove reimplemented code in #if 0.
9881
9882 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9883 not update_mode_lines, and always set it to 1.
9884
ac6e47ef
JR
98852003-01-21 Jason Rumney <jasonr@gnu.org>
9886
9887 * w32fns.c (IDC_HAND): Define it if system headers don't.
9888
98892003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9890
9891 * w32term.h (struct w32_output): New member hand_cursor.
9892 (WM_EMACS_SETCURSOR): New message definition.
9893
9894 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9895 function w32_define_cursor.
9896 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9897 position, change member name output_data.x to output_data.w32 and
9898 add function w32_define_cursor.
9899 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9900 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9901 (w32_initialize_display_info):
9902 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9903
9904 * w32fns.c (Vx_hand_shape): New variable.
9905 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9906 WM_EMACS_SETCURSOR.
9907 (x-create-frame): Setup Cursor types.
9908
ceb39a17
JB
99092003-01-21 David Ponce <david@dponce.com>
9910
ac6e47ef 9911 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9912 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9913 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9914 2002-09-30.)
ac6e47ef
JR
9915 (w32_draw_relief_rect): Declare all args.
9916 (w32_define_cursor): New.
9917
9918 * w32fns.c (w32_load_cursor): New function.
9919 (w32_init_class): Use it.
9920 (x_put_x_image): Declare all args.
9921
b6189c3b 99222003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9923
9924 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9925
a97e4138 99262003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9927
9928 * gtkutil.c: Must include stdio.h before termhooks.h
9929
83fc9c63
DL
99302003-01-21 Dave Love <fx@gnu.org>
9931
9932 * alloc.c (Fgc_status): Print zombie list.
9933 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9934 Fix assignment of zombies.
9935 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9936 Don't take car of non-cons.
9937
9938 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9939
9940 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9941
fe04b8c8
JR
99422003-01-20 David Ponce <david@dponce.com>
9943
9944 * w32menu.c (digest_single_submenu): Declare all args.
9945
9946 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9947 changes in xmenu.c:
9948
9949 (parse_single_submenu): Use individual keymap's prompt
9950 string as pane name, if there is one.
9951 (set_frame_menubar): Save menu_items_n_panes from each call to
9952 parse_single_submenu and use it when calling digest_single_submenu.
9953
539e69a9
ST
99542003-01-20 Steven Tamm <steventamm@mac.com>
9955
9956 * macterm.c (XTread_socket): Checks for valid, visible window
9957 before sending a scroll-wheel event.
9958
675d000f
RS
99592003-01-20 Richard M. Stallman <rms@gnu.org>
9960
9961 * xdisp.c (redisplay_window): If mini window's buffer is not
9962 a minibuffer, then redisplay it like other windows.
9963
a97e4138 99642003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9965
9966 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9967 external tool bar before setting tool bar height.
9968
048addec
JD
99692003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9970
9971 * xterm.c (handle_one_xevent): Surround popup_activated
9972 with #ifdef:s for non-toolkit version.
9973
9974 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9975 (gtkutil.o): New file.
9976 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9977 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9978
9979 * gtkutil.c: New file for GTK version.
9980
9981 * gtkutil.h: New file for GTK version.
9982
9983 * xterm.h: Add xt_or_gtk_widget.
9984 Include gtk files for USE_GTK.
9985 (struct x_output): Add toolbar_height.
9986 (struct x_output): Add GTK widgets and Gdk size_hints.
9987 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9988 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9989 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9990
9991 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9992 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9993 (note_mouse_highlight): Check popup_activated for USE_GTK.
9994 (xt_action_hook): Don't compile if USE_GTK.
9995 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9996 (xg_scroll_callback): New function.
9997 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9998 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9999 for USE_GTK.
10000 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10001 xg_show_scroll_bar for USE_GTK.
10002 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10003 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10004 (event_handler_gdk): New function for USE_GTK.
10005 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10006 (handle_one_xevent): Make sure widget is mapped before
10007 calling x_real_positions for USE_GTK.
10008 (XTread_socket): Add GTK event loop for USE_GTK.
10009 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10010 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10011 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10012 (x_iconify_frame): Add code for USE_GTK.
10013 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10014 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10015 is in gtkutil.c.
10016 (x_term_init): Add initialization for GTK.
10017 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10018
10019 * xmenu.c: Include gtkutil.h for USE_GTK.
10020 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10021 (single_menu_item, single_menu_item, Fx_popup_dialog):
10022 Check for USE_GTK.
048addec
JD
10023 (popup_widget_loop): New function for USE_GTK.
10024 (x_activate_menubar): Add code for USE_GTK.
10025 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10026 (menu_highlight_callback, menubar_selection_callback):
10027 Add USE_GTK versions.
048addec
JD
10028 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10029 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10030 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10031 is in gtkutil.c.
10032 (popup_selection_callback): New version for USE_GTK.
10033 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10034 one USE_X_TOOLKIT version.
048addec
JD
10035 (xmenu_show): Call create_and_show_popup_menu.
10036 (dialog_selection_callback): New version for USE_GTK.
10037 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10038 one USE_X_TOOLKIT version.
048addec
JD
10039 (xdialog_show): Call create_and_show_dialog.
10040
10041 * xfns.c: Include gtkutil for USE_GTK.
10042 (x_window_to_frame, x_any_window_to_frame)
10043 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10044 (x_top_window_to_frame): Add code for USE_GTK.
10045 (x_set_background_color): Call xg_set_background_color for GTK.
10046 (x_set_menu_bar_lines): Check for USE_GTK.
10047 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10048 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10049 (x_window): Call xg_create_frame_widgets for USE_GTK.
10050 (Fx_create_frame): Check for USE_GTK
10051 (Fx_file_dialog): New implementation for USE_GTK.
10052
10053 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10054 (update_menu_bar): Add check for USE_GTK.
10055 (update_tool_bar): Add check for USE_GTK and external tool bar.
10056 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10057 (redisplay_internal): Add check for USE_GTK and popup_activated.
10058 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10059 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10060 (display_menu_bar): Add check for USE_GTK
10061
78819ebb 10062 * lisp.h (Vx_resource_name): Declare extern.
048addec 10063
a64387ee 10064 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10065 for USE_GTK.
10066 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10067
10068 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10069 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10070 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10071
10072 * fileio.c (Fread_file_name): Add check for USE_GTK.
10073
6bdb309a
SM
10074 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10075 Add check for USE_GTK.
048addec
JD
10076
10077 * config.in: Added HAVE_GTK
10078
10079 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10080
100812003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10082
10083 * charset.h (Funibyte_char_to_multibyte): Export.
10084
100852003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10086
10087 * xmenu.c (mouse_position_for_popup): New function.
10088 (Fx_popup_menu): Call mouse_position_for_popup for X and
10089 mouse_position_hook for others.
10090
100912003-01-17 Kim F. Storm <storm@cua.dk>
10092
10093 * editfns.c (Finsert): Mention `string-make-multibyte' and
10094 `string-as-multibyte' in doc string.
10095
100962003-01-17 Kenichi Handa <handa@m17n.org>
10097
10098 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10099
048addec
JD
10100 * editfns.c (Fformat): Convert an unibyte char argument that is
10101 formatted by "%c" to multibyte if the total result must be a
10102 multibyte string.
cd7df9c0 10103
048addec 101042003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10105
048addec
JD
10106 * process.c (set-process-filter): Document unibyte/multibyte-ness
10107 of string argument.
56210ecd 10108
048addec 101092003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10110
048addec 10111 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10112
048addec
JD
10113 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10114 (re_search_2): Likewise.
6df8b9fe 10115
048addec 101162003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10117
048addec
JD
10118 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10119 buffer is unibyte.
292ddc31 10120
048addec 101212003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10122
048addec 10123 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10124
048addec
JD
10125 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10126 (Fprevious_char_property_change)
10127 (Fnext_single_char_property_change)
10128 (Fprevious_single_char_property_change, Fnext_property_change)
10129 (Fnext_single_property_change, Fprevious_property_change)
10130 (Fprevious_single_property_change, Fadd_text_properties)
10131 (Fput_text_property, Fset_text_properties)
10132 (Fremove_text_properties, Fremove_list_of_text_properties)
10133 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10134
048addec 101352003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10136
048addec
JD
10137 * process.h (struct Lisp_Process): New member plist replaces old
10138 member private_vars. All uses changed.
63e4e4c6 10139
048addec 10140 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10141 (QCplist): Rename from QCvars. Change all uses.
048addec 10142 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10143 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10144 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10145 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10146
048addec 101472003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10148
6bdb309a 10149 * m/delta.h: Remove (obsolete).
e833850f 10150
048addec 101512003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10152
048addec
JD
10153 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10154 behaviour in front of symlinks.
10155 (Fdelete_file): Raise an error on directories.
817cb127 10156
048addec 101572003-01-13 Dave Love <fx@gnu.org>
817cb127 10158
048addec 10159 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10160
048addec 101612003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10162
048addec
JD
10163 * minibuf.c (minibuffer_completion_contents):
10164 Error if point is inside prompt.
3e8cf2ea 10165
048addec
JD
10166 * keyboard.c (command_loop_1): Don't redisplay directly
10167 if there's a post-command-hook.
3e8cf2ea 10168
048addec
JD
10169 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10170 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10171
048addec 101722003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10173
048addec 10174 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10175
048addec
JD
10176 * process.c (QCvars): New variable.
10177 (syms_of_process): Intern and staticpro it.
10178 (Fset_process_contact): Removed function.
10179 (Fprocess_variable, Fset_process_variable): New functions.
10180 (syms_of_process): Defsubr them.
10181 (Fstart_process): Initialize private_vars plist to nil.
10182 (Fmake_network_process): New arg :vars to setup the private
10183 variables for new network process.
10184 (server_accept_connection): Copy server's private variables to
10185 client process.
2c10f029 10186
048addec
JD
10187 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10188 crashes). Code rewritten and simplified. Now directly aligns the
10189 pointer and recalculates pure_bytes_used, rather than aligning the
10190 size and adjusting the pointer.
b8a76c6c 10191
048addec 101922003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10193
048addec
JD
10194 * process.c (Fset_process_contact): New function.
10195 (syms_of_process): defsubr it.
10196 (make-network-process): Update doc.
3a8d0899 10197
048addec 101982003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10199
048addec
JD
10200 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10201 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10202
048addec 102032003-01-10 Dave Love <fx@gnu.org>
4abc7470 10204
048addec 10205 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10206
048addec 102072003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10208
048addec
JD
10209 * process.c (Fmake_network_process): Convert new port number
10210 to host byte order for `:service t' case. From Mario Lang.
bf338245 10211
048addec 102122003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10213
048addec
JD
10214 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10215 instead of XtAppProcessEvent.
bf338245 10216
048addec
JD
10217 * xterm.c (handle_one_xevent): New function.
10218 (x_dispatch_event): New function.
10219 (XTread_socket): Call handle_one_xevent.
bf338245 10220
048addec 10221 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10222
048addec
JD
10223 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10224 call XQueryPointer to get coordinates.
10225 (popup_get_selection): Do not set popup_activated_flag to zero,
10226 let popup_deactivate_callback do that. Needed for Motif.
10227 Call x_dispatch_event instead of XtDispatchEvent.
10228 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10229
048addec 102302003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10231
6bdb309a 10232 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10233 connection's local address in :local property of contact info.
10234 (Fmake_network_process): Record local network address for new
10235 client processes in :local property of contact info.
6bdb309a 10236 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10237
048addec 102382003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10239
048addec 10240 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10241
048addec 102422003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10243
048addec 10244 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10245
048addec
JD
10246 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10247 use the same test as for custom-variable-p.
8c6d74c6 10248
048addec 102492003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10250
048addec
JD
10251 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10252 Count LAST_LINE_MISFIT in scroll margin for end of window.
10253 Move label too_near_end before setting SCROLL_MARGIN_POS.
10254 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10255
048addec
JD
10256 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10257 scroll_conservatively case. If scrolling that much doesn't change
10258 STARTP, move it down one line.
e833850f 10259
048addec
JD
10260 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10261 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10262
048addec
JD
10263 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10264 selected frame.
8c6d74c6 10265
048addec
JD
10266 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10267 (syms_of_keymap): staticpro them.
10268 (Fapropos_internal): Initialize them and clear them out.
10269 Don't GCPRO them.
8c6d74c6 10270
048addec
JD
10271 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10272 Doc fixes.
8c6d74c6 10273
048addec
JD
10274 * lisp.h: New misc type Lisp_Save_Value.
10275 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10276 (XSAVE_VALUE): New macro.
10277 (struct Lisp_Save_Value): New data type.
10278 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10279 (make_save_value): Declare.
8c6d74c6 10280
048addec 10281 * alloc.c (make_save_value): New function.
8c6d74c6 10282
048addec
JD
10283 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10284 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10285
048addec 102862003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10287
048addec 10288 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10289
048addec
JD
10290 * keyboard.c (command_loop_1): Call adjust_point_for_property
10291 in direct action cases for Qforward_char and Qbackward_char.
10292 Set already_adjusted so it won't be done twice.
8c6d74c6 10293
b6189c3b 102942002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10295
048addec
JD
10296 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10297 type definition of size_t.
8c609cff 10298
048addec 102992003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10300
048addec
JD
10301 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10302 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10303
048addec 103042002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10305
048addec
JD
10306 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10307 to default to t.
fa634a5e 10308
048addec 103092002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10310
048addec 10311 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10312
048addec 103132002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10314
048addec
JD
10315 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10316 allow building in a different directory than source. Uses some
10317 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10318
048addec 103192002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10320
048addec
JD
10321 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10322 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10323 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10324 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10325
048addec 103262002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10327
048addec
JD
10328 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10329 <scroll-down-aggressively>: Doc fix.
2155ecf3 10330
048addec
JD
10331 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10332 string as pane name, if there is one.
10333 (set_frame_menubar): Save menu_items_n_panes from each call to
10334 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10335
048addec
JD
10336 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10337 Don't try to make last line fully visible if it is past end of window.
61f1d295 10338
048addec 103392002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10340
048addec
JD
10341 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10342 (mac_menu_show): Add support for hierarchical popup menus.
10343 (add_menu_item): Remove indentation support.
10344 (fill_submenu, fill_menu): Create hierarchical menus
10345 instead of using indentation.
0b17a217 10346
048addec 103472002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10348
048addec
JD
10349 * xdisp.c (try_cursor_movement): Don't call try_window here.
10350 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10351
048addec 10352 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10353
048addec 103542002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10355
048addec
JD
10356 * macterm.c (XTread_socket): Call KeyTranslate for control and
10357 meta to deal correctly shifted non-alpha characters, like C-S-5
10358 being treated like C-%. Does not look for shift key to deal
10359 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10360
048addec 103612002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10362
048addec
JD
10363 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10364 If it is non-nil, run timers. Use an unwind-protect to requeue
10365 the events that were read ahead.
10366 (popup_get_selection_unwind): New subroutine.
10367 (popup_get_selection_queue): File-scope variable now holds that queue.
10368 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10369 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10370 Use an unwind-protect to pop down the dialog box.
10371 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10372
048addec
JD
10373 * xdisp.c (row_containing_pos): Change exit test using last_y.
10374 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10375
048addec
JD
10376 * lread.c (load_error_handler): New function.
10377 (Fload): Handle errors in Fsubstitute_in_file_name.
10378 Don't expect Fsignal to return.
f02cac82 10379
048addec
JD
10380 * eval.c: Errors and throws work right with interrupt blocking.
10381 (struct catchtag): New elt interrupt_input_blocked.
10382 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10383 (internal_catch, Fcondition_case, internal_condition_case)
10384 (internal_condition_case_1, internal_condition_case_2): Save it.
10385 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10386
048addec 10387 * editfns.c (Fformat): Add parens.
f02cac82 10388
048addec
JD
10389 * dired.c (file_name_completion): Fix that change.
10390 Delete special quit-handling code; just use QUIT.
f02cac82 10391
b6189c3b 103922002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10393
048addec
JD
10394 * dired.c (file_name_completion): Close directory on error
10395 just as in directory_files_internal.
1a590729 10396
048addec 103972002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10398
048addec
JD
10399 * window.c (Fset_window_configuration): Set old_point to correct
10400 value when new_current_buffer == current_buffer.
f02cac82 10401
048addec 104022002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10403
048addec
JD
10404 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10405 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10406 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10407
048addec
JD
10408 These changes were in part based upon suggestions made by Peter
10409 'Luna' Runestig [peter@runestig.com].
9785d95b 10410
048addec
JD
10411 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10412 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10413 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10414 global variables.
9785d95b 10415
048addec
JD
10416 * w32.c (globals_of_w32): New function. Used to initialize those
10417 global variables that must always be initialized on startup even
10418 when the global variable initialized is non zero. Its primary
10419 purpose at this time is to set the global variables
10420 g_b_init_is_windows_9x, g_b_init_open_process_token,
10421 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10422 g_b_init_get_sid_identifier_authority to 0 on startup.
10423 Called from main.
9785d95b 10424
048addec
JD
10425 * w32.c (is_windows_9x): Perform initialization only if
10426 g_b_init_is_windows_9x is equal to 0. On initialization set
10427 g_b_init_is_windows_9x equal to 1.
2308af15 10428
048addec
JD
10429 * w32.c (open_process_token): Perform initialization only if
10430 g_b_init_open_process_token is equal to 0. On initialization set
10431 g_b_init_open_process_token equal to 1.
2308af15 10432
048addec
JD
10433 * w32.c (get_token_information): Perform initialization only if
10434 g_b_init_get_token_information is equal to 0. On initialization
10435 set g_b_init_get_token_information equal to 1.
9785d95b 10436
048addec
JD
10437 * w32.c (lookup_account_sid): Perform initialization only if
10438 g_b_init_lookup_account_sid is equal to 0. On initialization
10439 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10440
048addec
JD
10441 * w32.c (get_sid_identifier_authority): Perform initialization
10442 only if g_b_init_get_sid_identifier_authority is equal to 0.
10443 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10444
f63fd14e 10445 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10446 those global variables that must always be initialized on startup
10447 even when the global variable initialized is non zero.
10448 Its primary purpose at this time is to initialize the global variable
10449 track_mouse_event_fn.
9785d95b 10450
a64387ee 10451 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10452 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10453
048addec 10454 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10455
f63fd14e 10456 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10457 initialize those global variables that must always be initialized
10458 on startup even when the global variable initialized is non zero.
10459 Its primary purpose at this time is to initialize the global
10460 variables get_menu_item_info and set_menu_item_info.
9785d95b 10461
048addec
JD
10462 * w32menu.c (initialize_frame_menubar): Remove initialization of
10463 get_menu_item_info and set_menu_item_info.
9785d95b 10464
048addec 10465 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10466
048addec
JD
10467 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10468 Declare them.
9785d95b 10469
048addec
JD
10470 * emacs.c (main): Call globals_of_w32 prior to calling
10471 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10472 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10473 is defined.
9785d95b 10474
048addec
JD
10475 * w32term.c (x_update_window_begin): Fix Windows API error
10476 detected by BoundsChecker. Test to determine if
10477 w32_system_caret_hwnd is NULL prior to attempting to use
10478 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10479
048addec
JD
10480 * w32term.c (x_update_window_end): Fix Windows API error
10481 detected by BoundsChecker. Test to determine if
10482 w32_system_caret_hwnd is NULL prior to attempting to use
10483 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10484
048addec 104852002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10486
048addec
JD
10487 * coding.c (coding_system_require_warning): New variable.
10488 (syms_of_coding): DEFVAR it.
b6da19ef 10489
048addec 10490 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10491
048addec
JD
10492 * fileio.c (choose_write_coding_system): Even if
10493 Vcoding_system_for_write is non-nil, if
10494 coding_system_require_warning is nonzero, call
10495 Vselect_safe_coding_system_function.
bfcf6dbe 10496
048addec 104972002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10498
048addec
JD
10499 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10500 (lisp): Add font-core.
2c568af5 10501
048addec 105022002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10503
048addec
JD
10504 * textprop.c (text_read_only): New arg `propval'.
10505 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10506 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10507
048addec 105082002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10509
048addec 10510 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10511
048addec 105122002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10513
048addec
JD
10514 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10515 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10516 Be more careful about when help_events are generated.
96720f09 10517
048addec 105182002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10519
048addec
JD
10520 * macterm.c (mac_check_for_quit_char): Correctly set the
10521 modifiers of the event to 0.
10522 * mac.c (sys_select): Duplicate rfds before calling select to
10523 ensure that rfds survive the while loop.
e5ae1c49 10524
048addec 105252002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10526
048addec
JD
10527 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10528 row_containing_pos returned NULL.
2eb46b2d 10529
048addec 105302002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10531
6bdb309a 10532 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10533 non-blocking.
6bdb309a 10534 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10535 the one given.
b11f1d8a 10536
048addec 105372002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10538
048addec 10539 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10540
048addec 105412002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10542
048addec
JD
10543 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10544 as the last thing.
a4ac5b17 10545
048addec 105462002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10547
048addec 10548 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10549
048addec 105502002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10551
048addec
JD
10552 * editfns.c (Fformat): Handle precision in string conversion
10553 specifiers like libc functions do (ie, print at most that many
10554 characters).
85cce843 10555
048addec 105562002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10557
048addec
JD
10558 * xdisp.c (row_containing_pos): Check more carefully
10559 whether charpos is really in the row before returning it.
0d4d26a7 10560
048addec 105612002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10562
048addec 10563 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10564
048addec
JD
10565 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10566 each stack frame. This may change as it could be time consuming.
0d4d26a7 10567
048addec
JD
10568 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10569 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10570 (mac_initialize): Add code to check for pressing of quit_char
048addec 10571 in the OS event queue.
b11f1d8a 10572
048addec
JD
10573 * mac.c (sys_select): Call mac_check_for_quit_char every second
10574 while blocking on select.
0d4d26a7 10575
048addec
JD
10576 * mac.c (sys_read): Use sys_select to test for input first
10577 before calling read, to allow C-g to break.
9252f7bc 10578
048addec 105792002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10580
048addec 10581 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10582
048addec 10583 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10584
048addec 10585 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10586
048addec
JD
10587 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10588 autoload.
9252f7bc 10589
048addec 10590 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10591
048addec 10592 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10593
048addec 105942002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10595
048addec 10596 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10597
048addec 105982002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10599
048addec 10600 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10601
048addec 10602 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10603
048addec 10604 * alloca.c: Don't use #error.
02d588e2 10605
048addec 106062002-12-03 Dave Love <fx@gnu.org>
02d588e2 10607
048addec
JD
10608 * buffer.c (Qucs_set_table_for_input): New.
10609 (Fget_buffer_create): Use it.
10610 (Qset_buffer_major_mode_hook): Deleted.
10611 (Fset_buffer_major_mode): Revert previous change.
10612 (init_buffer_once): Intern ucs-set-table-for-input.
10613 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10614 Add &Qucs_set_table_for_input.
451e2697 10615
048addec 106162002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10617
048addec
JD
10618 * callint.c (Fcall_interactively): Use next_event only if less
10619 than key_count.
72742a99 10620
048addec 106212002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10622
048addec
JD
10623 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10624 names to 255 characters.
72742a99 10625
048addec
JD
10626 * macterm.c (XTread_socket): If all frames have been collapsed,
10627 expand the first one before handling drag-and-drop events.
72742a99 10628
048addec
JD
10629 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10630 which is detected by autoconf.
40e6ff95 10631
048addec 106322002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10633
048addec
JD
10634 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10635 offset in two hints table to allow prebinding to be redone and
10636 allow the executable to be stripped.
c02138c6 10637
048addec 106382002-11-29 Dave Love <fx@gnu.org>
c02138c6 10639
048addec
JD
10640 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10641 already provided.
0e47bbf7 10642
048addec 106432002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10644
048addec
JD
10645 * xdisp.c (start_display): Check more intelligently for
10646 whether the line is continued.
10647 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10648
048addec 106492002-11-28 Dave Love <fx@gnu.org>
44129dcb 10650
048addec
JD
10651 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10652 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10653
048addec 106542002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10655
048addec
JD
10656 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10657 more descriptive error output from lread.c:Fload upon most require
10658 cycles during boostrapping.
1637fd2c 10659
048addec 106602002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10661
048addec
JD
10662 * fileio.c (Finsert_file_contents): Give a more appropriate error
10663 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10664
048addec
JD
10665 * dired.c (Ffile_attributes): Don't return negative file sizes for
10666 files bigger than 2Gb when off_t is 32 bit.
540c2788 10667
048addec 106682002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10669
048addec 10670 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10671
048addec
JD
10672 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10673 Test GETPGRP_VOID instead.
10674 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10675
048addec
JD
10676 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10677 Don't define.
10678 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10679
048addec 10680 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10681
048addec 106822002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10683
048addec
JD
10684 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10685 supported.
4042a81a 10686
048addec 106872002-11-25 Dave Love <fx@gnu.org>
4042a81a 10688
048addec 10689 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10690
048addec 10691 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10692
048addec 106932002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10694
048addec 10695 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10696
048addec 106972002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10698
048addec
JD
10699 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10700 determine the size of pointers alloced in unexed space instead
10701 of using possibly invalid emacs_zone pointers. This fixes the
10702 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10703
048addec 107042002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10705
048addec 10706 * search.c (Fstring_match): Doc fix.
c1ee53bc 10707
048addec
JD
10708 * callint.c (Fcall_interactively): If a command fails because
10709 `*' detects a read-only buffer, but RECORD_FLAG is set,
10710 record it anyway if the args don't actually do tty input.
5598c32e 10711
048addec 107122002-11-22 Dave Love <fx@gnu.org>
5598c32e 10713
048addec 10714 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10715
048addec
JD
10716 * keyboard.c (interrupt_signal): Provide forward declaration.
10717 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10718
048addec 10719 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10720
048addec 107212002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10722
048addec
JD
10723 * eval.c (interactive_p): Skip any number of bytecode
10724 and special form frames, in any order.
516eea8e 10725
048addec 107262002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10727
048addec
JD
10728 * w32fns.c (convert_mono_to_color_image): New function.
10729 (xbm_load, xbm_load_image): Use it when foreground or background
10730 is explicitly set.
04dbfa08 10731
048addec 107322002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10733
048addec 10734 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10735
048addec 107362002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10737
048addec
JD
10738 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10739 (XPutPixel): Swap blue and red.
10740 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10741 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10742 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10743 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10744
048addec 107452002-11-18 Dave Love <fx@gnu.org>
d824beee 10746
048addec 10747 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10748
048addec 10749 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10750
048addec 10751 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10752
048addec
JD
10753 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10754 malloc, realloc, calloc.
d824beee 10755
048addec
JD
10756 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10757 (bcmp): Don't define.
d824beee 10758
048addec 10759 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10760
048addec 10761 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10762
048addec 10763 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10764
048addec 10765 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10766
048addec
JD
10767 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10768 Don't include alloca.h.
d824beee 10769
048addec 10770 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10771
048addec 10772 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10773
048addec 10774 * process.c (_GNU_SOURCE): Don't define.
1998560a 10775
048addec 10776 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10777
048addec 107782002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10779
048addec 10780 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10781
048addec 107822002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10783
048addec
JD
10784 * dispextern.h (struct face): Add `overstrike' field.
10785 * xterm.c (x_draw_glyph_string_foreground)
10786 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10787 * xfaces.c (load_face_font): Set `face->overstrike' based on
10788 result from choose_face_font.
10789 (best_matching_font, choose_face_font): Add `needs_overstrike'
10790 argument, and use it to return whether overstriking is desirable
10791 for this face/font combo.
10792 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10793
048addec 107942002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10795
048addec
JD
10796 This change is my fix for the following entry in etc/PROBLEMS:
10797 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10798 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10799
048addec
JD
10800 * w32.c: Added wrapper functions around the win32 API functions
10801 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10802 GetSidIdentifierAuthority. These wrapper functions serve two
10803 purposes:
10804 1. They ensure that the wrapped function can never be called
10805 when Emacs is running on an operating system on which they are
10806 not supported (Microsoft Windows 95 / 98 / ME).
10807 2. They call the wrapped functions via function pointers rather
10808 than calling them directly. This avoids taking advantage of the
10809 undocumented fact that although these functions are not supported
10810 in the 9x branch of Microsoft Windows, the functions do exist in
10811 the version of advapi32.dll that is found in the 9x branch of
10812 Microsoft Windows.
f60ae425 10813
6bdb309a 10814 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10815 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10816 and GetSidIdentifierAuthority with calls to the newly added
10817 wrapper functions.
f60ae425 10818
048addec
JD
10819 * w32.h: Added extern declarations for the following functions:
10820 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10821 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10822
6bdb309a 10823 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10824 function pointer track_mouse_event_fn in the handler for the
10825 WM_SETFOCUS message.
3582b6a3 10826
6bdb309a 10827 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10828 reinitialize the function pointers set_menu_item_info and
10829 get_menu_item_info.
f60ae425 10830
048addec 108312002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10832
048addec
JD
10833 * sound.c: Added a partial implementation of play-sound-internal
10834 for Microsoft Windows. Added various #ifdef / #else / #endif
10835 code blocks to separate the code that will compile under
10836 Microsoft Windows from the code that is specific to Gnu/Linux.
10837 Moved several blocks of code around to make this separation of code
10838 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10839
048addec 10840 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10841
048addec
JD
10842 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10843 added support for play-sound-internal under Windows would be
10844 included in the build of Emacs.
517f42a0 10845
048addec 108462002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10847
048addec 10848 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10849
048addec 10850 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10851
048addec 108522002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10853
048addec
JD
10854 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10855 (adjust_point_for_property): Move out of display and invisible even if
10856 we were already inside before (in case a property was added while
10857 we weren't looking). Be more careful when handling invisible props.
10858 Skip invisible text as if it really wasn't there at all.
aab83f91 10859
048addec 108602002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10861
048addec
JD
10862 * w32term.c (x_draw_image_foreground)
10863 (w32_draw_image_foreground_1): Use standard copy and invert
10864 operations to draw images.
aab83f91 10865
048addec
JD
10866 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10867 depth of 1.
10868 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10869 (XPutPixel): Don't invert bits here.
a4478a76 10870
048addec 108712002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10872
048addec
JD
10873 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10874 (w32_draw_image_foreground_1): Handle image masks.
10875 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10876
048addec
JD
10877 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10878 (x_from_xcolors): Adjust RGB values for W32.
10879 (image_background, image_background_transparent)
10880 (postprocess_image, x_to_xcolors, x_disable_image)
10881 (x_build_heuristic_mask): Adapt for W32 and enable.
10882 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10883 (xbm_load): Remove unused variable.
03670a65 10884
048addec 108852002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10886
048addec 10887 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10888
048addec 108892002-11-14 Dave Love <fx@gnu.org>
59daa29a 10890
048addec 10891 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10892
048addec
JD
10893 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10894 * xmenu.c (unuse_menu_items, digest_single_submenu):
10895 * xfns.c (x_put_x_image):
10896 * xdisp.c (message2_nolog, set_message):
10897 * undo.c (record_point):
10898 * terminfo.c (tparam):
10899 * syntax.c (scan_sexps_forward):
10900 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10901 * composite.c (update_compositions):
10902 * cm.c (calccost, cmgoto):
10903 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10904
048addec 10905 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10906
048addec
JD
10907 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10908 Don't declare.
59daa29a 10909
048addec 10910 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10911
048addec
JD
10912 * fns.c (Fcopy_sequence): Doc fix.
10913 (Fmap_char_table): Cast `call2'.
3947677c 10914
048addec
JD
109152002-11-14 Francesco Potorti` <pot@gnu.org>
10916
10917 * s/sol2-8.h: New file.
10918
109192002-11-14 Kim F. Storm <storm@cua.dk>
10920
10921 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10922 dependency on `risky-local-variable' and the :propertize form.
10923
109242002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10925
10926 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10927
10928 * syntax.c (scan_sexps_forward): Undo last patch.
10929 Use a more obvious fix: check eob before updating the syntax table.
10930
109312002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10932
10933 * syntax.c (scan_sexps_forward): Update syntax table before reading
10934 a char rather than after so we don't update the table past eob.
10935
109362002-11-09 Dave Love <fx@gnu.org>
10937
10938 * buffer.c (Fset_buffer_major_mode): Fix last change.
10939
10940 * regex.c (regexec): Fix pmatch declaration.
10941
10942 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10943
10944 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10945 to self-inserting characters.
10946 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10947
10948 * coding.c (Vtranslation_table_for_input): New.
10949 (syms_of_coding): DEFVAR it.
10950
109512002-11-08 Juanma Barranquero <lektu@terra.es>
10952
10953 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10954 window.
10955
109562002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10957
6bdb309a 10958 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10959 cp, and i.
10960
109612002-11-06 Dave Love <fx@gnu.org>
10962
10963 * buffer.c (Qset_buffer_major_mode_hook): New.
10964 (Fset_buffer_major_mode): Use it.
10965
109662002-11-06 Richard M. Stallman <rms@gnu.org>
10967
10968 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10969 and stop_polling.
10970
10971 * process.c (wait_reading_process_input):
10972 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10973 Avoid initialization for auto Lisp_Object var.
10974
10975 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10976
10977 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10978
109792002-11-05 Richard M. Stallman <rms@gnu.org>
10980
10981 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10982
10983 * callint.c (Fcall_interactively): New local filter_specs.
10984 (Fcall_interactively): Check for progn as well as let.
10985 Add a gcpro.
10986 (Qprogn): New variable.
10987 (syms_of_callint): Staticpro and init Qprogn.
10988
109892002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10990
10991 * lread.c (Feval_buffer): Doc fix.
10992
109932002-11-04 Dave Love <fx@gnu.org>
10994
10995 * keyboard.c (read_char): Always translate iff
10996 Vkeyboard_translate_table is a char table and c is valid.
10997
10998 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10999 and fix C types.
11000
110012002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11002
11003 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11004
11005 * editfns.c (get_pos_property): Don't hardcode Qfield.
11006
11007 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11008 overlays. Also handle `invisible' prop.
11009
110102002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11011
11012 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11013 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11014
110152002-11-01 Andreas Schwab <schwab@suse.de>
11016
11017 * editfns.c (Fmessage): Revert last change to properly handle %%.
11018
110192002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11020
11021 * xmenu.c (unuse_menu_items): New fun.
11022 (menu_items_inuse): New var.
11023 (syms_of_xmenu): Initialize it.
11024 (init_menu_items): Use it to detect re-entrance.
11025 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11026 (Fx_popup_menu): Remove spurious XSETFRAME.
11027
11028 * editfns.c (find_field): Make an exception for nil fields.
11029
110302002-11-01 Dave Love <fx@gnu.org>
11031
11032 * m/gec63.h: Deleted.
11033
110342002-10-31 Dave Love <fx@gnu.org>
11035
11036 * xterm.c (XTread_socket): Fix last change.
11037 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11038
110392002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11040
11041 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11042
110432002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11044
11045 * editfns.c (overlays_around, get_pos_property): New funs.
11046 (find_field): Use them.
11047 Also be careful not to modify POS before its last use.
11048 (Fmessage): Don't Fformat if there's nothing to format.
11049
110502002-10-30 Dave Love <fx@gnu.org>
11051
11052 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11053 [HAVE_PTY_H]; Include pty.h.
11054
11055 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11056
11057 * xterm.c (Qeql): Declare.
11058 (Vx_keysym_table): New.
11059 (syms_of_xterm): Initialize it.
11060 (XTread_socket): Use it. Deal with ASCII keysyms.
11061 (XSetIMValues) [HAVE_X11R6]: Prototype.
11062
11063 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11064 (lispy_kana_keys): Comment out.
11065 (make_lispy_event) [XK_kana_A]: Comment out.
11066 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11067 Fix sprintf call.
11068
11069 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11070 regexp.h change).
11071 (TERMINFO, LIBS_TERMCAP): Define.
11072
11073 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11074 (bcmp): Define conditional on HAVE_BCMP.
11075 (NO_SIOCTL_H): Don't define.
11076 (TIOCSIGSEND): Don't make conditional on IRIX6.
11077
11078 * s/sol2-5.h: Don't include strings.h.
11079 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11080
11081 * s/irix6-0.h (IRIX6): Don't define.
11082 (bcopy, bcmp, bzero): Don't undef.
11083
11084 * s/irix6-5.h: Don't include strings.h.
11085 (IRIX6): Don't define.
11086 (bcopy, bcmp, bzero): Don't undef.
11087
11088 * syntax.c (Fforward_comment): Doc fix.
11089
110902002-10-29 Kim F. Storm <storm@cua.dk>
11091
11092 * process.c (Fsignal_process): Allow PROCESS to be specified by
11093 name in addition to pid (as integer or string).
11094
110952002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11096
11097 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11098 environments.
11099
111002002-10-27 Kim F. Storm <storm@cua.dk>
11101
11102 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11103
11104 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11105
11106 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11107
11108 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11109
111102002-10-26 Richard M. Stallman <rms@gnu.org>
11111
11112 * editfns.c (Fformat): Detect invalid format letters for floats.
11113
111142002-10-25 Kenichi Handa <handa@m17n.org>
11115
11116 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11117 (x_set_title): Likewise.
11118
111192002-10-25 Juanma Barranquero <lektu@terra.es>
11120
11121 * macgui.h:
11122 * w32gui.h: Remove definition of XColor.
11123
11124 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11125
111262002-10-24 Kim F. Storm <storm@cua.dk>
11127
11128 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11129 Callers changed (supply dummy arg).
11130
11131 * lisp.h (get_window_cursor_type): Update prototype.
11132
11133 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11134 get_window_cursor_type to track system caret.
11135
111362002-10-24 Kim F. Storm <storm@cua.dk>
11137
11138 * process.c (Fformat_network_address): New function.
11139 (syms_of_process): Defsubr it.
11140 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11141 service/host is not set; before Emacs would crash in that case.
048addec
JD
11142 (Fmake_network_process): Don't use Ffind_operation_coding_system
11143 to setup coding system if host or service is not set.
11144
111452002-10-23 Juanma Barranquero <lektu@terra.es>
11146
11147 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11148
11149 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11150 COLORREF.
11151
11152 * macgui.h:
11153 * w32gui.h: Add definition of XColor.
11154
11155 * macfns.c:
11156 * w32fns.c:
11157 * xfaces.c: Remove definition of XColor.
11158
111592002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11160
11161 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11162
11163 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11164 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11165 window if it is dedicated.
11166 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11167 (Vspecial_display_function): Update docstring.
11168
11169 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11170 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11171 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11172
111732002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11174
11175 * casefiddle.c (casify_region): Don't treat a prefix char as part
11176 of a word when at the beginning.
11177
111782002-10-17 Juanma Barranquero <lektu@terra.es>
11179
11180 * lread.c (syms_of_lread): Fix typos.
11181
111822002-10-17 Dave Love <fx@gnu.org>
11183
11184 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11185
111862002-10-16 Richard M. Stallman <rms@gnu.org>
11187
11188 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11189
111902002-10-14 Juanma Barranquero <lektu@terra.es>
11191
11192 * w16select.c (syms_of_win16select): Fix docstring for
11193 `selection-coding-system'.
11194
11195 * w32select.c (syms_of_w32select): Likewise.
11196
111972002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11198
11199 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11200 a backslash-quoted char.
11201 (scan_lists, scan_sexps_forward): Pacify the compiler.
11202
112032002-10-13 Richard M. Stallman <rms@gnu.org>
11204
11205 * window.c (window_scroll): Set immediate_quit.
11206
11207 * print.c (print): When backquote form is the car of a list,
11208 output in old style. Use old_backquote_output to output all
11209 comma forms inside it in old style too.
11210
11211 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11212
112132002-10-11 Markus Rost <rost@math.ohio-state.edu>
11214
11215 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11216 batch mode).
11217
11218 * lread.c (Fload): Doc fix (load-suffixes).
11219
112202002-10-10 Steven Tamm <steventamm@mac.com>
11221
11222 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11223 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11224 Also switch the default to Qnil from Qt.
11225
112262002-10-08 Kenichi Handa <handa@m17n.org>
11227
11228 * coding.c (code_convert_region): When we need more GAP for
11229 conversion, pay attention to the case that coding->produced is not
11230 greater than coding->consumed.
11231
112322002-10-07 Richard M. Stallman <rms@gnu.org>
11233
11234 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11235
112362002-10-06 Andrew Choi <akochoi@shaw.ca>
11237
11238 * macmenu.c (mac_menu_show): Add j to count menu items; match
11239 menu_item_selection to it to find selected item.
11240
112412002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11242
11243 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11244 cases. The correct fix is to pass ReparentNotify to Xt.
11245 The shell widget interprets ConfigureNotify differently depending
11246 on if it has been reparented or not.
11247
112482002-10-05 Markus Rost <rost@math.ohio-state.edu>
11249
11250 * editfns.c (Fformat_time_string): Doc fix.
11251
112522002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11253
11254 * fns.c (Flength): Doc fix.
11255
112562002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11257
11258 * keyboard.c (keyremap): New struct.
11259 (read_key_sequence): Use it: globally replace keytran_foo with
11260 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11261 keytran_next and fkey_next to just `next'.
11262
112632002-10-04 Steven Tamm <steventamm@mac.com>
11264
11265 * macterm.c (keycode_to_xkeysym_table): Change return to be
11266 treated like an X keysym.
11267
112682002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11269
11270 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11271 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11272 This is to also handle x/y changes that occur because of a resize.
11273
112742002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11275
11276 * frame.c (Vdelete_frame_functions): New variable.
11277 (syms_of_frame): Initialize and defvar it.
11278 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11279 it when frame's `tooltip' parameter is non-nil.
11280
11281 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11282
11283 * w32fns.c (x_create_tip_frame): Likewise.
11284
11285 * macfns.c (x_create_tip_frame): Likewise.
11286
112872002-09-30 Kenichi Handa <handa@m17n.org>
11288
11289 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11290 -1 before calling ccl_driver.
11291
11292 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11293 Only when it is non-nil, handle composition sequence.
11294 (setup_coding_system) <0>: Don't force composition handling.
11295
11296 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11297
112982002-09-29 Richard M. Stallman <rms@gnu.org>
11299
11300 * search.c (Freplace_match): Adjust match data for the substitution
11301 just made in the buffer.
11302
11303 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11304 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11305
113062002-09-27 Richard M. Stallman <rms@gnu.org>
11307
11308 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11309 (read_char): Use them. Do all exits thru the end of the function.
11310
113112002-09-27 Kenichi Handa <handa@etl.go.jp>
11312
11313 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11314 is nil.
11315
113162002-09-26 Richard M. Stallman <rms@gnu.org>
11317
11318 * regex.h (__restrict_arr): Don't define if already defined.
11319
11320 * coding.c (run_pre_post_conversion_on_str):
11321 Save and restore Vdeactivate_mark.
11322
113232002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11324
11325 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11326
113272002-09-26 Kenichi Handa <handa@etl.go.jp>
11328
11329 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11330 nonzero, try face's family at first. Otherwise try FAMILY at first.
11331 (choose_face_font): If C is a single byte char or latin-1, call
11332 try_font_list with PREFER_FACE_FAMILY 1.
11333
113342002-09-21 Richard M. Stallman <rms@gnu.org>
11335
11336 * window.c (select_window_1): Don't select frame.
11337 Set frame's selected window only when frame itself is selected.
11338 (Fselect_window): Doc fix.
11339
113402002-09-18 Kim F. Storm <storm@cua.dk>
11341
11342 * process.c (make-network-process): Doc fix (there is no
11343 network-server-log-function hook).
11344
113452002-09-18 Richard M. Stallman <rms@gnu.org>
11346
11347 * print.c (print): Clear out the unused parts of Vprint_number_table.
11348 (syms_of_print): Doc fix for `print-number-table'.
11349
11350 * unexelf.c (unexec): Undo previous change.
11351
113522002-09-17 Andreas Schwab <schwab@suse.de>
11353
11354 * m/alpha.h [LINUX]: Don't define DATA_START.
11355
113562002-09-16 Dave Love <fx@gnu.org>
11357
11358 * unexelf.c (unexec): Deal with .got, reinstating change from
11359 25-08-1999.
11360
113612002-09-13 Richard M. Stallman <rms@gnu.org>
11362
11363 * s/sol2-6.h (UNEXEC): Comment out definition.
11364
11365 * unexsol.c (unexec): Don't downcase first letter of error msg.
11366
11367 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11368
113692002-09-12 Markus Rost <rost@math.ohio-state.edu>
11370
11371 * unexsol.c: Include buffer.h, charset.h, coding.h.
11372
113732002-09-11 Richard M. Stallman <rms@gnu.org>
11374
11375 * unexsol.c: Don't use report_file_error; do it by hand
11376 using dlerror.
11377
11378 * process.c (wait_reading_process_input, both versions):
11379 Before calling turn_on_atimers, call stop_polling.
11380
11381 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11382
11383 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11384 we go to too_near_end, call clear_glyph_matrix.
11385 (redisplay_window): After make_cursor_line_fully_visible,
11386 call clear_glyph_matrix and bypass `goto done'.
11387
11388 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11389 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11390
113912002-09-10 Richard M. Stallman <rms@gnu.org>
11392
11393 * fileio.c (Fdo_auto_save): Catch error making directory.
11394 Only call push_message if we need to.
11395 At the same time, make an unwind-protect to pop it.
11396 Rename local message_p to old_message_p.
11397 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11398 (do_auto_save_unwind): Don't call pop_message.
11399
11400 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11401
11402 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11403
11404 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11405
11406 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11407
114082002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11409
11410 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11411 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11412 (re_match_2_internal): Be more careful with infinite loops.
11413
114142002-09-10 Kim F. Storm <storm@cua.dk>
11415
11416 * macros.c (end_kbd_macro): New function.
11417 (Fend_kbd_macro): Use it.
11418
11419 * macros.h (end_kbd_macro): Declare extern.
11420
11421 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11422 end and save it instead of discarding it.
11423
114242002-09-09 Markus Rost <rost@math.ohio-state.edu>
11425
11426 * s/sol2-6.h: Fix typo. Add comment.
11427
114282002-09-09 Richard M. Stallman <rms@gnu.org>
11429
11430 * regex.c (regnum_t): Use signed int, not unsigned int.
11431
11432 * s/sol2-6.h: New file.
11433
11434 * s/sol2-5.h (UNEXEC): Definition deleted.
11435
114362002-09-08 Kim F. Storm <storm@cua.dk>
11437
11438 * macros.c (executing_macro_index): Change type to EMACS_INT.
11439 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11440
11441 * macros.h (executing_macro_index): Change type to EMACS_INT.
11442
114432002-09-06 Richard M. Stallman <rms@gnu.org>
11444
11445 * casetab.c (set_case_table): Make canon table point to eqv table.
11446
114472002-09-06 Juanma Barranquero <lektu@terra.es>
11448
11449 * coding.c (syms_of_coding): Fix spacing.
11450
11451 * composite.c (Fcompose_region_internal)
11452 (Fcompose_string_internal): Likewise.
11453
11454 * data.c (Flsh): Likewise.
11455
11456 * fontset.c (Fset_fontset_font): Likewise.
11457
11458 * macfns.c (Fx_server_max_request_size): Likewise.
11459
11460 * w16select.c (syms_of_win16select): Likewise.
11461
11462 * w32select.c (syms_of_w32select): Likewise.
11463
11464 * xselect.c (syms_of_xselect): Likewise.
11465
114662002-09-05 Richard M. Stallman <rms@gnu.org>
11467
11468 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11469 call EXTEND_RANGE_TABLE and return a proper value.
11470 (set_image_of_range): Don't call set_image_of_range_1
11471 if no TRANSLATE or if range includes all of Latin-1.
11472 Only call it for the Latin-1 part of the range.
11473 For other cases, make two separate ranges,
11474 one for the original specified characters and one for
11475 their case-conversions.
11476
114772002-09-04 Richard M. Stallman <rms@gnu.org>
11478
11479 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11480
11481 * window.c (displayed_window_lines): Correct for one-off bug
11482 in HEIGHT on non-window displays.
11483
11484 * regex.c (set_image_of_range_1): New function.
11485 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11486 Return a value to indicate running out of memory.
11487 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11488 (extend_range_table_work_area): New subroutine.
11489 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11490 Different calling conventions, and used from set_image_of_range{,_1}.
11491 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11492
114932002-09-04 Juanma Barranquero <lektu@terra.es>
11494
11495 * makefile.w32-in: All dependencies updated.
11496
114972002-09-01 Richard M. Stallman <rms@gnu.org>
11498
11499 * unexsol.c: New file.
11500
11501 * xfns.c (Qbox): Declare external, don't define.
11502
11503 * xdisp.c (redisplay_window) <force-start case>:
11504 If point is on semi-visible last line, reposition
11505 it at previous line.
11506
11507 * alloc.c (display_malloc_warning): Use display-warning.
11508 (malloc_warning_1): Function deleted.
11509
11510 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11511
11512 * lread.c (read1): Handle #! by skipping the line.
11513
115142002-08-31 Richard M. Stallman <rms@gnu.org>
11515
11516 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11517 Don't include LDFLAGS.
11518 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11519
115202002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11521
11522 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11523 member of x_display_info unless we compile for some window system.
11524
115252002-08-31 Kim F. Storm <storm@cua.dk>
11526
11527 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11528 (get_window_cursor_type): Don't use them.
11529 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11530
115312002-08-30 Kenichi Handa <handa@etl.go.jp>
11532
11533 * xdisp.c (get_next_display_element): Fix previous change.
11534
115352002-08-30 Andrew Choi <akochoi@shaw.ca>
11536
11537 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11538 (expose_window): Use it to fix the display of overlapping
11539 rows (merge code from xterm.c).
11540
11541 * macfns.c (Qbox): Add extern declaration.
11542
115432002-08-30 Juanma Barranquero <lektu@terra.es>
11544
11545 * w32fns.c (Qbox): Make extern.
11546 (syms_of_w32fns): Remove initialization of Qbox.
11547
115482002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11549
11550 * xfns.c (Fx_open_connection): Fix error message.
11551
115522002-08-30 Kim F. Storm <storm@cua.dk>
11553
11554 The following changes consolidates the handling of the cursor
11555 type in xdisp.c, moving duplicate code and functionality from
11556 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11557
11558 * frame.h (enum text_cursor_kinds): Consolidated here.
11559 Added DEFAULT_CURSOR value.
11560 (struct frame) <desired_cursor, cursor_width>
11561 <blink_off_cursor, blink_off_cursor_width>: New fields.
11562 Consolidated from output_x, output_w32 and output_mac structs.
11563 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11564 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11565
11566 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11567 Variables consolidated here.
11568 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11569 (Vcursor_in_non_selected_windows): Renamed from
11570 cursor_in_non_selected_windows and changed to Lisp_Object.
11571 (syms_of_xdisp): Define and staticpro new and moved variables.
11572 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11573 consolidated here. Recognize Qhollow setting.
11574 (set_frame_cursor_types): New function to set frame cursor types
11575 based on the frame parameters.
11576 (get_window_cursor_type): New function to calculate new cursor
11577 type and width for the specified window. Based on duplicated
11578 code consolidated here.
11579 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11580 check buffer-local alternate-cursor-type and blink-cursor-alist
11581 before using built-in blink off methods.
11582
11583 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11584
11585 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11586 (get_specified_cursor_type, get_window_cursor_type)
11587 (set_frame_cursor_types): Added prototypes.
11588
11589 * macfns.c (x_specified_cursor_type): Removed.
11590 (x_set_cursor_type): Use set_frame_cursor_types.
11591 (Qbar, Qbox): Removed.
11592 (syms_of_macfns): Don't intern or staticpro them.
11593
11594 * macterm.c (x_specified_cursor_type): Remove prototype.
11595 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11596 (x_display_and_set_cursor): Use get_window_cursor_type.
11597 Remove unused local variables cursor_non_selected, active_cursor.
11598 Redraw cursor if hbar cursor width changes.
11599 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11600
11601 * macterm.h (enum text_cursor_kinds): Removed.
11602 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11603 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11604 (FRAME_DESIRED_CURSOR): Macro removed.
11605
11606 * w32fns.c (Vblink_cursor_alist): Removed.
11607 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11608 (syms_of_w32fns): Don't intern, staticpro, or define them.
11609 (x_specified_cursor_type): Removed.
11610 (x_set_cursor_type): Use set_frame_cursor_types.
11611
11612 * w32term.c (x_specified_cursor_type): Remove prototype.
11613 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11614 (x_display_and_set_cursor): Use get_window_cursor_type.
11615 Remove unused local variables cursor_off_state.
11616 Redraw cursor if hbar cursor width changes.
11617 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11618
11619 * w32term.h (enum text_cursor_kinds): Removed.
11620 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11621 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11622 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11623 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11624 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11625 w32_highlight_frame.
11626
11627 * xfns.c (Vblink_cursor_alist): Removed.
11628 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11629 (syms_of_xfns): Don't intern, staticpro, or define them.
11630 (x_specified_cursor_type): Removed.
11631 (x_set_cursor_type): Use set_frame_cursor_types.
11632
11633 * xterm.c (x_specified_cursor_type): Remove prototype.
11634 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11635 (x_display_and_set_cursor): Use get_window_cursor_type.
11636 Remove unused local variables cursor_off_state.
11637 Redraw cursor if hbar cursor width changes.
11638
11639 * xterm.h (enum text_cursor_kinds): Removed.
11640 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11641 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11642 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11643 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11644 (x_specified_cursor_type): Remove prototype.
11645
116462002-08-28 Richard M. Stallman <rms@gnu.org>
11647
11648 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11649 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11650 (Vblink_cursor_alist): New variable.
11651 (syms_of_w32fns): Initialize and defvar it.
11652 (x_specified_cursor_type): Recognize Qbox for filled box.
11653 Exceptions are hollow boxes.
11654 (Qbox, Qhollow): New variables.
11655 (syms_of_w32fns): Initialize and staticpro them.
11656
11657 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11658 New macros.
11659 (struct w32_output): New fields blink_off_cursor,
11660 blink_off_cursor_width.
11661 (FRAME_CURSOR_WIDTH): New macro.
11662
11663 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11664 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11665
11666 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11667 for bar cursor.
11668
11669 * w32term.c (expose_overlaps): New function.
11670 (expose_window): Use it to fix the display of overlapping rows.
11671
116722002-08-28 Simon Josefsson <jas@extundo.com>
11673
11674 * xfns.c (Fx_open_connection): Improve help when X connection
11675 fails, xhost is insecure and xauth is better.
11676
116772002-08-28 Juanma Barranquero <lektu@terra.es>
11678
11679 * makefile.w32-in: Add missing dependencies on w32term.h and
11680 composite.h.
11681
11682 * emacs.c (USAGE1): Add missing newline.
11683
116842002-08-27 Andrew Choi <akochoi@shaw.ca>
11685
11686 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11687
116882002-08-27 Richard M. Stallman <rms@gnu.org>
11689
11690 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11691 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11692 (Vblink_cursor_alist): New variable.
11693 (syms_of_xfns): Initialize and defvar it.
11694 (x_specified_cursor_type): Recognize Qbox for filled box.
11695 Exceptions are hollow boxes.
11696 (Qbox, Qhollow): New variables.
11697 (syms_of_xfns): Initialize and staticpro them.
11698
11699 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11700 New macros.
11701 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11702
11703 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11704 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11705
11706 * emacs.c (main): Handle --script.
11707 (USAGE1): Mention --script.
11708 (standard_args): Define sort order for --script.
11709
117102002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11711
11712 * xdisp.c (redisplay_updating_p): Variable removed.
11713 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11714 New variables.
11715 (init_iterator): Don't free realized faces if
11716 inhibit_free_realized_faces is set.
11717 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11718 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11719 initialize Qinhibit_free_realized_faces.
11720
11721 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11722 when iterator is adding glyphs to a glyph matrix.
11723
117242002-08-27 Kenichi Handa <handa@etl.go.jp>
11725
11726 * xdisp.c (get_next_display_element): In unibyte case, don't use
11727 octal form for such eight-bit characters that can be converted to
11728 multibyte char.
11729
117302002-08-26 Kim F. Storm <storm@cua.dk>
11731
b6189c3b
KS
11732 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11733 foreground and background colors. From Joe Buehler.
048addec
JD
11734
117352002-08-26 Miles Bader <miles@gnu.org>
11736
11737 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11738
117392002-08-25 Andrew Choi <akochoi@shaw.ca>
11740
11741 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11742 defined instead of MAC_OSX.
11743
11744 * s/darwin.h (select): Define select to sys_select only if
11745 HAVE_CARBON is defined.
11746 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11747 (DONT_REOPEN_PTY): #def it.
11748
11749 * macterm.c (XTread_socket): Remove code to call
11750 SendEventToEventTarget for keys with command modifiers when
11751 mac_command_key_is_meta is nil.
11752
117532002-08-24 Andreas Schwab <schwab@suse.de>
11754
11755 * eval.c (Fdefvar): Fix last change.
11756
117572002-08-23 Richard M. Stallman <rms@gnu.org>
11758
11759 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11760 Record variables in load history as (defvar . VAR).
11761 (Fdefvar): Don't record in load history if no initial value.
11762 (Qdefvar): New variable.
11763 (syms_of_eval): Init and staticpro it.
11764
11765 * lread.c (syms_of_lread): Doc fix.
11766 (build_load_history): Use Fmember to see if a definition
11767 is already in the Vload_history element.
11768
11769 * process.c (Fstart_process): Remove /: from program name.
11770
11771 * emacs.c (decode_env_path): Don't add /: if file name handler
11772 has a `safe-magic' property.
11773
11774 * callproc.c (Fcall_process): Remove /: from program name.
11775
117762002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11777
11778 * regex.c (PATFETCH): Remove the translating fetch.
11779 (PATFETCH_RAW): Rename to PATFETCH.
11780 (set_image_of_range): New fun.
11781 (SET_RANGE_TABLE_WORK_AREA): Use it.
11782 (regex_compile): Don't translate the pattern chars so eagerly.
11783 Only do it when inserting an `exactn' bytecode or when handling
11784 a char-range.
11785 (mutually_exclusive_p): Avoid empty statement.
11786
117872002-08-22 Kim F. Storm <storm@cua.dk>
11788
11789 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11790 end up on a partially visible line; this reverts a specific part
11791 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11792 display error which has been reported several times now.
11793 However it introduces the problem that changes was supposed to fix.
11794 See my comments in the source if you want to debug this further.
11795
117962002-08-20 Kenichi Handa <handa@etl.go.jp>
11797
11798 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11799
118002002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11801
11802 * msdos.c (croak): Add `void' to definition.
11803
c1380aa6 11804 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11805 Don't define them, they are defined in msdos.c.
11806
11807 * mem-limits.h [MSDOS]: Declare etext.
11808
11809 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11810 `const' since CORRECT_DIR_SEPS modifies its target.
11811
118122002-08-19 Kim F. Storm <storm@cua.dk>
11813
2fb0ce67 11814 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11815 KEEP-RECORD to avoid clearing lossage when we just want to clear
11816 the current key sequence (kmacro needs this).
11817
118182002-08-19 Kenichi Handa <handa@localhost>
11819
11820 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11821
11822 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11823 cons, return Qnil.
11824
118252002-08-17 Richard M. Stallman <rms@gnu.org>
11826
11827 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11828
11829 * sysdep.c [!VMS]: Include sys/files.h.
11830
11831 * editfns.c (save_restriction_restore): Defend from unchained marker.
11832
11833 * buffer.c (overlays_at): Handle extending vec uniformly.
11834 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11835
118362002-08-15 Andrew Choi <akochoi@shaw.ca>
11837
11838 * mac.c (init_mac_osx_environment): New function.
11839
11840 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11841
118422002-08-14 Kim F. Storm <storm@cua.dk>
11843
11844 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11845 executing macro before appending to it (when used from Lisp).
11846 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11847 which is called prior to each iteration of macro (for kmacro.el).
11848 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11849
11850 * lisp.h (Fexecute_kbd_macro): Update prototype.
11851
11852 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11853
118542002-08-14 Kenichi Handa <handa@etl.go.jp>
11855
11856 * xselect.c (QUTF8_STRING): New variable.
11857 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11858 (x_atom_to_symbol): Likewise.
11859 (x_get_local_selection): New argument local_request. If it is
11860 nonzero, call handler_fn with the second arg nil.
11861 (x_handle_selection_request): Call x_get_local_selection with
11862 local_request 0.
11863 (lisp_data_to_selection_data): Don't encode the string here.
11864 (Fx_get_selection_internal): Call x_get_local_selection with
11865 local_request 1.
11866 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11867
11868 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11869
11870 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11871
118722002-08-13 Richard M. Stallman <rms@gnu.org>
11873
11874 * minibuf.c (Fminibufferp): New function.
11875 (syms_of_minibuf): Defsubr it.
11876 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11877
118782002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11879
11880 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11881
118822002-08-12 Richard M. Stallman <rms@gnu.org>
11883
11884 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11885 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11886 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11887 already.
11888
11889 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11890
118912002-08-11 Andrew Choi <akochoi@shaw.ca>
11892
11893 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11894 (Vmac_pass_command_to_system): New variable.
11895 (Vmac_pass_control_to_system): New variable.
11896 (do_mouse_moved): Check wp with is_emacs_window.
11897 (XTread_socket): Check window_ptr with is_emacs_window.
11898 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11899 events back to Mac Toolbox for processing, depending on values of
11900 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11901 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11902 Vmac_pass_control_to_system.
11903
119042002-08-10 Kenichi Handa <handa@etl.go.jp>
11905
11906 * coding.c (unencodable_char_position): New function.
11907 (Funencodable_char_position): New function.
11908 (syms_of_coding): Defsubr Funencodable_char_position.
11909
119102002-08-10 Andrew Choi <akochoi@shaw.ca>
11911
11912 * mac.c (sys_select) [MAC_OSX]: New function.
11913
11914 * macterm.c (MakeMeTheFrontProcess): New function.
11915 (mac_initialize): Call MakeMeTheFrontProcess.
11916
11917 * s/darwin.h: Define select to sys_select.
11918
119192002-08-09 Richard M. Stallman <rms@gnu.org>
11920
11921 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11922
119232002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11924
11925 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11926 end of the buffer.
11927
119282002-08-08 Ken Raeburn <raeburn@mit.edu>
11929
11930 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11931
11932 * puresize.h (BASE_PURESIZE): Increase to 910000.
11933
119342002-08-08 Kenichi Handa <handa@etl.go.jp>
11935
11936 * coding.c (Ffind_operation_coding_system): For write-region, if
11937 VISIT is a filename, make it the target.
11938
119392002-08-07 Richard M. Stallman <rms@gnu.org>
11940
11941 * alloc.c (mark_object): Detect long lists for debugging.
11942 (mark_object_loop_halt): New variable.
11943
11944 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11945
11946 * data.c (Fmake_variable_frame_local): Doc fix.
11947
119482002-08-01 David Ponce <david@dponce.com>
11949
11950 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11951 (malloc_widget_value, free_widget_value)
11952 (w32_free_submenu_strings): Use them.
11953
11954 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11955 (push_menu_pane, push_menu_item, single_keymap_panes)
11956 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11957 (single_submenu, set_frame_menubar)
11958 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11959
11960 (Fx_popup_menu): Don't show pop up menu until preceding one is
11961 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11962
11963 * w32menu.c: Changes adapted from xmenu.c
11964 (set_frame_menubar): First parse all submenus,
11965 then make widget_value trees from them.
11966 Don't allocate any widget_value objects
11967 until we are done with the parsing.
11968 (parse_single_submenu): New function.
11969 (digest_single_submenu): New function.
11970 (single_submenu): Function deleted, replaced by those two.
11971
119722002-08-04 Andrew Choi <akochoi@shaw.ca>
11973
11974 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11975 returns a valid window pointer before proceeding for keyDown and
11976 autoKey events.
11977
119782002-08-03 Andrew Choi <akochoi@shaw.ca>
11979
11980 * macterm.c (USE_CARBON_EVENTS): New macro.
11981 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11982 (x_iconify_frame): Call CollapseWindow.
11983 (Vmac_reverse_ctrl_meta): New variable.
11984 (Vmac_wheel_button_is_mouse_2): New variable.
11985 (init_mac_drag_n_drop): New function.
11986 (mac_do_receive_drag): New function.
11987 (mac_handle_service_event): New function.
11988 (init_service_handler): New function.
11989 (mac_to_emacs_modifiers): New function.
11990 (mac_event_to_emacs_modifiers): New function.
11991 (mac_get_mouse_btn): New function.
11992 (mac_convert_event_ref): New function.
11993 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11994 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11995 mac_get_mouse_btn.
11996 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11997
11998 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11999 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12000 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12001 TOOL_BAR_EVENT for MAC_OS as well.
12002 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12003 as for WINDOWS_NT.
12004 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12005
12006 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12007
120082002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12009
12010 * xdisp.c (forward_to_next_line_start): Fix a condition that
12011 lead to a newline being skipped.
12012
120132002-08-02 Andrew Choi <akochoi@shaw.ca>
12014
12015 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12016
120172002-08-01 Richard M. Stallman <rms@gnu.org>
12018
12019 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12020
120212002-07-31 Andrew Choi <akochoi@shaw.ca>
12022
12023 * macfns.c: #undef init_process before #define-ing it.
12024
12025 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12026 HAVE_CARBON is defined.
12027
120282002-07-31 Richard M. Stallman <rms@gnu.org>
12029
12030 * xmenu.c (set_frame_menubar): First parse all submenus,
12031 then make widget_value trees from them.
12032 Don't allocate any widget_value objects
12033 until we are done with the parsing.
12034 (parse_single_submenu): New function.
12035 (digest_single_submenu): New function.
12036 (single_submenu): Function deleted, replaced by those two.
12037
120382002-07-30 Juanma Barranquero <lektu@terra.es>
12039
12040 * w32proc.c (syms_of_ntproc): Fix docstring of
12041 `w32-get-true-file-attributes'.
12042
120432002-07-28 Richard M. Stallman <rms@gnu.org>
12044
12045 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12046 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12047
12048 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12049
12050 * keyboard.c (make_lispy_event):
12051 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12052 Explicitly clear up_modifier in event->modifiers.
12053
120542002-07-27 Richard M. Stallman <rms@gnu.org>
12055
12056 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12057
12058 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12059 for bar cursor.
12060
120612002-07-26 Kenichi Handa <handa@etl.go.jp>
12062
12063 * coding.c (detect_coding_iso2022): While checking a byte sequence
12064 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12065 it in the normal loop.
12066
120672002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12068
12069 * xterm.c (expose_overlaps): New function.
12070 (expose_window): Use it to fix the display of overlapping rows.
12071
12072 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12073
120742002-07-23 Ken Raeburn <raeburn@gnu.org>
12075
12076 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12077 since it only depends on XUINT.
12078
12079 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12080 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12081 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12082 Macros deleted.
3947677c 12083
77d1daf2
AS
12084 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12085 its value over other approaches.
12086 * sysdep.c (start_of_data): Don't define the function if a macro
12087 form has been defined.
8a8e19a3 12088
048addec
JD
120892002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12090
12091 * xdisp.c (redisplay_updating_p): New variable.
12092 (init_iterator): Don't free realized faces when
12093 redisplay_updating_p is set.
12094 (redisplay_internal): Set redisplay_updating_p while updating
12095 the display.
12096
120972002-07-23 Richard M. Stallman <rms@gnu.org>
12098
12099 * editfns.c (Fmessage): Treat "" like nil.
12100
121012002-07-23 Kenichi Handa <handa@etl.go.jp>
12102
12103 * xdisp.c (face_before_or_after_it_pos):
12104 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12105
121062002-07-22 Juanma Barranquero <lektu@terra.es>
12107
12108 * callproc.c (init_callproc) [DOS_NT]:
12109 Initialize Vshared_game_score_directory to nil.
12110 (syms_of_callproc) [DOS_NT]: Likewise.
12111
121122002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12113
12114 * xdisp.c (display_line): Replace an abort with xassert.
12115
121162002-07-21 Richard M. Stallman <rms@gnu.org>
12117
12118 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12119 and END_UNCHANGED when setting buffer_unchanged_p.
12120 Use current_matrix_up_to_date_p to decide whether to use
12121 try_cursor_movement.
12122
12123 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12124
12125 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12126
12127 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12128 Set to nil if dir does not exist.
12129 (syms_of_callproc): Init unconditionally and simply.
12130
12131 * buffer.c (Fbuffer_list): Doc fix.
12132
121332002-07-21 Ken Raeburn <raeburn@gnu.org>
12134
12135 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12136
12137 * buffer.c (mmap_realloc): When shrinking, make sure number of
12138 pages to unmap is rounded towards zero.
12139
12140 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12141 (XSETINT): Deleted.
12142
12143 * m/att3b.h (XINT): Don't define.
12144 (VALBITS, VALMASK, XTYPE): Deleted.
12145 (DATA_SEG_BITS): Define.
12146 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12147 ARRAY_MARK_FLAG): Deleted.
12148 (DATA_SEG_BITS): Define.
12149 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12150 (DATA_SEG_BITS): Define.
12151
121522002-07-20 Richard M. Stallman <rms@gnu.org>
12153
12154 * print.c (print_error_message): New args CONTEXT and CALLER.
12155 Calls changed.
12156
12157 * lisp.h (print_error_message): Declare new args.
12158
12159 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12160 and CONTEXT to print_error_message, don't print them here.
12161 For a Quit, don't use Vsignaling_function.
12162 Call message_log_maybe_newline.
12163
12164 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12165
121662002-07-20 Kim F. Storm <storm@cua.dk>
12167
12168 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12169
121702002-07-19 Ken Raeburn <raeburn@gnu.org>
12171
12172 * bytecode.c (struct byte_stack): Pointers into byte string now
12173 point to const.
12174 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12175 const.
12176 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12177 * coding.c (encode_eol, detect_coding, detect_eol):
12178 (decode_coding, encode_coding, detect_coding_system):
12179 Source strings now treated as const.
12180 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12181 modify Lisp string contents.
12182 * coding.h (decode_coding, encode_coding, detect_coding,
12183 detect_eol): Declarations updated.
12184 * composite.c (compose_chars_in_text): Treat Lisp string contents
12185 as const.
12186 * dispnew.c (safe_bcopy): Source pointer now points to const.
12187 * lisp.h (STRING_COPYIN): New macro.
12188 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12189 (internal_with_output_to_temp_buffer): Declarations updated.
12190 * print.c (temp_output_buffer_setup):
12191 (internal_with_output_to_temp_buffer): Buffer name argument is now
12192 pointer to const.
12193 * sound.c (struct sound_device): Function pointer field "write"
12194 buffer argument now points to const.
12195 (vox_write): Buffer argument points to const.
12196 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12197 contents as const.
12198 * sysdep.c (emacs_write): Buffer pointer now const.
12199 * term.c (encode_terminal_code): Buffer pointer now const.
12200 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12201 (x_face_list_fonts, x_update_menu_appearance):
12202 (hash_string_case_insensitive): Treat Lisp string contents as const.
12203
122042002-07-19 Juanma Barranquero <lektu@terra.es>
12205
048addec
JD
12206 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12207
12208 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12209 (Ffile_name_as_directory): Fix argument name in docstring.
12210 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12211
122122002-07-18 Richard M. Stallman <rms@gnu.org>
12213
12214 * data.c (Fdefalias): Doc fix.
12215
122162002-07-17 Dave Love <fx@gnu.org>
12217
12218 * intervals.h (text_property_stickiness): Use P_.
12219
12220 * ccl.c: Remove `emacs' conditionals.
12221 (ccl_backtrace_table): Fix size spec.
12222 (ccl_driver): Fix type errors.
12223
122242002-07-16 Ken Raeburn <raeburn@gnu.org>
12225
12226 * alloc.c (xstrdup, make_string, make_unibyte_string)
12227 (make_multibyte_string, build_string): String pointer args now
12228 point to const.
12229 * charset.c (find_charset_in_text, c_string_width):
12230 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12231 * fileio.c (report_file_error):
12232 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12233 (count_combining_before, count_combining_after, insert_1_both):
12234 (insert, insert_and_inherit, insert_string):
12235 (insert_before_markers, insert_before_markers_and_inherit):
12236 * lread.c (intern, oblookup, hash_string):
12237 * minibuf.c (temp_echo_area_glyphs):
12238 * search.c (fast_c_string_match_ignore_case):
12239 * sysdep.c (emacs_open, set_file_times):
12240 * xfaces.c (xstricmp):
12241 * xdisp.c (store_frame_title, string_char_and_length):
12242 (message_dolog, message2, message2_nolog, set_message): Likewise.
12243 (set_message_1): Cast message string argument to const pointer.
12244 * editfns.c (general_insert_function): Insertion function now
12245 takes pointer to const for input data.
12246 * charset.h (find_charset_in_text, c_string_width):
12247 (parse_str_as_multibyte): Declarations updated.
12248 * dispextern.h (xstricmp): Declaration updated.
12249 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12250 (count_size_as_multibyte, count_combining_before):
12251 (count_combining_after, insert_1, insert_1_both, message_dolog):
12252 (insert, insert_and_inherit, insert_before_markers)
12253 (insert_before_markers_and_inherit, set_message, message2):
12254 (message2_dolog, build_string, make_string, make_unibyte_string):
12255 (make_multibyte_string, intern, oblookup, report_file_error):
12256 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12257 (emacs_open, xstrdup): Declarations updated.
12258 * systime.h (set_file_times): Declaration updated.
12259
12260 * charset.c (find_charset_in_text, lisp_string_width): Use const
12261 for pointer to lisp string data.
12262 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12263 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12264 * coding.c (Ffind_coding_systems_region_interval):
12265 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12266 (Fmake_directory_internal, Fdelete_directory):
12267 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12268 * fontset.c (font_family_registry, fs_query_fontset):
12269 (list_fontsets):
12270 * frame.c (Fframe_parameter):
12271 * keyboard.c (cmd_error_internal):
12272 * keymap.c (Fdescribe_buffer_bindings):
12273 * lread.c (complete_filename_p, openp):
12274 * minibuf.c (Fminibuffer_complete_word):
12275 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12276 (face_before_or_after_it_pos, next_element_from_string):
12277 (get_overlay_arrow_glyph_row, display_mode_element):
12278 (decode_mode_spec_coding):
12279 * xterm.c (same_x_server): Likewise.
12280
12281 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12282 settings of non-existent fields.
12283
12284 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12285 copy a lisp value.
12286
12287 * lread.c (Fintern_soft): Use string macros instead of
12288 Lisp_String fields.
12289 * keyboard.c (echo_char, parse_modifiers_uncached):
12290 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12291 * textprop.c (validate_interval_range, interval_of): Likewise.
12292
12293 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12294
12295 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12296 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12297 XSTRING()->size_byte.
12298
12299 * lisp.h (SDATA, SREF): Produce rvalue.
12300 (SSET): New macro.
12301 * alloc.c (make_event_array): Use SSET for storing into a string.
12302 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12303 a string.
12304 * casefiddle.c (casify_object): Use SSET.
12305 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12306 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12307 address of string contents.
12308 * data.c (Faref): Use SDATA.
12309 (Faset): Use SDATA, SSET.
12310 * dired.c (directory_files_internal): Use SSET.
12311 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12312 (Fread_file_name): Use SREF, SSET.
12313 * fns.c (concat): Use SSET.
12314 (concat, Fdelete): Use SDATA.
12315 * insdel.c (insert_from_string_1): Use SDATA.
12316 * keyboard.c (Fevent_convert_list): Use SREF.
12317 * lread.c (Fload): Use SDATA, SSET.
12318 * macfns.c (validate_x_resource_name): Use SSET.
12319 * process.c (status_message): Use SSET.
12320 * search.c (wordify): Use SDATA.
12321 (Freplace_match): Use SREF.
12322 * w32fns.c (validate_x_resource_name): Use SSET.
12323 * xfns.c (validate_x_resource_name): Use SSET.
12324 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12325
123262002-07-16 Richard M. Stallman <rms@gnu.org>
12327
12328 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12329
12330 * xdisp.c (reconsider_clip_changes):
12331 Don't test prevent_redisplay_optimizations_p.
12332 (redisplay_internal): Test prevent_redisplay_optimizations_p
12333 along with clip_changed in some cases.
12334 (try_window_id): Likewise.
12335 (redisplay_window): New local var buffer_unchanged_p.
12336
12337 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12338
12339 * process.c (create_process): Test USG_SUBTTY_WORKS.
12340 (process_send_signal): Clean up handling of GID.
12341 Detect errors in ioctls meant to set GID.
12342
12343 * window.c (temp_output_buffer_show):
12344 Don't set prevent_redisplay_optimizations_p.
12345
123462002-07-15 Juanma Barranquero <lektu@terra.es>
12347
12348 * eval.c (Fdefvaralias): Add docstring argument.
12349
123502002-07-15 Ken Raeburn <raeburn@gnu.org>
12351
12352 * lisp.h (STRING_INTERVALS): Produce rvalue.
12353 (STRING_SET_INTERVALS): New macro.
12354 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12355 * fns.c (Fstring_as_multibyte): Likewise.
12356 * intervals.c (balance_possible_root_interval, delete_interval)
12357 (create_root_interval, copy_intervals_to_string): Likewise.
12358 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12359 instead of 0.
12360
123612002-07-14 Ken Raeburn <raeburn@gnu.org>
12362
12363 * lisp.h (STRING_SET_CHARS): New macro.
12364 (SCHARS, SBYTES): Produce rvalues.
12365 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12366 * fns.c (concat): Likewise.
12367 * lread.c (read_vector): Likewise.
12368
12369 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12370 (STRING_SET_UNIBYTE): New macro.
12371 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12372 length of -1) changed to use STRING_SET_UNIBYTE.
12373 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12374 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12375 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12376 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12377 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12378 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12379 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12380 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12381 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12382 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12383 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12384 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12385 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12386 unchanged for now.
12387
123882002-07-13 Kim F. Storm <storm@cua.dk>
12389
12390 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12391
123922002-07-12 Richard M. Stallman <rms@gnu.org>
12393
12394 * fileio.c (Fwrite_region): Doc fix.
12395
12396 * print.c (print_error_message): Don't handle Vsignaling_function here.
12397
12398 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12399 (command_loop_1): Avoid certain actions after memory-full error.
12400
12401 * eval.c (Fsignal): Don't call cancel_hourglass.
12402 For a memory-full error, don't call Vsignal_hook_function
12403 and don't set Vsignaling_function.
12404
12405 * process.c (process_send_signal): Add abort call.
12406
124072002-07-11 Markus Rost <rost@math.ohio-state.edu>
12408
12409 * keymap.c (Fkey_binding): Fix typo.
12410
124112002-07-11 Richard M. Stallman <rms@gnu.org>
12412
12413 * alloc.c (Vmemory_full): New variable.
12414 (Vmemory_signal_data): Renamed from memory_signal_data.
12415 Uses changed.
12416 (syms_of_alloc): Defvar them.
12417 (memory_full, buffer_memory_full): Set Vmemory_full.
12418
12419 * lisp.h (Vmemory_full): Add declaration.
12420 (current_column, indented_beyond_p): Change declaration.
12421
12422 * indent.c (last_known_column): Declare as double, not float.
12423 (current_column, current_column_1, string_display_width)
12424 (position_indentation): Return `double'.
12425 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12426
12427 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12428 (back_to_previous_visible_line_start)
12429 (reseat_at_next_visible_line_start, next_element_from_buffer):
12430 Use `double', not `float', when calling indented_beyond_p.
12431
12432 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12433
12434 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12435
124362002-07-11 Juanma Barranquero <lektu@terra.es>
12437
12438 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12439 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12440 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12441 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12442 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12443 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12444
124452002-07-10 Juanma Barranquero <lektu@terra.es>
12446
d814862a
JB
12447 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12448 All callers changed.
048addec
JD
12449
124502002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12451
12452 * data.c (Fdefalias): Add an optional `docstring' argument.
12453 (set_internal, Fsetq_default): Use XCAR/XCDR.
12454
12455 * composite.c (HASH_VALUE, HASH_KEY):
12456 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12457
124582002-07-09 Kenichi Handa <handa@etl.go.jp>
12459
12460 * callproc.c (Fcall_process): Fix previous change.
12461
124622002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12463
12464 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12465 Add support for hash-tables.
12466 (Ftry_completion): Return t even if the string appears multiple times.
12467
12468 * fns.c (Fnconc): Use XCDR.
12469 (Fprovide): Use CONSP and XCDR.
12470 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12471 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12472 (Fmake_hash_table): Accept `:size nil'.
12473 (Fmakehash): Delete: moved to subr.el.
12474 (syms_of_fns): Don't defsubr makehash.
12475
12476 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12477 (HASH_TABLE_SIZE): Move from fns.c.
12478
124792002-07-07 Richard M. Stallman <rms@gnu.org>
12480
12481 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12482 Instead just return 0 when there is something to be done.
12483 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12484 retry scrolling as if cursor were off the bottom.
12485 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12486 return CURSOR_MOVEMENT_MUST_SCROLL.
12487 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12488 go to try_to_scroll.
12489
12490 * buffer.c (Fbuffer_local_value): Store current value into its binding
12491 so we get the up-to-date value for the binding that is loaded.
12492
12493 * eval.c (Fdefmacro): Doc fix.
12494
124952002-07-05 Dave Love <fx@gnu.org>
12496
12497 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12498 correctly.
12499
12500 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12501 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12502 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12503 CCL_LookupCharConstTbl.
12504 (syms_of_ccl): Defvar translation-hash-table-vector.
12505
125062002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12507
12508 * xdisp.c: Remove unused variable `face'.
12509
125102002-07-04 Juanma Barranquero <lektu@terra.es>
12511
12512 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12513 obsolescence information.
12514
125152002-07-03 Andrew Choi <akochoi@shaw.ca>
12516
12517 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12518 pattern. Search cache first.
12519 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12520 for Japanese font.
12521 (XLoadQueryFont): Use it.
12522
125232002-07-02 Richard M. Stallman <rms@gnu.org>
12524
12525 * keymap.c (Fdefine_key): Doc fix.
12526
12527 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12528
125292002-07-02 Juanma Barranquero <lektu@terra.es>
12530
12531 * keymap.c (syms_of_keymap): Fix typo.
12532
125332002-07-01 Andrew Choi <akochoi@shaw.ca>
12534
12535 * s/darwin.h: Define POSIX_SIGNALS.
12536
12537 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12538 and FSRefMakePath to convert FSSpec returned with Apple Event to
12539 Posix pathname.
12540 (mac_initialize) [TARGET_API_MAC_CARBON]:
12541 Call init_required_apple_events and disable the `Quit' menu item
12542 provided automatically by the Carbon Toolbox.
12543
125442002-07-01 Dave Love <fx@gnu.org>
12545
12546 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12547 for K&R.
12548
12549 * xterm.c: Fix prototype for K&R.
12550
12551 * term.c (costs_set): Declare static, non-initialized for pcc.
12552
125532002-07-01 Richard M. Stallman <rms@gnu.org>
12554
12555 * keyboard.c (timer_last_idleness_start_time): New variable.
12556 (timer_start_idle): Set that.
12557 (read_key_sequence): Use that to reset timer_idleness_start_time
12558 to previous value.
12559
12560 * window.c (Frecenter): With arg, set optional_new_start.
12561
12562 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12563
12564 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12565 buffer for completion.
12566
125672002-06-29 Ken Raeburn <raeburn@gnu.org>
12568
12569 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12570
125712002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12572
12573 * keyboard.c (readable_filtered_events): New function that filters
12574 FOCUS_IN_EVENT depending on parameter.
12575 (readable_events): Calls readable_filtered_events, not filtering
12576 FOCUS_IN_EVENT.
12577 (get_filtered_input_pending): New function, filtering parameter passed
12578 to readable_filtered_events.
12579 (get_input_pending): Calls get_filtered_input_pending, not filtering
12580 FOCUS_IN_EVENT.
12581 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12582 FOCUS_IN_EVENT.
12583
12584 * xterm.h (struct x_output): Add focus_state.
12585
12586 * xterm.c (x_focus_changed): New function.
12587 (x_detect_focus_change): New function.
12588 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12589 EnterNotify and LeaveNotify to track X focus changes.
12590
125912002-06-28 Andreas Schwab <schwab@suse.de>
12592
12593 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12594
125952002-06-27 Kim F. Storm <storm@cua.dk>
12596
12597 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12598 (mode_line_string_face_prop): New variables.
12599 (store_mode_line_string): New function.
12600 (display_mode_element): Use store_mode_line_string to
12601 add mode-line string elements to mode_line_string_list
12602 when mode_line_string_list is non-nil.
12603 (Fformat_mode_line): Now returns propertized string by
12604 default. New arg NO-PROPS to ignore properties.
12605 (decode_mode_spec): Only add two dashes for %- in propertized
12606 mode-line string.
12607 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12608
126092002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12610
12611 * minibuf.c (minibuffer_completion_contents): Add return type.
12612
126132002-06-27 Juanma Barranquero <lektu@terra.es>
12614
12615 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12616
126172002-06-26 Juanma Barranquero <lektu@terra.es>
12618
12619 * fileio.c (read_file_name_cleanup): Add missing return.
12620
126212002-06-26 Richard M. Stallman <rms@gnu.org>
12622
12623 * window.c (Frecenter): Don't set force_start flag.
12624
12625 * minibuf.c (do_completion, Fminibuffer_complete_word)
12626 (Fminibuffer_completion_help): Complete just the text before point.
12627 (minibuffer_completion_contents): New function.
12628
12629 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12630
12631 * frame.c (frames_bury_buffer): Function deleted.
12632
126332002-06-25 Miles Bader <miles@gnu.org>
12634
12635 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12636 the end of callint_message, allow for a terminating '\0'.
12637
126382002-06-24 Juanma Barranquero <lektu@terra.es>
12639
12640 * w32select.c: Include composite.h
12641
12642 * w16select.c: Likewise.
12643
126442002-06-24 Kenichi Handa <handa@etl.go.jp>
12645
12646 * callproc.c (Fcall_process): If code detection is necessary,
12647 call detect_coding directly here.
12648
12649 * coding.c (detect_eol): Preserve coding->cmp_data.
12650
12651 * w16select.c (Fw16_get_clipboard_data):
12652 * w32fns.c (w32_to_x_font):
12653 * w32select.c (Fw32_get_clipboard_data):
12654 * xselect.c (selection_data_to_lisp_data):
12655 * xterm.c (XTread_socket): Disable composition handling.
12656
126572002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12658
12659 * print.c (temp_output_buffer_setup): Kill all local variables.
12660
126612002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12662
12663 * lread.c (Fread): Remove redundant and imprecise declaration.
12664
12665 * xfns.c (check_x_display_info): Use check_x_frame.
12666
12667 * .gdbinit (xprintsym): Use the new `xname' field.
12668 (xsymbol): Use it.
12669
126702002-06-22 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32fns.c (file_dialog_callback): New function.
12673 (Fx_file_dialog): Allow selecting directories as well as files.
12674
126752002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12676
12677 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12678 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12679
126802002-06-17 Andrew Choi <akochoi@shaw.ca>
12681
12682 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12683 black and white before scrolling. Restore frame background and
12684 foreground color after scrolling.
12685 (do_window_update): Call XClearWindow before calling expose_frame.
12686 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12687 FRAME_FOREGROUND_PIXEL of frame.
12688
12689 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12690 test Mac command key as <ALT> key.
12691
126922002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12693
12694 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12695
12696 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12697 Lookup keys in function-key-map immediately so that key-translation-map
12698 can be applied earlier.
12699 Remove function_key_possible and key_translation_possible, replaced
12700 by checking `keytran_start < t'.
12701
12702 * .gdbinit (xsymbol): Use the new `xname' field.
12703
127042002-06-17 Andrew Choi <akochoi@shaw.ca>
12705
12706 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12707 test Mac command key as <ALT> key.
12708
12709 * mac.c (do_applescript): Call initialize_applescript if necessary
12710 when first called. Dispose of result_desc only when there is no error.
12711 (Fdo_applescript): Use %d format specifier instead of %ld.
12712
127132002-06-16 Andrew Choi <akochoi@shaw.ca>
12714
12715 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12716 of FrontWindow for cases keyDown and autoKey.
12717
12718 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12719 Vdefault_fontset to Monaco with mac-roman coding.
12720
12721 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12722 init_process before and after inclusion of Carbon/Carbon.h, resp.
12723
12724 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12725 cursor_gc.
12726 (add_font_name_table_entry): New function.
12727 (init_font_name_table): Use add_font_name_table_entry; add italic,
12728 bold, and bold-italic entries for truetype fonts.
12729
12730 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12731 for Mac too.
12732 (try_font_list) [MAC_OS]: If no font matches given registry, try
12733 fonts with any registry matching face_family.
12734 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12735
12736 * s/darwin.h: If autoconf detects the Ncurses library, define
12737 LIBS_TERMCAP to -lncurses to use it.
12738
127392002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12740
12741 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12742
127432002-06-15 Richard M. Stallman <rms@gnu.org>
12744
12745 * window.c (Fset_window_configuration): Explicitly preserve
12746 the point value that new_current_buffer had at the start.
12747
127482002-06-14 Juanma Barranquero <lektu@terra.es>
12749
12750 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12751 Fix typos.
12752
127532002-06-14 Kim F. Storm <storm@cua.dk>
12754
12755 * insdel.c (insert_1_both, insert_from_string_1)
12756 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12757 insert happened in the end_unchanged region. Otherwise, the
12758 redisplay may be confused and duplicate the last line in the
12759 buffer [seen after save-buffer when require-final-newline==t].
12760
127612002-06-13 Jason Rumney <jasonr@gnu.org>
12762
12763 * w32.c (init_environment): Remove EMACSLOCKDIR.
12764 (stat): Swap _S_IFDIR and _S_IFREG.
12765
127662002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12767
12768 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12769 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12770 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12771 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12772 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12773 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12774 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12775 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12776 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12777 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12778 SELECTION_REQUEST_EVENT, selection_clear_event to
12779 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12780 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12781 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12782 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12783 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12784 no_event to NO_EVENT.
12785
127862002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12787
12788 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12789
127902002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12791
12792 * intervals.c (textget): Don't forget to `return'.
12793 (lookup_char_property): Use XCAR/XCDR.
12794
127952002-06-12 Juanma Barranquero <lektu@terra.es>
12796
12797 * xdisp.c (Fformat_mode_line): Fix typo.
12798
127992002-06-12 Kim F. Storm <storm@cua.dk>
12800
12801 * xdisp.c (Fformat_mode_line): New function.
12802 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12803 (store_frame_title_char, store_frame_title): Use unconditionally.
12804 (init_xdisp): Defsubr Fformat_mode_line.
12805 Initialize frame_title_buf etc. unconditionally.
12806
128072002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12808
12809 * keyboard.c (read_key_sequence):
12810 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12811 things through those maps after downcasing events.
12812 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12813 applies after function-key-map.
12814 Make sure that keytran can be done in the middle in the sequence.
12815 Be careful not to throw away events past the one we downcase.
12816
12817 * lread.c (read_integer): Remove unused var `tem'.
12818 (read1): Fix int/Lisp_Object mixup.
12819
12820 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12821
128222002-06-11 Richard M. Stallman <rms@gnu.org>
12823
12824 * keyboard.c (readable_events): Ignore any number of
12825 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12826
128272002-06-09 Miles Bader <miles@gnu.org>
12828
12829 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12830 (parse_rgb_list, tty_lookup_color): New functions.
12831 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12832 (color_distance, Fcolor_distance): New functions.
12833 (TTY_SAME_COLOR_THRESHOLD): New macro.
12834 (Qtty_color_standard_values): New variable.
12835 (syms_of_xfaces): Initialize new vars & functions.
12836
128372002-06-08 Colin Walters <walters@verbum.org>
12838
12839 * textprop.c (Vchar_property_alias_alist): New variable.
12840 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12841
12842 * intervals.c (lookup_char_property): New function for looking up
12843 overlay and text properties, created from textget.
12844 (textget): Use it.
12845
12846 * intervals.h (lookup_char_property): Declare.
12847 (Vchar_property_alias_alist): Declare.
12848
12849 * buffer.c (Foverlay_get): Use lookup_char_property.
12850
128512002-06-07 Sam Steingold <sds@gnu.org>
12852
12853 * xselect.c (lisp_data_to_selection_data): Fix last change:
12854 *data_ret is not a Lisp string, while unibyte_string is.
12855
128562002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12857
12858 * xselect.c (lisp_data_to_selection_data): Fix last change:
12859 set size_ret.
12860
128612002-06-07 Andreas Schwab <schwab@suse.de>
12862
12863 * m/amdx86-64.h: New file.
12864
128652002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12866
12867 * fns.c (Fstring_make_unibyte): Doc fix.
12868
12869 * xselect.c (lisp_data_to_selection_data): If the requested type
12870 is STRING, call string_make_unibyte to encode the selected text
12871 as a string.
12872
12873 * window.c (Fset_window_hscroll): Doc fix.
12874
128752002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12876
12877 * fileio.c (choose_write_coding_system):
12878 Call select-safe-coding-system properly.
12879
128802002-06-03 Richard M. Stallman <rms@gnu.org>
12881
12882 * xdisp.c (message_with_string): Error if STRING is not a string.
12883
12884 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12885
12886 * fileio.c (choose_write_coding_system): Pass FILE arg to
12887 Vselect_safe_coding_system_function.
12888
128892002-06-03 Ken Raeburn <raeburn@gnu.org>
12890
12891 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12892
128932002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12894
12895 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12896 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12897 * keymap.c (describe_command): Likewise.
12898 * minibuf.c (read_minibuf): Likewise.
12899
12900 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12901 Cast `current_column' return value to int.
12902 (back_to_previous_visible_line_start)
12903 (reseat_at_next_visible_line_start, next_element_from_buffer):
12904 Cast `indented_beyond_p' 3rd arg to float.
12905
12906 * indent.c (last_known_column): Now a float.
12907 (current_column_1, position_indentation, current_column)
12908 (string_display_width): Return float.
12909 (Fcurrent_column): Cast `current_column' return value to int.
12910 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12911 (indented_beyond_p): Third arg now a float.
12912 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12913
12914 * lisp.h (current_column): Now returns float.
12915 (indented_beyond_p): 3rd arg now a float.
12916
129172002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12918
12919 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12920 is Qcompound_text_with_extensions.
12921
12922 * xselect.c (lisp_data_to_selection_data): Always set selection
12923 type as string if x_encode_text returns streingp non-NULL.
12924
12925 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12926
129272002-05-30 Richard M. Stallman <rms@gnu.org>
12928
12929 * window.c (Fset_window_configuration): Correct the handling
12930 of point in current buffer, to work with multiple windows.
12931
129322002-05-29 Colin Walters <walters@verbum.org>
12933
12934 * lread.c (Fread_from_string): Don't depend on order of evaluation
12935 for C function parameters.
12936
129372002-05-28 Richard M. Stallman <rms@gnu.org>
12938
12939 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12940 way for blinked-off state and for a nonselected window.
12941
12942 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12943 instead, see if the new start pos is at beginning of line.
12944
12945 * fileio.c (Fwrite_region): If START is a string, don't
12946 make any annotations.
12947
12948 * eval.c (syms_of_eval): Doc fix.
12949
129502002-05-28 Colin Walters <walters@debian.org>
12951
12952 * emacs.c (USAGE1): Add --no-splash.
12953 (standard_args): Ditto.
12954
129552002-05-28 Colin Walters <walters@gnu.org>
12956
12957 * lread.c (readchar_count): New variable.
12958 (readchar): Increment it.
12959 (unreadchar): Decrement it.
12960 (read_multibyte): Decrement it.
12961 (Vread_with_symbol_positions): New variable.
12962 (Vread_symbol_positions_list): New variable.
12963 (read_internal_start): New function, created from Fread and
12964 Fread_from_string. Handle Vread_symbol_positions_list and
12965 Vread_with_symbol_positions.
12966 (readevalloop, Fread, Fread_from_string): Use it.
12967 (read1): Use readchar_count to add symbol positions to
12968 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12969 (syms_of_lread): DEFVAR_LISP and initialize them.
12970
12971 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12972 (substitute_object_recurse, substitute_object_in_subtree)
12973 (substitute_in_interval): Prototype.
12974 (read_multibyte): Return c if it's less than zero.
12975
129762002-05-28 Kim F. Storm <storm@cua.dk>
12977
12978 * fileio.c (Fread_file_name_internal): Added brute-force
12979 speed up for using predicate file-directory-p.
12980
129812002-05-28 Kim F. Storm <storm@cua.dk>
12982
12983 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12984 New variables.
12985 (syms_of_fileio): DEFVAR_LISP them.
12986 (read_file_name_cleanup): New unwind function.
12987 (Fread_file_name_internal): Only return completions satifying
12988 Vread_file_name_predicate. Temporarily unwind protect and rebind
12989 default-directory while checking completions against the predicate.
12990 (Fread_file_name): Added PREDICATE argument. Specbind it to
12991 Vread_file_name_predicate during completion.
12992 Call Vread_file_name_function to read the file name if non-nil.
12993
12994 * lisp.h (Fread_file_name): Now has 6 args.
12995
12996 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12997 predicate for Fread_file_name when reading directory name.
12998 Supply Qnil for predicate in other calls to Fread_file_name.
12999
130002002-05-26 Miles Bader <miles@gnu.org>
13001
13002 * term.c (tty_capable_p): New function.
13003 * dispextern.h (tty_capable_p): New function declaration.
13004 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13005 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13006
130072002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13008
13009 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13010 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13011 (Vwrite_region_annotate_functions): Docstring fix.
13012
130132002-05-23 Kim F. Storm <storm@cua.dk>
13014
13015 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13016 phys_cursor's hpos is overwritten. This is still not completely
13017 correct, as it doesn't really make sense to use hpos at all to
13018 get the cursor glyph (as that is relative to the width of the
13019 characters on the line, which may have changed during the update).
13020
130212002-05-22 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13024 Lisp_Object.
13025 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13026 Use modified enumfont_t struct.
13027
13028 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13029
13030 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13031 Handle the `hbar' cursor type.
13032 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13033
13034 * w32fns.c (Qhbar): New variable.
13035 (x_specified_cursor_type): Use it.
13036
130372002-05-21 Ken Raeburn <raeburn@gnu.org>
13038
13039 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13040 now, when the address is needed.
13041
130422002-05-21 Colin Walters <walters@gnu.org>
13043
13044 * Makefile.in (shortlisp): Add font-core.el.
13045
130462002-05-20 Richard M. Stallman <rms@gnu.org>
13047
13048 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13049
13050 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13051 equivalent key bindings here.
13052
130532002-05-20 Ken Raeburn <raeburn@gnu.org>
13054
13055 Change symbol structure to contain a lisp object for the symbol
13056 name:
13057 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13058 object field named "xname".
13059 (SYMBOL_NAME): New macro.
13060 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13061 name field.
13062 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13063 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13064 instead of name field.
13065 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13066 SYMBOL_NAME instead of XSYMBOL and name field.
13067 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13068 instead of XSYMBOL and name field.
13069 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13070 and SYMBOL_NAME instead of XSYMBOL and name field.
13071 * coding.c (Fread_coding_system, code_convert_region1)
13072 (code_convert_string1, code_convert_string_norecord)
13073 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13074 XSYMBOL and name field.
13075 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13076 (Fmake_variable_buffer_local, Fmake_local_variable)
13077 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13078 of XSYMBOL and name field.
13079 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13080 XSYMBOL and name field.
13081 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13082 instead of XSYMBOL and name field.
13083 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13084 XSYMBOL and name field.
13085 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13086 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13087 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13088 instead of XSYMBOL and name field.
13089 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13090 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13091 (parse_solitary_modifier, Fexecute_extended_command):
13092 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13093 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13094 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13095 of XSYMBOL and name field.
13096 (describe_command, describe_translation): Use SYMBOL_NAME and
13097 assignment instead of XSYMBOL and name field and XSETSTRING.
13098 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13099 instead of XSYMBOL and name field.
13100 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13101 name field and XSETSTRING.
13102 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13103 of XSYMBOL and name field.
13104 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13105 assignment instead of XSYMBOL and name field and XSETSTRING.
13106 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13107 XSTRING instead of XSYMBOL and name field.
13108 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13109 and XSTRING instead of XSYMBOL and name field.
13110 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13111 and XSTRING instead of XSYMBOL and name field.
13112 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13113 XSTRING instead of XSYMBOL and name field.
13114 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13115 of XSYMBOL and name field.
13116 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13117 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13118
131192002-05-19 Ken Raeburn <raeburn@gnu.org>
13120
13121 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13122 and XCDR real rvalues in most configurations.
13123
13124 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13125 Don't take the address of the cdr part of a cons cell; instead, track
13126 the parent cell and call XSETCDR, or set the variable for the head
13127 of the list if we haven't started down the list yet.
13128
131292002-05-19 Richard M. Stallman <rms@gnu.org>
13130
13131 * doc.c (reread_doc_file): Don't ask for confirmation.
13132
131332002-05-18 Jason Rumney <jasonr@gnu.org>
13134
13135 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13136 (xbm_load_image): Use it.
13137 (xbm_load): Ditto.
13138 (xbm_read_bitmap_data): Reverted to xfns.c version.
13139 From David Ponce <david@dponce.com>.
13140
131412002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13142
13143 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13144 2.02 and later.
13145
131462002-05-16 Juanma Barranquero <lektu@terra.es>
13147
13148 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13149
131502002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13151
13152 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13153 meaningful test.
13154 (read_char_minibuf_menu_prompt): Fix typo.
13155
131562002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13157
13158 * eval.c (Fcommandp): Doc fix.
13159
131602002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13161
13162 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13163 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13164 (Fset_keymap_parent): Gcpro a bit more.
13165 (access_keymap): Gcpro around meta_map call and around the main loop.
13166 (get_keyelt): Gcpro when following indirect references.
13167 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13168 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13169 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13170 Remove useless ad-hoc remap code.
13171
131722002-05-13 Richard M. Stallman <rms@gnu.org>
13173
13174 * search.c (search_buffer): Give up boyer moore search if inverse
13175 translation change charset_base.
13176
131772002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13178
13179 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13180 characters is carried over from the previous block of text, adjust
13181 coding->produced to account for the extra character.
13182
131832002-05-11 Andreas Schwab <schwab@suse.de>
13184
13185 * coding.c (intersection): Keep the elements of the returned list
13186 in the same order as in the first list.
13187
131882002-05-11 Kim F. Storm <storm@cua.dk>
13189
13190 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13191 only update cmm_size if realloc actually succeeds.
13192 Testing with initial size of 2 elements revealed that using
13193 realloc on GNU/Linux would cause a random trap in xmalloc
13194 later on, so I rewrote the code to use malloc/bcopy/free instead
13195 of realloc.
13196
131972002-05-10 Jason Rumney <jasonr@gnu.org>
13198
13199 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13200
132012002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13202
13203 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13204 parens, to ensure correct evaluation order.
13205
132062002-05-10 Kim F. Storm <storm@cua.dk>
13207
13208 * keymap.c (Vemulation_mode_map_alists): New variable.
13209 (syms_of_keymap): DEFVAR_LISP it.
13210 (current_minor_maps): Process keymap alists in that list before
13211 minor-mode-overriding-map-alist and minor-mode-map-alist.
13212
132132002-05-09 Richard M. Stallman <rms@gnu.org>
13214
13215 * search.c (Freplace_match): Doc fix.
13216
132172002-05-09 Kim F. Storm <storm@cua.dk>
13218
13219 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13220 Enlarge cursor rectangle drawn around image with non-zero relief.
13221
13222 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13223 Enlarge cursor rectangle drawn around image with non-zero relief.
13224
13225 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13226 Enlarge cursor rectangle drawn around image with non-zero relief.
13227
132282002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13229
13230 * xselect.c (lisp_data_to_selection_data): Don't set selection
13231 type if comes from the Lisp object's car. If the selection
13232 contains a pure ASCII text, always return QSTRING as its type.
13233
132342002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13235
13236 * mac.c (mac-cut-function): Doc fix.
13237
132382002-05-05 Richard M. Stallman <rms@gnu.org>
13239
13240 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13241
132422002-05-04 Jason Rumney <jasonr@gnu.org>
13243
13244 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13245 for event-click-count.
13246
13247 * process.c (init_process): Only add server subfeature if we can
13248 use non-blocking I/O.
13249
132502002-05-04 Andrew Choi <akochoi@shaw.ca>
13251
13252 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13253 repeatedly.
13254
132552002-05-03 Jason Rumney <jasonr@gnu.org>
13256
13257 * process.c (Fmake_network_process): Only support server sockets
13258 when we can make them non-blocking.
13259
13260 * s/ms-w32.h (HAVE_SELECT): Define.
13261
13262 * w32.h (FILE_NDELAY): New flag.
13263
13264 * w32.c (sys_getpeername, fcntl): New functions.
13265 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13266
13267 * w32proc.c: include sys/file.h.
13268
132692002-05-03 Colin Walters <walters@verbum.org>
13270
13271 * callproc.c (Vgame_score_directory): Renamed to
13272 Vshared_game_score_directory.
13273
132742002-04-30 Richard M. Stallman <rms@gnu.org>
13275
13276 * s/gnu.h [emacs]: Include stdio.h.
13277 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13278
13279 * eval.c (do_autoload): Error if called while preparing to dump.
13280
13281 * fns.c (Frequire): Error if need to load while preparing to dump.
13282
132832002-04-28 Colin Walters <walters@verbum.org>
13284
13285 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13286 Default to "~/.emacs.d/games".
13287
132882002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13289
13290 * lread.c (openp): Change arg exec_only to predicate.
13291 (build_load_history): Use XCAR/XCDR.
13292 (Flocate_file_internal): New fun.
13293 (syms_of_lread): Defsubr it.
13294 (Fload): Update call to openp.
13295
13296 * lisp.h (openp): Update prototype.
13297
13298 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13299 * w32proc.c (sys_spawnve):
13300 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13301 * w32.c (check_windows_init_file):
13302 * sound.c (Fplay_sound_internal):
13303 * process.c (Fstart_process):
13304 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13305 * mac.c (run_mac_command):
13306 * emacs.c (init_cmdargs):
13307 * callproc.c (Fcall_process): Update call to openp.
13308
13309 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13310
13311 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13312
133132002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13314
13315 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13316 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13317
133182002-04-28 Richard M. Stallman <rms@gnu.org>
13319
13320 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13321
13322 * eval.c (Fcommandp): New arg for_call_interactively.
13323 * lisp.h (Fcommandp): Declare new arg.
13324
133252002-04-28 Jason Rumney <jasonr@gnu.org>
13326
13327 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13328
13329 * w32.c (stat, fstat): Use file index information to generate
13330 inodes for directories where available.
13331
133322002-04-26 Andrew Choi <akochoi@shaw.ca>
13333
13334 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13335 [HAVE_CARBON]: Include Mac object files.
13336
13337 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13338 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13339 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13340 MAC_OSX, and MAC_OS instead of macintosh.
13341
13342 * editfns.c [MAC_OS8]: Include stdio.h.
13343
13344 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13345
13346 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13347 Apple Monaco.
13348
78819ebb 13349 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13350 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13351 calling select.
13352
13353 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13354
13355 * tparam.c [MAC_OSX]: Don't define BC and UP.
13356
13357 * config.in [HAVE_CARBON]: Add.
13358
13359 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13360 Move here from mac/src and mac/inc.
13361
13362 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13363
133642002-04-26 Gerd Moellmann <gerd@gnu.org>
13365
13366 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13367 Compute phys_cursor_width from the x position returned
13368 by x_draw_glyhs, which is cheaper.
13369 (x_display_and_set_cursor): Compute the buffer-local value
13370 of `cursor-in-non-selected-windows' only when needed.
13371
133722002-04-25 Gerd Moellmann <gerd@gnu.org>
13373
13374 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13375 cursor on a stretch glyph has a width that depends on
13376 x_stretch_cursor_p.
13377
133782002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13379
13380 * abbrev.c (abbrev-start-location): Doc fix.
13381
13382 * indent.c (Fvertical_motion): Fix last change.
13383
133842002-04-25 Gerd Moellmann <gerd@gnu.org>
13385
13386 * indent.c (Fvertical_motion): Move to the start of the line
13387 containing PT before moving up or down.
13388
133892002-04-24 Gerd Moellmann <gerd@gnu.org>
13390
13391 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13392 case of writing a whole row, more or less analogous to the case of
13393 writing only parts of a row.
13394
13395 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13396 0 for NO_CURSOR.
13397
13398 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13399
134002002-04-23 Colin Walters <walters@verbum.org>
13401
13402 * buffer.c (syms_of_buffer): Doc fix.
13403
134042002-04-23 Gerd Moellmann <gerd@gnu.org>
13405
13406 * xterm.c (notice_overwritten_cursor): Handle the special case
13407 of the cursor being in the first blank non-text line at the
13408 end of a window.
13409
13410 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13411 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13412 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13413 bar cursors only, to make phys_cursor_width contain what its name
13414 suggests.
13415 (notice_overwritten_cursor): Consider the cursor image erased if
13416 the output area intersects the cursor image in y-direction.
13417
134182002-04-23 Simon Marshall <simon@gnu.org>
13419
13420 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13421 to XC_hand2.
13422
134232002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13424
13425 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13426
134272002-04-22 Kim F. Storm <storm@cua.dk>
13428
13429 * textprop.c (remove_properties): Fixed trap for malformed plist.
13430
134312002-04-22 Richard M. Stallman <rms@gnu.org>
13432
13433 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13434
13435 * window.c (make_window): Initialize height_fixed_p,
13436 last_cursor_off_p, and p->cursor_off_p slots.
13437
134382002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13439
13440 * fns.c (use-dialog-box): Doc fix.
13441
134422002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13443
13444 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13445 variables `row', `i' and `area'.
13446 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13447 toolkit library.
13448
134492002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13450
13451 * xfaces.c (clear_font_table): Don't free the default font of
13452 a frame even if it's on another display.
13453 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13454 that could be Qt.
13455
134562002-04-19 Juanma Barranquero <lektu@terra.es>
13457
13458 * indent.c (Fmove_to_column): Remove unused local variable
13459 `next_boundary_byte'.
13460 (current_column_1): Likewise.
13461
134622002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13463
13464 * msdos.c (Qhbar): New variable.
13465 (syms_of_msdos): Intern and staticpro it.
13466 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13467 cursor type.
13468
134692002-04-19 Dave Lambert <dlambert@acm.org>
13470
13471 Theses change implement an underscore-like (`hbar') cursor.
13472
13473 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13474
13475 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13476 Handle the `hbar' cursor type.
13477 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13478
13479 * xfns.c (Qhbar): New variable.
13480 (syms_of_xfns): Intern and staticpro it.
13481 (x_specified_cursor_type): Handle `hbar' cursor.
13482
13483 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13484 not defined.
13485
134862002-04-18 Richard M. Stallman <rms@gnu.org>
13487
13488 * textprop.c (remove_properties): New arg LIST allows scanning
13489 either a list or a plist.
13490 (interval_has_some_properties_list): New function, like
13491 interval_has_some_properties using list instead of plist.
13492 All callers changed.
13493 (Fremove_list_of_text_properties): New function.
13494 (syms_of_textprop): Defsubr it.
13495
134962002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13497
13498 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13499
135002002-04-17 Juanma Barranquero <lektu@terra.es>
13501
13502 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13503
135042002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13505
13506 * window.c (coordinates_in_window): Don't report on margin area
13507 if its width is zero.
13508
135092002-04-16 Jason Rumney <jasonr@gnu.org>
13510
13511 * w32fns.c (Fx_file_dialog): Decode file name before using.
13512
13513 * w32term.c (construct_drag_n_drop): Likewise.
13514
135152002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13516
13517 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13518 store load-history in pure space.
13519
13520 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13521
135222002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13523
13524 * xterm.c (Qlatin_1, Qutf_8): New vars.
13525 (syms_of_xterm): Initialize them.
13526 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13527 decoding the output of X*LookupString.
13528 Always use latin-1 to decode the output of XLookupString.
13529 Try Xutf8LookupString if XmbLookupString failed.
13530
13531 * region-cache.c (new_region_cache): Use BEG.
13532
135332002-04-16 Gerd Moellmann <gerd@gnu.org>
13534
13535 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13536 configuration files.
13537 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13538 returns 0.
13539
135402002-04-15 Andreas Schwab <schwab@suse.de>
13541
13542 * config.in: Regenerated using autoheader.
13543
13544 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13545 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13546 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13547 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13548 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13549 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13550 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13551 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13552 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13553 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13554 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13555 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13556 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13557 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13558 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13559 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13560 STACK_DIRECTION, now set by autoconf.
13561
135622002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13563
13564 * dispnew.c (marginal_area_string): Sort arguments.
13565
13566 * dispextern.h (marginal_area_string): Add prototype.
13567
135682002-04-13 Richard M. Stallman <rms@gnu.org>
13569
13570 * fileio.c (Finsert_file_contents):
13571 Don't call temp_output_buffer_setup--do just part, by hand.
13572
13573 * coding.c (run_pre_post_conversion_on_str):
13574 Don't call temp_output_buffer_setup--do just part, by hand.
13575
13576 * keyboard.c (command_loop_1): Don't call start_hourglass
13577 or cancel_hourglass when executing a macro.
13578
13579 * marker.c (count_markers): New function.
13580
13581 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13582 grow without limit. Move recently used elements to the front.
13583
135842002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13585
13586 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13587
135882002-04-12 Gerd Moellmann <gerd@gnu.org>
13589
13590 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13591 rows marginal areas.
13592 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13593 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13594
13595 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13596
135972002-04-12 Dave Love <fx@gnu.org>
13598
13599 * dispnew.c (marginal_area_string): New.
13600
13601 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13602 (Qleft_margin, Qright_margin): Declare.
13603 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13604
13605 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13606 note_mode_line_highlight and extended.
13607
13608 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13609 (make_lispy_event): Deal with mouse events in margins.
13610
136112002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13612
13613 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13614
13615 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13616 than deactivating the mark if tmm is set to `lambda'.
13617 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13618 Use a single event for HELP_EVENT.
13619 (Fexecute_extended_command): Save last_point_position.
13620
136212002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13622
13623 * lisp.h (Fpropertize): Add prototype.
13624
13625 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13626
136272002-04-10 Colin Walters <walters@verbum.org>
13628
13629 * config.in: Add HAVE_SHARED_GAME_DIR.
13630
13631 * callproc.c: (Vgame_score_directory): New variable.
13632 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13633
136342002-04-10 Richard M. Stallman <rms@gnu.org>
13635
13636 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13637
136382002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13639
13640 * minibuf.c (read_minibuf): Use empty_string.
13641 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13642 Short-circuit the search as soon as it "failed".
13643 (Fall_completions): Allow lambda forms and lists of strings for alist.
13644 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13645 when require_match is nil.
13646 (Ftest_completion): Rename from `test_completion' and export to elisp.
13647 Call the predicate also when alist is a list.
13648 Obey Vcompletion_regexp_list.
13649 (do_completion, Fminibuffer_complete_and_exit): Use it.
13650 (Fassoc_string): Rename from `assoc_for_completion'.
13651 Allow list of strings as well and export to elisp.
13652
136532002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13654
13655 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13656
136572002-04-08 Juanma Barranquero <lektu@terra.es>
13658
13659 * w32.c (sys_accept): Don't hide variable `s'.
13660
136612002-04-05 Gerd Moellmann <gerd@gnu.org>
13662
13663 * callint.c (Fcall_interactively): Use INTEGERP instead of
13664 NUMBERP for checking Vhistory_length.
13665
136662002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13667
13668 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13669 Doc fix to reflect it.
13670
136712002-04-04 Richard M. Stallman <rms@gnu.org>
13672
13673 * xdisp.c (display_mode_element): New arg RISKY.
13674 Disregard text props found or specified within a variable
13675 that isn't marked risky-local-variable.
13676 (Qrisky_local_variable): New variable.
13677 (syms_of_xdisp): Init and staticpro it.
13678
136792002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13680
13681 * undo.c (record_point): New fun.
13682 (record_delete, record_insert): Use it.
13683
136842002-04-03 Juanma Barranquero <lektu@terra.es>
13685
13686 * doc.c (Fdocumentation): Add missing parentheses.
13687 (Fdocumentation_property): Likewise.
13688
136892002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13690
13691 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13692 data is 0, just return nil.
13693
136942002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13695
13696 * msdos.c (syms_of_msdos): Fix last change with
13697 mouse_autoselect_window.
13698
136992002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13700
13701 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13702 mouse_autoselect_window.
13703
137042002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13705
13706 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13707 with system-specific keysyms. Use it also for unknown function keys.
13708
13709 * doc.c (reread_doc_file): Return whether reload was attempted.
13710 (Fdocumentation, Fdocumentation_property): Don't try to reload
13711 if the doc is 0 and only ask once.
13712
13713 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13714
137152002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13716
13717 * keyboard.c (read_char): If the event was Qselect_window,
13718 restore timer_idleness_start_time to its previous value.
13719
13720 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13721
137222002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13723
13724 * region-cache.c (new_region_cache): Use BEG.
13725
13726 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13727 Use BEG and BEG_BYTE.
13728
13729 * doc.c (get_doc_string): Return nil if the location is wrong.
13730 (reread_doc_file): New fun.
13731 (Fdocumentation, Fdocumentation_property):
13732 Call it if get_doc_string fails.
13733 (Fsnarf_documentation): Make it work for a dumped Emacs.
13734
13735 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13736 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13737
13738 * charset.c (Fstring): Allow 0 arguments.
13739
13740 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13741
13742 * process.c (DATAGRAM_CONN_P, list_processes_1)
13743 (Fprocess_datagram_address, Fset_process_datagram_address)
13744 (Fset_network_process_options, server_accept_connection):
13745 Fix some int/Lisp_Object confusions (thank you union types).
13746
137472002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13748
13749 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13750
13751 * w32term.c: Likewise.
13752 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13753
13754 * keyboard.c (Qselect_window): New symbol.
13755 (head_table): Use it.
13756 (keys_of_keyboard): Bound select-window event to handle-select-window.
13757 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13758
13759 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13760 (last_window): New variable.
13761 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13762 (note_mouse_movement): Remove reimplemented code in #if 0.
13763 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13764 Emacs windows.
13765
13766 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13767
137682002-03-31 Gerd Moellmann <gerd@gnu.org>
13769
13770 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13771 Callers changed.
13772
137732002-03-30 Richard M. Stallman <rms@gnu.org>
13774
13775 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13776 loop whenever it stops making progress.
13777
13778 * widget.c (set_frame_size): Don't call change_frame_size.
13779
137802002-03-30 Gerd Moellmann <gerd@gnu.org>
13781
13782 * dispnew.c (direct_output_for_insert):
13783 Call mark_window_display_accurate.
13784
137852002-03-29 Jason Rumney <jasonr@gnu.org>
13786
13787 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13788
137892002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13790
13791 * Makefile.in (lread.o): Depend on coding.h.
13792
13793 * lread.c (openp, Fload): Encode the file name before passing it
13794 to `stat', `access', and `emacs_open'.
13795 (openp): GCPRO the encoded file name. Don't recompute Lisp
13796 strings unnecessarily.
13797
137982002-03-29 Kim F. Storm <storm@cua.dk>
13799
13800 * fns.c (Flax_plist_put): Doc fix.
13801
138022002-03-28 Miles Bader <miles@gnu.org>
13803
13804 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13805
138062002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13807
13808 * process.c (set-network-process-options): Add usage.
13809 (make-network-process): Doc fix.
13810
138112002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13812
13813 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13814
138152002-03-26 Richard M. Stallman <rms@gnu.org>
13816
13817 * fns.c (Fsubstring_no_properties): New function.
13818 (Flax_plist_get, Flax_plist_put): New functions.
13819 (syms_of_fns): defsubr them.
13820
13821 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13822 don't test or alter w->update_mode_line.
13823
13824 * window.c (Fdisplay_buffer): Doc fix.
13825
138262002-03-24 Richard M. Stallman <rms@gnu.org>
13827
13828 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13829
138302002-03-24 Gerd Moellmann <gerd@gnu.org>
13831
13832 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13833 (Fdefmacro): Handle `(declare ...)'.
13834 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13835 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13836
138372002-03-24 Jason Rumney <jasonr@gnu.org>
13838
13839 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13840 (xbm_file_p): Add prototypes.
13841 (xbm_format, xbm_image_p): Sync with xfns.c.
13842 (reflect_byte): New function.
13843 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13844 (xbm_load_image): Create bitmaps with a depth of 1.
13845 (init_xfns): Enable XBM images.
13846
138472002-03-23 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13850 correctly. Do not pass up_modifier to keyboard buffer.
13851
13852 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13853
138542002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13855
13856 * Makefile.in (bootstrapclean): New target.
13857 (bootstrap-temacs, bootstrap-doc): Remove.
13858 (bootstrap-emacs): Use a bog-standard `temacs'.
13859 Don't bother to build a DOC file.
13860
13861 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13862
13863 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13864 in temacs even if !CANNOT_DUMP.
13865 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13866
13867 * alloc.c (check_pure_size): Only output a warning.
13868
138692002-03-22 Jason Rumney <jasonr@gnu.org>
13870
13871 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13872 supported.
13873
13874 * w32term.c (zv_bits): Declare as short, for word alignment.
13875 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13876 (syms_of_w32term): Define x-use-underline-position-properties.
13877
13878 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13879 (clear_image_cache): Block input, fix logic, clear matrices in
13880 all frames that share this cache.
13881
138822002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13883
13884 * emacs.c (main): Update the Copyright year in the blurb printed
13885 by "emacs --version".
13886
13887 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13888
13889 * xterm.c (XTread_socket): If XK_ISO_Lock and
13890 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13891 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13892
138932002-03-21 Kim F. Storm <storm@cua.dk>
13894
13895 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13896 menu-bar bindings in keymap and local-map properties _are_ used.
13897 But try keymap property first in accordance with 2002-01-03 patch.
13898 Added comment describing why this is not always reliable.
13899 (tool_bar_items): Ditto for tool-bar.
13900
139012002-03-21 Jason Rumney <jasonr@gnu.org>
13902
13903 * w32fns.c (x_clear_image_1): Disable color table code.
13904
139052002-03-21 Kim F. Storm <storm@cua.dk>
13906
13907 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13908 removed the wrong version of the DEFUN macro; fixed it.
13909
13910 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13911 Fmember rather than Fmemq).
13912 (Fprovide): Check that subfeatures is a list.
13913
13914 * process.c (QCfeature, QCdatagram): Removed variables.
13915 (QCtype, Qdatagram): New variables.
13916 (network_process_featurep): Removed function.
13917 (Fmake_network_process): Removed :feature check.
13918 Use :type 'datagram instead of :datagram t to create a datagram
13919 socket. This allows us to add other connection types (e.g. raw
13920 sockets) later in a consistent manner.
13921 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13922 supported subfeatures for feature make-network-process.
13923 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13924 Intern and staticpro QCtype and Qdatagram.
13925 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13926
13927 * xfns.c: (QCtype): Remove duplicate declaration and
13928 initialization (is now declared in process.c).
13929
13930 * w32fns.c: (QCtype): Remove duplicate declaration and
13931 initialization (is now declared in process.c).
13932
139332002-03-21 Richard M. Stallman <rms@gnu.org>
13934
13935 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13936 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13937 when jumping to `fail' to avoid undoing reg changes in the
13938 last iteration of the loop.
13939 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13940
13941 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13942 Depend on process.h.
13943
139442002-03-20 Jason Rumney <jasonr@gnu.org>
13945
13946 Most of the following changes are still conditional on HAVE_IMAGES
13947 which is not set by default on Windows.
13948
13949 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13950
13951 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13952 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13953 (four_corners_best, x_clear_image_1, x_clear_image)
13954 (x_alloc_image_color, postprocess_image)
13955 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13956 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13957 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13958
13959 * w32gui.h (struct XImage): Define.
13960
13961 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13962 extract mouse co-ordinates.
13963
139642002-03-20 Jason Rumney <jasonr@gnu.org>
13965
13966 * w32.c (init_winsock): Dynamically load new server and UDP
13967 socket functions.
13968 (socket_to_fd): New function.
13969 (sys_socket): Use it.
13970 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13971 (sys_recvfrom, sys_sendto): New wrapper functions.
13972
13973 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13974 and initialization.
13975
13976 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13977
139782002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13979
13980 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13981 Don't use "sun" as a variable, it's a predefined constant on Sun
13982 machines.
13983
139842002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13985
13986 * bytecode.c (Fbyte_code): Revert last change.
13987
139882002-03-19 Kim F. Storm <storm@cua.dk>
13989
13990 * makefile.w32-in (LIBS): Add $(WSOCK32).
13991 From David Ponce <dponce@voila.fr>.
13992
139932002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13994
13995 * process.c (wait_reading_process_input): Move variables `pname'
13996 and `pnamelen' down where they are used.
13997
13998 * bytecode.c (Fbyte_code): Discard unused computed value to
13999 prevent gcc warning.
14000
14001 * lisp.h (Fplist_member): Add prototype.
14002
140032002-03-18 Kim F. Storm <storm@cua.dk>
14004
14005 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14006 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14007
14008 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14009 Remove explicit GNU_LINUX settings for datagram support.
14010
140112002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14012
14013 * process.c (Fmake_network_process): Remove unused variable `sa'.
14014 Doc fix. Add usage:.
14015 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14016
140172002-03-17 Richard M. Stallman <rms@gnu.org>
14018
14019 * xdisp.c (cursor_type_changed): New variable.
14020 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14021 Clear it when clearing windows_or_buffers_changed.
14022 (try_cursor_movement, redisplay_window, try_window_id)
14023 (try_window_reusing_current_matrix): Test cursor_type_changed
14024 along with windows_or_buffers_changed.
14025
14026 * window.h (cursor_type_changed): New variable.
14027
14028 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14029 not update_mode_lines, and always set it to 1.
14030
14031 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14032 if no frames needed redrawing.
14033
140342002-03-17 Kim F. Storm <storm@cua.dk>
14035
14036 The following changes add support for network server processes,
14037 datagram connections, and local (unix) sockets.
14038
14039 * process.h (struct Lisp_Process): New member log.
14040 Doc fix: Member command used to indicate stopped network process.
14041 Doc fix: Member childp contains plist for network process.
14042 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14043
14044 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14045 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14046 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14047 New variables.
14048 (NETCONN1_P): New macro.
14049 (DATAGRAM_SOCKETS): New conditional symbol.
14050 (datagram_address): New array.
14051 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14052 (status_message): Use concat3.
14053 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14054 for a stopped network process.
14055 (Fset_process_buffer): Update contact plist for network process.
14056 (Fset_process_filter): Ditto. Don't enable input for stopped
14057 network processes. Server must listen, even if filter is t.
14058 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14059 New functions.
14060 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14061 (Fprocess_contact): Added KEY argument. Handle datagrams.
14062 (list_processes_1): Optionally show only processes with the query
14063 on exit flag set. Dynamically adjust column widths. Omit tty
14064 column if not needed. Report stopped network processes.
14065 Identify server and datagram network processes.
14066 (Flist_processes): New optional arg `query-only'.
14067 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14068 (conv_lisp_to_sockaddr, set_socket_options)
14069 (network_process_featurep, unwind_request_sigio): New helper functions.
14070 (Fprocess_datagram_address, Fset_process_datagram_address):
14071 (Fset_network_process_options): New lisp functions.
14072 (Fopen_network_stream): Removed. Now defined in simple.el.
14073 (Fmake_network_process): New lisp function. Code is based on previous
14074 Fopen_network_stream, but heavily reworked with new property list based
14075 argument list, support for datagrams, server processes, and local
14076 sockets in addition to old client-only functionality.
14077 (server_accept_connection): New function.
14078 (wait_reading_process_input): Use it to handle incoming connects.
14079 Do not enable input on a new connection if process is stopped.
f63fd14e 14080 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14081 (send_process): Handle datagram sockets.
14082 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14083 network process is indicated by setting command field to t .
14084 (Fprocess_send_eof): No-op if datagram connection.
14085 (Fstatus_notify): Don't read input for a stream server socket or a
14086 stopped network process.
14087 (init_process): Initialize datagram_address array.
14088 (syms_of_process): Intern and staticpro new variables, defsubr new
14089 functions.
14090
140912002-03-16 Jason Rumney <jasonr@gnu.org>
14092
14093 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14094 startup case.
14095
140962002-03-16 Richard M. Stallman <rms@gnu.org>
14097
14098 * xdisp.c (redisplay_internal, redisplay_windows):
14099 Use list_of_error to call internal_condition_case_1.
14100 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14101 so as to catch all errors with no possibility of debugger redisplay.
14102 (list_of_error): New variable.
14103 (syms_of_xdisp): Init and staticpro it.
14104
14105 * print.c (print_object): Delete `\ ' from printed rep of frame.
14106
141072002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14108
14109 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14110 until its implementation is fixed.
14111
141122002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14113
14114 * xfns.c (png_load): Remove unused variable `gamma_str'.
14115
141162002-03-14 Richard M. Stallman <rms@gnu.org>
14117
14118 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14119
141202002-03-14 Miles Bader <miles@gnu.org>
14121
14122 * intervals.c (adjust_for_invis_intang): New function.
14123 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14124 work for dealing with invisible+intangible regions. Do so before
14125 and after both forward and backward movements, to handle both
14126 front-sticky and rear-sticky cases.
14127 * textprop.c (text_property_stickiness): Function moved here from
14128 `editfns.c'.
14129 * intervals.h (text_property_stickiness): New declaration.
14130 * editfns.c (char_property_eq): Function removed.
14131 (text_property_stickiness): Function moved to `textprop.c'.
14132
141332002-03-13 Jason Rumney <jasonr@gnu.org>
14134
14135 * config.in: Add STRFTIME_NO_POSIX2.
14136
14137 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14138 and %OX when underlying strftime does not.
14139
141402002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14141
14142 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14143 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14144 line) to avoid annoying flicker.
14145 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14146 (XTread_socket): Mark it static.
14147
14148 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14149
141502002-03-13 Kim F. Storm <storm@cua.dk>
14151
14152 * puresize.h (BASE_PURESIZE): Increase to 775000.
14153
141542002-03-12 Juanma Barranquero <lektu@terra.es>
14155
14156 * editfns.c (syms_of_editfns): Fix typo.
14157
141582002-03-12 Gerd Moellmann <gerd@gnu.org>
14159
14160 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14161 Include termopt.h for interrupt_input.
14162
141632002-03-11 Andreas Schwab <schwab@suse.de>
14164
14165 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14166
141672002-03-11 Gerd Moellmann <gerd@gnu.org>
14168
14169 * xterm.c (note_mouse_movement): Put code for
14170 x_autoselect_window_p in #if 0.
14171
14172 * lread.c (Fload): Don't assume that message_with_string uses the
14173 string it is given like a C string.
14174
141752002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14176
78819ebb 14177 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14178
14179 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14180 x_session_have_connection.
14181 (x_initialize): Add call to x_session_initialize.
14182
14183 * termhooks.h (enum event_kind): Add save_session_event.
14184
14185 * keyboard.c: Add Emacs event save_session_event.
14186
14187 * emacs.c (main): Add call to syms_of_xsmfns.
14188
78819ebb 14189 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14190
14191 * config.in: Add HAVE_X_SM.
14192
14193 * Makefile.in (LIBXT): Add -lSM -lICE
14194 if HAVE_X_SM and not USE_X_TOOLKIT.
14195 (XOBJ): New file xsmfns.c added.
14196
14197 * xsmfns.c: New file for X session management.
14198
141992002-03-09 Jason Rumney <jasonr@gnu.org>
14200
14201 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14202 read-only when setting modified time.
14203
142042002-03-08 Gerd Moellmann <gerd@gnu.org>
14205
14206 * xdisp.c (move_it_vertically_backward): At the end of the function,
14207 when moving forward by lines, treat terminal frames specially.
14208
14209 * keyboard.c (echo_char): Make sure to add a separator between
14210 keys even if echo_dash hasn't been called.
14211
14212 * xdisp.c: Use new string macros.
14213 (update_echo_area): Pass number of bytes to message3 instead of
14214 number of chars.
14215 (set_message_1): Don't access a string's size_byte directly.
14216 (decode_mode_spec_coding): Use number of bytes of eoltype string
14217 instead number of chars.
14218
14219 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14220
142212002-03-08 Juanma Barranquero <lektu@terra.es>
14222
14223 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14224 24-bit.
14225
142262002-03-06 Jason Rumney <jasonr@gnu.org>
14227
14228 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14229
142302002-03-06 Gerd Moellmann <gerd@gnu.org>
14231
14232 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14233 (cancel_echoing, echo_length, echo_truncate): Changed to
14234 work with new kboard definition.
14235 (echo_now): Use message3_nolog instead of message2_nolog.
14236
14237 * alloc.c (mark_kboards): Mark echo_string.
14238
14239 * keyboard.h (ECHOBUFSIZE): Removed.
14240 (struct kboard): Member echoptr removed, member echobuf renamed
14241 to echo_string.
14242
14243 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14244 message3 instead of message2 to display the message using STRING's
14245 text properties.
14246
142472002-03-05 Andreas Schwab <schwab@suse.de>
14248
14249 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14250
142512002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14252
14253 * frame.c (default-frame-alist): Explain that setting it doesn't
14254 affect existing frames.
14255
142562002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14257
14258 * indent.c (skip_invisible): Fix my brain fart.
14259
14260 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14261
142622002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14263
14264 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14265 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14266 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14267 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14268 and variables to use EMACS_INT instead of just int.
14269
14270 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14271
142722002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14273
14274 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14275 environment, pass it down with corrected value.
14276
142772002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14278
14279 * lread.c (read_filtered_event): Do not call start_hourglass
14280 before returning.
14281
142822002-03-04 Juanma Barranquero <lektu@terra.es>
14283
14284 * w32term.c (x_display_and_set_cursor): Fix typo.
14285
142862002-03-03 Richard M. Stallman <rms@gnu.org>
14287
14288 * fileio.c (Fmake_temp_name): Doc fix.
14289
142902002-03-03 Gary Wong <gtw@gnu.org>
14291
14292 * termcap.c [!emacs]: Replace ospeed for building standalone
14293 libtermcap, for binary compatibility.
14294
14295 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14296
142972002-03-03 Richard M. Stallman <rms@gnu.org>
14298
14299 * xrdb.c (file_p): Rename arg `path' to `filename'.
14300
14301 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14302 only if it is an integer.
14303
14304 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14305 If png_get_sRGB gives an answer, call png_set_gamma
14306 using the default image gamma value.
14307
14308 * lread.c (read1): When reading from a file, default string to
14309 multibyte only if it has some multibyte characters.
14310
14311 * print.c (print_object): Output multibyte chars 128...255
14312 using \x even if ! print_escape_multibyte.
14313
14314 * xdisp.c (display_mode_element): Move the places where
14315 bytepos, charpos, this, and lisp_string are set.
14316 Use lisp_string to set bytepos.
14317
14318 * xdisp.c (redisplay_internal):
14319 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14320
14321 * xdisp.c (display_mode_element): Merge properties specified with
14322 :propertize onto those that come with the string.
14323
143242002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14325
14326 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14327 automatic-hscrolling. Users changed.
14328 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14329 Users changed.
14330 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14331
143322002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14333
14334 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14335
143362002-03-02 Kim F. Storm <storm@cua.dk>
14337
14338 * window.c (Fminibuffer_selected_window): New function.
14339 (syms_of_window): Defsubr it.
14340
143412002-03-01 Kim F. Storm <storm@cua.dk>
14342
14343 * window.h (struct window): New member phys_cursor_width.
14344
14345 * window.c (make_window, replace_window): Init phys_cursor_width.
14346
14347 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14348 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14349
14350 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14351 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14352
14353 * lisp.h (GCPRO6): New macro.
14354
14355 * process.c (Fopen_network_stream): Use GCPRO6.
14356
143572002-03-01 Kim F. Storm <storm@cua.dk>
14358
14359 * process.c (Qconnect, Qfailed): New variables.
14360 (syms_of_process): Intern and staticpro them.
14361 (Fprocess_status): Document connect and failed return values.
14362 [NON_BLOCKING_CONNECT]: New conditional.
14363 (connect_wait_mask, num_pending_connects): New variables.
14364 (status_message): Convert Qfailed status.
14365 (Fopen_network_stream): Added support for non-blocking connect.
14366 New optional args: filter, sentinel, non_blocking. Doc updated.
14367 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14368 (deactivate_process): Handle pending non-blocking connect.
14369 (wait_reading_process_input): Poll for status of non-blocking
14370 connects. Exec sentinel directly when connect succeeds.
14371 (status_notify): Don't read process output if not yet connected.
14372
143732002-02-28 Kim F. Storm <storm@cua.dk>
14374
14375 * window.c: (minibuf_selected_window): Renamed from
14376 Vminibuf_selected_window. Users changed.
14377 (syms_of_window): Staticpro it.
14378
143792002-02-26 Kim F. Storm <storm@cua.dk>
14380
14381 The following changes add a new Vminibuf_selected_window variable
14382 which is similar to Vminibuf_scroll_window, but which is only set
14383 on entry to the minibuffer (from a non-minibuffer window):
14384
14385 * window.c: (Vminibuf_selected_window): New variable.
14386 (struct save_window_data): New member minibuf_selected_window.
14387 (Fset_window_configuration): Restore Vminibuf_selected_window.
14388 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14389 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14390 (compare_window_configurations): Compare minibuf_selected_window.
14391
14392 * window.h: (Vminibuf_selected_window): Declare extern.
14393
14394 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14395 entry to minibuffer or on entry from a non-minibuffer window.
14396
14397 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14398 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14399
14400 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14401 instead of Vminibuf_scroll_window when deciding in which window
14402 the region should be highlighted. Consequently, the region remains
14403 highlighteded even when a completion buffer is also displayed.
14404
144052002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14406
14407 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14408
14409 * xselect.c (Qcompound_text_with_extensions): Renamed from
14410 Qcompound_text_no_extensions.
14411 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14412
144132002-02-26 Juanma Barranquero <lektu@terra.es>
14414
14415 * w32proc.c (syms_of_ntproc): Doc fix.
14416
144172002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14418
14419 * intervals.h: Include "dispextern.h" unconditionally.
14420
144212002-02-24 Jason Rumney <jasonr@gnu.org>
14422
14423 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14424 and disp-table.elc.
14425 (lisp): Add emacs-lisp/backquote.elc.
14426
144272002-02-24 Kim F. Storm <storm@cua.dk>
14428
14429 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14430 The validation of the event type was too strict as it didn't
14431 allow string events; buffer names are used in bindings for
14432 menu-bar-select-buffer (see `menu-bar-update-buffers').
14433
144342002-02-23 Kim F. Storm <storm@cua.dk>
14435
14436 The following changes rework my patch of 2002-02-06 which
14437 added command remapping by entering the commands directly into
14438 the keymaps. Now, command remapping uses an explicit `remap'
14439 prefix in the keymaps, i.e. [remap COMMAND].
14440
14441 * keymap.c (Qremap, remap_command_vector): New variables.
14442 (is_command_symbol): Removed function.
14443 (Fdefine_key): No longer accept a symbol for KEY.
14444 Added validation of [remap COMMAND] argument for KEY.
14445 The DEF is no longer required to be a symbol when remapping a command.
14446 (Fremap_command): New function to remap command through keymaps.
14447 (Flookup_key): Perform command remapping initiated by
14448 Fremap_command directly for speed.
14449 (Fkey_binding): Use Fremap_command for command remapping.
14450 (where_is_internal): Handle new command remapping representation.
14451 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14452 staticpro them. Defsubr Fremap_command.
14453
14454 * keymap.h (Fremap_command): Declare extern.
14455 (is_command_symbol): Remove extern.
14456
14457 * keyboard.c (command_loop_1): Use Fremap_command for command
14458 remapping; now try command remapping for all symbols.
14459
144602002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14461
14462 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14463
144642002-02-23 Jason Rumney <jasonr@gnu.org>
14465
14466 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14467 on the string before encoding it.
14468 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14469 after decoding it.
14470
14471 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14472
144732002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14474
14475 * w32term.c (enter_timestamp): Remove unused static variable to
14476 prevent warning.
14477
14478 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14479
144802002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14481
14482 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14483
14484 * xselect.c (selection_data_to_lisp_data): Fix last change.
14485
144862002-02-22 Jason Rumney <jasonr@gnu.org>
14487
14488 * w32term.h (struct w32_output): New member menu_command_in_progress.
14489
14490 * w32menu.c (menubar_selection_callback): Free the menu and
14491 clear the menu_command_in_progress flag.
14492
14493 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14494 (menu_free_timer): New variable.
14495 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14496 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14497 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14498 menu command is in progress.
14499 <WM_COMMAND>: Set the menu_command_in_progress flag.
14500 Kill any menu_free_timer that is running.
14501
14502 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14503 Call ExtTextOutA rather than ExtTextOut.
14504
145052002-02-22 Eli Zaretskii <eliz@gnu.org>
14506
14507 * puresize.h (BASE_PURESIZE): Increase to 755000.
14508
145092002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14510
14511 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14512 on the string before encoding it.
14513 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14514 after decoding it.
14515
145162002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14517
14518 Support for ICCCM Extended Segments in X selections:
14519
14520 * xselect.c <Qcompound_text_no_extensions>: New variable.
14521 (syms_of_xselect): Intern and staticpro it.
14522 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14523 selection text.
14524 (lisp_data_to_selection_data): If next-selection-coding-system is
14525 compound-text-no-extensions, set the type of selection to be
14526 compound-text.
14527
14528 * xterm.h (x_encode_text): Update prototype.
14529
14530 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14531 callers changed. If SELECTIONP is non-zero, run the
14532 pre-write-conversion function before encoding the selection text.
14533
145342002-02-21 Kim F. Storm <storm@cua.dk>
14535
14536 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14537
14538 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14539 Correct composing of language-change event.
14540
145412002-02-20 Kim F. Storm <storm@cua.dk>
14542
14543 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14544 bindings at PT when building menu (the menu is not updated often
14545 enough for this to work reliable).
14546 (tool_bar_items): Likewise.
14547 (current_active_maps): Removed unused (and buggy) function.
14548
145492002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14550
14551 * xfns.c (gif_load): Use correct width and height for GIF images.
14552
145532002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14554
14555 * floatfns.c (Fatan): Accept an optional second arg and call
14556 atan2 if passed 2 args.
14557
145582002-02-18 Jason Rumney <jasonr@gnu.org>
14559
14560 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14561
145622002-02-17 Jason Rumney <jasonr@gnu.org>
14563
14564 * w32term.c (x_autoselect_window_p): New variable.
14565 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14566 (note_mouse_movement): Use it.
14567
14568 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14569
14570 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14571
14572 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14573 New variables.
14574 (syms_of_w32fns): Intern and staticpro them.
14575 (x_frame_parms) <"fullscreen">: New parameter.
14576 (x_fullscreen_move, x_set_fullscreen): New functions.
14577 (x_set_frame_parameters): Support Qfullscreen.
14578 (x_real_positions): Save x/y_pixels_diff frame params.
14579 (x_figure_window_size): Support full-screen frames.
14580 (Fx_create_frame): Default the fullscreen parameter.
14581
14582 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14583 (x_fullscreen_adjust): New functions.
14584 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14585 fullscreen. Call x_check_fullscreen_move, and set the
14586 want_fullscreen member of output_data.w32
14587 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14588
14589 * w32term.h: New enum for FULLSCREEN_* constants.
14590 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14591 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14592 (x-fullscreen-adjust): New prototype.
14593
145942002-02-17 Kim F. Storm <storm@cua.dk>
14595
14596 * frame.c: (Vmouse_highlight): New variable.
14597 (syms_of_frame): DEFVAR_LISP it.
14598
14599 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14600
048addec 14601 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14602
048addec
JD
14603 * xterm.c (disable_mouse_highlight): Removed variable.
14604 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14605 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14606 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14607 and on after keyboard input.
14608 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14609
048addec 14610 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14611
048addec
JD
14612 * msdos.c (disable_mouse_highlight): Removed variable.
14613 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14614 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14615 (internal_terminal_init): Initialize mouse_face_hidden.
14616 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14617 and on after keyboard input.
4f1b1854 14618
048addec 14619 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14620
048addec
JD
14621 * w32term.c (disable_mouse_highlight): Removed variable.
14622 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14623 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14624 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14625 and on after keyboard input.
14626 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14627
048addec 146282002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14629
048addec
JD
14630 * msdos.c (last_mouse_window): New variable.
14631 (dos_rawgetc): Fix last change--if the mouse is in the same window
14632 as recorded in last_mouse_window, don't select this window.
5cb6905d 14633
048addec 14634 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14635
048addec
JD
14636 * msdos.c (x_autoselect_window_p): New variable.
14637 (syms_of_msdos): Defvar it.
14638 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14639 which the last mouse movement occured, unless it is already selected.
437dfb9f 14640
048addec
JD
14641 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14642 New variables.
14643 (syms_of_xdisp): DEVFAR them.
14644 (hscroll_window_tree): Use automatic_hscroll_margin and
14645 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14646
048addec 146472002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14648
048addec
JD
14649 * xterm.c (x-autoselect-window): New variable.
14650 (note_mouse_movement): Use it.
9f696a00 14651
048addec 14652 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14653
048addec 146542002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14655
bfa02563 14656 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14657
048addec 14658 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14659
048addec 146602002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14661
048addec 14662 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14663
048addec
JD
14664 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14665 (Vx_super_keysym): New variables.
14666 (syms_of_xterm): DEFVAR_LISP them.
14667 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14668 variables to determine which keys to use for the various modifiers.
a474d59c 14669
048addec 146702002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14671
048addec
JD
14672 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14673 (mode_line_in_non_selected_windows): New variable.
14674 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14675
048addec
JD
14676 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14677 Use mode_line_in_non_selected_windows.
14678 (mode_line_in_non_selected_windows): Declare extern.
14679 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14680
048addec 146812002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14682
048addec
JD
14683 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14684 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14685 (Fclear_this_command_keys): Doc fixes.
2d10309f 14686
048addec
JD
14687 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14688 (update_face_from_frame_parameter): Increment face_change_count
14689 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14690
048addec
JD
14691 * xdisp.c (QCpropertize): New variable.
14692 (mode_line_proptrans_alist): New variable.
14693 (display_mode_element): New arg PROPS; all calls changed.
14694 Implement this, for strings.
14695 Handle literal output of strings by sharing the
14696 main-line code for strings, using local var `literal'.
14697 Handle :propertize feature.
14698 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14699 mode_line_proptrans_alist.
0b1e6b54 14700
048addec 147012002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14702
048addec
JD
14703 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14704 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14705
048addec
JD
14706 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14707 (CURRENT_MODE_LINE_FACE_ID): Use it.
14708 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14709
048addec
JD
14710 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14711 to get mode line face.
e17144de 14712
048addec 147132002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14714
048addec
JD
14715 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14716 variables; cus-start.el doesn't need them anymore.
44368f8f 14717
048addec 147182002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14719
048addec
JD
14720 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14721 reduction. This fixes a display problem where stray newlines were
14722 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14723
048addec 147242002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14725
048addec 14726 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14727
048addec 14728 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14729
048addec 147302002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14731
048addec
JD
14732 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14733 match each other.
14734 (w32_load_system_font): Prevent Cleartype fonts from loading.
14735 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14736
048addec 147372002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14738
048addec
JD
14739 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14740 (CURRENT_MODE_LINE_HEIGHT): Use it.
14741 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14742
048addec
JD
14743 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14744 (pos_visible_p, handle_face_prop): Likewise.
14745 (display_mode_lines): Likewise, but for the real selected window.
14746 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14747
048addec
JD
14748 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14749 in non-selected windows.
14750 (realize_basic_faces): Realize it.
14751 (syms_of_term): Intern and staticpro it.
308dd672 14752
048addec 147532002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14754
048addec
JD
14755 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14756 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14757
048addec 147582002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14759
048addec
JD
14760 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14761 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14762
048addec 14763 * floatfns.c (Fround): Doc fix.
3c1e6b46 14764
048addec 147652002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14766
048addec 14767 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14768
048addec 147692002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14770
048addec 14771 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14772
048addec 147732002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14774
048addec
JD
14775 * keymap.c (where_is_internal): Only check whether definition is
14776 remapped if it fulfills is_command_symbol.
0065bb74 14777
048addec 147782002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14779
048addec 14780 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14781
048addec 14782 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14783
048addec 147842002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14785
048addec
JD
14786 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14787 defining command remapping. Doc updated.
14788 (Flookup_key): Remap command through keymap if KEY is a symbol.
14789 (is_command_symbol): New function.
14790 (Fkey_binding): Use it. New optional argument NO-REMAP.
14791 Doc updated. Callers changed. Perform command remapping via
14792 recursive call unless that arg is non-nil.
14793 (where_is_internal): New argument no_remap. Callers changed.
14794 Call recursively to find original key bindings for a remapped
14795 comand unless that arg is non-nil.
14796 (Fwhere_is_internal): New optional argument NO-REMAP.
14797 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14798
048addec
JD
14799 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14800 (is_command_symbol): Added prototype.
0d8466cc 14801
048addec
JD
14802 * keyboard.c (Vthis_original_command): New variable.
14803 (syms_of_keyboard): DEFVAR_LISP it.
14804 (command_loop_1): Set it, and perform command remapping.
15fff01d 14805
048addec 148062002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14807
048addec 14808 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14809
048addec 148102002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14811
048addec 14812 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14813
048addec 148142002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14815
048addec 14816 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14817
048addec 148182002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14819
048addec 14820 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14821
048addec 148222002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14823
048addec 14824 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14825
048addec
JD
14826 * lread.c (read1): Redesign strategy for force_multibyte and
14827 force_singlebyte. Now is_multibyte records whether read_buffer
14828 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14829
048addec 148302002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14831
048addec
JD
14832 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14833 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14834
048addec 148352002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14836
048addec
JD
14837 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14838 latter never being defined on GNU/Linux.
749f499f 14839
048addec 148402002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14841
048addec
JD
14842 * xfaces.c (realize_default_face): Don't set the weight and slant of
14843 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14844
048addec 148452002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14846
048addec
JD
14847 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14848 Call cancel_hourglass unconditionally.
d0fd26dd 14849
048addec
JD
14850 * eval.c (Fsignal): Remove duplicated declaration of
14851 the variable `display_hourglass_p'.
b4c45162 14852
048addec 148532002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14854
048addec 14855 * editfns.c (region_limit): Nicer error message.
c95eaa61 14856
048addec
JD
14857 * coding.c (decode_composition_emacs_mule):
14858 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14859
048addec
JD
14860 * callint.c (check_mark): New arg to specify clearer error message.
14861 Callers changed.
c95eaa61 14862
048addec 148632002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14864
048addec 14865 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14866
048addec 148672002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14868
048addec
JD
14869 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14870 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14871 Fix doc-strings.
c95eaa61 14872
048addec 148732002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14874
048addec 14875 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14876
048addec
JD
14877 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14878 and scroll_up_aggressively.
c95eaa61 14879
048addec 148802002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14881
048addec 14882 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14883
048addec 148842002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14885
048addec
JD
14886 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14887 (Fprevious_property_change, Fprevious_single_property_change):
14888 Stay within the narrowed-buffer boundaries.
e2c3786a 14889
048addec 148902002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14891
048addec
JD
14892 * term.c (Ftty_display_color_cells): New function.
14893 (syms_of_term): Defsubr it.
14894 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14895 argument name to DISPLAY. Doc fix.
bf794306 14896
048addec
JD
14897 * dispextern.h: Add prototype for set_tty_color_mode and
14898 tty_setup_colors.
bf794306 14899
048addec 149002002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14901
048addec
JD
14902 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14903 If region left to draw is not what was expected, mark the frame as
14904 garbaged.
62582985 14905
048addec
JD
14906 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14907 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14908
048addec 149092002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14910
048addec
JD
14911 * w32term.c (x_update_window_begin): Only hide caret if
14912 w32_use_visible_system_caret is set.
14913 (x_update_window_end): Only show caret if
14914 w32_use_visible_system_caret is set.
14915 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14916
048addec 14917 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14918
048addec 149192002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14920
048addec
JD
14921 * unexelf.c (unexec): Define n so as to cause compilation error
14922 for the code where people have often written n instead of nn.
1e9a6186 14923
048addec 14924 * .gdbinit (hookpost-run): Defined.
1e9a6186 14925
048addec 149262002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14927
048addec 14928 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14929
048addec 149302002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14931
048addec
JD
14932 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14933 if fullscreen is being set.
7c75be36 14934
048addec 149352002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14936
048addec
JD
14937 * minibuf.c (Fminibuffer_contents)
14938 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14939 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14940
048addec 149412002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14942
048addec 14943 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14944
048addec 149452002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14946
048addec
JD
14947 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14948 height before comparison.
14949 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14950
048addec 149512002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14952
048addec
JD
14953 * w32term.c (w32_system_caret_width): Remove.
14954 (w32_use_visible_system_caret): New user flag.
14955 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14956 Windows reports a screen reader running.
14957 (x_update_window_begin): Hide the system caret.
14958 (x_update_window_end): Show the system caret.
14959 (x_display_and_set_cursor): Don't draw a cursor when
14960 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14961
048addec
JD
14962 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14963 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14964 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14965 the user requests it. Use system default width when creating.
14966 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14967
048addec
JD
14968 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14969 New window messages.
905cc05a 14970
048addec 149712002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14972
048addec 14973 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14974
048addec 149752002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14976
048addec 14977 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14978
048addec 149792002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14980
048addec 14981 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14982
048addec 149832002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14984
048addec
JD
14985 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14986 that Windows returns. If a double check fails, try to guess how
14987 ExtTextOut is going to act.
4d0fa4f3 14988
048addec
JD
14989 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14990 in place of stricmp.
14991 (w32_list_synthesized_fonts): Removed.
14992 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14993 (struct enumfont_t): New element; list.
14994 (enum_font_cb2): List all style and charset variations of a font.
14995 (Fw32_select_font): New optional argument; include_proportional.
14996 Exclude vertical fonts. Exclude proportional fonts unless
14997 include_proportional is non-nil.
14998 (w32_enable_synthesized_fonts): Change to a boolean.
14999 (Fw32_send_sys_command): Doc fix.
493faf20 15000
048addec 150012002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15002
048addec
JD
15003 * dispnew.c (update_frame): Move the variable `tem' to the block
15004 where it is used.
4971e491 15005
048addec 150062002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15007
048addec
JD
15008 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15009 call to face-set-after-frame-default.
4971e491 15010
048addec 150112002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15012
048addec
JD
15013 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15014 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15015
048addec 150162002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15017
048addec
JD
15018 * window.c (enlarge_window): When exceeding size of parent,
15019 directly delete all the siblings instead of trying to resize it.
201c831a 15020
048addec 150212002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15022
048addec 15023 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15024
048addec 150252002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15026
048addec 15027 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15028
048addec 150292002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15030
048addec
JD
15031 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15032 is invisible. This can happen if cursor is on top line of a
15033 window, and we switch to a buffer with a header line.
d77fbc16 15034
048addec 15035 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15036
048addec 150372002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15038
048addec
JD
15039 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15040 `dont_resize' only when used.
61e3b944 15041
048addec 15042 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15043
048addec 150442002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15045
048addec
JD
15046 * xdisp.c (display_mode_element): When computing charpos, depend
15047 on multibyteness of elt, not the text in field.
8af01033 15048
048addec 150492002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15050
048addec
JD
15051 * buffer.c (Fkill_all_local_variables):
15052 Increment `update_mode_lines' only once.
7363986a 15053
048addec 150542002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15055
048addec
JD
15056 * lisp.h (adjust_after_replace_noundo)
15057 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15058
048addec 15059 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15060
048addec 150612002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15062
048addec
JD
15063 Support for the --color command-line argument and tty-color-mode
15064 frame parameter:
f1a85b89 15065
048addec
JD
15066 * term.c (tty_default_color_capabilities, tty_setup_colors)
15067 (set_tty_color_mode): New functions.
15068 (term_init): Call tty_default_color_capabilities.
15069 (Qtty_color_mode_alist): New variable.
15070 (syms_of_term): Intern and staticpro it.
f1a85b89 15071
048addec
JD
15072 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15073 frames.
15074 (do_switch_frame): For termcap frames, switch the tty
15075 color mode as specified by the frame's parameters.
15076 (Qtty_color_mode): New variable.
15077 (syms_of_frame): Intern and staticpro it.
3a62677f 15078
048addec
JD
15079 * emacs.c (USAGE2): Add the --color option.
15080 (standard_args): Ditto.
72244db2 15081
048addec
JD
150822002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15083
15084 * xterm.h (struct x_output): New members want_fullscreen,
15085 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15086 y_pixels_outer_diff.
15087 New enum for FULLSCREEN_* constants.
15088 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15089 is NULL.
15090 (x_fullscreen_adjust): Add prototype.
3a62677f 15091
048addec
JD
15092 * emacs.c (USAGE2): Add the new full-screen arguments.
15093 (standard_args): Ditto.
3a62677f 15094
048addec
JD
15095 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15096 New variables.
15097 (syms_of_xfns): Intern and staticpro them.
15098 (x_frame_parms) <"fullscreen">: New parameter.
15099 (x_fullscreen_move, x_set_fullscreen): New functions.
15100 (x_set_frame_parameters): Support for Qfullscreen.
15101 (x_real_positions): More accurate computation of the frame position.
15102 (x_figure_window_size): Support full-screen frames.
15103 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15104
048addec
JD
15105 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15106 (XTread_socket) <Expose>: Call x_check_fullscreen.
15107 <ConfigureNotify>: Don't resize to fullscreen.
15108 Call x_check_fullscreen_move, and set the want_fullscreen member of
15109 output_data.x.
3a62677f 15110
048addec 151112002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15112
048addec
JD
15113 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15114 for mice with more than 3 buttons.
b8523839 15115
048addec
JD
15116 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15117 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15118
048addec
JD
15119 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15120 (syms_of_w32fns): DEFVAR_BOOL it.
15121 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15122
048addec 151232002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15124
048addec 15125 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15126
048addec 151272002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15128
048addec 15129 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15130
048addec 151312002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15132
048addec
JD
15133 * .gdbinit (xbuffer): Remove address operator since data is now a
15134 pointer.
c93674bb 15135
048addec 151362002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15137
048addec 15138 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15139
048addec 15140 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15141
048addec 151422002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15143
048addec
JD
15144 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15145 when checking for multiple frames.
91175673 15146
048addec 151472002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15148
048addec
JD
15149 * window.c (delete_window): Rewrite the code for changing the
15150 selected window to handle the case where WINDOW is not a leaf.
91175673 15151
048addec 151522002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15153
048addec
JD
15154 * process.c (send_process): Set src_multibyte to 1 after the call
15155 top setup_coding_system, not before the call.
e0fead5d 15156
048addec 151572002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15158
048addec
JD
15159 * xmenu.c (set_frame_menubar, xmenu_show):
15160 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15161
048addec
JD
15162 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15163 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15164
048addec 151652002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15166
048addec 15167 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15168
048addec 15169 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15170
048addec 15171 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15172
048addec 151732002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15174
048addec
JD
15175 * insdel.c (make_gap_larger): Make sure buffer size does not
15176 overflow range of int.
62854fe2 15177
048addec 151782002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15179
048addec
JD
15180 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15181 OVERLAPS_P.
656f46bb 15182
048addec 15183 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15184
048addec
JD
15185 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15186 to the left or to the right of the pointer, put it against
15187 the left screen edge.
15188 (x_frame_parms): Add missing braces around initializer.
036e218d 15189
048addec
JD
15190 * w32term.c (x_setup_relief_colors): Don't compute an image's
15191 background color if it doesn't have a Pixmap.
15192 (notice_overwritten_cursor): Don't depend on
15193 output_cursor and updated_area. Compare pixel coordinates with
15194 window's cursor pixel coordinates.
15195 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15196 Call notice_overwritten_cursor with new arg list.
15197 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15198 unconditionally.
15199 (x_draw_image_relief): Use predefined macro instead of
15200 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15201
048addec 15202 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15203
048addec 152042002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15205
048addec 15206 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15207
048addec 152082002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15209
048addec
JD
15210 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15211 (Fkey_binding): Try the `keymap' property map first.
15212 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15213 minor mode bindings.
90647b07 15214
048addec 152152002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15216
048addec 15217 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15218
048addec 152192002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15220
048addec
JD
15221 * keyboard.c (read_key_sequence): Handle the keymap property
15222 before minor mode maps.
9fbc32aa 15223
048addec
JD
15224 * editfns.c (Fformat): Update thissize from field_width
15225 based on the actual width, in the string case.
036e218d 15226
048addec 152272002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15228
048addec
JD
15229 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15230 when used as truth value to prevent gcc warnings.
9fbc32aa 15231
048addec
JD
15232 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15233 * w32proc.c: Include <config.h>.
9fbc32aa 15234
048addec 152352002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15236
048addec
JD
15237 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15238 not EMACS_INT, to make them compatible with DEFVAR_INT.
15239 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15240
048addec 152412002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15242
048addec
JD
15243 * print.c (print_object): Test print_escape_nonascii only for
15244 unibyte strings.
15245 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15246 when outputting to a multibyte buffer.
9fbc32aa 15247
048addec 152482001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15249
048addec
JD
15250 * print.c (print_object): In multibyte string, use hex escapes.
15251 Use octal only for unibyte strings.
15252 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15253
048addec
JD
15254 * lread.c (read_escape): New arg BYTEREP for reporting whether
15255 escape forces unibyte or multibyte.
15256 (read1): When reading a string, take note of that info.
0142178a 15257
048addec 152582001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15259
048addec
JD
15260 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15261 comparison to test lisp value returned by Fget.
d4824a5d 15262
048addec 152632001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15264
048addec 15265 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15266
048addec 15267 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15268
048addec
JD
15269 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15270 Handle modifier bits. Correct typo in error message.
99e380ee 15271
048addec 152722001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15273
048addec
JD
15274 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15275 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15276 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15277 Update calls to Fdefine_abbrev.
15278 (write_abbrev): Update for changed data format.
15279 Don't list "system" abbrevs.
15280 (Fexpand_abbrev): Update use count with new data format.
15281 (describe_abbrev): Update for changed data format.
15282 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15283
048addec 15284 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15285
048addec 15286 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15287
048addec
JD
15288 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15289 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15290
048addec
JD
15291 * keymap.c (Flookup_key): Error message if key has wrong data type.
15292 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15293 (exclude_key): New variable.
59a86c99 15294
048addec 152952001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15296
048addec
JD
15297 * xterm.c (x_setup_relief_colors): Don't compute an image's
15298 background color if it doesn't have a Pixmap.
eb77a5f4 15299
048addec
JD
15300 * xterm.c (notice_overwritten_cursor): Don't depend on
15301 output_cursor and updated_area. Compare pixel coordinates with
15302 window's cursor pixel coordinates.
15303 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15304 Call notice_overwritten_cursor with new arg list.
15305 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15306 unconditionally.
eb77a5f4 15307
048addec
JD
15308 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15309 height of the cursor line to the amount to scroll.
eb77a5f4 15310
048addec 153112001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15312
048addec
JD
15313 * intervals.c (set_point_both): The position after an invisible,
15314 intangible character is not an acceptable stopping point.
bb313871 15315
048addec 153162001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15317
048addec
JD
15318 * window.c (enlarge_window): In new preserve_before code, convert
15319 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15320
048addec 153212001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15322
048addec 15323 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15324
048addec 153252001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15326
048addec
JD
15327 * keyboard.c (record_char): Ignore duplicate help-echo events only
15328 separated by mouse-movement. When tracking mouse, only record
15329 first and last mouse-movement event in same window.
15330 Don't record mouse-movement events in keyboard macros.
3ce081f5 15331
048addec 153322001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15333
048addec
JD
15334 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15335 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15336
048addec
JD
15337 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15338 instead of Fstring_as_unibyte.
9fabb2f5 15339
048addec 153402001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15341
048addec 15342 The following changes remove mocklisp support:
9fabb2f5 15343
048addec 15344 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15345
048addec
JD
15346 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15347 `Qmocklisp' and `Qmocklisp_arguments'.
15348 Remove prototype of syms_of_mocklisp.
2fa0eedf 15349
048addec 15350 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15351
048addec
JD
15352 * callint.c: Do not include mocklisp.h.
15353 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15354
048addec
JD
15355 * eval.c: Remove variables `Qmocklisp_arguments',
15356 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15357 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15358 Do not test for mocklisp case.
15359 (Fwhile): Remove unused variable `tem'.
15360 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15361
048addec 15362 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15363
048addec 15364 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15365
048addec 15366 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15367
048addec 153682001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15369
048addec
JD
15370 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15371 to the left or to the right of the pointer, put it against
15372 the left screen edge.
6108b49c 15373
048addec 153742001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15375
048addec
JD
15376 * Makefile.in (distclean): Remove .gdbinit if we are building
15377 outside the source tree.
5eea19a4 15378
048addec 153792001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15380
048addec 15381 * w32.c (emacs_root_dir): New function.
5eea19a4 15382
048addec 15383 * msdos.c (emacs_root_dir): New function.
5eea19a4 15384
048addec
JD
15385 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15386 of the current drive as the fallback for default_directory.
438e57dd 15387
048addec
JD
15388 * dired.c (file_name_completion): Run the elements of
15389 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15390
048addec
JD
15391 * lisp.h (scmp): Remove prototype, since it's now a static
15392 function private to dired.c.
c88e5347 15393
048addec 153942001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15395
048addec
JD
15396 * dired.c (scmp): Function moved from minibuf.c.
15397 Delete multibyte handling--used only on encoded strings.
59ce1461 15398
048addec 15399 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15400
048addec 15401 * fns.c (merge): Add QUIT call.
59ce1461 15402
048addec 154032001-12-18 Dave Love <fx@gnu.org>
8727d588 15404
048addec
JD
15405 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15406 language/georgian.el.
8727d588 15407
048addec 154082001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15409
048addec
JD
15410 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15411 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15412
048addec 154132001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15414
048addec
JD
15415 * xdisp.c (window_box_height): Do not return negative values.
15416 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15417
048addec 15418 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15419
048addec 15420 * term.c (keys): Likewise.
deece6f5 15421
048addec 15422 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15423
048addec 154242001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15425
048addec
JD
15426 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15427 patch (COMPOSING_P, not COMPOSING).
28ff4293 15428
048addec 154292001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15430
048addec 15431 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15432
048addec
JD
15433 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15434 before calling decode_coding.
9b46de40 15435
048addec 15436 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15437
048addec
JD
15438 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15439 instead of only for COMPOSITION_DISABLED.
9b46de40 15440
048addec 154412001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15442
048addec 15443 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15444
048addec 15445 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15446
048addec
JD
15447 * buffer.h (struct buffer): New field `display_error_modiff'.
15448 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15449
048addec 15450 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15451
048addec
JD
15452 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15453 Call redisplay_window, but not if display_error_modiff field says no.
15454 (redisplay_window_error): New function.
15455 (displayed_buffer): New variable.
15456 (redisplay_internal, redisplay_windows): Call the new functions
15457 instead of redisplay_window directly.
2cd23960 15458
048addec 154592001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15460
048addec 15461 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15462
048addec 154632001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15464
048addec 15465 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15466 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15467 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15468
048addec 154692001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15470
048addec
JD
15471 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15472 parameter have a numeric value all the time.
f6fa0866 15473
048addec 15474 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15475
048addec 154762001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15477
048addec 15478 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15479
048addec
JD
15480 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15481 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15482
048addec 154832001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15484
048addec
JD
15485 * xdisp.c (move_it_vertically_backward): Change heuristic
15486 for the case that we didn't move far enough initially.
91c153e2 15487
048addec
JD
15488 * window.c (Frecenter): Simplify computation in the case of window
15489 system frames and ARG < 0; use window_box_height.
65b7d3e7 15490
048addec 154912001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15492
048addec
JD
15493 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15494 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15495
048addec 154962001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15497
048addec
JD
15498 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15499 arg is negative.
be676094 15500
048addec 155012001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15502
048addec
JD
15503 * m/hp800.h: Split the __hpux conditional into the parts
15504 that are right for GNU/Linux too and the parts that are not.
15505 Use the former if GNU_LINUX.
15506 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15507
048addec 15508 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15509
048addec 155102001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15511
048addec
JD
15512 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15513 `new style' [w/`doc:' keyword].
032a857d 15514
048addec 155152001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15516
048addec
JD
15517 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15518 before using.
b6270150 15519
048addec 155202001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15521
048addec
JD
15522 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15523 keyword].
98cbb9fa 15524
048addec 155252001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15526
048addec 15527 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15528
048addec 15529 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15530
048addec 155312001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15532
048addec 15533 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15534 Add comment to explain where the struct came from.
048addec
JD
15535 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15536 (add_menu_item): Process pop-up menus first to avoid memory leak.
15537 (add_menu_item, w32_menu_display_help): Use `help' field as
15538 Lisp_Object.
15539 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15540
048addec 155412001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15542
048addec 15543 * COPYING: Moved back.
fa336b91 15544
048addec
JD
15545 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15546 Add parentheses around && within ||.
077907d4 15547
048addec 15548 * indent.c (compute_motion): Likewise.
aa2af83a 15549
048addec 15550 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15551
048addec
JD
15552 * coding.c (setup_coding_system, shrink_encoding_region)
15553 (Fdecode_sjis_char): Likewise.
60a653f1 15554
048addec 155552001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15556
048addec
JD
15557 * xdisp.c (display_mode_element): Don't read past end of string if
15558 it ends with '%'.
60a653f1 15559
048addec
JD
15560 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15561 can hold.
60a653f1 15562
048addec
JD
15563 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15564 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15565 type changed to Lisp_Object.
15566 (syms_of_data): DEFVAR_LISP them.
60a653f1 15567
048addec 155682001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15569
048addec
JD
15570 * callproc.c (init_callproc): Set Vdata_directory based on the source
15571 location whenever Emacs was run uninstalled.
60a653f1 15572
048addec 155732001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15574
048addec
JD
15575 * config.in (HAVE_WORKING_VFORK): New #undefs.
15576 * process.c (create_process):
15577 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15578 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15579 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15580 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15581 * m/intel386.h (HAVE_VFORK): Likewise.
15582 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15583 * m/mips.h (HAVE_VFORK): Likewise.
15584 * s/freebsd.h (vfork): Remove #define.
15585 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15586 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15587
048addec 155882001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15589
048addec
JD
15590 * s/hpux10.h (random): Add undef.
15591 (HAVE_RANDOM): Define it just once.
60a653f1 15592
048addec 155932001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15594
048addec 15595 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15596
048addec 155972001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15598
048addec
JD
15599 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15600 scroll bars of the frame before deleting the frame itself. If the
15601 frame has a widget, delete the frame with XtDestroyWidget, and do
15602 not call XDestroyWindow before that.
60a653f1 15603
048addec 156042001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15605
048addec 15606 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15607
048addec 15608 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15609
048addec 156102001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15611
048addec
JD
15612 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15613 excessively large.
60a653f1 15614
048addec
JD
15615 * insdel.c (make_gap_larger): New function.
15616 (make_gap_smaller): New function.
15617 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15618 Call make_gap_smaller if arg is negative.
60a653f1 15619
048addec 156202001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15621
048addec
JD
15622 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15623 Pass a dummy argument when calling interrupt_signal.
15624 (parse_menu_item): Mark disabled items before checking for empty def.
15625 (read_char_minibuf_menu_prompt): Make safety more visible.
15626 (read_key_sequence): Add a `first_unbound' variable.
15627 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15628 unbound prefix as soon as we can detect it.
60a653f1 15629
048addec
JD
15630 * doc.c (Fsnarf_documentation): Add prototype.
15631 (get_doc_string): Handle negative arguments.
15632 (Fdocumentation): Use AREF and ASIZE.
15633 Move the calls to get_doc_string to a single place.
15634 Don't confuse an interactive-spec for a docstring reference.
15635 (Fdocumentation_property): Take advantage of the fact that
15636 get_doc_string now ignores the sign of the docstring position.
60a653f1 15637
048addec 15638 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15639
048addec 156402001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15641
a64387ee 15642 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15643
048addec 156442001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15645
048addec
JD
15646 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15647 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15648
048addec 156492001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15650
048addec
JD
15651 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15652 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15653
048addec 15654 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15655
048addec 156562001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15657
048addec 15658 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15659
048addec 156602001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15661
048addec 15662 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15663
048addec 156642001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15665
f63fd14e 15666 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15667
048addec
JD
15668 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15669 [!WM_MOUSELEAVE]: Define.
60a653f1 15670
048addec
JD
15671 * w32menu.c (current_popup_menu, get_menu_item_info):
15672 (set_menu_item_info): New vars.
15673 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15674 (w32_menu_show): Set current_popup_menu.
15675 (add_menu_item): Allocate new strings for owner-drawn menu items
15676 and help strings.
15677 Use owner-draw for disabled menu items again.
15678 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15679 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15680
048addec
JD
15681 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15682 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15683 <WM_EXITMENULOOP>: Free menu strings.
15684 <WM_MOUSELEAVE>: Stop tracking mouse.
15685 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15686
048addec
JD
15687 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15688 and mouse face.
60a653f1 15689
048addec 156902001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15691
048addec
JD
15692 The following changes add left-fringe and right-fringe
15693 frame parameters to adjust fringe widths, or remove one or
15694 both fringes.
60a653f1 15695
048addec
JD
15696 * frame.h (struct frame): Remove trunc_area_pixel_width and
15697 trunc_area_cols fields.
15698 (Qleft_fringe, Qright_fringe): Declare.
15699 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15700
048addec
JD
15701 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15702 (syms_of_frame): Initialize them.
60a653f1 15703
048addec
JD
15704 * window.c (coordinates_in_window): Handle separate left and right
15705 fringe widths.
60a653f1 15706
048addec
JD
15707 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15708 and fringe_cols fields.
15709 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15710 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15711 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15712 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15713 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15714 (x_compute_fringe_widths): Add prototype.
60a653f1 15715
048addec
JD
15716 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15717 fill fringe evenly with small dashes.
f63fd14e 15718 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15719 clip the new ZV bitmap to avoid jitter between rows.
15720 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15721 background. Don't draw fringe bitmaps if fringe width is zero.
15722 (x_compute_fringe_widths): New function.
15723 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15724
048addec
JD
15725 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15726 (x_set_frame_parameters): Process `font' parameter before other
15727 parameters as fringe widths depend on it.
15728 (x_set_fringe_width): New function.
15729 (x_figure_window_size): Use x_compute_fringe_widths.
15730 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15731 parameters.
60a653f1 15732
048addec
JD
15733 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15734 (EmacsFrameSetCharSize): Ditto.
60a653f1 15735
048addec
JD
15736 * w32term.h: Merged changes from xterm.h.
15737 * w32term.c: Merged changes from xterm.c.
15738 * w32fns.c: Merged changes from xfns.c.
60a653f1 15739
048addec 157402001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15741
048addec 15742 * COPYING: Removed.
60a653f1 15743
048addec 157442001-11-29 Dave Love <fx@gnu.org>
60a653f1 15745
048addec
JD
15746 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15747 extra extra slot.
15748 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15749
048addec 157502001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15751
048addec
JD
15752 * fileio.c (file-name-coding-system)
15753 (default-file-name-coding-system): Doc fix (links to referenced
15754 variables added).
60a653f1 15755
048addec 157562001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15757
048addec
JD
15758 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15759 Add dummy uses of gcproN variables.
60a653f1 15760
048addec
JD
15761 * category.c (describe_category, describe_category_1)
15762 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15763 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15764
048addec 157652001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15766
048addec 15767 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15768
048addec
JD
15769 * Makefile.in (lispdir): New variable, referring to build dir.
15770 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15771
048addec 157722001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15773
048addec
JD
15774 * w32menu.c (w32_menu_display_help): Actually add the new argument
15775 OWNER.
60a653f1 15776
048addec 157772001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15778
048addec
JD
15779 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15780 menu items. From David Ponce <dponce@wanadoo.fr>.
15781 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15782 conditionally.
f63fd14e 15783 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15784 help event in the owner frame's keyboard buffer.
60a653f1 15785
048addec
JD
15786 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15787 (Fx_show_tip): Don't subtract last width from row width.
15788
15789 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15790 (w32_read_socket): Use EQ to compare frames.
60a653f1 15791
048addec 157922001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15793
048addec
JD
15794 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15795 OVERLAPS_P.
60a653f1 15796
048addec 157972001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15798
048addec
JD
15799 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15800 `gcpro3' and `gcpro4'.
60a653f1 15801
048addec 15802 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15803
048addec 158042001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15805
048addec 15806 * ccl.c: Use AREF and ASIZE.
60a653f1 15807
048addec 158082001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15809
048addec
JD
15810 * lisp.h (run_hook_list_with_args): Remove.
15811 (LIST_END_P): Fix call to wrong_type_argument.
15812 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15813
048addec 158142001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15815
048addec
JD
15816 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15817 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15818
048addec
JD
15819 * eval.c: Use AREF and ASIZE.
15820 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15821
048addec
JD
15822 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15823 which match the end of the file-name.
15824 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15825 is not a valid env var, but leave it as is instead.
60a653f1 15826
048addec
JD
15827 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15828 Make nil bindings in char-tables transparent.
15829 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15830
048addec 158312001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15832
048addec
JD
15833 * textprop.c (set_text_properties_1): Allow START, END in either order.
15834 Do nothing if range is empty.
60a653f1 15835
048addec 15836 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15837
048addec
JD
15838 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15839 (clean): Not here.
60a653f1 15840
048addec 158412001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15842
048addec
JD
15843 * textprop.c (set_text_properties_1): Clearly mark that the
15844 interval should not be empty.
60a653f1 15845
048addec
JD
15846 * intervals.c (graft_intervals_into_buffer):
15847 Don't call set_text_properties_1 on an empty interval.
60a653f1 15848
048addec 158492001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15850
048addec 15851 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15852
048addec
JD
15853 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15854 don't lose the data in it.
60a653f1 15855
048addec 158562001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15857
048addec 15858 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15859
c62aec78 15860 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15861
c62aec78 15862 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15863
048addec 158642001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15865
048addec 15866 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15867
048addec 158682001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15869
048addec
JD
15870 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15871 Niemitalo <kon@iki.fi>.
60a653f1 15872
048addec 158732001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15874
048addec 15875 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15876
048addec
JD
15877 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15878 (Fx_show_tip): Block input during frame creation.
15879 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15880
048addec 158812001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15882
048addec
JD
15883 * lread.c (Fload): Detect recursive load error for more than 3
15884 nestings of the same file.
15885 (Vrecursive_load_depth_limit): Variable deleted.
15886 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15887
048addec 158882001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15889
048addec
JD
15890 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15891 mouse position if either left or top is not specified.
60a653f1 15892
048addec
JD
15893 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15894 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15895 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15896 (my_create_tip_window): Assign tip_window.
15897 (x_create_tip_frame): Use same defaults as X.
15898 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15899 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15900
048addec
JD
15901 * w32term.c (x_after_update_window_line): Doc fix.
15902 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15903 frames.
15904 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15905
048addec
JD
15906 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15907 for all Windowed systems.
60a653f1 15908
048addec 159092001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15910
048addec
JD
15911 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15912 realized, use the initial screen colors to clear the screen.
60a653f1 15913
048addec 159142001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15915
048addec
JD
15916 * textprop.c (Fset_text_properties): Remove unused variables
15917 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15918
048addec
JD
15919 * search.c (Freplace_match): Remove unused variable `inslen'.
15920
15921 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15922
159232001-11-22 Jason Rumney <jasonr@gnu.org>
15924
15925 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15926 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15927 (my_create_tip_window): New function.
15928 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15929 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15930
159312001-11-20 Jason Rumney <jasonr@gnu.org>
15932
15933 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15934 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15935
15936 * w32fns.c (Vw32_system_coding_system): Remove.
15937 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15938
159392001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15940
15941 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15942 after build_annotations.
15943
15944 * syntax.c (describe_syntax): Add dummy arg.
15945 (describe_syntax_1): Update call to describe_vector.
15946
15947 * category.c (describe_category): Add dummy arg.
15948 (describe_category_1): Update call to describe_vector.
15949
15950 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15951 (describe_command, describe_translation): Add dummy second param.
15952 (describe_map): Call elt_describer with two arguments.
15953 (describe_vector_princ): Add `fun' parameter.
15954 Call it instead of the hardcoded `princ'.
15955 (describe_vector): Add arg `args'.
15956 Pass it as a new second argument to elt_describer.
60a653f1 15957
048addec 15958 * keymap.h (describe_vector): Update prototype.
60a653f1 15959
048addec
JD
15960 * frame.c: Don't include keymap.h any more.
15961 (keys_of_frame): Remove.
60a653f1 15962
048addec 15963 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15964
048addec 15965 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15966
048addec 159672001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15968
048addec
JD
15969 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15970 if defined, 0 otherwise.
15971 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15972 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15973
048addec 159742001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15975
048addec 15976 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15977
048addec 159782001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15979
048addec
JD
15980 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15981 (x_draw_bar_cursor): If the background color of the glyph under
15982 the cursor equals the frame's cursor color, use the glyph's
15983 foreground color for drawing the bar cursor.
15984 (x_after_update_window_line): Clear internal border in different
15985 circumstances.
15986 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15987 (w32_draw_relief_rect): Correct relief by 1 pixel.
15988 (x_set_glyph_string_background_width):
15989 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15990 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15991 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15992 if cursor_in_non_selected_windows is false.
15993 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15994 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15995 Notice if cursor gets overwritten.
15996 (notice_overwritten_cursor): Renamed from
15997 note_overwritten_text_cursor. Rewritten to take glyph widths
15998 into account, and to take X positions as parameters.
15999 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16000 around call to x_draw_glyphs.
16001 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16002 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16003 color to use for image glyph reliefs.
16004 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16005 (glyph_rect): Remove unused variable `area'.
60a653f1 16006
048addec
JD
16007 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16008 some items.
16009 (x_set_internal_border_width): Set frame garbaged when window
16010 doesn't exist yet.
16011 (Fx_create_frame): Accept zero tool_bar_button_relief.
16012 (x_clear_image_1, four_corners_best, image_background)
16013 (image_background_transparent): New functions.
16014 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16015 (gs_format): Add `:background' entry.
16016 (lookup_image): Set IMG's background color if specified.
16017 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16018 when appropriate.
16019 (x_clear_image_1): Reset `background_valid' and
16020 `background_transparent_valid' fields.
16021 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16022 calculating it here. Set IMG's background_transparent field.
16023 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16024 (enum png_keyword_index): Add PNG_BACKGROUND.
16025 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16026 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16027 (enum gif_keyword_index): Add GIF_BACKGROUND.
16028 (enum gs_keyword_index): Add GS_BACKGROUND.
16029 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16030 Pre-calculate image background color where necessary.
16031 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16032 Use display info's n_cbits entry for screen depth.
16033 (Fx_show_tip): Remove unused variables `buffer', `top',
16034 `left', `max_width' and `max_height'.
60a653f1 16035
048addec 16036 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16037
048addec 160382001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16039
048addec 16040 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16041
048addec 160422001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16043
048addec 16044 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16045
048addec 160462001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16047
048addec
JD
16048 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16049 (message_dolog_marker3): New static variables hold three markers.
16050 (syms_of_xdisp): Initialize and staticpro them.
16051 (message_dolog): Use message_dolog_marker1..3 instead of
16052 allocating markers each time. Unchain them when done.
60a653f1 16053
048addec 160542001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16055
048addec 16056 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16057
048addec 160582001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16059
048addec 16060 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16061
048addec 160622001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16063
048addec 16064 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16065
048addec 160662001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16067
048addec 16068 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16069
048addec 160702001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16071
048addec
JD
16072 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16073 with invalid position.
60a653f1 16074
048addec 160752001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16076
048addec 16077 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16078
048addec
JD
16079 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16080 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16081 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16082
048addec 16083 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16084
048addec 160852001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16086
048addec
JD
16087 * fileio.c (build_annotations): Split off the tail.
16088 (build_annotations_2): New fun. Extracted from build_annotations.
16089 (Fwrite_region): Split the call to build_annotations into two
16090 calls to build_annotations and build_annotations_2.
077907d4 16091
048addec 160922001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16093
048addec
JD
16094 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16095 clear_waiting_for_input with argument.
1756e2fb 16096
048addec 16097 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16098
048addec 16099 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16100
048addec 16101 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16102
048addec 16103 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16104
048addec 161052001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16106
048addec
JD
16107 * fileio.c (choose_write_coding_system): New fun, extracted
16108 from Fwrite_region.
16109 (Fwrite_region): Use it.
fa336b91 16110
048addec
JD
16111 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16112 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16113 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16114
048addec 161152001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16116
048addec 16117 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16118
048addec
JD
16119 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16120 Required for ISC 4.1.
fa336b91 16121
048addec 161222001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16123
048addec
JD
16124 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16125 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16126
048addec 161272001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16128
048addec
JD
16129 The following changes are made to clean up the various internal
16130 references to the fringes to actually use the term `fringe' for
16131 them. Previously, they were called `flags areas', `bitmap areas',
16132 `left/right side of windows', or implicitly as `flags' or
16133 `bitmaps':
fa336b91 16134
048addec 16135 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16136 Comments fixed. Use renamed symbols.
06e8f738 16137
f63fd14e 16138 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16139
048addec
JD
16140 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16141 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16142 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16143
048addec 16144 * msdos.c: Comment fix.
9ce647f4 16145
048addec 16146 * w32fns.c: Use renamed symbols.
9b784ab8 16147
f63fd14e 16148 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16149 (fringe_bitmap_type): Renamed from bitmap_type.
16150 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16151 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16152 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16153
f63fd14e 16154 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16155 (fringes_extra): Renamed from flags_areas_extra.
16156 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16157 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16158 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16159 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16160 (FRAME_X_LEFT_FRINGE_WIDTH):
16161 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16162 (FRAME_X_RIGHT_FRINGE_WIDTH):
16163 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16164
048addec 16165 * widget.c: Use renamed symbols.
9f7e52b4 16166
f63fd14e 16167 * window.c: Comment fixes. Use renamed symbols.
048addec 16168 (coordinates-in-window-p): Doc fix.
fa336b91 16169
f63fd14e 16170 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16171
048addec 16172 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16173
048addec 16174 * xfns.c: Use renamed symbols.
89512fcd 16175
f63fd14e 16176 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16177 (fringe_bitmap_type): Renamed from bitmap_type.
16178 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16179 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16180 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16181
f63fd14e 16182 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16183 (fringes_extra): Renamed from flags_areas_extra.
16184 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16185 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16186 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16187 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16188 (FRAME_X_LEFT_FRINGE_WIDTH):
16189 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16190 (FRAME_X_RIGHT_FRINGE_WIDTH):
16191 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16192
161932001-11-15 Jason Rumney <jasonr@gnu.org>
16194
16195 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16196 work for most menu items. From David Ponce
16197 <david.ponce@wanadoo.fr>.
16198
161992001-11-15 Gerd Moellmann <gerd@gnu.org>
16200
16201 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16202 Some x_set_* function expect to be called even if old and new
16203 value are equal.
16204
16205 * xdisp.c (build_desired_tool_bar_string): Accept zero
16206 tool_bar_button_relief.
16207
16208 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16209
16210 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16211
16212 * xterm.c (x_draw_bar_cursor): If the background color of the
16213 glyph under the cursor equals the frame's cursor color, use
16214 the glyph's foreground color for drawing the bar cursor.
16215
16216 * dispnew.c (direct_output_forward_char): Fix character/byte
16217 position comparison.
7d18891d 16218
048addec 162192001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16220
048addec
JD
16221 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16222 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16223 Update arguments to find_field.
16224 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16225 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16226 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16227 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16228
048addec 162292001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16230
048addec 16231 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16232
048addec
JD
16233 * dispextern.h (image_background, image_background_transparent):
16234 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16235
048addec 162362001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16237
048addec 16238 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16239
048addec 16240 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16241
048addec 16242 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16243
048addec 16244 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16245
048addec 16246 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16247
048addec 16248 * eval.c (syms_of_eval): Doc fix.
7d18891d 16249
048addec 16250 * coding.c (syms_of_coding): Doc fix.
7d18891d 16251
048addec 16252 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16253
048addec 16254 * dispnew.c (syms_of_display): Doc fix.
9474c847 16255
048addec 16256 * category.c (Fget_unused_category): Doc fix.
9474c847 16257
048addec 16258 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16259
048addec 162602001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16261
048addec 16262 * print.c (prin1, print): Doc fix.
e3059a5d 16263
048addec 162642001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16265
048addec
JD
16266 * fontset.h: Remove declarations of variables
16267 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16268
048addec
JD
16269 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16270 `Vclip_large_size_font'.
eae936e2 16271
048addec 162722001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16273
048addec 16274 * w32fns.c: Doc fix.
ddb67bdc 16275
048addec 162762001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16277
048addec 16278 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16279
048addec 16280 * fns.c: Doc fix.
6e1b91d7 16281
048addec 16282 * emacs.c: Doc fix.
1c1d3d69 16283
048addec 16284 * coding.c: Doc fix.
1c1d3d69 16285
048addec
JD
16286 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16287 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16288 `new style' [w/`doc:' keyword].
b6f4c7ba 16289
048addec 162902001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16291
048addec
JD
16292 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16293 LeaveNotify events. Only FocusIn and FocusOut do that now.
16294 (x_display_and_set_cursor): Do display hollow cursors in active
16295 minibuffer windows when they are not selected.
b6f4c7ba 16296
048addec 162972001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16298
048addec 16299 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16300 * w32term.c: Change doc-string comments to `new style'
16301 [w/`doc:' keyword]. Doc fixes.
a89f435d 16302
048addec
JD
16303 * w32fns.c: Don't define max.
16304 (Fx_open_connection): Only execute once.
a4cd0cd7 16305
048addec 163062001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16307
048addec
JD
16308 * ccl.c: Change macros to use do-while block instead of if-else.
16309 Use braces to follow GNU Coding Standards.
eafb659a 16310
048addec 163112001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16312
048addec 16313 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16314
048addec 16315 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16316
048addec
JD
16317 * insdel.c (replace_range): Use adjust_markers_for_replace
16318 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16319
78819ebb 16320 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16321
048addec
JD
16322 * textprop.c (set_text_properties_1): New subroutine
16323 broken out of set_text_properties.
16324 (set_text_properties): Use set_text_properties_1.
91823618 16325
048addec
JD
16326 * intervals.c (graft_intervals_into_buffer):
16327 Use set_text_properties_1 to clear out properties.
91823618 16328
048addec
JD
16329 * search.c (Freplace_match): Use replace_range to insert
16330 and delete. Don't request property inheritance from
16331 surrounding text.
86928dfb 16332
048addec 163332001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16334
048addec 16335 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16336 vertical fonts. Allow them if face name is explicitly specified.
048addec 16337 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16338
048addec 163392001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16340
048addec
JD
16341 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16342 instead of malloc/free.
a78e0303 16343
048addec 163442001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16345
048addec
JD
16346 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16347 Coding Standards.
16348 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16349
048addec 16350 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16351
048addec 16352 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16353
048addec
JD
16354 * coding.c (encode_coding): Use precomputed value of `src'.
16355 (encode_coding): Remove unused variable `src_end'.
16356 (code_convert_region): Remove unused variables `count'.
830ddd77 16357
048addec 163582001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16359
048addec
JD
16360 * w32term.c (x_display_and_set_cursor): Do not move system caret
16361 if cursor_glyph is NULL.
55c6d645 16362
048addec 163632001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16364
048addec 16365 * keymap.c (access_keymap): Fix compilation error.
5de38842 16366
048addec 163672001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16368
048addec 16369 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16370
048addec 163712001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16372
048addec
JD
16373 * intervals.c (graft_intervals_into_buffer):
16374 Remove #ifdef'd-out code.
16375 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16376
048addec
JD
16377 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16378 code (eval-current-buffer).
16379 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16380
048addec 163812001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16382
048addec 16383 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16384
048addec 163852001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16386
048addec 16387 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16388
048addec
JD
16389 * keyboard.c (make_lispy_event): Check integerness and fix
16390 Lisp_Object/int mixup.
17893c65 16391
048addec 163922001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16393
048addec 16394 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16395
048addec
JD
16396 * fontset.c (fontset_font_pattern): Remove unused variable
16397 `family_registry'.
d5360cc7 16398
048addec 16399 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16400
048addec 164012001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16402
048addec 16403 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16404
048addec
JD
16405 * buffer.c (Fkill_buffer): Don't delete auto save file
16406 if buffer is modified.
d9d54213 16407
048addec 164082001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16409
048addec
JD
16410 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16411 CHECK_NUMBER_CDR.
b116830b 16412
048addec 164132001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16414
048addec 16415 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16416
048addec 164172001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16418
048addec 16419 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16420
048addec 164212001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16422
048addec 16423 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16424
048addec 164252001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16426
048addec
JD
16427 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16428 the program image directly.
982f6c7e 16429
048addec 164302001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16431
048addec 16432 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16433
048addec 164342001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16435
048addec
JD
16436 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16437 and CHECK_BUFFER.
d31053f9 16438
048addec
JD
16439 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16440 (record_char): Likewise.
d31053f9 16441
048addec
JD
16442 * keyboard.c (make_lispy_event): Don't insist a drag event must
16443 move to a different buffer position. Instead, check for moving at
16444 least double_click_fuzz.
982f6c7e 16445
048addec 16446 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16447
048addec 16448 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16449
048addec
JD
16450 * indent.c (current_column_1, Fmove_to_column): Separate the code
16451 for display-table glyphs from the code for buffer text, to fix
16452 bugs in the former.
830047fd 16453
048addec 164542001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16455
048addec
JD
16456 * buffer.c (Fbuffer_local_value): New function.
16457 (syms_of_buffer): Defsubr it.
2df5238c 16458
048addec
JD
16459 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16460 value of `cursor-in-non-selected-windows'.
4e397688 16461
048addec
JD
16462 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16463 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16464 (syms_of_xdisp): Initialize it.
48b0f3ae 16465
048addec 164662001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16467
048addec 16468 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16469
048addec
JD
16470 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16471 keyword].
3ecaf7e5 16472
048addec
JD
16473 * eval.c (top_level_value, top_level_set): Remove commented and
16474 #ifdef'd-out code.
16475 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16476
048addec 164772001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16478
048addec 16479 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16480
048addec 16481 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16482
048addec 16483 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16484
048addec 164852001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16486
048addec
JD
16487 * lisp.h (CHECK_STRING_CAR): New macro.
16488 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16489 treating XCAR and XCDR as lvalues.
16490 (openp): Use CHECK_STRING_CAR.
16491 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16492
048addec 164932001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16494
048addec
JD
16495 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16496 (SIGMASKTYPE): Define.
1b1acc13 16497
048addec 16498 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16499
048addec 165002001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16501
048addec
JD
16502 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16503 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16504 Fix typos in comments.
6cb16f95 16505
048addec
JD
16506 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16507 and #ifdef'd-out code.
16508 Fix and reindent comments.
6cb16f95 16509
048addec 16510 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16511
048addec
JD
16512 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16513 argument `i' in macros.
6cb16f95 16514
048addec
JD
16515 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16516 `i' in macros.
7e9d3c2f 16517
048addec
JD
16518 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16519 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16520 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16521 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16522 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16523 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16524 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16525 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16526 in macros.
7e9d3c2f 16527
048addec
JD
16528 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16529 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16530 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16531 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16532 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16533 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16534 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16535 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16536 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16537 (remove unused second argument).
7e9d3c2f 16538
048addec 165392001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16540
048addec
JD
16541 * syntax.c (describe_syntax): New wrapper.
16542 (Finternal_describe_syntax_value): Rename from describe_syntax.
16543 Don't insert space at front and \n at the end.
16544 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16545
048addec
JD
16546 * regex.c (re_wctype): Try to fix some warnings.
16547 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16548
048addec 165492001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16550
048addec 16551 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16552
048addec 165532001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16554
048addec 16555 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16556
048addec 16557 * data.c (Fsetq_default): Ditto.
c22e59e1 16558
048addec 16559 * callint.c (Finteractive): Ditto.
9271ed2c 16560
048addec 165612001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16562
048addec
JD
16563 * macros.c: Don't include keymap.h any more.
16564
165652001-11-01 Richard M. Stallman <rms@gnu.org>
16566
16567 * data.c (Fmake_local_variable): Doc fix.
16568
16569 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16570 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16571
048addec 16572 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16573 bindings along with or instead of the buffer local map.
16574 Make the overriding maps override what they should.
16575
f00691a3 165762001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16577
16578 * window.c (grow_mini_window): Fix typo in comment.
16579
27188d11
GM
165802001-11-01 Gerd Moellmann <gerd@gnu.org>
16581
7b49b9d2
GM
16582 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16583 (XTset_vertical_scroll_bar): Likewise.
16584
43f7c3ea
GM
16585 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16586 instead of IMAGE_BACKGROUND.
c22e59e1 16587
b350c2e5
GM
16588 * xfns.c (four_corners_best): Reindent.
16589
c22e59e1 16590 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16591 Handle :box so that it is possible to specify sexprs.
16592
bf00d461
EZ
165932001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16594
16595 * s/hpux11.h: New file.
16596
f00691a3 165972001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16598
2b209b97
PJ
16599 * emacs.c (USAGE1): Show command line option --no-window-system
16600 instead of --no-windows in usage.
16601 (standard_args): Rename --no-windows to --no-window-system.
16602 (bug_reporting_address): Follow Emacs coding conventions.
16603
9dbc9081
PJ
16604 * eval.c (Fcommandp): Doc fix.
16605 Change doc-string comments to `new style' [w/`doc:' keyword].
16606
4e10df59
PJ
16607 * frame.c (Fframe_live_p): Doc fix.
16608
16609 * buffer.c (selective-display-ellipses): Doc fix.
16610
dd387b25
GM
166112001-10-31 Gerd Moellmann <gerd@gnu.org>
16612
fe957e65
GM
16613 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16614
dd387b25
GM
16615 * xfaces.c (realize_x_face): If C is not a single-byte character,
16616 set the face's colors_copied_bitwise_p instead of the defaulted_p
16617 members which have a different meaning.
16618 (free_face_colors): Do nothing for a face whose colors have been
16619 copied bitwise.
16620
c22e59e1 16621 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16622
f00691a3 166232001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16624
687784e8
PJ
16625 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16626 [w/`doc:' keyword].
2e1280f8 16627
b9d9a9b9
GM
166282001-10-31 Gerd Moellmann <gerd@gnu.org>
16629
16630 * fns.c (require_unwind): Return Lisp_Object.
16631
f00691a3 166322001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16633
fa1361cb
PJ
16634 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16635 (last-input-char): Revert doc-string to be the same as the
16636 doc-string of `last-input-event'.
16637
6c465a15 16638 * xdisp.c: Fix typos in comments.
48400103 16639
eafa3196
GM
166402001-10-31 Gerd Moellmann <gerd@gnu.org>
16641
16642 * window.c (grow_mini_window): Handle case that the root
16643 window is already smaller than the nominal mininum height.
16644
747d3f2a
SM
166452001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16646
bf9bb76f
SM
16647 * emacs.c (main): Don't call keys_of_macros any more.
16648
16649 * lisp.h (keys_of_macros): Remove.
16650
16651 * macros.c (keys_of_macros): Remove.
16652
747d3f2a
SM
16653 * xfaces.c (Fface_attribute_relative_p): Declare args.
16654
5e905a57
JR
166552001-10-30 Jason Rumney <jasonr@gnu.org>
16656
16657 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16658 (enum_font_cb2): Ignore fonts with vertical orientation.
16659
3a426197
RS
166602001-10-30 Richard M. Stallman <rms@gnu.org>
16661
16662 * keyboard.c (Finput_pending_p): Doc fix.
16663
a742d646
GM
166642001-10-30 Gerd Moellmann <gerd@gnu.org>
16665
259cf6bc
GM
16666 * xterm.c (x_after_update_window_line): Don't run the code
16667 clearing in borders for rows whose visible height is 0.
16668
3f99f948
GM
16669 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16670 resized_p flag is set. If not set, use the much less flickering
16671 method previously used.
16672
16673 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16674
16675 * frame.h (struct frame) <resized_p>: New member.
16676
b4a3be43
GM
16677 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16678 as large as the number of bytes to convert.
747d3f2a 16679
a742d646
GM
16680 * lread.c (to_multibyte): New function.
16681 (read1): Use it.
16682
cacbb9e9
EZ
166832001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16684
16685 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16686
99cb6b2f
GM
166872001-10-30 Gerd Moellmann <gerd@gnu.org>
16688
327f42ee 16689 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16690 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16691 if the row's fill_line_p is set and drawing the last glyph with
16692 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16693
99cb6b2f
GM
16694 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16695
8e8223e2
SM
166962001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16697
16698 * xmenu.c: Include coding.h and charset.h.
16699 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16700 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16701 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16702 Explicitly set wv->help. Use `TRUE' rather than `True'.
16703 (menu_help_callback): Use empty_string.
16704
16705 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16706 (Fx_popup_dialog): Explicitly init f.
16707 (w32_menu_display_help): Use empty_string.
16708
4d083a8f
RS
167092001-10-29 Richard M. Stallman <rms@gnu.org>
16710
b2304472
RS
16711 * fns.c (Frequire): Detect recursive try to require the same
16712 feature 3 or more levels deep, and get error.
16713 (require_unwind): New subroutine.
16714 (require_nesting_list): New variable.
16715 (syms_of_fns): Init and staticpro it.
16716
4d083a8f
RS
16717 * print.c (print_object): Clarify indication of insertion type.
16718
2fe41216
EZ
167192001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16720
90480000
EZ
16721 * coding.c (syms_of_coding): Document that locale-coding-system is
16722 used for decoding input on X.
16723
2fe41216
EZ
16724 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16725
f00691a3 167262001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16727
16728 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16729 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16730
60ebcfe8
GM
167312001-10-29 Gerd Moellmann <gerd@gnu.org>
16732
9a7bdceb
GM
16733 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16734 use NO_CURSOR if cursor_in_non_selected_windows is false.
16735
3f08fcd2
GM
16736 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16737 the slant attribute if FRAME is t.
16738
0ccfdad2
GM
16739 * xfns.c (x_set_internal_border_width): Set frame garbaged
16740 when X window doesn't exist yet.
16741
ef253080
GM
16742 * xterm.c (x_after_update_window_line): Clear internal border
16743 in different circumstances.
b116830b 16744
60ebcfe8
GM
16745 * xterm.c (XTread_socket) <KeyPress>: Don't use
16746 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16747 <handa@etl.go.jp>.
16748
73d25f9c
EZ
167492001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16750
16751 * m/ibms390.h: New file. From Adam Thornton
16752 <athornton@sinenomine.net>.
16753
cac1daf0
GM
167542001-10-28 Gerd Moellmann <gerd@gnu.org>
16755
053b3256 16756 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16757
cac1daf0
GM
16758 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16759 a loop counter.
16760
f00691a3 167612001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16762
f9711de4 16763 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16764
4707d2d0
PJ
16765 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16766 keyword].
16767 Fix typos in comments.
b116830b 16768
d883731c
PJ
16769 * emacs.c (bug_reporting_address): New function.
16770 Use it when displaying usage message.
16771
04012254
PJ
16772 * minibuf.c (read_minibuf): Remove unused external declaration of
16773 variable `Qread_only'.
16774
13b1a09c
PJ
16775 * keymap.c (access_keymap): Remove unused variable `charset'.
16776
5bbf4378
MB
167772001-10-28 Miles Bader <miles@gnu.org>
16778
16779 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16780 Remove #ifdef'd-out code.
16781 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16782 (syms_of_xfaces): Initialize them.
16783
1ce1e4ee
JR
167842001-10-27 Jason Rumney <jasonr@gnu.org>
16785
16786 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16787 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16788 position using the system caret.
16789
16790 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16791 (w32_system_caret_height, w32_system_caret_x)
16792 (w32_system_caret_y): New variables for tracking system caret.
16793 (w32_initialize): Initialize them.
c2d53558 16794 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16795
c2d53558
SM
16796 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16797 New messages types.
1ce1e4ee
JR
16798
16799 * w32term.c (note_mouse_highlight): Clear old help_echo.
16800
f00691a3 168012001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16802
bb4600a4
PJ
16803 * xterm.c: Fix typo in a comment.
16804
7db35a48
PJ
16805 * emacs.c: Fix typos in comments.
16806 Remove unnecessary spaces.
16807 Change doc-string comments to `new style' [w/`doc:' keyword].
16808 (USAGE2): Fix typos in usage string.
16809
a7248e4f
PJ
16810 * xterm.c: Fix typo in a comment.
16811
4e30ce42
PJ
16812 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16813 emacs.c.
16814
62725a92
GM
168152001-10-27 Gerd Moellmann <gerd@gnu.org>
16816
798dbe1f 16817 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16818 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16819 farther backward when target_y was not reached.
16820
62725a92
GM
16821 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16822 Display errno only if non-zero.
16823 (sound_warning): New function.
16824 (vox_configure): Don't treat failing to set sample rate as error.
16825 (various places): Improve error messages.
16826
d4e34d24
EZ
168272001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16828
944e6f60
EZ
16829 * fileio.c (Faccess_file): Run the argument filename through
16830 Fexpand_file_name, before using it.
16831
d4e34d24
EZ
16832 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16833 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16834
38d2af0c
GM
168352001-10-26 Gerd Moellmann <gerd@gnu.org>
16836
da80a8d5
GM
16837 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16838
38d2af0c
GM
16839 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16840 Fix clearing in the case of scroll bars on the right.
c2d53558 16841
45de4a6f 168422001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16843
16844 * w32gui.h (XImage): Add a dummy typedef.
16845
fbd5ceb2
GM
168462001-10-26 Gerd Moellmann <gerd@gnu.org>
16847
c2d53558 16848 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16849
b23236fb
EZ
168502001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16851
16852 * frame.c (Fframe_parameter): Fix last change.
16853
5d991fc4
EZ
16854 * fileio.c: Revert last change (which removed old commented-out
16855 version of expand-file-name). Add a comment that explains why
16856 this old version should not be removed.
16857
879eadc3
GM
168582001-10-25 Gerd Moellmann <gerd@gnu.org>
16859
75700ff2
GM
16860 * frame.c (Fframe_parameter): Fix a bug whereby some
16861 ``artificial'' frame parameters, like `minibuffer' were not
16862 obtained by calling Fframe_parameters.
16863
dfe92a6a
GM
16864 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16865 cursor differently.
16866
879eadc3
GM
16867 * xdisp.c (move_it_vertically_backward): Compute line height
16868 differently. Add heuristic to try to be more compatible to 20.x.
16869
e1010ebe
SM
168702001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16871
d73a471b
SM
16872 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16873
d6da5a06
GM
16874 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16875 boolean.
e1010ebe 16876
f66bd220
MB
168772001-10-25 Miles Bader <miles@gnu.org>
16878
16879 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16880 BG is a pointer to a structure, not a structure.
16881 (gif_format, png_format): Add missing commas.
16882
d436d538
RS
168832001-10-24 Richard M. Stallman <rms@gnu.org>
16884
16885 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16886 (syms_of_xfaces): Defsubr it.
d436d538 16887
f00691a3 168882001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16889
16890 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16891 variable `area'.
16892
f00691a3 168932001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16894
c2d53558 16895 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16896
e2a57b34
MB
168972001-10-25 Miles Bader <miles@gnu.org>
16898
16899 * dispextern.h (struct image): Add `background',
16900 `background_valid', and `background_transparent' fields.
16901 (image_background, image_background_transparent): New declarations.
16902 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16903 * xfns.c (image_background, image_background_transparent)
16904 (four_corners_best): New functions.
c2d53558 16905 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16906 (gs_format): Add `:background' entry.
16907 (lookup_image): Set IMG's background color if specified.
16908 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16909 when appropriate.
16910 (x_clear_image_1): Reset `background_valid' and
16911 `background_transparent_valid' fields.
16912 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16913 calculating it here. Set IMG's background_transparent field.
16914 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16915 (enum png_keyword_index): Add PNG_BACKGROUND.
16916 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16917 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16918 (enum gif_keyword_index): Add GIF_BACKGROUND.
16919 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16920 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16921 Pre-calculate image background color where necessary.
16922 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16923 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16924 color to use for image glyph reliefs.
16925
b547b6e8
GM
169262001-10-24 Gerd Moellmann <gerd@gnu.org>
16927
d9e3b8c6
GM
16928 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16929 in full-width rows.
c2d53558 16930
b547b6e8
GM
16931 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16932 Fix clearing of area not covered by scroll bar.
16933
f00691a3 169342001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16935
16936 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16937 and `real_start'.
c2d53558 16938 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16939 (glyph_rect): Remove unused variable `area'.
16940
76cb5e06
GM
169412001-10-24 Gerd Moellmann <gerd@gnu.org>
16942
bdbdebff 16943 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16944
16945 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16946 (row_containing_pos): Take additional argument DY.
16947 Treat rows ending in middle of char differently.
62e33982
GM
16948 (display_line): Handle tabs on window systems differently.
16949
16950 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16951 with additional argument.
16952
16953 * dispextern.h (row_containing_pos): Adjust prototype.
16954
76cb5e06
GM
16955 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16956 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16957 (try_window_id, try_window_reusing_current_matrix)
16958 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16959 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16960
f00691a3 169612001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16962
c9e60620
PJ
16963 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16964 gnuemacs).
16965 (HAVE_BOXES): Fix typo in comment.
16966 (push_menu_pane): Fix typo in comment.
16967
3b552d56
PJ
16968 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16969 of `Qwhen'.
16970 (single_display_prop_string_p): Remove unused local declarations
16971 of `Qwhen' and `Qmargin'.
16972 (string_buffer_position): Remove unused variable `around'.
16973 (store_frame_title): Remove unused variable `width'.
16974
15c565ac
PJ
16975 * window.c: Don't define max.
16976 (coordinates_in_window): Remove unused variable `uy'.
16977
a8818eb9
PJ
16978 * widget.c: Don't define max.
16979
996fee11
PJ
16980 * process.c: Don't define max.
16981 (create_process): Remove unused variable `buffer'.
16982
496e1a5b
GM
169832001-10-23 Gerd Moellmann <gerd@gnu.org>
16984
c2d53558 16985 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16986
5905ae8b
EZ
169872001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16988
16989 * xfaces.c (Finternal_set_lisp_face_attribute)
16990 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16991 frame is on a windowed display.
16992
24db49fb
GM
169932001-10-23 Gerd Moellmann <gerd@gnu.org>
16994
c2d53558
SM
16995 * dispnew.c (sync_window_with_frame_matrix_rows):
16996 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16997 of marginal areas.
16998
c2d53558 16999 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17000
f0487f05
EZ
170012001-10-23 Andreas Schwab <schwab@suse.de>
17002
17003 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17004 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17005
f0a48a01
GM
170062001-10-23 Gerd Moellmann <gerd@gnu.org>
17007
c2d53558 17008 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17009 REAL_END. Notice if cursor gets overwritten.
17010 (notice_overwritten_cursor): Take X positions as parameters.
17011 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17012 around call to x_draw_glyphs.
17013
f00691a3 170142001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17015
fc11dff0
PJ
17016 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17017 instead of C) and usage.
a50a10a0 17018
fc11dff0
PJ
17019 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17020 of C) and usage.
a50a10a0
PJ
17021
17022 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17023 `left', `max_width' and `max_height'.
17024
8738febd
GM
170252001-10-23 Gerd Moellmann <gerd@gnu.org>
17026
17027 * xdisp.c (display_line): For a tab continued to the next line,
17028 set row's ends_in_middle_of_char_p.
17029
653c329b
GM
170302001-10-22 Gerd Moellmann <gerd@gnu.org>
17031
17032 * xdisp.c (display_line): Fix computation of continuation lines
17033 width for TABs.
17034
f00691a3 170352001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17036
7ba51063
PJ
17037 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17038 `Qlaplace'.
17039
f958c5ac
PJ
17040 * fileio.c: Remove unused code.
17041
eb360291
MB
170422001-10-22 Miles Bader <miles@gnu.org>
17043
17044 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17045 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17046 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17047
98515cf0
JR
170482001-10-21 Jason Rumney <jasonr@gnu.org>
17049
17050 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17051
93026d88
EZ
170522001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17053
17054 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17055 (Finsert_string): Avoid the multi-line string literals warning.
17056
c9a95b79
MB
170572001-10-22 Miles Bader <miles@gnu.org>
17058
17059 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17060 (Fdocumentation): Don't use it.
17061 (syms_of_doc): Don't initialize it.
17062
17063 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17064 * print.c (Fwith_output_to_temp_buffer): Likewise.
17065 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17066 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17067 (Fsave_restriction): Likewise.
c2d53558
SM
17068 * eval.c (Frun_hooks, Frun_hook_with_args)
17069 (Frun_hook_with_args_until_failure)
17070 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17071 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17072 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17073 (Funwind_protect, Fcondition_case): Likewise.
17074 * coding.c (Ffind_operation_coding_system): Likewise.
17075 * keyboard.c (Ftrack_mouse): Likewise.
17076
a3b10252
MB
170772001-10-21 Miles Bader <miles@gnu.org>
17078
c2d53558 17079 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17080 (Fmake_hash_table): Add usage: string to doc string.
17081 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17082 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17083 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17084 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17085 (Fml_prefix_argument_loop): Likewise.
17086
f00691a3 170872001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17088
c2d53558 17089 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17090
c6f73eec
PJ
17091 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17092 style' [w/`doc:' keyword].
17093
17094 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17095 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17096 comments to `new style' [w/`doc:' keyword].
17097
3cf3436e
JR
170982001-10-21 Jason Rumney <jasonr@gnu.org>
17099
17100 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17101
c169b8f1
JR
17102 * w32term.c (remember_mouse_glyph): New function.
17103 (w32_mouse_position): Use it.
17104 (note_mouse_movement): If the mouse moved off the glyph, remember
17105 its new position.
c2d53558 17106
4fdd691b
JR
17107 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17108 (w32_display_info): Add mouse_face_overlay.
17109
c169b8f1
JR
17110 * w32term.c (notice_overwritten_cursor): Renamed from
17111 note_overwritten_text_cursor. Rewritten to take glyph widths into
17112 account.
17113 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17114 (fast_find_string_pos): New function.
17115 (fast_find_position): Return the correct vpos. Add parameter
17116 STOP. In the final row, stop before glyphs having STOP as object.
17117 Don't consider glyphs that are not from a buffer.
17118 (fast_find_position) [0]: Add a presumably more correct version
17119 for after 21.1.
17120 (expose_window_tree, expose_frame): Don't compute intersections here.
17121 (expose_window): Do it here instead.
17122 (expose_window_tree, expose_window, expose_line): Return 1 when
17123 overwriting mouse-face.
17124 (expose_window): If W is the window currently being updated, mark
17125 the frame garbaged.
17126 (expose_frame): If mouse-face was overwritten, redo it.
17127 (x_use_underline_position_properties): New variable.
17128 (syms_of_xterm): DEFVAR_BOOL it.
17129 (x_draw_glyph_string): Add comment to use it in future.
17130 (x_draw_glyph_string): Restore clipping after drawing box.
17131 Fix a computation of the underline position.
17132 (w32_get_glyph_string_clip_rect): Minor cleanup.
17133 (x_fill_stretch_glyph_string): Remove an assertion.
17134 (x_produce_glyphs): Don't convert multibyte characters
17135 to unibyte characters in unibyte buffers.
17136 (cursor_in_mouse_face_p): New function.
17137 (x_draw_stretch_glyph_string): Use it to choose a different GC
17138 when drawing a cursor within highlighted text. Don't draw
17139 background again if it has already been drawn.
17140 (x_draw_glyph_string_box): Don't draw a full-width
17141 box just because the glyph row's full_width_p flag is set.
17142 (x_draw_glyphs): Fix computation of rightmost x for
17143 full-width rows.
17144 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17145 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17146 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17147 (x_update_window_end): Handle overwritten mouse face
17148 also for tool bar windows.
17149 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17150 DRAW is DRAW_IMAGE_RAISED.
17151 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17152 actually redrawn. Make the function static.
17153 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17154 optimize away highlighting if we pass over that same overlay again.
17155 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17156 to detect a case where we have to highlight a different region
17157 despite not having left the currently highlighted region.
17158 Set mouse_face_overlay in the x_display_info. Avoid changing the
17159 mouse pointer shape when show_mouse_face has already done it, or
17160 there is no need. Handle mouse-face and help-echo in strings.
17161 (glyph_rect): New function.
17162 (w32_mouse_position): Use it to raise the threshold for mouse
17163 movement event generation.
17164 (w32_initialize_display_info): Initialize the x_display_info's
17165 mouse_face_overlay.
17166 (w32_set_vertical_scroll_bar): Don't clear a zero height
17167 or width area.
17168 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17169 a widget to zero height.
17170
3cf3436e 17171 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17172 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17173 equivalents in menu_items.
17174 (w32_menu_show): Don't overwrite an item's name with its key
17175 description in case the description is a multibyte string.
17176 (single_submenu): Some cleanup.
17177
17178 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17179 (postprocess_image): New function.
17180 (lookup_image): Call it for all image types except PostScript.
17181 (x_kill_gs_process): Call postprocess_image.
17182 (tiff_error_handler, tiff_warning_handler): New functions.
17183 (tiff_load): Install them as handlers.
17184 (x_kill_gs_process): Recognize if someone has cleared the image
17185 cache under us.
17186 (valid_image_p): Protect better against invalid image
17187 specifications. Previous code could signal an error.
17188 (Fx_hide_tip, Fshow_tip): Doc fix.
17189 (Fv_max_tooltip_size): New variable.
17190 (syns_of_xfns): DEFVAR_LISP it.
17191 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17192 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17193 window_width. Use a maximum tooltip size specified by
17194 Vx_max_tooltip_size, if that has valid contents.
17195 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17196 Make sure the tooltip is completely visible.
17197 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17198 (Fx_create_frame): Adjust the frame's height for presence
17199 of the tool bar before calling x_figure_window_size.
17200 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17201 when the window gets smaller.
17202 (x_set_foreground_color): Set frame's cursor_pixel.
17203 (x_set_foreground_color, x_set_background_color): Cleaned up.
17204 (x_set_font): Handle case of x_new_fontset returning the same name
17205 as before, although there was a change in fontsets.
17206
386ca361
MB
172072001-10-21 Miles Bader <miles@gnu.org>
17208
c2d53558 17209 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17210 (Flogxor): Add usage: string to doc string.
17211 * charset.c (Fstring): Likewise.
17212 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17213 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17214
f00691a3 172152001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17216
03be2694
PJ
17217 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17218
17219 * alloc.c: Reindent DEFUNs with doc: keywords.
17220
17221 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17222
14ff1ee0
PJ
17223 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17224 keyword].
17225
2f147815 17226See ChangeLog.9 for earlier changes.
6922b018
KH
17227
17228;; Local Variables:
49b3bd82 17229;; coding: iso-2022-7bit
6922b018 17230;; End:
2a34a036 17231
2f147815 17232 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17233 Copying and distribution of this file, with or without modification,
17234 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17235
17236;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4