* macfns.c (Fx_file_dialog): Save As dialog includes only the
[bpt/emacs.git] / src / ChangeLog
CommitLineData
42afbcda
ST
12005-01-15 Steven Tamm <steventamm@mac.com>
2
3 * macfns.c (Fx_file_dialog): Save As dialog includes only the
4 file name in the text box.
5
9cdd4884
ST
62005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7
8 * macfns.c (x_set_foreground_color, x_set_background_color): Sync
9 with xfns.c.
10 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
11 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
12 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
13
88948d55
KS
142005-01-14 Kim F. Storm <storm@cua.dk>
15
16 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
17
20d6de82
RS
182005-01-13 Richard M. Stallman <rms@gnu.org>
19
20 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
21 if Voverriding_terminal_local_map is non-nil.
22
23 * keyboard.c (syms_of_keyboard): Doc fix.
24
f75a592e
KS
252005-01-13 Kim F. Storm <storm@cua.dk>
26
27 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
28 (specify 0 for FACE instead). Reorder arg list. Doc fix.
29
28f94a34
RS
302005-01-12 Richard M. Stallman <rms@gnu.org>
31
32 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
33 face property for characters that don't specify one.
34
35 * fns.c (Frequire): Record in load-history unconditionally.
36
57a230b1
KS
372005-01-10 Kim F. Storm <storm@cua.dk>
38
39 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
40
41 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
42 Callers changed.
43 Add support to merge with lisp face id too (if face_name is t).
44
45 * xdisp.c (get_next_display_element, next_element_from_display_vector):
46 Don't lookup lface_id from display table glyphs here; instead use
47 merge_faces to merge the lisp face id into current face.
48
8ab2c119
KS
492005-01-09 Kim F. Storm <storm@cua.dk>
50
51 * dispextern.h (struct it): New member dpvec_face_id.
52 (merge_into_realized_face): Add prototype.
53
54 * xfaces.c (merge_into_realized_face): New function. Used to
55 merge escape-glyph face or face from display table into current face.
56
57 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
58 (syms_of_xdisp): DEFVAR_LISP it.
59 (escape_glyph_face): Remove var.
60 (redisplay_window): Don't initialize it.
61 (setup_for_ellipsis, get_next_display_element):
62 Set it->dpvec_face_id to -1.
63 (get_next_display_element): Test Vshow_nonbreak_escape.
64 Do not setup escape_glyph_face.
65 Properly merge escape-glyph face or face from display table with
66 current face for escape and control characters. Set
67 it->dpvec_face_id to relevant face id instead of adding it to each
68 element of display vector.
69 (next_element_from_display_vector): If it->dpvec_face_id is set,
70 use that instead of lface_id from glyph itself.
71
e0910857
JD
722005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
73
74 * xterm.h (struct x_output): New member, toolbar_detached.
75
76 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
77 38.
78 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
79 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
80 (xg_create_tool_bar): Initialize toolbar_detached.
81 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
82 toolbar_detached is zero.
83
ff59904a
JD
842005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
85
9b85e63d
JD
86 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
87 gtk_menu_popup if not for_click, so callbacks for the menu are called.
88
ff59904a
JD
89 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
90 (xg_tool_bar_callback, xg_tool_bar_help_callback)
91 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
92 warning.
93
94 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 95 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
96 XFLOAT_DATA to get extract number from Lisp object.
97
f9a23a6f
KS
982005-01-07 Kim F. Storm <storm@cua.dk>
99
100 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
101 Set stop_charpos to current charpos instead of 0.
102
28f94a34
RS
1032005-01-06 Nick Roberts <nickrob@snap.net.nz>
104
105 * xdisp.c (Fformat_mode_line): First arg now required.
106
a6fffcdc
ST
1072005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
108
109 * macterm.c (XLoadQueryFont): Correctly handle 0 size
110 font widths that are returned from some Japanese fonts.
111
c35b0c6b
KS
1122005-01-06 Kim F. Storm <storm@cua.dk>
113
114 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
115 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
116 (destroy_fringe_bitmap): Set fringe_faces element to nil.
117 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
118 fringe_faces array and init elements to nil.
119 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
120 non-persistent face id.
121 (mark_fringe_data): New function for GC.
122
123 * alloc.c (mark_fringe_data): Declare extern.
124 (Fgarbage_collect): Call mark_fringe_data.
125
126 * alloc.c (overrun_check_free): Invalidate freed memory if
127 XMALLOC_CLEAR_FREE_MEMORY is defined.
128
e0e76ab9
ST
1292005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
130
131 * macfns.c: Include sys/param.h.
132 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
133 and function.
134 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
135 of filename string. Set event callback function when creating
136 dialog boxes. Add code conversions for filenames. Don't dispose
137 apple event descriptor record if failed to create it.
138
139 * macterm.c: Include sys/param.h.
140 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
141 kEventWindowUpdate.
142 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
143 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
144 of FSSpec from apple event descriptor record.
145 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
146 size of filename string.
147 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
148 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
149 file dialog is in action.
150 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject
151 only when there are no filename items. Set background color
152 before (un)highlighting the window below the dragged items.
153 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
154
043bc640
KH
1552005-01-05 Romain Francoise <romain@orebokech.com>
156
157 * term.c (encode_terminal_code): Fix buffer size computation.
158
dd496df6
RS
1592005-01-04 Richard M. Stallman <rms@gnu.org>
160
161 * xdisp.c (Fformat_mode_line): Doc fix.
162
026cdede
SM
1632005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * alloc.c (refill_memory_reserve): Move.
166 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
167 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
168
d57c7572
RS
1692005-01-03 Richard M. Stallman <rms@gnu.org>
170
171 * window.c (window_scroll_pixel_based): Don't correct preserve_y
172 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
173
b14f868c
JR
1742005-01-03 Jason Rumney <jasonr@gnu.org>
175
176 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
177 fontp->space_width to FONT_WIDTH so they are valid.
178
179 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
180 average width. Set fontp->average_width and fontp->space_width to
181 their appropriate values.
182
183 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
184 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
185 fontp->space_width.
186
e169f939
ST
1872005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
188
189 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
190 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
191 metrics for max and min bounds.
192 (x_load_font): Correctly calculate average font width metrics.
193
19996af4
RS
1942005-01-02 Richard M. Stallman <rms@gnu.org>
195
196 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
197
42d02da0
JD
1982004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
199
200 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
201
1db7dd46
RS
2022004-12-31 Richard M. Stallman <rms@gnu.org>
203
b437860a
RS
204 * xdisp.c (setup_for_ellipsis, get_next_display_element):
205 Set it->ellipsis_p to 1 or 0.
206 (display_line): Record whether row ends in mid-ellipsis.
207 (set_cursor_from_row): If ends in ellipsis. find start of it.
208 (cursor_row_p): If PT's at the end of the ellipsis the row
209 ends within, don't display cursor on this row.
210
211 * dispextern.h (struct it): New element ellipsis_p.
212 (struct glyph_row): New element ends_in_ellipsis_p.
213
214 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
215 position if we're reading from something other than the buffer.
216
1db7dd46
RS
217 * window.c (window_scroll_pixel_based): Only look at
218 Vscroll_preserve_screen_position if the old PT can't be kept.
219 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
220
1225f637
KS
2212004-12-30 Kim F. Storm <storm@cua.dk>
222
223 * xdisp.c (get_line_height_property): New function extracted from
224 original calc_line_height_property.
225 (calc_line_height_property): Rework. Handle t and (nil . ratio).
226 (x_produce_glyphs): Use them to handle line-height and
227 line-spacing according to new height spec.
228 (Qtotal): Remove.
33b2f4ea 229 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 230
c243063e
KH
2312004-12-30 Kenichi Handa <handa@m17n.org>
232
233 * fileio.c (Finsert_file_contents): Don't use
234 current_buffer->buffer_file_coding_system even if REPLACE is
235 non-nil. Call Qafter_insert_file_set_coding with the second arg
236 VISIT.
237
238 * fontset.h (struct font_info): New members space_width and
239 average_width.
240
241 * frame.h (struct frame): New member space_width.
242 (FRAME_SPACE_WIDTH): New macro.
243
244 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
245
246 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
247 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 248 fontp->space_width.
c243063e
KH
249 (x_load_font): Calculate fontp->space_width and
250 fontp->average_width.
251 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
252
253 * xdisp.c (x_produce_glyphs): Calculate tab width by
254 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
255
456e761b
ST
2562004-12-29 Sanghyuk Suh <han9kin@mac.com>
257
258 * macterm.c (SelectionRange): Add Xcode position apple event struct.
259 (do_ae_open_documents): Handle Xcode-style file position open
260 events.
261
188577ce
LT
2622004-12-29 Luc Teirlinck <teirllm@auburn.edu>
263
264 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
265
99ec74b9
RS
2662004-12-29 Richard M. Stallman <rms@gnu.org>
267
268 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
269
30c92fab
ST
2702004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
271
272 * macfns.c (install_window_handler): Modify extern to return OSErr
273 value.
274 (mac_window): Handle return value of install_window_handler.
275
276 * macterm.c (reflect_byte): Remove function.
277 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
278 Lookup table instead.
279 (mac_do_font_lists): Simplify calculation of the longest
280 nonspecial string.
281 (init_mac_drag_n_drop): Remove function and declaration.
282 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
283 init_mac_drag_n_drop.
284 (mac_do_track_drag): New function and declaration.
285 (install_window_handler): Return OSErr value.
286 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
287 handlers for tracking/receiving drag-and-drop items.
288 (do_ae_open_documents): Generate unibyte strings for filenames.
289 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
290 only non-filename items. Set event modifiers. Set return value.
291
4b982924
DN
2922004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
293
294 * coding.c (decode_coding): Fix previous change.
295
93fdf45f
RS
2962004-12-28 Richard M. Stallman <rms@gnu.org>
297
298 * xdisp.c (back_to_previous_visible_line_start):
299 Don't call handle_display_prop.
300
5bdca8af
DN
3012004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
302
303 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
304 (decode_coding_emacs_mule, encode_coding_emacs_mule)
305 (decode_coding_iso2022, encode_designation_at_bol)
306 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
307 (decode_coding): Constify arguments and local vars.
308
33385c6f
JD
3092004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
310
311 * xmenu.c (popup_get_selection): Only pop down dialogs
312 on C-g and Escape.
95bdef2e 313 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 314 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 315 parameter down_on_keypress to popup_get_selection.
33385c6f 316
b15325b2
ST
3172004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
318
319 * dispextern.h: Change HAVE_CARBON to MAC_OS.
320 (struct glyph_string): Likewise.
a2c7e69a 321
b15325b2
ST
322 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
323 mac_initialize.
a2c7e69a 324
b15325b2
ST
325 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
326 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 327
b15325b2 328 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 329
b15325b2
ST
330 * frame.c (x_set_frame_parameters, x_report_frame_params)
331 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
332 (x_set_border_width, Vdefault_frame_scroll_bars): Change
333 HAVE_CARBON to MAC_OS.
a2c7e69a 334
b15325b2
ST
335 * image.c [MAC_OS]: Include sys/stat.h.
336 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
337 QuickTimeComponents.h.
a2c7e69a 338
b15325b2
ST
339 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
340 [!MAC_OSX] (select): Use mac_wait_next_event.
341 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
342 Vexec_suffixes.
343 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
344 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
345 (mac_clear_font_name_table): Add extern.
346 (Fmac_clear_font_name_table): New defun.
347 (syms_of_mac): Defsubr it.
348 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
349 [MAC_OSX] (select_and_poll_event): New function.
350 [MAC_OSX] (sys_select): Use it.
351 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
352 [MAC_OSX && SELECT_USE_CFSOCKET]
353 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
354 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
355 RunLoop for simultaneously monitoring two kinds of inputs, window
356 events and process outputs, without periodically polling.
a2c7e69a 357
b15325b2
ST
358 * macfns.c (mac_initialized): Remove extern.
359 (stricmp): Put in #if 0. All callers changed to use xstricmp in
360 xfaces.c.
361 (strnicmp): Decrement `n' at the end of each loop, not the
362 beginning.
363 (check_mac): Use the term "Mac native windows" instead of "Mac
364 OS".
365 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
366 (mac_get_rdb_resource): New function (from w32reg.c).
367 (x_get_string_resource): Use it.
368 (install_window_handler): Add extern.
369 (mac_window): New function.
370 (Fx_create_frame): Use it instead of make_mac_frame. Set
371 parameter for Qfullscreen. Call x_wm_set_size_hint.
372 (Fx_open_connection, Fx_close_connection): New defuns.
373 (syms_of_macfns): Defsubr them.
374 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
375 kWindowNoUpdatesAttribute to the window attribute.
376 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
377 (x_create_tip_frame): Don't call ShowWindow.
378 (Fx_show_tip): Call ShowWindow.
379 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
380 TARGET_API_MAC_CARBON'.
381 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
382 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 383
b15325b2
ST
384 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
385 Windows.h.
386 (Window): Typedef to WindowPtr and move outside `#if
387 TARGET_API_MAC_CARBON'.
388 (XSizeHints): New struct.
a2c7e69a 389
b15325b2
ST
390 * macterm.c (x_update_begin, x_update_end)
391 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
392 frame.
393 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
394 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
395 (construct_mouse_click): Put in #if 0.
396 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
397 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
398 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
399 (activate_scroll_bars, deactivate_scroll_bars)
400 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
401 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
402 if the position is neither user-specified nor program-specified.
403 (x_free_frame_resources): Free size_hints.
404 (x_wm_set_size_hint): Allocate size_hints if needed. Set
405 size_hints.
406 (mac_clear_font_name_table): New function.
407 (mac_do_list_fonts): Initialize font_name_table if needed.
408 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
409 around mac_do_list_fonts.
410 (mac_unload_font): New function.
411 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
412 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
413 and definitions with #if TARGET_API_MAC_CARBON.
414 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
415 (install_window_handler): Add decl.
416 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
417 window. Use UpdateControls. Get the rectangle that should be
418 updated and restrict the target of expose_frame to it.
419 (do_grow_window): Set minimum height/width according to
420 size_hints.
421 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
422 (do_zoom_window): Don't use x_set_window_size.
423 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
424 (install_window_handler): New function.
425 [!USE_CARBON_EVENTS] (mouse_region): New variable.
426 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
427 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
428 GetEventDispatcherTarget inside BLOCK_INPUT.
429 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
430 Update mouse_region when mouse is moved.
431 (make_mac_frame): Remove.
432 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
433 mouse pointer shapes. Change values of f->left_pos and
434 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
435 call ShowWindow.
436 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
437 Vinvocation_name and Vsystem_name.
438 (mac_make_rdb): New function (from w32term.c).
439 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
440 already been opened. Don't pass argument to
441 mac_initialize_display_info. Don't set dpyinfo->height/width.
442 Add entries to x_display_list and x_display_name_list.
443 (x_delete_display): New function.
444 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
445 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
446
b15325b2
ST
447 * macterm.h (check_mac): Add extern.
448 (struct mac_output): New member size_hints.
449 (FRAME_SIZE_HINTS): New macro.
450 (mac_unload_font): Add extern.
a2c7e69a 451
b15325b2 452 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 453
b15325b2
ST
454 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
455
92d2947b
RS
4562004-12-27 Richard M. Stallman <rms@gnu.org>
457
ebbd14f1
RS
458 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
459 (syms_of_buffer): Don't defsubr it.
460
461 * process.c (list_processes_1): Set undo_list instead
462 of calling Fbuffer_disable_undo.
463
92d2947b
RS
464 * xdisp.c (single_display_spec_string_p): Renamed from
465 single_display_prop_string_p.
466 (single_display_spec_intangible_p): Renamed from
467 single_display_prop_intangible_p.
468 (handle_single_display_spec): Renamed from handle_single_display_prop.
469 Rewritten to be easier to understand.
470
a2c7e69a 471 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
472 and variables get just NAME.
473
474 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
475
476 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
477 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
478 (Qdefvar): Var deleted.
479 (syms_of_eval): Don't initialze it.
480
481 * lread.c (syms_of_lread) <load-history>: Doc fix.
482
9f6fcdc5
JD
4832004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
484
485 * xmenu.c (popup_get_selection): Pop down on C-g.
486 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
487 pops down menu on C-g.
488 (xdialog_show): If dialog popped down and no button in the dialog was
489 pushed, call Fsignal to quit.
490 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
491 Fsignal to quit.
492
493 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
494
495 * gtkutil.c (xg_initialize): Install bindings for C-g so that
496 dialogs and menus pop down.
497
d8ca23a0
KH
4982004-12-27 Kenichi Handa <handa@m17n.org>
499
500 * coding.c (code_convert_region): Fix calculation of `ratio'.
501
857ae68b
JD
5022004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
503
133c0116
JD
504 * gtkutil.c (update_frame_tool_bar): Make the value of
505 tool-bar-button-margin control margins of images in tool bar.
506
857ae68b
JD
507 * alloc.c (check_depth): New variable.
508 (overrun_check_malloc, overrun_check_realloc): Only add
509 overhead and write check pattern if check_depth is 1 (to handle
510 recursive calls). Increase/decrease check_depth in entry/exit.
511 (overrun_check_free): Only check for overhead if check_depth is 1.
512 Increase/decrease check_depth in entry/exit.
513
bd55c35c
JD
5142004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
515
516 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
517 before touching input_available_clear_time, to avoid accessing it
518 from multiple threads.
519
66354420
JR
5202004-12-23 Jason Rumney <jasonr@gnu.org>
521
522 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
523 of JPEG library.
524
55f4edbc
RS
5252004-12-22 Richard M. Stallman <rms@gnu.org>
526
527 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
528
529 * lisp.h (Vundo_outer_limit): Fix decl.
530
531 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
532 Uses changed.
533 (syms_of_undo): Initialize appropriately.
534 (truncate_undo_list): If it's nil, there's no limit.
535
7a0ea9e3
KH
5362004-12-22 Kenichi Handa <handa@m17n.org>
537
538 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
539
fda2922a
RS
5402004-12-21 Richard M. Stallman <rms@gnu.org>
541
542 * eval.c (unwind_to_catch): Clear immediate_quit.
543
544 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
545 specially as `\ ' and `\-'.
546
547 * keyboard.c (kbd_buffer_store_event_hold):
548 In the code for while-no-input, handle immediate_quit.
549
550 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
551 Call that at the very start.
552 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
553 (syms_of_alloc): Don't define undo-limit,
554 undo-strong-limit and undo-outer-limit here.
555
556 * undo.c (truncate_undo_list): Return void.
557 Take just one argument, the buffer.
558 Make it current, and inhibit recursive GC.
559 Access and update the undo list directly; return void.
560 Refer to the undo...limit variables directly.
561 Test undo_outer_limit only after counting the whole current command.
562 When it's exceeded, call the function in undo-outer-limit-function.
563 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
564 (Vundo_outer_limit_function): New variable.
565 (syms_of_undo): Define undo-limit, undo-strong-limit
566 and undo-outer-limit here, and undo-outer-limit-function.
567 Doc fixes.
568
569 * lisp.h (truncate_undo_list): Update decl.
570
5712004-12-21 Piet van Oostrum <piet@cs.uu.nl>
572
573 * fileio.c (Fread_file_name): Delete duplicates in
574 file-name-history when history_delete_duplicates is true.
575
68c69027
ST
5762004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
577
578 * macterm.c (mac_do_list_fonts): Fix memory leak
579
134579f2
RS
5802004-12-20 Richard M. Stallman <rms@gnu.org>
581
582 * regex.c (re_match_2_internal) <symend, wordend>:
583 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
584
fbe6152f
ST
5852004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
586
587 * macterm.c (endif, x_font_name_to_mac_font_name): Use
588 maccentraleurroman instead of maccentraleuropean
589 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
590 quickly finding a specific font without needing regexps.
591
fecad3f6
JD
5922004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
593
333f1b6f
JD
594 * syssignal.h: Declare main_thread.
595 (SIGNAL_THREAD_CHECK): New macro.
596
597 * keyboard.c (input_available_signal): Move thread checking code
598 to macro SIGNAL_THREAD_CHECK and call that macro.
599 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
600
601 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
602
603 * emacs.c: Define main_thread.
604 (main): Initialize main_thread.
605 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
606 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
607
608 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
609
610 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
611
612 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
613
a2c7e69a 614 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
615 SIGNAL_THREAD_CHECK.
616
617 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
618
619 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
620
fecad3f6
JD
621 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
622 returning when xg_ignore_gtk_scrollbar is true.
623
2a84c6da
KS
6242004-12-14 Kim F. Storm <storm@cua.dk>
625
626 * keyboard.c (read_char): Save and restore echo_string when
627 handling input method.
628
d9c1ce9d
RS
6292004-12-13 Richard M. Stallman <rms@gnu.org>
630
631 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
632
633 * keyboard.c (Vthrow_on_input): New variable.
634 (syms_of_keyboard): Defvar and initialize it.
635 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
636
637 * lisp.h (QUIT): Check for Vthrow_on_input.
638 (Vthrow_on_input): Declare it.
639
a6495ed5
KS
6402004-12-13 Kim F. Storm <storm@cua.dk>
641
642 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
643 vector.
644
24a0e22f
RS
6452004-12-12 Richard M. Stallman <rms@gnu.org>
646
647 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
648
649 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
650 (Ftry_completion): Really use outer `zero'; eliminate inner one.
651
d6d31e57
KH
6522004-12-12 Kenichi Handa <handa@m17n.org>
653
654 * term.c (encode_terminal_code): Fix previous change.
655
6f8ffb88
SM
6562004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
657
fb6f5cbf
SM
658 * keyboard.c (handle_async_input): Remove pthread mutex handling.
659 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
660
6f8ffb88
SM
661 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
662 in macro arguments.
663
664 * minibuf.c (Ftry_completion, Fall_completions): Don't use
665 XFASTINT blindly.
666
667 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
668
c83c9f9d
JD
6692004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
670
2f25767f
JD
671 * w32term.c (x_calc_absolute_position): Remove calculation of
672 difference between inner and outer window. Don't subtract difference
673 for left and top calculations.
674
c83c9f9d
JD
675 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
676 for left and top calculations. Remove call to x_real_positions.
24a0e22f 677 [Bug report by Drew Adams in November]
c83c9f9d
JD
678 (x_check_expected_move): Do not set change_gravity to 1 when calling
679 x_set_offset.
680
cc1caa4e
RS
6812004-12-08 Richard M. Stallman <rms@gnu.org>
682
683 * xdisp.c (get_next_display_element): Use `escape-glyph' for
684 control chars and escaped octal codes.
685 (Qescape_glyph): New variable.
686 (syms_of_xdisp): Initialize it.
687 (escape_glyph_face): New variable.
688 (redisplay_window): Initialize it.
689
e0e30823
RS
6902004-12-07 Paul Eggert <eggert@cs.ucla.edu>
691
692 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
693 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
694
f415cacd
JD
6952004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
696
cf435f39
JD
697 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
698 reset_malloc_hooks.
699
6f8ffb88
SM
700 * keyboard.c (handle_async_input, input_available_signal):
701 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 702
f415cacd
JD
703 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
704
19b1f29a
SM
7052004-12-07 Stefan <monnier@iro.umontreal.ca>
706
707 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
708
709 * config.in: Regenerate.
710
ded997c1
JD
7112004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
712
453a4f1b
JD
713 * xmenu.c (Fx_popup_menu): Correct documentation about position.
714 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
715 if not given by a mouse click to correspond with x-popup-menu
716 documentation.
717
9a38524c
JD
718 * config.in: Regenerate.
719
aa477689
JD
720 * gtkutil.c: Include signal.h and syssignal.h.
721 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
722
723 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
724 new variables main_thread and alloc_mutex,
725 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
726 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
727 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
728 (UN)BLOCK_INPUT.
729 (emacs_blocked_free, emacs_blocked_malloc)
730 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
731 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
732 (reset_malloc_hooks): New function.
733
734 * lisp.h: Declare reset_malloc_hooks.
735
736 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
737
738 * keyboard.c: Conditionally include pthread.h
6f8ffb88 739 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
740 thread, block signal, send signal to main thread and return.
741
ded997c1 742 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 743 Set current folder in file chooser if default_filename is a directory.
ded997c1 744
c72b0edd
SM
7452004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
746
747 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
748 Remove redundant correctness checks.
749 (regex_compile): Fix up error codes for \{..\} expressions.
750
c721eee5
RS
7512004-12-05 Richard M. Stallman <rms@gnu.org>
752
753 * regex.c (regex_compile): Fix end-of-pattern case for space.
754
d8f96db8
ST
7552004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
756
6108209e
KS
757 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
758 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 759 crashes with invalid characters.
6108209e
KS
760 * macmenu.c (add_menu_item): Use it.
761 * image.c (image_load_quartz2d): Likewise.
762 * macfns.c (x_set_name, x_set_title): Likewise.
763 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
764 creating them each time for labels.
d8f96db8 765
ab67e8b6
RS
7662004-12-02 Richard M. Stallman <rms@gnu.org>
767
768 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
769 don't use it here.
770
771 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
772 (interactive_p): Skip Scalled_interactively_p frames
773 like Sinteractive_p frames.
b8217ea6 774 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
775
776 * data.c (Fmake_variable_buffer_local): Doc fix.
777 (Fmake_local_variable): Doc fix.
778
779 * insdel.c (insert_from_string_before_markers)
780 (insert_from_string): Don't modify buffer on empty insertion.
781
782 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
783
f86bdc80
ST
7842004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
785
786 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
787 menu text as UTF8 fails.
788
1cae6d39
KS
7892004-12-01 Kim F. Storm <storm@cua.dk>
790
791 * alloc.c: Add commentary for last change.
792 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
793 sizeof(size_t) != 4.
794 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
795 Use them. Also clear header and trailer of freed memory.
796 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
797 (string_overrun_cookie): Rename from string_overrun_pattern.
798 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
799
77ea0764
AS
8002004-12-01 Andreas Schwab <schwab@suse.de>
801
802 * lisp.h: Declare string_to_multibyte.
803
2d5cd4e6
KH
8042004-12-01 Kenichi Handa <handa@m17n.org>
805
806 * w32console.c (w32con_write_glyphs): Decide coding here.
807 Adjusted for the change of encode_terminal_code.
808
809 * term.c (encode_terminal_code): Don't make it "static".
810
25a0994a
KH
8112004-11-30 Kenichi Handa <handa@m17n.org>
812
19b1f29a 813 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 814 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
815 characters at once, and return a pointer to the result of encoding.
816 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
817 (insert_glyphs): Likewise.
818 (term_init): Initialize encode_terminal_bufsize to 0.
819
820 * coding.c (Vcode_conversion_workbuf_name): New variable.
821 (syms_of_coding): Initialize and staticpro it.
822 (set_conversion_work_buffer): New function.
823 (run_pre_post_conversion_on_str): Use it.
824 (run_pre_write_conversin_on_c_str): New function.
825
826 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
827
fc7a70cc
ST
8282004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
829
830 * keyboard.c: Don't undef SIGIO
831 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
832 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
833 (macfns.o): Don't depend on ccl.h.
834 * macfns.c (mac_frame_parm_handlers): Set handlers for
835 Qleft_fringe and Qright_fringe.
836 * macterm.c (mac_fill_rectangle_to_pixmap)
837 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
838 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
839 Put in #if 0.
840 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
841 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
842 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
843 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
844 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
845 XDrawImageString. Always draw background and foreground separately.
846 (x_draw_image_foreground): Use clipping instead of computing the
847 intersection rectangle.
848 (x_draw_image_glyph_string): Don't draw an image with mask to a
849 pixmap.
850 (x_redisplay_interface): Set flush_display_optional member to 0.
851 (XTread_socket): Correctly reset the TEConverter
852 object.
853
fc368889
KS
8542004-11-30 Kim F. Storm <storm@cua.dk>
855
856 * lisp.h: New defines to enable buffer overrun checking.
857 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
858 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
859
860 * alloc.c: Add more checks for buffer overruns.
861 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
862 xmalloc_overrun_check_trailer, overrun_check_malloc)
863 overrun_check_realloc, overrun_check_free): Add.
864 (GC_STRING_EXTRA, string_overrun_pattern): Add.
865 (check_sblock, allocate_string_data, compact_small_strings):
866 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
867 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
868 (check_string_free_list): Add.
869 (allocate_string, sweep_strings): Call check_string_free_list.
870
871 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
872 XMALLOC_OVERRUN_CHECK to avoid crash during load.
873
0af8cfe1
KS
8742004-11-29 Kim F. Storm <storm@cua.dk>
875
876 * fns.c (concat): Use SAFE_ALLOCA.
877
77220eeb
SM
8782004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
879
880 * sysdep.c (emacs_write): Don't use QUIT.
881
a778cf63
KH
8822004-11-29 Kenichi Handa <handa@m17n.org>
883
884 * buffer.c (init_buffer): Set current_buffer->directory to a
885 multibyte string made by string_to_multibyte.
886
77220eeb 887 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 888
e3177e43
AS
8892004-11-27 Andreas Schwab <schwab@suse.de>
890
891 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
892
893 * s/gnu-linux.h: Enable no-op gcpros on ia64.
894 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
895
77220eeb
SM
896 * filelock.c (lock_file_1): Call get_boot_time early.
897 Increase buffer size.
e3177e43 898
ca5e6fef
EZ
8992004-11-27 Eli Zaretskii <eliz@gnu.org>
900
901 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
902 is not defined.
903
e2811828
KS
9042004-11-27 Kim F. Storm <storm@cua.dk>
905
906 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
907 marker out of doc string.
908
7a262394
SM
9092004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
910
911 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
912 which was not mentioned in the log.
913
f33cc5a9
KS
9142004-11-26 Kim F. Storm <storm@cua.dk>
915
048bb03f
KS
916 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
917 angle bitmaps at top/bottom line.
918
f33cc5a9
KS
919 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
920 set it when it->method is set to next_element_from_display_vector.
921 (setup_for_ellipsis): Add LEN argument. Callers changed.
922 Set it->saved_face_id.
923 (get_next_display_element): Use loop instead of recursion.
924 Set it->saved_face_id. Combine duplicate code for ctr chars.
925 (next_element_from_display_vector): Do not set it->saved_face_id.
926 (next_element_from_ellipsis): Use setup_for_ellipsis.
927
670e8906
EZ
9282004-11-26 Eli Zaretskii <eliz@gnu.org>
929
930 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
931 prevent compiler warnings.
932
275464e7
SM
9332004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
934
1bf0e604
SM
935 * keyboard.c (command_loop_1): Print a message describing the key
936 the user just pressed when this key has no binding.
937
275464e7
SM
938 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
939 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
940
941 * lread.c (readchar): Check QUIT when `getc' is interrupted.
942
261b01c6
RS
9432004-11-24 Richard M. Stallman <rms@gnu.org>
944
945 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
946
947 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
948
a5bd504e
KS
9492004-11-24 Kim F. Storm <storm@cua.dk>
950
951 * xdisp.c (move_it_in_display_line_to, display_line):
952 Restore saved_face_id also when truncate-lines or hscrolled.
953
255e4140
JD
9542004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
955
956 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
957 x-use-old-gtk-file-dialog.
958
959 * xfns.c: Define x_use_old_gtk_file_dialog.
960 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
961 outside ifdef USE_GTK.
962
cab27d04
SM
9632004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
964
965 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
966 Don't use XFASTINT blindly.
967
968 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
969
970 * indent.c (skip_invisible): Avoid non-idempotent side-effects
971 in macro arguments.
972
973 * keymap.c (Flookup_key): Check INTEGERP before XINT.
974
975 * lread.c (oblookup): Don't use XFASTINT blindly.
976
977 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
978 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
979
11e0be49
KS
9802004-11-23 Kim F. Storm <storm@cua.dk>
981
4d721114
KS
982 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
983 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
984
11e0be49
KS
985 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
986 signal_p is zero and face name is unknown.
987 (Fx_list_fonts): Don't signal error in lookup_named_face.
988 (Fface_font): Signal error in lookup_named_face.
989 (ascii_face_of_lisp_face): Likewise.
990
991 * dispextern.h (lookup_named_face): Fix prototype.
992
993 * xdisp.c (handle_single_display_prop): Don't signal error in
994 lookup_named_face for unknown fringe face name.
995 (highlight_trailing_whitespace): Don't signal error in
996 lookup_named_face if trailing-whitespace face unknown.
997 (calc_line_height_property): Don't signal error in
998 lookup_named_face if specified face name is unknown.
999
1000 * fringe.c (update_window_fringes): Show top row indicator if
1001 window has header-line. Don't show arrow at bob and eob
1002 if the boundary indicators are not used.
1003 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1004
1005 * window.c (set_window_buffer): Clear display_error_modiff.
1006
0960a582
KS
10072004-11-22 Kim F. Storm <storm@cua.dk>
1008
1009 * fringe.c (update_window_fringes): Provide sensible fall-back
1010 value for non-nil indicate-buffer-boundaries setting.
1011
b0e9bb28
MR
10122004-11-22 Markus Rost <rost@ias.edu>
1013
1014 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1015
d0bce91e
SM
10162004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1017
1018 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1019
e1814672
KS
10202004-11-21 Kim F. Storm <storm@cua.dk>
1021
b7fd3518
KS
1022 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1023
1024 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1025 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1026
1027 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1028 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1029
1030 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1031 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1032
d0bce91e
SM
1033 * xdisp.c (move_it_in_display_line_to, display_line):
1034 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1035 line is continued before or in middle of element from display vector.
f01d4d05 1036
f1a61389
KS
1037 * indent.c (Fvertical_motion): Fix last change. Use another
1038 method to detect if iterator moved too far ahead after reseat.
1039
e1814672
KS
1040 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1041 expand matrix width for overflow in zero-width area.
1042 (append_glyph, append_composite_glyph, produce_image_glyph)
1043 (append_stretch_glyph): Use it to avoid loop in redisplay.
1044 (note_mode_line_or_margin_highlight): Don't let help-echo from
1045 string override help-echo from image map.
1046
2dafe1c9
LT
10472004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1048
d0bce91e 1049 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1050 * callint.c (Fcall_interactively): Ditto.
1051
fd6866c8 10522004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1053
1054 * minibuf.c (Fminibuffer_complete_and_exit):
1055 Fixup the case of the completed value, for case-indep completion.
1056
dedbac89
RS
10572004-11-20 Richard M. Stallman <rms@gnu.org>
1058
fd6866c8
RS
1059 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1060
9d00469f 1061 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1062 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1063
dedbac89 1064 * search.c (Vsearch_spaces_regexp):
d0bce91e 1065 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1066
2f672bb5
TTN
10672004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1068
1069 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1070
f31a9a68
RS
10712004-11-19 Richard M. Stallman <rms@gnu.org>
1072
1073 * search.c (Vsearch_whitespace_regexp): New variable.
1074 (syms_of_search): Defvar it.
1075 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1076 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1077 is non-nil.
6de891db
RS
1078 (struct regexp_cache): New element whitespace_regexp.
1079 (syms_of_search): Initialize whitespace_regexp elements.
1080 (compile_pattern): Compare whitespace_regexp elements.
1081 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1082
1083 * regex.c (regex_compile): Substitute whitespace_regexp
1084 for spaces, if it is nonzero.
1085 (whitespace_regexp): New variable.
1086 (re_set_whitespace_regexp): New function.
1087
cbc34cb3
KS
10882004-11-19 Kim F. Storm <storm@cua.dk>
1089
1090 * indent.c (Fvertical_motion): Fix last change.
1091
b54a7539
KS
10922004-11-18 Kim F. Storm <storm@cua.dk>
1093
1094 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1095 Instead, move back again if reseating moves too far ahead.
1096
10972004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1098
1099 * xdisp.c (message3): Call clear_message.
1100
5ff504fe
KS
11012004-11-17 Kim F. Storm <storm@cua.dk>
1102
1103 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1104
5ae53dcf
JD
11052004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1106
d0bce91e 1107 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1108
6abf3a27 1109 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1110 (x_menu_set_in_use): Also set popup_activated_flag.
1111
5ff504fe 1112 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1113 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1114
6abf3a27 1115 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1116
ee31cd78
RS
11172004-11-16 Richard M. Stallman <rms@gnu.org>
1118
6abf3a27
SM
1119 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1120 Use map-keymap-internal to implement that.
ee31cd78
RS
1121
1122 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1123
6abf3a27
SM
11242004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1125
1126 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1127 a window before using XWINDOW.
1128
1129 * window.c (make_window, Fselect_window, make_dummy_parent)
1130 (save_window_save):
1131 * frame.c (make_frame):
1132 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1133
1134 * lisp.h (NILP): Use EQ rather than XFASTINT.
1135
b4d61105
KS
11362004-11-16 Kim F. Storm <storm@cua.dk>
1137
6abf3a27 1138 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1139
b4d61105
KS
1140 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1141 moving backwards.
1142
11432004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1144
1145 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1146
ab5b02b0
KH
11472004-11-16 Kenichi Handa <handa@m17n.org>
1148
1149 * xdisp.c (display_mode_element): Fix previous change (calculate
1150 end position of substring to display correctly).
1151
c482cf97
KS
11522004-11-16 Kim F. Storm <storm@cua.dk>
1153
1154 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1155 Reported by Andrew M. Scott.
1156
9f89426b
KS
11572004-11-15 Kim F. Storm <storm@cua.dk>
1158
1159 * fns.c (Fsafe_plist_get): New defun.
1160 (syms_of_fns): Defsubr it.
1161
1162 * lisp.h (Fsafe_plist_get): Add EXFUN.
1163
1164 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1165 Use Fsafe_plist_get.
1166 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1167 Fix image map element parsing. Use Fsafe_plist_get.
1168
27418463
RS
11692004-11-15 Richard M. Stallman <rms@gnu.org>
1170
1171 * xdisp.c (get_next_display_element): Fix previous change.
1172
a130b901
JD
11732004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1174
ef614e04
JD
1175 * window.c (shrink_windows): Handle special case of one window left
1176 when trying to shrink the final reminder. Grow windows if
1177 total_removed is less than total_shrink.
1178
a130b901
JD
1179 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1180 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1181 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1182 Construct arg to record_unwind_protect with make_save_value.
a130b901 1183
d9a03ad2
RS
11842004-11-13 Richard M. Stallman <rms@gnu.org>
1185
1186 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1187 (get_next_display_element): Fix previous change to apply only to \n.
1188
1189 * indent.c (Fvertical_motion): Scan to PT from start of line to
1190 make iterator consistent.
1191
1192 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1193
b3935289
JD
11942004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1195
1196 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1197
1198 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1199 Record unwind with clean_up_file_dialog.
1200
78819ebb
KS
1201 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1202 Declare.
b3935289
JD
1203
1204 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1205
af89e871
JD
12062004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1207
457a8155 1208 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1209 (xg_file_sel_destroy): Remove.
46303896
KS
1210 (xg_file_response_cb, pop_down_file_dialog)
1211 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1212 New functions.
6abf3a27
SM
1213 (xg_get_file_with_chooser, xg_get_file_with_selection):
1214 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1215 Move common code to xg_get_file_name. Return widget created.
1216 (xg_get_file_name): Set name, transient for, modal and destroy
1217 with parent here. Connect response signal to xg_file_response_cb,
1218 connect delete-event to gtk_true. Record pop_down_file_dialog
1219 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1220 (xg_create_widget): Make dialogs modal.
1221
af89e871
JD
1222 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1223 Lisp_Object.
1224 (popup_get_selection): Move unwind protect ...
1225 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1226 Move destroy of widget to pop_down_menu.
1227 (popup_widget_loop): Move unwind protect ...
1228 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1229 Move destroy of widget to pop_down_menu.
1230 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1231 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1232 x_mouse_leave and grabbed = 0 to pop_down_menu.
1233
5596fbf1
KS
12342004-11-13 Kim F. Storm <storm@cua.dk>
1235
1236 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1237 (syms_of_xdisp): DEFVAR_BOOL it.
1238 (make_cursor_line_fully_visible, try_cursor_movement)
1239 (try_window_id): Use it.
1240
b9de078a
KS
12412004-11-12 Kim F. Storm <storm@cua.dk>
1242
381f7091
KS
1243 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1244 (struct it): New member max_extra_line_spacing.
1245 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1246 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1247 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1248 part of last line is only extra line spacing (so the text on the
1249 line is fully visible). Use helper macros.
1250 Add W arg (to use them). All callers changed.
1251 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1252 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1253
6abf3a27
SM
1254 * window.c (window_scroll_pixel_based, Frecenter):
1255 Use move_it_vertically_backward directly.
381f7091
KS
1256 (Frecenter): Fix calculation of new start pos for negative arg.
1257 Before, the new start pos was sometimes chosen too far back, so
1258 the last line became only partially visible, and thus would be
1259 either only semi-visible or automatically scrolled to the middle
1260 of the window by redisplay.
1261
1262 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1263 (move_it_vertically_backward): Don't recure to move further back.
1264 (move_it_vertically): Remove superfluous condition.
1265 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1266 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1267 (display_tool_bar_line): Clear row->extra_line_spacing.
1268 (try_scrolling): Use move_it_vertically_backward directly.
1269 (redisplay_window): Likewise.
1270 (compute_line_metrics): Set row->extra_line_spacing.
1271 (display_line, display_string): Likewise.
1272 (x_produce_glyphs): Update it->max_extra_line_spacing.
1273
b9de078a
KS
1274 * xmenu.c (pop_down_menu): Return nil.
1275
c3438661
JD
12762004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1277
1278 * xmenu.c (x_menu_wait_for_event): New function.
1279 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1280 to handle timers.
df00f436
JD
1281 (popup_widget_loop): Add argument do_timers.
1282 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1283 do_timers to popup_widget_loop.
c3438661
JD
1284 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1285 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1286 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1287 popup_get_selection.
f1d1cd24
JD
1288 (pop_down_menu): New function.
1289 (popup_get_selection, popup_widget_loop): Unwind protect to
1290 pop_down_menu.
1291 (popup_widget_loop): Add argument widget.
1292 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1293 argument widget to popup_widget_loop.
c3438661 1294
32e2fb04
SM
12952004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1296
1297 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1298
0faf6806
KS
12992004-11-09 Kim F. Storm <storm@cua.dk>
1300
1301 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1302 Fix various comments referring to XEvents instead of input events.
1303 (x_queue_event): Fix format strings.
1304 (x_stop_queuing_selection_requests): Likewise.
1305
1306 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1307 (pint2hrstr): Add extra braces to silence compiler.
1308
1309 * print.c (print_object): Fix format string.
1310
1311 * lread.c (read1): Fix next_char matching.
1312
1313 * lisp.h (Fdelete): Add EXFUN.
1314 (replace_range_2): Add prototype.
1315
1316 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1317
1318 * intervals.h (NULL_INTERVAL_P): Add separate version when
1319 ENABLE_CHECKING is not defined to silence compiler.
1320 (compare_string_intervals): Add prototype.
1321
1322 * fringe.c (destroy_fringe_bitmap): Fix return type.
1323 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1324
1325 * emacs.c (Fdump_emacs): Fix format string.
1326
1327 * doc.c: Include <ctype.h>.
1328 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1329
1330 * data.c (store_symval_forwarding): Remove unused variables.
1331
1332 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1333
16bf4e32
JD
13342004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1335
1336 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1337 to ${OLDXMENU}.
1338
cdb805a9
KS
13392004-11-09 Kim F. Storm <storm@cua.dk>
1340
1341 * process.c (Fmake_network_process): Remove kludge for interrupted
1342 connects on BSD. If connect is interrupted, just close socket and
1343 start over rather than sleeping and retry with same socket.
1344
d87a9ab8 13452004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1346
a8b16c80
JD
1347 * .cvsignore: Add buildobj.lst.
1348
d87a9ab8
JD
1349 * doc.c: New variable Vbuild_files.
1350 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1351 file names from buildobh.lst. Only attach docstrings from files
1352 that are in Vbuild_files.
1353 (syms_of_doc): Defvar Vbuild_files.
1354
1355 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1356 and w32*.o.
1357 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1358 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1359
1360 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1361 is linked.
1362
b6709e77
KS
13632004-11-09 Kim F. Storm <storm@cua.dk>
1364
1365 * fringe.c (update_window_fringes): Update fringe bitmaps if
1366 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1367 also update previous row to get rid of misc. artifacts.
1368
bae9677d
KS
13692004-11-08 Kim F. Storm <storm@cua.dk>
1370
1371 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1372 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1373
3f8ea68c
EZ
13742004-11-08 Eli Zaretskii <eliz@gnu.org>
1375
1376 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1377 Don't include <sys/time.h> explicitly.
1378 Include <stdio.h> unconditionally, not just on MacOS.
1379
a653f812
KH
13802004-11-08 Kenichi Handa <handa@m17n.org>
1381
1382 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1383 don't pay attention to '\' before '*'.
1384 (fontset_pattern_regexp): Change the meaning of the second arg.
1385 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1386 (check_fontset_name): Try NAME as literal at first, and if it
1387 failes, try NAME as pattern.
1388
c37caf9d
JD
13892004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1390
1391 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1392
b72915a7
AS
13932004-11-07 Andreas Schwab <schwab@suse.de>
1394
78819ebb
KS
1395 * lisp.h (Fmsdos_downcase_filename): Declare.
1396 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1397 * fileio.c: Likewise.
1398
238a44a8
JD
13992004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1400
1401 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1402 comparisons with integers instead of Lisp_Object address.
1403 (Fmsdos_set_keyboard): Declare argument allkeys.
1404
1405 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1406
78819ebb 1407 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1408 int/Lisp_Object mixup.
1409
1410 * fileio.c: Ditto.
1411
31141c13
ST
14122004-11-06 Steven Tamm <steventamm@mac.com>
1413
1414 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1415
f28c1bd9
RS
14162004-11-06 Richard M. Stallman <rms@gnu.org>
1417
1418 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1419
1420 * xfaces.c (merge_named_face): GCPRO the face_name in the
1421 named_merge_point struct that we make.
1422 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1423
1424 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1425 before deciding whether to inactivate mark.
1426
59dede22
EZ
14272004-11-06 Lars Brinkhoff <lars@nocrew.org>
1428
1429 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1430 * editfns.c (Fget_internal_run_time): New function.
1431 (syms_of_data): Defsubr it.
1432 * fns.c (sxhash): As far as possible, merge calculation of
1433 hash code for symbols and strings.
59dede22 1434
27540e81
EZ
14352004-11-06 Eli Zaretskii <eliz@gnu.org>
1436
1437 * frame.c (syms_of_frame): Fix the example in the doc string.
1438
df470e3b
JD
14392004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1440
1441 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1442
1443 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1444 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1445
4cc8522c
LT
14462004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1447
1448 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1449
d4a42098
KS
14502004-11-05 Kim F. Storm <storm@cua.dk>
1451
a8490886
KS
1452 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1453
d4a42098
KS
1454 * fileio.c (Ffile_modes): Doc fix.
1455 (auto_save_1): Check for Ffile_modes nil value.
1456
36a2b04c
KS
14572004-11-05 Kim F. Storm <storm@cua.dk>
1458
1459 * xselect.c (struct selection_event_queue, selection_queue)
1460 (x_queue_selection_requests, x_queue_event)
1461 (x_start_queuing_selection_requests)
1462 (x_stop_queuing_selection_requests): Add new queue for selection
1463 input events to replace previous XEvent queue in xterm.c.
1464 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1465 (x_reply_selection_request): Adapt to new queue.
1466 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1467 (x_handle_selection_request, x_handle_selection_clear): Make static.
1468 (x_handle_selection_event): New function. May queue selection events.
1469 (wait_for_property_change_unwind): Use save_value instead of cons.
1470 Clear property_change_reply_object.
1471 (wait_for_property_change): Abort if already waiting.
1472 Use save_value instead of cons for unwind data.
1473 (x_handle_property_notify): Skip events already arrived, but don't
1474 free them, as "arrived" field is checked by wait_for_property_change,
1475 and it will be freed by unwind or explicit unexpect_property_change.
1476 (x_get_foreign_selection): Add to new queue.
1477 (receive_incremental_selection): Don't unexpect wait_object when done
1478 as it has already been freed by previous wait_for_property_change.
1479
1480 * xterm.h (x_start_queuing_selection_requests)
1481 (x_stop_queuing_selection_requests, x_handle_selection_request)
1482 (x_handle_selection_clear): Remove prototypes.
1483 (x_handle_selection_event): Add prototype.
1484
1485 * xterm.c (handle_one_xevent): Don't queue X selection events
1486 here, it may be too late if we start queuing after we have already
1487 stored some selection events into the kbd buffer.
1488 (struct selection_event_queue, queue, x_queue_selection_requests)
1489 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1490 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1491 (x_catch_errors_unwind): Block input around final XSync.
1492
1493 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1494
1495 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1496 (kbd_buffer_unget_event): New function.
1497 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1498 and use x_handle_selection_event.
1499 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1500
9c3ad9e1
JD
15012004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1502
1503 * xselect.c (TRACE3): New debug macro.
1504 (x_reply_selection_request): Use it.
1505 (receive_incremental_selection): In call to TRACE0, the name of
1506 a symbol is in xname.
1507
a33b89de
KS
15082004-11-05 Kim F. Storm <storm@cua.dk>
1509
1510 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1511
a872928c
JD
15122004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1513
88208bb8
JD
1514 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1515
78819ebb 1516 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1517
1518 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1519 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1520 * xfns.c (syms_of_xfns): ... to here.
1521
a872928c
JD
1522 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1523 it doesn't start with /.
1524
b912921c
KH
15252004-11-04 Kenichi Handa <handa@m17n.org>
1526
1527 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1528 treat it as a literal character.
1529
c524d9a6
KS
15302004-11-03 Kim F. Storm <storm@cua.dk>
1531
1532 * .gdbinit (ppt): New function.
1533
8cfd0f36
JD
15342004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1535
a11e1dce
JD
1536 * xterm.c (x_window_to_scroll_bar): Only call
1537 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1538
8cfd0f36
JD
1539 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1540 of save.
1541
a93563fd
AS
15422004-11-02 Andreas Schwab <schwab@suse.de>
1543
1544 * window.c (Fscroll_right): Fix last change.
1545
2b2d59d8
KS
15462004-11-02 Kim F. Storm <storm@cua.dk>
1547
1548 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1549
15502004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1551
1552 * callproc.c (Fcall_process): Block input around vfork.
1553
ca28104d
KS
15542004-11-02 Kim F. Storm <storm@cua.dk>
1555
1556 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1557 (syms_of_eval): Defsubr it.
1558
29bb7127
RS
15592004-11-02 Richard M. Stallman <rms@gnu.org>
1560
1561 * insdel.c (replace_range_2): New function.
1562
1563 * casefiddle.c (casify_region): Handle changes in byte-length
1564 using replace_range_2.
1565
1566 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1567
b6189c3b 1568 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1569 Subtract 1 from pos when checking previous newline for invisibility.
1570
1571 * window.c (window_scroll_pixel_based): Update preserve_y
1572 for header line if any.
1573 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1574 use a new second argument instead.
1575
1576 * eval.c (Fcall_interactive_p): New function.
1577 (interactive_p): Don't test INTERACTIVE here.
1578 (Finteractive_p): Doc fix.
1579
1580 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1581
b6189c3b 15822004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1583
1584 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1585 comparing font names.
a3fe4aaf 1586
2a00cdb4
JD
15872004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1588
f9d64bb3
JD
1589 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1590 Fx_file_dialog if only directories should be read.
1591
1592 * lisp.h: Fx_file_dialog takes 5 parameters.
1593
32e2fb04
SM
1594 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1595 Add parameter only_dir_p.
f9d64bb3
JD
1596 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1597 dialog, just text field part. Do not add DEFAULT_FILENAME
1598 to list of files if it isn't there.
1599 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1600
32e2fb04
SM
1601 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1602 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1603 a save dialog, add option kNavDontConfirmReplacement, change title
1604 to "Enter name", change text for save button to "Ok".
1605
32e2fb04
SM
1606 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1607 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1608
1609 * gtkutil.c (xg_get_file_with_chooser)
1610 (xg_get_file_with_selection): New functions, only defined ifdef
1611 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1612 respectively.
1613 (xg_get_file_name): Add parameter only_dir_p.
1614 Call xg_get_file_with_chooser or xg_get_file_with_selection
1615 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1616 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1617
1618 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1619
2a00cdb4
JD
1620 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1621
f6749d5d
KS
16222004-11-01 Kim F. Storm <storm@cua.dk>
1623
32e2fb04
SM
1624 * process.c (connect_wait_mask, num_pending_connects):
1625 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1626 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1627 (IF_NON_BLOCKING_CONNECT): New helper macro.
1628 (wait_reading_process_output): Only declare and use local vars
1629 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1630
1a99fe1a
JR
16312004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1632
1633 * w32term.c (x_scroll_run): Delete region objects after use.
1634
fcdb28b4
JD
16352004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1636
495ef86b
JD
1637 * xmenu.c: Add prototypes for forward function declarations.
1638 (popup_get_selection): Remove parameter do_timers, remove call to
1639 timer_check.
32e2fb04
SM
1640 (create_and_show_popup_menu, create_and_show_dialog):
1641 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1642
12e6566a
JD
1643 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1644 tool_bar_items and assign the result to f->tool_bar_items if
1645 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1646 tool_bar_items to assignment of result.
1647
fcdb28b4
JD
1648 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1649 pending_atmers is non-zero.
1650
1a1a0c4c
KS
16512004-10-31 Kim F. Storm <storm@cua.dk>
1652
1653 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1654
a36f1680
JW
16552004-10-28 Will <will@glozer.net>
1656
1657 * macterm.c: allow user to assign key modifiers to the Mac Option
1658 key via a 'mac-option-modifier' variable.
1659
32e2fb04 16602004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1661
1662 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1663 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1664 (x_handle_selection_request, x_handle_selection_clear)
1665 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1666
4f71c13f
RS
16672004-10-28 Richard M. Stallman <rms@gnu.org>
1668
1669 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1670
1671 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1672
068f3848
SM
16732004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1674
1675 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1676 comment-starter over a 1-char one.
1677
4660a9e3
RS
16782004-10-27 Richard M. Stallman <rms@gnu.org>
1679
1680 * xdisp.c (get_next_display_element): In mode lines,
1681 treat newline and tab like other control characters.
1682
1683 * editfns.c (Fmessage): Doc fix.
1684
1685 * indent.c (vmotion): When moving up, check the newline before.
1686 Make prevline an int, not a Lisp_Object.
1687
233f3db6
KS
16882004-10-27 Kim F. Storm <storm@cua.dk>
1689
1690 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1691 Only allocate info and discarded tables once.
1692
1693 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1694 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1695 (SAFE_FREE): Test it to determine if we need to unwind to free.
1696 Remove size arg. All users changed.
1697 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1698
1442465d
JD
16992004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1700
1701 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1702 (xg_destroy_widgets): Rename from remove_from_container.
1703 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1704 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1705 instead of remove_from_container.
1706 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1707 (free_frame_tool_bar): Add comment.
1708
1709 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1710 is not NULL before strcmp.
1711
c8636435
KS
17122004-10-26 Kim F. Storm <storm@cua.dk>
1713
1714 * callint.c (Fcall_interactively): Add 'U' code to get the
1715 up-event discarded by a previous 'k' or 'K' argument.
1716
5629f29b
DK
17172004-10-26 David Kastrup <dak@gnu.org>
1718
1719 * buffer.c (syms_of_buffer): Fix a few typos.
1720
4f2f546e
JD
17212004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1722
1723 * xsmfns.c: Put empty line between comment and function body.
1724 Use two spaces before comment end.
1725
fc1062f5
KH
17262004-10-25 Kenichi Handa <handa@m17n.org>
1727
1728 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1729 PATTERN is full XLFD.
1730
be13f5e5
KH
17312004-10-24 Kenichi Handa <handa@m17n.org>
1732
1733 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1734
1735 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1736 (regex_compile): Return REG_ERANGEX if appropriate.
1737
d0ee2ed3
KH
17382004-10-22 Kenichi Handa <handa@m17n.org>
1739
1740 * editfns.c (Ftranslate_region_internal): New function.
1741 (syms_of_editfns): Defsubr it.
1742
63ea8ea5
JD
17432004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1744
1745 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1746
c27ed90a
JD
17472004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1748
068f3848
SM
1749 * xterm.h (x_output): New member `xic_base_fontname'.
1750 (FRAME_XIC_BASE_FONTNAME): New macro.
1751 (xic_free_xfontset): Declare.
c27ed90a 1752
068f3848
SM
1753 * xfns.c (xic_create_xfontset): Share fontsets between frames
1754 based on base_fontname.
1755 (xic_free_xfontset): New function.
1756 (free_frame_xic): Use it.
1757 (xic_set_xfontset): Ditto.
c27ed90a 1758
068f3848 1759 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1760
1761
59508699
JR
17622004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1763
1764 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1765
dede2792
JD
17662004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1767
3aca2078
JD
1768 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1769 XSync.
1770
dede2792
JD
1771 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1772 New variables and constant.
1773 (main): Calculate heap_bss_diff. If we are dumping and the
1774 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1775 and exec ourself again.
1776 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1777 print a warning.
1778
1779 * lastfile.c: Make my_endbss and my_endbss_static available on all
1780 platforms.
1781
1782 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1783 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1784
1dc5ba01
LT
17852004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1786
1787 * data.c (Flocal_variable_if_set_p): Doc fix.
1788
950090be
JR
17892004-10-19 Jason Rumney <jasonr@gnu.org>
1790
1791 * w32.c (init_environment): Set emacs_dir correctly when running
1792 emacs from the build directory.
1793
8550b998
RS
17942004-10-19 Richard M. Stallman <rms@gnu.org>
1795
1796 * editfns.c (Fdelete_and_extract_region):
1797 If region is empty, return null string.
1798
08dedea6
JD
17992004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1800
1dc5ba01 1801 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1802 and canon_width.
068f3848 1803 (xg_frame_cleared): Remove.
08dedea6 1804
068f3848
SM
1805 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1806 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1807 (xg_create_scroll_bar): Put an event box widget between
1808 the scroll bar widget and the edit widget.
1809 (xg_show_scroll_bar): Show the parent widget (the event box).
1810 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1811 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1812 Move the parent (the event box) widget inside the fixed widget.
1813 Move window clear to xterm.c.
1814
068f3848 1815 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1816
08dedea6 1817 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1818 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1819 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1820 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1821
8550b998 18222004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1823
1824 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1825
84338890
JD
18262004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1827
1828 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1829 gdk_window_clear and move gdk_window_process_all_updates after
1830 clear so events are sent to the X server in correct order.
1831
6e1b0d8c
KH
18322004-10-18 Kenichi Handa <handa@m17n.org>
1833
1834 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1835 comparing font names.
8550b998 1836 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1837 (list_fontsets): Likewise.
1838
1839 * search.c (fast_string_match_ignore_case): New function.
1840
1841 * lisp.h (fast_string_match_ignore_case): Extern it.
1842
345e75a8
KS
18432004-10-17 Kim F. Storm <storm@cua.dk>
1844
1845 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1846 than bitmap if there is not left fringe.
1847 (get_overlay_arrow_glyph_row): Also used on windows system.
1848 (display_line): Display overlay string if no left fringe.
1849
be13cbb7
JR
18502004-10-16 Jason Rumney <jasonr@gnu.org>
1851
1852 * w32fns.c (w32_font_match): Encode font name being matched.
1853
c2e2ede7
RS
18542004-10-16 Richard M. Stallman <rms@gnu.org>
1855
1856 * window.c (Fspecial_display_p): Doc fix.
1857
3584d95d
SM
18582004-10-15 Stefan <monnier@iro.umontreal.ca>
1859
1860 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1861 Don't ignore menus, because where-is-internal already does it for us.
1862
699a0392
KS
18632004-10-15 Kim F. Storm <storm@cua.dk>
1864
b3c7a89b
KS
1865 * xdisp.c (redisplay_window): Only update fringes and vertical
1866 border on window frames.
699a0392 1867
4e382b0f
AS
18682004-10-14 Andreas Schwab <schwab@suse.de>
1869
1870 * m/ia64.h (DATA_SEG_BITS): Don't define.
1871
329a7be2
KS
18722004-10-14 Kim F. Storm <storm@cua.dk>
1873
1874 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1875 in some X versions.
329a7be2 1876
982241b1
SM
18772004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1878
1879 * fns.c (map_char_table): Add missing gcpros.
1880
9238467d
SM
18812004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1882
1883 * keymap.c (get_keymap): An autoload form is not a keymap.
1884
1885 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1886
4440e3ca
KS
18872004-10-13 Kim F. Storm <storm@cua.dk>
1888
7cfdabde
KS
1889 * callproc.c (Fcall_process): Simplify handling of display arg.
1890 Resume `display_on_the_fly' once a coding system is determined.
1891
4440e3ca
KS
1892 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1893
1c8dec6a
KS
18942004-10-12 Kim F. Storm <storm@cua.dk>
1895
1896 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1897 caller, such as call-process, is not going to poll for input.
1898 (calc_line_height_property): Handle case where it->object is nil.
1899
1900 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1901
170b174c
KH
19022004-10-12 Kenichi Handa <handa@m17n.org>
1903
9238467d
SM
1904 * xdisp.c (get_next_display_element):
1905 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1906 chars in octal in unibyte buffer.
1907
b583964c
KS
19082004-10-12 Kim F. Storm <storm@cua.dk>
1909
1910 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1911 are no ordinary bindings.
1912
29fabd8c
JD
19132004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1914
9238467d 1915 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1916
c3f4c690
ST
19172004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1918
9238467d
SM
1919 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1920 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1921 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1922 terminal frame.
1923 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1924 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1925 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1926 Make a cancel file-open dialog be like C-g.
9238467d
SM
1927 * mac.c (mktime): Use emacs_mktime.
1928 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1929 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1930
9688f9eb
KS
19312004-10-10 Kim F. Storm <storm@cua.dk>
1932
1933 * keyboard.c (timer_resume_idle): New function to resume idle
1934 timer without resetting timers on the idle list.
1935 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1936 (timer_start_idle, timer_stop_idle): Declare static.
1937 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1938
1939 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1940
f7f3a65f
ST
19412004-10-08 Steven Tamm <steventamm@mac.com>
1942
9238467d 1943 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1944 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1945 NULL where 0 should be used.
f7f3a65f
ST
1946 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1947 objc/malloc.h
9238467d 1948 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1949
3c7d999a
KS
19502004-10-07 Kim F. Storm <storm@cua.dk>
1951
1952 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1953 windows. Update vertical line after drawing window fringes, but
1954 only if actually drawing any bitmaps--or there is no fringe.
1955
1956 * xterm.c (x_update_window_end): Likewise.
1957 * macterm.c (x_update_window_end): Likewise.
1958 * w32term.c (x_update_window_end): Likewise.
1959
1960 * fringe.c (draw_window_fringes): Return value now indicates if
1961 any fringe bitmaps were redrawn (or there are no fringes).
1962
1963 * dispextern.h (draw_window_fringes): Update prototype.
1964
bf06c82f
ST
19652004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1966
1967 * macfns.c (mac_get_window_bounds): Add extern.
1968 (x_real_positions): Use mac_get_window_bounds.
1969
1970 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1971 xmenu.c (YAILOM).
3c7d999a 1972
bf06c82f
ST
1973 * macterm.c [!MAC_OSX]: Include Windows.h.
1974 (front_emacs_window): Rename from mac_front_window. All uses
1975 changed. Return the frontmost non-tooltip emacs window.
1976 (mac_get_window_bounds): New function.
1977 (x_calc_absolute_position): Use the difference of width and height
1978 between the inner and outer window.
1979 (x_set_offset): Specify window position by the coordinae of the
1980 outer window. Adjust the position if the title bar is completely
1981 outside the screen.
1982 (app_is_suspended, app_sleep_time): Remove unused variables.
1983 (do_app_resume, do_app_suspend): Remove their contents because
1984 window-activate/deactivate events will do the job.
1985 (do_zoom_window): Remove unused variables. Make compliant to the
1986 standard way of zooming. Set f->left_pos and f->top_pos.
1987 (XTread_socket): Don't use argument `expected'. Don't use
1988 FrontWindow to determine the clicked window. Exclude unprocessed
1989 mouseUp cases in the early stage. Add parentheses to fix operator
1990 precedence.
1991 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1992
4cbbf6b7 19932004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1994
1995 * config.in: Regenerate.
1996
1997 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1998 HAVE_EXECSHIELD.
1999
b90ee8b5
JD
20002004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2001
2002 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2003 a row if Alt or Meta has been found for that row. Also stop scanning
2004 for Keysyms for that row.
2005
904db1a2
KS
20062004-10-04 Kim F. Storm <storm@cua.dk>
2007
0207b8ad
KS
2008 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2009 to list. Include overlay arrow bitmap in return value.
2010
25f7220c
KS
2011 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2012 bars with fractional column width. If scroll bar separates two
2013 windows, move it towards the window it belongs to. Only update
2014 the padding area below the scroll bar widget when necessary,
2015 i.e. when scroll bar widget is created, moved, or resized.
2016
562020fe
KS
2017 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2018 while tracking/dragging mouse.
2019 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2020
37e34af7
KS
2021 * window.c (coordinates_in_window): Relax check for cursor
2022 on vertial border between mode lines.
2023 (Fset_window_fringes): Do not allow negative widths.
2024 (Fset_window_scroll_bars): Likewise.
2025
904db1a2
KS
2026 * .gdbinit (pp): Shorthand for p ARG + pr.
2027 (ff): New command: flush frame updates (X only).
2028
38fe4f64
MA
20292004-10-03 Michael Albinus <michael.albinus@gmx.de>
2030
2031 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2032
9de36315
KH
20332004-09-30 Kenichi Handa <handa@m17n.org>
2034
07c381ad 2035 * process.c (send_process): Free composition data.
9de36315 2036
07c381ad 2037 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2038
2039 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2040 compositions to encode.
2041 (encode_coding_string): Likewise. Free composition data.
2042
b6189c3b 20432004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2044
2045 * coding.c (code_convert_region): Free composition data.
9de36315 2046
f2a54fbc
KS
20472004-09-29 Kim F. Storm <storm@cua.dk>
2048
dc5d6435
KS
2049 * fringe.c: Remove limit on number of bitmaps.
2050 (fringe_bitmaps, fringe_faces): Change to pointers.
2051 (max_fringe_bitmaps): New var.
2052 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2053 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2054
2055 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2056 (struct glyph_row): Reorder fringe_bitmap related fields.
2057 (struct it): Likewise.
2058
2059 * w32term.c (fringe_bmp): Change to pointer.
2060 (max_fringe_bmp): New var.
2061 (w32_define_fringe_bitmap): Expand fringe_bmp.
2062 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2063 (w32_destroy_fringe_bitmap): Likewise.
2064
20652004-09-29 Kim F. Storm <storm@cua.dk>
2066
2067 * fringe.c: Simplify last change.
f2a54fbc
KS
2068 (lookup_fringe_bitmap): New function.
2069 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2070 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2071 Keep standard bitmaps in Vfringe_bitmaps.
2072 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2073 (Fset_fringe_bitmap_face): Likewise.
2074
2075 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2076 (valid_fringe_bitmap_p): Remove prototype.
2077
2078 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2079
841a8bca
KS
20802004-09-29 Kim F. Storm <storm@cua.dk>
2081
1f2da365
KS
2082 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2083 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2084
841a8bca
KS
2085 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2086
2087 * fringe.c (Vfringe_bitmaps): New variable.
2088 (syms_of_fringe): DEFVAR_LISP it.
2089 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2090 Change arg to Lisp_Object and fail if not an integer.
2091 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2092 (destroy_fringe_bitmap): New functions.
9238467d
SM
2093 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2094 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2095 clear its fringe property.
2096 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2097 Fdestroy_fringe_bitmap.
2098 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2099 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2100 and set fringe property. Signal error if no free slots.
2101 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2102 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2103
2104 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2105 symbols with a fringe property.
2106
4d965590
KS
21072004-09-27 Kim F. Storm <storm@cua.dk>
2108
2109 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2110 Doc fix. Format may now be a symbol or alist, not a cons.
2111
2112 * fringe.c (update_window_fringes): Handle new formats of
2113 indicate-buffer-boundaries (symbol or alist). No longer
2114 allow a simple cons.
2115 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2116
e888c2b3
JD
21172004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2118
9238467d 2119 * config.in: Rebuild.
e888c2b3 2120
83f1cb94
JD
21212004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2122
2123 * config.in: Rebuild.
2124
dd3b1d60 2125 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2126
2c51754c
SM
21272004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * xterm.c (x_term_init): Work around a bug in some X servers.
2130
3df5f8aa
RS
21312004-09-18 Richard M. Stallman <rms@gnu.org>
2132
557ca2c1
RS
2133 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2134
3df5f8aa
RS
2135 * xdisp.c (try_window_reusing_current_matrix):
2136 Handle the case where we reach the old displayed text,
2137 out of sync with the old line boundary.
2138
9238467d 21392004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2140
2141 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2142 narrowed buffer.
2143
bfa02563
KS
21442004-09-14 Kim F. Storm <storm@cua.dk>
2145
a25fe164
KS
2146 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2147
bfa02563
KS
2148 * xfaces.c (Qface_no_inherit): New var.
2149 (syms_of_xfaces): Intern and staticpro it.
2150 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2151 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2152 Don't increment face_change_count when face has non-nil
2153 face-no-inherit property.
2154
126f9c02
SM
21552004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2156
892a8eb5
SM
2157 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2158 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2159
126f9c02 2160 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2161 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2162
c0ad3b38
KS
21632004-09-12 Kim F. Storm <storm@cua.dk>
2164
2165 * editfns.c (Fformat): Handle format strings with multiple text
2166 properties. Reverse text property list from the format string,
2167 so the positions are in increasing order.
2168
844fc085
JD
21692004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2170
2171 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2172 x_uncatch_errors so that possible protocol errors are delivered.
2173
b106731c
EZ
21742004-09-10 Eli Zaretskii <eliz@gnu.org>
2175
21065c92
EZ
2176 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2177 blockinput.h.
2178 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2179 charset.h, and coding.h
9238467d 2180 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2181 (term.o): Depend on window.h and keymap.h.
2182 (abbrev.o): Depend on syntax.h.
2183 (callint.o): Depend on keymap.h.
2184 (casefiddle.o): Depend on charset.h and keymap.h.
2185 (category.o): Depend on keymap.h.
2186 (coding.o): Depend on dispextern.h.
2187 (cmds.o): Depend on keyboard.h and keymap.h.
2188 (dispnew.o): Depend on indent.h and intervals.h.
2189 (doc.o): Depend on keymap.h.
2190 (editfns.o): Depend on frame.h.
2191 (emacs.o): Depend on dispextern.h.
2192 (fileio.o): Don't depend on ccl.h.
2193 (filelock.o): Depend on charset.h and coding.h.
2194 (frame.o): Depend on w32term.h and macterm.h.
2195 (insdel.o): Depend on region-cache.h.
2196 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2197 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2198 (search.o): Depend on $(INTERVALS_SRC).
2199 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2200 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2201 xterm.h, w32term.h, and macterm.h.
2202 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2203 w32term.h, and macterm.h.
2204 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2205 region-cache.h, xterm.h, w32term.h, and macterm.h.
2206 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2207 (data.o): Depend on frame.h.
2208 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2209 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2210 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2211 (intervals.o): Depend on keymap.h.
2212
9238467d
SM
2213 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2214 Add debugging print-out to termscript.
b106731c 2215
64b7122d
RS
22162004-09-09 Richard M. Stallman <rms@gnu.org>
2217
2218 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2219
5670531e
RS
22202004-09-08 Richard M. Stallman <rms@gnu.org>
2221
6cb4a892
RS
2222 * window.c (Fset_window_buffer): Doc fix.
2223
5670531e
RS
2224 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2225
7e388eb7
JL
22262004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2227
2228 * minibuf.c (history_delete_duplicates): New variable.
2229 (read_minibuf): Use it.
2230 (syms_of_minibuf): Create the corresponding lisp variable.
2231
370e3587
KS
22322004-09-08 Kim F. Storm <storm@cua.dk>
2233
2234 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2235 overlay just before point.
2236
f844ba4e
LT
22372004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2238
2239 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2240 * buffer.c (reset_buffer, init_buffer_once):
2241 Handle auto_save_file_format field.
f844ba4e
LT
2242 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2243 `buffer-auto-save-file-format'.
f844ba4e
LT
2244 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2245 (build_annotations): Adapt to replacement of
2246 `auto-save-file-format' with the new buffer-local variable
2247 `buffer-auto-save-file-format'.
2248 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2249
f0f90717
JR
22502004-09-07 Jason Rumney <jasonr@gnu.org>
2251
2252 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2253
9238467d
SM
2254 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2255 Handle Unicode menu titles.
f0f90717 2256
4e14f66c
KS
22572004-09-07 Kim F. Storm <storm@cua.dk>
2258
2259 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2260 property from text property or overlay strings at point.
2261
9238467d 22622004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2263
2264 * xmenu.c (update_submenu_strings): YAILOM.
2265 (set_frame_menubar): Make sure last_i is initialized.
2266
1f06d367
JR
22672004-09-03 Jason Rumney <jasonr@gnu.org>
2268
1806714a 2269 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2270 (digest_single_submenu): Set lname and lkey in widget_value
2271 instead of name and key.
2272 (update_submenu_strings): New function.
2273 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2274 call update_submenu_strings.
2275
2276 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2277 (digest_single_submenu, w32_menu_show): Encode menu strings as
2278 UTF-8 if Unicode API is available.
2279 (utf8to16): New function.
2280 (add_menu_item): Use it when calling Unicode API.
1806714a 2281
46540080
KS
22822004-09-03 Kim F. Storm <storm@cua.dk>
2283
2284 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2285 in overlay or text-property strings; set cursor on corresponding
2286 glyph rather than at end of the string.
2287
9277ba61 22882004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2289
9277ba61 2290 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2291 set a new one before obtaining the global coordinate.
2292 Use FRAME_MAC_WINDOW.
2293 (x_set_name, x_set_title): Encode title to UTF8.
2294 Use SetWindowTitleWithCFString.
9277ba61
ST
2295 (Fx_server_version): Get correct OS version.
2296
1806714a
SM
2297 * macmenu.c (add_menu_item): Remove unused variable `i'.
2298 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2299
2300 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2301 BLOCK_INPUT.
2302 (x_set_offset): Use FRAME_MAC_WINDOW.
2303
2304 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2305 nontext_cursor if it is on a scroll bar.
2306
2307 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2308 Carbon support.
1806714a
SM
2309 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2310 Use LIBS_CARBON.
9277ba61 2311
b10daec7
JD
23122004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2313
2314 * xfns.c (x_set_name_internal): New function. Check if we shall call
2315 xfree before ENCODE_UTF_8.
2316 (x_set_name, x_set_title): Call x_set_name_internal.
2317
f7e22385
JR
23182004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2319
2320 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2321 reload it.
2322
2bf436c3
JD
23232004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2324
1806714a 2325 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2326 (single_submenu): Set lname and lkey in widget_value
2327 instead of name and key.
2328 (update_submenu_strings): New function.
2329 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2330 call update_submenu_strings.
2331
2bf436c3
JD
2332 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2333 instead of name and key.
2334 (update_submenu_strings): New function.
2335 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2336 call update_submenu_strings.
2bf436c3
JD
2337
2338 * gtkutil.h (_widget_value): Added lname and lkey.
2339
11715f92
ST
23402004-08-30 Steven Tamm <steventamm@mac.com>
2341
2342 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2343 by using different names for inner loop variables.
2344
5500be54
JD
23452004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2346
059cd329
JD
2347 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2348 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2349
5500be54
JD
2350 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2351 tool bar items is 0.
2352
383418e5
ST
23532004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2354
2355 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2356 strings in menu items.
2357 (single_submenu): Use ENCODE_MENU_STRING
2358 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2359 button release isn't passed to event loop
2360 (add_menu_item): Use SetMenuItemWithCFString
2361
6eb3ee72
ST
23622004-08-26 Steven Tamm <steventamm@mac.com>
2363
2364 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2365 tool-bar/menu click
2366 * macfns.c (Fx_file_dialog): Implemented using NavServices
2367
10b43ac3
JD
23682004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2369
2728b5d0
JD
2370 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2371
10b43ac3
JD
2372 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2373 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2374 (x_top_window_to_frame): Return 0 if wdesc is None.
2375
2ee3b79e
RS
23762004-08-22 Richard M. Stallman <rms@gnu.org>
2377
2378 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2379 HAVE_TERMIOS]: If there's no char for this signal, drop through
2380 and use system calls.
2381
2382 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2383
9a1ba2ea
KS
23842004-08-20 Kim F. Storm <storm@cua.dk>
2385
2386 * process.c (wait_reading_process_output): Rename from
2387 wait_reading_process_input. All uses changed.
2388 (wait_reading_process_output_1): Rename from
2389 wait_reading_process_input_1. All uses changed.
2390
2391 * dispnew.c (Fsleep_for): Remove obsolete code.
2392
295f3b30
KH
23932004-08-20 Kenichi Handa <handa@m17n.org>
2394
2395 * syntax.c (skip_chars): Fix for unibyte case.
2396
27615979
SM
23972004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2398
2399 * syntax.c (char_quoted): Mixup byte/char pos.
2400 (back_comment): Fixup globals in all cases.
2401
00267f94
JD
24022004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2403
2404 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2405 passing it to gtk_window_set_title.
2406
2439909e
KS
24072004-08-19 Kim F. Storm <storm@cua.dk>
2408
6ba0f14c
KS
2409 * process.c (wait_reading_process_input): Clean up.
2410 Add wait_for_cell, wait_proc, and just_wait_proc args
2411 to avoid overloading `read_kbd' and `do_display' args.
2412 Change read_kbd arg to int. All callers changed.
2413
2439909e
KS
2414 * process.c (process_send_signal): Use CDISABLE.
2415
2416 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2417
101c421e
KS
24182004-08-18 Kim F. Storm <storm@cua.dk>
2419
2420 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2421 forward to wait_reading_process_input via DO_DISPLAY arg.
2422 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2423 object, only process output from that process; also inhibit
2424 running timers if DO_DISPLAY==-2.
2425
c438dc33
KS
24262004-08-17 Kim F. Storm <storm@cua.dk>
2427
2428 * process.c (process_send_signal): Fix last change--use
2429 _POSIX_VDISABLE instead of CVDISABLE when available.
2430
8afc13c6
RS
24312004-08-16 Richard M. Stallman <rms@gnu.org>
2432
2433 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2434 Set VQUIT and VINTR chars to the standard ones if they are unset.
2435 [AIX]: Don't do that here. And don't force VINTR to standard
2436 when SIGNALS_VIA_CHARACTERS.
2437
c438dc33 2438 * process.c (process_send_signal)
8afc13c6
RS
2439 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2440 Do nothing if the character is CVDISABLE.
2441
2442 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2443
c438dc33 2444 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2445 Force POSITION to be between BEGV and ZV.
2446
6dad1714
JPW
24472004-08-14 John Paul Wallington <jpw@gnu.org>
2448
2449 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2450
2451 * fileio.c (Fread_file_name): Doc fix.
2452
2453 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2454
2bd77330
LT
24552004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2456
2457 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2458
c90e7e43
LT
24592004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2460
2461 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2462 Qdisabled_command_hook.
c90e7e43 2463 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2464 Qdisabled_command_hook.
c90e7e43
LT
2465 (syms_of_keyboard): Ditto.
2466
81909a1a
LT
24672004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2468
2469 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2470 (syms_of_keymap) <key-translation-map>: Doc fixes.
2471
0cedd530
SM
24722004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2473
1725a7c9
SM
2474 * window.c (window_list_1): YAILOM.
2475
0cedd530
SM
2476 * fileio.c (make_temp_name): Handle multibyte prefixes.
2477
2515a131
LT
24782004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2479
2480 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2481 Doc fix.
2482
c8b20fb7
KH
24832004-08-03 Kenichi Handa <handa@m17n.org>
2484
2485 * coding.c (decode_coding_string): Adjust coding->consumed, and
2486 etc. with shrinked_bytes.
2487
fb8b092b
KS
24882004-08-03 Kim F. Storm <storm@cua.dk>
2489
2490 * indent.c (compute_motion): Fix check for full width window
2491 in non-window case. Do not count left truncation glyph on
2492 window systems.
2493
df133612
LT
24942004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2495
2496 * data.c (Finteractive_form): Doc fix.
2497
0f7a93c1
KS
24982004-08-02 Kim F. Storm <storm@cua.dk>
2499
2500 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2501 properly accounting for continuation glyph on non-window systems.
2502 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2503 actual window width/height if TOPOS is nil, properly accounting for
2504 continuation glyphs on non-window systems, and optional header lines.
2505 (vmotion): Let compute_motion calculate actual window width.
2506
2507 * window.c (window_scroll_line_based): Let compute_motion
2508 calculate actual window width.
2509
f491e1ed
KS
25102004-08-02 Kim F. Storm <storm@cua.dk>
2511
2512 * process.c (read_process_output): Use whole read buffer.
2513 Don't trigger adaptive read buffering on errors.
2514
83f64226
LT
25152004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2516
2517 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2518
2519 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2520
2521 * callint.c (Fcall_interactively): Doc fix.
2522
8afc13c6
RS
25232004-07-30 Richard M. Stallman <rms@gnu.org>
2524
2525 * abbrev.c (Fexpand_abbrev): Undo previous change.
2526
7c111482
KS
25272004-07-30 Kim F. Storm <storm@cua.dk>
2528
2529 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2530
ee945d08
LT
25312004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2532
2533 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2534
3f911c94
KS
25352004-07-27 Kim F. Storm <storm@cua.dk>
2536
2537 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2538 we have ensured that the glyph fits on the current line (or returned
2539 MOVE_LINE_CONTINUED otherwise).
2540
f29ff8c7
KS
25412004-07-26 Kim F. Storm <storm@cua.dk>
2542
2543 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2544 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2545 if target position is at end of display line but char is not a newline.
2546
81159bb9
RS
25472004-07-25 Richard M. Stallman <rms@gnu.org>
2548
ab431b61
RS
2549 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2550 instead of ON_VERTICAL_BORDER, when on scroll bar.
2551 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2552
2553 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2554
f29ff8c7 2555 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2556 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2557
2558 * alloc.c (check_cons_list): New function (contents commented out).
2559
fc820cc5
LT
25602004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2561
2562 * xfaces.c (Fcolor_supported_p): Doc fix.
2563
2564 * frame.c (Fselect_frame, Fset_frame_selected_window)
2565 (Fframe_visible_p, Fraise_frame): Doc fixes.
2566
289978b5
LT
25672004-07-24 Richard M. Stallman <rms@gnu.org>
2568
78819ebb 2569 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2570
2571 * fileio.c (Fwrite_region): Doc fix.
2572
2573 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2574
2575 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2576 only when a real abbrev is present.
2577
289978b5
LT
2578 * xfns.c (x_icon_verify): New function.
2579 (Fx_create_frame): Use it.
2580
63cc10ae
KS
25812004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2582
2583 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2584
36f826d4
KS
25852004-07-21 Kim F. Storm <storm@cua.dk>
2586
2587 * window.h (struct glyph_matrix): New members nrows_scale_factor
2588 and ncols_scale_factor.
2589
2590 * window.c (make_window): Initialize nrows_scale_factor and
2591 ncols_scale_factor members.
2592
2593 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2594 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2595 (required_matrix_height): Apply nrows_scale_factor.
2596 (required_matrix_width): Apply ncols_scale_factor.
2597
2598 * xdisp.c (display_line): Increment nrows_scale_factor and set
2599 fonts_changed_p if past last allocated row.
2600 (append_glyph, append_composite_glyph, produce_image_glyph)
2601 (append_stretch_glyph): Increment ncols_scale_factor and set
2602 fonts_changed_p if current area is full.
2603
5fc1c546
JD
26042004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2605
2606 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2607
cb7516e5
LT
26082004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2609
2610 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2611 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2612 (Fset_window_start, Fscroll_up, Fscroll_down)
2613 (Fother_window_for_scrolling, Fscroll_other_window)
2614 (Fsave_window_excursion, Fset_window_vscroll)
2615 (syms_of_window) <window-size-fixed>: Doc fixes.
2616
b6189c3b 26172004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2618
2619 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2620 ENCODE_SYSTEM for filenames.
2621
bfcf6608
ST
26222004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2623
2624 * mac.c (sys_select): Block input around call to
2625 ReceiveNextEvent to prevent breakage. Correctly handle
2626 blocking on event queue only by calling ReceiveNextEvent
2627 instead of select (since GUI events aren't on an fd).
2628 (sys_read): Remove function
2629 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2630
e082ac9d
ST
26312004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2632
2633 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2634 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2635
cb7516e5 2636 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2637 frame creation.
2638
2639 * keyboard.c: Undef SIGIO on Carbon
2640
2641 * atimer.c (alarm_signal_handler): Call alarm handlers after
2642 scheduling.
2643
2644 * eval.c (Feval): Remove quit_char test
2645
2646 * process.c (wait_reading_process_input): Remove clearing
2647 stdin for select call on process input.
2648
4b9da0fb
LT
26492004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2650
1204e81c
LT
2651 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2652 capitalization error in docstring.
4b9da0fb 2653
26503ad2
JB
26542004-07-17 Juanma Barranquero <lektu@terra.es>
2655
2656 * keyboard.c (not_single_kboard_state): Do nothing unless
2657 MULTI_KBOARD is defined.
2658
3751eb00
RS
26592004-07-17 Richard M. Stallman <rms@gnu.org>
2660
2661 * window.c (coordinates_in_window): Inside the window but outside
2662 its box to the L or R, return ON_VERTICAL_BORDER.
2663 (window_list_1): Rotate the list to start with WINDOW.
2664
2665 * print.c (print_preprocess): Test for print_depth at limit
2666 before entering in being_printed.
2667
2668 * keyboard.c (not_single_kboard_state): New function.
2669 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2670
2671 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2672 this kboard, and we delete its last frame, go to any_kboard_state.
2673
2674 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2675
b6189c3b 26762004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2677
2678 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2679 system before passing them to OS functions for display.
2680
0f6af254
DK
26812004-07-15 David Kastrup <dak@gnu.org>
2682
f9253326
KS
2683 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2684 Apparently fixes an abort condition.
0f6af254 2685
386c8f42
LT
26862004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2687
2688 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2689 instead of a cons.
2690
366511da
MB
26912004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2692
2693 * keyboard.c (echo_dash): Do nothing if there already is a dash
2694 at the end of the echo string.
2695
f85409d3
KS
26962004-07-12 Kim F. Storm <storm@cua.dk>
2697
2698 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2699 if GC_MARK_STACK.
2700
0ba2e87b
LT
27012004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2702
da38045d
LT
2703 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2704
0ba2e87b
LT
2705 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2706 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2707 (Freplace_buffer_in_windows, Fset_window_buffer)
2708 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2709 (syms_of_window): Expand docstring of `display-buffer-function'.
2710
5668fbb8
LT
27112004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2712
2713 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2714 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2715 that time values of the type (HIGH . LOW) are considered obsolete.
2716
a085bf9d
LT
27172004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2718
669de2fb
LT
2719 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2720 docstring.
2721
bac66325 2722 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2723
8e975df9
JPW
27242004-07-06 John Paul Wallington <jpw@gnu.org>
2725
2726 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2727
fa164e6a
JPW
2728 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2729
2bac9bb1
JD
27302004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2731
2732 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2733 instead of CGMainDisplayID (only in OSX 10.2 and later).
2734
316ef0dc
JPW
27352004-07-04 John Paul Wallington <jpw@gnu.org>
2736
2737 * fileio.c (read_file_name_completion_ignore_case): New variable.
2738 (syms_of_fileio): Declare and initialise it.
2739 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2740
2a1a35c6
EZ
27412004-07-03 Eli Zaretskii <eliz@gnu.org>
2742
2743 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2744 for event.x and event.y.
2745
33a72331
KH
27462004-07-01 Kenichi Handa <handa@m17n.org>
2747
2748 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2749 after getting a new string by pre-write-conversion.
2750
9238467d 27512004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2752
2753 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2754 (x_calc_absolute_position): Remove unused var `child'.
2755
2756 * xfaces.c (x_supports_face_attributes_p)
2757 (Fdisplay_supports_face_attributes_p): YAILOM.
2758 (tty_supports_face_attributes_p): Remove unused var `i'.
2759
2760 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2761 back_unibyte_ok.
2762
2763 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2764
2765 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2766
2767 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2768
f96ec754
AS
27692004-06-30 Andreas Schwab <schwab@suse.de>
2770
2771 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2772 (Finit_image_library): Pass LIBRARIES through to
2773 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2774 (lookup_image_type): Pass Qnil as second argument to
2775 Finit_image_library.
2776
78819ebb 2777 * lisp.h (Finit_image_library): Declare.
f96ec754 2778
59feca74 27792004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2780
31983645
AS
2781 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2782 (XTread_socket): Send mouse button events to the toolbox
2783 dispatcher even when the mouse is grabbed. Don't process window
2784 activate events for non-Emacs windows. Replace function calls to
2785 do_window_activate and do_window_deactivate with their contents.
2786 Reset mouse grabbing status when a window is deactivated.
59feca74 2787
c61278bb
ST
27882004-06-29 Steven Tamm <steventamm@mac.com>
2789
2790 * macterm.c (mac_get_emulated_btn)
2791 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2792 support to correctly mask out modifiers.
2793
c3762cbd
DK
27942004-06-29 David Kastrup <dak@gnu.org>
2795
2796 * search.c (Fset_match_data): Allow buffer before end of list
2797 which can happen if set-match-data is using a pre-consed list.
2798
c61278bb 27992004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2800
2801 * macterm.c (XTread_socket): Correctly set the frame position
2802 after the window is moved.
2803
74cdfe05
JD
28042004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2805
2806 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2807 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2808 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2809 so insensitive and activated icons look ok.
74cdfe05 2810
ef544dc8
JR
28112004-06-27 Jason Rumney <jasonr@gnu.org>
2812
2813 * w32fns.c (file_dialog_callback): Disable edit control if set
2814 to directories only on CDN_INITDONE message.
2815 (Fx_file_dialog): Default to directories only when prompt starts
2816 with "Dired".
2817
7b7990cc
KS
28182004-06-25 Kim F. Storm <storm@cua.dk>
2819
2820 * alloc.c (allocate_misc): Update total_free_markers.
2821 (free_misc): New function.
2822 (safe_alloca_unwind, free_marker): Use it.
2823
2824 * lisp.h (free_misc): Add prototype.
2825
2826 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2827
d8c379f8
RS
28282004-06-24 Richard M. Stallman <rms@gnu.org>
2829
2830 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2831 (syms_of_emacs): Lisp variables deleted.
2832
559cdd07
DK
28332004-06-23 David Kastrup <dak@gnu.org>
2834
94939b84
DK
2835 * search.c (Freplace_match): Adjust the match-data more thoroughly
2836 when replacing strings in the buffer.
2837 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2838 a buffer, add the buffer as last element to the match data.
2839 (Fset_match_data): If an additional element of the match-data is a
2840 buffer, restore it to last_thing_searched.
c8d09ad8 2841 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2842 (restore_match_data): Restore it again.
2843
dce417e7
LT
28442004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2845
2846 * keymap.c (Ftext_char_description): Doc fix.
2847 * doc.c (Fsnarf_documentation): Doc fix.
2848
ef54b2d0
KS
28492004-06-22 Kim F. Storm <storm@cua.dk>
2850
b5bc4d05
KS
2851 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2852
ef54b2d0
KS
2853 * lisp.h (struct Lisp_Save_Value): New member dogc.
2854 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2855 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2856 (SAFE_FREE_LISP): New macro.
2857
2858 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2859 (make_save_value): Init new dogc member.
2860 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2861
2862 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2863 SAFE_FREE_LISP macros.
2864
3d33d993
KS
28652004-06-22 Kim F. Storm <storm@cua.dk>
2866
2867 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2868 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2869 in that memory area are unknown to GC. Add comments.
2870
2871 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2872
5c917f98
KS
28732004-06-21 Kim F. Storm <storm@cua.dk>
2874
2875 * lisp.h (MAX_ALLOCA): Define here.
2876 (safe_alloca_unwind): Add prototype.
2877 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2878
2879 * alloc.c (safe_alloca_unwind): New function.
2880
2881 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2882
2883 * charset.c (Fstring): Use SAFE_ALLOCA.
2884
2885 * coding.c (MAX_ALLOCA): Remove define.
2886
2887 * data.c (MAX_ALLOCA): Remove define.
2888 (Faset): Use SAFE_ALLOCA.
2889
2890 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2891
2892 * fns.c (string_make_multibyte, string_to_multibyte)
2893 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2894 (MAX_ALLOCA): Remove define.
2895 (Fbase64_encode_region, Fbase64_encode_string)
2896 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2897 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2898 memory leak if encoding fails.
2899
2900 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2901
9a09408e
EZ
29022004-06-21 Eli Zaretskii <eliz@gnu.org>
2903
2904 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2905
376de739
RS
29062004-06-20 Richard M. Stallman <rms@gnu.org>
2907
2908 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2909
2910 * search.c (match_limit): Cleaner err msg when no match data available.
2911
2912 * window.c (syms_of_window): Doc fix.
2913
2914 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2915 for Vtransient_mark_mode.
2916
2917 * buffer.c (syms_of_buffer): Doc fix.
2918
acd81db9
DK
29192004-06-21 David Kastrup <dak@gnu.org>
2920
2921 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2922 and unbinding of `case-fold-search' according to
2923 `completion-ignore-case' around calls of string-match and
2924 predicates, respectively. Should give satisfactory performance
2925 in all relevant cases.
2926
f303762d
JD
29272004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2928
95911c74
JD
2929 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2930 clip_x/y_origin.
2931
a6cb6b78
JD
2932 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2933
f303762d
JD
2934 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2935
2936 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2937 on Mac OSX.
2938
bbdb2684
LT
29392004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2940
2941 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2942
5ea48b1c
KS
29432004-06-16 Kim F. Storm <storm@cua.dk>
2944
2945 * dispextern.h (Vimage_types): Remove extern.
2946
803aac3e
MB
29472004-06-16 Miles Bader <miles@gnu.org>
2948
2949 * image.c (lookup_image_type): Initialize image type if necessary.
2950
cdc97764
KS
29512004-06-15 Kim F. Storm <storm@cua.dk>
2952
c4a5739c
KS
2953 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2954 margin at top of window.
2955 (try_window_reusing_current_matrix): Calculate proper cursor position
2956 after scrolling up with non-zero scroll margin, as the old cursor
2957 position corresponds to value of PT before executing this command.
2958 (try_window_id): Consider scroll margin at bottom of window too;
2959 otherwise we fail to scroll when hl-line-mode is enabled.
2960
cdc97764
KS
2961 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2962 proper format and class is a lower-case word.
2963
5b166323
JD
29642004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2965
2966 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2967 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2968 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2969 xg_get_gdk_pixmap_and_mask.
cdc97764 2970
5b166323
JD
2971 * xterm.h (struct x_display_info): Typo in comment fixed.
2972
1ebd4f78
JB
29732004-06-14 Juanma Barranquero <lektu@terra.es>
2974
2975 * dispextern.h (Vimage_types): Make it conditional on
2976 HAVE_WINDOW_SYSTEM.
2977
2978 * image.c (Vimage_types): Move from xdisp.c.
2979 (Vimage_type_cache): New variable.
2980 (define_image_type): New argument indicating whether an image
2981 library was loaded; cache loaded status and return t on success,
2982 nil otherwise.
2983 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2984 (w32_delayed_load): New function to load an image library from a
2985 list of possible filenames.
2986 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2987 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2988 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2989 (Finit_image_library): New function, extracted from `init_image'.
2990 Try to initialize an image library on demand and cache whether we
2991 were successful or not.
2992 (syms_of_image): Initialize `Vimage_types' and
2993 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2994 Export `init-image-library'.
2995 (init_image): Remove initialization of all image types, except xbm
2996 and pbm.
2997
2998 * xdisp.c (Vimage_types): Delete (moved to image.c).
2999
904ee128
AS
30002004-06-14 Andreas Schwab <schwab@suse.de>
3001
3002 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3003 Avoid calling specbind when completion-regexp-list is empty.
3004
092de21d
RS
30052004-06-13 Richard M. Stallman <rms@gnu.org>
3006
3007 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3008 (re_wctype, re_iswctype, re_wctype_to_bit):
3009 Non-function definitions moved here from regex.c.
1ebd4f78 3010
092de21d
RS
3011 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3012 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3013 (re_wctype, re_iswctype, re_wctype_to_bit):
3014 Non-function definitions moved to regex.h.
3015
3016 * window.c (Fselect_window): Doc fix.
3017
3018 * syntax.c: Include regex.h.
3019 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3020 If requested, make a list of classes, then check the scanned
3021 chars for membership in them.
3022 (in_classes): New function.
3023 Doc fix.
3024
3025 * keyboard.c (cmd_error): Don't call any_kboard_state
3026 if inside a recursive edit level.
3027
30282004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3029
3030 * keyboard.c (command_loop): Call any_kboard_state before
3031 command_loop_2 when at top level.
3032
3ebc0939
AS
30332004-06-13 Andreas Schwab <schwab@suse.de>
3034
cea5d0d4
AS
3035 * print.c (print_object): Always use %ld for printing EMACS_INT.
3036
3037 * keyboard.c (cancel_hourglass_unwind): Return a value.
3038 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3039 (Fexecute_extended_command): Likewise.
3040
3041 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3042 avoid clashes.
3043 (SYNTAX): Likewise.
3044 (SYNTAX_WITH_FLAGS): Likewise.
3045 (SYNTAX_MATCH): Likewise.
3046
3047 * syntax.c (char_quoted): Avoid warning about undefined operation.
3048 (find_defun_start): Likewise.
3049 (scan_lists): Likewise.
3050 (INC_FROM): Likewise.
3051 (scan_sexps_forward): Likewise.
3052
be8c4ce4
AS
3053 * image.c: Include <ctype.h>.
3054
3ebc0939
AS
3055 * xfaces.c (face_attr_equal_p): Declare parameters.
3056
6fb41b5b
KH
30572004-06-13 Kenichi Handa <handa@m17n.org>
3058
3059 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3060
fc3095ce
EZ
30612004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3062
3063 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3064
66189a40
KH
30652004-06-12 Kenichi Handa <handa@m17n.org>
3066
3067 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3068 ccl_prog_stack_struct and update it.
3069 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3070 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3071 ccl->eof_ic on EOF.
3072 (ccl_debug_hook): New function.
3073 (struct ccl_prog_stack): New member eof_ic.
3074 (ccl_driver): Handle EOF in subrountine call correctly.
3075
30762004-06-11 Kenichi Handa <handa@m17n.org>
3077
3078 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3079
1da71023
KS
30802004-06-11 Kim F. Storm <storm@cua.dk>
3081
3082 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3083
e9efcef4
JB
30842004-06-11 Juanma Barranquero <lektu@terra.es>
3085
3086 * keyboard.c (Fposn_at_point): Doc fix.
3087
9b9ceb61
DK
30882004-06-11 David Kastrup <dak@gnu.org>
3089
3090 * search.c (match_limit): Don't flag an error if match-data
3091 exceeding the allocated search_regs.num_regs gets requested, just
3092 return Qnil.
3093
6e87ac8f
MB
30942004-06-08 Miles Bader <miles@gnu.org>
3095
3096 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3097
0b0dea7b
JB
30982004-06-07 Juanma Barranquero <lektu@terra.es>
3099
3100 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3101 (Fcurrent_time_string, Fcurrent_time_zone)
3102 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3103
a0a23346
MB
31042004-06-07 Miles Bader <miles@gnu.org>
3105
08384afd 3106 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3107 (push_named_merge_point): New function.
3108 (merge_named_face): New function.
3109 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3110 Use `merge_named_face'.
3111 (merge_face_inheritance): Function removed.
c8d09ad8 3112 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3113 Add new `err_msgs' and `named_merge_points' args. Return error
3114 status. Only print error messages if ERR_MSGS is true. Don't try to
3115 do :inherit attribute validation.
3116 (merge_face_heights): Handle `unspecified' in both directions.
3117 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3118 Call `merge_face_ref' instead of `merge_face_inheritance'.
3119 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3120 (compute_char_face, face_at_buffer_position)
3121 (face_at_string_position): Call `merge_face_ref' instead of
3122 `merge_face_vector_with_property'.
3123
12d5b185
KH
31242004-06-07 Kenichi Handa <handa@m17n.org>
3125
3126 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3127 the necessary places.
3128
2e2d7ee6
KS
31292004-06-07 Kim F. Storm <storm@cua.dk>
3130
3131 * process.c (Fdelete_process): Undo 2004-05-28 change.
3132 Instead, call status_notify also for network process.
3133 (status_message): Use process instead of status as arg.
3134 Give messages "deleted" or "connection broken by remote peer" for
3135 an exited network process.
3136 (status_notify): Change call to status_message.
3137 (read_process_output): Increase readmax to 4096. Do not increase
3138 buffer size for datagram channels (default is now large enough).
3139
fcf0d299
ST
31402004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3141
3142 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3143 problem due to newly defined variable.
3144
0722292b
MB
31452004-06-06 Miles Bader <miles@gnu.org>
3146
3147 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3148 immediately if non-interactive or not initialized.
3149
ddfb8369
RS
31502004-06-05 Richard M. Stallman <rms@gnu.org>
3151
3152 * minibuf.c (Fcompleting_read): Doc fix.
3153
57015754
AS
31542004-06-05 Andreas Schwab <schwab@suse.de>
3155
3156 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3157
23715ea6
JB
31582004-06-05 Juanma Barranquero <lektu@terra.es>
3159
3160 * keymap.c (Fdescribe_vector): Fix docstring.
3161 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3162
8e330b22
MB
31632004-06-05 Miles Bader <miles@gnu.org>
3164
3165 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3166 attributes have different values than the default face.
3167
9742a3a6
EZ
31682004-06-04 Eli Zaretskii <eliz@gnu.org>
3169
3170 * xfaces.c (x_supports_face_attributes_p): Make this function
3171 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3172 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3173 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3174
9717e36c
MB
31752004-06-04 Miles Bader <miles@gnu.org>
3176
3177 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3178 from Ftty_supports_face_attributes_p.
3179 (x_supports_face_attributes_p): New function.
3180 (Ftty_supports_face_attributes_p): Function deleted.
3181 (Fdisplay_supports_face_attributes_p): New function.
3182 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3183 (face_attr_equal_p): New function.
9717e36c
MB
3184 (lface_equal_p): Use it.
3185
52deb19f
JB
31862004-06-03 Juanma Barranquero <lektu@terra.es>
3187
3188 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3189 (Vw32_color_map): Fix typo in docstring.
3190 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3191 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3192 Make argument names match their use in docstring.
3193
86d373e6
JB
31942004-06-02 Juanma Barranquero <lektu@terra.es>
3195
3196 Work around bugs/problems with MinGW builds of graphics libraries
3197 called from MSVC builds of Emacs.
3198
3199 * image.c (lookup_image): Make pointer to img static.
3200 (png_read_from_memory): Disable "global" optimization.
3201
2fb0ce67
SM
32022004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3203
c8d09ad8
SM
3204 * eval.c (Fcondition_case): Fix usage. Simplify.
3205
2fb0ce67
SM
3206 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3207
50bf7673
ST
32082004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3209
3210 * macfns.c: Don't include ccl.h.
3211 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3212 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3213 TextUtils.h.
c8d09ad8 3214 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3215 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3216 display height/width.
3217 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3218 (unwind_create_tip_frame, compute_tip_xy): New functions.
3219 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3220 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3221 and last_show_tip_args.
2fb0ce67 3222
50bf7673
ST
3223 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3224 (Cursor, No_Cursor): New defines.
c8d09ad8 3225 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3226 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3227
3228 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3229
3230 * macterm.c: Don't include Gestalt.h.
3231 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3232 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3233 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3234 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3235 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3236 (construct_mouse_click, XTmouse_position)
3237 (x_scroll_bar_report_motion, x_calc_absolute_position)
3238 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3239 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3240 (note_mouse_movement): Clear the mouse face and reset the pointer
3241 shape when the pointer goes outside the frame without grabbing.
3242 (mac_front_window): New function.
3243 (mac_window_to_frame): New macro.
3244 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3245 (do_window_activate, do_window_deactivate, do_app_resume)
3246 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3247 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3248 (mac_check_for_quit_char): Use mac_front_window and/or
3249 mac_window_to_frame.
3250 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3251 scroll-bar click event.
3252 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3253 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3254 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3255 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3256 (do_window_update): Don't do anything if the updated window is the
3257 tooltip window.
3258 (do_mouse_moved): Handle mouse movement events here (previously in
3259 XTread_socket). Clear the mouse face if
3260 dpyinfo->mouse_face_hidden is set.
3261 (do_os_event, do_events): Remove (now in XTread_socket).
3262 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3263 Loop until all the events in the queue are processed.
3264 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3265 contents of do_os_event and do_events. Remove mouse movement
3266 handling (now in do_mouse_moved). Add the case where
3267 Vmouse_highlight has an integer value.
3268 (NewMacWindow): Remove.
3269 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3270 excess initializations.
3271 (make_mac_terminal_frame): Previous initializations in
3272 make_mac_frame are moved here.
c8d09ad8
SM
3273 (mac_initialize_display_info):
3274 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3275
3276 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3277 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3278
08fd1251
RS
32792004-05-29 Richard M. Stallman <rms@gnu.org>
3280
3281 * lisp.h (truncate_undo_list): Update decl.
3282
3283 * alloc.c (undo_outer_limit): New variable.
3284 (syms_of_alloc): Defvar it.
3285 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3286
3287 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3288
3289 * alloc.c (lisp_align_malloc): Check for base == 0
3290 regardless of HAVE_POSIX_MEMALIGN.
3291 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3292
227ef0ff
SM
32932004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3294
3295 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3296 (marker_blocks_pending_free): Remove.
3297 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3298 Mark the undo lists after claning them up.
3299 Don't free block in marker_blocks_pending_free.
3300 (mark_buffer): Don't mark undo_list.
3301 (gc_sweep): Sweep hash-tables and strings first.
3302 Do free marker blocks that are empty.
3303
034a6113
SM
33042004-05-28 Jim Blandy <jimb@redhat.com>
3305
3306 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3307 after 'case wordend'. For symbeg and symend, print to stderr,
3308 like the other cases.
3309
33594a8d
NF
33102004-05-28 Noah Friedman <friedman@splode.com>
3311
3312 * process.c (Fdelete_process): Do not call remove_process.
3313
ce50a847
SM
33142004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3315
3316 * alloc.c (struct backtrace): Remove.
3317 (Fgarbage_collect): Use the new mark_backtrace.
3318
3319 * eval.c (mark_backtrace): New function.
3320
3321 * minibuf.c (run_exit_minibuf_hook): New function.
3322 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3323 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3324
1e8dae36
KS
33252004-05-27 Kim F. Storm <storm@cua.dk>
3326
3327 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3328 over display properties, e.g. images, that replace buffer text.
3329
846faa3b
KS
33302004-05-25 Kim F. Storm <storm@cua.dk>
3331
3332 * alloc.c (marker_blocks_pending_free): New var.
3333 (gc_sweep): Store free marker blocks on that list.
3334 (Fgarbage_collect): Free them after undo-list cleanup.
3335
3336 * process.c (wait_reading_process_input): Check connect_wait_mask
3337 before actually accepting connection in case it has already been
3338 accepted due to recursion.
3339
b6189c3b 33402004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3341
ce50a847
SM
3342 * coding.c (Fset_safe_terminal_coding_system_internal):
3343 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3344
71d5a208
RS
33452004-05-22 Richard M. Stallman <rms@gnu.org>
3346
3347 * alloc.c (Fmake_string): Doc fix.
3348
3349 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3350 and the alist pairs too.
3351
3352 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3353
3354 * emacs.c (main): Update copyright year.
3355
3356 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3357
3358 * insdel.c (del_range_2, replace_range): Don't write an anchor
3359 if the gap is empty.
3360
3361 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3362 scroll-down-aggressively is small but positive, put point
3363 near the screen edge.
3364
f63fd14e
JB
33652004-05-22 Juanma Barranquero <lektu@terra.es>
3366
3367 * keymap.c (Fdefine_key): Doc fix.
3368
4d12067c
KS
33692004-05-22 Kim F. Storm <storm@cua.dk>
3370
3371 * alloc.c (struct backtrace): Add debug_on_exit member.
3372 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3373 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3374 the removed cons cells.
3375 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3376 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3377 any cons cells pointing to unallocated stings.
3378 Do not lisp_free any marker blocks, as there may still be pointers
3379 to them from buffer undo lists at this stage of GC.
3380
3381 * keyboard.c (struct backtrace): Add debug_on_exit member.
3382 (Fcommand_execute): Clear it.
3383
931285e2
LT
33842004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3385
3386 * intervals.c (lookup_char_property): Do not prematurely return nil.
3387
669fa600
SM
33882004-05-19 Jim Blandy <jimb@redhat.com>
3389
3390 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3391 beginning and end of symbols.
4d12067c 3392
669fa600
SM
3393 * regex.c (enum syntaxcode): Add Ssymbol.
3394 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3395 (re_opcode_t): New opcodes `symbeg' and `symend'.
3396 (print_partial_compiled_pattern): Print the new opcodes properly.
3397 (regex_compile): Parse the new operators.
ce50a847 3398 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3399 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3400 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3401 (re_match_2_internal): Match symbeg and symend.
3402
3403 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3404
0d8c2e5c
KS
34052004-05-19 Kim F. Storm <storm@cua.dk>
3406
3407 * .gdbinit (xsymbol): Fix last change.
3408
669fa600
SM
34092004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3410
3411 * .gdbinit (xprintstr): New fun.
3412 (xstring, xprintsym): Use it.
3413
3414 * w32proc.c (create_child): Use INTMASK.
3415
3416 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3417 unmarked elements of the undo list.
3418
9a6a4c40
DP
34192004-05-18 David Ponce <david@dponce.com>
3420
3421 * print.c (print): Reset print_depth before to call print_object.
3422
f3c4ec74
JR
34232004-05-18 Jason Rumney <jasonr@gnu.org>
3424
3425 * w32console.c: Prefix RIF functions with w32con_ to avoid
3426 namespace clash with functions in term.c and w32term.c.
3427
3428 * w32menu.c (add_menu_item, w32_menu_display_help)
3429 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3430
0d8c2e5c 3431 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3432
6be49c3a
EZ
34332004-05-18 Eli Zaretskii <eliz@gnu.org>
3434
4d0b9a0a
EZ
3435 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3436
6be49c3a
EZ
3437 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3438 with make_number.
3439 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3440 with XINT.
3441
0bc90bba
KS
34422004-05-18 Kim F. Storm <storm@cua.dk>
3443
89d19988
KS
3444 * blockinput.h (INPUT_BLOCKED_P): New macros.
3445
3446 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3447 (Ftop_level): Unblock input if blocked.
3448
0bc90bba
KS
3449 * buffer.h (GET_OVERLAYS_AT): New macro.
3450 * msdos.c (IT_note_mouse_highlight): Use it.
3451 * textprop.c (get_char_property_and_overlay): Use it.
3452 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3453 * xfaces.c (face_at_buffer_position): Use it.
3454
3455 * print.c (print_object): Increase buf size.
3456
653bd0f6
JR
34572004-05-17 Jason Rumney <jasonr@gnu.org>
3458
3459 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3460 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3461 Lisp_Object using i member.
3462 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3463 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3464 consistently.
3465
3466 * w32proc.c (create_child): Use make_number instead of masking pid.
3467
3468 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3469 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3470 Use EQ to compare Lisp_Objects.
3471 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3472
3473 * w32term.c (w32_num_mouse_buttons): Rename from
3474 Vw32_num_mouse_buttons and make it an int.
3475
3476 * w32.c (init_environment): Use it.
3477
3478 * w32fns.c (w32_wnd_proc): Likewise.
3479
3480 * w32proc.c (w32_pipe_read_delay): Rename from
3481 Vw32_pipe_read_delay and make it an int.
3482
3483 * w32.c (_sys_read_ahead): Use it.
3484
3485 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3486
3487 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3488
3489 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3490 (key_event): Don't mix Lisp_Object and int.
3491
3492 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3493
3494 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3495 modifiers in language change event.
3496
54b53ba7
KS
34972004-05-17 Kim F. Storm <storm@cua.dk>
3498
3499 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3500 Such objects may be freed markers which still exist on an undo list.
3501
6e86a75d
JB
35022004-05-16 Juanma Barranquero <lektu@terra.es>
3503
3504 * data.c (Fset_default): Make argument names match their use in
3505 docstring.
3506
fc80da24
AS
35072004-05-15 Andreas Schwab <schwab@suse.de>
3508
3509 * emacs.c (gdb_array_mark_flag): Define.
3510 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3511
c1380aa6
EZ
35122004-05-15 Eli Zaretskii <eliz@gnu.org>
3513
3514 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3515 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3516 defined for the MS-DOS build.
3517
89458937
SM
35182004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3519
3520 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3521
08020f9a
KH
35222004-05-14 Kenichi Handa <handa@m17n.org>
3523
3524 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3525
a433994a
ST
35262004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3527
3528 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3529 section to frame.c section.
3530 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3531 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3532
a433994a 3533 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3534
a433994a 3535 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3536
a433994a
ST
3537 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3538 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3539 (XTread_socket): Fix int/Lisp_Object mixup.
3540 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3541
a433994a
ST
3542 * macterm.h (struct frame, struct face, struct image)
3543 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3544 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3545 Add prototypes.
a433994a 3546
b51a51b9
KS
35472004-05-14 Kim F. Storm <storm@cua.dk>
3548
3549 * process.c (wait_reading_process_input): Make reentrant.
3550 Make Available and Connecting non-static. Save and restore value
3551 of waiting_for_user_input_p.
3552
2bde1dd8
KS
35532004-05-13 Kim F. Storm <storm@cua.dk>
3554
3555 * keyboard.c (mark_kboards): Don't mark x and y members
3556 that are overloaded in selection request events.
3557
a267ab4d
SM
35582004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3559
3560 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3561
eb15ce9e
GM
35622004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3563
3564 * window.c (Fdisplay_buffer, Fsplit_window)
3565 (split-height-threshold): Doc fix.
3566
7fc92635
JB
35672004-05-13 Juanma Barranquero <lektu@terra.es>
3568
3569 * xfaces.c (Ftty_supports_face_attributes_p)
3570 (Finternal_copy_lisp_face): Fix typo in docstring.
3571 (Finternal_get_lisp_face_attribute): Fix docstring.
3572
1ec2a572
JD
35732004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3574
3575 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3576
ae9292e0
ST
35772004-05-11 Steven Tamm <steventamm@mac.com>
3578
3579 * macfns.c (Fx_create_frame): Default to using tool-bar by
3580 setting tool-bar-lines to 1 in default-frame-alist.
3581
35822004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3583
3584 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3585 (xpm_get_color_table_v, xpm_make_color_table_h)
3586 (xpm_put_color_table_h, xpm_get_color_table_h)
3587 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3588 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3589 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3590
fe97e8df
ST
35912004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3592
a267ab4d 3593 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3594 instead of FRAME_X_P
3595
b47e779e
KS
35962004-05-11 Kim F. Storm <storm@cua.dk>
3597
3598 * process.c (read_process_output): Grow decoding_buf when needed;
3599 this could cause a crash in allocate_string and compact_small_strings.
3600
cdc9b845
EZ
36012004-04-29 Jim Blandy <jimb@redhat.com>
3602
3603 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3604 against proper opcode.
3605
aa7094ba
JB
36062004-05-10 Juanma Barranquero <lektu@terra.es>
3607
3608 * process.c (Fstart_process): Fix docstring.
3609
3610 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3611 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3612 (Fsplit_char, Fchar_charset): Make argument names match their use
3613 in docstring.
3614
e109331a
RS
36152004-05-10 Richard M. Stallman <rms@gnu.org>
3616
3617 * print.c (print_preprocess): Use being_printed, loop_count and
3618 halftail to detect overdeep nesting and cyclic cdr chains.
3619
9a28b921
AS
36202004-05-10 Andreas Schwab <schwab@suse.de>
3621
78819ebb 3622 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3623
3624 * fileio.c (Frename_file): Remove extra argument in call to
3625 Fmake_symbolic_link.
3626
e2c02c1a
KS
36272004-05-10 Kim F. Storm <storm@cua.dk>
3628
3629 * xdisp.c (calc_line_height_property): Use string position when
3630 object is a string.
3631
cfe9d13e
KH
36322004-05-10 Kenichi Handa <handa@m17n.org>
3633
a57e8159
KH
3634 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3635 inhibit-modification-hooks to t temporarily before calling
3636 Ferase_buffer.
3637
3638 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3639 inhibit-modification-hooks to t temporarily before calling
3640 Ferase_buffer.
3641
3642 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3643 inhibit-modification-hooks to t temporarily before calling
3644 Ferase_buffer.
3645
cfe9d13e
KH
3646 * fns.c (count_combining): Delete it.
3647 (concat): Don't check combining bytes.
3648
ceb96489
JR
36492004-05-09 Jason Rumney <jasonr@gnu.org>
3650
3651 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3652 (globals_of_w32fns): Set it.
3653
b6189c3b 36542004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3655
3656 * data.c (Fquo): Simplify.
3657
28712a21
JB
36582004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3659
3660 * data.c (Fquo): If any argument is float, do the computation in
3661 floating point.
3662
0f0af7a8
JB
36632004-05-08 Juanma Barranquero <lektu@terra.es>
3664
88214ef6
JB
3665 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3666 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3667 Fix spelling of Emacs on docstring.
3668 (Fset_process_coding_system, Fprocess_coding_system)
3669 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3670 Make argument names match their use in docstring.
3671 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3672 Fix docstring.
3673
0f0af7a8
JB
3674 * editfns.c (Finsert_buffer_substring): Make argument names match their
3675 use in docstring.
3676
3677 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3678
2a316a84
ST
36792004-05-07 Steven Tamm <steventamm@mac.com>
3680
3681 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3682 around call to ReceiveEvent to avoid certain crashes.
3683
36842004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3685
2a316a84
ST
3686 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3687 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3688 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3689 Save/restore the current graphics port and device handle when
3690 drawing into an offscreen graphics world.
3691
3692 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3693 (gif_load): Likewise.
3694
ab80314b
JB
36952004-05-07 Juanma Barranquero <lektu@terra.es>
3696
3697 * window.c (Fset_window_buffer): Fix docstring.
3698
70646bb5
TTN
36992004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3700
3701 * emacs.c (main) [VMS]: Fix var ref.
3702
b6189c3b 37032004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3704
3705 * data.c (Fsetq_default): Fix docstring.
3706
279d3293
JR
37072004-05-06 Jason Rumney <jasonr@gnu.org>
3708
3709 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3710 to avoid name clash.
3711
f72b5416
JD
37122004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3713
3714 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3715 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3716 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3717
6ab66799
KS
37182004-05-04 Kim F. Storm <storm@cua.dk>
3719
3720 * xdisp.c (Qtotal): New var.
3721 (syms_of_xdisp): Intern and staticpro it.
3722 (calc_line_height_property): New arg total. Set it if
3723 line-spacing property has format (total . VALUE).
3724 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3725 Handle total line-spacing property.
3726
ab2d724b
JD
37272004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3728
3729 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3730 "under" scroll bar when size/position changes.
3731
238add5e
JR
37322004-05-03 Jason Rumney <jasonr@gnu.org>
3733
3734 * makefile.nt: Remove.
3735
1644f4e4
EZ
37362004-05-02 Eli Zaretskii <eliz@gnu.org>
3737
a267ab4d
SM
3738 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3739 Avoid compiler warnings.
05fdbeb8 3740
1644f4e4
EZ
3741 * Makefile.in (region-cache.o): Depend on config.h.
3742
b6189c3b 37432004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3744
3745 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3746 with continuation lines, too.
3747
2b98b088
TTN
37482004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3749
3750 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3751
d9bf7950
SM
37522004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3753
3754 * xdisp.c (calc_line_height_property): YAILOM (yet another
3755 int/Lisp_Object mixup).
3756
affa509c
EZ
37572004-05-01 Eli Zaretskii <eliz@gnu.org>
3758
3759 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3760 undo bad effect of pack(4) in some versions of system headers.
3761
07c07cfe
JR
37622004-05-01 Jason Rumney <jasonr@gnu.org>
3763
3764 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3765
e71caa4e
KS
37662004-04-30 Kim F. Storm <storm@cua.dk>
3767
3768 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3769 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3770
3771 * dispextern.h (struct it): Remove member use_default_face.
3772 Add members override_ascent, override_descent, override_boff.
3773
3774 * xdisp.c (init_iterator): Handle line-spacing float value.
3775 Initialize override_ascent member.
3776 (append_space_for_newline): Reset override_ascent.
3777 Remove use_default_face.
3778 (calc_line_height_property): New function to calculate value of
3779 line-height and line-spacing properties. Look at overlays, too.
3780 Set override_ascent, override_descent, override_boff members when
3781 using another face than the current face. Float values are now
3782 relative to the frame default font, by default; accept a cons
3783 of ratio and face name to specify value relative to a specific face.
3784 (x_produce_glyphs): Use calc_line_height_property.
3785 Use override_ascent etc. when set to handle different face heights.
3786 A negative line-spacing property value is interpreted as a total
3787 line height, rather than inter-line spacing.
3788 (note_mouse_highlight): Allocate room for 40 overlays initially.
3789
0fddae66
SM
37902004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3791
3792 * data.c (Fsubr_name): New fun.
3793 (syms_of_data): Defsubr it.
3794
712d23dc
KS
37952004-04-29 Kim F. Storm <storm@cua.dk>
3796
3797 * xdisp.c (null_glyph_slice): New var.
3798 (append_glyph, append_composite_glyph, append_stretch_glyph):
3799 Use it to initialize glyph slice.
3800
033ad8c6
SM
38012004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3802
3803 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3804 (on_hot_spot_p): Make sure we always return a value.
3805 (Flookup_image_map): Remove unused var ix and iy.
3806 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3807
93397360
EZ
38082004-04-27 Eli Zaretskii <eliz@gnu.org>
3809
3810 * msdos.c (init_environment): If one of the TMP... environment
3811 variables is set to a drive letter without a trailing slash,
3812 append a slash.
3813
0c54865e
EZ
38142004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3815
3816 * editfns.c (lisp_time_argument): Provide externally.
3817
3818 * fileio.c (Fset_file_times): New function.
3819 (syms_of_fileio): Intern and staticpro it.
3820
d3b111bd
KS
38212004-04-27 Kim F. Storm <storm@cua.dk>
3822
07dc1231
KS
3823 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3824 header line strings.
3825
360fe9d2
KS
3826 * dispextern.h (struct it): New member use_default_face.
3827
d3b111bd
KS
3828 * xdisp.c (Qline_height): New variable.
3829 (syms_of_xdisp): Intern and staticpro it.
3830 (append_space_for_newline): Partially undo 2004-04-25 change;
3831 add default_face_p arg, and restore callers.
3832 Clear it->use_default_face after use.
3833 (x_produce_glyphs): Set default font for ascii char if
3834 it->use_default_font is set. Change line-spacing property to set
3835 just extra line spacing. Handle new line-height property.
3836
0448588b
AS
38372004-04-26 Andreas Schwab <schwab@suse.de>
3838
3839 * print.c (print_object): Print non-ascii characters in bool
3840 vector representation as octal escapes.
3841
3842 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3843 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3844 bool vectors.
3845 * lread.c (read1): Likewise.
3846 * alloc.c (Fmake_bool_vector): Likewise.
3847 * data.c (Faref, Faset): Likewise.
3848 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3849 (mapcar1): Likewise.
d3b111bd 3850
536d6baa
ST
38512004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3852
3853 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3854
ae11577a
MB
38552004-04-26 Miles Bader <miles@gnu.org>
3856
3857 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3858
e198ba87
JB
38592004-04-26 Juanma Barranquero <lektu@terra.es>
3860
3861 * buffer.c (Fpop_to_buffer): Fix docstring.
3862
f3d5f92d 38632004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3864
f3d5f92d
ST
3865 * lread.c (init_lread): Don't display missing lisp directory
3866 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3867 may be built without correct installation path.
f3d5f92d 3868
03e35edc
KS
38692004-04-25 Kim F. Storm <storm@cua.dk>
3870
9ff3aa31
KS
3871 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3872
3873 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3874
03e35edc
KS
3875 * xdisp.c (append_space_for_newline): Rename from append_space.
3876 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3877 (x_produce_glyphs): Handle line-spacing property on newline char.
3878 If value is t, adjust ascent and descent to fit current row height.
3879 If value is an integer or float, set extra_line_spacing to integer
3880 value, or to float value x current line height.
3881
f24814e0
KH
38822004-04-23 Kenichi Handa <handa@m17n.org>
3883
3884 * fontset.c (Finternal_char_font): If POSITION is nil, return
3885 font for displaying CH with the default face.
3886
d814862a
JB
38872004-04-23 Juanma Barranquero <lektu@terra.es>
3888
3889 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3890
063a45c5
SM
38912004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3894 Don't make assumptions about the relative place of i and val.
3895 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3896
ae7ab2d3
KS
38972004-04-21 Kim F. Storm <storm@cua.dk>
3898
3899 * dispextern.h (struct glyph_slice): New struct.
3900 (struct glyph): New member slice.
3901 (GLYPH_SLICE_EQUAL_P): New macro.
3902 (GLYPH_EQUAL_P): Use it.
3903 (struct glyph_string): New member slice.
3904 (struct it_slice): New struct.
3905 (struct it): New member slice, add member to stack too.
3906 New member constrain_row_ascent_descent_p.
3907 (image_ascent): Add prototype.
3908
3909 * dispnew.c (buffer_posn_from_coords): Return full image width
3910 and height even for image slices (posn is relative to full image).
3911 (marginal_area_string): Adjust x0,y0 for image slice.
3912
3913 * image.c (image_ascent): Add slice arg; calculate ascent for
3914 image slice (or full image).
3915
3916 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3917 (syms_of_keyboard): Defsubr them.
3918
3919 * lisp.h (pos_visible_p): Fix prototype.
3920
c62aec78 3921 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3922 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3923 (x_draw_image_foreground, x_draw_image_relief)
3924 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3925 Draw sliced images.
3926
3927 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3928 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3929 (x_draw_image_foreground, x_draw_image_relief)
3930 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3931 Draw sliced images.
3932
3933 * w32term.h (image_ascent): Remove prototype.
3934
3935 * window.c (Fpos_visible_in_window_p): Return pixel position if
3936 PARTIALLY arg is non-nil. Simplify. Doc fix.
3937 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3938 to return/set vscroll in pixels.
3939
3940 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3941
3942 * xdisp.c (Qslice): New variable.
3943 (syms_of_xdisp): Intern and staticpro it.
3944 (pos_visible_p): Return pixel position in new x and y args.
3945 (init_iterator): Reset it->slice info.
3946 (handle_display_prop): Parse (slice ...) property.
3947 (push_it, pop_it): Save/restore slice info.
3948 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3949 force repositioning of tall row if window is vscrolled, as that
3950 would reset vscroll.
3951 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3952 increasing row height if row is non-empty.
3953 (fill_image_glyph_string): Copy slice info.
3954 (take_vertical_position_into_account): Simplify.
3955 (produce_image_glyph): Handle iterator slice info, setup glyph
3956 slice info. Do not force minimum line height.
3957 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3958 do not increase height (ascent/descent) of non-empty row when
3959 adding normal character glyph; instead reduce glyph ascent/descent
3960 appropriately; if row is higher than current glyph, adjust glyph
3961 descent/ascent to reposition glyph within the existing row.
3962 Likewise, when char is newline, only set ascent/descent if row is
3963 currently empty.
3964 (note_mouse_highlight): Handle hotspots with sliced image.
3965
3966 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3967 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3968 (x_draw_image_foreground, x_draw_image_relief)
3969 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3970 Draw sliced images.
3971
3972 * xterm.h (image_ascent): Remove prototype.
3973
d58f8753
SM
39742004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3975
3976 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3977
4ce2719d
JPW
39782004-04-20 John Paul Wallington <jpw@gnu.org>
3979
3980 * fns.c (Fassoc, Feql): Fix indentation.
3981
d58f8753 3982 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3983
95f8c3b9
JPW
39842004-04-19 John Paul Wallington <jpw@gnu.org>
3985
3986 * fns.c (Feql): New function.
d58f8753 3987 (syms_of_fns): Defsubr it.
95f8c3b9 3988
b7e85537
JR
39892004-04-18 Jason Rumney <jasonr@gnu.org>
3990
3991 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3992 after closing the clipboard.
3993
5a72efd4
LT
39942004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3995
3996 * buffer.c (Fbuffer_base_buffer): Doc fix.
3997
20dc8583
KS
39982004-04-17 Kim F. Storm <storm@cua.dk>
3999
60962ec4
KS
4000 * keymap.c (Fkey_description): Add optional PREFIX arg.
4001 Combine prefix with KEYS to make up the full key sequence to describe.
4002 Correlate meta_prefix_char and following (simple) key to describe
4003 as meta modifier. All callers changed.
4004 (describe_map): Rename arg `keys' to `prefix'. Remove local
4005 `elt_prefix' var. Use Fkey_description with prefix instead of
4006 elt_prefix combined with Fsingle_key_description.
4007 (describe_vector): Declare static. Replace arg `elt_prefix' with
4008 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4009 if !KEYMAP_P. Use Fkey_description with prefix instead of
4010 Fsingle_key_description.
4011
4012 * keymap.h (Fkey_description): Fix prototype.
4013 (describe_vector): Remove prototype.
4014
409368b9
KS
4015 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4016
20dc8583
KS
4017 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4018 (png_load): Fix calculation of transparent background color on X
4019 and W32 platforms.
4020
75c5501b
JB
40212004-04-16 Juanma Barranquero <lektu@terra.es>
4022
4023 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4024 not too large before computing how much to scroll.
4025
da879ae8
SM
40262004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4027
4028 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4029
d01ca4a8
LT
40302004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4031
4032 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4033 Add hyperlink to Elisp manual to the docstring.
4034
572943b3
SM
40352004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4036
4037 * callint.c (fix_command): Use XDCR.
4038
5e30a0fb
NR
40392004-04-14 Nick Roberts <nick@nick.uklinux.net>
4040
4041 * window.c (Fget_lru_window): Doc fix.
4042
a27ddfaf
KS
40432004-04-14 Kim F. Storm <storm@cua.dk>
4044
4045 * editfns.c (Fformat): Fix allocation size of precision array.
4046
4047 * dispnew.c (update_window): Only set changed_p if
4048 scrolling_window actually did scroll.
4049 (scrolling_window): Only return 1 if we actually did scroll.
4050
4051 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4052 height to glyph height when cursor row is not fully visible.
4053 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4054 failure in case row is higher than window. Callers changed.
4055 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4056 Try to scroll partially visible, higher-than-window cursor row.
4057 (redisplay_window): Always try to scroll partially visible,
4058 higher-than-window cursor row - both initially and again with
4059 centering_position = 0.
4060 Clear desired matrix before retrying with centering_position = 0.
4061
da879ae8
SM
40622004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4063
4064 * syntax.c (scan_lists): Simplify backward string scan.
4065 Fix off-by-one boundary check for string and comment fences.
4066
5fc16e8e
SM
40672004-04-13 Joe Buehler <jbuehler@hekimian.com>
4068
4069 * sheap.c, unexcw.c: New files.
4070
c9aac8e6
LT
40712004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4072
4073 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4074 base buffer has been killed. Correct the error message if the
4075 base buffer does not exist.
4076
1e88a355
SM
40772004-04-12 Joe Buehler <jbuehler@hekimian.com>
4078
4079 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4080 Cygwin itself. Add support for Xaw3d scrollbars.
4081
4082 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4083
4084 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4085
4086 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4087 before Cygwin unexec.
4088
4089 * Makefile.in: Link changes for Cygwin unexec() support.
4090
8dbff9a0
AS
40912004-04-12 Andreas Schwab <schwab@suse.de>
4092
4093 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4094
54dffe35
LT
40952004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4096
4097 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4098 IGNORE argument equals NAME. Doc fix.
4099
99a72bdf
MY
41002004-04-11 Masatake YAMATO <jet@gyve.org>
4101
1e88a355 4102 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4103 empty if they are backwards.
4104
40899d7b
SM
41052004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4106
4107 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4108
f8f853de
SM
41092004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4110
4111 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4112
c953fe1b
KS
41132004-04-06 Kim F. Storm <storm@cua.dk>
4114
661e85c1
KS
4115 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4116 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4117
4118 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4119 clearing highlight.
4120
4121 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4122
4123 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4124 clearing highlight.
4125
c953fe1b
KS
4126 * indent.c (vmotion): Do not reserve one column for continuation
4127 marks on window frames.
4128
c1994268
EZ
41292004-04-04 Eli Zaretskii <eliz@gnu.org>
4130
4131 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4132 from GCC.
4133
9f691b0d
SM
41342004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4135
4136 * .gdbinit-union: Remove.
4137
4138 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4139 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4140 ($nonvalbits): Remove.
4141 ($valmask): Set it by calling xreload to avoid redundancy.
4142
4143 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4144 (gdb_emacs_intbits): Remove.
4145
7a8560d7
JD
41462004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4147
9f691b0d 4148 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4149
3c8111fc
KH
41502004-03-30 Kenichi Handa <handa@m17n.org>
4151
4152 * editfns.c (Fformat): Fix initialization of the array info.
4153
48a0bce4
KS
41542004-03-30 Kim F. Storm <storm@cua.dk>
4155
4156 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4157 (syms_of_xterm): DEFVAR_BOOL it.
4158 (ignore_next_mouse_click_timeout): New var.
4159 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4160 Use it to filter mouse clicks following focus event.
4161
1cd0066c
KS
41622004-03-29 David Ponce <david@dponce.com>
4163
4164 * callint.c (Fcall_interactively): Fix last change.
4165
adb3b353
SM
41662004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4167
4168 * eval.c (Fcommandp): Simplify.
4169
4170 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4171 Extend to handle all kinds of functions.
4172
4173 * lisp.h (Finteractive_form): Declare.
4174
4175 * callint.c (Fcall_interactively): Use it.
4176
6fc4c9c9
KS
41772004-03-26 Kim F. Storm <storm@cua.dk>
4178
4179 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4180 to catch errors in calc_pixel_width_or_height during redisplay.
4181
abdb9b83
MY
41822004-03-26 Masatake YAMATO <jet@gyve.org>
4183
b17856dd 4184 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4185
b17856dd 4186 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4187
b17856dd 4188 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4189
b17856dd 4190 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4191
e8a84b6c
JD
41922004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4193
b17856dd 4194 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4195
36a3fd05
RS
41962004-03-19 Richard M. Stallman <rms@gnu.org>
4197
4198 * s/sol2-6.h: Delete previous change.
4199
ab24c127
KS
42002004-03-19 Kim F. Storm <storm@cua.dk>
4201
4202 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4203 to_charpos corresponds to newline in right fringe. Use local
4204 BUFFER_POS_REACHED_P macro.
4205
992126de
JD
42062004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4207
4208 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4209 to compile on non-window system.
4210
45dbfc84
KS
42112004-03-19 Kim F. Storm <storm@cua.dk>
4212
4213 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4214
4215 * image.c (Qcenter): Move to xdisp.c.
4216
4217 * xdisp.c (Qcenter): Declare here.
adb3b353 4218 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4219 (handle_single_display_prop): Allow space display property on all
4220 platforms.
4221 (display_mode_line): Set mode_line_p before displaying line.
4222 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4223 handling. Remove complex cases for fringes and scroll-bars.
4224 Add left, right, and center alignment positions. Add text (area)
4225 width/height. Return width or height for image specs.
4226 (produce_stretch_glyph): Improve handling of :align-to. Is now
4227 relative to left of text area by default, but other base offsets
4228 can be specified -- also for text lines.
4229
4230 * term.c (produce_glyphs): Handle IT_STRETCH.
4231 (produce_stretch_glyph): New function to handle space width and
4232 align-to display properties on non-window systems.
4233
37264101
SM
42342004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4235
4236 * fileio.c (Fread_file_name): Set completion-ignore-case for
4237 case-insensitive systems.
4238
73bc43da
MY
42392004-03-14 Masatake YAMATO <jet@gyve.org>
4240
4241 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4242 when keymap and cursor are setup.
4243
9062aa89
ST
42442004-03-14 Steven Tamm <steventamm@mac.com>
4245
b17856dd 4246 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4247
e4b1b5ab
KS
42482004-03-14 Kim F. Storm <storm@cua.dk>
4249
4250 * dispextern.h (x_find_image_file): Add prototype.
4251
4252 * image.c (x_find_image_file): Make extern.
4253
4254 * xfns.c (x_find_image_file): Remove prototype.
4255
a6eeaa81 42562004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4257
37264101 4258 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4259
37264101 4260 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4261
e69cfac2
RS
42622004-03-12 Richard M. Stallman <rms@gnu.org>
4263
4264 * fns.c (internal_equal): New arg PROPS controls comparing
4265 text properties. All callers changed.
4266 (Fequal_including_properties): New function.
4267 (syms_of_fns): defsubr it.
4268
45034953
KS
42692004-03-12 Kim F. Storm <storm@cua.dk>
4270
4271 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4272
45034953
KS
4273 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4274 (image_background, image_background_transparent): Fix prototypes.
4275
37264101 4276 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4277
4278 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4279 (x_query_font, x_find_ccl_program, x_set_window_size)
4280 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4281 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4282 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4283
4284 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4285 (x_query_font, x_find_ccl_program, x_set_window_size)
4286 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4287 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4288 (mac_draw_line_to_pixmap): Add prototypes.
4289
42902004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4291
4292 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4293
a12d3d87
KS
42942004-03-11 Kim F. Storm <storm@cua.dk>
4295
d3ab1cf1
KS
4296 * dispextern.h: Move image related prototypes from xfns.c section
4297 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4298 HAVE_X_WINDOWS.
37264101 4299
37de9f51 4300 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4301 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4302 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4303 (GTK_OBJ) [USE_GTK]: New declaration.
4304 (obj): Add $(GTK_OBJ) to list.
4305
5243c06a 43062004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4307
5243c06a
ST
4308 * image.c [MAC_OSX]: Include sys/stat.h
4309
4310 * macfns.c (syms_of_macfns): Remove definitions of things now
4311 defined in image.c
4312
c0f97789
KS
43132004-03-11 Kim F. Storm <storm@cua.dk>
4314
4315 The following changes consolidates the identical/similar image
4316 support code previously found in xfns.c, w32fns.c, and macfns.c
4317 into a new file image.c.
4318
4319 * makefile.w32-in (OBJ1): Add image.o.
4320 ($(BLD)/image.$(O)): Add dependencies.
4321
4322 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4323 (image.o): Add dependencies.
37264101 4324
c0f97789
KS
4325 * image.c: New file with consolidated image support code.
4326 (COLOR_TABLE_SUPPORT): New define to control whether
4327 color table support is available (X only).
4328 (Bitmap_Record): Common name for x_bitmap_record,
4329 w32_bitmap_record, and mac_bitmap_record.
4330 (XImagePtr): Common name for pointer to XImage or equivalent.
4331 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4332 to XImagePtr on X+MAC, and to HDC on W32.
4333 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4334 (NO_PIXMAP): Common name for "None" or equivalent.
4335 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4336 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4337 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4338 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4339 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4340 (XDrawLine): Define on MAC for code sharing.
4341 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4342 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4343 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4344 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4345 (x_reference_bitmap, x_create_bitmap_from_data)
4346 (x_create_bitmap_from_file, x_destroy_bitmap)
4347 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4348 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4349 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4350 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4351 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4352 (define_image_type, lookup_image_type, valid_image_p)
4353 (image_error, enum image_value_type, struct image_keyword)
4354 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4355 (make_image, free_image, prepare_image_for_display, image_ascent)
4356 (four_corners_best, image_background, image_background_transparent)
4357 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4358 (make_image_cache, free_image_cache, clear_image_cache)
4359 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4360 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4361 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4362 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4363 (init_image_func_pointer, image_load_quartz2d)
4364 (struct ct_color, init_color_table, free_color_table)
4365 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4366 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4367 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4368 (x_disable_image, x_build_heuristic_mask)
4369 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4370 (TIFF support, GIF support, Ghostscript support): Consolidate image
4371 code from xfns.c, w32fns.c, and macfns.c.
4372 (syms_of_image): Consolidate image related symbol setup here.
4373 (init_image): Consolidate image related initializations here.
37264101 4374
c0f97789
KS
4375 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4376 and init_image. Remove call to init_xfns.
4377
37264101
SM
4378 * macterm.h (struct mac_bitmap_record): Add file member.
4379 Not currently used, but simplifies code sharing.
c0f97789
KS
4380
4381 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4382 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4383 (x_reference_bitmap, x_create_bitmap_from_data)
4384 (x_create_bitmap_from_file, x_destroy_bitmap)
4385 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4386 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4387 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4388 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4389 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4390 (define_image_type, lookup_image_type, valid_image_p)
4391 (image_error, enum image_value_type, struct image_keyword)
4392 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4393 (make_image, free_image, prepare_image_for_display, image_ascent)
4394 (four_corners_best, image_background, image_background_transparent)
4395 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4396 (make_image_cache, free_image_cache, clear_image_cache)
4397 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4398 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4399 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4400 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4401 (init_image_func_pointer, image_load_quartz2d)
4402 (struct ct_color, init_color_table, free_color_table)
4403 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4404 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4405 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4406 (x_disable_image, x_build_heuristic_mask)
4407 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4408 (TIFF support, GIF support, Ghostscript support): Merge with image
4409 code from xfns.c and macfns.c into image.c.
4410 (syms_of_xfns): Move image related symbols to image.c.
4411 (init_external_image_libraries, init_xfns): Remove; initialization
4412 moved to init_image in image.c.
4413
4414 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4415 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4416 (x_reference_bitmap, x_create_bitmap_from_data)
4417 (x_create_bitmap_from_file, x_destroy_bitmap)
4418 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4419 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4420 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4421 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4422 (define_image_type, lookup_image_type, valid_image_p)
4423 (image_error, enum image_value_type, struct image_keyword)
4424 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4425 (make_image, free_image, prepare_image_for_display, image_ascent)
4426 (four_corners_best, image_background, image_background_transparent)
4427 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4428 (make_image_cache, free_image_cache, clear_image_cache)
4429 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4430 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4431 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4432 (struct ct_color, init_color_table, free_color_table)
4433 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4434 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4435 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4436 (x_disable_image, x_build_heuristic_mask)
4437 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4438 (TIFF support, GIF support, Ghostscript support): Merge with image
4439 code from xfns.c and macfns.c into image.c.
4440 (syms_of_xfns): Move image related symbols to image.c.
4441 (init_external_image_libraries, init_xfns): Remove; initialization
4442 moved to init_image in image.c.
4443
4444 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4445 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4446 (x_reference_bitmap, x_create_bitmap_from_data)
4447 (x_create_bitmap_from_file, x_destroy_bitmap)
4448 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4449 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4450 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4451 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4452 (define_image_type, lookup_image_type, valid_image_p)
4453 (image_error, enum image_value_type, struct image_keyword)
4454 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4455 (make_image, free_image, prepare_image_for_display, image_ascent)
4456 (four_corners_best, image_background, image_background_transparent)
4457 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4458 (make_image_cache, free_image_cache, clear_image_cache)
4459 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4460 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4461 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4462 (struct ct_color, init_color_table, free_color_table)
4463 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4464 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4465 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4466 (x_disable_image, x_build_heuristic_mask)
4467 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4468 (TIFF support, GIF support, Ghostscript support): Merge with
4469 w32fns.c and macfns.c image code into image.c.
4470 (syms_of_xfns): Move image related symbols to image.c.
4471 (init_xfns): Remove; initialization moved to init_image in image.c.
4472
4473 * lisp.h (syms_of_image, init_image): Add protoypes.
4474 (init_xfns): Remove prototype.
4475
4476 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4477 (x_reference_bitmap, x_create_bitmap_from_data)
4478 (x_create_bitmap_from_file, x_destroy_bitmap)
4479 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4480 (gamma_correct) [MAC_OS]: Add prototype.
4481
4482 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4483 (x_reference_bitmap, x_create_bitmap_from_data)
4484 (x_create_bitmap_from_file, x_destroy_bitmap)
4485 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4486
6eced09c
KH
44872004-03-09 Kenichi Handa <handa@etlken2>
4488
4489 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4490 correctly.
4491
9a7e95f3
RS
44922004-03-04 Richard M. Stallman <rms@gnu.org>
4493
04a6e76b
RS
4494 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4495
9a7e95f3
RS
4496 * window.c (Fdisplay_buffer): Doc fix.
4497
4498 * buffer.c (Fpop_to_buffer): Doc fix.
4499
6c2488df
KS
45002004-03-03 Kim F. Storm <storm@cua.dk>
4501
4502 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4503
d8d95bc7
SM
45042004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4505
4506 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4507
357589bf
RS
45082004-03-02 Richard M. Stallman <rms@gnu.org>
4509
4510 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4511
409949b5
KH
45122004-03-02 Kenichi Handa <handa@m17n.org>
4513
4514 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4515
d24bc50f
KS
45162004-03-02 Kim F. Storm <storm@cua.dk>
4517
4518 * window.h (struct window): New member overlay_arrow_bitmap.
4519
4520 * window.c (make_window): Initialize overlay_arrow_bitmap.
4521
4522 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4523 implement and integrate multiple overlay arrows with redisplay.
4524 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4525 (last_arrow_position, last_arrow_string): Replace by properties.
4526 (Qlast_arrow_position, Qlast_arrow_string)
4527 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4528 (syms_of_xdisp): Intern and staticpro them.
4529 (overlay_arrow_string_or_property, update_overlay_arrows)
4530 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4531 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4532 (redisplay_internal): Use them instead of directly accessing
4533 Voverlay_arrow_position etc. for multiple overlay arrows.
4534 (mark_window_display_accurate): Use update_overlay_arrows.
4535 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4536 (try_window_id): Use overlay_arrows_changed_p.
4537 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4538 (display_line): Use overlay_arrow_at_row to check multiple
4539 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4540 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4541 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4542 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4543
4544 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4545 (update_window_fringes): Remove unused code.
4546
c1464661
JR
45472004-03-01 Jason Rumney <jasonr@gnu.org>
4548
4549 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4550
a64387ee
JB
45512004-03-01 Juanma Barranquero <lektu@terra.es>
4552
4553 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4554
4555 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4556
334faa08
JD
45572004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4558
4559 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4560 how many colors can be displayed.
4561
bb62616f
KH
45622004-03-01 Kenichi Handa <handa@m17n.org>
4563
4564 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4565 correctly.
4566
0fd16104
KS
45672004-02-28 Kim F. Storm <storm@cua.dk>
4568
4569 * dispnew.c (update_window): Update header line also if there are
4570 no other changes in window (move code after set_cursor label).
4571
4572 * lisp.h (mark_window_display_accurate): Remove prototype.
4573
4574 * window.c (window_loop, Fforce_window_update): Force mode line
4575 updates by setting prevent_redisplay_optimizations_p and
4576 update_mode_lines.
4577
b59dd9c8
JD
45782004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4579
d8d95bc7 4580 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4581
4582 * xterm.c (x_calc_absolute_position): Call x_real_positions
4583 to get WM window sizes and use those to calculate position.
d8d95bc7 4584 (x_set_offset): Remove code commented out.
b59dd9c8 4585
a874691c
MB
45862004-02-28 Miles Bader <miles@gnu.org>
4587
4588 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4589
3e0c6482
KS
45902004-02-28 Kim F. Storm <storm@cua.dk>
4591
4592 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4593 an event into kbd fifo, but with special handling of quit event;
4594 a quit event is saved for later, and further events are discarded
4595 until the saved quit event has been processed.
4596 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4597 (gen_help_event): Store help event in kbd fifo.
4598 (NREAD_INPUT_EVENTS): Remove.
4599 (read_avail_input): Adapt to new read_socket_hook interface.
4600 Remove allocation and initialization of local input_event buffer,
4601 as read_socket_hook stores events directly in fifo. Allocate and
4602 initialize local hold_quit event to handle postponed quit event
4603 (and store it if set by kbd_buffer_store_event_hold).
4604
4605 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4606 (gen_help_event): Fix prototype.
4607
a64387ee 4608 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4609 numcharsp args. Add hold_quit arg.
f63fd14e 4610 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4611 directly in fifo using kbd_buffer_store_event_hold.
4612
4613 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4614 (read_input_waiting): Adapt to new read_socket_hook interface.
4615 Remove allocation and initialization of local input_event buffer,
4616 as read_socket_hook stores events directly in fifo. Allocate and
4617 initialize local hold_quit event to handle postponed quit event
4618 (and store it if set by kbd_buffer_store_event_hold).
4619
a64387ee 4620 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4621
4622 * termhooks.h (read_socket_hook): Fix prototype.
4623
4624 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4625 numcharsp args. Add hold_quit arg.
f63fd14e 4626 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4627 directly in fifo using kbd_buffer_store_event_hold.
4628
4629 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4630
4631 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4632 Add hold_quit arg. Rework to use just one, local, inev
4633 input_event. Store inev directly in fifo using
3e0c6482
KS
4634 kbd_buffer_store_event_hold. Update count in one place.
4635 Postpone call to gen_help_event until inev is stored; use new
4636 local do_help for this.
4637 Remove local emacs_event in handing of ButtonPress event; just use
4638 inev instead (so no reason to copy it later).
4639
4640 * xsmfns.c (x_session_check_input): Remove numchars arg.
4641
d8d95bc7
SM
4642 * xterm.c (x_focus_changed, x_detect_focus_change):
4643 Remove numchars arg. Always store event into bufp arg.
4644 Return nothing. Callers changed accordingly.
3e0c6482
KS
4645 (glyph_rect): Simplify.
4646 (STORE_KEYSYM_FOR_DEBUG): New macro.
4647 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4648 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4649 (current_hold_quit) [USE_GTK]: Add.
4650 (event_handler_gdk): Adapt to new handle_one_xevent.
4651 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4652 Add hold_quit arg. Rework to use just one, local, inev
4653 input_event. Store inev directly in fifo using
3e0c6482
KS
4654 kbd_buffer_store_event_hold. Update count in one place.
4655 Postpone call to gen_help_event until inev is stored; use new
4656 local do_help for this.
4657 Simplify handling of keysyms (consolidate common code). Fix bug
4658 where count was updated with nchars instead of nbytes.
4659 Remove local emacs_event in handing of ButtonPress event; just use
4660 inev instead (so no reason to copy it later).
4661 Remove `out' label. Rename label `ret' to `done'; add various
4662 `goto done' to clarify code flow in deeply nested blocks.
4663 (x_dispatch_event): Simplify as handle_one_xevent now calls
4664 kbd_buffer_store_event itself.
f63fd14e 4665 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4666 arg. Call handle_one_xevent with new arglist. Store event from
4667 x_session_check_input in fifo.
4668 [USE_GTK]: Setup current_hold_quit.
4669 Decrement handling_signal before unblocking input.
4670 (x_initialize) [USE_GTK]: Initialize current_count.
4671
4672 * xterm.h (x_session_check_input): Fix prototype.
4673
e3564461 46742004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4675
d8d95bc7 4676 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4677
e3564461
ST
4678 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4679 macgui.h).
a64387ee 4680
e3564461 4681 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4682
e3564461
ST
4683 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4684 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4685 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4686 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4687 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4688 (Bitmap): Remove typedef.
4689 (Pixmap): Change int to GWorldPtr.
4690
d8d95bc7 4691 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4692
d8d95bc7
SM
4693 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4694 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4695 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4696 long representation.
4697 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4698 colors used for masks.
4699 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4700
e3564461
ST
4701 * macfns.c: Include sys/types.h and sys/stat.h.
4702 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4703 Include QuickTime/QuickTime.h.
4704 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4705 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4706 functions defined in macterm.c.
4707 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4708 (ZPixmap): New #define for compatibility with xfns.c.
4709 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4710 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4711 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4712 New functions.
e3564461 4713 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4714 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4715 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4716 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4717 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4718 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4719 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4720 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4721 long mixup.
4722 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4723 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4724 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4725 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4726 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4727 (x_alloc_image_color, clear_image_cache, lookup_image)
4728 (x_find_image_file, xbm_read_bitmap_file_data)
4729 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4730 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4731 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4732 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4733 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4734 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4735 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4736 #if 0.
4737 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4738 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4739 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4740 New functions (from xfns.c).
e3564461
ST
4741 (Fx_create_frame): Record unwind_create_frame.
4742 (Fxw_display_color_p): Use dpyinfo->color_p.
4743 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4744 dpyinfo->n_cbits.
4745 (Fx_display_color_cells): Use dpyinfo->n_planes;
4746 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4747 (Qheuristic, cross_disabled_images, emboss_matrix)
4748 (laplace_matrix): New variables (from xfns.c).
4749 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4750 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4751 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4752 (image_background_transparent): New function (from xfns.c).
4753 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4754 (image_load_quicktime): Add declaration.
4755 [MAC_OSX] (image_load_quartz2d): Likewise.
4756 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4757 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4758 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4759 (xbm_load_image_from_file, x_laplace_read_row)
4760 (x_laplace_write_row, pbm_read_file): Remove functions.
4761 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4762 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4763 (colors_in_color_table): Sync with xfns.c (although not used).
4764 (lookup_rgb_color): Don't lookup color table. Just do gamma
4765 correction.
4766 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4767 (x_disable_image): New function (from xfns.c).
4768 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4769 (x_build_heuristic_mask): Sync with xfns.c.
4770 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4771 (HAVE_PBM): Remove #ifdef.
4772 (pbm_load): Sync with xfns.c. Set img->width and img->height
4773 before IMAGE_BACKGROUND.
d8d95bc7 4774 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4775 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4776 Don't enclose with #if HAVE_PNG.
4777 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4778 symbol _CGImageCreateWithPNGDataProvider is defined.
4779 Otherwise use image_load_quicktime.
e3564461 4780 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4781 [HAVE_PNG] (png_load): Sync with xfns.c.
4782 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4783 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4784 HAVE_JPEG.
4785 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4786 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4787 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4788 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4789 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4790 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4791 HAVE_TIFF.
4792 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4793 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4794 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4795 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4796 New functions (from xfns.c).
e3564461 4797 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4798 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4799 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4800 Don't enclose with #if HAVE_GIF.
4801 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4802 animated gif. Otherwise use image_load_quicktime.
4803 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4804 gif_DrawText to avoid conflict with QuickdrawText.h.
4805 [HAVE_GIF] (gif_load): Sync with xfns.c.
4806 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4807 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4808 Ghostscript is not supported yet).
4809 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4810 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4811 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4812 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4813 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4814 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4815 HAVE_PNG. Call EnterMovies to support animated gifs.
4816 Call init_image_func_pointer to bind a symbol
e3564461 4817 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4818
d8d95bc7 4819 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4820 (x_draw_bar_cursor): Sync declaration with xterm.c.
4821 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4822 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4823 graphics).
4824 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4825 (mac_draw_line_to_pixmap, XCreatePixmap)
4826 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4827 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4828 New functions.
4829 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4830 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4831 Cast bits to char *.
e3564461
ST
4832 (reflect_byte): New function (from w32fns.c).
4833 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4834 due to byte alignment.
d8d95bc7
SM
4835 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4836 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4837 (XSetForeground): Remove static (now used in macfns.c).
4838 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4839 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4840 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4841 (x_draw_glyph_string_box, x_draw_image_foreground)
4842 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4843 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4844 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4845 Sync with xterm.c.
4846 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4847 than the xterm.c version when a strictly horizontal or vertical
4848 line is drawn.
4849 (XTset_terminal_window): Add static.
4850 (x_make_frame_visible): Add UNBLOCK_INPUT.
4851 (x_free_frame_resources): New funcion (from xterm.c).
4852 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4853 occurs in tool bar area.
d8d95bc7
SM
4854 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4855 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4856 Initialize image cache.
4857 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4858 Enclose unused functions with #if 0.
4859 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4860 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4861 from a mac font name to an XLFD font name according to its script code.
e3564461 4862 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4863 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4864 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4865 whose name starts with `.'.
4866 (init_font_name_table): Use decode_mac_font_name. Add both
4867 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4868 of a font is smJapanese.
4869 (mac_do_list_fonts): New function to list fonts that match a given
4870 pattern.
4871 (x_list_fonts, XLoadQueryFont): Use it.
4872 (XLoadQueryFont): Set rbearing field for each variable width
4873 character to avoid needless redraw.
4874 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4875
446f5f3d
KS
48762004-02-26 Kim F. Storm <storm@cua.dk>
4877
af617d0f
KS
4878 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4879 as read_socket_hook handler on X aborts if buffer is too small
4880 and W32 handler doesn't always check buffer limit.
4881
446f5f3d
KS
4882 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4883 right-fringe similar to a display margin image. Specifically,
4884 the characters having the fringe prop are no longer shown, and
4885 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4886 do this. Set fringe bitmap face_id in it->face_id.
4887 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4888 still realize it->face (i.e. the fringe bitmap face).
4889
7d8a0b55
MB
48902004-02-25 Miles Bader <miles@gnu.org>
4891
4892 * xdisp.c (check_it): Check string/string_pos consistency.
4893 (init_iterator): Initialize string-related fields properly.
4894
48952004-02-11 Miles Bader <miles@gnu.org>
4896
4897 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4898
48992004-02-10 Miles Bader <miles@gnu.org>
4900
4901 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4902 BLOCK_INPUT can be nested, so it doesn't make much sense.
4903
a64387ee 49042004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4905
4906 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4907 (xbm_read_bitmap_data): Use unsigned char for image data.
4908
92f5fba2
LT
49092004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4910
4911 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4912
8565fb3d
JR
49132004-02-22 Jason Rumney <jasonr@gnu.org>
4914
4915 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4916 correctly over other bitmaps.
4917
a6eeaa81 49182004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4919
4920 * emacs.c (USAGE1): Split into two halves.
4921 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4922 (USAGE3): Rename from USAGE2.
4923 (USAGE4): Rename from USAGE3.
f8125c39 4924
4effffca
EZ
49252004-02-21 Juri Linkov <juri@jurta.org>
4926
4927 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4928 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4929 --file. Fix -f, -l. Sort options. Untabify.
4930 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4931
923c1e6f
LT
49322004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4933
4934 * category.c (Fdefine_category, Fcategory_docstring)
4935 (Fget_unused_category, Fset_category_table)
4936 (Fcategory_set_mnemonics): Doc fixes.
4937
b0e225fd
KS
49382004-02-20 Kim F. Storm <storm@cua.dk>
4939
4940 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4941 The following changes are relative to the 2004-01-21 revision.
4942 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4943 in one call to read_socket_hook. Value is 8.
4944 (read_avail_input): Separate and rework handling of read_socket_hook
4945 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4946 in read_socket_hook case, and repeat if full buffer is read.
4947 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4948 In non-read_socket_hook case, just use a single input_event, and
4949 call kbd_buffer_store_event on the fly for each character.
4950
b15aa9f9
SM
49512004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4952
4953 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4954 Remove unused `gu' alternative.
4955
83c9aa95
AS
49562004-02-19 Andreas Schwab <schwab@suse.de>
4957
4958 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4959 warning.
4960
cc808173
KS
49612004-02-18 Kim F. Storm <storm@cua.dk>
4962
4963 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4964 Fix last change.
4965
ab90a54d
KS
49662004-02-17 Kim F. Storm <storm@cua.dk>
4967
b26f249f
KS
4968 * xdisp.c (fast_find_position): Fix return value of new version;
4969 it was inverted compared to the 21.1 version.
4970 (get_window_cursor_type): Don't look at glyph if NULL.
4971 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4972
ab90a54d
KS
4973 * keyboard.c: Rework previous change; it didn't consider that the
4974 buf array was allocated on the stack.
4975 (prev_read): Remove variable.
4976 (read_avail_input_buf): New static event buffer array.
b9568dfc 4977 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4978 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4979 Use in_read_avail_input to handle re-entrance; when re-entered,
4980 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4981 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4982 is always cleared on entry. To ensure that, we clear (just) the
4983 entries that were used before we return.
4984 (init_keyboard): Initialize read_avail_input_buf here.
4985
b6189c3b 49862004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4987
4988 * cmds.c (Fend_of_line): Doc fix.
4989
7b5368c1
EZ
49902004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4991
4992 * keyboard.c (prev_read): New static variable.
4993 (read_avail_input): Use it to zero out only those slots in buf[]
4994 that were used last time we were called.
4995
a6eeaa81 49962004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4997
4998 * Makefile.in (obj): Move fringe.o from here...
4999 (XOBJ, MAC_OBJ): ...to here.
5000
159c348e
SE
50012004-02-16 Stephen Eglen <stephen@gnu.org>
5002
5003 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5004
d2f14999
SM
50052004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5006
b15aa9f9
SM
5007 * data.c (Fbyteorder):
5008 * fringe.c (Fdefine_fringe_bitmap):
5009 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5010 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5011
8d50508a
JR
50122004-02-16 Jason Rumney <jasonr@gnu.org>
5013
5014 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5015
dd4497dc
ST
50162004-02-15 Steven Tamm <steventamm@mac.com>
5017
5018 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5019 controlling emulation of a three button mouse with option and
5020 command keys.
5021 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5022 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5023
c9159cb3
KS
50242004-02-15 Kim F. Storm <storm@cua.dk>
5025
2cc52658
KS
5026 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5027
c9159cb3
KS
5028 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5029 Perform byte-swapping.
5030
12fde2dc
KS
50312004-02-14 Kim F. Storm <storm@cua.dk>
5032
5033 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5034 bits from char to short to facilitate wider bitmaps.
5035 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5036 member.
5037
5038 * fringe.c (struct fringe_bitmap): Change member bits from char to
5039 short to facilitate 16 bits wide bitmaps. Modify all standard
5040 bitmaps accordingly.
5041 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5042 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5043 (draw_fringe_bitmap): Ditto.
5044 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5045 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5046 handle up to 16 bits wide bitmaps.
5047 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5048 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5049
5050 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5051 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5052 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5053
5054 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5055 so it is no longer necessary to expand them here.
5056
5057 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5058
9d7271e8
KS
50592004-02-12 Kim F. Storm <storm@cua.dk>
5060
5061 * window.c (Fwindow_fringes): Doc fix.
5062
706c1e4f
JD
50632004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5064
5065 * xselect.c (x_get_foreign_selection): Add new optional parameter
5066 time_stamp.
5067 (Fx_get_selection_internal): Ditto, pass time_stamp to
5068 x_get_foreign_selection.
5069
5070 * data.c (Fbyteorder): New function.
5071
c2d12b5d
JD
50722004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5073
5074 * atimer.c: Move include stdio.h to same place as in other files.
5075
5076 * region-cache.c: Ditto.
5077
5078 * sysdep.c: Ditto.
5079
5080 * xfaces.c: Ditto.
5081
4c1947b9
SS
50822004-02-09 Sam Steingold <sds@gnu.org>
5083
89458937 5084 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5085
82722af3
KS
50862004-02-09 Kim F. Storm <storm@cua.dk>
5087
5088 * fringe.c: New file. Move original fringe related declarations
5089 and code from dispextern.h and xdisp.c here.
5090 Rework code to support user defined fringe bitmaps, redefining
5091 standard bitmaps, ability to overlay user defined bitmap with
5092 overlay arrow bitmap, and add faces to bitmaps.
5093 (Voverflow_newline_into_fringe): Declare here.
5094 (enum fringe_bitmap_align): New enum.
5095 (..._bits): All bitmaps are now defined without bitswapping; that
5096 is now done in init_fringe_once (if necessary).
5097 (standard_bitmaps): New array with specifications for the
5098 standard fringe bitmaps.
5099 (fringe_faces): New array.
5100 (valid_fringe_bitmap_id_p): New function.
5101 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5102 (draw_fringe_bitmap): New function which draws fringe bitmap,
5103 possibly overlaying bitmap with cursor in right fringe or the
5104 overlay arrow in the left fringe.
5105 (update_window_fringes): Do not handle overlay arrow here.
5106 Compare and copy fringe bitmap faces.
5107 (init_fringe_bitmap): New function.
5108 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5109 define and destroy user defined fringe bitmaps.
5110 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5111 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5112 (syms_of_fringe): New function. Defsubr new DEFUNs.
5113 DEFVAR_LISP Voverflow_newline_into_fringe.
5114 (init_fringe_once, init_fringe): New functions.
5115 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5116
82722af3
KS
5117 * Makefile.in (obj): Add fringe.o.
5118 (fringe.o): New dependencies.
5119
5120 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5121 bits allocated to hold a fringe number. Increase number of bits
5122 from 4 to 8 to allow user defined fringe bitmaps.
5123 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5124 left_user_fringe_face_id, right_user_fringe_bitmap,
5125 right_user_fringe_face_id.
5126 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5127 Move to new file fringe.c.
5128 (MAX_FRINGE_BITMAPS): Define here.
5129 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5130 and overlay_p. Change member which to int.
5131 (struct redisplay_interface): New members define_fringe_bitmap
5132 and destroy_fringe_bitmap.
5133 (valid_fringe_bitmap_id_p): Add prototype.
5134 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5135
5136 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5137 arrows.
5138 (update_frame): Do flush_display if force_flush_display_p to
5139 ensure display (specifically fringes) are updated in a timely
5140 manner when resizing the frame by dragging the mouse.
5141 (update_window_line): Update row if overlay arrow changed.
5142 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5143 or overlay arrow changed.
5144
5145 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5146 syms_of_fringe, and init_fringe.
5147
5148 * frame.h (struct frame): New member force_flush_display_p.
5149
5150 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5151 Add prototypes.
5152
a3993cc8 5153 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5154 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5155 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5156 Use cursor color for displaying cursor in fringe.
82722af3
KS
5157 (x_redisplay_interface): Add null handlers for
5158 define_fringe_bitmap and destroy_fringe_bitmap functions.
5159
5160 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5161 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5162 for displaying cursor in fringe.
5163 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5164 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5165 (w32_redisplay_interface): Add them to redisplay_interface.
5166 (w32_term_init): Call w32_init_fringe instead of explicitly
5167 defining fringe bitmaps in fringe_bmp array.
5168 (x_delete_display): Call w32_reset_fringes instead of explicitly
5169 destroying fringe bitmaps in fringe_bmp array.
5170
5171 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5172 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5173 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5174 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5175 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5176 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5177 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5178 Move fringe handling vars and code to new file fringe.c.
5179 (handle_display_prop): Handle left-fringe and right-fringe
5180 display properties; store user fringe bitmaps in iterator.
5181 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5182 (clear_garbaged_frames): Set force_flush_display_p if resized.
5183 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5184 (display_line): Handle cursor in fringe at eob.
5185 (display_line): Set row user fringe bitmaps from iterator.
5186
5187 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5188 Use cursor color for displaying cursor in fringe.
5189 (x_redisplay_interface): Add null handlers for
5190 define_fringe_bitmap and destroy_fringe_bitmap functions.
5191
030400eb
JD
51922004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5193
5194 * macfns.c (Fx_change_window_property): Make doc string and
5195 parameters same as for X version.
5196
5197 * w32fns.c (Fx_change_window_property): Ditto.
5198
3af55251
KS
51992004-02-07 Kim F. Storm <storm@cua.dk>
5200
ec110e9e
KS
5201 * xdisp.c (hscroll_window_tree): Position cursor near to right
5202 margin in hscrolled window when jumping to end of line (rather
5203 than centering cursor).
5204
3af55251
KS
5205 * process.c (wait_reading_process_input): Don't do adaptive read
5206 buffering if waiting for a specific process.
5207
b0c138ce
LT
52082004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5209
5210 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5211 (Fread_minibuffer, Feval_minibuffer)
5212 (Fread_string, Fread_no_blanks_input)
5213 (Fcompleting_read): Doc fixes.
5214 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5215 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5216 (read_minibuf): Fix initial comment.
5217 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5218 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5219 checking completion-regexp-list.
5220 (Fdisplay_completion_list): Make it handle arguments that are
5221 symbols. Doc fix.
5222
9676f5ad 52232004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5224
9676f5ad 5225 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5226
9676f5ad
JD
5227 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5228 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5229 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5230 format. Remove unused variable cons.
5b698285
JD
5231
5232 * xselect.c: Include stdio,h.
5233
fc1d15f6
KH
52342004-02-05 Kenichi Handa <handa@m17n.org>
5235
ebaff4af
KH
5236 * fns.c (Fset_char_table_range): Fix previous change.
5237
fc1d15f6
KH
5238 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5239
9676f5ad
JD
52402004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5241
5242 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5243
da75761f
SM
52442004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5245
5246 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5247 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5248
13c5d120
KH
52492004-02-04 Kenichi Handa <handa@m17n.org>
5250
5251 * fns.c (Fset_char_table_range): Handle charsets ascii,
5252 eight-bit-control, and eight-bit-graphic correctly.
5253
2883d842
JR
52542004-02-03 Jason Rumney <jasonr@gnu.org>
5255
5256 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5257
5258 * w32fns.c (x_to_w32_font): Likewise.
5259
69eff41f
JD
52602004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5261
5262 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5263 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5264
5265 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5266 ClientMessages.
5267
5268 * xselect.c: Include termhooks.h and X11/Xproto.h
5269 (x_check_property_data, x_fill_property_data)
5270 (x_property_data_to_lisp, mouse_position_for_drop)
5271 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5272 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5273 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5274
da75761f 5275 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5276 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5277 OUTER_P.
5278 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5279 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5280 if vector_ret_p is true.
5281 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5282
a6eeaa81 52832004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5284
5285 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5286 basename of FILE relative to it, not FILE itself.
5287
09721b31
KH
52882004-02-02 Kenichi Handa <handa@m17n.org>
5289
5290 * coding.c (coding_restore_composition): Check invalid
5291 composition data more rigidly.
5292
eb996101
LT
52932004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5294
5295 * fileio.c (Fread_file_name_internal): Correctly handle the case
5296 where insert-default-directory is nil.
5297 (Fread_file_name): Always return an empty string if the user exits
5298 with an empty minibuffer. Adapt the docstring accordingly.
5299 (syms_of_fileio): Adapt the docstring of insert-default-directory
5300 to the change in Fread_file_name.
5301
a6eeaa81 53022004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5303
5304 * alloca.c [!alloca]: Fix the prototype for xfree.
5305
13f52ed8
KH
53062004-01-29 Kenichi Handa <handa@m17n.org>
5307
5308 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5309 (string_byte_to_char): Likewise.
5310
d57625a0
JR
53112004-01-28 Peter Runestig <peter@runestig.com>
5312
5313 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5314
a64387ee 53152004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5316
5317 * unexmacosx.c (unexec_copy): Do not copy more than was
5318 requested to prevent overwriting during unexec.
5319
eb37b8fd
JD
53202004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5321
ce38070a
JD
5322 * process.c (sigchld_handler): Add comment about not calling malloc.
5323
eb37b8fd
JD
5324 * process.h: Add extern to synch_process_termsig.
5325
a64387ee 53262004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5327
da75761f
SM
5328 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5329 Move setting of scroll bars from make_mac_frame to
5330 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5331
d62a265d
RS
53322004-01-26 Richard M. Stallman <rms@gnu.org>
5333
5334 * search.c (Freplace_match): Handle nonexistent
5335 back-references properly.
5336
53372004-01-03 Richard M. Stallman <rms@gnu.org>
5338
5339 * window.c (decode_any_window): New function.
5340 (Fwindow_height, Fwindow_width, Fwindow_edges)
5341 (Fwindow_pixel_edges, Fwindow_inside_edges)
5342 (Fwindow_inside_pixel_edges): Use decode_any_window.
5343
ff236419
JD
53442004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5345
5346 * process.h: synch_process_termsig new variable.
5347
5348 * callproc.c: Define synch_process_termsig.
5349 (Fcall_process): Initiate synch_process_termsig to zero and
5350 check if non-zero and get signal name after subprocess has ended.
5351
5352 * process.c (sigchld_handler): Set synch_process_termsig
5353 if terminated by a signal. synch_process_death setting removed.
5354
5355 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5356
41b867ea
AS
53572004-01-26 Andreas Schwab <schwab@suse.de>
5358
5359 * print.c (print_preprocess): Declare size as EMACS_INT to not
5360 lose bits.
5361 (print_object): Likewise.
5362 * alloc.c (Fpurecopy): Likewise.
5363
a08084ff
LT
53642004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5365
5366 * window.c (Fwindow_minibuffer_p): Doc fix.
5367
b19ac475
JY
53682004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5369
5370 * editfns.c (Fformat): Make both passes accept the same set of flags.
5371
fe905025
KH
53722004-01-23 Kenichi Handa <handa@m17n.org>
5373
5374 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5375 one, set buffer to OBJECT temporarily.
5376
438fc6c0
SM
53772004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5378
455316e2
SM
5379 * keyboard.c (kbd_buffer_gcpro): Remove.
5380 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5381 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5382 Don't initialize and/or maintain the variable any more. It was made
5383 redundant by my commit of 2003-06-15.
5384
438fc6c0
SM
5385 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5386
5335a4ee
JD
53872004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5388
5389 * lisp.h: Add undef DECL_ALIGN.
5390
dcdaeebc
SM
53912004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5392
5393 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5394 Check interrupt_input_pending explicitly.
5395
5396 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5397
5398 * keyboard.c (handle_async_input): New fun,
5399 extracted from input_available_signal.
5400 (input_available_signal, reinvoke_input_signal): Use it.
5401
9076a823
SM
54022004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5403
d7107586
SM
5404 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5405
5406 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5407 manipulation macros for when tags are in the lower bits.
5408 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5409 (DECL_ALIGN): New macro.
5410 (DEFUN): Use it.
5411
5412 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5413
5414 * s/darwin.h (__attribute__): Remove outdated workaround.
5415
5416 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5417
5418 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5419 Don't check range of malloc address.
5420 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5421
9076a823
SM
5422 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5423
5424 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5425
ba029065
KH
54262004-01-19 Kenichi Handa <handa@m17n.org>
5427
5428 * fontset.c (fontset_font_pattern): Fix previous change.
5429
7af0e8d7
MB
54302004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5431
5432 * xdisp.c (Voverflow_newline_into_fringe)
5433 (move_it_in_display_line_to, redisplay_internal)
5434 (update_window_fringes, redisplay_window, display_line, window):
5435 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5436 that it compiles without a window-system.
5437 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5438
77a9cf69
KS
54392004-01-16 Kim F. Storm <storm@cua.dk>
5440
5441 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5442
a64387ee 5443 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5444 buffer_local_flags for indicate_buffer_boundaries.
5445 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5446 default- variable for it.
5447
5448 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5449 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5450 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5451 overflowing newlines into right fringe.
5452 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5453 and indicate_bottom_line_p for buffer boundaries and scrolling.
5454 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5455 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5456 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5457 and HOLLOW_SQUARE_BITMAP.
5458 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5459 Add prototypes.
5460
5461 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5462 instead of related indicator fields.
5463 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5464 (direct_output_for_insert): Handle exact width lines like
5465 contined lines. Call update_window_fringes.
5466 (update_window): Call update_window_fringes.
5467 (scrolling_window): Don't skip desired rows with changed bitmaps.
5468 Check if fringe bitmaps changes when assigning scrolled rows.
5469
5470 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5471 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5472 (move_it_in_display_line_to): Overflow newline into fringe for
5473 rows that are exactly as wide as the window.
5474 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5475 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5476 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5477 (fringe_bitmaps): Add new bitmaps.
5478 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5479 Select proper bitmap for cursor in fringe when appropriate.
5480 Handle alignment of bitmap to top or bottom of row.
5481 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5482 done by update_window_fringes.
5483 (update_window_fringes, draw_window_fringes): New functions.
5484 (redisplay_internal): Call update_window_fringes in case only
5485 cursor row is updated.
5486 (redisplay_window): Call update_window_fringes.
5487 Explicitly call draw_window_fringes if redisplay was done using
5488 the current matrix or the overlay arrow is in the window.
5489 (try_window_reusing_current_matrix): Mark scrolled rows for
5490 fringe update (to update buffer-boundaries / scrolling icons).
5491 (find_last_unchanged_at_beg_row): Handle exact width lines line
5492 continued lines.
5493 (display_line): Overflow newline into fringe for rows that are
5494 exactly as wide as the window. Don't append space for newline
d7107586 5495 in this case.
77a9cf69
KS
5496 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5497 in fringe as if it had been overwritten.
5498 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5499 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5500 void-text-area-pointer as user options.
5501 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5502
77a9cf69
KS
5503 * xterm.c (x_update_window_end): Call draw_window_fringes.
5504 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5505 in row instead of actually drawing fringe bitmaps.
5506 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5507 (x_draw_window_cursor): Draw cursor in fringe.
5508
5509 * w32term.c (x_update_window_end): Call draw_window_fringes.
5510 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5511 in row instead of actually drawing fringe bitmaps.
5512 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5513 (w32_draw_window_cursor): Draw cursor in fringe.
5514
5515 * macterm.c (x_update_window_end): Call draw_window_fringes.
5516 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5517 in row instead of actually drawing fringe bitmaps.
5518 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5519 (mac_draw_window_cursor): Draw cursor in fringe.
5520
a633a954
JD
55212004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5522
5523 * xterm.c (handle_one_xevent): Don't handle characters that are part
5524 of an old style (XLookupString) compose sequence.
5525
80460525
KH
55262004-01-15 Kenichi Handa <handa@m17n.org>
5527
5528 * search.c (Freplace_match): Use make_multibyte_string or
5529 make_unibyte_string according to the buffer multibyteness.
5530
7fc34f85
SM
55312004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5532
5533 * alloc.c (struct interval_block, struct string_block)
5534 (struct symbol_block, struct marker_block, live_string_p)
5535 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5536 Better preserve alignment for objects in blocks.
5537 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5538
5539 * lread.c (defvar_per_buffer): Remove dead declaration.
5540
5541 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5542 space size.
5543
66070bd1
JD
55442004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5545
5546 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5547 if a key press should pop down. Only pop down if a key is pressed
5548 outside the menu/dialog.
5549 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5550 popup_get_selection.
5551 (create_and_show_dialog): Pass 1 for down_on_keypress to
5552 popup_get_selection.
5553
de7515d6
JD
55542004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5555
5556 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5557 BLOCK/UNBLOCK_INPUT.
5558
160b1b50
JD
55592004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5560
5561 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5562 specified.
5563
3a9f36e6
KH
55642004-01-08 Kenichi Handa <handa@m17n.org>
5565
5566 * editfns.c (Fformat): Fix '&' to '&&'.
5567
3803eb32
AS
55682004-01-08 Andreas Schwab <schwab@suse.de>
5569
5570 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5571 size if PSEUDOVECTOR_FLAG is set.
5572
9da88f37
KH
55732004-01-07 Kenichi Handa <handa@m17n.org>
5574
74ac5074
KH
5575 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5576
9da88f37
KH
5577 * fontset.c (fontset_ref_via_base): Fix previous change.
5578
05faee07
KS
55792004-01-07 Kim F. Storm <storm@cua.dk>
5580
5581 * process.c (read_process_output): Only activate adaptive
5582 buffering if we read less than 256 bytes at a time.
5583
634910c8
KS
55842004-01-06 Kim F. Storm <storm@cua.dk>
5585
5586 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5587 object and image object. Return glyph width and height.
5588 (mode_line_string, marginal_area_string): Ditto.
5589
5590 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5591 (marginal_area_string): Fix prototypes.
5592
5593 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5594 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5595 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5596
5597 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5598 buffer_posn_from_coords, and marginal_area_string functions to
5599 include both string object and image object in the lispy position.
5600 Also add actual glyph width and height to position.
5601 (read_key_sequence): Use real buffer position from mouse
5602 event to find keymap property even when click is in marginal area.
5603
5604 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5605 mode_line_string and marginal_area_string functions to handle
5606 both string object and image object properties.
d7107586 5607
57951c2e
AS
56082004-01-06 Andreas Schwab <schwab@suse.de>
5609
5610 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5611 character.
5612
181e6a61
AS
56132004-01-02 Andreas Schwab <schwab@suse.de>
5614
d7107586
SM
5615 * macterm.c (emacs_options, x_initialized, same_x_server):
5616 Remove unused (and duplicated) definitions.
181e6a61 5617
31e0fbdd
KS
56182004-01-02 Kim F. Storm <storm@cua.dk>
5619
5620 * process.h (struct Lisp_Process): New members for adaptive read
5621 buffering: adaptive_read_buffering, read_output_delay, and
5622 read_output_skip.
5623
5624 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5625 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5626 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5627 (process_output_delay_count, process_output_skip): New vars.
5628 (Vprocess_adaptive_read_buffering): New variable.
5629 (make_process): Initialize adaptive read buffering members.
5630 (Fstart_process): Set adaptive_read_buffering member.
5631 (deactivate_process): Cleanup adaptive read buffering.
5632 (wait_reading_process_input): Temporarily omit delayed
5633 subprocesses from the set of file descriptors to read from;
5634 adjust the select timeout if we skipped any subprocesses.
5635 (read_process_output): Increase adaptive read buffering delay if
5636 we read less than a full buffer; reduce delay when we read a
5637 full buffer.
5638 (send_process): Simplify using local Lisp_Process var.
5639 Reset adaptive read buffering delay after write.
5640 (init_process): Initialize process_output_delay_count and
5641 process_output_skip.
5642 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5643
68c6a789
JR
56442004-01-01 Jason Rumney <jasonr@gnu.org>
5645
d7107586 5646 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5647
3f70fe82
LT
56482003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5649
5650 * print.c (Ferror_message_string): Add hyperlink in the docstring
5651 to the definition of `signal' in the Elisp manual.
5652 * eval.c (Fsignal): Ditto.
5653
b6189c3b 56542003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5655
5656 * fns.c (internal_equal): Return t for two NaN arguments.
5657
7abd90ea
RS
56582003-12-29 Richard M. Stallman <rms@gnu.org>
5659
5660 * data.c (store_symval_forwarding): Handle setting
5661 default-fill-column, etc., by changing the value in
5662 buffers that use the default.
5663
5664 * minibuf.c (Fset_minibuffer_window): Doc fix.
5665
5666 * fileio.c (choose_write_coding_system): Ignore auto_saving
5667 if using the visited file for auto saves.
5668 (Fwrite_region): Don't update SAVE_MODIFF
5669 if auto-saving in visited file.
5670
3e7cfcdc
KH
56712003-12-29 Kenichi Handa <handa@m17n.org>
5672
5673 * dispextern.h (face_font_available_p): Extern it.
5674
5675 * fontset.c (Voverriding_fontspec_alist): New variable.
5676 (lookup_overriding_fontspec): New function.
d7107586 5677 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5678 (fontset_font_pattern): Likewise.
5679 (regulalize_fontname): New function.
5680 (Fset_fontset_font): Call regulalize_fontname.
5681 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5682 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5683 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5684
5685 * xfaces.c (face_font_available_p): New function.
5686
7abd90ea
RS
56872003-12-28 Richard M. Stallman <rms@gnu.org>
5688
5689 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5690 or if its name is nil.
5691
5692 * buffer.c (Fkill_buffer): Don't delete auto-save file
5693 if it's the same as the visited file.
5694
de1d1a40
LT
56952003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5696
5697 * coding.c (Fcheck_coding_system): Doc fix.
5698
204fb75e
KS
56992003-12-28 Kim F. Storm <storm@cua.dk>
5700
5701 * Makefile.in (eval.o): Depend on dispextern.h.
5702
5703 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5704 image glyph using image's ascent.
5705 (mode_line_string): Return image glyph as object clicked on.
5706 Adjust y0 for image glyph using image's ascent.
5707
5708 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5709 (struct glyph): New members, ascent and descent. Used to save
5710 this glyph's ascent and descent, instead of having.
5711 (struct glyph): Declare member face_id using FACE_ID_BITS.
5712 (find_hot_spot): Add prototype.
5713
5714 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5715 (QCmap): Declare extern.
5716 (make_lispy_position): When position is inside image hot-spot,
5717 use hot-spot element's id as posn element.
5718
5719 * lisp.h (IMAGEP): New macro to test for image object type.
5720 (Qimage): Declare extern.
5721
5722 * macfns.c (Qimage): Remove extern (now in lisp.h).
5723 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5724
5725 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5726
5727 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5728 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5729
5730 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5731
5732 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5733
5734 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5735 pointer types.
5736 (Qrelative_width, Qalign_to): Remove unused variables.
5737 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5738 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5739 image maps.
d7107586 5740 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5741 new dx and dy args.
5742 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5743 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5744 than row's ascent and height, to get sensible height on tall rows.
5745 (build_desired_tool_bar_string): Remove Qimage extern.
5746 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5747 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5748 image glyph is alone on the last line.
5749 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5750 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5751 (on_hot_spot_p): New function to check if position is inside an
d7107586 5752 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5753 (find_hot_spot): New function to search for image hot-spot.
5754 (Flookup_image_map): New defun to search for image hot-spot.
5755 (define_frame_cursor1): New aux function to determine frame pointer.
5756 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5757 Handle `pointer' text property and :pointer image property to
5758 control frame pointer shape. Detect image hot-spots for pointer
5759 and help_echo properties. Use define_frame_cursor1.
5760 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5761 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5762 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5763
5764 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5765
5766 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5767 (Qimage): Remove extern (now in lisp.h).
5768 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5769
5770 * xmenu.c (show_help_event): Remove unused code.
5771
5772 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5773 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5774 row's ascent and descent, to get a sensible height on tall rows.
5775
fc052137
LT
57762003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5777
5778 * minibuf.c (Fcompleting_read): Undo previous change.
5779
a64387ee 57802003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5781
5782 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5783 Arguments GCPRO'ed in call to file name handler.
5784
56ffd194
TTN
57852003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5786
5787 * termcap.c (tgetst1): Scan for "%pN"; if all
5788 N are continuous in [1,9], remove all "%pN".
5789
5202d23d
JD
57902003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5791
f26fab36
JD
5792 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5793
5202d23d
JD
5794 * xfaces.c (lface_fully_specified_p): Take into account that
5795 MAC OS always have unspecified stipple.
5796
8babaa59
TTN
57972003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5798
5799 * tparam.c (tparam1): Add handling for `%pN', which
5800 means use param N for the next substitution.
5801
2d176448
TTN
58022003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5803
5804 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5805 In case `frame' is nil, consult the selected frame.
5806 (Fcolor_supported_p): Likewise.
5807
adb0708c
LT
58082003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5809
000eeb15
LT
5810 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5811 Doc fixes.
0dc72b11
LT
5812
5813 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5814 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5815 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5816 Doc fix.
5817 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5818 read_minibuf.
5819 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5820 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5821
2e4d132b
KH
58222003-12-03 Kenichi Handa <handa@m17n.org>
5823
5824 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5825 encoding sequence.
5826
3999c705
KH
58272003-12-01 Kenichi Handa <handa@m17n.org>
5828
5829 * composite.c (syms_of_composite): Don't make the compostion hash
5830 table week.
5831
d344ecbb
LT
58322003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5833
5834 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5835 * textprop.c (Fget_char_property_and_overlay): New function.
5836 (syms_of_textprop): Defsubr it.
5837
03d6484e
JD
58382003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5839
019b1f0e
JD
5840 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5841 to compile on terminal configuration.
5842
03d6484e
JD
5843 * fileio.c (Fread_file_name): Check use_file_dialog also before
5844 calling Fx_file_dialog.
5845
5846 * fns.c: use_file_dialog: New variable.
5847 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5848
442d3fd0
KS
58492003-11-29 Kim F. Storm <storm@cua.dk>
5850
5851 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5852 (syms_of_msdos): Don't intern and staticpro them.
5853
0f6a07a8
KS
58542003-11-27 Kim F. Storm <storm@cua.dk>
5855
5856 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5857 coordinates relative to glyph at posn. If glyph is an image,
5858 return that as object at posn. Callers changed.
5859 (mode_line_string, marginal_area_string): Calculate and return
5860 pixel coordinates relative to glyph. Callers changed.
5861
5862 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5863 (marginal_area_string): Fix prototypes.
5864 (window_box_left_offset, window_box_right_offset): Add prototypes.
5865
5866 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5867 Remove prototypes.
5868
5869 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5870
5871 * keyboard.c (make_lispy_position): Add x and y coordinates
5872 relative to the current glyph as 7th element of position.
5873 If glyph is an image, return it in the object element.
5874 (read_key_sequence): Skip checks for keymap property in cases
5875 where POSN_STRING is not a string (e.g. an image).
5876
5877 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5878 (Vshow_text_cursor_in_void): New variable.
5879 (glyph_to_pixel_coords): Don't use negative hpos.
5880 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5881 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5882 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5883 (calc_pixel_width_or_height): New aux function, implementing
5884 pixel based artihmetic for glyph widths and heights.
5885 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5886 :width, :height, :align-to, and :ascent, thus allowing these to
5887 be specified in pixels as well as multiples of characters.
5888 Don't produce stretch glyphs with zero width or height.
5889 (get_specified_cursor_type): Declare static.
5890 (get_window_cursor_type): Declare static. Add glyph arg to be
5891 able to know when cursor is on an image; always substitute
5892 hollow-box cursor for filled-box cursor on images, to avoid
5893 negative images and flicker when blinking the cursor.
5894 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5895 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5896 than vertical scroll-bar cursor in display margins.
5897 (note_mouse_highlight): Use non-text cursor rather than text
5898 cursor in fringes and over images in the text area.
5899 Use non-text cursor when mouse pointer is outside editable text,
5900 i.e. in the void after end-of-line or end-of-buffer; this was
5901 already done for W32, but is now standard for all systems --
5902 user can toggle show-text-cursor-in-void to get old behaviour.
5903 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5904 Vdisplay_pixels_per_inch.
5905
00498bfc
AS
59062003-11-25 Andreas Schwab <schwab@suse.de>
5907
5908 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5909 EMACS_INT to not lose bits.
5910 (Ffillarray): Don't set bits beyond the size of a bool vector.
5911
edaa824d
KS
59122003-11-25 Kim F. Storm <storm@cua.dk>
5913
5914 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5915 define this defun on systems that cannot use stderr as lvalue.
5916
74d6f539
GM
59172003-11-24 Gerd Moellmann <gerd@gnu.org>
5918
5919 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5920 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5921 ld's default is incompatible with unexec.
5922
6a1ff3ba
KS
59232003-11-23 Kim F. Storm <storm@cua.dk>
5924
63dc7c6b
KS
5925 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5926 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5927 (Fforce_window_update): New defun.
5928 (syms_of_window): Defsubr it.
5929 (Fset_window_margins, Fset_window_fringes): Doc fix.
5930
6a1ff3ba
KS
5931 * print.c (Fredirect_debugging_output): New defun.
5932 (syms_of_print): Defsubr it.
5933
aef109b7
LT
59342003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5935
5936 * fns.c (Fset_char_table_parent): Doc fix.
5937
6a1ff3ba 59382003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5939
5940 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5941 for glyph clicked on, rather than (unused) pixel positions.
5942 (mode_line_string, marginal_area_string): Change X and Y args to
5943 pointers for returning actual row/column for glyph clicked on.
5944 Simplify and optimize loops.
5945
aef109b7
LT
5946 * dispextern.h (mode_line_string, marginal_area_string):
5947 Update prototypes.
63ccbe21
KS
5948
5949 * keyboard.c (make_lispy_position): New function for generating
5950 mouse click positions from frame and pixel coordinates.
5951 Enhanced to return buffer position and actual row/column for
5952 events outside the text area using updated mode_line_string and
5953 marginal_area_string functions.
5954 Return left-fringe and right-fringe clicks as such, rather than
5955 clicks in text area.
5956 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5957 pixel_to_glyph_coords, as we never use the results.
5958 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5959 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5960 Eliminate unused code in WHEEL_EVENT handling.
5961 (make_lispy_movement): Use make_lispy_position.
5962
5963 * window.c (coordinates_in_window): Remove redundant tests.
5964 Fix returned X pixel value for left-margin.
5965
5966 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5967 mode_line_string and marginal_area_string parameters.
5968
a64387ee 59692003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5970
d7107586
SM
5971 * w32.c (struct the_group, getgrgid): Add.
5972 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5973
3dbf3426
LT
59742003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5975
5976 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5977
cae8ddbb 59782003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5979
d7107586
SM
5980 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5981 include in call to file name handler. Optionally translate numeric
5982 UID and GID to strings. Update docstring.
5983 (directory_files_internal): Add parameter ID-FORMAT.
5984 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5985 include in call to file name handler and call to
5986 directory_files_internal. Update Docstring.
5987 (Fdirectory_files): Add dummy parameter in call to
5988 directory_files_internal.
5989 * lisp.h (Qinteger): Add.
5990 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5991 (Ffile_attributes): Add parameter.
5992 * data.c (Qinteger): Export.
cae8ddbb 5993
2550b848
LT
59942003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5995
3dbf3426 5996 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5997
88380018
KS
59982003-11-19 Kim F. Storm <storm@cua.dk>
5999
6000 * xdisp.c (init_iterator): Initialize it->start to position
6001 before reseating (in case start position is invisible).
6002 (init_to_row_start): Set it->start to row-start.
6003 (redisplay_window): Accept optional_new_start if start position
6004 is invisible (in which case IT_CHARPOS overshoots PT).
6005 (display_line): Setup row->start from it->start (rather than
6006 it->current which is wrong if first char on line is invisible).
6007 When done, reseat it->start to it->current (= start of next row).
6008 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6009 is only partially visible.
6010
6011 * dispextern.h (struct it): New member start.
6012
854c1a59
SM
60132003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6014
455316e2
SM
6015 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6016 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6017 of block_index outside of the macro call.
6018 (Fgarbage_collect): Remove null code.
6019
6020 * m/amdx86-64.h: Don't redefine XPNTR.
6021
854c1a59
SM
6022 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6023 of VALMASK.
6024
6025 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6026 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6027 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6028
6029 * lisp.h (VALMASK): Only define for non-union type.
6030 (MARKBIT): Remove.
6031 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6032 (XTYPE): Define unconditionally.
6033 (XSETTYPE): Remove one more remnant.
6034 (EQ): Define differently for the union and non-union cases.
6035 (INTMASK): New bit mask.
6036 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6037 (GC_EQ): Delegate to EQ.
6038
6039 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6040
a0c6ef2d
JD
60412003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6042
6043 * xterm.c (x_window_to_scroll_bar): Move check of display to
6044 where window_id is compared.
6045
859492c4
KS
60462003-11-17 Kim F. Storm <storm@cua.dk>
6047
6048 * dispextern.h (struct it): New member first_vpos.
6049
6050 * xdisp.c (start_display): Set it->first_vpos.
6051 (try_window_id): Use first_vpos to start display in first _text_
6052 line if no reusable lines at start of window with header line.
6053
810f2256
JD
60542003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6055
7c402969 6056 * w32fns.c (XPutPixel):
854c1a59
SM
6057 * w32bdf.c (w32_init_bdf_font):
6058 * sunfns.c (sel_read):
6059 * process.c (Fmake_network_process):
6060 * frame.c (store_frame_param):
6061 * fontset.c (Fset_fontset_font):
6062 * emacs.c (shut_down_emacs):
a64387ee 6063 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6064
a32e9bfd
JD
6065 * config.in: Regenerate.
6066
810f2256
JD
6067 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6068 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6069 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6070 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6071 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6072
6073 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6074
6075 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6076 (XTmouse_position, handle_one_xevent): Pass Display* to
6077 x_window_to_scroll_bar.
6078 (x_window_to_scroll_bar): Take a Display* argument.
6079 Check that display for frame is equal to Display* argument.
854c1a59 6080 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6081 x_display_info_for_display instead. Use Display in xev instead
6082 of GDK_DISPLAY.
6083 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6084 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6085 (x_connection_closed): Call xg_display_close for GTK.
6086 (x_term_init): Call xg_display_open for additional displays.
6087 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6088 for GTK.
6089
6090 * xmenu.c (single_menu_item, mouse_position_for_popup)
6091 (x_activate_menubar): Formatting adjustments.
6092
6093 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6094 adjustments.
6095
6096 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6097 (xg_display_close, xg_create_default_cursor)
6098 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6099 handling.
854c1a59
SM
6100 (xg_left_ptr_cursor): Remove.
6101 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6102 cursor here.
6103 (xg_win_to_widget): Take Display* argument, call
6104 gdk_xid_table_lookup_for_display.
6105 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6106 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6107 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6108 in FRAME_X_DISPLAY_INFO.
6109 (xg_get_scroll_id_for_window): Take Display* argument.
6110 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6111 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6112
78819ebb
KS
6113 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6114 Display* argument.
6115 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6116
0b03cc78
JD
61172003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6118
6119 * xterm.c (x_detect_focus_change): Do not change focus frame for
6120 Enter/LeaveNotify if the current focus frame has explicit focus.
6121
77e688fa
KS
61222003-11-14 Kim F. Storm <storm@cua.dk>
6123
6124 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6125 is active and first glyph is only partially visible.
854c1a59 6126
dd429b03
KH
61272003-11-13 Kenichi Handa <handa@m17n.org>
6128
6129 * xdisp.c (select_frame_for_redisplay): New function.
6130 (redisplay_internal): Record also selected_frame for
6131 unwind_redisplay. Call select_frame_for_redisplay before
6132 redrawing each frame.
6133 (unwind_redisplay): Argument changed to a cons.
6134
6d9266f4
LT
61352003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6136
6137 * fns.c (Fstring_to_multibyte): Doc fix.
6138
80060eb3
KH
61392003-11-11 Kenichi Handa <handa@m17n.org>
6140
6141 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6142
74305183
JD
61432003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6144
6145 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6146 program specified positions.
6147
cfda993e
JD
61482003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6149
6150 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6151
df211069
KH
61522003-11-08 Kenichi Handa <handa@m17n.org>
6153
6154 * Makefile.in (lisp): Add kannada.el.
6155 (shortlisp): Likewise.
6156
4307d534
KH
61572003-11-07 Kenichi Handa <handa@m17n.org>
6158
854c1a59
SM
6159 * coding.c (coding_allocate_composition_data):
6160 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6161 (coding_restore_composition): Detect invalid composition data.
6162 Give Fstring and Fvector a Lispy integer, not C int.
6163
854c1a59
SM
61642003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6165
6166 * floatfns.c (Flogb): Don't use VALMASK.
6167
6168 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6169 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6170
6171 * lisp.h (XINT): Move the cast to clarify what is going on.
6172 (GCTYPEMASK, XSETTYPE): Remove.
6173 (XGCTYPE): Make it an alias of XTYPE.
6174
d04103a1
JD
61752003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6176
6177 * xterm.c (x_term_init): Fix formatting.
6178
da18b5ac
JD
61792003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6180
78819ebb
KS
6181 * gtkutil.h (xg_have_tear_offs): Declare.
6182 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6183
6184 * gtkutil.c: Remove variable xg_did_tearoff.
6185 (xg_have_tear_offs): New function.
6186 (tearoff_remove): Just decrease xg_detached_menus.
6187 (tearoff_activate): Increase xg_detached_menus and call
6188 tearoff_remove when tearoff is removed.
854c1a59 6189 (xg_keep_popup): Remove function.
da18b5ac
JD
6190 (create_menus): Give add_tearoff_p as argument to recursive
6191 call to create_menus.
6192 (xg_create_widget): Use variables instead of multiple
6193 strcmp. Tell create_menus to create tear off only for
6194 menu bar menus.
6195 (xg_update_menubar): Change title for a detached menu also.
6196 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6197 of deep_p.
6198 (xg_initialize): Initialize xg_detached_menus, remove
6199 initialization of xg_did_tearoff.
6200
6201 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6202 xg_have_tear_offs returns non-zero.
6203 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6204 call to xg_keep_popup.
6205
64d4923e
AC
62062003-11-01 Andrew Choi <akochoi@shaw.ca>
6207
6208 * macterm.c (XTread_socket): Handle menubar selection and grow
6209 window only for mouseDown events.
854c1a59 6210
6cc8bc07
JD
62112003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6212
6213 * xterm.c (x_term_init): For GTK part, increase x_initialized
6214 to check for more than one display. Use error instead of return 0.
6215
043131c4
AC
62162003-10-31 Andrew Choi <akochoi@shaw.ca>
6217
854c1a59 6218 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6219 (copy_dysymtab): Call it.
6220
bdda99a1
LT
62212003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6222
6223 * eval.c (Fdefvaralias): Doc fix.
6224
800f42ff 62252003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6226
6227 * data.c (Fsetplist): Doc fix.
6228
ef35b389
LK
62292003-10-14 Lute Kamstra <lute@gnu.org>
6230
6231 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6232
ef35b389 62332003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6234
07107abc
KS
6235 * window.c (Fset_window_margins): Simplify arg checking.
6236
f7005886
RS
62372003-10-13 Richard M. Stallman <rms@gnu.org>
6238
6239 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6240 (print_partial_compiled_pattern): Replace assert with a printout.
6241 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6242
6243 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6244
6245 * window.c (Fset_window_margins): Allow only integers as args.
6246 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6247 Doc fixes.
6248
9c0c2af5
LK
62492003-10-13 Lute Kamstra <lute@gnu.org>
6250
6251 * window.c (Fset_window_fringes): Elaborate docstring.
6252
3f080e4e
AC
62532003-10-12 Andrew Choi <akochoi@shaw.ca>
6254
854c1a59 6255 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6256
3f080e4e
AC
6257 * s/darwin.h (GC_MARK_STACK): Define.
6258
0aa513ed
JD
62592003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6260
6261 * window.c (shrink_windows): New function.
6262 (size_window): Call shrink_windows to calculate window sizes when
6263 shrinking frame with more than one window.
6264
6aa8858a
KS
62652003-10-12 Kim F. Storm <storm@cua.dk>
6266
6267 * xdisp.c (compute_fringe_widths): Doc fix.
6268
c2164d91
KH
62692003-10-08 Kenichi Handa <handa@m17n.org>
6270
854c1a59 6271 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6272
f82ac129
KH
62732003-10-07 Kenichi Handa <handa@m17n.org>
6274
6275 * coding.c (Qcoding_system_define_form): New variable.
6276 (syms_of_coding): Intern and staticpro it.
6277 (Fcheck_coding_system): Try to autoload the definition of
6278 CODING-SYSTEM.
6279
9296c947
LT
62802003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6281
6282 * fns.c (Frequire): Doc fix.
6283
c1f0671a
JD
62842003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6285
3d8c3826
JD
6286 * xfns.c (Fx_send_client_event): New function as a base for
6287 manipulating extended window manager hints.
6dc15d98 6288 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6289
068ae0fd
JD
6290 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6291 that function is removed.
6292
6293 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6294 x/y_pixels_outer_diff.
6295 (x_check_expected_move): Calculate move_offset_left/top.
6296
6297 * xterm.h (struct x_output): New members: move_offset_top/left.
6298
854c1a59 6299 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6300 call x_set_offset directly.
6301
6302 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6303
96f09305
JD
6304 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6305
6306 * xterm.c (x_delete_display): Free font names and font_encoder
6307 in dpyinfo->font_table.
6308
854c1a59
SM
6309 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6310 Move xfree of font names to x_delete_display.
96f09305 6311
c1f0671a
JD
6312 * xterm.h (struct x_display_info): New member, wm_type.
6313 (struct x_output): New members, expected_top/left and
6314 check_expected_move.
6315
6316 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6317 is received.
854c1a59
SM
6318 (handle_one_xevent): Rename x_check_expected_move from
6319 x_check_fullscreen_move.
c1f0671a
JD
6320 (x_set_offset): Only add WM decoration sizes to modified_top/left
6321 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6322 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6323 Removed fullscreen specific code. Use check_expected_move,
6324 expected_left/top instead. Also, set wm_type.
6325 (x_term_init): Initialize wm_type to unknown.
6326
6327 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6328 sizes to move_x/y.
6329
be2fdba9
KH
63302003-10-03 Kenichi Handa <handa@m17n.org>
6331
6332 * macterm.c (x_load_font): Clear all members of FONTP before start
6333 filling them.
6334
63352003-10-02 Kenichi Handa <handa@m17n.org>
6336
6337 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6338 before calling find_ccl_program_func. Call find_ccl_program_func
6339 only when fontp->font_encoder is not NULL.
6340
6341 * xterm.c (x_load_font): Clear all members of FONTP before start
6342 filling them.
6343
26a6e439
JPW
63442003-10-03 John Paul Wallington <jpw@gnu.org>
6345
6346 * keymap.c (map_keymap): Don't abort when binding is a vector.
6347
0d4c2dc2
JR
63482003-10-02 Jason Rumney <jasonr@gnu.org>
6349
854c1a59
SM
6350 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6351 Sync dependencies with Makefile.in.
a63cf46f
JR
6352 (alloca.o): Remove.
6353
0d4c2dc2
JR
6354 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6355 filling them.
6356
6357 * w32bdf.c (w32_load_bdf_font): Likewise.
6358
ab8f7d5c
RS
63592003-09-30 Richard M. Stallman <rms@gnu.org>
6360
6361 * term.c (set_tty_color_mode): Calculate current_mode_spec
6362 regardless of value of VAL.
6363
854c1a59 6364 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6365 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6366 Handle over_used when splitting UNDER.
6367
a64387ee 63682003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6369
6370 * regex.c (regex_compile): Free the stack when returning from function.
6371
3413f972
KH
63722003-09-28 Kenichi Handa <handa@m17n.org>
6373
6374 * fontset.c (Finternal_char_font): Change return value to
6375 cons (FONT-NAME . GLYPH-CODE).
6376
a6eeaa81 63772003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6378
6379 * term.c (tty_setup_colors): Treat any negative argument as -1.
6380
f98ddc99
KH
63812003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6382
6383 * process.c (send_process): Delete unused temp_buf.
6384
66c8f1a8
DL
63852003-09-26 Dave Love <fx@gnu.org>
6386
6387 * xterm.c (x_bitmap_mask): Declare.
6388
ca716c26
DL
63892003-09-25 Dave Love <fx@gnu.org>
6390
6391 * Makefile.in (fns.o): Depend on md5.h.
6392
fbe57420
KS
63932003-09-25 Kim F. Storm <storm@cua.dk>
6394
6395 * window.c (set_window_buffer): Fix redisplay problems when
6396 switching between buffers with different display margin widths.
6397
ef6ae4ff
KS
63982003-09-23 Kim F. Storm <storm@cua.dk>
6399
6400 * process.c (set_socket_option): Fix :bindtodevice option.
6401 (Fset_network_process_option): Update process contact list when
6402 setting option succeeds.
6403 (Fmake_network_process): Doc fix.
6404
68e03c1c
DL
64052003-09-23 Dave Love <fx@gnu.org>
6406
7146d1c1 6407 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6408
a6eeaa81 64092003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6410
6411 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6412 color mode is an integer number (it could be -1).
6413
8fe7d8c8
RS
64142003-09-22 Richard M. Stallman <rms@gnu.org>
6415
6416 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6417 in the case where OVER is longer than UNDER.
6418
2f71b5ea
MY
64192003-09-22 Masatake YAMATO <jet@gyve.org>
6420
7146d1c1 6421 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6422 `vertical_type'.
7146d1c1 6423
0c4da023
KS
64242003-09-21 Kim F. Storm <storm@cua.dk>
6425
6426 * frame.c (Vdefault_frame_scroll_bars): New variable.
6427 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6428 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6429 window-system default scroll bar position.
6430
b648413b
KS
6431 * window.c (Fwindow_scroll_bars): Doc fix.
6432
8f5b9e34
JD
64332003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6434
854c1a59 6435 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6436
b0f23edf
RS
64372003-09-19 Richard M. Stallman <rms@gnu.org>
6438
6439 * atimer.h: Don't include lisp.h.
6440 (P_): Define it here (as well as elsewhere).
6441
6442 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6443 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6444
6445 * data.c (Fvariable_binding_locus): New function.
6446 (syms_of_data): defsubr it.
6447 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6448
e1283999
DL
64492003-09-18 Dave Love <fx@gnu.org>
6450
ad5f3636
DL
6451 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6452
e1283999
DL
6453 * process.c (Fnetwork_interface_info): Fix type error.
6454 (Fnetwork_interface_list): Doc fix.
6455 (read_process_output, read_process_output): Delete unused var.
6456
b8c7fd71
KS
64572003-09-17 Kim F. Storm <storm@cua.dk>
6458
6459 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6460 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6461 (Fnetwork_interface_info): Check that ifreq struct has required
6462 fields before accessing them; this requires that those fields are
6463 defined as macros, which may be too restrictive on some platforms,
6464 but it is better than failing on other platforms.
6465 (syms_of_process): Only defsubr above fns when included.
6466
11e0a411
DL
64672003-09-17 Dave Love <fx@gnu.org>
6468
6469 * unexalpha.c: Don't include varargs.h.
6470
e9c50801
KS
64712003-09-17 Kim F. Storm <storm@cua.dk>
6472
6473 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6474 for network process.
6475 (socket_options): Add `:' prefix to option names. Add optbit field.
6476 (set_socket_option): Remove no_error arg and special handling of s < 0.
6477 Return 1<<optbit for known option, 0 for unknown.
6478 Do not interpret 0 as false for boolean option (only nil).
6479 Pass failed option and value to report_file_error.
7146d1c1 6480 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6481 (Fset_network_process_option): New function to set just one option.
6482 (Fmake_network_process): Allow :coding arg to be a cons.
6483 Allow :server arg to be an integer specifying backlog size.
6484 Remove :options arg, and allow options to be specified directly
6485 as :KEY, VALUE pairs. Parse these options before binding socket.
6486 As before, :reuseaddr t is default for a server process, but this
6487 can now be disabled by specifying :reuseaddr nil.
6488 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6489 (init_process): Availability of network options is now checked with
6490 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6491 setup features.
6492 (syms_of_process): Fix defsubr's for the replaced functions.
6493
a0fc3644
DL
64942003-09-16 Dave Love <fx@gnu.org>
6495
6496 * Makefile.in: Depend on coding.h.
6497
6df2a645
KS
64982003-09-14 Kim F. Storm <storm@cua.dk>
6499
6500 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6501 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6502 (syms_of_process): Defsubr them.
6503
6504 * config.in: Regenerate.
7146d1c1
SM
6505
65062003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6509 * m/news-r6.h (XUNMARK): Remove.
6510 * m/mips.h (XUNMARK): Remove.
6511 * m/mips-siemens.h (XUNMARK): Remove.
6512 * m/iris4d.h (XUNMARK): Remove.
6513 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6514
0930c1a1
SM
65152003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6516
31003b9e
SM
6517 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6518 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6519 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6520 (XTYPE): Use unsigned right-shift.
6521 (XMARKBIT, XMARK, XUNMARK): Remove.
6522
0930c1a1
SM
6523 * alloc.c (init_intervals, init_symbol, init_marker):
6524 Don't preallocate anything.
6525 (Fgarbage_collect, mark_object): Ignore the markbit.
6526
6527 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6528
19bb0fcd 65292003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6530
6531 * xdisp.c (pint2hrstr): New function.
6532 (decode_mode_spec): Add `%i' and `%I' specs.
6533 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6534 for `mode-line-format'.
6535
03bb6a06
AS
65362003-09-07 Andreas Schwab <schwab@suse.de>
6537
6538 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6539 avoid warning.
6540
a6eeaa81 65412003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6542
0930c1a1 6543 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6544
ed159bbf
KS
65452003-09-03 Kim F. Storm <storm@cua.dk>
6546
6547 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6548 change (superseded by 2002-08-30 change); the default blink-off
6549 cursor is now again "no cursor".
6550
fe64a394
JR
65512003-09-01 Jason Rumney <jasonr@gnu.org>
6552
6553 * makefile.w32-in (alloca.o): Remove.
6554 (coding.o): Depend on intervals.h
6555 (emacs.o, bytecode.o): Depend on window.h
6556
c0175e24
DL
65572003-09-01 Dave Love <fx@gnu.org>
6558
6559 * Makefile.in (alloca.o): Remove commands.
6560 (coding.o): Depend on intervals.h composite.h window.h.
6561 (emacs.o): Depend on window.h keyboard.h keymap.h.
6562 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6563 (bytecode.o): Depend on window.h.
6564
a24d4cb2
JR
65652003-08-31 Jason Rumney <jasonr@gnu.org>
6566
4bc2315e
JR
6567 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6568 returned even when font_type is unknown.
6569
a24d4cb2
JR
6570 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6571
9d35adc7
JD
65722003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6573
6574 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6575
6576 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6577 *_offset.
6578
6579 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6580 calculate pixel value.
6581
6f68b035
GM
65822003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6583
0930c1a1
SM
6584 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6585 Don't tell redisplay display is accurate when it's actually been
6586 paused for pending input.
6f68b035 6587
4828b4d7
RS
65882003-08-29 Richard M. Stallman <rms@gnu.org>
6589
6590 * dispnew.c (adjust_glyph_matrix): Call window_box
6591 whenever W is nonzero.
6592
6593 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6594 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6595 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6596 Use indirect_variable to trace thru variable aliases.
6597
6598 * config.in: Updated.
6599
6600 * callint.c (Fcall_interactively): Save and restore
6601 Vthis_command, Vthis_original_command, real_this_command,
6602 and current_kboard->Vlast_command.
6603
6604 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6605
e019878d
GM
66062003-08-29 Gerd Moellmann <gerd@gnu.org>
6607
6608 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6609
85478bc6
KH
66102003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6611
0930c1a1 6612 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6613 (decode_coding_sjis_big5): Likewise.
6614
07ce82d3
JR
66152003-08-27 Jason Rumney <jasonr@gnu.org>
6616
d3703de3
JR
6617 * w32.c (sys_pipe): Protect against file descriptor overflow.
6618
ee4a01d1
JR
6619 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6620
07ce82d3
JR
6621 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6622
a64387ee 66232003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6624
6625 * xfns.c (Vgtk_version_string): New variable.
6626 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6627
a6eeaa81 66282003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6629
0930c1a1 6630 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6631
5459e42a
EZ
6632 * Makefile.in (msdos.o): Depend on intervals.h.
6633
0930c1a1 6634 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6635
231d6cfb
JD
66362003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6637
6638 * xterm.h (struct x_display_info): New fields: client_leader_window
6639 and Xatom_wm_client_leader.
6640
6641 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6642 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6643
6644 * xsmfns.c (create_client_leader_window): New function.
6645 (x_session_initialize): Call create_client_leader_window, take
6646 dpyinfo as argument.
6647
6648 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6649
6650 * Makefile.in (xsmfns.o): Add more depenedencies.
6651
afa88464
DL
66522003-08-21 Dave Love <fx@gnu.org>
6653
6654 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6655
f730033e
KH
66562003-08-21 Kenichi Handa <handa@m17n.org>
6657
6658 * term.c (term_init): Fix previous change; don't rely on the
6659 length of `buffer' if TERMINFO is defined.
6660
6dca786c
DL
66612003-08-20 Dave Love <fx@gnu.org>
6662
6663 * atimer.h: Include lisp.h.
6664
6665 * lisp.h (EMACS_LISP_H): New.
6666 (popup_activated_flag): Don't declare.
6667
6668 * alloca.c: Some merging with gnulib. Change logic and doc
6669 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6670 [DO_BLOCK_INPUT]: Don't include lisp.h.
6671 (xmalloc, xfree): Declare.
6672 (malloc): Don't declare.
6673
0930c1a1 6674 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6675 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6676 atimer.h, blockinput.h.
6677
6678 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6679
78819ebb 6680 * alloca.s: Remove.
6dca786c 6681
3a06a6d9
RS
66822003-08-19 Gerd Moellmann <gerd@gnu.org>
6683
6684 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6685 use -lncurses.
6686
6687 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6688 FreeBSD returns something longer than 2044. Abort if the end of
6689 the buffer is overwritten.
6690
27eeee55
MB
66912003-08-19 Miles Bader <miles@gnu.org>
6692
6693 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6694
2f297815
GM
66952003-08-19 Gerd Moellmann <gerd@gnu.org>
6696
f4446bbf
GM
6697 * alloc.c (lisp_align_malloc): Check for memory full when
6698 allocating ablocks, which also avoids freeing a pointer into an
6699 ablocks structure.
6700
6701 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6702
0930c1a1 6703 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6704
0e7d7aae
RS
67052003-08-16 Richard M. Stallman <rms@gnu.org>
6706
6707 * editfns.c (Fencode_time): Doc fix.
6708
67092003-08-16 David Ponce <david@dponce.com>
6710
6711 * fileio.c (Fwrite_region): Fix conditional expression to issue
6712 the right message.
6713
b6189c3b 67142003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6715
6716 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6717 Set default value to 1.
0e7d7aae 6718
5d551295
KH
67192003-08-15 Kenichi Handa <handa@m17n.org>
6720
6721 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6722 what autoscaled.
6723 (best_matching_font): Once we find a better scalable font, set
6724 non_scalable_has_exact_height_p to 1.
6725 (try_font_list): Call try_alternative_families to try any family
6726 with the given registry.
6727
1661e56b
AS
67282003-08-09 Andreas Schwab <schwab@suse.de>
6729
f29181dc
AS
6730 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6731
1661e56b
AS
6732 * print.c (print_string): Fix printing of multibyte string with
6733 nontrivial printcharfun.
6734
465aa50a
JD
67352003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6736
6737 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6738
6739 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6740
e430e5ba
KH
67412003-07-31 Kenichi Handa <handa@m17n.org>
6742
6743 * process.c (read_process_output): Return the actually read bytes
6744 instead of the result of decoding.
6745
97e7188e
KH
67462003-07-31 Kenichi Handa <handa@m17n.org>
6747
6748 * xterm.h (struct x_bitmap_record): New member have_mask.
6749
6750 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6751 to 0.
6752 (x_create_bitmap_from_file): Likewise.
6753 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6754 (x_destroy_all_bitmaps): Likewise.
6755 (x_create_bitmap_mask): Set have_mask member to 1.
6756
b53094d6
RS
67572003-07-30 Richard M. Stallman <rms@gnu.org>
6758
6759 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6760
631f2082
JD
67612003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6762
6763 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6764
c855f2ca
RS
67652003-07-29 Richard M. Stallman <rms@gnu.org>
6766
6767 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6768 Conditionalize XIM code on HAVE_XIM.
6769
6770 * fns.c (Fclear_string): New function.
6771 (syms_of_fns): defsubr it.
6772
b6189c3b 67732003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6774
0930c1a1 6775 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6776
29ea8ae9
SM
67772003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6778
6779 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6780
6781 * buffer.c (delete_all_overlays): New function.
6782 * buffer.h (delete_all_overlays): Declare.
6783 * coding.c (run_pre_post_conversion_on_str):
6784 * print.c (temp_output_buffer_setup):
6785 * fileio.c (Finsert_file_contents):
6786 * minibuf.c (get_minibuffer): Use it.
6787
1dd7ccf2
AC
67882003-07-22 Andrew Choi <akochoi@shaw.ca>
6789
6790 * unexmacosx.c (unexec_regions_sort_compare):
6791 (unexec_regions_merge): New functions. Sort and merge unexec
6792 regions before dumping them.
6793
f57bd967
DL
67942003-07-22 Dave Love <fx@gnu.org>
6795
6796 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6797
7cdee936
SM
67982003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6799
6800 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6801 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6802 MARKBIT as the gcmarkbit for strings.
6803
e50886d3
RS
68042003-07-21 Richard M. Stallman <rms@gnu.org>
6805
6806 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6807
29ea8ae9 6808 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6809 (syms_of_fns): Corresponding change.
6810
6811 * alloc.c (syms_of_alloc): Doc fixes.
6812
68132003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6814
6815 * s/netbsd.h: Use -Wl syntax.
6816
fdc39b59
RS
68172003-07-17 Richard M. Stallman <rms@gnu.org>
6818
6819 * xterm.c (xim_initialize): Redo 6/24 change.
6820
9c53385f
SM
68212003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6822
6823 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6824 (Fswitch_to_buffer): Don't signal an error when switching to the same
6825 buffer in a dedicated window.
6826
6827 * alloc.c: Use bitmaps for cons, as was done for floats.
6828 (init_float, init_cons): Let the normal code allocate the first block.
6829 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6830 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6831 New macros.
6832 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6833 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6834 (live_cons_p): Check the pointer is not past the `conses' array.
6835 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6836 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6837 (survives_gc_p): Use CONS_MARKED_P and simplify.
6838 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6839
dde13196
PE
68402003-07-13 Paul Eggert <eggert@twinsun.com>
6841
6842 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6843 puts it into BSS instead, at least on Solaris 8 and 9.
6844 This is a valid optimization, and it may occur on other platforms,
6845 so Emacs should not assume that initializing a static variable to
6846 zero puts it into data.
6847 * alloc.c (pure, staticvec):
6848 Initialize these arrays to nonzero, so that they're not
6849 put into BSS by that optimization.
6850
a801bc34
SM
68512003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6852
6853 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6854 (lisp_align_malloc): Use posix_memalign is available.
6855 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6856 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6857 for consistency. Update users.
6858
0c8b2afa
RS
68592003-07-13 Richard M. Stallman <rms@gnu.org>
6860
6861 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6862
668c2ab0
JB
68632003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6864
6865 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6866 and use the Gtk+ function gtk_window_icon_from_file if available.
6867
6868 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6869 handle mask of bitmaps.
6870 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6871 mask property.
6872 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6873
6874 * xterm.h (xg_set_icon): New function.
6875
800bebe3
RS
68762003-07-12 Paul Eggert <eggert@twinsun.com>
6877
6878 * unexelf.c (unexec): Consider a section to precede the .bss
6879 section if its addresses overlap that of .bss.
6880
69e38995
RS
68812003-07-12 Richard M. Stallman <rms@gnu.org>
6882
6883 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6884
6885 * config.in (HAVE_CRTIN): Add #undef.
6886 (INLINE): Really inline only if OPTIMIZE is defined.
6887
6888 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6889 END_FILES_1.
6890 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6891 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6892
6893 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6894 (TERMINFO): Define.
6895 (LIBS_TERMCAP): Define.
6896 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6897
6898 * xfns.c: Include libpng/png.h instead of png.h.
6899
f1d0c238
AS
69002003-07-11 Andreas Schwab <schwab@suse.de>
6901
6902 * buffer.c (modify_overlay): Update prototype.
6903 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6904 Likewise.
6905
5f6bf5fe
SM
69062003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6907
6908 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6909 (struct interval): Move to intervals.h.
6910 (struct Lisp_Marker): Use EMACS_INT for position info.
6911 (forward_point): Remove prototype of defunct function.
6912 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6913 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6914 (syms_of_textprop, set_text_properties): Remove prototypes that are
6915 already in intervals.h.
6916
6917 * intervals.h (struct interval): Move from lisp.h.
6918 Use EMACS_INT for position and size info.
6919
6920 * coding.c: Include intervals.h for Fset_text_properties.
6921
6922 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6923 position and length information.
6924
2765b457
SM
69252003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6926
6927 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6928 position and length information.
6929
2410d73a
SM
69302003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6931
6932 Change overlays_after and overlays_before so the overlays themselves
6933 are linked into lists, rather than using cons cells. After all each
6934 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6935 Lisp_Overlay for free and save up one cons cell per overlay (not
6936 to mention one indirection when traversing the list of overlay).
6937
6938 * lisp.h (struct Lisp_Overlay): New field `next'.
6939
6940 * buffer.h (struct buffer): Change overlays_before and overlays_after
6941 from Lisp lists of overlays to pointers to overlays.
6942
6943 * buffer.c (overlay_strings, recenter_overlay_lists):
6944 Fix typo in eassert in last commit.
6945 (unchain_overlay): New function.
6946 (add_overlay_mod_hooklist): Use AREF.
6947 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6948 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6949 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6950 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6951 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6952 Adjust to new type of overlays_(before|after).
6953
6954 * alloc.c (mark_object): Mark the new `next' field of overlays.
6955 (mark_buffer): Manually mark the overlays_(after|before) fields.
6956
6957 * coding.c (run_pre_post_conversion_on_str):
6958 * editfns.c (overlays_around):
6959 * xdisp.c (load_overlay_strings):
6960 * fileio.c (Finsert_file_contents):
6961 * indent.c (current_column):
6962 * insdel.c (signal_before_change, signal_after_change):
6963 * intervals.c (set_point_both):
6964 * print.c (temp_output_buffer_setup): Use new type for
6965 overlays_(before|after).
6966
04812929
SM
69672003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6968
6969 * buffer.c (report_overlay_modification): Don't run hooks while
6970 traversing the list of overlays.
6971
6972 * buffer.h (struct buffer): Use an int for overlay_center.
6973 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6974 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6975
6976 * buffer.c (reset_buffer, recenter_overlay_lists)
6977 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6978 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6979 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6980 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6981 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6982
6983 * xdisp.c (fast_find_position): Remove unused var.
6984
6985 * cmds.c (Qexpand_abbrev): New sym.
6986 (syms_of_cmds): Initialize it.
6987 (internal_self_insert): Use it to call expand-abbrev.
6988
2e7ecf15
KS
69892003-07-09 Kim F. Storm <storm@cua.dk>
6990
f9711de4 6991 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6992 was configured with --without-xim.
42f81f64 6993 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6994
c6de56a0
RS
69952003-07-07 Richard M. Stallman <rms@gnu.org>
6996
6997 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6998
6999 * alloc.c (Fgarbage_collect): Doc fix.
7000
b6189c3b 70012003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
7002
7003 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7004
bfe1a3f7
SM
70052003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7006
04812929
SM
7007 * minibuf.c (read_minibuf): UNGCPRO before returning.
7008 (Ftry_completion, Fall_completions): Doc fix.
7009
bfe1a3f7
SM
7010 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7011 now that `floats' is not the last element of the struct any more.
7012
ee79d1aa
JR
70132003-07-06 Jason Rumney <jasonr@gnu.org>
7014
7015 * w32term.h (ClipboardSequence_Proc): New type.
7016
7017 * w32fns.c (clipboard_sequence_fn): New variable.
7018 (globals_of_w32fns): Initialize it.
7019
7020 * w32select.c (last_clipboard_sequence_number): New variable.
7021 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7022 number if possible.
7023
49723c04
SM
70242003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7025
4698665f
SM
7026 * m/amdx86-64.h (MARKBIT):
7027 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7028 MARKBIT and ARRAY_MARK_FLAG any more.
7029
7030 * m/hp800.h (XSETMARKBIT):
7031 * m/sr2k.h (XSETMARKBIT):
7032 * lisp.h (XSETMARKBIT): Remove unused macro.
7033
49723c04
SM
7034 * lisp.h (mark_object): Change prototype.
7035
7036 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7037 (last_marked): Change accordingly.
7038 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7039 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7040 (mark_buffer): Update calls to mark_object.
7041
7042 * bytecode.c (mark_byte_stack):
7043 * fns.c (sweep_weak_table):
7044 * keyboard.c (mark_kboards): Update calls to mark_object.
7045
1d660eca
JR
70462003-07-06 Jason Rumney <jasonr@gnu.org>
7047
7048 * alloc.c (struct ablock): Only include padding when there is some.
7049
618b5ae4
SM
70502003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7051
7052 * alloc.c (ALIGN): Add casts to simplify usage.
7053 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7054 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7055 (struct ablock, struct ablocks): New types.
7056 (free_ablock): New global var.
7057 (lisp_align_malloc, lisp_align_free): New functions.
7058 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7059 (struct float_block): Reorder and add gcmarkbits.
7060 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7061 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7062 (init_float, make_float): Use lisp_align_malloc.
7063 (free_float, live_float_p): Don't use `type' any more.
7064 (make_float): Use FLOAT_UNMARK to access to mark bit.
7065 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7066 Use FLOAT_MARKED_P to access the mark bit.
7067 (pure_alloc): Simplify use of ALIGN.
7068 (mark_object): Use FLOAT_MARK to access the mark bit.
7069 (gc_sweep): Use new macros to access the float's mark bit.
7070 (init_alloc_once): Init free_ablock.
7071
7072 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7073
3ef06d12
SM
70742003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7075
7076 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7077 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7078 (allocate_buffer): Move.
7079 (string_bytes): Don't mask markbit of `size_byte'.
7080 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7081 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7082 Use the `size' field of buffers (rather than the `name' field) for
7083 the mark bit, as is done for all other vectorlike objects.
7084 Use the new macros to access the mark bit of vectorlike objects.
7085
e81043aa
RS
70862003-06-26 Richard M. Stallman <rms@gnu.org>
7087
7088 * puresize.h (BASE_PURESIZE): Increment base size.
7089
7090 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7091
7092 * xterm.c (xim_initialize): Undo previous change.
7093
2d0834cc
SM
70942003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7095
7096 * alloc.c (survives_gc_p): Simplify.
7097
7098 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7099
7100 * window.c (Fset_window_dedicated_p): Simplify.
7101 (display_buffer_1): Don't raise the win from which minibuf was entered.
7102 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7103 (Fminibuffer_selected_window): Simplify.
7104
7105 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7106
7107 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7108 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7109
7110 * insdel.c (check_markers, adjust_markers_for_delete)
7111 (adjust_markers_for_insert, adjust_markers_for_replace)
7112 (prepare_to_modify_buffer, RESTORE_VALUE):
7113 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7114 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7115 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7116 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7117 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7118 * editfns.c (save_excursion_restore, transpose_markers):
7119 * window.c (delete_window):
7120 * xdisp.c (message_dolog): Update for new types.
7121
d54ae3d8
JD
71222003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7123
a5f696ac
JD
7124 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7125 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7126 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7127
7128 * frame.c (make_frame): Initialize default_face_done_p.
7129
7130 * frame.h (struct frame): Add default_face_done_p.
7131
d54ae3d8
JD
7132 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7133 will be defined.
7134
2336fe58
SM
71352003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7136
7137 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7138 Initialize the new field `gcmarkbit'.
7139 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7140 (mark_interval_tree): Don't mark the tree separately from the nodes.
7141 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7142 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7143 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7144
7145 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7146 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7147 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7148 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7149 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7150
bcea31c2
DL
71512003-06-24 Dave Love <fx@gnu.org>
7152
7153 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7154
7155 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7156 from gnulib.
7157
2601f59e
RS
71582003-06-21 Richard M. Stallman <rms@gnu.org>
7159
7160 * fileio.c (Fwrite_region): Alternate messages
7161 for append and partial write.
7162
7163 * keyboard.c (read_key_sequence): When converting upcase fn key to
7164 downcase, update fkey and keytran so `backspace' gets translated.
7165
7166 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7167
7168 * process.c (wait_reading_process_input): Don't signal SIGIO
7169 in batch mode.
7170
b5d2c621
KH
71712003-06-17 Kenichi Handa <handa@m17n.org>
7172
7173 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7174 composite.h.
7175
7176 * xselect.c: Don't include charset.h, coding.h, composite.h.
7177 (Qforeign_selection): New variable.
7178 (syms_of_xselect): Intern and static it.
7179 (selection_data_to_lisp_data): Return a unibyte string made from
7180 data with `foreign-selection' text property.
7181
6793bc63
SM
71822003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7183
7184 * termhooks.h (EVENT_INIT): New macro.
7185
7186 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7187
7188 * alloc.c (mark_kboards): Move to keyboard.c.
7189
7190 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7191 * xterm.c (x_dispatch_event):
7192 * xmenu.c (find_and_call_menu_selection):
7193 * xdisp.c (handle_tool_bar_click):
7194 * w32menu.c (menubar_selection_callback):
7195 * sysdep.c (kbd_input_ast, read_input_waiting):
7196 * msdos.c (dos_rawgetc):
7197 * macterm.c (mac_check_for_quit_char):
7198 * macmenu.c (menubar_selection_callback):
7199 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7200 data to kbd_buffer_store_event.
7201
b3ea810c
KS
72022003-06-15 Kim F. Storm <storm@cua.dk>
7203
7204 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7205 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7206
b8f75eda
KG
72072003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7208
7209 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7210
ba92ce48
KH
72112003-06-12 Kenichi Handa <handa@m17n.org>
7212
7213 * fileio.c (Fwrite_region): Save and restore restriction.
7214
b80263be
DL
72152003-06-12 Dave Love <fx@gnu.org>
7216
7217 * alloca.c (alloca): Declare arg as size_t.
7218
6793bc63
SM
7219 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7220 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7221
b23c0a83
DL
72222003-06-11 Dave Love <fx@gnu.org>
7223
7224 * search.c (shrink_regexp_cache): Use xrealloc.
7225 (syms_of_search): Use xmalloc.
7226
700e47c2
KS
72272003-06-10 Kim F. Storm <storm@cua.dk>
7228
7229 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7230 Adjust phys_cursor.x to be relative to window box, rather than
7231 text area before checking -- to ensure cursor is redrawn when
7232 exposing window.
7233 Note: This also fixes a similar (older) bug if display margins
7234 are present.
7235
f11aa0b2
KH
72362003-06-06 Kenichi Handa <handa@m17n.org>
7237
7238 * coding.c (encoding_buffer_size): If coding->type is
7239 coding_type_ccl, double magnification on CRLF encoding.
7240
3d143690
JR
72412003-06-06 Jason Rumney <jasonr@gnu.org>
7242
7243 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7244 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7245
7246 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7247 Mac too.
7248
f16205ca
DL
72492003-06-05 Dave Love <fx@gnu.org>
7250
b23c0a83
DL
7251 * strftime.c: Merge changes from gnulib.
7252
f16205ca
DL
7253 * mktime.c (__mktime_internal): Merge changes from gnulib
7254 involving year 69 and dst2.
7255
7256 Changes to merge with gnulib version and be consistent with the
7257 autoconf test:
7258
6793bc63
SM
7259 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7260 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7261 [HAVE_LOCALE_H]: Include locale.h.
7262 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7263
9b87a0bc
KS
72642003-06-05 Kim F. Storm <storm@cua.dk>
7265
7266 * window.c (coordinates_in_window): Convert X and Y to window
7267 relative coordinates inside mode-line and header-line parts.
7268 Convert X and Y to margin area relative coordinates inside left
7269 and right display margin parts.
7270
5a8a15ec
JR
72712003-06-05 Jason Rumney <jasonr@gnu.org>
7272
7273 * w32fns.c (add_system_logical_colors_to_map): New function.
7274 (Fx_open_connection): Use it.
7275
01ed8ff1
SM
72762003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7277
7278 * process.c (allocate_pty): Revert part of the previous patch.
7279 (Faccept_process_output): Simplify.
7280
b427b65d
JR
72812003-06-04 Jason Rumney <jasonr@gnu.org>
7282
7283 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7284
7285 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7286 (lispy_mouse_wheel_names): Remove.
7287 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7288 Always define drag_and_drop_syms.
7289
7290 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7291 WHEEL_EVENT events.
7292
914a8c47
SM
72932003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7294
01ed8ff1
SM
7295 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7296
914a8c47
SM
7297 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7298
adcb132c
JD
72992003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7300
7301 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7302 menu item label.
7303
be781fa7
RS
73042003-06-03 Richard M. Stallman <rms@gnu.org>
7305
7306 * window.c (Fwindow_edges): Doc fix.
7307 (Fwindow_pixel_edges, Fwindow_inside_edges)
7308 (Fwindow_inside_pixel_edges): New functions.
7309 (syms_of_window): defsubr them.
7310
7311 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7312 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7313
914a8c47
SM
73142003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7315
7316 * dispnew.c (Fsit_for): Don't lie about the number of args.
7317
5b07197a
DL
73182003-06-02 Dave Love <fx@gnu.org>
7319
7320 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7321 (syms_of_callproc) <process-environment>: Doc fix.
7322
7323 * doc.c: Use HAVE_FCNTL_H, not USG5.
7324
7325 * xfaces.c (font_rescale_ratio): Fix for K&R.
7326
7327 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7328
7329 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7330
7331 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7332
7333 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7334 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7335
d7107586 7336 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7337
7338 * xmenu.c (ENCODE_MENU_STRING): New.
7339 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7340 Use it.
7341
7342 * coding.h (ENCODE_UTF_8): New.
7343 (Qutf_8): Declare.
7344
7345 * coding.c (Qutf_8): New.
7346 (syms_of_coding): Intern it.
7347
7348 * fns.c: Doc fixes.
7349
7335b336
KH
73502003-06-02 Kenichi Handa <handa@m17n.org>
7351
7352 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7353
914a8c47
SM
73542003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7355
7356 * lread.c (openp): Make sure STR is a string.
7357
9862c135
JR
73582003-06-01 David Ponce <david@dponce.com>
7359
cab27d04 7360 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7361 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7362
7363 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7364 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7365 (discard_mouse_events): Discard WHEEL_EVENT events too.
7366 (lispy_wheel_names, wheel_syms): New.
7367 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7368 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7369 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7370
7371 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7372 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7373 WHEEL_EVENT events.
7374
f984e73e
JPW
73752003-05-31 John Paul Wallington <jpw@gnu.org>
7376
7377 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7378 timer are in lisp/emacs-lisp.
7379
1efcd78f
KH
73802003-05-31 Kenichi Handa <handa@m17n.org>
7381
458c8af4
KH
7382 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7383 region when a buffer is changed to unibyte.
7384
1efcd78f
KH
7385 * charset.h (VALID_LEADING_CODE_P): New macro.
7386 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7387
778e2804
KH
7388 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7389 is nonzero, accept multibyte form of eight-bit-control chars.
7390 (decode_composition_emacs_mule): Likewise.
7391 (decode_coding_emacs_mule): Likewise.
7392 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7393 multibyte form of eight-bit-control chars.
7394
7395 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7396 (Finsert_file_contents): If coding-system-for-read is bound to
7397 Qauto_save_coding, use the coding system emacs-mule with special
7398 setting for recovering a file.
7399 (choose_write_coding_system): On auto saving, use the coding
7400 system emacs-mule with special setting for auto saving.
7401 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7402
034060e4
KH
74032003-05-30 Kenichi Handa <handa@m17n.org>
7404
7405 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7406 properly before calling ccl_driver.
7407
778e2804 7408 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7409
cab27d04 7410 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7411 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7412 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7413
595f5aa5
GM
74142003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7415
7416 * xfaces.c (realize_default_face): Do not abort if lface is
7417 non-existent - reverts change from 2003-05-19.
7418
103e0180
KH
74192003-05-29 Kenichi Handa <handa@m17n.org>
7420
7421 * coding.c (decode_coding_iso2022): Pay attention to the byte
7422 sequence of CTEXT extended segment, and retain those bytes as is.
7423
74242003-05-28 Kenichi Handa <handa@m17n.org>
7425
cab27d04 7426 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7427 of CODING_REPLACEMENT_CHARACTER.
7428 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7429 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7430 check this flag on encoding.
cab27d04
SM
7431 (encode_coding_sjis_big5):
7432 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7433 (Fset_terminal_coding_system_internal):
7434 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7435 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7436
7437 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7438 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7439 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7440
ff6a3bfb 74412003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7442
ff6a3bfb
RS
7443 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7444
7445 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7446
1963c428
KS
74472003-05-28 Kim F. Storm <storm@cua.dk>
7448
7449 * xdisp.c (expose_window): Fix error in calculation of
7450 window relative coordinates of area to redisplay.
7451
2b5d4601
JR
74522003-05-27 Jason Rumney <jasonr@gnu.org>
7453
7454 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7455
1c64a4a2
JB
74562003-05-27 David Ponce <david@dponce.com>
7457
7458 Handle W32 mouse wheel events as mouse click events, like in X.
7459
7460 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7461 MOUSE_WHEEL_EVENT anymore.
7462
7463 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7464 Scrolling down/up the mouse wheel is respectively mapped to mouse
7465 button 4 and 5.
7466 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7467 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7468 WM_MOUSEWHEEL events.
7469
2d031b89
AS
74702003-05-27 Andreas Schwab <schwab@suse.de>
7471
20464fdf
AS
7472 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7473
2d031b89
AS
7474 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7475 partially visible line.
7476
7477 * alloc.c (Fgarbage_collect): Fix last change.
7478
97bc76d4
JPW
74792003-05-26 John Paul Wallington <jpw@gnu.org>
7480
7481 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7482
56613f06
SM
74832003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7484
7485 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7486 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7487
7488 * window.h (window_box_text_cols): Declare.
7489
7490 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7491 (x_draw_vertical_border): Remove unused var `f'.
7492
7493 * xfaces.c (build_scalable_font_name): Remove `unused var
7494 pixel_size' warning.
7495
7496 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7497
7498 * unexelf.c (unexec): Remove `unused var n' warning.
7499
7500 * strftime.c (my_strftime_localtime_r): Remove `defined but
7501 unused' warning.
7502
7503 * process.c (allocate_pty): Remove `unused var stb' and
7504 `cp might be used uninitialized' warnings.
7505
7506 * dispnew.c (mode_line_string): Remove unused var `f'.
7507
7508 * coding.c (find_safe_codings): Remove unused var `i'.
7509
7510 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7511
7512 * buffer.c (Fkill_buffer): Remove unused var `list'.
7513
7514 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7515
93421a1f
JD
75162003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7517
7518 * frame.c (make_frame): Condition want_fullscreen with
7519 HAVE_WINDOW_SYSTEM.
7520
c4b8aebc
JB
75212003-05-25 Juanma Barranquero <lektu@terra.es>
7522
7523 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7524 (Fwindow_scroll_bars): Fix typo in docstring.
7525
0416870b
KS
75262003-05-24 Kim F. Storm <storm@cua.dk>
7527
7528 The following changes serve several purposes:
7529
7530 1) Swap the position of fringes and display margins in windows, i.e.
7531 the fringes are now displayed between the margins and the text area
7532 (by default).
7533
7534 2) Allow fringe and scroll bar parameters to be set per-buffer and
7535 per-window (like display margins). Such settings are now stored
7536 in window configurations, preserved when frames are resized, and
9018a88e 7537 copied when windows are split vertically or horizontally.
0416870b
KS
7538 Several bugs related to display margins have been fixed.
7539
7540 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7541
0416870b
KS
7542 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7543 rather than FRAME_WIDTH (FRAME_FONT (f)).
7544
7545 5) Introduce a consistent naming of variables, members and macros
7546 depending on whether their value is measured in pixels or in
7547 canonical columns/lines. Pixel dimensions are named *_width and
7548 *_height, while canonical columns/lines are named *_cols and
7549 *_lines. Pixel positions are named *_x and *_y, while column/line
7550 positions are named *_col and *_line.
7551
7552 6) Consolidate more of the X, W32, and MAC gui code by moving
7553 common data into struct frame, and generalize it for the non-gui
7554 case by using suitable defaults.
7555
7556 7) Cleanup and consolidate the macros controlling frame and window
7557 layout into frame.h and window.h, and generalize the use of the
7558 various window_box_* functions (enhanced to handle the new fringe
7559 position and the per-window fringe and scroll bar settings).
7560
7561 * frame.h (struct frame): Rename members height to text_lines,
7562 width to text_cols, window_height to total_lines, window_width to
7563 total_cols, new_height to new_text_lines, new_width to
7564 new_text_cols. All uses changed.
7565 (struct frame): New members which consolidate common members of
7566 x_output, w32_output, and mac_output structures: left_pos,
7567 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7568 win_gravity, size_hint_flags, border_width, internal_border_width,
7569 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7570 want_fullscreen. All uses changed.
7571 (struct frame): New member column_width contaning the canonical
7572 column width, analogue to line_height. All uses changed.
7573 (struct frame): Rename members scroll_bar_pixel_width to
7574 config_scroll_bar_width, and scroll_bar_cols to
7575 config_scroll_bar_cols. All uses changed.
7576 (struct frame): New member scroll_bar_actual_width which
7577 consolidates and renames the vertical_scroll_bar_extra member of
7578 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7579 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7580 from x/w32/macterm.h files. All uses changed. Also change code
7581 which referred to f->output_data...->pixel_height.
cab27d04 7582 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7583 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7584 which referred to f->output_data...->pixel_width.
cab27d04 7585 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7586 Also change code which referred to f->height.
cab27d04 7587 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7588 Also change code which referred to f->width.
7589 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7590 to update new_text_lines and new_text_cols members directly.
cab27d04 7591 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7592 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7593 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7594 FRAME_SCROLL_BAR_COLS. All uses changed.
7595 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7596 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7597 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7598 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7599 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7600 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7601 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7602 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7603 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7604 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7605 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7606 Unconditionally return line_height member (it now has proper value
7607 also for non-window frames).
7608 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7609 return new column_width member (rather than the default font width).
7610 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7611 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7612 from x/w32/macterm.h files. Unconditionally return corresponding
7613 member of frame structure (they now have proper values also for
7614 non-window frames).
cab27d04 7615 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7616 Calculate return value from left and right widths.
7617 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7618 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7619 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7620 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7621 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7622 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7623 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7624 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7625 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7626 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7627 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7628 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7629 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7630 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7631 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7632 consolidated from x/mac/w32term.h.
cab27d04 7633 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7634 consolidated from x/mac/w32term.h.
cab27d04 7635 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7636 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7637 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7638 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7639
7640 * window.h (struct window): Rename members left to left_col,
7641 top to top_line, height to total_lines, width to total_cols,
7642 left_margin_width to left_margin_cols, right_margin_width to
7643 right_margin_cols, orig_height to orig_total_lines, orig_top to
7644 orig_top_line. All uses changed.
7645 (struct window): New members left_fringe_width, right_fringe_width,
7646 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7647 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7648 New macros primarily used to simplify other macros.
7649 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7650 referred to XINT (w->width).
7651 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7652 referred to XINT (w->height).
7653 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7654 referred to XINT (w->width) * canon_x_unit.
7655 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7656 referred to XINT (w->height) * canon_y_unit.
7657 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7658 referred to XINT (w->left).
cab27d04 7659 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7660 all uses and code that referred to XINT (w->left) + XINT (w->width).
7661 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7662 referred to XINT (w->top).
7663 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7664 referred to XINT (w->top) + XINT (w->height).
7665 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7666 referred to XINT (w->left) * canon_x_unit.
7667 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7668 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7669 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7670 referred to XINT (w->top) * canon_y_unit.
7671 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7672 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7673 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7674 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7675 All uses changed.
cab27d04 7676 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7677 All uses changed.
cab27d04 7678 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7679 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7680 Do not exclude left fringe width.
cab27d04 7681 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7682 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7683 Do not exclude fringe widths.
7684 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7685 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7686 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7687 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7688 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7689 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7690 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7691 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7692 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7693 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7694 New macros. Change code which referenced corresponding
7695 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7696 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7697 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7698 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7699 allow per-window scroll-bar settings.
7700 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7701 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7702 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7703 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7704 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7705 FRAME_SCROLL_BAR_WIDTH.
7706 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7707 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7708 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7709 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7710 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7711 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7712 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7713 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7714 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7715 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7716 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7717 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7718 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7719 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7720 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7721 (window_from_coordinates): Update prototype.
7722 (Fset_window_buffer): Update EXFUN.
7723 (set_window_buffer): Update prototype.
9018a88e 7724
0416870b 7725 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7726 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7727 changed.
7728 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7729 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7730 internal_border_width is now set to 0 for non-window frames.
7731 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7732 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7733 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7734 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7735 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7736 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7737 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7738 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7739 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7740 Move to window.h and renamed [see window.h changes].
0416870b
KS
7741 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7742 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7743 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7744 Use WINDOW_TOTAL_LINES.
0416870b
KS
7745 (frame_update_line_height): Remove prototype.
7746
7747 * buffer.h (struct buffer): Rename members measured in columns:
7748 left_margin_width to left_margin_cols, right_margin_width to
7749 right_margin_cols. All uses changed.
7750 New members left_fringe_width, right_fringe_width,
7751 fringes_outside_margins for per-buffer fringe settings.
7752 New members scroll_bar_width and vertical_scroll_bar_type for
7753 per-buffer scroll bar settings.
7754
7755 * buffer.c (init_buffer_once): Set buffer_defaults and
7756 buffer_local_flags for new buffer-local variables
7757 left_fringe_width, right_fringe_width, fringes_outside_margins,
7758 scroll_bar_width, and vertical_scroll_bar_type.
7759 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7760 default-* variables for them.
7761
7762 * dispnew.c: Make (many) trivial substitutions for renamed and
7763 new macros in dispextern.h, frame.h and window.h.
7764 (mode_line_string): No need to adjust width for mode lines, as it
7765 is already adjusted by the caller.
7766 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7767
0416870b
KS
7768 * frame.c: Make (many) trivial substitutions for renamed and
7769 new macros in dispextern.h, frame.h and window.h.
7770 (make_frame): Initialize left_fringe_width, right_fringe_width,
7771 fringe_cols, scroll_bar_actual_width, border_width,
7772 internal_border_width, column_width, line_height, x_pixels_diff,
7773 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7774 members with values suitable for a non-window frames.
7775
7776 * gtkutil.c: Make (many) trivial substitutions for renamed and
7777 new macros in dispextern.h, frame.h and window.h.
9018a88e 7778
0416870b
KS
7779 * indent.c: Make (few) trivial substitutions for renamed and
7780 new macros in dispextern.h, frame.h and window.h.
7781
7782 * keyboard.c: Make (many) trivial substitutions for renamed and
7783 new macros in dispextern.h, frame.h and window.h.
7784 (make_lispy_event): Use window positions returned from
7785 window_from_coordinates when constructing the lisp event for
7786 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7787 (incorrect) values locally.
7788 (make_lispy_movement): Use window positions returned from
7789 window_from_coordinates when constructing the lisp event, rather
7790 than calculating (incorrect) values locally.
7791
7792 * scroll.c: Make (some) trivial substitutions for renamed and
7793 new macros in dispextern.h, frame.h and window.h.
7794
7795 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7796 scroll-bars.
7797
7798 * sysdep.c: Make (few) trivial substitutions for renamed and
7799 new macros in dispextern.h, frame.h and window.h.
7800
7801 * term.c: Make (some) trivial substitutions for renamed and
7802 new macros in dispextern.h, frame.h and window.h.
7803
7804 * widget.c: Make (few) trivial substitutions for renamed and
7805 new macros in dispextern.h, frame.h and window.h.
7806
7807 * window.c: Make (many) trivial substitutions for renamed and
7808 new macros in dispextern.h, frame.h and window.h.
7809 (make_window): Initialize new members
7810 left_margin_cols, right_margin_cols, left_fringe_width,
7811 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7812 and vertical_scroll_bar_type.
cab27d04 7813 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7814 and per-window fringes and scroll-bars.
0416870b 7815 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7816 frame's internal_border_width (the effect normally negible since
0416870b
KS
7817 the internal_border_width is typically 0 or 1 pixel, but very
7818 noticeable for an internal_border_width of e.g. 25 pixels).
7819 Upon successful return (other than ON_NOTHING), the coordinates
7820 are now always properly converted to window relative for the
7821 given display element.
7822 (window_from_coordinates): Add new parameters wx and wy to
7823 return the window relative x and y position in the returned
7824 window and part. A null arg means, don't return the position.
7825 All callers changed.
7826 (adjust_window_margins): New function which may reduce the width
7827 of the display margins if a window's text area is too small after
7828 resizing or splitting windows.
7829 (size_window): Fix bug that did not account for display margin
7830 widths when checking the minimum width of a window; use
7831 adjust_window_margins.
7832 (set_window_buffer): Call Fset_window_fringes and
7833 Fset_window_scroll_bars to setup per-window elements.
7834 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7835 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7836 (e.g. after splitting a window or resizing the frame).
7837 All callers changed.
0416870b
KS
7838 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7839 (Fsplit_window): Duplicate original window's display margin,
7840 fringe, and scroll-bar settings; then call Fset_window_buffer with
7841 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7842 window to only preserve the display margins in one of the windows.
c4b8aebc 7843 When splitting horizontally, call adjust_window_margins on both
0416870b 7844 windows to ensure that the text area of the new windows is non too
f9711de4 7845 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7846 width of the split window was less than the width of the display
7847 margins.
cab27d04 7848 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7849 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7850 Fix bug that caused vertical separator to be subtracted also on
7851 window frames. Fix another bug that did not reduce the returned
7852 value by the columns used for display margins.
7853 (window_scroll_line_based): Fix bug related to scrolling too much
7854 when display margins are present (implicitly fixed by the fix to
7855 window_box_text_cols).
7856 (scroll_left, scroll_right): Fix bug related to scrolling too far
7857 by default when display margins are present (implicitly fixed by
7858 the fix to window_box_text_cols).
7859 (struct saved_window): Rename members left to left_col, top to
7860 top_line, width to total_cols, height to total_lines, orig_top to
7861 orig_top_line, orig_height to orig_total_lines. All uses changed.
7862 New members left_margin_cols, right_margin_cols,
7863 left_fringe_width, right_fringe_width, fringes_outside_margins,
7864 scroll_bar_width, and vertical_scroll_bar_type for saving
7865 per-window display elements.
7866 (Fset_window_configuration): Restore display margins, fringes,
7867 and scroll bar settings. This fixes a bug which caused display
7868 margins to be discarded when saving and restoring a window
7869 configuration.
7870 (save_window_save): Save display margins, fringes, and scroll bar
7871 settings. This fixes a bug which caused display margins to be
7872 discarded when saving and restoring a window configuration.
7873 (Fset_window_margins): Do nothing if display margins are not
7874 really changed. Otherwise, call adjust_window_margins to ensure
7875 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7876 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7877 the width of the window.
7878 (Fset_window_fringes): New defun to allow user to specifically set
7879 this window's fringe widths and position vs. display margins.
cab27d04 7880 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7881 (Fset_window_scroll_bars): New defun to allow user to specifically
7882 set this window's scroll bar width and position.
7883 (Fwindow_scroll_bars): New defun to return window's actual scroll
7884 bar settings.
7885 (compare_window_configurations): Also compare display margins,
7886 fringes, and scroll bar settings.
7887 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7888
7889 * xdisp.c: Make (many) trivial substitutions for renamed and
7890 new macros in dispextern.h, frame.h and window.h.
7891 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7892 and new fringe vs. display margin position. Note that returned
0416870b
KS
7893 value is no longer guaranteed to be a whole multiple of the frame
7894 column width, since per-window fringes may now be any width.
7895 (window_box_left_offset): New function like window_box_left, but
7896 value is relative to left border of window (rather than frame).
7897 (window_box_right_offset): New function like window_box_right,
7898 but value is relative to left border of window.
7899 (window_box_left): Adapt to per-window fringes and scroll bars,
7900 and new fringe vs. display margin position. Simplify by using
7901 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7902 (window_box): Allow null args for unnecessary return values;
7903 change/simplify relevant callers.
7904 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7905 and new fringe vs. display margin position.
7906 Use window_box_left_offset and window_box_right_offset
0416870b 7907 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7908 scroll bars, and new fringe vs. display margin position.
7909 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7910 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7911 fringe vs. display margin position.
7912 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7913 (redisplay_window): Adapt to per-window scroll bars.
7914 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7915 bars, and new fringe vs. display margin position.
7916 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7917 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7918 bars, and new fringe vs. display margin position. Fix bug which
7919 increased total width of full_width rows by width of scroll bars
7920 although window's total width already includes that.
7921 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7922 (expose_area): Simplify using window_box_left_offset.
7923 (x_draw_vertical_border): Handle per-window scroll bar settings,
7924 mixing windows with left, right and no scroll bars.
7925
7926 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7927 where it's used in x_list_fonts (for clarity).
7928 (frame_update_line_height): Remove unused function; functionality
7929 is now done directly when setting the default font in x_set_font.
7930
7931 * xfns.c: Make (many) trivial substitutions for renamed and
7932 new macros in dispextern.h, frame.h and window.h.
7933
7934 * xmenu.c: Make (some) trivial substitutions for renamed and
7935 new macros in dispextern.h, frame.h and window.h.
7936
7937 * xterm.h (struct x_output): Move members left_pos, top_pos,
7938 border_width, pixel_height, pixel_width, line_height,
7939 internal_border_width, vertical_scroll_bar_extra,
7940 left_fringe_width, right_fringe_width, fringe_cols,
7941 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7942 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7943 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7944 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7945 (PIXEL_WIDTH, PIXEL_HEIGHT)
7946 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7947 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7948 frame.h and renamed [see frame.h changes].
7949 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7950 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7951 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7952 and renamed [see frame.h changes].
9018a88e 7953
0416870b
KS
7954 * xterm.c: Make (several) trivial substitutions for renamed and
7955 new macros in dispextern.h, frame.h and window.h.
cab27d04 7956 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7957 (scroll_run): Adapt to new fringe position.
7958 (glyph_rect): Use window coordinates returned from
7959 window_from_coordinates rather than frame_to_window_pixel_xy.
7960 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7961 scroll-bars.
7962 (handle_one_xevent): Simplify a USE_GTK conditional.
7963 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7964 (fringes are now inside margins, i.e. always in the clipping area).
7965 All callers changed.
7966 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7967 directly, then call compute_fringe_widths. Don't call
7968 frame_update_line_height.
7969
7970 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7971 border_width, pixel_height, pixel_width, line_height,
7972 internal_border_width, vertical_scroll_bar_extra,
7973 left_fringe_width, right_fringe_width, fringe_cols,
7974 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7975 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7976 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7977 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7978 (PIXEL_WIDTH, PIXEL_HEIGHT)
7979 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7980 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7981 frame.h and renamed [see frame.h changes].
7982 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7983 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7984 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7985 and renamed [see frame.h changes].
9018a88e 7986
0416870b
KS
7987 * w32term.c: Make (several) trivial substitutions for renamed and
7988 new macros in dispextern.h, frame.h and window.h.
cab27d04 7989 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7990 (glyph_rect): Use window coordinates returned from
7991 window_from_coordinates rather than frame_to_window_pixel_xy.
7992 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7993 scroll-bars.
7994 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7995 (fringes are now inside margins, i.e. always in the clipping area).
7996 All callers changed.
7997 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7998 directly, then call compute_fringe_widths. Don't call
7999 frame_update_line_height.
8000
8001 * w32console.c: Make (few) trivial substitutions for renamed and
8002 new macros in dispextern.h, frame.h and window.h.
8003
8004 * w32fns.c: Make (many) trivial substitutions for renamed and
8005 new macros in dispextern.h, frame.h and window.h.
8006
8007 * w32menu.c: Make (few) trivial substitutions for renamed and
8008 new macros in dispextern.h, frame.h and window.h.
8009
8010 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8011 border_width, pixel_height, pixel_width, line_height,
8012 internal_border_width, vertical_scroll_bar_extra,
8013 left_fringe_width, right_fringe_width, fringe_cols,
8014 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8015 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8016 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8017 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8018 (PIXEL_WIDTH, PIXEL_HEIGHT)
8019 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8020 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8021 frame.h and renamed [see frame.h changes].
8022 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8023 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8024 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8025 and renamed [see frame.h changes].
9018a88e 8026
0416870b
KS
8027 * macterm.c: Make (several) trivial substitutions for renamed and
8028 new macros in dispextern.h, frame.h and window.h.
cab27d04 8029 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8030 (glyph_rect): Use window coordinates returned from
8031 window_from_coordinates rather than frame_to_window_pixel_xy.
8032 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8033 scroll-bars.
8034 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8035 (fringes are now inside margins, i.e. always in the clipping area).
8036 All callers changed.
8037 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8038 directly, then call compute_fringe_widths. Don't call
8039 frame_update_line_height.
8040
8041 * macfns.c: Make (several) trivial substitutions for renamed and
8042 new macros in dispextern.h, frame.h and window.h.
9018a88e 8043 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8044
8045 * macmenu.c: Make (few) trivial substitutions for renamed and
8046 new macros in dispextern.h, frame.h and window.h.
8047
8048 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8049 and line_height, and use corresponding new members in struct
8050 frame. All uses changed.
8051 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8052 superseeded by corresponding macros in frame.h.
8053
8054 * msdos.c: Make (several) trivial substitutions for renamed and
8055 new macros in dispextern.h, frame.h and window.h.
8056 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8057 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8058 (internal_terminal_init): No need to initialize line_height here;
8059 it now defaults to 1.
8060
9018a88e
SM
80612003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8062
8063 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8064 dropping `down' events.
8065
016bd3c0
AS
80662003-05-24 Andreas Schwab <schwab@suse.de>
8067
8068 * coding.c (find_safe_codings): Fix last change.
8069
4dacadcc
TTN
80702003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8071
8072 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8073
319830ce
SM
80742003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8075
9018a88e
SM
8076 * xdisp.c (display_mode_element): Increase max depth.
8077 Simplify the error handling code. Use a different error string
8078 for the case where we hit the depth limit.
8079
319830ce
SM
8080 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8081
8082 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8083
80842003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8085
8086 * intervals.c (get_local_map): Don't get char-property of previous
8087 point any more: get_pos_property already does it and better.
8088
c67de8ba
DL
80892003-05-21 Dave Love <fx@gnu.org>
8090
8091 [Merged from unicode branch.]
8092
8093 * xfns.c (x_window, x_window): Use use_xim.
8094
8095 * xterm.c (use_xim): Initialize.
8096 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8097 (x_term_init): Maybe set use_xim.
8098
8099 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8100
edd3ff1d
JR
81012003-05-21 Jason Rumney <jasonr@gnu.org>
8102
8103 * unexw32.c (_start): Remove _fmode initialization.
8104
8105 * emacs.c (main) [WINDOWSNT]: Move it here.
8106
463f55ee
DL
81072003-05-20 Dave Love <fx@gnu.org>
8108
8109 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8110
af253914
RS
81112003-05-19 Richard M. Stallman <rms@gnu.org>
8112
8113 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8114 as value for QCfont attribute.
8115 (realize_default_face): lface should already exist; crash if not.
8116 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8117
8118 * frame.c (Fignore_event): Doc fix.
8119
1d211019
KH
81202003-05-19 Kenichi Handa <handa@m17n.org>
8121
8122 * coding.c (decode_coding_string): Handle post-read-conversion
8123 even if the coding doesn't require decoding.
8124
4dd68254
RS
81252003-05-18 Richard M. Stallman <rms@gnu.org>
8126
8127 * callproc.c (Fcall_process_region): Doc fix.
8128
14d87dc9
SM
81292003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8130
deca5d96
SM
8131 * lread.c (Fload): Print a message if package is obsolete.
8132
14d87dc9
SM
8133 * window.c (Fselect_window): Add optional `norecord' arg.
8134 (select_window_1): Fold into Fselect_window.
8135 (select_window_norecord): New function.
8136 (temp_output_buffer_show): Use it. Preserve current buffer.
8137
8138 * window.h (Fselect_window): Update declaration.
8139
8140 * window.c (delete_window, Fother_window, Fset_window_configuration):
8141 * minibuf.c (read_minibuf):
8142 * macterm.c (x_new_focus_frame):
8143 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8144 * callint.c (Fcall_interactively):
8145 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8146
8147 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8148
78f52183
DK
81492003-05-17 David Kastrup <dak@gnu.org>
8150
8151 * process.c (read_process_output): Back out change from 2003-03-09.
8152
14d87dc9
SM
81532003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8154
8155 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8156
8157 * textprop.c (text_property_stickiness): New arg `buffer'.
8158
8159 * intervals.h (text_property_stickiness): New arg `buffer'.
8160 (get_pos_property): Declare.
8161
8162 * intervals.c (get_local_map): Use get_pos_property, to obey
8163 stickiness and empty overlays.
8164 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8165 (merge_properties, intervals_equal, merge_properties_sticky):
8166 Use XCAR, XCDR.
8167 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8168
1fd1cc2f
RS
81692003-05-17 Richard M. Stallman <rms@gnu.org>
8170
4f9f637a
RS
8171 * minibuf.c (read_minibuf): If buffer is empty, record the default
8172 in the history.
8173 (Fminibuffer_complete_word): When deleting the overlap, take account
8174 of its real position.
8175
8176 * fns.c (map_char_table): Fix previous change.
8177
1fd1cc2f
RS
8178 * syntax.c (find_defun_start):
8179 When open_paren_in_column_0_is_defun_start,
8180 return beginning of buffer.
8181
8182 * lisp.h (map_char_table): Declare added arg.
8183
8184 * fns.c (map_char_table): New arg TABLE gets the master table.
8185 All calls changed.
8186 Process default and inheritance, resorting to Faref if necessary.
8187
8188 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8189 (Faccessible_keymaps): Pass new arg to map_char_table.
8190
8191 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8192
8193 * casetab.c (set_case_table): Pass new arg to map_char_table.
8194
8195 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8196
8197 * lisp.h (specbinding_func): New typedef.
8198 (struct specbinding): Use specbinding_func, to put the `volatile'
8199 in the right place.
8200
8201 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8202 to avoid GCC warning.
14d87dc9 8203
b6189c3b 82042003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8205
14d87dc9 8206 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8207
35fb885d
SM
82082003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8209
8210 * keyboard.c (apply_modifiers): Don't fill the other cache.
8211
9a274fbd
SM
82122003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8213
c55b5fad
SM
8214 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8215
9a274fbd
SM
8216 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8217 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8218 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8219 (Fset_window_configuration, Fcurrent_window_configuration)
8220 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8221 (Fpos_visible_in_window_p, mark_window_cursors_off)
8222 (window_internal_height, window_internal_width, Frecenter)
8223 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8224 (replace_buffer_in_all_windows, init_window_once, init_window)
8225 (syms_of_window, keys_of_window): Move from lisp.h.
8226 * lisp.h: Move window.c declarations to window.h.
8227
8228 * bytecode.c: Include window.h.
8229 * emacs.c: Include window.h.
8230
14d87dc9 8231 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8232 (keyremap): Add `parent' field.
8233 (keyremap_step): Use it. Remove `parent' argument.
8234 (read_key_sequence): Setup and use the new `parent' field.
8235
fd93e331
SM
82362003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8237
8238 * keyboard.c (adjust_point_for_property): Ensure termination.
8239
1c4001a1
SM
82402003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8241
8242 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8243 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8244 duplicated handling of function-key-map and key-translation-map
8245 in read_key_sequence.
8246 (read_key_sequence): Use them.
8247
8248 * keyboard.c (adjust_point_for_property): Try harder to move point
8249 to the non-sticky end of an invisible property.
8250
8251 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8252 property intangible as well.
8253
780379b1
AS
82542003-05-10 Andreas Schwab <schwab@suse.de>
8255
8256 * xmenu.c (single_menu_item): Change last parameter to void* to
8257 avoid warning.
8258
ca2de342
RS
82592003-05-09 Richard M. Stallman <rms@gnu.org>
8260
8261 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8262 Bind Qinhibit_modification_hooks to t so there will be no GC.
8263 Rename local `tem' to `save_deactivate_mark'.
8264
8265 * eval.c (specpdl_ptr): Declare volatile.
8266 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8267 before doing the work of unbinding it.
8268
8269 * lisp.h (struct specbinding): Declare elements volatile.
8270 (specpdl_ptr): Declare volatile.
8271
8272 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8273
8274 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8275 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8276
347003be
DL
82772003-05-08 Dave Love <fx@gnu.org>
8278
8279 * coding.c (Vlast_coding_system_used): Doc fix.
8280
5adcec23
JR
82812003-05-07 Jason Rumney <jasonr@gnu.org>
8282
8283 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8284 when system does not support them.
8285
5fe3b8a4
SM
82862003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8287
8288 * fileio.c (Qwrite_region_annotate_functions): New var.
8289 (build_annotations): Use it to process the global part of the hook.
8290 (syms_of_fileio): Init and staticpro it.
8291
8292 * keyboard.c (safe_run_hooks_error): Display a message instead of
8293 silently ignoring the error.
8294
82952003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8296
8297 * keyboard.c (input_available_signal): Mark static.
8298 (menu_bar_items): Use map_keymap.
8299 (menu_bar_one_keymap): Remove.
8300 (menu_bar_item): Adjust arglist (for use in map_keymap).
8301 Properly hide a second binding when not both are keymaps.
8302
8303 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8304 (single_keymap_panes): Use it and map_keymap.
8305 (single_menu_item): Use skp as well.
8306
8307 * keymap.h (map_keymap_function_t): New type.
8308 (map_keymap): Declare.
8309
8310 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8311 (map_keymap_call, Fmap_keymap): New functions.
8312 (syms_of_keymap): Defsubr map-keymap.
8313
4b1b4443
JD
83142003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8315
8316 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8317 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8318 ..._with_mnemonic functions for menu items.
8319
1f816871
KH
83202003-05-01 Kenichi Handa <handa@m17n.org>
8321
8322 * coding.c (coding_system_accept_latin_extra_p): Delete this
8323 function.
8324 (find_safe_codings): Pay attention to
8325 the property tranlsation-table-for-encode of each codings.
8326 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8327
5ed6ba5b
SM
83282003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8329
8330 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8331
32c06229
SM
83322003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8333
8334 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8335
8336 * lisp.h (CHECK): Wrap args in parenthesis.
8337 (specbind): Fix doc: symbol = Qnil is not supported any more.
8338
8339 * bytecode.c (Fbyte_code) <unwind-protect>:
8340 Use Fprogn rather than 0 and Qnil.
8341
8342 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8343 `double', and `triple' modifiers as well.
8344
ed3c3314
RS
83452003-04-30 Richard M. Stallman <rms@gnu.org>
8346
8347 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8348
8349 * alloc.c (abort_on_gc): New variable.
8350 (Fgarbage_collect): Abort if abort_on_gc is set.
8351
8352 * lisp.h (abort_on_gc): Add decl.
8353
8354 * eval.c (Fsignal): Clear abort_on_gc.
8355
8356 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8357 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8358
8359 * xdisp.c (move_it_vertically_backward): Do the final big else
8360 even if nlines is 0.
8361
8362 * xdisp.c (redisplay_internal): Finish the per-frame loop
8363 even if redisplay is suspended by input.
8364
0b325c12
AC
83652003-04-24 Andrew Choi <akochoi@shaw.ca>
8366
8367 * macterm.c (x_list_fonts): Return all fonts that match if
8368 maxnames = -1.
8369
4e837cd0
KH
83702003-04-25 Kenichi Handa <handa@m17n.org>
8371
8372 * syntax.c (skip_chars): Fix previous change.
8373
9af7511a
KH
83742003-04-24 Kenichi Handa <handa@m17n.org>
8375
8376 * syntax.c (skip_chars): Make the code faster by using the common
8377 technique of *p, *stop, and *endp.
8378
e3b2c21f
JD
83792003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8380
8381 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8382 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8383 being updated.
8384
32c06229
SM
83852003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8386
8387 * eval.c (Fapply): Undo last change and add a comment about why.
8388
c6464167
MB
83892003-04-18 Miles Bader <miles@gnu.org>
8390
8391 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8392 pickier PARSE_MULTIBYTE_SEQ.
8393
e509f168
SM
83942003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8395
8396 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8397 Use XCDR, XCAR, CONSP.
8398 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8399 (Fapply): Remove unnecessary GCPRO.
8400
8401 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8402
8403 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8404
8405 * buffer.h: Don't hardcode BEG==1.
8406
8407 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8408
5ceea398
RS
84092003-04-16 Richard M. Stallman <rms@gnu.org>
8410
8411 * xdisp.c (try_window, try_window_reusing_current_matrix):
8412 When at end of window, set window_end_pos to Z-ZV.
8413
8414 * buffer.c (Foverlay_recenter): Doc fix.
8415
e509f168
SM
84162003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8417
8418 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8419
d243e605
AC
84202003-04-14 Andrew Choi <akochoi@shaw.ca>
8421
8422 * macterm.c (mac_check_for_quit_char): Don't check more often than
8423 once a second.
8424
6901b111
SM
84252003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8426
8427 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8428 specially, so that they can't hide an implicit switch-frame event.
8429 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8430 (head_table): Use switch-frame as event_kind for select-window.
8431 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8432
8433 * editfns.c (Fformat): Lisp_Object/int mixup.
8434 (format2): Remove unused var numargs.
8435
e301806f 84362003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8437
6901b111 8438 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8439 (Qafter_insert_file_set_coding): New variable.
8440 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8441 for after-insert-file-adjust-coding-function.
8442 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8443 instead of Vafter_insert_file_adjust_coding_function.
8444
38914424
KH
84452003-04-11 Kenichi Handa <handa@m17n.org>
8446
8447 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8448
8449 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8450 string. Callers changed.
8451
84522003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8453
6901b111 8454 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8455 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8456 (Finsert_file_contents):
8457 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8458 decode-format.
8459
f979dc05
JD
84602003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8461
8462 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8463 get GtkAdjustment as widget now is a GtkRange.
8464
8465 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8466 GtkRange to avoid memory leak.
8467
f8c6b4c2 84682003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8469
50ebc53d
KH
8470 * xfaces.c (Vface_font_rescale_alist): New variable.
8471 (struct font_name): New member rescale_ratio.
8472 (font_rescale_ratio): New function.
6901b111 8473 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8474 (better_font_p): On comparing point sized, pay attention to
8475 recale_ratio member of fonts.
8476 (build_scalable_font_name): Reflect font->rescale_ratio in the
8477 font name.
6901b111 8478 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8479
cb98871c
KH
8480 * lread.c (read1): Before calling index, check if the 2nd
8481 arguemnt is in ASCII range.
8482
4773b8ca
RS
84832003-04-08 Richard M. Stallman <rms@gnu.org>
8484
b0ada147
RS
8485 * fileio.c (Ffile_symlink_p): Doc fix.
8486
8487 * editfns.c (Fformat): Translate positions of text properties
8488 in the format string to apply them to the result.
8489
4773b8ca
RS
8490 * fileio.c (Finsert_file_contents): Doc fix.
8491 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8492
84932003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8494
4773b8ca
RS
8495 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8496
e8f25745 84972003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8498
e8f25745
ST
8499 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8500 that self-contained application finds libexec files.
8501
f8c6b4c2 85022003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8503
6901b111
SM
8504 * coding.c (code_convert_region_unwind):
8505 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8506 (code_convert_region): If post-read-conversion function changed
8507 the value of last-coding-sytem, keep the new value in
8508 coding->symbol so that it won't be overridden.
8509 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8510 (coding_system_accept_latin_extra_p): New function.
8511 (find_safe_codings): Pay attention to characters registered in
8512 latin-extra-code-table.
2310d84c 8513
39c9a034
TTN
85142003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8515
8516 * Makefile.in (md5.o): Add missing dependency info.
8517
eb67c5d6
RS
85182003-04-06 Richard M. Stallman <rms@gnu.org>
8519
8520 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8521
8522 * marker.c (verify_bytepos): New function.
8523
8524 * intervals.c (set_intervals_multibyte_1): When becoming
8525 multibyte, adjust right and left child sizes to a whole set of
8526 characters. If an interval gets zero total-length, delete it.
8527 If an interval consists of just its children, delete one of them.
8528
8529 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8530 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8531
eb67c5d6
RS
8532 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8533 All calls deleted.
8534 (lisp_malloc): Do the work here directly.
8535
b1f81fc5
JB
85362003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8537
8538 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8539 char tables.
8540
85412003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8542
8543 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8544 destructively change "%S" to "%s".
8545
774666fb
MB
85462003-04-03 Miles Bader <miles@gnu.org>
8547
8548 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8549 always set.
8550
19c37f01
DL
85512003-04-01 Dave Love <fx@gnu.org>
8552
8553 * xfns.c (xpm_lookup_color): Grok "opaque".
8554
2f4b24c3
AC
85552003-03-31 Andrew Choi <akochoi@shaw.ca>
8556
8557 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8558 parent window ID.
8559
8560 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8561
8562 * macterm.h (struct mac_output): Define x_pixels_diff and
8563 y_pixels_diff.
b1f81fc5 8564
9443fcf6
JB
85652003-03-31 Juanma Barranquero <lektu@terra.es>
8566
8567 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8568 blockinput.h and files included from it.
8569
e072891b
KS
85702003-03-31 Kim F. Storm <storm@cua.dk>
8571
8572 The following changes consolidates the common code related to
8573 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8574 files into frame.c.
9443fcf6 8575
e072891b
KS
8576 * frame.c: Include blockinput.h.
8577 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8578 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8579 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8580 related vars here.
8581 (struct frame_parm_table, frame_parms): New table for describing
8582 frame parameters and their associated Q-variable.
8583 The order of the parameters corresponds to the sequence of the
8584 frame_parm_handlers table in redisplay_interface.
8585 (x_fullscreen_move, x_set_frame_parameters)
8586 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8587 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8588 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8589 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8590 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8591 Generic functions for processing of frame parameters.
8592 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8593 (display_x_get_resource, x_get_resource_string): Functions for
8594 generic access to X resources.
8595 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8596 (x_default_parameter, Fx_parse_geometry): Functions for generic
8597 access to frame parameters.
6901b111
SM
8598 (x_figure_window_size): Generic calculation of frame size.
8599 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8600 (syms_of_frame): Intern and staticpro frame parameter variables.
8601 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8602 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8603
e072891b
KS
8604 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8605 parameter related vars defined in frame.c.
8606 (EMACS_CLASS): Define here.
8607 (enum FULLSCREEN_*): Define here.
8608 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8609 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8610 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8611 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8612 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8613 (x_set_visibility, x_set_autoraise, x_set_autolower)
8614 (x_set_unsplittable, x_set_vertical_scroll_bars)
8615 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8616 (x_figure_window_size): Add prototypes.
8617
8618 * dispextern.h (frame_parm_handler): New typedef.
8619 (struct redisplay_interface): New member frame_parm_handlers.
8620 (enum resource_types): Move declaration here.
8621 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8622 (x_default_parameter): Add prototypes.
8623
8624 * window.c: Remove extern decl for frame parameter vars.
8625 (change_window_heights): New generic function;
8626 replaces x_change_window_heights. All users changed.
8627
8628 * window.h (change_window_heights): Add prototype.
8629
8630 * xfaces.c: Remove extern decl for frame parameter vars.
8631
8632 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8633 (struct w32_display_info): Fix type of xrdb member.
8634 (enum FULLSCREEN_*): Remove.
8635 Remove prototypes for generic functions (in frame.h).
8636
8637 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8638 parameters now defined in frame.h and frame.c.
f63fd14e 8639 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8640 (enum x_frame_parms): Remove (bogus, unused enum).
8641 (check_x_display_info): Make non-static (for frame.c).
8642 (struct x_frame_parm_table, x_frame_parms): Remove.
8643 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8644 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8645 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8646 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8647 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8648 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8649 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8650 Remove. Use generic functions instead.
8651 (enum resource_types): Remove.
8652 (x_set_scroll_bar_default_width): New global function (for frame.c).
8653 (Fx_create_frame): Depend on x_figure_window_size to add space for
8654 toolbar and setup size_hint_flags.
8655 (x_frame_parm_handlers): New table for redisplay_interface.
8656 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8657
e072891b 8658 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8659 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8660 (x_redisplay_interface): Add x_frame_parm_handlers member.
8661
8662 * w32gui.h (XrmDatabase): New (dummy) typedef.
8663
8664 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8665 (struct w32_display_info): Fix type of xrdb member.
8666 (enum FULLSCREEN_*): Remove.
8667 (x_fullscreen_adjust): Remove prototype.
8668
8669 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8670 parameters now defined in frame.h and frame.c.
f63fd14e 8671 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8672 (enum x_frame_parms): Remove (bogus, unused enum).
8673 (check_x_display_info): Make non-static (for frame.c).
8674 (struct x_frame_parm_table, x_frame_parms): Remove.
8675 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8676 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8677 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8678 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8679 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8680 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8681 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8682 Remove. Use generic functions instead.
8683 (enum resource_types): Remove.
8684 (x_set_scroll_bar_default_width): New global function (for frame.c).
8685 (Fx_create_frame): Depend on x_figure_window_size to add space for
8686 toolbar and setup size_hint_flags.
8687 (w32_frame_parm_handlers): New table for redisplay_interface.
8688 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8689
e072891b
KS
8690 * w32term.c: Remove unnecessary extern declarations.
8691 (x_fullscreen_adjust): Remove. Use generic instead.
8692 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8693
8694 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8695
8696 * macgui.h (XrmDatabase): New (dummy) typedef.
8697
8698 * macterm.h (EMACS_CLASS): Remove.
8699 (struct mac_display_info): Add xrdb member.
8700 (struct mac_output): Add want_fullscreen member.
8701
8702 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8703 parameters now defined in frame.h and frame.c.
f63fd14e 8704 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8705 (check_x_display_info): Make non-static (for frame.c).
8706 (struct x_frame_parm_table, x_frame_parms): Remove.
8707 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8708 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8709 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8710 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8711 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8712 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8713 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8714 Remove. Use generic functions instead.
8715 (enum resource_types): Remove.
8716 (x_set_scroll_bar_default_width): New global function (for frame.c).
8717 (mac_frame_parm_handlers): New table for redisplay_interface.
8718 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8719
e072891b
KS
8720 * macterm.c: Remove unnecessary extern declarations.
8721 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8722
3e6a560b
KS
8723 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8724 included from it (atimer.h and systime.h).
8725
7b7b454e
AS
87262003-03-30 Andreas Schwab <schwab@suse.de>
8727
8728 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8729 parameters for shift_glyphs_for_insert.
8730
8731 * macterm.c (x_redisplay_interface): Add missing entry for
8732 draw_vertical_window_border.
8733
beb402de
KG
87342003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8735
8736 * fileio.c (Fexpand_file_name): In the no-handler case, after
8737 expanding, look again for a handler and invoke it. This is needed
8738 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8739 expansion produces "/user@host:/bar/../baz" which needs to be
8740 expanded again for the finame result "/user@host:/baz".
8741
b676f356
JD
87422003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8743
8744 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8745 of area to be redrawn for better performance.
8746
3c671a56
SM
87472003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8748
8749 * xterm.c (take_vertical_position_into_account): Remove.
8750 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8751 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8752 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8753 (x_set_toolkit_scroll_bar_thumb): Simplify.
8754 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8755 (XTread_socket): Remove unused var.
8756 (x_make_frame_invisible): Replace goto with else.
8757
8758 * xdisp.c (set_vertical_scroll_bar): New fun.
8759 (redisplay_window): Use it.
8760
84f2e615
RS
87612003-03-26 Richard M. Stallman <rms@gnu.org>
8762
8763 * xdisp.c (update_tool_bar): Recompute tool bar if
8764 update_mode_lines is set. Set w->update_mode_line
8765 only if the tool bar contents actually change.
8766 (update_menu_bar): Undo previous change.
8767
70b6104c
JD
87682003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8769
5fd6f727
JD
8770 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8771 (xg_frame_set_char_size): Calculate scroll bar width before frame
8772 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8773 (xg_separator_p): Check for all documented separator types.
8774 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8775 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8776
70b6104c
JD
8777 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8778 so tool bar gets updated.
8779
d9b36d19
SM
87802003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8781
8782 * data.c (store_symval_forwarding): Re-instate part of the code
8783 that was deleted with too much enthusiasm.
8784
87852003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8786
8787 * data.c (store_symval_forwarding): Delete special read-only
8788 hack for type == -1, since we now use ->constant instead.
8789 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8790
8791 * buffer.c (overlays_in): Declare static.
8792 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8793 `constant' field rather than the variable's `type' field.
8794
365fa1b3
AC
87952003-03-24 Andrew Choi <akochoi@shaw.ca>
8796
8797 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8798
8799 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8800
8801 * fns.c [MAC_OSX]: Do not redefine vector.
8802
8803 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8804
8805 * macgui.h: Remove definition of No_Cursor.
8806
d9b36d19 8807 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8808
8809 * xdisp.c: Define No_Cursor.
8810 (x_write_glyphs, notice_overwritten_cursor)
8811 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8812 (note_mouse_highlight): Remove Mac-specific code.
8813 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8814
c0bcce6f
JPW
88152003-03-24 John Paul Wallington <jpw@gnu.org>
8816
8817 * xdisp.c (redisplay_window): If mini window's buffer is not
8818 empty, then redisplay it like other windows.
8819
a526b96c
KS
88202003-03-23 Kim F. Storm <storm@cua.dk>
8821
8822 * w32term.c (w32_draw_window_cursor): Fix last change.
8823
37ab321e
KH
88242003-03-23 Kenichi Handa <handa@m17n.org>
8825
a526b96c
KS
8826 * alloc.c (make_string_from_bytes, make_specified_string):
8827 Add `const' for the arg CONTENTS.
37ab321e
KH
8828
8829 * lisp.h (make_string_from_bytes, make_specified_string):
8830 Prototypes adjusted.
8831
7863d625
JD
88322003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8833
a526b96c 8834 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8835
7863d625
JD
8836 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8837 (XG_SB_RANGE): New define.
8838
8839 * gtkutil.c (xg_fixed_handle_expose): New function.
8840 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8841 expose events.
8842 (xg_update_scrollbar_pos): Take two more arguments, left and width
8843 of scroll bar including borders.
8844 Clear left and right part outside scroll bar separately as some
8845 themes have bars that are not an even number of pixels.
d9b36d19 8846 Don't set reallocate_redraws, don't call
7863d625
JD
8847 gdk_window_process_all_updates.
8848 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8849 so no need to change it. Calculate size and value with XG_SB_RANGE.
8850
d9b36d19
SM
8851 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8852 Pass left and width of scroll bar including borders to
7863d625
JD
8853 xg_update_scrollbar_pos.
8854
af0ad939
TTN
88552003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8856
8857 * Makefile.in: Make sure space precedes end-of-line backslashes.
8858
b22139fd
KS
88592003-03-22 Kim F. Storm <storm@cua.dk>
8860
8861 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8862 Add generic versions here. Remove system specific versions
8863 defined elsewhere.
8864
8865 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8866 Add prototypes.
8867
6e6410cf
KS
8868 * xterm.h (STORE_NATIVE_RECT): New macro.
8869
5c9cc435
KS
88702003-03-21 Kim F. Storm <storm@cua.dk>
8871
00c64fab
SM
8872 * xdisp.c (get_glyph_string_clip_rect):
8873 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8874
8875 * dispextern.h (struct redisplay_interface): Add active_p
8876 argument to draw_window_cursor member. All uses changed.
8877
acd37560
KS
88782003-03-21 Kim F. Storm <storm@cua.dk>
8879
8880 The following changes consolidate code related to writing and
8881 inserting glyphs, exposing frame, the tool bar, the mouse face,
8882 the output cursor, and help echo from xterm.c, w32term.c and
8883 macterm.c into xdisp.c. It also generalizes the use of the
8884 window_part enum instead of using numeric values throughout.
af0ad939 8885
acd37560
KS
8886 * xdisp.c: Consolidate gui-independent code here.
8887 Include keymap.h.
8888 (Qhelp_echo): Import.
8889 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8890 (help_echo_string, help_echo_window, help_echo_object)
8891 (previous_help_echo_string, help_echo_pos): Declare here.
8892 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8893 (estimate_mode_line_height): Define here. Handle windowing
8894 systems directly (without using estimate_mode_line_height_hook).
8895 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8896 (update_window_cursor, update_cursor_in_window_tree)
8897 (fast_find_position, fast_find_string_pos)
8898 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8899 (expose_area, expose_line, expose_overlaps, expose_window)
8900 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8901 declared static as they are only used locally in xdisp.c.
8902 (draw_glyphs): Rename from x_draw_glyphs and make static.
8903 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8904 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8905 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8906 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8907 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8908 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8909 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8910 (note_mouse_highlight, x_clear_window_mouse_face)
8911 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8912 (x_intersect_rectangles): New generic functions for use by xdisp.c
8913 and GUI front-ends.
8914 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8915 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8916
8917 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8918 (NativeRectangle): Generic typedef for rectangle type.
8919 (enum window_part): Move here from window.c.
8920 (struct redisplay_interface): New members flush_display_optional,
8921 define_frame_cursor, clear_frame_area, draw_window_cursor,
8922 draw_vertical_window_border, shift_glyphs_for_insert.
8923 Rename member clear_mouse_face to clear_window_mouse_face.
8924 (estimate_mode_line_height_hook): Remove hook.
8925 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8926 (tool_bar_item_info): Remove prototype.
8927 (help_echo_string, help_echo_window, help_echo_object)
8928 (previous_help_echo_string, help_echo_pos)
8929 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8930 (x_stretch_cursor_p, output_cursor): Declare extern.
8931 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8932 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8933 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8934 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8935 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8936 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8937 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8938 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8939 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8940 Add prototypes.
8941 (mode_line_string, marginal_area_string): Fix prototypes.
8942
8943 * window.c (enum window_part): Move to dispextern.h.
8944 (coordinates_in_window): Use enum window_part member names
8945 instead of numbers to describe return value.
8946 (struct check_window_data): Change part member to window_part.
8947 (check_window_containing): Return window_part unaltered.
8948 (window_from_coordinates): Change part arg from int to enum
8949 window_part. Allow part arg to be null. All users changed.
8950
8951 * window.h (window_from_coordinates): Fix prototype.
8952
8953 * term.c (estimate_mode_line_height): Move to xdisp.c.
8954
8955 * keyboard.c (make_lispy_event): Use enum window_part.
8956
8957 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8958 window_part instead of int in arg list. Users changed.
8959
8960 * xterm.h (No_Cursor): Declare as None for X.
8961 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8962
acd37560
KS
8963 * xterm.c: Remove consolidated defines and code.
8964 (BETWEEN): Remove unused macro.
8965 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8966 (x_define_frame_cursor, x_clear_frame_area)
8967 (x_draw_window_cursor): New X-specific functions for RIF.
8968 (x_redisplay_interface): Add new members.
8969
8970 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8971
8972 * w32term.h (struct w32_output): Remove cross_cursor member.
8973
8974 * w32term.c: Remove consolidated defines and code.
8975 (BETWEEN): Remove unused macro.
8976 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8977 (w32_define_frame_cursor, w32_clear_frame_area)
8978 (w32_draw_window_cursor): New W32-specific functions for RIF.
8979 (w32_redisplay_interface): Add new members.
8980
a64387ee 8981 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8982 (XRectangle): Add X compatible rectangle type.
8983 (NativeRectangle): Declare as RECT for W32.
8984 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8985
8986 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8987
8988 * w32console.c: Remove consolidated defines and code.
af0ad939 8989
acd37560
KS
8990 * msdos.h (Display_Info): Add generic typedef.
8991
8992 * msdos.c: Remove consolidated defines and code.
8993 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8994
8995 * macterm.h (struct mac_output): Replace member cross_cursor by
8996 hand_cursor.
8997 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8998
8999 * macterm.c: Remove consolidated defines and code.
9000 (BETWEEN): Remove unused macro.
9001 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9002 (mac_define_frame_cursor, mac_clear_frame_area)
9003 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9004 (x_redisplay_interface): Add new members.
9005
9006 * macgui.h (No_Cursor): Define as 0 for Mac.
9007 (XRectangle): Add X compatible rectangle type.
9008 (NativeRectangle): Declare as Rect for Mac.
9009 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9010
204ccab1
KS
9011 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9012 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9013
9443fcf6 9014 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9015 included from it. Add dependency on keymap.h.
9016
9017 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9018
8ba01a70 90192003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9020
9021 * fileio.c (Fexpand_file_name): Fix previous change.
9022
8ba01a70 90232003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9024
9025 * fileio.c (Ffile_name_directory): Reconstruct file name by
9026 make_specified_string.
9027 (Ffile_name_nondirectory, Ffile_name_as_directory)
9028 (Fdirectory_file_name, Fexpand_file_name)
9029 (Fsubstitute_in_file_name): Likewise.
9030 (Fread_file_name): Compare decoded homedir with DIR and
9031 DEFAULT_FILENAME.
9032
9033 * alloc.c (make_specified_string): If NCHARS is negative, count
9034 the number of characters.
9035
19536747
JD
90362003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9037
de38ae5a
JD
9038 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9039 all widgets.
9040
19536747
JD
9041 * gtkutil.h: Removed xg_ignore_next_thumb.
9042
37ab321e 90432003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9044
9045 * coding.c (Vchar_coding_system_table): Remove this variable.
9046 (Vcoding_system_safe_chars): New variable.
9047 (intersection): Remove this function.
9048 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9049 all codings in SAFE_CODINGS.
00c64fab 9050 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9051 find_safe_codings. Get generic coding systems from
9052 Vcoding_system_safe_chars.
9053 (Fdefine_coding_system_internal): New function.
9054 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9055 Initialize and staticpro Vcoding_system_safe_chars.
9056
17097258
JD
90572003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9058
2a2071c3
JD
9059 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9060 equal old values before updating.
9061
17097258
JD
9062 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9063
9064 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9065
90662003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9067
9068 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9069 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9070 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9071 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9072 (xg_create_scroll_bar): Pass bar to button event callback.
9073 (xg_find_top_left_in_fixed): New function.
9074 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9075 whole scroll bar area. Get old position with
9076 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9077 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9078 dragging is in progress. Calculate whole as for Motif.
9079 Remove code that saved last values. Call gtk_range functions to
9080 set scroll bar sizes.
9081
9082 * gtkutil.h: Removed xg_ignore_next_thumb.
9083
8cb9dfbf
JB
90842003-03-17 Juanma Barranquero <lektu@terra.es>
9085
9086 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9087 and files included from it.
9088
00c64fab
SM
90892003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9090
9091 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9092 multiple occurrences of the same keymap under different prefixes.
9093 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9094
c45bb3b2
JR
90952003-03-16 Jason Rumney <jasonr@gnu.org>
9096
9097 * w32gui.h: Use HDC for Display.
9098
9099 * w32term.c (w32_encode_char): Prevent double-byte chars from
9100 crashing Emacs.
9101
9102 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9103 as binary.
9104
2a6d0874
JB
91052003-03-16 Juanma Barranquero <lektu@terra.es>
9106
9107 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9108
03eb5fab
KS
91092003-03-16 Kim F. Storm <storm@cua.dk>
9110
9111 The following changes consolidate some of the gui-independent
9112 parts of the processing and drawing of "glyph strings" from
9113 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9114
03eb5fab
KS
9115 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9116 21 bits (this reduces number of faces from 4M to 2M).
9117 Replace W32 specific w32_font_type member (2 bits) by generic
9118 font_type member (3 bits) for portability.
9119 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9120 (enum draw_glyphs_face): Define here.
9121 (struct glyph_string): Define here. Merge W32 and X versions.
9122 (struct redisplay_interface): New members per_char_metric,
9123 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9124 (VCENTER_BASELINE_OFFSET): Define here.
9125 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9126 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9127
9128 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9129 (dump_glyph_string): Moved here.
9130 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9131 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9132 (fill_composite_glyph_string, fill_glyph_string)
9133 (fill_image_glyph_string, fill_stretch_glyph_string)
9134 (left_overwritten, left_overwriting, right_overwritten)
9135 (right_overwriting, get_char_face_and_encoding)
9136 (set_glyph_string_background_width, compute_overhangs_and_x)
9137 (append_glyph, append_composite_glyph, produce_image_glyph)
9138 (take_vertical_position_into_account, append_stretch_glyph)
9139 (produce_stretch_glyph): New generic functions (based on X version).
9140 Call platform specific functions through rif.
9141 (INIT_GLYPH_STRING): New macro, hides W32 details.
9142 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9143 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9144 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9145 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9146 (notice_overwritten_cursor):
9147 Generic functions exported to platform modules. Users changed.
9148
9149 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9150 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9151 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9152 New macros for consolidated code.
2a6d0874 9153
03eb5fab
KS
9154 * xterm.c: Remove consolidated defines and code.
9155 (x_per_char_metric, x_encode_char)
9156 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9157 (x_redisplay_interface): Add new members.
9158
9159 * w32gui.h (Display): Add dummy typedef for consolidation.
9160 (XChar2b): Define alias for wchar_t for consolidation.
9161 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9162
9163 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9164 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9165 New macros for consolidation.
9166
fad49844 9167 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9168 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9169 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9170 (w32_per_char_metric): Change font_type arg to int for RIF.
9171 (w32_encode_char): Return int according to RIF requirements.
9172 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9173 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9174 x_get_glyph_overhangs.
9175 (w32_redisplay_interface): Add new members.
9176
9177 * macgui.h (XChar2b): Move typedef here for consolidation.
9178 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9179
9180 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9181 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9182 consolidation.
9183
9184 * macterm.c: Remove consolidated defines and code.
9185 (mac_per_char_metric): New function for RIF.
00c64fab 9186 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9187 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9188 (x_redisplay_interface): Add new members.
9189
00c64fab
SM
91902003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9191
9192 * keymap.c (Vmenu_events): New var.
9193 (syms_of_keymap): Initialize it.
9194 (where_is_internal): Check more carefully what is a menu event.
9195
225c7a07
RS
91962003-03-14 Richard M. Stallman <rms@gnu.org>
9197
9198 * lread.c (read1): After #!, exit loop on eof.
9199
cea9be54
JD
92002003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9201
9ea0e54d
JD
9202 * gtkutil.h: Add declaration for xg_frame_cleared.
9203
0cb35f4e
JD
9204 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9205
cea9be54
JD
9206 * gtkutil.c (struct xg_last_sb_pos): New structure.
9207 (handle_fixed_child): New function.
9208 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9209 and force a redraw on them.
9210 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9211 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9212 so we can avoid unneeded redraws.
9213 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9214 and force a redraw on the scroll bar.
9215 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9216 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9217 (xg_frame_cleared): New function.
cea9be54 9218
20b853f3
KH
92192003-03-13 Kenichi Handa <handa@m17n.org>
9220
9221 * coding.c (Fdetect_coding_region): Fix docstring.
9222 (Fdetect_coding_string): Fix docstring.
9223
7a555aff
AS
92242003-03-13 Andreas Schwab <schwab@suse.de>
9225
25cc0080
AS
9226 * gtkutil.c: Add prototype for create_menus.
9227
30225431
AS
9228 * data.c (long_to_cons): Fix type of top.
9229
9230 * xselect.c (selection_data_to_lisp_data): Use int instead of
9231 long for an integer of size 4.
9232
7a555aff 9233 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9234 (xg_tool_bar_help_callback): Likewise.
7a555aff 9235
a3e4741f
AS
92362003-03-12 Andreas Schwab <schwab@suse.de>
9237
9238 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9239
9668be7c
KS
92402003-03-12 Kim F. Storm <storm@cua.dk>
9241
03eb5fab 9242 The following changes consolidate the fringe handling from
9668be7c 9243 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9244
9668be7c
KS
9245 * xdisp.c: Consolidate fringe handling code here.
9246 (left_bits, right_bits, continued_bits, continuation_bits)
9247 (ov_bits, zv_bits): Define fringe bitmaps.
9248 (fringe_bitmaps): New array holding fringe bitmaps.
9249 (draw_fringe_bitmap): Draw a specific bitmap; call display
9250 specific drawing routine via rif->draw_fringe_bitmap.
9251 (draw_row_fringe_bitmaps): Generic replacement for
9252 x_draw_row_fringe_bitmaps; all callers changed.
9253 (compute_fringe_widths): Generic replacement for
9254 x_compute_fringe_widths; all callers changed.
9255
9256 * dispextern.h (enum fringe_bitmap_type): Define here.
9257 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9258 (fringe_bitmaps): Declare extern.
9259 (struct redisplay_interface): New member draw_fringe_bitmap.
9260 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9261
9262 * xterm.c: Remove generic fringe code.
9263 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9264 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9265
9266 * w32term.c: Remove generic fringe code.
9267 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9268 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9269
9668be7c
KS
9270 * macterm.c: Remove generic fringe code.
9271 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9272 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9273
00a88f32
SM
92742003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9275
9276 * print.c (Fprin1_to_string): Return unibyte string if possible.
9277
1d1de695
DK
92782003-03-09 David Kastrup <dak@gnu.org>
9279
9280 * process.c (read_process_output): We have allocated enough space
9281 for readmax and carryover, so actually use the alloted space.
9282
257f40f2
JD
92832003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9284
9285 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9286 toolkit scrollbar click.
9287
9288 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9289 for USE_GTK.
9290 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9291 also.
9292 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9293 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9294
78819ebb 9295 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9296
9297 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9298 (xg_tool_bar_item_expose_callback): New function.
9299 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9300 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9301 on the tool bar widget.
9302 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9303 to expose on the tool bar item widgets.
9304
15213141
JD
93052003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9306
26b74a0b 9307 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9308 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9309 deleted from the image cache).
9310
15213141
JD
9311 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9312 the event isn't for a frame (i.e. for dialogs).
9313
20b853f3 93142003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9315
9316 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9317 composition components reaches the limit, terminate composing.
9318 (COMPOSITION_OK): New macro.
00a88f32 9319 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9320 composition is found.
9321 (coding_restore_composition): Adjust the number of composition
9322 components if it is not sane.
9323
c9029fe5
JB
93242003-03-06 Juanma Barranquero <lektu@terra.es>
9325
9326 * w32term.h (struct w32_display_info): Add xrdb member to support
9327 passing resources via -xrm on Windows.
9328
9329 * w32term.c (w32_make_rdb): New function.
9330 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9331 struct. Delete leftover code.
9332
9333 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9334 for resources passed on the command line.
9335
9336 * w32reg.c (w32_get_rdb_resource): New function.
9337 (x_get_string_resource): Use it, so resources passed with -xrm
9338 supercede the ones in the registry.
9339
9d00001f
JD
93402003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9341
9342 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9343 instead of x_top_window_to_frame.
9344
ca2417b9
JD
93452003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9346
9347 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9348 when restarting Emacs.
9349
5b20caf0
RS
93502003-03-03 Richard M. Stallman <rms@gnu.org>
9351
9352 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9353 to run kill-buffer-query-functions.
9354 (Qkill_buffer_query_functions): New var.
9355 (syms_of_buffer): Init and staticpro it.
9356
58e91b77
JD
93572003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9358
9359 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9360
932357b4
KS
93612003-02-25 Kim F. Storm <storm@cua.dk>
9362
9363 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9364 If centering point failed to make whole line visible and vscroll
9365 is non-zero, disable vscroll and try centering point again.
9366
9367 * lread.c (read1): Accept `single space' syntax like (? x).
9368
bb8db7e1
JD
93692003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9370
9371 * keyboard.c (cancel_hourglass_unwind): Surround with
9372 #ifdef HAVE_X_WINDOWS
9373
47d77aab
KH
93742003-02-25 Kenichi Handa <handa@m17n.org>
9375
9376 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9377 process only when "subprocesses" is defined.
9378
6a097c0c
SM
93792003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9380
9381 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9382
0b063c27
JB
93832003-02-24 Juanma Barranquero <lektu@terra.es>
9384
d1135afc
JB
9385 * callint.c (fix_command): Declare as static void and move before
9386 Fcall_interactively.
9387
0b063c27
JB
9388 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9389 (syms_of_xdisp): Don't initialize Qwhen.
9390
0af912f0
JD
93912003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9392
9393 * keyboard.c (cancel_hourglass_unwind): New function.
9394 (command_loop_1): Cancel hourglass with unwind-protect.
9395
120d0a23
RS
93962003-02-23 Richard M. Stallman <rms@gnu.org>
9397
9398 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9399 Detect (when ... (region-beginning)) etc.
9400 (Fcall_interactively): Call fix_command.
9401 (Qif, Qwhen): New variables.
9402 (syms_of_callint): Init and staticpro them.
0b063c27 9403
120d0a23
RS
9404 * regex.c (print_partial_compiled_pattern): Output to stderr.
9405
4ece81a6
KG
94062003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9407
9408 * dired.c (directory_files_internal): Don't expand directory.
9409 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9410 instead. From Lars Hansen <larsh@math.ku.dk>.
9411
e52bd6b7
SM
94122003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9413
9414 * fns.c (string_to_multibyte): Remove unused var i.
9415 (Flanginfo): Fix int/Lisp_Object mixup.
9416 (void_call2): New fun.
9417 (Fmap_char_table): Use it in place of call2.
9418
9419 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9420
9421 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9422
9423 * keymap.c (copy_keymap_1): Make it static.
9424
9425 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9426
c33ef7c4
JB
94272003-02-22 David Ponce <david@dponce.com>
9428
9429 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9430
16782258
JD
94312003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9432
9433 * process.h: Removed subtty field from struct Lisp_Process.
9434
9435 * process.c (create_process): Remove setting of subtty.
9436 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9437 (Fprocess_running_child_p, process_send_signal):
9438 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9439 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9440
3abeca61
KG
94412003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9442
9443 * keymap.c (Fdefine_key): Doc fix.
9444
92a8ce63
JB
94452003-02-21 Juanma Barranquero <lektu@terra.es>
9446
9447 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9448
9449 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9450 POLLING_PROBLEM_IN_SELECT.
9451
9452 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9453 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9454
9455 * s/hpux10-20.h: New file.
9456
e52bd6b7
SM
9457 * process.c (wait_reading_process_input):
9458 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9459
20f1ef2e
KH
94602003-02-20 Kenichi Handa <handa@m17n.org>
9461
32d0a9dc
KH
9462 * fontset.c (check_fontset_name): If NAME is nil, return the
9463 default fontset.
9464 (override_font_info): New function.
e52bd6b7 9465 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9466 (Ffontset_info): If FONTSET is not the default fontset, merge
9467 FONTSET onto the copy of the default fontset, and work on that
9468 copy. Document that NAME nil means the default fontset.
9469 (Ffontset_font): Document that NAME nil means the default fontset.
9470
20f1ef2e
KH
9471 * process.c (setup_process_coding_systems): If the process's
9472 in/out descriptor is -1, do nothing.
9473
77d1daf2
AS
94742003-02-19 Andreas Schwab <schwab@suse.de>
9475
e52bd6b7
SM
9476 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9477 Add prototypes.
77d1daf2 9478
f9a45bb3
KH
94792003-02-19 Kenichi Handa <handa@m17n.org>
9480
9481 * xfaces.c (try_alternative_families): Try all scalable fonts if
9482 Vscalable_fonts_allowed is not Qt.
9483
72ecb43c
JD
94842003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9485
9486 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9487
ee5be7c3
JD
94882003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9489
9490 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9491 names.
9492
9493 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9494 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9495 x_face_list_fonts.
9496 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9497 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9498
4cd519a7
KS
94992003-02-18 Kim F. Storm <storm@cua.dk>
9500
068f9882
KS
9501 * lread.c (read1): Fix last change.
9502 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9503
7290a344
AC
95042003-02-18 Andrew Choi <akochoi@shaw.ca>
9505
9506 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9507
1f7fa69b
AS
95082003-02-18 Andreas Schwab <schwab@suse.de>
9509
9510 * window.c (window_scroll_pixel_based): Move outside a
9511 multi-glyph character before setting new window start.
9512
9513 * xdisp.c (in_display_vector_p): New function.
9514 * dispextern.h (in_display_vector_p): Declare.
9515
23e21195
KS
95162003-02-18 Kim F. Storm <storm@cua.dk>
9517
9518 * lread.c (read1): Fix and relax read syntax.
9519 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9520 Only recognize "," after dotted-pair dot if inside backquote.
9521 Never include "`" or "," (inside backquote) in a symbol.
9522 Allow dotted-pair dot after a character constant.
9523 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9524
f098b121
JD
95252003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9526
9527 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9528 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9529 icons. Set name of tool bar to emacs-toolbar.
9530 (update_frame_tool_bar): Connect expose event to
9531 xg_tool_bar_expose_callback.
9532
63020c46
RS
95332003-02-17 Richard M. Stallman <rms@gnu.org>
9534
9535 * keyboard.c (this_command_key_count_reset): New variable.
9536 Initiatize to 0 where this_command_key_count is set.
9537 (read_char): Save and restore this_command_key_count_reset
9538 around input method code.
9539 (read_char): If this_command_key_count_reset, echo reread commands.
9540 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9541
fb4452cc
KH
95422003-02-17 Kenichi Handa <handa@m17n.org>
9543
9544 * fns.c (string_to_multibyte): Always return a multibyte string.
9545
bd11cc09
JR
95462003-02-16 Jason Rumney <jasonr@gnu.org>
9547
e52bd6b7
SM
9548 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9549 Negative max_fonts parameter means list all.
bd11cc09 9550
4cdf4bde
DL
95512003-02-14 Dave Love <fx@gnu.org>
9552
9553 * fns.c (Flanginfo): Doc fix.
9554
023b93f6
KS
95552003-02-13 Kim F. Storm <storm@cua.dk>
9556
37cd4238
KS
9557 * lread.c (read_escape): Interpret \s as a SPACE character, except
9558 for \s-X in a character constant which still is the super modifier.
9559 (read1): Signal an `invalid read syntax' error if a character
9560 constant is immediately followed by a digit or symbol character.
9561
140a6b7e
KS
9562 * search.c (Fmatch_data): Doc fix. Explicitly state that
9563 match-data is undefined if last search failed.
9564
023b93f6
KS
9565 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9566 All uses changed.
9567
7d5c86e5
JB
95682003-02-12 Juanma Barranquero <lektu@terra.es>
9569
9570 * eval.c (Fdefmacro): Fix typo.
9571
295fff2c
KS
95722003-02-12 Kim F. Storm <storm@cua.dk>
9573
9574 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9575 macro is a string, convert meta modifiers in string when copying
9576 the string into a vector.
9577
60f3202d
KS
95782003-02-11 Kim F. Storm <storm@cua.dk>
9579
9580 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9581
61cb0b53
KH
95822003-02-11 Kenichi Handa <handa@m17n.org>
9583
9584 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9585
7392e23c
KS
95862003-02-10 Kim F. Storm <storm@cua.dk>
9587
9588 * process.c: Doc fixes.
9589 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9590
ce4254bd
KH
95912003-02-10 Kenichi Handa <handa@m17n.org>
9592
9c7a329a
KH
9593 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9594
ce4254bd
KH
9595 * process.c (QCfilter_multibyte): New variable.
9596 (setup_process_coding_systems): New function.
e52bd6b7
SM
9597 (Fset_process_buffer, Fset_process_filter):
9598 Call setup_process_coding_systems.
ce4254bd
KH
9599 (Fstart_process): Initialize the member `filter_multibyte' of
9600 struct Lisp_Process.
9601 (create_process): Call setup_process_coding_systems.
9602 (Fmake_network_process): New keyward `:filter-multibyte'.
9603 Initialize the member `filter_multibyte' of struct Lisp_Process.
9604 Call setup_process_coding_systems.
9605 (server_accept_connection): Call setup_process_coding_systems.
9606 (read_process_output): If the process has a filter, decide the
9607 multibyteness of a string to given to the filter by
9608 `filter_multibyte' member of the process. If the process doesn't
9609 have a filter and the result of conversion is unibyte, use
9610 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9611 multibyte form.
9612 (Fset_process_coding_system): Call setup_process_coding_systems.
9613 (Fset_process_filter_multibyte): New function.
9614 (Fprocess_filter_multibyte_p): New function.
9615 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9616 Defsubr Sset_process_filter_multibyte and
9617 Sprocess_filter_multibyte_p.
9618
9619 * process.h (struct Lisp_Process): New member filter_multibyte.
9620
9621 * lisp.h (setup_process_coding_systems): Add prototype.
9622
9623 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9624 process, update coding systems for the process.
9625
b08d5f59
KH
96262003-02-09 Kenichi Handa <handa@m17n.org>
9627
9628 * fns.c (string_to_multibyte): New function.
9629 (Fstring_to_multibyte): New function.
9630 (syms_of_fns): Defsubr it.
9631
0dfd93c0
AS
96322003-02-08 Andreas Schwab <schwab@suse.de>
9633
9634 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9635 instead of the substitution.
9636
7b76ca1c
JD
96372003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9638
9639 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9640
9641 * xmenu.c (menu_position_func): Adjust menu popup position so that
9642 the menu is fully visible.
7b76ca1c 9643
2436a4e4
JD
96442003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9645
9646 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9647 (x_make_frame_invisible, x_wm_set_icon_position):
9648 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9649
9650 * xfns.c (x_set_name, x_set_title): Ditto.
9651
37d1e680
RS
96522003-02-04 Richard M. Stallman <rms@gnu.org>
9653
9654 * keyboard.c (echo_now): Update before_command_echo_length.
9655 (Freset_this_command_lengths): Reset this_command_key_count etc.
9656 immediately rather than arranging to do it later.
9657 (before_command_key_count_1, before_command_echo_length_1)
9658 (before_command_restore_flag): Vars deleted.
9659 (add_command_key): Don't handle before_command_restore_flag.
9660 (read_char, record_menu_key): Don't update before_command_key_count or
9661 before_command_echo_length.
9662 (read_char): Don't handle before_command_restore_flag.
9663
9664 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9665 in direct-output clauses if it wouldn't be called in the ordinary case.
9666
578846a3
KS
96672003-02-04 Kim F. Storm <storm@cua.dk>
9668
9669 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9670
49853a4d
JD
96712003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9672
9673 * gtkutil.c (remove_from_container): Copying list is not needed.
9674 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9675 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9676 on list returned from gtk_container_get_children to avoid memory leak.
9677
8b53dc06
JR
96782003-02-01 Jason Rumney <jasonr@gnu.org>
9679
5d54d177
JR
9680 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9681 local malloc.
9682 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9683 definitions in xpm.h.
9684 (init_xpm_functions): New function.
f63fd14e 9685 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9686 (init_external_image_libraries): Try to load libXpm.dll.
9687
8b53dc06
JR
9688 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9689 timestamp.
9690
b222e415
DL
96912003-01-31 Dave Love <fx@gnu.org>
9692
9693 * syntax.c (Fskip_chars_forward)
9694 (open-paren-in-column-0-is-defun-start): Doc fix.
9695
c60ee5e7
JB
96962003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9697
9698 * fileio.c: Support // at start of name for Cygwin (just added proper
9699 preprocessor tests).
9700
9701 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9702
9703 * Makefile.in: Use @EXEEXT@ for Cygwin.
9704
9705 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9706
9707 * s/cygwin.h: Added for Cygwin port.
9708
53b37591
JB
97092003-01-31 Juanma Barranquero <lektu@terra.es>
9710
9711 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9712 when including gif_lib.h.
fe929957 9713 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9714 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9715 Windows. Disable color table lookups. Call library functions
53b37591 9716 through pointers determined at runtime.
fe929957
JB
9717 (init_external_image_libraries): Try to load libungif.dll and
9718 libtiff.dll.
53b37591 9719
45415a8f
KH
97202003-01-31 Kenichi Handa <handa@m17n.org>
9721
9722 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9723 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9724
a97e4138
JD
97252003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9726
e52bd6b7 9727 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9728
6eed9bed
DL
97292003-01-30 Dave Love <fx@gnu.org>
9730
9731 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9732 (Fgarbage_collect): Use them.
9733 (init_alloc, syms_of_alloc): Set them up.
9734
100dcd40
JB
97352003-01-30 Juanma Barranquero <lektu@terra.es>
9736
9737 * w32fns.c (init_external_image_libraries): Add missing operator.
9738
fbd852af
JR
97392003-01-29 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9742 an alternative name for jpeg.dll.
9743
8a2d8020
KH
97442003-01-29 Kenichi Handa <handa@m17n.org>
9745
9746 * xdisp.c (set_cursor_from_row): Pay attention to string display
9747 properties.
9748
058c18c7
AC
97492003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9750
9751 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9752 <escape>.
9753 (keycode_to_xkeysym_table): Reformat and add more comments.
9754 (XTread_socket): Drop special case for backspace.
9755
385f11cf
AC
97562003-01-28 Andrew Choi <akochoi@shaw.ca>
9757
9758 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9759 values in old-style RGB specs.
9760
c922a224
JB
97612003-01-27 Juanma Barranquero <lektu@terra.es>
9762
9763 * w32fns.c (init_external_image_libraries): Try alternate names for the
9764 jpeg dll.
9765
0a1d6de0
JD
97662003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9767
9768 * gtkutil.c (create_dialog, xg_separator_p)
9769 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9770 before calling strcmp or strlen.
9771
a97e4138 97722003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9773
9774 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9775 and handle image load failure.
9776
28908312
JR
97772003-01-26 Jason Rumney <jasonr@gnu.org>
9778
9779 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9780 New functions.
f63fd14e
JB
9781 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9782 Disable color table lookups. Call jpeg library functions
28908312
JR
9783 through pointers determined at runtime.
9784 (init_external_image_libraries): Try to load jpeg.dll.
9785
84e47416
RS
97862003-01-25 Richard M. Stallman <rms@gnu.org>
9787
9788 * lisp.h: Declare format2 instead of format1.
9789
9790 * fileio.c (barf_or_query_if_file_exists):
9791 Call format2 instead of format1.
9792
9793 * editfns.c (format2): New function, replaces format1
9794 but takes exactly two Lisp Objects as format args.
9795
9796 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9797
a97e4138 97982003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9799
9800 * xterm.h: Change to return value of x_dispatch_event to int.
9801
9802 * xterm.c (x_filter_event): New function.
9803 (event_handler_gdk, XTread_socket): Call x_filter_event.
9804 (x_dispatch_event): Change to return value of finish.
9805 (event_handler_gdk): Use return value from x_dispatch_event.
9806
9807 * xfns.c (x_window): Call create_frame_xic for GTK version to
9808 initialize input methods.
9809
9810 * gtkutil.h: Add (void) prototypes.
9811
9812 * gtkutil.c (create_menus): Remove code that puts the help menu to
9813 the right.
9814
54eefef1
JR
98152003-01-25 Jason Rumney <jasonr@gnu.org>
9816
9817 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9818 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9819 (png_load): Adjust colors for Windows. Use Windows
9820 bitmaps. Disable color table lookups.
c262430d
JR
9821 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9822 (init_png_functions): New function.
9823 (png_read_from_memory, png_load): Call png library functions
9824 through pointers determined at runtime.
9825 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9826 (init_external_image_libraries): New function.
9827 (init_xfns): Call it.
54eefef1 9828
1a9e275b
AS
98292003-01-24 Andreas Schwab <schwab@suse.de>
9830
9831 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9832
a97e4138 98332003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9834
9835 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9836 of static initializer.
9837
422eec7e
DL
98382003-01-24 Dave Love <fx@gnu.org>
9839
9840 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9841 architectures.
9842
9843 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9844 Use __alignof__.
9845
2a026b04
KH
98462003-01-24 Kenichi Handa <handa@m17n.org>
9847
9848 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9849 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9850 (command_loop_1): Call adjust_point_for_property with proper
9851 second arg.
9852
a18bb28d
JR
98532003-01-22 Jason Rumney <jasonr@gnu.org>
9854
9855 Sync changes with xterm.c and xfns.c.
9856
9857 * w32term.c (x_draw_glyph_string_foreground)
9858 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9859
9860 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9861 phys_cursor's hpos is overwritten. This is still not completely
9862 correct, as it doesn't really make sense to use hpos at all to
9863 get the cursor glyph (as that is relative to the width of the
9864 characters on the line, which may have changed during the update).
9865
9866 * w32term.c (notice_overwritten_cursor): Handle the special case
9867 of the cursor being in the first blank non-text line at the
9868 end of a window.
9869
9870 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9871 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9872 Compute from the x position returned by x_draw_glyphs.
9873
9874 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9875 except for NO_CURSOR and system caret, to make phys_cursor_width
9876 contain what its name suggests.
9877 (notice_overwritten_cursor): Consider the cursor image erased if
9878 the output area intersects the cursor image in y-direction.
9879
6a097c0c
SM
9880 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9881 note_mode_line_highlight and extend.
a18bb28d
JR
9882
9883 * w32term.c (last_window): New variable.
9884 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9885 (note_mouse_movement): Remove reimplemented code in #if 0.
9886
9887 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9888 not update_mode_lines, and always set it to 1.
9889
ac6e47ef
JR
98902003-01-21 Jason Rumney <jasonr@gnu.org>
9891
9892 * w32fns.c (IDC_HAND): Define it if system headers don't.
9893
98942003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9895
9896 * w32term.h (struct w32_output): New member hand_cursor.
9897 (WM_EMACS_SETCURSOR): New message definition.
9898
9899 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9900 function w32_define_cursor.
9901 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9902 position, change member name output_data.x to output_data.w32 and
9903 add function w32_define_cursor.
9904 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9905 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9906 (w32_initialize_display_info):
9907 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9908
9909 * w32fns.c (Vx_hand_shape): New variable.
9910 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9911 WM_EMACS_SETCURSOR.
9912 (x-create-frame): Setup Cursor types.
9913
ceb39a17
JB
99142003-01-21 David Ponce <david@dponce.com>
9915
ac6e47ef 9916 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9917 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9918 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9919 2002-09-30.)
ac6e47ef
JR
9920 (w32_draw_relief_rect): Declare all args.
9921 (w32_define_cursor): New.
9922
9923 * w32fns.c (w32_load_cursor): New function.
9924 (w32_init_class): Use it.
9925 (x_put_x_image): Declare all args.
9926
b6189c3b 99272003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9928
9929 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9930
a97e4138 99312003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9932
9933 * gtkutil.c: Must include stdio.h before termhooks.h
9934
83fc9c63
DL
99352003-01-21 Dave Love <fx@gnu.org>
9936
9937 * alloc.c (Fgc_status): Print zombie list.
9938 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9939 Fix assignment of zombies.
9940 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9941 Don't take car of non-cons.
9942
9943 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9944
9945 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9946
fe04b8c8
JR
99472003-01-20 David Ponce <david@dponce.com>
9948
9949 * w32menu.c (digest_single_submenu): Declare all args.
9950
9951 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9952 changes in xmenu.c:
9953
9954 (parse_single_submenu): Use individual keymap's prompt
9955 string as pane name, if there is one.
9956 (set_frame_menubar): Save menu_items_n_panes from each call to
9957 parse_single_submenu and use it when calling digest_single_submenu.
9958
539e69a9
ST
99592003-01-20 Steven Tamm <steventamm@mac.com>
9960
9961 * macterm.c (XTread_socket): Checks for valid, visible window
9962 before sending a scroll-wheel event.
9963
675d000f
RS
99642003-01-20 Richard M. Stallman <rms@gnu.org>
9965
9966 * xdisp.c (redisplay_window): If mini window's buffer is not
9967 a minibuffer, then redisplay it like other windows.
9968
a97e4138 99692003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9970
9971 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9972 external tool bar before setting tool bar height.
9973
048addec
JD
99742003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9975
9976 * xterm.c (handle_one_xevent): Surround popup_activated
9977 with #ifdef:s for non-toolkit version.
9978
9979 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9980 (gtkutil.o): New file.
9981 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9982 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9983
9984 * gtkutil.c: New file for GTK version.
9985
9986 * gtkutil.h: New file for GTK version.
9987
9988 * xterm.h: Add xt_or_gtk_widget.
9989 Include gtk files for USE_GTK.
9990 (struct x_output): Add toolbar_height.
9991 (struct x_output): Add GTK widgets and Gdk size_hints.
9992 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9993 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9994 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9995
9996 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9997 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9998 (note_mouse_highlight): Check popup_activated for USE_GTK.
9999 (xt_action_hook): Don't compile if USE_GTK.
10000 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10001 (xg_scroll_callback): New function.
10002 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10003 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10004 for USE_GTK.
10005 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10006 xg_show_scroll_bar for USE_GTK.
10007 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10008 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10009 (event_handler_gdk): New function for USE_GTK.
10010 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10011 (handle_one_xevent): Make sure widget is mapped before
10012 calling x_real_positions for USE_GTK.
10013 (XTread_socket): Add GTK event loop for USE_GTK.
10014 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10015 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10016 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10017 (x_iconify_frame): Add code for USE_GTK.
10018 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10019 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10020 is in gtkutil.c.
10021 (x_term_init): Add initialization for GTK.
10022 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10023
10024 * xmenu.c: Include gtkutil.h for USE_GTK.
10025 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10026 (single_menu_item, single_menu_item, Fx_popup_dialog):
10027 Check for USE_GTK.
048addec
JD
10028 (popup_widget_loop): New function for USE_GTK.
10029 (x_activate_menubar): Add code for USE_GTK.
10030 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10031 (menu_highlight_callback, menubar_selection_callback):
10032 Add USE_GTK versions.
048addec
JD
10033 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10034 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10035 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10036 is in gtkutil.c.
10037 (popup_selection_callback): New version for USE_GTK.
10038 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10039 one USE_X_TOOLKIT version.
048addec
JD
10040 (xmenu_show): Call create_and_show_popup_menu.
10041 (dialog_selection_callback): New version for USE_GTK.
10042 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10043 one USE_X_TOOLKIT version.
048addec
JD
10044 (xdialog_show): Call create_and_show_dialog.
10045
10046 * xfns.c: Include gtkutil for USE_GTK.
10047 (x_window_to_frame, x_any_window_to_frame)
10048 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10049 (x_top_window_to_frame): Add code for USE_GTK.
10050 (x_set_background_color): Call xg_set_background_color for GTK.
10051 (x_set_menu_bar_lines): Check for USE_GTK.
10052 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10053 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10054 (x_window): Call xg_create_frame_widgets for USE_GTK.
10055 (Fx_create_frame): Check for USE_GTK
10056 (Fx_file_dialog): New implementation for USE_GTK.
10057
10058 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10059 (update_menu_bar): Add check for USE_GTK.
10060 (update_tool_bar): Add check for USE_GTK and external tool bar.
10061 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10062 (redisplay_internal): Add check for USE_GTK and popup_activated.
10063 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10064 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10065 (display_menu_bar): Add check for USE_GTK
10066
78819ebb 10067 * lisp.h (Vx_resource_name): Declare extern.
048addec 10068
a64387ee 10069 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10070 for USE_GTK.
10071 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10072
10073 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10074 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10075 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10076
10077 * fileio.c (Fread_file_name): Add check for USE_GTK.
10078
6bdb309a
SM
10079 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10080 Add check for USE_GTK.
048addec
JD
10081
10082 * config.in: Added HAVE_GTK
10083
10084 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10085
100862003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10087
10088 * charset.h (Funibyte_char_to_multibyte): Export.
10089
100902003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10091
10092 * xmenu.c (mouse_position_for_popup): New function.
10093 (Fx_popup_menu): Call mouse_position_for_popup for X and
10094 mouse_position_hook for others.
10095
100962003-01-17 Kim F. Storm <storm@cua.dk>
10097
10098 * editfns.c (Finsert): Mention `string-make-multibyte' and
10099 `string-as-multibyte' in doc string.
10100
101012003-01-17 Kenichi Handa <handa@m17n.org>
10102
10103 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10104
048addec
JD
10105 * editfns.c (Fformat): Convert an unibyte char argument that is
10106 formatted by "%c" to multibyte if the total result must be a
10107 multibyte string.
cd7df9c0 10108
048addec 101092003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10110
048addec
JD
10111 * process.c (set-process-filter): Document unibyte/multibyte-ness
10112 of string argument.
56210ecd 10113
048addec 101142003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10115
048addec 10116 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10117
048addec
JD
10118 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10119 (re_search_2): Likewise.
6df8b9fe 10120
048addec 101212003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10122
048addec
JD
10123 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10124 buffer is unibyte.
292ddc31 10125
048addec 101262003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10127
048addec 10128 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10129
048addec
JD
10130 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10131 (Fprevious_char_property_change)
10132 (Fnext_single_char_property_change)
10133 (Fprevious_single_char_property_change, Fnext_property_change)
10134 (Fnext_single_property_change, Fprevious_property_change)
10135 (Fprevious_single_property_change, Fadd_text_properties)
10136 (Fput_text_property, Fset_text_properties)
10137 (Fremove_text_properties, Fremove_list_of_text_properties)
10138 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10139
048addec 101402003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10141
048addec
JD
10142 * process.h (struct Lisp_Process): New member plist replaces old
10143 member private_vars. All uses changed.
63e4e4c6 10144
048addec 10145 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10146 (QCplist): Rename from QCvars. Change all uses.
048addec 10147 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10148 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10149 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10150 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10151
048addec 101522003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10153
6bdb309a 10154 * m/delta.h: Remove (obsolete).
e833850f 10155
048addec 101562003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10157
048addec
JD
10158 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10159 behaviour in front of symlinks.
10160 (Fdelete_file): Raise an error on directories.
817cb127 10161
048addec 101622003-01-13 Dave Love <fx@gnu.org>
817cb127 10163
048addec 10164 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10165
048addec 101662003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10167
048addec
JD
10168 * minibuf.c (minibuffer_completion_contents):
10169 Error if point is inside prompt.
3e8cf2ea 10170
048addec
JD
10171 * keyboard.c (command_loop_1): Don't redisplay directly
10172 if there's a post-command-hook.
3e8cf2ea 10173
048addec
JD
10174 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10175 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10176
048addec 101772003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10178
048addec 10179 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10180
048addec
JD
10181 * process.c (QCvars): New variable.
10182 (syms_of_process): Intern and staticpro it.
10183 (Fset_process_contact): Removed function.
10184 (Fprocess_variable, Fset_process_variable): New functions.
10185 (syms_of_process): Defsubr them.
10186 (Fstart_process): Initialize private_vars plist to nil.
10187 (Fmake_network_process): New arg :vars to setup the private
10188 variables for new network process.
10189 (server_accept_connection): Copy server's private variables to
10190 client process.
2c10f029 10191
048addec
JD
10192 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10193 crashes). Code rewritten and simplified. Now directly aligns the
10194 pointer and recalculates pure_bytes_used, rather than aligning the
10195 size and adjusting the pointer.
b8a76c6c 10196
048addec 101972003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10198
048addec
JD
10199 * process.c (Fset_process_contact): New function.
10200 (syms_of_process): defsubr it.
10201 (make-network-process): Update doc.
3a8d0899 10202
048addec 102032003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10204
048addec
JD
10205 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10206 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10207
048addec 102082003-01-10 Dave Love <fx@gnu.org>
4abc7470 10209
048addec 10210 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10211
048addec 102122003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10213
048addec
JD
10214 * process.c (Fmake_network_process): Convert new port number
10215 to host byte order for `:service t' case. From Mario Lang.
bf338245 10216
048addec 102172003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10218
048addec
JD
10219 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10220 instead of XtAppProcessEvent.
bf338245 10221
048addec
JD
10222 * xterm.c (handle_one_xevent): New function.
10223 (x_dispatch_event): New function.
10224 (XTread_socket): Call handle_one_xevent.
bf338245 10225
048addec 10226 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10227
048addec
JD
10228 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10229 call XQueryPointer to get coordinates.
10230 (popup_get_selection): Do not set popup_activated_flag to zero,
10231 let popup_deactivate_callback do that. Needed for Motif.
10232 Call x_dispatch_event instead of XtDispatchEvent.
10233 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10234
048addec 102352003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10236
6bdb309a 10237 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10238 connection's local address in :local property of contact info.
10239 (Fmake_network_process): Record local network address for new
10240 client processes in :local property of contact info.
6bdb309a 10241 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10242
048addec 102432003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10244
048addec 10245 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10246
048addec 102472003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10248
048addec 10249 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10250
048addec
JD
10251 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10252 use the same test as for custom-variable-p.
8c6d74c6 10253
048addec 102542003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10255
048addec
JD
10256 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10257 Count LAST_LINE_MISFIT in scroll margin for end of window.
10258 Move label too_near_end before setting SCROLL_MARGIN_POS.
10259 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10260
048addec
JD
10261 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10262 scroll_conservatively case. If scrolling that much doesn't change
10263 STARTP, move it down one line.
e833850f 10264
048addec
JD
10265 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10266 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10267
048addec
JD
10268 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10269 selected frame.
8c6d74c6 10270
048addec
JD
10271 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10272 (syms_of_keymap): staticpro them.
10273 (Fapropos_internal): Initialize them and clear them out.
10274 Don't GCPRO them.
8c6d74c6 10275
048addec
JD
10276 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10277 Doc fixes.
8c6d74c6 10278
048addec
JD
10279 * lisp.h: New misc type Lisp_Save_Value.
10280 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10281 (XSAVE_VALUE): New macro.
10282 (struct Lisp_Save_Value): New data type.
10283 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10284 (make_save_value): Declare.
8c6d74c6 10285
048addec 10286 * alloc.c (make_save_value): New function.
8c6d74c6 10287
048addec
JD
10288 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10289 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10290
048addec 102912003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10292
048addec 10293 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10294
048addec
JD
10295 * keyboard.c (command_loop_1): Call adjust_point_for_property
10296 in direct action cases for Qforward_char and Qbackward_char.
10297 Set already_adjusted so it won't be done twice.
8c6d74c6 10298
b6189c3b 102992002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10300
048addec
JD
10301 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10302 type definition of size_t.
8c609cff 10303
048addec 103042003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10305
048addec
JD
10306 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10307 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10308
048addec 103092002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10310
048addec
JD
10311 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10312 to default to t.
fa634a5e 10313
048addec 103142002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10315
048addec 10316 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10317
048addec 103182002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10319
048addec
JD
10320 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10321 allow building in a different directory than source. Uses some
10322 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10323
048addec 103242002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10325
048addec
JD
10326 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10327 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10328 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10329 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10330
048addec 103312002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10332
048addec
JD
10333 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10334 <scroll-down-aggressively>: Doc fix.
2155ecf3 10335
048addec
JD
10336 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10337 string as pane name, if there is one.
10338 (set_frame_menubar): Save menu_items_n_panes from each call to
10339 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10340
048addec
JD
10341 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10342 Don't try to make last line fully visible if it is past end of window.
61f1d295 10343
048addec 103442002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10345
048addec
JD
10346 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10347 (mac_menu_show): Add support for hierarchical popup menus.
10348 (add_menu_item): Remove indentation support.
10349 (fill_submenu, fill_menu): Create hierarchical menus
10350 instead of using indentation.
0b17a217 10351
048addec 103522002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10353
048addec
JD
10354 * xdisp.c (try_cursor_movement): Don't call try_window here.
10355 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10356
048addec 10357 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10358
048addec 103592002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10360
048addec
JD
10361 * macterm.c (XTread_socket): Call KeyTranslate for control and
10362 meta to deal correctly shifted non-alpha characters, like C-S-5
10363 being treated like C-%. Does not look for shift key to deal
10364 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10365
048addec 103662002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10367
048addec
JD
10368 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10369 If it is non-nil, run timers. Use an unwind-protect to requeue
10370 the events that were read ahead.
10371 (popup_get_selection_unwind): New subroutine.
10372 (popup_get_selection_queue): File-scope variable now holds that queue.
10373 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10374 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10375 Use an unwind-protect to pop down the dialog box.
10376 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10377
048addec
JD
10378 * xdisp.c (row_containing_pos): Change exit test using last_y.
10379 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10380
048addec
JD
10381 * lread.c (load_error_handler): New function.
10382 (Fload): Handle errors in Fsubstitute_in_file_name.
10383 Don't expect Fsignal to return.
f02cac82 10384
048addec
JD
10385 * eval.c: Errors and throws work right with interrupt blocking.
10386 (struct catchtag): New elt interrupt_input_blocked.
10387 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10388 (internal_catch, Fcondition_case, internal_condition_case)
10389 (internal_condition_case_1, internal_condition_case_2): Save it.
10390 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10391
048addec 10392 * editfns.c (Fformat): Add parens.
f02cac82 10393
048addec
JD
10394 * dired.c (file_name_completion): Fix that change.
10395 Delete special quit-handling code; just use QUIT.
f02cac82 10396
b6189c3b 103972002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10398
048addec
JD
10399 * dired.c (file_name_completion): Close directory on error
10400 just as in directory_files_internal.
1a590729 10401
048addec 104022002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10403
048addec
JD
10404 * window.c (Fset_window_configuration): Set old_point to correct
10405 value when new_current_buffer == current_buffer.
f02cac82 10406
048addec 104072002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10408
048addec
JD
10409 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10410 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10411 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10412
048addec
JD
10413 These changes were in part based upon suggestions made by Peter
10414 'Luna' Runestig [peter@runestig.com].
9785d95b 10415
048addec
JD
10416 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10417 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10418 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10419 global variables.
9785d95b 10420
048addec
JD
10421 * w32.c (globals_of_w32): New function. Used to initialize those
10422 global variables that must always be initialized on startup even
10423 when the global variable initialized is non zero. Its primary
10424 purpose at this time is to set the global variables
10425 g_b_init_is_windows_9x, g_b_init_open_process_token,
10426 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10427 g_b_init_get_sid_identifier_authority to 0 on startup.
10428 Called from main.
9785d95b 10429
048addec
JD
10430 * w32.c (is_windows_9x): Perform initialization only if
10431 g_b_init_is_windows_9x is equal to 0. On initialization set
10432 g_b_init_is_windows_9x equal to 1.
2308af15 10433
048addec
JD
10434 * w32.c (open_process_token): Perform initialization only if
10435 g_b_init_open_process_token is equal to 0. On initialization set
10436 g_b_init_open_process_token equal to 1.
2308af15 10437
048addec
JD
10438 * w32.c (get_token_information): Perform initialization only if
10439 g_b_init_get_token_information is equal to 0. On initialization
10440 set g_b_init_get_token_information equal to 1.
9785d95b 10441
048addec
JD
10442 * w32.c (lookup_account_sid): Perform initialization only if
10443 g_b_init_lookup_account_sid is equal to 0. On initialization
10444 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10445
048addec
JD
10446 * w32.c (get_sid_identifier_authority): Perform initialization
10447 only if g_b_init_get_sid_identifier_authority is equal to 0.
10448 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10449
f63fd14e 10450 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10451 those global variables that must always be initialized on startup
10452 even when the global variable initialized is non zero.
10453 Its primary purpose at this time is to initialize the global variable
10454 track_mouse_event_fn.
9785d95b 10455
a64387ee 10456 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10457 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10458
048addec 10459 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10460
f63fd14e 10461 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10462 initialize those global variables that must always be initialized
10463 on startup even when the global variable initialized is non zero.
10464 Its primary purpose at this time is to initialize the global
10465 variables get_menu_item_info and set_menu_item_info.
9785d95b 10466
048addec
JD
10467 * w32menu.c (initialize_frame_menubar): Remove initialization of
10468 get_menu_item_info and set_menu_item_info.
9785d95b 10469
048addec 10470 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10471
048addec
JD
10472 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10473 Declare them.
9785d95b 10474
048addec
JD
10475 * emacs.c (main): Call globals_of_w32 prior to calling
10476 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10477 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10478 is defined.
9785d95b 10479
048addec
JD
10480 * w32term.c (x_update_window_begin): 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_HIDE_CARET message to it.
2308af15 10484
048addec
JD
10485 * w32term.c (x_update_window_end): Fix Windows API error
10486 detected by BoundsChecker. Test to determine if
10487 w32_system_caret_hwnd is NULL prior to attempting to use
10488 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10489
048addec 104902002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10491
048addec
JD
10492 * coding.c (coding_system_require_warning): New variable.
10493 (syms_of_coding): DEFVAR it.
b6da19ef 10494
048addec 10495 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10496
048addec
JD
10497 * fileio.c (choose_write_coding_system): Even if
10498 Vcoding_system_for_write is non-nil, if
10499 coding_system_require_warning is nonzero, call
10500 Vselect_safe_coding_system_function.
bfcf6dbe 10501
048addec 105022002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10503
048addec
JD
10504 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10505 (lisp): Add font-core.
2c568af5 10506
048addec 105072002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10508
048addec
JD
10509 * textprop.c (text_read_only): New arg `propval'.
10510 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10511 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10512
048addec 105132002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10514
048addec 10515 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10516
048addec 105172002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10518
048addec
JD
10519 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10520 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10521 Be more careful about when help_events are generated.
96720f09 10522
048addec 105232002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10524
048addec
JD
10525 * macterm.c (mac_check_for_quit_char): Correctly set the
10526 modifiers of the event to 0.
10527 * mac.c (sys_select): Duplicate rfds before calling select to
10528 ensure that rfds survive the while loop.
e5ae1c49 10529
048addec 105302002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10531
048addec
JD
10532 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10533 row_containing_pos returned NULL.
2eb46b2d 10534
048addec 105352002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10536
6bdb309a 10537 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10538 non-blocking.
6bdb309a 10539 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10540 the one given.
b11f1d8a 10541
048addec 105422002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10543
048addec 10544 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10545
048addec 105462002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10547
048addec
JD
10548 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10549 as the last thing.
a4ac5b17 10550
048addec 105512002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10552
048addec 10553 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10554
048addec 105552002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10556
048addec
JD
10557 * editfns.c (Fformat): Handle precision in string conversion
10558 specifiers like libc functions do (ie, print at most that many
10559 characters).
85cce843 10560
048addec 105612002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10562
048addec
JD
10563 * xdisp.c (row_containing_pos): Check more carefully
10564 whether charpos is really in the row before returning it.
0d4d26a7 10565
048addec 105662002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10567
048addec 10568 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10569
048addec
JD
10570 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10571 each stack frame. This may change as it could be time consuming.
0d4d26a7 10572
048addec
JD
10573 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10574 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10575 (mac_initialize): Add code to check for pressing of quit_char
048addec 10576 in the OS event queue.
b11f1d8a 10577
048addec
JD
10578 * mac.c (sys_select): Call mac_check_for_quit_char every second
10579 while blocking on select.
0d4d26a7 10580
048addec
JD
10581 * mac.c (sys_read): Use sys_select to test for input first
10582 before calling read, to allow C-g to break.
9252f7bc 10583
048addec 105842002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10585
048addec 10586 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10587
048addec 10588 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10589
048addec 10590 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10591
048addec
JD
10592 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10593 autoload.
9252f7bc 10594
048addec 10595 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10596
048addec 10597 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10598
048addec 105992002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10600
048addec 10601 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10602
048addec 106032002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10604
048addec 10605 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10606
048addec 10607 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10608
048addec 10609 * alloca.c: Don't use #error.
02d588e2 10610
048addec 106112002-12-03 Dave Love <fx@gnu.org>
02d588e2 10612
048addec
JD
10613 * buffer.c (Qucs_set_table_for_input): New.
10614 (Fget_buffer_create): Use it.
10615 (Qset_buffer_major_mode_hook): Deleted.
10616 (Fset_buffer_major_mode): Revert previous change.
10617 (init_buffer_once): Intern ucs-set-table-for-input.
10618 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10619 Add &Qucs_set_table_for_input.
451e2697 10620
048addec 106212002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10622
048addec
JD
10623 * callint.c (Fcall_interactively): Use next_event only if less
10624 than key_count.
72742a99 10625
048addec 106262002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10627
048addec
JD
10628 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10629 names to 255 characters.
72742a99 10630
048addec
JD
10631 * macterm.c (XTread_socket): If all frames have been collapsed,
10632 expand the first one before handling drag-and-drop events.
72742a99 10633
048addec
JD
10634 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10635 which is detected by autoconf.
40e6ff95 10636
048addec 106372002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10638
048addec
JD
10639 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10640 offset in two hints table to allow prebinding to be redone and
10641 allow the executable to be stripped.
c02138c6 10642
048addec 106432002-11-29 Dave Love <fx@gnu.org>
c02138c6 10644
048addec
JD
10645 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10646 already provided.
0e47bbf7 10647
048addec 106482002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10649
048addec
JD
10650 * xdisp.c (start_display): Check more intelligently for
10651 whether the line is continued.
10652 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10653
048addec 106542002-11-28 Dave Love <fx@gnu.org>
44129dcb 10655
048addec
JD
10656 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10657 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10658
048addec 106592002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10660
048addec
JD
10661 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10662 more descriptive error output from lread.c:Fload upon most require
10663 cycles during boostrapping.
1637fd2c 10664
048addec 106652002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10666
048addec
JD
10667 * fileio.c (Finsert_file_contents): Give a more appropriate error
10668 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10669
048addec
JD
10670 * dired.c (Ffile_attributes): Don't return negative file sizes for
10671 files bigger than 2Gb when off_t is 32 bit.
540c2788 10672
048addec 106732002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10674
048addec 10675 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10676
048addec
JD
10677 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10678 Test GETPGRP_VOID instead.
10679 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10680
048addec
JD
10681 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10682 Don't define.
10683 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10684
048addec 10685 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10686
048addec 106872002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10688
048addec
JD
10689 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10690 supported.
4042a81a 10691
048addec 106922002-11-25 Dave Love <fx@gnu.org>
4042a81a 10693
048addec 10694 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10695
048addec 10696 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10697
048addec 106982002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10699
048addec 10700 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10701
048addec 107022002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10703
048addec
JD
10704 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10705 determine the size of pointers alloced in unexed space instead
10706 of using possibly invalid emacs_zone pointers. This fixes the
10707 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10708
048addec 107092002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10710
048addec 10711 * search.c (Fstring_match): Doc fix.
c1ee53bc 10712
048addec
JD
10713 * callint.c (Fcall_interactively): If a command fails because
10714 `*' detects a read-only buffer, but RECORD_FLAG is set,
10715 record it anyway if the args don't actually do tty input.
5598c32e 10716
048addec 107172002-11-22 Dave Love <fx@gnu.org>
5598c32e 10718
048addec 10719 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10720
048addec
JD
10721 * keyboard.c (interrupt_signal): Provide forward declaration.
10722 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10723
048addec 10724 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10725
048addec 107262002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10727
048addec
JD
10728 * eval.c (interactive_p): Skip any number of bytecode
10729 and special form frames, in any order.
516eea8e 10730
048addec 107312002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10732
048addec
JD
10733 * w32fns.c (convert_mono_to_color_image): New function.
10734 (xbm_load, xbm_load_image): Use it when foreground or background
10735 is explicitly set.
04dbfa08 10736
048addec 107372002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10738
048addec 10739 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10740
048addec 107412002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10742
048addec
JD
10743 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10744 (XPutPixel): Swap blue and red.
10745 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10746 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10747 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10748 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10749
048addec 107502002-11-18 Dave Love <fx@gnu.org>
d824beee 10751
048addec 10752 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10753
048addec 10754 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10755
048addec 10756 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10757
048addec
JD
10758 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10759 malloc, realloc, calloc.
d824beee 10760
048addec
JD
10761 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10762 (bcmp): Don't define.
d824beee 10763
048addec 10764 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10765
048addec 10766 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10767
048addec 10768 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10769
048addec 10770 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10771
048addec
JD
10772 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10773 Don't include alloca.h.
d824beee 10774
048addec 10775 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10776
048addec 10777 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10778
048addec 10779 * process.c (_GNU_SOURCE): Don't define.
1998560a 10780
048addec 10781 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10782
048addec 107832002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10784
048addec 10785 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10786
048addec 107872002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10788
048addec
JD
10789 * dispextern.h (struct face): Add `overstrike' field.
10790 * xterm.c (x_draw_glyph_string_foreground)
10791 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10792 * xfaces.c (load_face_font): Set `face->overstrike' based on
10793 result from choose_face_font.
10794 (best_matching_font, choose_face_font): Add `needs_overstrike'
10795 argument, and use it to return whether overstriking is desirable
10796 for this face/font combo.
10797 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10798
048addec 107992002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10800
048addec
JD
10801 This change is my fix for the following entry in etc/PROBLEMS:
10802 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10803 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10804
048addec
JD
10805 * w32.c: Added wrapper functions around the win32 API functions
10806 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10807 GetSidIdentifierAuthority. These wrapper functions serve two
10808 purposes:
10809 1. They ensure that the wrapped function can never be called
10810 when Emacs is running on an operating system on which they are
10811 not supported (Microsoft Windows 95 / 98 / ME).
10812 2. They call the wrapped functions via function pointers rather
10813 than calling them directly. This avoids taking advantage of the
10814 undocumented fact that although these functions are not supported
10815 in the 9x branch of Microsoft Windows, the functions do exist in
10816 the version of advapi32.dll that is found in the 9x branch of
10817 Microsoft Windows.
f60ae425 10818
6bdb309a 10819 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10820 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10821 and GetSidIdentifierAuthority with calls to the newly added
10822 wrapper functions.
f60ae425 10823
048addec
JD
10824 * w32.h: Added extern declarations for the following functions:
10825 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10826 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10827
6bdb309a 10828 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10829 function pointer track_mouse_event_fn in the handler for the
10830 WM_SETFOCUS message.
3582b6a3 10831
6bdb309a 10832 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10833 reinitialize the function pointers set_menu_item_info and
10834 get_menu_item_info.
f60ae425 10835
048addec 108362002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10837
048addec
JD
10838 * sound.c: Added a partial implementation of play-sound-internal
10839 for Microsoft Windows. Added various #ifdef / #else / #endif
10840 code blocks to separate the code that will compile under
10841 Microsoft Windows from the code that is specific to Gnu/Linux.
10842 Moved several blocks of code around to make this separation of code
10843 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10844
048addec 10845 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10846
048addec
JD
10847 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10848 added support for play-sound-internal under Windows would be
10849 included in the build of Emacs.
517f42a0 10850
048addec 108512002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10852
048addec 10853 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10854
048addec 10855 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10856
048addec 108572002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10858
048addec
JD
10859 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10860 (adjust_point_for_property): Move out of display and invisible even if
10861 we were already inside before (in case a property was added while
10862 we weren't looking). Be more careful when handling invisible props.
10863 Skip invisible text as if it really wasn't there at all.
aab83f91 10864
048addec 108652002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10866
048addec
JD
10867 * w32term.c (x_draw_image_foreground)
10868 (w32_draw_image_foreground_1): Use standard copy and invert
10869 operations to draw images.
aab83f91 10870
048addec
JD
10871 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10872 depth of 1.
10873 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10874 (XPutPixel): Don't invert bits here.
a4478a76 10875
048addec 108762002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10877
048addec
JD
10878 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10879 (w32_draw_image_foreground_1): Handle image masks.
10880 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10881
048addec
JD
10882 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10883 (x_from_xcolors): Adjust RGB values for W32.
10884 (image_background, image_background_transparent)
10885 (postprocess_image, x_to_xcolors, x_disable_image)
10886 (x_build_heuristic_mask): Adapt for W32 and enable.
10887 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10888 (xbm_load): Remove unused variable.
03670a65 10889
048addec 108902002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10891
048addec 10892 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10893
048addec 108942002-11-14 Dave Love <fx@gnu.org>
59daa29a 10895
048addec 10896 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10897
048addec
JD
10898 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10899 * xmenu.c (unuse_menu_items, digest_single_submenu):
10900 * xfns.c (x_put_x_image):
10901 * xdisp.c (message2_nolog, set_message):
10902 * undo.c (record_point):
10903 * terminfo.c (tparam):
10904 * syntax.c (scan_sexps_forward):
10905 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10906 * composite.c (update_compositions):
10907 * cm.c (calccost, cmgoto):
10908 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10909
048addec 10910 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10911
048addec
JD
10912 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10913 Don't declare.
59daa29a 10914
048addec 10915 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10916
048addec
JD
10917 * fns.c (Fcopy_sequence): Doc fix.
10918 (Fmap_char_table): Cast `call2'.
3947677c 10919
048addec
JD
109202002-11-14 Francesco Potorti` <pot@gnu.org>
10921
10922 * s/sol2-8.h: New file.
10923
109242002-11-14 Kim F. Storm <storm@cua.dk>
10925
10926 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10927 dependency on `risky-local-variable' and the :propertize form.
10928
109292002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10930
10931 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10932
10933 * syntax.c (scan_sexps_forward): Undo last patch.
10934 Use a more obvious fix: check eob before updating the syntax table.
10935
109362002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10937
10938 * syntax.c (scan_sexps_forward): Update syntax table before reading
10939 a char rather than after so we don't update the table past eob.
10940
109412002-11-09 Dave Love <fx@gnu.org>
10942
10943 * buffer.c (Fset_buffer_major_mode): Fix last change.
10944
10945 * regex.c (regexec): Fix pmatch declaration.
10946
10947 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10948
10949 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10950 to self-inserting characters.
10951 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10952
10953 * coding.c (Vtranslation_table_for_input): New.
10954 (syms_of_coding): DEFVAR it.
10955
109562002-11-08 Juanma Barranquero <lektu@terra.es>
10957
10958 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10959 window.
10960
109612002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10962
6bdb309a 10963 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10964 cp, and i.
10965
109662002-11-06 Dave Love <fx@gnu.org>
10967
10968 * buffer.c (Qset_buffer_major_mode_hook): New.
10969 (Fset_buffer_major_mode): Use it.
10970
109712002-11-06 Richard M. Stallman <rms@gnu.org>
10972
10973 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10974 and stop_polling.
10975
10976 * process.c (wait_reading_process_input):
10977 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10978 Avoid initialization for auto Lisp_Object var.
10979
10980 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10981
10982 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10983
109842002-11-05 Richard M. Stallman <rms@gnu.org>
10985
10986 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10987
10988 * callint.c (Fcall_interactively): New local filter_specs.
10989 (Fcall_interactively): Check for progn as well as let.
10990 Add a gcpro.
10991 (Qprogn): New variable.
10992 (syms_of_callint): Staticpro and init Qprogn.
10993
109942002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10995
10996 * lread.c (Feval_buffer): Doc fix.
10997
109982002-11-04 Dave Love <fx@gnu.org>
10999
11000 * keyboard.c (read_char): Always translate iff
11001 Vkeyboard_translate_table is a char table and c is valid.
11002
11003 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11004 and fix C types.
11005
110062002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11007
11008 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11009
11010 * editfns.c (get_pos_property): Don't hardcode Qfield.
11011
11012 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11013 overlays. Also handle `invisible' prop.
11014
110152002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11016
11017 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11018 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11019
110202002-11-01 Andreas Schwab <schwab@suse.de>
11021
11022 * editfns.c (Fmessage): Revert last change to properly handle %%.
11023
110242002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11025
11026 * xmenu.c (unuse_menu_items): New fun.
11027 (menu_items_inuse): New var.
11028 (syms_of_xmenu): Initialize it.
11029 (init_menu_items): Use it to detect re-entrance.
11030 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11031 (Fx_popup_menu): Remove spurious XSETFRAME.
11032
11033 * editfns.c (find_field): Make an exception for nil fields.
11034
110352002-11-01 Dave Love <fx@gnu.org>
11036
11037 * m/gec63.h: Deleted.
11038
110392002-10-31 Dave Love <fx@gnu.org>
11040
11041 * xterm.c (XTread_socket): Fix last change.
11042 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11043
110442002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11045
11046 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11047
110482002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11049
11050 * editfns.c (overlays_around, get_pos_property): New funs.
11051 (find_field): Use them.
11052 Also be careful not to modify POS before its last use.
11053 (Fmessage): Don't Fformat if there's nothing to format.
11054
110552002-10-30 Dave Love <fx@gnu.org>
11056
11057 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11058 [HAVE_PTY_H]; Include pty.h.
11059
11060 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11061
11062 * xterm.c (Qeql): Declare.
11063 (Vx_keysym_table): New.
11064 (syms_of_xterm): Initialize it.
11065 (XTread_socket): Use it. Deal with ASCII keysyms.
11066 (XSetIMValues) [HAVE_X11R6]: Prototype.
11067
11068 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11069 (lispy_kana_keys): Comment out.
11070 (make_lispy_event) [XK_kana_A]: Comment out.
11071 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11072 Fix sprintf call.
11073
11074 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11075 regexp.h change).
11076 (TERMINFO, LIBS_TERMCAP): Define.
11077
11078 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11079 (bcmp): Define conditional on HAVE_BCMP.
11080 (NO_SIOCTL_H): Don't define.
11081 (TIOCSIGSEND): Don't make conditional on IRIX6.
11082
11083 * s/sol2-5.h: Don't include strings.h.
11084 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11085
11086 * s/irix6-0.h (IRIX6): Don't define.
11087 (bcopy, bcmp, bzero): Don't undef.
11088
11089 * s/irix6-5.h: Don't include strings.h.
11090 (IRIX6): Don't define.
11091 (bcopy, bcmp, bzero): Don't undef.
11092
11093 * syntax.c (Fforward_comment): Doc fix.
11094
110952002-10-29 Kim F. Storm <storm@cua.dk>
11096
11097 * process.c (Fsignal_process): Allow PROCESS to be specified by
11098 name in addition to pid (as integer or string).
11099
111002002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11101
11102 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11103 environments.
11104
111052002-10-27 Kim F. Storm <storm@cua.dk>
11106
11107 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11108
11109 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11110
11111 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11112
11113 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11114
111152002-10-26 Richard M. Stallman <rms@gnu.org>
11116
11117 * editfns.c (Fformat): Detect invalid format letters for floats.
11118
111192002-10-25 Kenichi Handa <handa@m17n.org>
11120
11121 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11122 (x_set_title): Likewise.
11123
111242002-10-25 Juanma Barranquero <lektu@terra.es>
11125
11126 * macgui.h:
11127 * w32gui.h: Remove definition of XColor.
11128
11129 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11130
111312002-10-24 Kim F. Storm <storm@cua.dk>
11132
11133 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11134 Callers changed (supply dummy arg).
11135
11136 * lisp.h (get_window_cursor_type): Update prototype.
11137
11138 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11139 get_window_cursor_type to track system caret.
11140
111412002-10-24 Kim F. Storm <storm@cua.dk>
11142
11143 * process.c (Fformat_network_address): New function.
11144 (syms_of_process): Defsubr it.
11145 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11146 service/host is not set; before Emacs would crash in that case.
048addec
JD
11147 (Fmake_network_process): Don't use Ffind_operation_coding_system
11148 to setup coding system if host or service is not set.
11149
111502002-10-23 Juanma Barranquero <lektu@terra.es>
11151
11152 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11153
11154 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11155 COLORREF.
11156
11157 * macgui.h:
11158 * w32gui.h: Add definition of XColor.
11159
11160 * macfns.c:
11161 * w32fns.c:
11162 * xfaces.c: Remove definition of XColor.
11163
111642002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11165
11166 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11167
11168 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11169 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11170 window if it is dedicated.
11171 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11172 (Vspecial_display_function): Update docstring.
11173
11174 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11175 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11176 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11177
111782002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11179
11180 * casefiddle.c (casify_region): Don't treat a prefix char as part
11181 of a word when at the beginning.
11182
111832002-10-17 Juanma Barranquero <lektu@terra.es>
11184
11185 * lread.c (syms_of_lread): Fix typos.
11186
111872002-10-17 Dave Love <fx@gnu.org>
11188
11189 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11190
111912002-10-16 Richard M. Stallman <rms@gnu.org>
11192
11193 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11194
111952002-10-14 Juanma Barranquero <lektu@terra.es>
11196
11197 * w16select.c (syms_of_win16select): Fix docstring for
11198 `selection-coding-system'.
11199
11200 * w32select.c (syms_of_w32select): Likewise.
11201
112022002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11203
11204 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11205 a backslash-quoted char.
11206 (scan_lists, scan_sexps_forward): Pacify the compiler.
11207
112082002-10-13 Richard M. Stallman <rms@gnu.org>
11209
11210 * window.c (window_scroll): Set immediate_quit.
11211
11212 * print.c (print): When backquote form is the car of a list,
11213 output in old style. Use old_backquote_output to output all
11214 comma forms inside it in old style too.
11215
11216 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11217
112182002-10-11 Markus Rost <rost@math.ohio-state.edu>
11219
11220 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11221 batch mode).
11222
11223 * lread.c (Fload): Doc fix (load-suffixes).
11224
112252002-10-10 Steven Tamm <steventamm@mac.com>
11226
11227 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11228 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11229 Also switch the default to Qnil from Qt.
11230
112312002-10-08 Kenichi Handa <handa@m17n.org>
11232
11233 * coding.c (code_convert_region): When we need more GAP for
11234 conversion, pay attention to the case that coding->produced is not
11235 greater than coding->consumed.
11236
112372002-10-07 Richard M. Stallman <rms@gnu.org>
11238
11239 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11240
112412002-10-06 Andrew Choi <akochoi@shaw.ca>
11242
11243 * macmenu.c (mac_menu_show): Add j to count menu items; match
11244 menu_item_selection to it to find selected item.
11245
112462002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11247
11248 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11249 cases. The correct fix is to pass ReparentNotify to Xt.
11250 The shell widget interprets ConfigureNotify differently depending
11251 on if it has been reparented or not.
11252
112532002-10-05 Markus Rost <rost@math.ohio-state.edu>
11254
11255 * editfns.c (Fformat_time_string): Doc fix.
11256
112572002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11258
11259 * fns.c (Flength): Doc fix.
11260
112612002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11262
11263 * keyboard.c (keyremap): New struct.
11264 (read_key_sequence): Use it: globally replace keytran_foo with
11265 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11266 keytran_next and fkey_next to just `next'.
11267
112682002-10-04 Steven Tamm <steventamm@mac.com>
11269
11270 * macterm.c (keycode_to_xkeysym_table): Change return to be
11271 treated like an X keysym.
11272
112732002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11274
11275 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11276 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11277 This is to also handle x/y changes that occur because of a resize.
11278
112792002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11280
11281 * frame.c (Vdelete_frame_functions): New variable.
11282 (syms_of_frame): Initialize and defvar it.
11283 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11284 it when frame's `tooltip' parameter is non-nil.
11285
11286 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11287
11288 * w32fns.c (x_create_tip_frame): Likewise.
11289
11290 * macfns.c (x_create_tip_frame): Likewise.
11291
112922002-09-30 Kenichi Handa <handa@m17n.org>
11293
11294 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11295 -1 before calling ccl_driver.
11296
11297 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11298 Only when it is non-nil, handle composition sequence.
11299 (setup_coding_system) <0>: Don't force composition handling.
11300
11301 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11302
113032002-09-29 Richard M. Stallman <rms@gnu.org>
11304
11305 * search.c (Freplace_match): Adjust match data for the substitution
11306 just made in the buffer.
11307
11308 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11309 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11310
113112002-09-27 Richard M. Stallman <rms@gnu.org>
11312
11313 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11314 (read_char): Use them. Do all exits thru the end of the function.
11315
113162002-09-27 Kenichi Handa <handa@etl.go.jp>
11317
11318 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11319 is nil.
11320
113212002-09-26 Richard M. Stallman <rms@gnu.org>
11322
11323 * regex.h (__restrict_arr): Don't define if already defined.
11324
11325 * coding.c (run_pre_post_conversion_on_str):
11326 Save and restore Vdeactivate_mark.
11327
113282002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11329
11330 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11331
113322002-09-26 Kenichi Handa <handa@etl.go.jp>
11333
11334 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11335 nonzero, try face's family at first. Otherwise try FAMILY at first.
11336 (choose_face_font): If C is a single byte char or latin-1, call
11337 try_font_list with PREFER_FACE_FAMILY 1.
11338
113392002-09-21 Richard M. Stallman <rms@gnu.org>
11340
11341 * window.c (select_window_1): Don't select frame.
11342 Set frame's selected window only when frame itself is selected.
11343 (Fselect_window): Doc fix.
11344
113452002-09-18 Kim F. Storm <storm@cua.dk>
11346
11347 * process.c (make-network-process): Doc fix (there is no
11348 network-server-log-function hook).
11349
113502002-09-18 Richard M. Stallman <rms@gnu.org>
11351
11352 * print.c (print): Clear out the unused parts of Vprint_number_table.
11353 (syms_of_print): Doc fix for `print-number-table'.
11354
11355 * unexelf.c (unexec): Undo previous change.
11356
113572002-09-17 Andreas Schwab <schwab@suse.de>
11358
11359 * m/alpha.h [LINUX]: Don't define DATA_START.
11360
113612002-09-16 Dave Love <fx@gnu.org>
11362
11363 * unexelf.c (unexec): Deal with .got, reinstating change from
11364 25-08-1999.
11365
113662002-09-13 Richard M. Stallman <rms@gnu.org>
11367
11368 * s/sol2-6.h (UNEXEC): Comment out definition.
11369
11370 * unexsol.c (unexec): Don't downcase first letter of error msg.
11371
11372 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11373
113742002-09-12 Markus Rost <rost@math.ohio-state.edu>
11375
11376 * unexsol.c: Include buffer.h, charset.h, coding.h.
11377
113782002-09-11 Richard M. Stallman <rms@gnu.org>
11379
11380 * unexsol.c: Don't use report_file_error; do it by hand
11381 using dlerror.
11382
11383 * process.c (wait_reading_process_input, both versions):
11384 Before calling turn_on_atimers, call stop_polling.
11385
11386 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11387
11388 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11389 we go to too_near_end, call clear_glyph_matrix.
11390 (redisplay_window): After make_cursor_line_fully_visible,
11391 call clear_glyph_matrix and bypass `goto done'.
11392
11393 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11394 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11395
113962002-09-10 Richard M. Stallman <rms@gnu.org>
11397
11398 * fileio.c (Fdo_auto_save): Catch error making directory.
11399 Only call push_message if we need to.
11400 At the same time, make an unwind-protect to pop it.
11401 Rename local message_p to old_message_p.
11402 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11403 (do_auto_save_unwind): Don't call pop_message.
11404
11405 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11406
11407 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11408
11409 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11410
11411 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11412
114132002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11414
11415 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11416 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11417 (re_match_2_internal): Be more careful with infinite loops.
11418
114192002-09-10 Kim F. Storm <storm@cua.dk>
11420
11421 * macros.c (end_kbd_macro): New function.
11422 (Fend_kbd_macro): Use it.
11423
11424 * macros.h (end_kbd_macro): Declare extern.
11425
11426 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11427 end and save it instead of discarding it.
11428
114292002-09-09 Markus Rost <rost@math.ohio-state.edu>
11430
11431 * s/sol2-6.h: Fix typo. Add comment.
11432
114332002-09-09 Richard M. Stallman <rms@gnu.org>
11434
11435 * regex.c (regnum_t): Use signed int, not unsigned int.
11436
11437 * s/sol2-6.h: New file.
11438
11439 * s/sol2-5.h (UNEXEC): Definition deleted.
11440
114412002-09-08 Kim F. Storm <storm@cua.dk>
11442
11443 * macros.c (executing_macro_index): Change type to EMACS_INT.
11444 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11445
11446 * macros.h (executing_macro_index): Change type to EMACS_INT.
11447
114482002-09-06 Richard M. Stallman <rms@gnu.org>
11449
11450 * casetab.c (set_case_table): Make canon table point to eqv table.
11451
114522002-09-06 Juanma Barranquero <lektu@terra.es>
11453
11454 * coding.c (syms_of_coding): Fix spacing.
11455
11456 * composite.c (Fcompose_region_internal)
11457 (Fcompose_string_internal): Likewise.
11458
11459 * data.c (Flsh): Likewise.
11460
11461 * fontset.c (Fset_fontset_font): Likewise.
11462
11463 * macfns.c (Fx_server_max_request_size): Likewise.
11464
11465 * w16select.c (syms_of_win16select): Likewise.
11466
11467 * w32select.c (syms_of_w32select): Likewise.
11468
11469 * xselect.c (syms_of_xselect): Likewise.
11470
114712002-09-05 Richard M. Stallman <rms@gnu.org>
11472
11473 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11474 call EXTEND_RANGE_TABLE and return a proper value.
11475 (set_image_of_range): Don't call set_image_of_range_1
11476 if no TRANSLATE or if range includes all of Latin-1.
11477 Only call it for the Latin-1 part of the range.
11478 For other cases, make two separate ranges,
11479 one for the original specified characters and one for
11480 their case-conversions.
11481
114822002-09-04 Richard M. Stallman <rms@gnu.org>
11483
11484 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11485
11486 * window.c (displayed_window_lines): Correct for one-off bug
11487 in HEIGHT on non-window displays.
11488
11489 * regex.c (set_image_of_range_1): New function.
11490 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11491 Return a value to indicate running out of memory.
11492 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11493 (extend_range_table_work_area): New subroutine.
11494 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11495 Different calling conventions, and used from set_image_of_range{,_1}.
11496 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11497
114982002-09-04 Juanma Barranquero <lektu@terra.es>
11499
11500 * makefile.w32-in: All dependencies updated.
11501
115022002-09-01 Richard M. Stallman <rms@gnu.org>
11503
11504 * unexsol.c: New file.
11505
11506 * xfns.c (Qbox): Declare external, don't define.
11507
11508 * xdisp.c (redisplay_window) <force-start case>:
11509 If point is on semi-visible last line, reposition
11510 it at previous line.
11511
11512 * alloc.c (display_malloc_warning): Use display-warning.
11513 (malloc_warning_1): Function deleted.
11514
11515 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11516
11517 * lread.c (read1): Handle #! by skipping the line.
11518
115192002-08-31 Richard M. Stallman <rms@gnu.org>
11520
11521 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11522 Don't include LDFLAGS.
11523 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11524
115252002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11526
11527 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11528 member of x_display_info unless we compile for some window system.
11529
115302002-08-31 Kim F. Storm <storm@cua.dk>
11531
11532 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11533 (get_window_cursor_type): Don't use them.
11534 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11535
115362002-08-30 Kenichi Handa <handa@etl.go.jp>
11537
11538 * xdisp.c (get_next_display_element): Fix previous change.
11539
115402002-08-30 Andrew Choi <akochoi@shaw.ca>
11541
11542 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11543 (expose_window): Use it to fix the display of overlapping
11544 rows (merge code from xterm.c).
11545
11546 * macfns.c (Qbox): Add extern declaration.
11547
115482002-08-30 Juanma Barranquero <lektu@terra.es>
11549
11550 * w32fns.c (Qbox): Make extern.
11551 (syms_of_w32fns): Remove initialization of Qbox.
11552
115532002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11554
11555 * xfns.c (Fx_open_connection): Fix error message.
11556
115572002-08-30 Kim F. Storm <storm@cua.dk>
11558
11559 The following changes consolidates the handling of the cursor
11560 type in xdisp.c, moving duplicate code and functionality from
11561 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11562
11563 * frame.h (enum text_cursor_kinds): Consolidated here.
11564 Added DEFAULT_CURSOR value.
11565 (struct frame) <desired_cursor, cursor_width>
11566 <blink_off_cursor, blink_off_cursor_width>: New fields.
11567 Consolidated from output_x, output_w32 and output_mac structs.
11568 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11569 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11570
11571 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11572 Variables consolidated here.
11573 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11574 (Vcursor_in_non_selected_windows): Renamed from
11575 cursor_in_non_selected_windows and changed to Lisp_Object.
11576 (syms_of_xdisp): Define and staticpro new and moved variables.
11577 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11578 consolidated here. Recognize Qhollow setting.
11579 (set_frame_cursor_types): New function to set frame cursor types
11580 based on the frame parameters.
11581 (get_window_cursor_type): New function to calculate new cursor
11582 type and width for the specified window. Based on duplicated
11583 code consolidated here.
11584 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11585 check buffer-local alternate-cursor-type and blink-cursor-alist
11586 before using built-in blink off methods.
11587
11588 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11589
11590 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11591 (get_specified_cursor_type, get_window_cursor_type)
11592 (set_frame_cursor_types): Added prototypes.
11593
11594 * macfns.c (x_specified_cursor_type): Removed.
11595 (x_set_cursor_type): Use set_frame_cursor_types.
11596 (Qbar, Qbox): Removed.
11597 (syms_of_macfns): Don't intern or staticpro them.
11598
11599 * macterm.c (x_specified_cursor_type): Remove prototype.
11600 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11601 (x_display_and_set_cursor): Use get_window_cursor_type.
11602 Remove unused local variables cursor_non_selected, active_cursor.
11603 Redraw cursor if hbar cursor width changes.
11604 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11605
11606 * macterm.h (enum text_cursor_kinds): Removed.
11607 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11608 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11609 (FRAME_DESIRED_CURSOR): Macro removed.
11610
11611 * w32fns.c (Vblink_cursor_alist): Removed.
11612 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11613 (syms_of_w32fns): Don't intern, staticpro, or define them.
11614 (x_specified_cursor_type): Removed.
11615 (x_set_cursor_type): Use set_frame_cursor_types.
11616
11617 * w32term.c (x_specified_cursor_type): Remove prototype.
11618 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11619 (x_display_and_set_cursor): Use get_window_cursor_type.
11620 Remove unused local variables cursor_off_state.
11621 Redraw cursor if hbar cursor width changes.
11622 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11623
11624 * w32term.h (enum text_cursor_kinds): Removed.
11625 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11626 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11627 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11628 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11629 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11630 w32_highlight_frame.
11631
11632 * xfns.c (Vblink_cursor_alist): Removed.
11633 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11634 (syms_of_xfns): Don't intern, staticpro, or define them.
11635 (x_specified_cursor_type): Removed.
11636 (x_set_cursor_type): Use set_frame_cursor_types.
11637
11638 * xterm.c (x_specified_cursor_type): Remove prototype.
11639 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11640 (x_display_and_set_cursor): Use get_window_cursor_type.
11641 Remove unused local variables cursor_off_state.
11642 Redraw cursor if hbar cursor width changes.
11643
11644 * xterm.h (enum text_cursor_kinds): Removed.
11645 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11646 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11647 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11648 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11649 (x_specified_cursor_type): Remove prototype.
11650
116512002-08-28 Richard M. Stallman <rms@gnu.org>
11652
11653 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11654 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11655 (Vblink_cursor_alist): New variable.
11656 (syms_of_w32fns): Initialize and defvar it.
11657 (x_specified_cursor_type): Recognize Qbox for filled box.
11658 Exceptions are hollow boxes.
11659 (Qbox, Qhollow): New variables.
11660 (syms_of_w32fns): Initialize and staticpro them.
11661
11662 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11663 New macros.
11664 (struct w32_output): New fields blink_off_cursor,
11665 blink_off_cursor_width.
11666 (FRAME_CURSOR_WIDTH): New macro.
11667
11668 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11669 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11670
11671 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11672 for bar cursor.
11673
11674 * w32term.c (expose_overlaps): New function.
11675 (expose_window): Use it to fix the display of overlapping rows.
11676
116772002-08-28 Simon Josefsson <jas@extundo.com>
11678
11679 * xfns.c (Fx_open_connection): Improve help when X connection
11680 fails, xhost is insecure and xauth is better.
11681
116822002-08-28 Juanma Barranquero <lektu@terra.es>
11683
11684 * makefile.w32-in: Add missing dependencies on w32term.h and
11685 composite.h.
11686
11687 * emacs.c (USAGE1): Add missing newline.
11688
116892002-08-27 Andrew Choi <akochoi@shaw.ca>
11690
11691 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11692
116932002-08-27 Richard M. Stallman <rms@gnu.org>
11694
11695 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11696 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11697 (Vblink_cursor_alist): New variable.
11698 (syms_of_xfns): Initialize and defvar it.
11699 (x_specified_cursor_type): Recognize Qbox for filled box.
11700 Exceptions are hollow boxes.
11701 (Qbox, Qhollow): New variables.
11702 (syms_of_xfns): Initialize and staticpro them.
11703
11704 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11705 New macros.
11706 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11707
11708 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11709 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11710
11711 * emacs.c (main): Handle --script.
11712 (USAGE1): Mention --script.
11713 (standard_args): Define sort order for --script.
11714
117152002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11716
11717 * xdisp.c (redisplay_updating_p): Variable removed.
11718 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11719 New variables.
11720 (init_iterator): Don't free realized faces if
11721 inhibit_free_realized_faces is set.
11722 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11723 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11724 initialize Qinhibit_free_realized_faces.
11725
11726 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11727 when iterator is adding glyphs to a glyph matrix.
11728
117292002-08-27 Kenichi Handa <handa@etl.go.jp>
11730
11731 * xdisp.c (get_next_display_element): In unibyte case, don't use
11732 octal form for such eight-bit characters that can be converted to
11733 multibyte char.
11734
117352002-08-26 Kim F. Storm <storm@cua.dk>
11736
b6189c3b
KS
11737 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11738 foreground and background colors. From Joe Buehler.
048addec
JD
11739
117402002-08-26 Miles Bader <miles@gnu.org>
11741
11742 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11743
117442002-08-25 Andrew Choi <akochoi@shaw.ca>
11745
11746 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11747 defined instead of MAC_OSX.
11748
11749 * s/darwin.h (select): Define select to sys_select only if
11750 HAVE_CARBON is defined.
11751 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11752 (DONT_REOPEN_PTY): #def it.
11753
11754 * macterm.c (XTread_socket): Remove code to call
11755 SendEventToEventTarget for keys with command modifiers when
11756 mac_command_key_is_meta is nil.
11757
117582002-08-24 Andreas Schwab <schwab@suse.de>
11759
11760 * eval.c (Fdefvar): Fix last change.
11761
117622002-08-23 Richard M. Stallman <rms@gnu.org>
11763
11764 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11765 Record variables in load history as (defvar . VAR).
11766 (Fdefvar): Don't record in load history if no initial value.
11767 (Qdefvar): New variable.
11768 (syms_of_eval): Init and staticpro it.
11769
11770 * lread.c (syms_of_lread): Doc fix.
11771 (build_load_history): Use Fmember to see if a definition
11772 is already in the Vload_history element.
11773
11774 * process.c (Fstart_process): Remove /: from program name.
11775
11776 * emacs.c (decode_env_path): Don't add /: if file name handler
11777 has a `safe-magic' property.
11778
11779 * callproc.c (Fcall_process): Remove /: from program name.
11780
117812002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11782
11783 * regex.c (PATFETCH): Remove the translating fetch.
11784 (PATFETCH_RAW): Rename to PATFETCH.
11785 (set_image_of_range): New fun.
11786 (SET_RANGE_TABLE_WORK_AREA): Use it.
11787 (regex_compile): Don't translate the pattern chars so eagerly.
11788 Only do it when inserting an `exactn' bytecode or when handling
11789 a char-range.
11790 (mutually_exclusive_p): Avoid empty statement.
11791
117922002-08-22 Kim F. Storm <storm@cua.dk>
11793
11794 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11795 end up on a partially visible line; this reverts a specific part
11796 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11797 display error which has been reported several times now.
11798 However it introduces the problem that changes was supposed to fix.
11799 See my comments in the source if you want to debug this further.
11800
118012002-08-20 Kenichi Handa <handa@etl.go.jp>
11802
11803 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11804
118052002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11806
11807 * msdos.c (croak): Add `void' to definition.
11808
c1380aa6 11809 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11810 Don't define them, they are defined in msdos.c.
11811
11812 * mem-limits.h [MSDOS]: Declare etext.
11813
11814 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11815 `const' since CORRECT_DIR_SEPS modifies its target.
11816
118172002-08-19 Kim F. Storm <storm@cua.dk>
11818
2fb0ce67 11819 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11820 KEEP-RECORD to avoid clearing lossage when we just want to clear
11821 the current key sequence (kmacro needs this).
11822
118232002-08-19 Kenichi Handa <handa@localhost>
11824
11825 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11826
11827 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11828 cons, return Qnil.
11829
118302002-08-17 Richard M. Stallman <rms@gnu.org>
11831
11832 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11833
11834 * sysdep.c [!VMS]: Include sys/files.h.
11835
11836 * editfns.c (save_restriction_restore): Defend from unchained marker.
11837
11838 * buffer.c (overlays_at): Handle extending vec uniformly.
11839 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11840
118412002-08-15 Andrew Choi <akochoi@shaw.ca>
11842
11843 * mac.c (init_mac_osx_environment): New function.
11844
11845 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11846
118472002-08-14 Kim F. Storm <storm@cua.dk>
11848
11849 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11850 executing macro before appending to it (when used from Lisp).
11851 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11852 which is called prior to each iteration of macro (for kmacro.el).
11853 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11854
11855 * lisp.h (Fexecute_kbd_macro): Update prototype.
11856
11857 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11858
118592002-08-14 Kenichi Handa <handa@etl.go.jp>
11860
11861 * xselect.c (QUTF8_STRING): New variable.
11862 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11863 (x_atom_to_symbol): Likewise.
11864 (x_get_local_selection): New argument local_request. If it is
11865 nonzero, call handler_fn with the second arg nil.
11866 (x_handle_selection_request): Call x_get_local_selection with
11867 local_request 0.
11868 (lisp_data_to_selection_data): Don't encode the string here.
11869 (Fx_get_selection_internal): Call x_get_local_selection with
11870 local_request 1.
11871 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11872
11873 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11874
11875 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11876
118772002-08-13 Richard M. Stallman <rms@gnu.org>
11878
11879 * minibuf.c (Fminibufferp): New function.
11880 (syms_of_minibuf): Defsubr it.
11881 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11882
118832002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11884
11885 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11886
118872002-08-12 Richard M. Stallman <rms@gnu.org>
11888
11889 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11890 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11891 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11892 already.
11893
11894 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11895
118962002-08-11 Andrew Choi <akochoi@shaw.ca>
11897
11898 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11899 (Vmac_pass_command_to_system): New variable.
11900 (Vmac_pass_control_to_system): New variable.
11901 (do_mouse_moved): Check wp with is_emacs_window.
11902 (XTread_socket): Check window_ptr with is_emacs_window.
11903 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11904 events back to Mac Toolbox for processing, depending on values of
11905 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11906 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11907 Vmac_pass_control_to_system.
11908
119092002-08-10 Kenichi Handa <handa@etl.go.jp>
11910
11911 * coding.c (unencodable_char_position): New function.
11912 (Funencodable_char_position): New function.
11913 (syms_of_coding): Defsubr Funencodable_char_position.
11914
119152002-08-10 Andrew Choi <akochoi@shaw.ca>
11916
11917 * mac.c (sys_select) [MAC_OSX]: New function.
11918
11919 * macterm.c (MakeMeTheFrontProcess): New function.
11920 (mac_initialize): Call MakeMeTheFrontProcess.
11921
11922 * s/darwin.h: Define select to sys_select.
11923
119242002-08-09 Richard M. Stallman <rms@gnu.org>
11925
11926 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11927
119282002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11929
11930 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11931 end of the buffer.
11932
119332002-08-08 Ken Raeburn <raeburn@mit.edu>
11934
11935 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11936
11937 * puresize.h (BASE_PURESIZE): Increase to 910000.
11938
119392002-08-08 Kenichi Handa <handa@etl.go.jp>
11940
11941 * coding.c (Ffind_operation_coding_system): For write-region, if
11942 VISIT is a filename, make it the target.
11943
119442002-08-07 Richard M. Stallman <rms@gnu.org>
11945
11946 * alloc.c (mark_object): Detect long lists for debugging.
11947 (mark_object_loop_halt): New variable.
11948
11949 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11950
11951 * data.c (Fmake_variable_frame_local): Doc fix.
11952
119532002-08-01 David Ponce <david@dponce.com>
11954
11955 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11956 (malloc_widget_value, free_widget_value)
11957 (w32_free_submenu_strings): Use them.
11958
11959 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11960 (push_menu_pane, push_menu_item, single_keymap_panes)
11961 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11962 (single_submenu, set_frame_menubar)
11963 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11964
11965 (Fx_popup_menu): Don't show pop up menu until preceding one is
11966 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11967
11968 * w32menu.c: Changes adapted from xmenu.c
11969 (set_frame_menubar): First parse all submenus,
11970 then make widget_value trees from them.
11971 Don't allocate any widget_value objects
11972 until we are done with the parsing.
11973 (parse_single_submenu): New function.
11974 (digest_single_submenu): New function.
11975 (single_submenu): Function deleted, replaced by those two.
11976
119772002-08-04 Andrew Choi <akochoi@shaw.ca>
11978
11979 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11980 returns a valid window pointer before proceeding for keyDown and
11981 autoKey events.
11982
119832002-08-03 Andrew Choi <akochoi@shaw.ca>
11984
11985 * macterm.c (USE_CARBON_EVENTS): New macro.
11986 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11987 (x_iconify_frame): Call CollapseWindow.
11988 (Vmac_reverse_ctrl_meta): New variable.
11989 (Vmac_wheel_button_is_mouse_2): New variable.
11990 (init_mac_drag_n_drop): New function.
11991 (mac_do_receive_drag): New function.
11992 (mac_handle_service_event): New function.
11993 (init_service_handler): New function.
11994 (mac_to_emacs_modifiers): New function.
11995 (mac_event_to_emacs_modifiers): New function.
11996 (mac_get_mouse_btn): New function.
11997 (mac_convert_event_ref): New function.
11998 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11999 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12000 mac_get_mouse_btn.
12001 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12002
12003 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12004 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12005 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12006 TOOL_BAR_EVENT for MAC_OS as well.
12007 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12008 as for WINDOWS_NT.
12009 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12010
12011 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12012
120132002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12014
12015 * xdisp.c (forward_to_next_line_start): Fix a condition that
12016 lead to a newline being skipped.
12017
120182002-08-02 Andrew Choi <akochoi@shaw.ca>
12019
12020 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12021
120222002-08-01 Richard M. Stallman <rms@gnu.org>
12023
12024 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12025
120262002-07-31 Andrew Choi <akochoi@shaw.ca>
12027
12028 * macfns.c: #undef init_process before #define-ing it.
12029
12030 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12031 HAVE_CARBON is defined.
12032
120332002-07-31 Richard M. Stallman <rms@gnu.org>
12034
12035 * xmenu.c (set_frame_menubar): First parse all submenus,
12036 then make widget_value trees from them.
12037 Don't allocate any widget_value objects
12038 until we are done with the parsing.
12039 (parse_single_submenu): New function.
12040 (digest_single_submenu): New function.
12041 (single_submenu): Function deleted, replaced by those two.
12042
120432002-07-30 Juanma Barranquero <lektu@terra.es>
12044
12045 * w32proc.c (syms_of_ntproc): Fix docstring of
12046 `w32-get-true-file-attributes'.
12047
120482002-07-28 Richard M. Stallman <rms@gnu.org>
12049
12050 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12051 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12052
12053 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12054
12055 * keyboard.c (make_lispy_event):
12056 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12057 Explicitly clear up_modifier in event->modifiers.
12058
120592002-07-27 Richard M. Stallman <rms@gnu.org>
12060
12061 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12062
12063 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12064 for bar cursor.
12065
120662002-07-26 Kenichi Handa <handa@etl.go.jp>
12067
12068 * coding.c (detect_coding_iso2022): While checking a byte sequence
12069 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12070 it in the normal loop.
12071
120722002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12073
12074 * xterm.c (expose_overlaps): New function.
12075 (expose_window): Use it to fix the display of overlapping rows.
12076
12077 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12078
120792002-07-23 Ken Raeburn <raeburn@gnu.org>
12080
12081 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12082 since it only depends on XUINT.
12083
12084 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12085 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12086 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12087 Macros deleted.
3947677c 12088
77d1daf2
AS
12089 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12090 its value over other approaches.
12091 * sysdep.c (start_of_data): Don't define the function if a macro
12092 form has been defined.
8a8e19a3 12093
048addec
JD
120942002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12095
12096 * xdisp.c (redisplay_updating_p): New variable.
12097 (init_iterator): Don't free realized faces when
12098 redisplay_updating_p is set.
12099 (redisplay_internal): Set redisplay_updating_p while updating
12100 the display.
12101
121022002-07-23 Richard M. Stallman <rms@gnu.org>
12103
12104 * editfns.c (Fmessage): Treat "" like nil.
12105
121062002-07-23 Kenichi Handa <handa@etl.go.jp>
12107
12108 * xdisp.c (face_before_or_after_it_pos):
12109 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12110
121112002-07-22 Juanma Barranquero <lektu@terra.es>
12112
12113 * callproc.c (init_callproc) [DOS_NT]:
12114 Initialize Vshared_game_score_directory to nil.
12115 (syms_of_callproc) [DOS_NT]: Likewise.
12116
121172002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12118
12119 * xdisp.c (display_line): Replace an abort with xassert.
12120
121212002-07-21 Richard M. Stallman <rms@gnu.org>
12122
12123 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12124 and END_UNCHANGED when setting buffer_unchanged_p.
12125 Use current_matrix_up_to_date_p to decide whether to use
12126 try_cursor_movement.
12127
12128 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12129
12130 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12131
12132 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12133 Set to nil if dir does not exist.
12134 (syms_of_callproc): Init unconditionally and simply.
12135
12136 * buffer.c (Fbuffer_list): Doc fix.
12137
121382002-07-21 Ken Raeburn <raeburn@gnu.org>
12139
12140 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12141
12142 * buffer.c (mmap_realloc): When shrinking, make sure number of
12143 pages to unmap is rounded towards zero.
12144
12145 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12146 (XSETINT): Deleted.
12147
12148 * m/att3b.h (XINT): Don't define.
12149 (VALBITS, VALMASK, XTYPE): Deleted.
12150 (DATA_SEG_BITS): Define.
12151 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12152 ARRAY_MARK_FLAG): Deleted.
12153 (DATA_SEG_BITS): Define.
12154 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12155 (DATA_SEG_BITS): Define.
12156
121572002-07-20 Richard M. Stallman <rms@gnu.org>
12158
12159 * print.c (print_error_message): New args CONTEXT and CALLER.
12160 Calls changed.
12161
12162 * lisp.h (print_error_message): Declare new args.
12163
12164 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12165 and CONTEXT to print_error_message, don't print them here.
12166 For a Quit, don't use Vsignaling_function.
12167 Call message_log_maybe_newline.
12168
12169 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12170
121712002-07-20 Kim F. Storm <storm@cua.dk>
12172
12173 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12174
121752002-07-19 Ken Raeburn <raeburn@gnu.org>
12176
12177 * bytecode.c (struct byte_stack): Pointers into byte string now
12178 point to const.
12179 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12180 const.
12181 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12182 * coding.c (encode_eol, detect_coding, detect_eol):
12183 (decode_coding, encode_coding, detect_coding_system):
12184 Source strings now treated as const.
12185 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12186 modify Lisp string contents.
12187 * coding.h (decode_coding, encode_coding, detect_coding,
12188 detect_eol): Declarations updated.
12189 * composite.c (compose_chars_in_text): Treat Lisp string contents
12190 as const.
12191 * dispnew.c (safe_bcopy): Source pointer now points to const.
12192 * lisp.h (STRING_COPYIN): New macro.
12193 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12194 (internal_with_output_to_temp_buffer): Declarations updated.
12195 * print.c (temp_output_buffer_setup):
12196 (internal_with_output_to_temp_buffer): Buffer name argument is now
12197 pointer to const.
12198 * sound.c (struct sound_device): Function pointer field "write"
12199 buffer argument now points to const.
12200 (vox_write): Buffer argument points to const.
12201 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12202 contents as const.
12203 * sysdep.c (emacs_write): Buffer pointer now const.
12204 * term.c (encode_terminal_code): Buffer pointer now const.
12205 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12206 (x_face_list_fonts, x_update_menu_appearance):
12207 (hash_string_case_insensitive): Treat Lisp string contents as const.
12208
122092002-07-19 Juanma Barranquero <lektu@terra.es>
12210
048addec
JD
12211 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12212
12213 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12214 (Ffile_name_as_directory): Fix argument name in docstring.
12215 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12216
122172002-07-18 Richard M. Stallman <rms@gnu.org>
12218
12219 * data.c (Fdefalias): Doc fix.
12220
122212002-07-17 Dave Love <fx@gnu.org>
12222
12223 * intervals.h (text_property_stickiness): Use P_.
12224
12225 * ccl.c: Remove `emacs' conditionals.
12226 (ccl_backtrace_table): Fix size spec.
12227 (ccl_driver): Fix type errors.
12228
122292002-07-16 Ken Raeburn <raeburn@gnu.org>
12230
12231 * alloc.c (xstrdup, make_string, make_unibyte_string)
12232 (make_multibyte_string, build_string): String pointer args now
12233 point to const.
12234 * charset.c (find_charset_in_text, c_string_width):
12235 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12236 * fileio.c (report_file_error):
12237 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12238 (count_combining_before, count_combining_after, insert_1_both):
12239 (insert, insert_and_inherit, insert_string):
12240 (insert_before_markers, insert_before_markers_and_inherit):
12241 * lread.c (intern, oblookup, hash_string):
12242 * minibuf.c (temp_echo_area_glyphs):
12243 * search.c (fast_c_string_match_ignore_case):
12244 * sysdep.c (emacs_open, set_file_times):
12245 * xfaces.c (xstricmp):
12246 * xdisp.c (store_frame_title, string_char_and_length):
12247 (message_dolog, message2, message2_nolog, set_message): Likewise.
12248 (set_message_1): Cast message string argument to const pointer.
12249 * editfns.c (general_insert_function): Insertion function now
12250 takes pointer to const for input data.
12251 * charset.h (find_charset_in_text, c_string_width):
12252 (parse_str_as_multibyte): Declarations updated.
12253 * dispextern.h (xstricmp): Declaration updated.
12254 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12255 (count_size_as_multibyte, count_combining_before):
12256 (count_combining_after, insert_1, insert_1_both, message_dolog):
12257 (insert, insert_and_inherit, insert_before_markers)
12258 (insert_before_markers_and_inherit, set_message, message2):
12259 (message2_dolog, build_string, make_string, make_unibyte_string):
12260 (make_multibyte_string, intern, oblookup, report_file_error):
12261 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12262 (emacs_open, xstrdup): Declarations updated.
12263 * systime.h (set_file_times): Declaration updated.
12264
12265 * charset.c (find_charset_in_text, lisp_string_width): Use const
12266 for pointer to lisp string data.
12267 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12268 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12269 * coding.c (Ffind_coding_systems_region_interval):
12270 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12271 (Fmake_directory_internal, Fdelete_directory):
12272 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12273 * fontset.c (font_family_registry, fs_query_fontset):
12274 (list_fontsets):
12275 * frame.c (Fframe_parameter):
12276 * keyboard.c (cmd_error_internal):
12277 * keymap.c (Fdescribe_buffer_bindings):
12278 * lread.c (complete_filename_p, openp):
12279 * minibuf.c (Fminibuffer_complete_word):
12280 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12281 (face_before_or_after_it_pos, next_element_from_string):
12282 (get_overlay_arrow_glyph_row, display_mode_element):
12283 (decode_mode_spec_coding):
12284 * xterm.c (same_x_server): Likewise.
12285
12286 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12287 settings of non-existent fields.
12288
12289 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12290 copy a lisp value.
12291
12292 * lread.c (Fintern_soft): Use string macros instead of
12293 Lisp_String fields.
12294 * keyboard.c (echo_char, parse_modifiers_uncached):
12295 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12296 * textprop.c (validate_interval_range, interval_of): Likewise.
12297
12298 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12299
12300 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12301 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12302 XSTRING()->size_byte.
12303
12304 * lisp.h (SDATA, SREF): Produce rvalue.
12305 (SSET): New macro.
12306 * alloc.c (make_event_array): Use SSET for storing into a string.
12307 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12308 a string.
12309 * casefiddle.c (casify_object): Use SSET.
12310 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12311 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12312 address of string contents.
12313 * data.c (Faref): Use SDATA.
12314 (Faset): Use SDATA, SSET.
12315 * dired.c (directory_files_internal): Use SSET.
12316 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12317 (Fread_file_name): Use SREF, SSET.
12318 * fns.c (concat): Use SSET.
12319 (concat, Fdelete): Use SDATA.
12320 * insdel.c (insert_from_string_1): Use SDATA.
12321 * keyboard.c (Fevent_convert_list): Use SREF.
12322 * lread.c (Fload): Use SDATA, SSET.
12323 * macfns.c (validate_x_resource_name): Use SSET.
12324 * process.c (status_message): Use SSET.
12325 * search.c (wordify): Use SDATA.
12326 (Freplace_match): Use SREF.
12327 * w32fns.c (validate_x_resource_name): Use SSET.
12328 * xfns.c (validate_x_resource_name): Use SSET.
12329 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12330
123312002-07-16 Richard M. Stallman <rms@gnu.org>
12332
12333 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12334
12335 * xdisp.c (reconsider_clip_changes):
12336 Don't test prevent_redisplay_optimizations_p.
12337 (redisplay_internal): Test prevent_redisplay_optimizations_p
12338 along with clip_changed in some cases.
12339 (try_window_id): Likewise.
12340 (redisplay_window): New local var buffer_unchanged_p.
12341
12342 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12343
12344 * process.c (create_process): Test USG_SUBTTY_WORKS.
12345 (process_send_signal): Clean up handling of GID.
12346 Detect errors in ioctls meant to set GID.
12347
12348 * window.c (temp_output_buffer_show):
12349 Don't set prevent_redisplay_optimizations_p.
12350
123512002-07-15 Juanma Barranquero <lektu@terra.es>
12352
12353 * eval.c (Fdefvaralias): Add docstring argument.
12354
123552002-07-15 Ken Raeburn <raeburn@gnu.org>
12356
12357 * lisp.h (STRING_INTERVALS): Produce rvalue.
12358 (STRING_SET_INTERVALS): New macro.
12359 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12360 * fns.c (Fstring_as_multibyte): Likewise.
12361 * intervals.c (balance_possible_root_interval, delete_interval)
12362 (create_root_interval, copy_intervals_to_string): Likewise.
12363 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12364 instead of 0.
12365
123662002-07-14 Ken Raeburn <raeburn@gnu.org>
12367
12368 * lisp.h (STRING_SET_CHARS): New macro.
12369 (SCHARS, SBYTES): Produce rvalues.
12370 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12371 * fns.c (concat): Likewise.
12372 * lread.c (read_vector): Likewise.
12373
12374 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12375 (STRING_SET_UNIBYTE): New macro.
12376 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12377 length of -1) changed to use STRING_SET_UNIBYTE.
12378 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12379 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12380 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12381 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12382 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12383 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12384 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12385 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12386 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12387 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12388 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12389 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12390 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12391 unchanged for now.
12392
123932002-07-13 Kim F. Storm <storm@cua.dk>
12394
12395 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12396
123972002-07-12 Richard M. Stallman <rms@gnu.org>
12398
12399 * fileio.c (Fwrite_region): Doc fix.
12400
12401 * print.c (print_error_message): Don't handle Vsignaling_function here.
12402
12403 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12404 (command_loop_1): Avoid certain actions after memory-full error.
12405
12406 * eval.c (Fsignal): Don't call cancel_hourglass.
12407 For a memory-full error, don't call Vsignal_hook_function
12408 and don't set Vsignaling_function.
12409
12410 * process.c (process_send_signal): Add abort call.
12411
124122002-07-11 Markus Rost <rost@math.ohio-state.edu>
12413
12414 * keymap.c (Fkey_binding): Fix typo.
12415
124162002-07-11 Richard M. Stallman <rms@gnu.org>
12417
12418 * alloc.c (Vmemory_full): New variable.
12419 (Vmemory_signal_data): Renamed from memory_signal_data.
12420 Uses changed.
12421 (syms_of_alloc): Defvar them.
12422 (memory_full, buffer_memory_full): Set Vmemory_full.
12423
12424 * lisp.h (Vmemory_full): Add declaration.
12425 (current_column, indented_beyond_p): Change declaration.
12426
12427 * indent.c (last_known_column): Declare as double, not float.
12428 (current_column, current_column_1, string_display_width)
12429 (position_indentation): Return `double'.
12430 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12431
12432 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12433 (back_to_previous_visible_line_start)
12434 (reseat_at_next_visible_line_start, next_element_from_buffer):
12435 Use `double', not `float', when calling indented_beyond_p.
12436
12437 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12438
12439 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12440
124412002-07-11 Juanma Barranquero <lektu@terra.es>
12442
12443 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12444 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12445 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12446 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12447 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12448 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12449
124502002-07-10 Juanma Barranquero <lektu@terra.es>
12451
d814862a
JB
12452 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12453 All callers changed.
048addec
JD
12454
124552002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12456
12457 * data.c (Fdefalias): Add an optional `docstring' argument.
12458 (set_internal, Fsetq_default): Use XCAR/XCDR.
12459
12460 * composite.c (HASH_VALUE, HASH_KEY):
12461 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12462
124632002-07-09 Kenichi Handa <handa@etl.go.jp>
12464
12465 * callproc.c (Fcall_process): Fix previous change.
12466
124672002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12468
12469 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12470 Add support for hash-tables.
12471 (Ftry_completion): Return t even if the string appears multiple times.
12472
12473 * fns.c (Fnconc): Use XCDR.
12474 (Fprovide): Use CONSP and XCDR.
12475 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12476 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12477 (Fmake_hash_table): Accept `:size nil'.
12478 (Fmakehash): Delete: moved to subr.el.
12479 (syms_of_fns): Don't defsubr makehash.
12480
12481 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12482 (HASH_TABLE_SIZE): Move from fns.c.
12483
124842002-07-07 Richard M. Stallman <rms@gnu.org>
12485
12486 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12487 Instead just return 0 when there is something to be done.
12488 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12489 retry scrolling as if cursor were off the bottom.
12490 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12491 return CURSOR_MOVEMENT_MUST_SCROLL.
12492 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12493 go to try_to_scroll.
12494
12495 * buffer.c (Fbuffer_local_value): Store current value into its binding
12496 so we get the up-to-date value for the binding that is loaded.
12497
12498 * eval.c (Fdefmacro): Doc fix.
12499
125002002-07-05 Dave Love <fx@gnu.org>
12501
12502 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12503 correctly.
12504
12505 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12506 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12507 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12508 CCL_LookupCharConstTbl.
12509 (syms_of_ccl): Defvar translation-hash-table-vector.
12510
125112002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12512
12513 * xdisp.c: Remove unused variable `face'.
12514
125152002-07-04 Juanma Barranquero <lektu@terra.es>
12516
12517 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12518 obsolescence information.
12519
125202002-07-03 Andrew Choi <akochoi@shaw.ca>
12521
12522 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12523 pattern. Search cache first.
12524 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12525 for Japanese font.
12526 (XLoadQueryFont): Use it.
12527
125282002-07-02 Richard M. Stallman <rms@gnu.org>
12529
12530 * keymap.c (Fdefine_key): Doc fix.
12531
12532 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12533
125342002-07-02 Juanma Barranquero <lektu@terra.es>
12535
12536 * keymap.c (syms_of_keymap): Fix typo.
12537
125382002-07-01 Andrew Choi <akochoi@shaw.ca>
12539
12540 * s/darwin.h: Define POSIX_SIGNALS.
12541
12542 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12543 and FSRefMakePath to convert FSSpec returned with Apple Event to
12544 Posix pathname.
12545 (mac_initialize) [TARGET_API_MAC_CARBON]:
12546 Call init_required_apple_events and disable the `Quit' menu item
12547 provided automatically by the Carbon Toolbox.
12548
125492002-07-01 Dave Love <fx@gnu.org>
12550
12551 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12552 for K&R.
12553
12554 * xterm.c: Fix prototype for K&R.
12555
12556 * term.c (costs_set): Declare static, non-initialized for pcc.
12557
125582002-07-01 Richard M. Stallman <rms@gnu.org>
12559
12560 * keyboard.c (timer_last_idleness_start_time): New variable.
12561 (timer_start_idle): Set that.
12562 (read_key_sequence): Use that to reset timer_idleness_start_time
12563 to previous value.
12564
12565 * window.c (Frecenter): With arg, set optional_new_start.
12566
12567 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12568
12569 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12570 buffer for completion.
12571
125722002-06-29 Ken Raeburn <raeburn@gnu.org>
12573
12574 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12575
125762002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12577
12578 * keyboard.c (readable_filtered_events): New function that filters
12579 FOCUS_IN_EVENT depending on parameter.
12580 (readable_events): Calls readable_filtered_events, not filtering
12581 FOCUS_IN_EVENT.
12582 (get_filtered_input_pending): New function, filtering parameter passed
12583 to readable_filtered_events.
12584 (get_input_pending): Calls get_filtered_input_pending, not filtering
12585 FOCUS_IN_EVENT.
12586 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12587 FOCUS_IN_EVENT.
12588
12589 * xterm.h (struct x_output): Add focus_state.
12590
12591 * xterm.c (x_focus_changed): New function.
12592 (x_detect_focus_change): New function.
12593 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12594 EnterNotify and LeaveNotify to track X focus changes.
12595
125962002-06-28 Andreas Schwab <schwab@suse.de>
12597
12598 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12599
126002002-06-27 Kim F. Storm <storm@cua.dk>
12601
12602 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12603 (mode_line_string_face_prop): New variables.
12604 (store_mode_line_string): New function.
12605 (display_mode_element): Use store_mode_line_string to
12606 add mode-line string elements to mode_line_string_list
12607 when mode_line_string_list is non-nil.
12608 (Fformat_mode_line): Now returns propertized string by
12609 default. New arg NO-PROPS to ignore properties.
12610 (decode_mode_spec): Only add two dashes for %- in propertized
12611 mode-line string.
12612 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12613
126142002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12615
12616 * minibuf.c (minibuffer_completion_contents): Add return type.
12617
126182002-06-27 Juanma Barranquero <lektu@terra.es>
12619
12620 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12621
126222002-06-26 Juanma Barranquero <lektu@terra.es>
12623
12624 * fileio.c (read_file_name_cleanup): Add missing return.
12625
126262002-06-26 Richard M. Stallman <rms@gnu.org>
12627
12628 * window.c (Frecenter): Don't set force_start flag.
12629
12630 * minibuf.c (do_completion, Fminibuffer_complete_word)
12631 (Fminibuffer_completion_help): Complete just the text before point.
12632 (minibuffer_completion_contents): New function.
12633
12634 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12635
12636 * frame.c (frames_bury_buffer): Function deleted.
12637
126382002-06-25 Miles Bader <miles@gnu.org>
12639
12640 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12641 the end of callint_message, allow for a terminating '\0'.
12642
126432002-06-24 Juanma Barranquero <lektu@terra.es>
12644
12645 * w32select.c: Include composite.h
12646
12647 * w16select.c: Likewise.
12648
126492002-06-24 Kenichi Handa <handa@etl.go.jp>
12650
12651 * callproc.c (Fcall_process): If code detection is necessary,
12652 call detect_coding directly here.
12653
12654 * coding.c (detect_eol): Preserve coding->cmp_data.
12655
12656 * w16select.c (Fw16_get_clipboard_data):
12657 * w32fns.c (w32_to_x_font):
12658 * w32select.c (Fw32_get_clipboard_data):
12659 * xselect.c (selection_data_to_lisp_data):
12660 * xterm.c (XTread_socket): Disable composition handling.
12661
126622002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12663
12664 * print.c (temp_output_buffer_setup): Kill all local variables.
12665
126662002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12667
12668 * lread.c (Fread): Remove redundant and imprecise declaration.
12669
12670 * xfns.c (check_x_display_info): Use check_x_frame.
12671
12672 * .gdbinit (xprintsym): Use the new `xname' field.
12673 (xsymbol): Use it.
12674
126752002-06-22 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32fns.c (file_dialog_callback): New function.
12678 (Fx_file_dialog): Allow selecting directories as well as files.
12679
126802002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12681
12682 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12683 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12684
126852002-06-17 Andrew Choi <akochoi@shaw.ca>
12686
12687 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12688 black and white before scrolling. Restore frame background and
12689 foreground color after scrolling.
12690 (do_window_update): Call XClearWindow before calling expose_frame.
12691 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12692 FRAME_FOREGROUND_PIXEL of frame.
12693
12694 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12695 test Mac command key as <ALT> key.
12696
126972002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12698
12699 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12700
12701 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12702 Lookup keys in function-key-map immediately so that key-translation-map
12703 can be applied earlier.
12704 Remove function_key_possible and key_translation_possible, replaced
12705 by checking `keytran_start < t'.
12706
12707 * .gdbinit (xsymbol): Use the new `xname' field.
12708
127092002-06-17 Andrew Choi <akochoi@shaw.ca>
12710
12711 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12712 test Mac command key as <ALT> key.
12713
12714 * mac.c (do_applescript): Call initialize_applescript if necessary
12715 when first called. Dispose of result_desc only when there is no error.
12716 (Fdo_applescript): Use %d format specifier instead of %ld.
12717
127182002-06-16 Andrew Choi <akochoi@shaw.ca>
12719
12720 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12721 of FrontWindow for cases keyDown and autoKey.
12722
12723 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12724 Vdefault_fontset to Monaco with mac-roman coding.
12725
12726 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12727 init_process before and after inclusion of Carbon/Carbon.h, resp.
12728
12729 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12730 cursor_gc.
12731 (add_font_name_table_entry): New function.
12732 (init_font_name_table): Use add_font_name_table_entry; add italic,
12733 bold, and bold-italic entries for truetype fonts.
12734
12735 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12736 for Mac too.
12737 (try_font_list) [MAC_OS]: If no font matches given registry, try
12738 fonts with any registry matching face_family.
12739 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12740
12741 * s/darwin.h: If autoconf detects the Ncurses library, define
12742 LIBS_TERMCAP to -lncurses to use it.
12743
127442002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12745
12746 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12747
127482002-06-15 Richard M. Stallman <rms@gnu.org>
12749
12750 * window.c (Fset_window_configuration): Explicitly preserve
12751 the point value that new_current_buffer had at the start.
12752
127532002-06-14 Juanma Barranquero <lektu@terra.es>
12754
12755 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12756 Fix typos.
12757
127582002-06-14 Kim F. Storm <storm@cua.dk>
12759
12760 * insdel.c (insert_1_both, insert_from_string_1)
12761 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12762 insert happened in the end_unchanged region. Otherwise, the
12763 redisplay may be confused and duplicate the last line in the
12764 buffer [seen after save-buffer when require-final-newline==t].
12765
127662002-06-13 Jason Rumney <jasonr@gnu.org>
12767
12768 * w32.c (init_environment): Remove EMACSLOCKDIR.
12769 (stat): Swap _S_IFDIR and _S_IFREG.
12770
127712002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12772
12773 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12774 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12775 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12776 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12777 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12778 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12779 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12780 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12781 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12782 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12783 SELECTION_REQUEST_EVENT, selection_clear_event to
12784 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12785 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12786 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12787 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12788 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12789 no_event to NO_EVENT.
12790
127912002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12792
12793 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12794
127952002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12796
12797 * intervals.c (textget): Don't forget to `return'.
12798 (lookup_char_property): Use XCAR/XCDR.
12799
128002002-06-12 Juanma Barranquero <lektu@terra.es>
12801
12802 * xdisp.c (Fformat_mode_line): Fix typo.
12803
128042002-06-12 Kim F. Storm <storm@cua.dk>
12805
12806 * xdisp.c (Fformat_mode_line): New function.
12807 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12808 (store_frame_title_char, store_frame_title): Use unconditionally.
12809 (init_xdisp): Defsubr Fformat_mode_line.
12810 Initialize frame_title_buf etc. unconditionally.
12811
128122002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12813
12814 * keyboard.c (read_key_sequence):
12815 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12816 things through those maps after downcasing events.
12817 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12818 applies after function-key-map.
12819 Make sure that keytran can be done in the middle in the sequence.
12820 Be careful not to throw away events past the one we downcase.
12821
12822 * lread.c (read_integer): Remove unused var `tem'.
12823 (read1): Fix int/Lisp_Object mixup.
12824
12825 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12826
128272002-06-11 Richard M. Stallman <rms@gnu.org>
12828
12829 * keyboard.c (readable_events): Ignore any number of
12830 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12831
128322002-06-09 Miles Bader <miles@gnu.org>
12833
12834 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12835 (parse_rgb_list, tty_lookup_color): New functions.
12836 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12837 (color_distance, Fcolor_distance): New functions.
12838 (TTY_SAME_COLOR_THRESHOLD): New macro.
12839 (Qtty_color_standard_values): New variable.
12840 (syms_of_xfaces): Initialize new vars & functions.
12841
128422002-06-08 Colin Walters <walters@verbum.org>
12843
12844 * textprop.c (Vchar_property_alias_alist): New variable.
12845 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12846
12847 * intervals.c (lookup_char_property): New function for looking up
12848 overlay and text properties, created from textget.
12849 (textget): Use it.
12850
12851 * intervals.h (lookup_char_property): Declare.
12852 (Vchar_property_alias_alist): Declare.
12853
12854 * buffer.c (Foverlay_get): Use lookup_char_property.
12855
128562002-06-07 Sam Steingold <sds@gnu.org>
12857
12858 * xselect.c (lisp_data_to_selection_data): Fix last change:
12859 *data_ret is not a Lisp string, while unibyte_string is.
12860
128612002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12862
12863 * xselect.c (lisp_data_to_selection_data): Fix last change:
12864 set size_ret.
12865
128662002-06-07 Andreas Schwab <schwab@suse.de>
12867
12868 * m/amdx86-64.h: New file.
12869
128702002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12871
12872 * fns.c (Fstring_make_unibyte): Doc fix.
12873
12874 * xselect.c (lisp_data_to_selection_data): If the requested type
12875 is STRING, call string_make_unibyte to encode the selected text
12876 as a string.
12877
12878 * window.c (Fset_window_hscroll): Doc fix.
12879
128802002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12881
12882 * fileio.c (choose_write_coding_system):
12883 Call select-safe-coding-system properly.
12884
128852002-06-03 Richard M. Stallman <rms@gnu.org>
12886
12887 * xdisp.c (message_with_string): Error if STRING is not a string.
12888
12889 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12890
12891 * fileio.c (choose_write_coding_system): Pass FILE arg to
12892 Vselect_safe_coding_system_function.
12893
128942002-06-03 Ken Raeburn <raeburn@gnu.org>
12895
12896 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12897
128982002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12899
12900 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12901 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12902 * keymap.c (describe_command): Likewise.
12903 * minibuf.c (read_minibuf): Likewise.
12904
12905 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12906 Cast `current_column' return value to int.
12907 (back_to_previous_visible_line_start)
12908 (reseat_at_next_visible_line_start, next_element_from_buffer):
12909 Cast `indented_beyond_p' 3rd arg to float.
12910
12911 * indent.c (last_known_column): Now a float.
12912 (current_column_1, position_indentation, current_column)
12913 (string_display_width): Return float.
12914 (Fcurrent_column): Cast `current_column' return value to int.
12915 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12916 (indented_beyond_p): Third arg now a float.
12917 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12918
12919 * lisp.h (current_column): Now returns float.
12920 (indented_beyond_p): 3rd arg now a float.
12921
129222002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12923
12924 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12925 is Qcompound_text_with_extensions.
12926
12927 * xselect.c (lisp_data_to_selection_data): Always set selection
12928 type as string if x_encode_text returns streingp non-NULL.
12929
12930 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12931
129322002-05-30 Richard M. Stallman <rms@gnu.org>
12933
12934 * window.c (Fset_window_configuration): Correct the handling
12935 of point in current buffer, to work with multiple windows.
12936
129372002-05-29 Colin Walters <walters@verbum.org>
12938
12939 * lread.c (Fread_from_string): Don't depend on order of evaluation
12940 for C function parameters.
12941
129422002-05-28 Richard M. Stallman <rms@gnu.org>
12943
12944 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12945 way for blinked-off state and for a nonselected window.
12946
12947 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12948 instead, see if the new start pos is at beginning of line.
12949
12950 * fileio.c (Fwrite_region): If START is a string, don't
12951 make any annotations.
12952
12953 * eval.c (syms_of_eval): Doc fix.
12954
129552002-05-28 Colin Walters <walters@debian.org>
12956
12957 * emacs.c (USAGE1): Add --no-splash.
12958 (standard_args): Ditto.
12959
129602002-05-28 Colin Walters <walters@gnu.org>
12961
12962 * lread.c (readchar_count): New variable.
12963 (readchar): Increment it.
12964 (unreadchar): Decrement it.
12965 (read_multibyte): Decrement it.
12966 (Vread_with_symbol_positions): New variable.
12967 (Vread_symbol_positions_list): New variable.
12968 (read_internal_start): New function, created from Fread and
12969 Fread_from_string. Handle Vread_symbol_positions_list and
12970 Vread_with_symbol_positions.
12971 (readevalloop, Fread, Fread_from_string): Use it.
12972 (read1): Use readchar_count to add symbol positions to
12973 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12974 (syms_of_lread): DEFVAR_LISP and initialize them.
12975
12976 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12977 (substitute_object_recurse, substitute_object_in_subtree)
12978 (substitute_in_interval): Prototype.
12979 (read_multibyte): Return c if it's less than zero.
12980
129812002-05-28 Kim F. Storm <storm@cua.dk>
12982
12983 * fileio.c (Fread_file_name_internal): Added brute-force
12984 speed up for using predicate file-directory-p.
12985
129862002-05-28 Kim F. Storm <storm@cua.dk>
12987
12988 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12989 New variables.
12990 (syms_of_fileio): DEFVAR_LISP them.
12991 (read_file_name_cleanup): New unwind function.
12992 (Fread_file_name_internal): Only return completions satifying
12993 Vread_file_name_predicate. Temporarily unwind protect and rebind
12994 default-directory while checking completions against the predicate.
12995 (Fread_file_name): Added PREDICATE argument. Specbind it to
12996 Vread_file_name_predicate during completion.
12997 Call Vread_file_name_function to read the file name if non-nil.
12998
12999 * lisp.h (Fread_file_name): Now has 6 args.
13000
13001 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13002 predicate for Fread_file_name when reading directory name.
13003 Supply Qnil for predicate in other calls to Fread_file_name.
13004
130052002-05-26 Miles Bader <miles@gnu.org>
13006
13007 * term.c (tty_capable_p): New function.
13008 * dispextern.h (tty_capable_p): New function declaration.
13009 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13010 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13011
130122002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13013
13014 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13015 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13016 (Vwrite_region_annotate_functions): Docstring fix.
13017
130182002-05-23 Kim F. Storm <storm@cua.dk>
13019
13020 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13021 phys_cursor's hpos is overwritten. This is still not completely
13022 correct, as it doesn't really make sense to use hpos at all to
13023 get the cursor glyph (as that is relative to the width of the
13024 characters on the line, which may have changed during the update).
13025
130262002-05-22 Jason Rumney <jasonr@gnu.org>
13027
13028 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13029 Lisp_Object.
13030 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13031 Use modified enumfont_t struct.
13032
13033 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13034
13035 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13036 Handle the `hbar' cursor type.
13037 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13038
13039 * w32fns.c (Qhbar): New variable.
13040 (x_specified_cursor_type): Use it.
13041
130422002-05-21 Ken Raeburn <raeburn@gnu.org>
13043
13044 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13045 now, when the address is needed.
13046
130472002-05-21 Colin Walters <walters@gnu.org>
13048
13049 * Makefile.in (shortlisp): Add font-core.el.
13050
130512002-05-20 Richard M. Stallman <rms@gnu.org>
13052
13053 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13054
13055 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13056 equivalent key bindings here.
13057
130582002-05-20 Ken Raeburn <raeburn@gnu.org>
13059
13060 Change symbol structure to contain a lisp object for the symbol
13061 name:
13062 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13063 object field named "xname".
13064 (SYMBOL_NAME): New macro.
13065 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13066 name field.
13067 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13068 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13069 instead of name field.
13070 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13071 SYMBOL_NAME instead of XSYMBOL and name field.
13072 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13073 instead of XSYMBOL and name field.
13074 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13075 and SYMBOL_NAME instead of XSYMBOL and name field.
13076 * coding.c (Fread_coding_system, code_convert_region1)
13077 (code_convert_string1, code_convert_string_norecord)
13078 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13079 XSYMBOL and name field.
13080 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13081 (Fmake_variable_buffer_local, Fmake_local_variable)
13082 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13083 of XSYMBOL and name field.
13084 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13085 XSYMBOL and name field.
13086 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13087 instead of XSYMBOL and name field.
13088 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13089 XSYMBOL and name field.
13090 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13091 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13092 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13093 instead of XSYMBOL and name field.
13094 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13095 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13096 (parse_solitary_modifier, Fexecute_extended_command):
13097 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13098 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13099 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13100 of XSYMBOL and name field.
13101 (describe_command, describe_translation): Use SYMBOL_NAME and
13102 assignment instead of XSYMBOL and name field and XSETSTRING.
13103 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13104 instead of XSYMBOL and name field.
13105 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13106 name field and XSETSTRING.
13107 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13108 of XSYMBOL and name field.
13109 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13110 assignment instead of XSYMBOL and name field and XSETSTRING.
13111 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13112 XSTRING instead of XSYMBOL and name field.
13113 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13114 and XSTRING instead of XSYMBOL and name field.
13115 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13116 and XSTRING instead of XSYMBOL and name field.
13117 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13118 XSTRING instead of XSYMBOL and name field.
13119 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13120 of XSYMBOL and name field.
13121 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13122 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13123
131242002-05-19 Ken Raeburn <raeburn@gnu.org>
13125
13126 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13127 and XCDR real rvalues in most configurations.
13128
13129 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13130 Don't take the address of the cdr part of a cons cell; instead, track
13131 the parent cell and call XSETCDR, or set the variable for the head
13132 of the list if we haven't started down the list yet.
13133
131342002-05-19 Richard M. Stallman <rms@gnu.org>
13135
13136 * doc.c (reread_doc_file): Don't ask for confirmation.
13137
131382002-05-18 Jason Rumney <jasonr@gnu.org>
13139
13140 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13141 (xbm_load_image): Use it.
13142 (xbm_load): Ditto.
13143 (xbm_read_bitmap_data): Reverted to xfns.c version.
13144 From David Ponce <david@dponce.com>.
13145
131462002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13147
13148 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13149 2.02 and later.
13150
131512002-05-16 Juanma Barranquero <lektu@terra.es>
13152
13153 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13154
131552002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13156
13157 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13158 meaningful test.
13159 (read_char_minibuf_menu_prompt): Fix typo.
13160
131612002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13162
13163 * eval.c (Fcommandp): Doc fix.
13164
131652002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13166
13167 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13168 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13169 (Fset_keymap_parent): Gcpro a bit more.
13170 (access_keymap): Gcpro around meta_map call and around the main loop.
13171 (get_keyelt): Gcpro when following indirect references.
13172 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13173 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13174 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13175 Remove useless ad-hoc remap code.
13176
131772002-05-13 Richard M. Stallman <rms@gnu.org>
13178
13179 * search.c (search_buffer): Give up boyer moore search if inverse
13180 translation change charset_base.
13181
131822002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13183
13184 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13185 characters is carried over from the previous block of text, adjust
13186 coding->produced to account for the extra character.
13187
131882002-05-11 Andreas Schwab <schwab@suse.de>
13189
13190 * coding.c (intersection): Keep the elements of the returned list
13191 in the same order as in the first list.
13192
131932002-05-11 Kim F. Storm <storm@cua.dk>
13194
13195 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13196 only update cmm_size if realloc actually succeeds.
13197 Testing with initial size of 2 elements revealed that using
13198 realloc on GNU/Linux would cause a random trap in xmalloc
13199 later on, so I rewrote the code to use malloc/bcopy/free instead
13200 of realloc.
13201
132022002-05-10 Jason Rumney <jasonr@gnu.org>
13203
13204 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13205
132062002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13207
13208 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13209 parens, to ensure correct evaluation order.
13210
132112002-05-10 Kim F. Storm <storm@cua.dk>
13212
13213 * keymap.c (Vemulation_mode_map_alists): New variable.
13214 (syms_of_keymap): DEFVAR_LISP it.
13215 (current_minor_maps): Process keymap alists in that list before
13216 minor-mode-overriding-map-alist and minor-mode-map-alist.
13217
132182002-05-09 Richard M. Stallman <rms@gnu.org>
13219
13220 * search.c (Freplace_match): Doc fix.
13221
132222002-05-09 Kim F. Storm <storm@cua.dk>
13223
13224 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13225 Enlarge cursor rectangle drawn around image with non-zero relief.
13226
13227 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13228 Enlarge cursor rectangle drawn around image with non-zero relief.
13229
13230 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13231 Enlarge cursor rectangle drawn around image with non-zero relief.
13232
132332002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13234
13235 * xselect.c (lisp_data_to_selection_data): Don't set selection
13236 type if comes from the Lisp object's car. If the selection
13237 contains a pure ASCII text, always return QSTRING as its type.
13238
132392002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13240
13241 * mac.c (mac-cut-function): Doc fix.
13242
132432002-05-05 Richard M. Stallman <rms@gnu.org>
13244
13245 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13246
132472002-05-04 Jason Rumney <jasonr@gnu.org>
13248
13249 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13250 for event-click-count.
13251
13252 * process.c (init_process): Only add server subfeature if we can
13253 use non-blocking I/O.
13254
132552002-05-04 Andrew Choi <akochoi@shaw.ca>
13256
13257 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13258 repeatedly.
13259
132602002-05-03 Jason Rumney <jasonr@gnu.org>
13261
13262 * process.c (Fmake_network_process): Only support server sockets
13263 when we can make them non-blocking.
13264
13265 * s/ms-w32.h (HAVE_SELECT): Define.
13266
13267 * w32.h (FILE_NDELAY): New flag.
13268
13269 * w32.c (sys_getpeername, fcntl): New functions.
13270 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13271
13272 * w32proc.c: include sys/file.h.
13273
132742002-05-03 Colin Walters <walters@verbum.org>
13275
13276 * callproc.c (Vgame_score_directory): Renamed to
13277 Vshared_game_score_directory.
13278
132792002-04-30 Richard M. Stallman <rms@gnu.org>
13280
13281 * s/gnu.h [emacs]: Include stdio.h.
13282 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13283
13284 * eval.c (do_autoload): Error if called while preparing to dump.
13285
13286 * fns.c (Frequire): Error if need to load while preparing to dump.
13287
132882002-04-28 Colin Walters <walters@verbum.org>
13289
13290 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13291 Default to "~/.emacs.d/games".
13292
132932002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13294
13295 * lread.c (openp): Change arg exec_only to predicate.
13296 (build_load_history): Use XCAR/XCDR.
13297 (Flocate_file_internal): New fun.
13298 (syms_of_lread): Defsubr it.
13299 (Fload): Update call to openp.
13300
13301 * lisp.h (openp): Update prototype.
13302
13303 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13304 * w32proc.c (sys_spawnve):
13305 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13306 * w32.c (check_windows_init_file):
13307 * sound.c (Fplay_sound_internal):
13308 * process.c (Fstart_process):
13309 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13310 * mac.c (run_mac_command):
13311 * emacs.c (init_cmdargs):
13312 * callproc.c (Fcall_process): Update call to openp.
13313
13314 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13315
13316 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13317
133182002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13319
13320 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13321 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13322
133232002-04-28 Richard M. Stallman <rms@gnu.org>
13324
13325 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13326
13327 * eval.c (Fcommandp): New arg for_call_interactively.
13328 * lisp.h (Fcommandp): Declare new arg.
13329
133302002-04-28 Jason Rumney <jasonr@gnu.org>
13331
13332 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13333
13334 * w32.c (stat, fstat): Use file index information to generate
13335 inodes for directories where available.
13336
133372002-04-26 Andrew Choi <akochoi@shaw.ca>
13338
13339 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13340 [HAVE_CARBON]: Include Mac object files.
13341
13342 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13343 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13344 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13345 MAC_OSX, and MAC_OS instead of macintosh.
13346
13347 * editfns.c [MAC_OS8]: Include stdio.h.
13348
13349 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13350
13351 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13352 Apple Monaco.
13353
78819ebb 13354 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13355 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13356 calling select.
13357
13358 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13359
13360 * tparam.c [MAC_OSX]: Don't define BC and UP.
13361
13362 * config.in [HAVE_CARBON]: Add.
13363
13364 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13365 Move here from mac/src and mac/inc.
13366
13367 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13368
133692002-04-26 Gerd Moellmann <gerd@gnu.org>
13370
13371 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13372 Compute phys_cursor_width from the x position returned
13373 by x_draw_glyhs, which is cheaper.
13374 (x_display_and_set_cursor): Compute the buffer-local value
13375 of `cursor-in-non-selected-windows' only when needed.
13376
133772002-04-25 Gerd Moellmann <gerd@gnu.org>
13378
13379 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13380 cursor on a stretch glyph has a width that depends on
13381 x_stretch_cursor_p.
13382
133832002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13384
13385 * abbrev.c (abbrev-start-location): Doc fix.
13386
13387 * indent.c (Fvertical_motion): Fix last change.
13388
133892002-04-25 Gerd Moellmann <gerd@gnu.org>
13390
13391 * indent.c (Fvertical_motion): Move to the start of the line
13392 containing PT before moving up or down.
13393
133942002-04-24 Gerd Moellmann <gerd@gnu.org>
13395
13396 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13397 case of writing a whole row, more or less analogous to the case of
13398 writing only parts of a row.
13399
13400 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13401 0 for NO_CURSOR.
13402
13403 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13404
134052002-04-23 Colin Walters <walters@verbum.org>
13406
13407 * buffer.c (syms_of_buffer): Doc fix.
13408
134092002-04-23 Gerd Moellmann <gerd@gnu.org>
13410
13411 * xterm.c (notice_overwritten_cursor): Handle the special case
13412 of the cursor being in the first blank non-text line at the
13413 end of a window.
13414
13415 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13416 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13417 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13418 bar cursors only, to make phys_cursor_width contain what its name
13419 suggests.
13420 (notice_overwritten_cursor): Consider the cursor image erased if
13421 the output area intersects the cursor image in y-direction.
13422
134232002-04-23 Simon Marshall <simon@gnu.org>
13424
13425 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13426 to XC_hand2.
13427
134282002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13429
13430 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13431
134322002-04-22 Kim F. Storm <storm@cua.dk>
13433
13434 * textprop.c (remove_properties): Fixed trap for malformed plist.
13435
134362002-04-22 Richard M. Stallman <rms@gnu.org>
13437
13438 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13439
13440 * window.c (make_window): Initialize height_fixed_p,
13441 last_cursor_off_p, and p->cursor_off_p slots.
13442
134432002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13444
13445 * fns.c (use-dialog-box): Doc fix.
13446
134472002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13448
13449 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13450 variables `row', `i' and `area'.
13451 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13452 toolkit library.
13453
134542002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13455
13456 * xfaces.c (clear_font_table): Don't free the default font of
13457 a frame even if it's on another display.
13458 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13459 that could be Qt.
13460
134612002-04-19 Juanma Barranquero <lektu@terra.es>
13462
13463 * indent.c (Fmove_to_column): Remove unused local variable
13464 `next_boundary_byte'.
13465 (current_column_1): Likewise.
13466
134672002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13468
13469 * msdos.c (Qhbar): New variable.
13470 (syms_of_msdos): Intern and staticpro it.
13471 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13472 cursor type.
13473
134742002-04-19 Dave Lambert <dlambert@acm.org>
13475
13476 Theses change implement an underscore-like (`hbar') cursor.
13477
13478 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13479
13480 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13481 Handle the `hbar' cursor type.
13482 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13483
13484 * xfns.c (Qhbar): New variable.
13485 (syms_of_xfns): Intern and staticpro it.
13486 (x_specified_cursor_type): Handle `hbar' cursor.
13487
13488 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13489 not defined.
13490
134912002-04-18 Richard M. Stallman <rms@gnu.org>
13492
13493 * textprop.c (remove_properties): New arg LIST allows scanning
13494 either a list or a plist.
13495 (interval_has_some_properties_list): New function, like
13496 interval_has_some_properties using list instead of plist.
13497 All callers changed.
13498 (Fremove_list_of_text_properties): New function.
13499 (syms_of_textprop): Defsubr it.
13500
135012002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13502
13503 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13504
135052002-04-17 Juanma Barranquero <lektu@terra.es>
13506
13507 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13508
135092002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13510
13511 * window.c (coordinates_in_window): Don't report on margin area
13512 if its width is zero.
13513
135142002-04-16 Jason Rumney <jasonr@gnu.org>
13515
13516 * w32fns.c (Fx_file_dialog): Decode file name before using.
13517
13518 * w32term.c (construct_drag_n_drop): Likewise.
13519
135202002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13521
13522 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13523 store load-history in pure space.
13524
13525 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13526
135272002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13528
13529 * xterm.c (Qlatin_1, Qutf_8): New vars.
13530 (syms_of_xterm): Initialize them.
13531 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13532 decoding the output of X*LookupString.
13533 Always use latin-1 to decode the output of XLookupString.
13534 Try Xutf8LookupString if XmbLookupString failed.
13535
13536 * region-cache.c (new_region_cache): Use BEG.
13537
135382002-04-16 Gerd Moellmann <gerd@gnu.org>
13539
13540 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13541 configuration files.
13542 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13543 returns 0.
13544
135452002-04-15 Andreas Schwab <schwab@suse.de>
13546
13547 * config.in: Regenerated using autoheader.
13548
13549 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13550 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13551 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13552 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13553 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13554 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13555 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13556 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13557 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13558 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13559 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13560 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13561 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13562 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13563 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13564 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13565 STACK_DIRECTION, now set by autoconf.
13566
135672002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13568
13569 * dispnew.c (marginal_area_string): Sort arguments.
13570
13571 * dispextern.h (marginal_area_string): Add prototype.
13572
135732002-04-13 Richard M. Stallman <rms@gnu.org>
13574
13575 * fileio.c (Finsert_file_contents):
13576 Don't call temp_output_buffer_setup--do just part, by hand.
13577
13578 * coding.c (run_pre_post_conversion_on_str):
13579 Don't call temp_output_buffer_setup--do just part, by hand.
13580
13581 * keyboard.c (command_loop_1): Don't call start_hourglass
13582 or cancel_hourglass when executing a macro.
13583
13584 * marker.c (count_markers): New function.
13585
13586 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13587 grow without limit. Move recently used elements to the front.
13588
135892002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13590
13591 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13592
135932002-04-12 Gerd Moellmann <gerd@gnu.org>
13594
13595 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13596 rows marginal areas.
13597 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13598 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13599
13600 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13601
136022002-04-12 Dave Love <fx@gnu.org>
13603
13604 * dispnew.c (marginal_area_string): New.
13605
13606 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13607 (Qleft_margin, Qright_margin): Declare.
13608 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13609
13610 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13611 note_mode_line_highlight and extended.
13612
13613 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13614 (make_lispy_event): Deal with mouse events in margins.
13615
136162002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13617
13618 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13619
13620 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13621 than deactivating the mark if tmm is set to `lambda'.
13622 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13623 Use a single event for HELP_EVENT.
13624 (Fexecute_extended_command): Save last_point_position.
13625
136262002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13627
13628 * lisp.h (Fpropertize): Add prototype.
13629
13630 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13631
136322002-04-10 Colin Walters <walters@verbum.org>
13633
13634 * config.in: Add HAVE_SHARED_GAME_DIR.
13635
13636 * callproc.c: (Vgame_score_directory): New variable.
13637 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13638
136392002-04-10 Richard M. Stallman <rms@gnu.org>
13640
13641 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13642
136432002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13644
13645 * minibuf.c (read_minibuf): Use empty_string.
13646 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13647 Short-circuit the search as soon as it "failed".
13648 (Fall_completions): Allow lambda forms and lists of strings for alist.
13649 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13650 when require_match is nil.
13651 (Ftest_completion): Rename from `test_completion' and export to elisp.
13652 Call the predicate also when alist is a list.
13653 Obey Vcompletion_regexp_list.
13654 (do_completion, Fminibuffer_complete_and_exit): Use it.
13655 (Fassoc_string): Rename from `assoc_for_completion'.
13656 Allow list of strings as well and export to elisp.
13657
136582002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13659
13660 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13661
136622002-04-08 Juanma Barranquero <lektu@terra.es>
13663
13664 * w32.c (sys_accept): Don't hide variable `s'.
13665
136662002-04-05 Gerd Moellmann <gerd@gnu.org>
13667
13668 * callint.c (Fcall_interactively): Use INTEGERP instead of
13669 NUMBERP for checking Vhistory_length.
13670
136712002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13672
13673 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13674 Doc fix to reflect it.
13675
136762002-04-04 Richard M. Stallman <rms@gnu.org>
13677
13678 * xdisp.c (display_mode_element): New arg RISKY.
13679 Disregard text props found or specified within a variable
13680 that isn't marked risky-local-variable.
13681 (Qrisky_local_variable): New variable.
13682 (syms_of_xdisp): Init and staticpro it.
13683
136842002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13685
13686 * undo.c (record_point): New fun.
13687 (record_delete, record_insert): Use it.
13688
136892002-04-03 Juanma Barranquero <lektu@terra.es>
13690
13691 * doc.c (Fdocumentation): Add missing parentheses.
13692 (Fdocumentation_property): Likewise.
13693
136942002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13695
13696 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13697 data is 0, just return nil.
13698
136992002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13700
13701 * msdos.c (syms_of_msdos): Fix last change with
13702 mouse_autoselect_window.
13703
137042002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13705
13706 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13707 mouse_autoselect_window.
13708
137092002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13710
13711 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13712 with system-specific keysyms. Use it also for unknown function keys.
13713
13714 * doc.c (reread_doc_file): Return whether reload was attempted.
13715 (Fdocumentation, Fdocumentation_property): Don't try to reload
13716 if the doc is 0 and only ask once.
13717
13718 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13719
137202002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13721
13722 * keyboard.c (read_char): If the event was Qselect_window,
13723 restore timer_idleness_start_time to its previous value.
13724
13725 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13726
137272002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13728
13729 * region-cache.c (new_region_cache): Use BEG.
13730
13731 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13732 Use BEG and BEG_BYTE.
13733
13734 * doc.c (get_doc_string): Return nil if the location is wrong.
13735 (reread_doc_file): New fun.
13736 (Fdocumentation, Fdocumentation_property):
13737 Call it if get_doc_string fails.
13738 (Fsnarf_documentation): Make it work for a dumped Emacs.
13739
13740 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13741 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13742
13743 * charset.c (Fstring): Allow 0 arguments.
13744
13745 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13746
13747 * process.c (DATAGRAM_CONN_P, list_processes_1)
13748 (Fprocess_datagram_address, Fset_process_datagram_address)
13749 (Fset_network_process_options, server_accept_connection):
13750 Fix some int/Lisp_Object confusions (thank you union types).
13751
137522002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13753
13754 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13755
13756 * w32term.c: Likewise.
13757 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13758
13759 * keyboard.c (Qselect_window): New symbol.
13760 (head_table): Use it.
13761 (keys_of_keyboard): Bound select-window event to handle-select-window.
13762 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13763
13764 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13765 (last_window): New variable.
13766 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13767 (note_mouse_movement): Remove reimplemented code in #if 0.
13768 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13769 Emacs windows.
13770
13771 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13772
137732002-03-31 Gerd Moellmann <gerd@gnu.org>
13774
13775 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13776 Callers changed.
13777
137782002-03-30 Richard M. Stallman <rms@gnu.org>
13779
13780 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13781 loop whenever it stops making progress.
13782
13783 * widget.c (set_frame_size): Don't call change_frame_size.
13784
137852002-03-30 Gerd Moellmann <gerd@gnu.org>
13786
13787 * dispnew.c (direct_output_for_insert):
13788 Call mark_window_display_accurate.
13789
137902002-03-29 Jason Rumney <jasonr@gnu.org>
13791
13792 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13793
137942002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13795
13796 * Makefile.in (lread.o): Depend on coding.h.
13797
13798 * lread.c (openp, Fload): Encode the file name before passing it
13799 to `stat', `access', and `emacs_open'.
13800 (openp): GCPRO the encoded file name. Don't recompute Lisp
13801 strings unnecessarily.
13802
138032002-03-29 Kim F. Storm <storm@cua.dk>
13804
13805 * fns.c (Flax_plist_put): Doc fix.
13806
138072002-03-28 Miles Bader <miles@gnu.org>
13808
13809 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13810
138112002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13812
13813 * process.c (set-network-process-options): Add usage.
13814 (make-network-process): Doc fix.
13815
138162002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13817
13818 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13819
138202002-03-26 Richard M. Stallman <rms@gnu.org>
13821
13822 * fns.c (Fsubstring_no_properties): New function.
13823 (Flax_plist_get, Flax_plist_put): New functions.
13824 (syms_of_fns): defsubr them.
13825
13826 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13827 don't test or alter w->update_mode_line.
13828
13829 * window.c (Fdisplay_buffer): Doc fix.
13830
138312002-03-24 Richard M. Stallman <rms@gnu.org>
13832
13833 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13834
138352002-03-24 Gerd Moellmann <gerd@gnu.org>
13836
13837 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13838 (Fdefmacro): Handle `(declare ...)'.
13839 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13840 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13841
138422002-03-24 Jason Rumney <jasonr@gnu.org>
13843
13844 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13845 (xbm_file_p): Add prototypes.
13846 (xbm_format, xbm_image_p): Sync with xfns.c.
13847 (reflect_byte): New function.
13848 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13849 (xbm_load_image): Create bitmaps with a depth of 1.
13850 (init_xfns): Enable XBM images.
13851
138522002-03-23 Jason Rumney <jasonr@gnu.org>
13853
13854 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13855 correctly. Do not pass up_modifier to keyboard buffer.
13856
13857 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13858
138592002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13860
13861 * Makefile.in (bootstrapclean): New target.
13862 (bootstrap-temacs, bootstrap-doc): Remove.
13863 (bootstrap-emacs): Use a bog-standard `temacs'.
13864 Don't bother to build a DOC file.
13865
13866 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13867
13868 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13869 in temacs even if !CANNOT_DUMP.
13870 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13871
13872 * alloc.c (check_pure_size): Only output a warning.
13873
138742002-03-22 Jason Rumney <jasonr@gnu.org>
13875
13876 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13877 supported.
13878
13879 * w32term.c (zv_bits): Declare as short, for word alignment.
13880 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13881 (syms_of_w32term): Define x-use-underline-position-properties.
13882
13883 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13884 (clear_image_cache): Block input, fix logic, clear matrices in
13885 all frames that share this cache.
13886
138872002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13888
13889 * emacs.c (main): Update the Copyright year in the blurb printed
13890 by "emacs --version".
13891
13892 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13893
13894 * xterm.c (XTread_socket): If XK_ISO_Lock and
13895 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13896 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13897
138982002-03-21 Kim F. Storm <storm@cua.dk>
13899
13900 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13901 menu-bar bindings in keymap and local-map properties _are_ used.
13902 But try keymap property first in accordance with 2002-01-03 patch.
13903 Added comment describing why this is not always reliable.
13904 (tool_bar_items): Ditto for tool-bar.
13905
139062002-03-21 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32fns.c (x_clear_image_1): Disable color table code.
13909
139102002-03-21 Kim F. Storm <storm@cua.dk>
13911
13912 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13913 removed the wrong version of the DEFUN macro; fixed it.
13914
13915 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13916 Fmember rather than Fmemq).
13917 (Fprovide): Check that subfeatures is a list.
13918
13919 * process.c (QCfeature, QCdatagram): Removed variables.
13920 (QCtype, Qdatagram): New variables.
13921 (network_process_featurep): Removed function.
13922 (Fmake_network_process): Removed :feature check.
13923 Use :type 'datagram instead of :datagram t to create a datagram
13924 socket. This allows us to add other connection types (e.g. raw
13925 sockets) later in a consistent manner.
13926 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13927 supported subfeatures for feature make-network-process.
13928 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13929 Intern and staticpro QCtype and Qdatagram.
13930 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13931
13932 * xfns.c: (QCtype): Remove duplicate declaration and
13933 initialization (is now declared in process.c).
13934
13935 * w32fns.c: (QCtype): Remove duplicate declaration and
13936 initialization (is now declared in process.c).
13937
139382002-03-21 Richard M. Stallman <rms@gnu.org>
13939
13940 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13941 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13942 when jumping to `fail' to avoid undoing reg changes in the
13943 last iteration of the loop.
13944 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13945
13946 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13947 Depend on process.h.
13948
139492002-03-20 Jason Rumney <jasonr@gnu.org>
13950
13951 Most of the following changes are still conditional on HAVE_IMAGES
13952 which is not set by default on Windows.
13953
13954 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13955
13956 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13957 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13958 (four_corners_best, x_clear_image_1, x_clear_image)
13959 (x_alloc_image_color, postprocess_image)
13960 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13961 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13962 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13963
13964 * w32gui.h (struct XImage): Define.
13965
13966 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13967 extract mouse co-ordinates.
13968
139692002-03-20 Jason Rumney <jasonr@gnu.org>
13970
13971 * w32.c (init_winsock): Dynamically load new server and UDP
13972 socket functions.
13973 (socket_to_fd): New function.
13974 (sys_socket): Use it.
13975 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13976 (sys_recvfrom, sys_sendto): New wrapper functions.
13977
13978 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13979 and initialization.
13980
13981 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13982
139832002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13984
13985 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13986 Don't use "sun" as a variable, it's a predefined constant on Sun
13987 machines.
13988
139892002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13990
13991 * bytecode.c (Fbyte_code): Revert last change.
13992
139932002-03-19 Kim F. Storm <storm@cua.dk>
13994
13995 * makefile.w32-in (LIBS): Add $(WSOCK32).
13996 From David Ponce <dponce@voila.fr>.
13997
139982002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13999
14000 * process.c (wait_reading_process_input): Move variables `pname'
14001 and `pnamelen' down where they are used.
14002
14003 * bytecode.c (Fbyte_code): Discard unused computed value to
14004 prevent gcc warning.
14005
14006 * lisp.h (Fplist_member): Add prototype.
14007
140082002-03-18 Kim F. Storm <storm@cua.dk>
14009
14010 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14011 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14012
14013 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14014 Remove explicit GNU_LINUX settings for datagram support.
14015
140162002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14017
14018 * process.c (Fmake_network_process): Remove unused variable `sa'.
14019 Doc fix. Add usage:.
14020 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14021
140222002-03-17 Richard M. Stallman <rms@gnu.org>
14023
14024 * xdisp.c (cursor_type_changed): New variable.
14025 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14026 Clear it when clearing windows_or_buffers_changed.
14027 (try_cursor_movement, redisplay_window, try_window_id)
14028 (try_window_reusing_current_matrix): Test cursor_type_changed
14029 along with windows_or_buffers_changed.
14030
14031 * window.h (cursor_type_changed): New variable.
14032
14033 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14034 not update_mode_lines, and always set it to 1.
14035
14036 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14037 if no frames needed redrawing.
14038
140392002-03-17 Kim F. Storm <storm@cua.dk>
14040
14041 The following changes add support for network server processes,
14042 datagram connections, and local (unix) sockets.
14043
14044 * process.h (struct Lisp_Process): New member log.
14045 Doc fix: Member command used to indicate stopped network process.
14046 Doc fix: Member childp contains plist for network process.
14047 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14048
14049 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14050 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14051 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14052 New variables.
14053 (NETCONN1_P): New macro.
14054 (DATAGRAM_SOCKETS): New conditional symbol.
14055 (datagram_address): New array.
14056 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14057 (status_message): Use concat3.
14058 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14059 for a stopped network process.
14060 (Fset_process_buffer): Update contact plist for network process.
14061 (Fset_process_filter): Ditto. Don't enable input for stopped
14062 network processes. Server must listen, even if filter is t.
14063 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14064 New functions.
14065 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14066 (Fprocess_contact): Added KEY argument. Handle datagrams.
14067 (list_processes_1): Optionally show only processes with the query
14068 on exit flag set. Dynamically adjust column widths. Omit tty
14069 column if not needed. Report stopped network processes.
14070 Identify server and datagram network processes.
14071 (Flist_processes): New optional arg `query-only'.
14072 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14073 (conv_lisp_to_sockaddr, set_socket_options)
14074 (network_process_featurep, unwind_request_sigio): New helper functions.
14075 (Fprocess_datagram_address, Fset_process_datagram_address):
14076 (Fset_network_process_options): New lisp functions.
14077 (Fopen_network_stream): Removed. Now defined in simple.el.
14078 (Fmake_network_process): New lisp function. Code is based on previous
14079 Fopen_network_stream, but heavily reworked with new property list based
14080 argument list, support for datagrams, server processes, and local
14081 sockets in addition to old client-only functionality.
14082 (server_accept_connection): New function.
14083 (wait_reading_process_input): Use it to handle incoming connects.
14084 Do not enable input on a new connection if process is stopped.
f63fd14e 14085 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14086 (send_process): Handle datagram sockets.
14087 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14088 network process is indicated by setting command field to t .
14089 (Fprocess_send_eof): No-op if datagram connection.
14090 (Fstatus_notify): Don't read input for a stream server socket or a
14091 stopped network process.
14092 (init_process): Initialize datagram_address array.
14093 (syms_of_process): Intern and staticpro new variables, defsubr new
14094 functions.
14095
140962002-03-16 Jason Rumney <jasonr@gnu.org>
14097
14098 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14099 startup case.
14100
141012002-03-16 Richard M. Stallman <rms@gnu.org>
14102
14103 * xdisp.c (redisplay_internal, redisplay_windows):
14104 Use list_of_error to call internal_condition_case_1.
14105 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14106 so as to catch all errors with no possibility of debugger redisplay.
14107 (list_of_error): New variable.
14108 (syms_of_xdisp): Init and staticpro it.
14109
14110 * print.c (print_object): Delete `\ ' from printed rep of frame.
14111
141122002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14113
14114 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14115 until its implementation is fixed.
14116
141172002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14118
14119 * xfns.c (png_load): Remove unused variable `gamma_str'.
14120
141212002-03-14 Richard M. Stallman <rms@gnu.org>
14122
14123 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14124
141252002-03-14 Miles Bader <miles@gnu.org>
14126
14127 * intervals.c (adjust_for_invis_intang): New function.
14128 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14129 work for dealing with invisible+intangible regions. Do so before
14130 and after both forward and backward movements, to handle both
14131 front-sticky and rear-sticky cases.
14132 * textprop.c (text_property_stickiness): Function moved here from
14133 `editfns.c'.
14134 * intervals.h (text_property_stickiness): New declaration.
14135 * editfns.c (char_property_eq): Function removed.
14136 (text_property_stickiness): Function moved to `textprop.c'.
14137
141382002-03-13 Jason Rumney <jasonr@gnu.org>
14139
14140 * config.in: Add STRFTIME_NO_POSIX2.
14141
14142 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14143 and %OX when underlying strftime does not.
14144
141452002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14146
14147 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14148 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14149 line) to avoid annoying flicker.
14150 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14151 (XTread_socket): Mark it static.
14152
14153 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14154
141552002-03-13 Kim F. Storm <storm@cua.dk>
14156
14157 * puresize.h (BASE_PURESIZE): Increase to 775000.
14158
141592002-03-12 Juanma Barranquero <lektu@terra.es>
14160
14161 * editfns.c (syms_of_editfns): Fix typo.
14162
141632002-03-12 Gerd Moellmann <gerd@gnu.org>
14164
14165 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14166 Include termopt.h for interrupt_input.
14167
141682002-03-11 Andreas Schwab <schwab@suse.de>
14169
14170 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14171
141722002-03-11 Gerd Moellmann <gerd@gnu.org>
14173
14174 * xterm.c (note_mouse_movement): Put code for
14175 x_autoselect_window_p in #if 0.
14176
14177 * lread.c (Fload): Don't assume that message_with_string uses the
14178 string it is given like a C string.
14179
141802002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14181
78819ebb 14182 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14183
14184 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14185 x_session_have_connection.
14186 (x_initialize): Add call to x_session_initialize.
14187
14188 * termhooks.h (enum event_kind): Add save_session_event.
14189
14190 * keyboard.c: Add Emacs event save_session_event.
14191
14192 * emacs.c (main): Add call to syms_of_xsmfns.
14193
78819ebb 14194 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14195
14196 * config.in: Add HAVE_X_SM.
14197
14198 * Makefile.in (LIBXT): Add -lSM -lICE
14199 if HAVE_X_SM and not USE_X_TOOLKIT.
14200 (XOBJ): New file xsmfns.c added.
14201
14202 * xsmfns.c: New file for X session management.
14203
142042002-03-09 Jason Rumney <jasonr@gnu.org>
14205
14206 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14207 read-only when setting modified time.
14208
142092002-03-08 Gerd Moellmann <gerd@gnu.org>
14210
14211 * xdisp.c (move_it_vertically_backward): At the end of the function,
14212 when moving forward by lines, treat terminal frames specially.
14213
14214 * keyboard.c (echo_char): Make sure to add a separator between
14215 keys even if echo_dash hasn't been called.
14216
14217 * xdisp.c: Use new string macros.
14218 (update_echo_area): Pass number of bytes to message3 instead of
14219 number of chars.
14220 (set_message_1): Don't access a string's size_byte directly.
14221 (decode_mode_spec_coding): Use number of bytes of eoltype string
14222 instead number of chars.
14223
14224 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14225
142262002-03-08 Juanma Barranquero <lektu@terra.es>
14227
14228 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14229 24-bit.
14230
142312002-03-06 Jason Rumney <jasonr@gnu.org>
14232
14233 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14234
142352002-03-06 Gerd Moellmann <gerd@gnu.org>
14236
14237 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14238 (cancel_echoing, echo_length, echo_truncate): Changed to
14239 work with new kboard definition.
14240 (echo_now): Use message3_nolog instead of message2_nolog.
14241
14242 * alloc.c (mark_kboards): Mark echo_string.
14243
14244 * keyboard.h (ECHOBUFSIZE): Removed.
14245 (struct kboard): Member echoptr removed, member echobuf renamed
14246 to echo_string.
14247
14248 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14249 message3 instead of message2 to display the message using STRING's
14250 text properties.
14251
142522002-03-05 Andreas Schwab <schwab@suse.de>
14253
14254 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14255
142562002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14257
14258 * frame.c (default-frame-alist): Explain that setting it doesn't
14259 affect existing frames.
14260
142612002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14262
14263 * indent.c (skip_invisible): Fix my brain fart.
14264
14265 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14266
142672002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14268
14269 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14270 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14271 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14272 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14273 and variables to use EMACS_INT instead of just int.
14274
14275 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14276
142772002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14278
14279 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14280 environment, pass it down with corrected value.
14281
142822002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14283
14284 * lread.c (read_filtered_event): Do not call start_hourglass
14285 before returning.
14286
142872002-03-04 Juanma Barranquero <lektu@terra.es>
14288
14289 * w32term.c (x_display_and_set_cursor): Fix typo.
14290
142912002-03-03 Richard M. Stallman <rms@gnu.org>
14292
14293 * fileio.c (Fmake_temp_name): Doc fix.
14294
142952002-03-03 Gary Wong <gtw@gnu.org>
14296
14297 * termcap.c [!emacs]: Replace ospeed for building standalone
14298 libtermcap, for binary compatibility.
14299
14300 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14301
143022002-03-03 Richard M. Stallman <rms@gnu.org>
14303
14304 * xrdb.c (file_p): Rename arg `path' to `filename'.
14305
14306 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14307 only if it is an integer.
14308
14309 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14310 If png_get_sRGB gives an answer, call png_set_gamma
14311 using the default image gamma value.
14312
14313 * lread.c (read1): When reading from a file, default string to
14314 multibyte only if it has some multibyte characters.
14315
14316 * print.c (print_object): Output multibyte chars 128...255
14317 using \x even if ! print_escape_multibyte.
14318
14319 * xdisp.c (display_mode_element): Move the places where
14320 bytepos, charpos, this, and lisp_string are set.
14321 Use lisp_string to set bytepos.
14322
14323 * xdisp.c (redisplay_internal):
14324 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14325
14326 * xdisp.c (display_mode_element): Merge properties specified with
14327 :propertize onto those that come with the string.
14328
143292002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14330
14331 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14332 automatic-hscrolling. Users changed.
14333 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14334 Users changed.
14335 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14336
143372002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14338
14339 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14340
143412002-03-02 Kim F. Storm <storm@cua.dk>
14342
14343 * window.c (Fminibuffer_selected_window): New function.
14344 (syms_of_window): Defsubr it.
14345
143462002-03-01 Kim F. Storm <storm@cua.dk>
14347
14348 * window.h (struct window): New member phys_cursor_width.
14349
14350 * window.c (make_window, replace_window): Init phys_cursor_width.
14351
14352 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14353 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14354
14355 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14356 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14357
14358 * lisp.h (GCPRO6): New macro.
14359
14360 * process.c (Fopen_network_stream): Use GCPRO6.
14361
143622002-03-01 Kim F. Storm <storm@cua.dk>
14363
14364 * process.c (Qconnect, Qfailed): New variables.
14365 (syms_of_process): Intern and staticpro them.
14366 (Fprocess_status): Document connect and failed return values.
14367 [NON_BLOCKING_CONNECT]: New conditional.
14368 (connect_wait_mask, num_pending_connects): New variables.
14369 (status_message): Convert Qfailed status.
14370 (Fopen_network_stream): Added support for non-blocking connect.
14371 New optional args: filter, sentinel, non_blocking. Doc updated.
14372 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14373 (deactivate_process): Handle pending non-blocking connect.
14374 (wait_reading_process_input): Poll for status of non-blocking
14375 connects. Exec sentinel directly when connect succeeds.
14376 (status_notify): Don't read process output if not yet connected.
14377
143782002-02-28 Kim F. Storm <storm@cua.dk>
14379
14380 * window.c: (minibuf_selected_window): Renamed from
14381 Vminibuf_selected_window. Users changed.
14382 (syms_of_window): Staticpro it.
14383
143842002-02-26 Kim F. Storm <storm@cua.dk>
14385
14386 The following changes add a new Vminibuf_selected_window variable
14387 which is similar to Vminibuf_scroll_window, but which is only set
14388 on entry to the minibuffer (from a non-minibuffer window):
14389
14390 * window.c: (Vminibuf_selected_window): New variable.
14391 (struct save_window_data): New member minibuf_selected_window.
14392 (Fset_window_configuration): Restore Vminibuf_selected_window.
14393 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14394 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14395 (compare_window_configurations): Compare minibuf_selected_window.
14396
14397 * window.h: (Vminibuf_selected_window): Declare extern.
14398
14399 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14400 entry to minibuffer or on entry from a non-minibuffer window.
14401
14402 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14403 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14404
14405 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14406 instead of Vminibuf_scroll_window when deciding in which window
14407 the region should be highlighted. Consequently, the region remains
14408 highlighteded even when a completion buffer is also displayed.
14409
144102002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14411
14412 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14413
14414 * xselect.c (Qcompound_text_with_extensions): Renamed from
14415 Qcompound_text_no_extensions.
14416 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14417
144182002-02-26 Juanma Barranquero <lektu@terra.es>
14419
14420 * w32proc.c (syms_of_ntproc): Doc fix.
14421
144222002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14423
14424 * intervals.h: Include "dispextern.h" unconditionally.
14425
144262002-02-24 Jason Rumney <jasonr@gnu.org>
14427
14428 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14429 and disp-table.elc.
14430 (lisp): Add emacs-lisp/backquote.elc.
14431
144322002-02-24 Kim F. Storm <storm@cua.dk>
14433
14434 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14435 The validation of the event type was too strict as it didn't
14436 allow string events; buffer names are used in bindings for
14437 menu-bar-select-buffer (see `menu-bar-update-buffers').
14438
144392002-02-23 Kim F. Storm <storm@cua.dk>
14440
14441 The following changes rework my patch of 2002-02-06 which
14442 added command remapping by entering the commands directly into
14443 the keymaps. Now, command remapping uses an explicit `remap'
14444 prefix in the keymaps, i.e. [remap COMMAND].
14445
14446 * keymap.c (Qremap, remap_command_vector): New variables.
14447 (is_command_symbol): Removed function.
14448 (Fdefine_key): No longer accept a symbol for KEY.
14449 Added validation of [remap COMMAND] argument for KEY.
14450 The DEF is no longer required to be a symbol when remapping a command.
14451 (Fremap_command): New function to remap command through keymaps.
14452 (Flookup_key): Perform command remapping initiated by
14453 Fremap_command directly for speed.
14454 (Fkey_binding): Use Fremap_command for command remapping.
14455 (where_is_internal): Handle new command remapping representation.
14456 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14457 staticpro them. Defsubr Fremap_command.
14458
14459 * keymap.h (Fremap_command): Declare extern.
14460 (is_command_symbol): Remove extern.
14461
14462 * keyboard.c (command_loop_1): Use Fremap_command for command
14463 remapping; now try command remapping for all symbols.
14464
144652002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14466
14467 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14468
144692002-02-23 Jason Rumney <jasonr@gnu.org>
14470
14471 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14472 on the string before encoding it.
14473 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14474 after decoding it.
14475
14476 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14477
144782002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14479
14480 * w32term.c (enter_timestamp): Remove unused static variable to
14481 prevent warning.
14482
14483 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14484
144852002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14486
14487 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14488
14489 * xselect.c (selection_data_to_lisp_data): Fix last change.
14490
144912002-02-22 Jason Rumney <jasonr@gnu.org>
14492
14493 * w32term.h (struct w32_output): New member menu_command_in_progress.
14494
14495 * w32menu.c (menubar_selection_callback): Free the menu and
14496 clear the menu_command_in_progress flag.
14497
14498 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14499 (menu_free_timer): New variable.
14500 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14501 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14502 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14503 menu command is in progress.
14504 <WM_COMMAND>: Set the menu_command_in_progress flag.
14505 Kill any menu_free_timer that is running.
14506
14507 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14508 Call ExtTextOutA rather than ExtTextOut.
14509
145102002-02-22 Eli Zaretskii <eliz@gnu.org>
14511
14512 * puresize.h (BASE_PURESIZE): Increase to 755000.
14513
145142002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14515
14516 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14517 on the string before encoding it.
14518 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14519 after decoding it.
14520
145212002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14522
14523 Support for ICCCM Extended Segments in X selections:
14524
14525 * xselect.c <Qcompound_text_no_extensions>: New variable.
14526 (syms_of_xselect): Intern and staticpro it.
14527 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14528 selection text.
14529 (lisp_data_to_selection_data): If next-selection-coding-system is
14530 compound-text-no-extensions, set the type of selection to be
14531 compound-text.
14532
14533 * xterm.h (x_encode_text): Update prototype.
14534
14535 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14536 callers changed. If SELECTIONP is non-zero, run the
14537 pre-write-conversion function before encoding the selection text.
14538
145392002-02-21 Kim F. Storm <storm@cua.dk>
14540
14541 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14542
14543 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14544 Correct composing of language-change event.
14545
145462002-02-20 Kim F. Storm <storm@cua.dk>
14547
14548 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14549 bindings at PT when building menu (the menu is not updated often
14550 enough for this to work reliable).
14551 (tool_bar_items): Likewise.
14552 (current_active_maps): Removed unused (and buggy) function.
14553
145542002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14555
14556 * xfns.c (gif_load): Use correct width and height for GIF images.
14557
145582002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14559
14560 * floatfns.c (Fatan): Accept an optional second arg and call
14561 atan2 if passed 2 args.
14562
145632002-02-18 Jason Rumney <jasonr@gnu.org>
14564
14565 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14566
145672002-02-17 Jason Rumney <jasonr@gnu.org>
14568
14569 * w32term.c (x_autoselect_window_p): New variable.
14570 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14571 (note_mouse_movement): Use it.
14572
14573 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14574
14575 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14576
14577 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14578 New variables.
14579 (syms_of_w32fns): Intern and staticpro them.
14580 (x_frame_parms) <"fullscreen">: New parameter.
14581 (x_fullscreen_move, x_set_fullscreen): New functions.
14582 (x_set_frame_parameters): Support Qfullscreen.
14583 (x_real_positions): Save x/y_pixels_diff frame params.
14584 (x_figure_window_size): Support full-screen frames.
14585 (Fx_create_frame): Default the fullscreen parameter.
14586
14587 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14588 (x_fullscreen_adjust): New functions.
14589 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14590 fullscreen. Call x_check_fullscreen_move, and set the
14591 want_fullscreen member of output_data.w32
14592 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14593
14594 * w32term.h: New enum for FULLSCREEN_* constants.
14595 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14596 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14597 (x-fullscreen-adjust): New prototype.
14598
145992002-02-17 Kim F. Storm <storm@cua.dk>
14600
14601 * frame.c: (Vmouse_highlight): New variable.
14602 (syms_of_frame): DEFVAR_LISP it.
14603
14604 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14605
048addec 14606 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14607
048addec
JD
14608 * xterm.c (disable_mouse_highlight): Removed variable.
14609 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14610 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14611 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14612 and on after keyboard input.
14613 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14614
048addec 14615 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14616
048addec
JD
14617 * msdos.c (disable_mouse_highlight): Removed variable.
14618 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14619 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14620 (internal_terminal_init): Initialize mouse_face_hidden.
14621 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14622 and on after keyboard input.
4f1b1854 14623
048addec 14624 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14625
048addec
JD
14626 * w32term.c (disable_mouse_highlight): Removed variable.
14627 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14628 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14629 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14630 and on after keyboard input.
14631 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14632
048addec 146332002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14634
048addec
JD
14635 * msdos.c (last_mouse_window): New variable.
14636 (dos_rawgetc): Fix last change--if the mouse is in the same window
14637 as recorded in last_mouse_window, don't select this window.
5cb6905d 14638
048addec 14639 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14640
048addec
JD
14641 * msdos.c (x_autoselect_window_p): New variable.
14642 (syms_of_msdos): Defvar it.
14643 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14644 which the last mouse movement occured, unless it is already selected.
437dfb9f 14645
048addec
JD
14646 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14647 New variables.
14648 (syms_of_xdisp): DEVFAR them.
14649 (hscroll_window_tree): Use automatic_hscroll_margin and
14650 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14651
048addec 146522002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14653
048addec
JD
14654 * xterm.c (x-autoselect-window): New variable.
14655 (note_mouse_movement): Use it.
9f696a00 14656
048addec 14657 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14658
048addec 146592002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14660
bfa02563 14661 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14662
048addec 14663 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14664
048addec 146652002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14666
048addec 14667 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14668
048addec
JD
14669 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14670 (Vx_super_keysym): New variables.
14671 (syms_of_xterm): DEFVAR_LISP them.
14672 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14673 variables to determine which keys to use for the various modifiers.
a474d59c 14674
048addec 146752002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14676
048addec
JD
14677 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14678 (mode_line_in_non_selected_windows): New variable.
14679 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14680
048addec
JD
14681 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14682 Use mode_line_in_non_selected_windows.
14683 (mode_line_in_non_selected_windows): Declare extern.
14684 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14685
048addec 146862002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14687
048addec
JD
14688 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14689 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14690 (Fclear_this_command_keys): Doc fixes.
2d10309f 14691
048addec
JD
14692 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14693 (update_face_from_frame_parameter): Increment face_change_count
14694 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14695
048addec
JD
14696 * xdisp.c (QCpropertize): New variable.
14697 (mode_line_proptrans_alist): New variable.
14698 (display_mode_element): New arg PROPS; all calls changed.
14699 Implement this, for strings.
14700 Handle literal output of strings by sharing the
14701 main-line code for strings, using local var `literal'.
14702 Handle :propertize feature.
14703 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14704 mode_line_proptrans_alist.
0b1e6b54 14705
048addec 147062002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14707
048addec
JD
14708 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14709 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14710
048addec
JD
14711 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14712 (CURRENT_MODE_LINE_FACE_ID): Use it.
14713 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14714
048addec
JD
14715 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14716 to get mode line face.
e17144de 14717
048addec 147182002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14719
048addec
JD
14720 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14721 variables; cus-start.el doesn't need them anymore.
44368f8f 14722
048addec 147232002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14724
048addec
JD
14725 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14726 reduction. This fixes a display problem where stray newlines were
14727 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14728
048addec 147292002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14730
048addec 14731 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14732
048addec 14733 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14734
048addec 147352002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14736
048addec
JD
14737 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14738 match each other.
14739 (w32_load_system_font): Prevent Cleartype fonts from loading.
14740 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14741
048addec 147422002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14743
048addec
JD
14744 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14745 (CURRENT_MODE_LINE_HEIGHT): Use it.
14746 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14747
048addec
JD
14748 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14749 (pos_visible_p, handle_face_prop): Likewise.
14750 (display_mode_lines): Likewise, but for the real selected window.
14751 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14752
048addec
JD
14753 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14754 in non-selected windows.
14755 (realize_basic_faces): Realize it.
14756 (syms_of_term): Intern and staticpro it.
308dd672 14757
048addec 147582002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14759
048addec
JD
14760 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14761 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14762
048addec 147632002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14764
048addec
JD
14765 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14766 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14767
048addec 14768 * floatfns.c (Fround): Doc fix.
3c1e6b46 14769
048addec 147702002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14771
048addec 14772 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14773
048addec 147742002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14775
048addec 14776 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14777
048addec 147782002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14779
048addec
JD
14780 * keymap.c (where_is_internal): Only check whether definition is
14781 remapped if it fulfills is_command_symbol.
0065bb74 14782
048addec 147832002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14784
048addec 14785 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14786
048addec 14787 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14788
048addec 147892002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14790
048addec
JD
14791 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14792 defining command remapping. Doc updated.
14793 (Flookup_key): Remap command through keymap if KEY is a symbol.
14794 (is_command_symbol): New function.
14795 (Fkey_binding): Use it. New optional argument NO-REMAP.
14796 Doc updated. Callers changed. Perform command remapping via
14797 recursive call unless that arg is non-nil.
14798 (where_is_internal): New argument no_remap. Callers changed.
14799 Call recursively to find original key bindings for a remapped
14800 comand unless that arg is non-nil.
14801 (Fwhere_is_internal): New optional argument NO-REMAP.
14802 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14803
048addec
JD
14804 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14805 (is_command_symbol): Added prototype.
0d8466cc 14806
048addec
JD
14807 * keyboard.c (Vthis_original_command): New variable.
14808 (syms_of_keyboard): DEFVAR_LISP it.
14809 (command_loop_1): Set it, and perform command remapping.
15fff01d 14810
048addec 148112002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14812
048addec 14813 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14814
048addec 148152002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14816
048addec 14817 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14818
048addec 148192002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14820
048addec 14821 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14822
048addec 148232002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14824
048addec 14825 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14826
048addec 148272002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14828
048addec 14829 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14830
048addec
JD
14831 * lread.c (read1): Redesign strategy for force_multibyte and
14832 force_singlebyte. Now is_multibyte records whether read_buffer
14833 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14834
048addec 148352002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14836
048addec
JD
14837 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14838 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14839
048addec 148402002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14841
048addec
JD
14842 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14843 latter never being defined on GNU/Linux.
749f499f 14844
048addec 148452002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14846
048addec
JD
14847 * xfaces.c (realize_default_face): Don't set the weight and slant of
14848 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14849
048addec 148502002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14851
048addec
JD
14852 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14853 Call cancel_hourglass unconditionally.
d0fd26dd 14854
048addec
JD
14855 * eval.c (Fsignal): Remove duplicated declaration of
14856 the variable `display_hourglass_p'.
b4c45162 14857
048addec 148582002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14859
048addec 14860 * editfns.c (region_limit): Nicer error message.
c95eaa61 14861
048addec
JD
14862 * coding.c (decode_composition_emacs_mule):
14863 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14864
048addec
JD
14865 * callint.c (check_mark): New arg to specify clearer error message.
14866 Callers changed.
c95eaa61 14867
048addec 148682002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14869
048addec 14870 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14871
048addec 148722002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14873
048addec
JD
14874 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14875 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14876 Fix doc-strings.
c95eaa61 14877
048addec 148782002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14879
048addec 14880 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14881
048addec
JD
14882 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14883 and scroll_up_aggressively.
c95eaa61 14884
048addec 148852002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14886
048addec 14887 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14888
048addec 148892002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14890
048addec
JD
14891 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14892 (Fprevious_property_change, Fprevious_single_property_change):
14893 Stay within the narrowed-buffer boundaries.
e2c3786a 14894
048addec 148952002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14896
048addec
JD
14897 * term.c (Ftty_display_color_cells): New function.
14898 (syms_of_term): Defsubr it.
14899 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14900 argument name to DISPLAY. Doc fix.
bf794306 14901
048addec
JD
14902 * dispextern.h: Add prototype for set_tty_color_mode and
14903 tty_setup_colors.
bf794306 14904
048addec 149052002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14906
048addec
JD
14907 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14908 If region left to draw is not what was expected, mark the frame as
14909 garbaged.
62582985 14910
048addec
JD
14911 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14912 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14913
048addec 149142002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14915
048addec
JD
14916 * w32term.c (x_update_window_begin): Only hide caret if
14917 w32_use_visible_system_caret is set.
14918 (x_update_window_end): Only show caret if
14919 w32_use_visible_system_caret is set.
14920 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14921
048addec 14922 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14923
048addec 149242002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14925
048addec
JD
14926 * unexelf.c (unexec): Define n so as to cause compilation error
14927 for the code where people have often written n instead of nn.
1e9a6186 14928
048addec 14929 * .gdbinit (hookpost-run): Defined.
1e9a6186 14930
048addec 149312002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14932
048addec 14933 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14934
048addec 149352002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14936
048addec
JD
14937 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14938 if fullscreen is being set.
7c75be36 14939
048addec 149402002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14941
048addec
JD
14942 * minibuf.c (Fminibuffer_contents)
14943 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14944 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14945
048addec 149462002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14947
048addec 14948 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14949
048addec 149502002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14951
048addec
JD
14952 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14953 height before comparison.
14954 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14955
048addec 149562002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14957
048addec
JD
14958 * w32term.c (w32_system_caret_width): Remove.
14959 (w32_use_visible_system_caret): New user flag.
14960 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14961 Windows reports a screen reader running.
14962 (x_update_window_begin): Hide the system caret.
14963 (x_update_window_end): Show the system caret.
14964 (x_display_and_set_cursor): Don't draw a cursor when
14965 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14966
048addec
JD
14967 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14968 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14969 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14970 the user requests it. Use system default width when creating.
14971 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14972
048addec
JD
14973 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14974 New window messages.
905cc05a 14975
048addec 149762002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14977
048addec 14978 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14979
048addec 149802002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14981
048addec 14982 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14983
048addec 149842002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14985
048addec 14986 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14987
048addec 149882002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14989
048addec
JD
14990 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14991 that Windows returns. If a double check fails, try to guess how
14992 ExtTextOut is going to act.
4d0fa4f3 14993
048addec
JD
14994 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14995 in place of stricmp.
14996 (w32_list_synthesized_fonts): Removed.
14997 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14998 (struct enumfont_t): New element; list.
14999 (enum_font_cb2): List all style and charset variations of a font.
15000 (Fw32_select_font): New optional argument; include_proportional.
15001 Exclude vertical fonts. Exclude proportional fonts unless
15002 include_proportional is non-nil.
15003 (w32_enable_synthesized_fonts): Change to a boolean.
15004 (Fw32_send_sys_command): Doc fix.
493faf20 15005
048addec 150062002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15007
048addec
JD
15008 * dispnew.c (update_frame): Move the variable `tem' to the block
15009 where it is used.
4971e491 15010
048addec 150112002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15012
048addec
JD
15013 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15014 call to face-set-after-frame-default.
4971e491 15015
048addec 150162002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15017
048addec
JD
15018 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15019 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15020
048addec 150212002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15022
048addec
JD
15023 * window.c (enlarge_window): When exceeding size of parent,
15024 directly delete all the siblings instead of trying to resize it.
201c831a 15025
048addec 150262002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15027
048addec 15028 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15029
048addec 150302002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15031
048addec 15032 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15033
048addec 150342002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15035
048addec
JD
15036 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15037 is invisible. This can happen if cursor is on top line of a
15038 window, and we switch to a buffer with a header line.
d77fbc16 15039
048addec 15040 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15041
048addec 150422002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15043
048addec
JD
15044 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15045 `dont_resize' only when used.
61e3b944 15046
048addec 15047 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15048
048addec 150492002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15050
048addec
JD
15051 * xdisp.c (display_mode_element): When computing charpos, depend
15052 on multibyteness of elt, not the text in field.
8af01033 15053
048addec 150542002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15055
048addec
JD
15056 * buffer.c (Fkill_all_local_variables):
15057 Increment `update_mode_lines' only once.
7363986a 15058
048addec 150592002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15060
048addec
JD
15061 * lisp.h (adjust_after_replace_noundo)
15062 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15063
048addec 15064 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15065
048addec 150662002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15067
048addec
JD
15068 Support for the --color command-line argument and tty-color-mode
15069 frame parameter:
f1a85b89 15070
048addec
JD
15071 * term.c (tty_default_color_capabilities, tty_setup_colors)
15072 (set_tty_color_mode): New functions.
15073 (term_init): Call tty_default_color_capabilities.
15074 (Qtty_color_mode_alist): New variable.
15075 (syms_of_term): Intern and staticpro it.
f1a85b89 15076
048addec
JD
15077 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15078 frames.
15079 (do_switch_frame): For termcap frames, switch the tty
15080 color mode as specified by the frame's parameters.
15081 (Qtty_color_mode): New variable.
15082 (syms_of_frame): Intern and staticpro it.
3a62677f 15083
048addec
JD
15084 * emacs.c (USAGE2): Add the --color option.
15085 (standard_args): Ditto.
72244db2 15086
048addec
JD
150872002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15088
15089 * xterm.h (struct x_output): New members want_fullscreen,
15090 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15091 y_pixels_outer_diff.
15092 New enum for FULLSCREEN_* constants.
15093 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15094 is NULL.
15095 (x_fullscreen_adjust): Add prototype.
3a62677f 15096
048addec
JD
15097 * emacs.c (USAGE2): Add the new full-screen arguments.
15098 (standard_args): Ditto.
3a62677f 15099
048addec
JD
15100 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15101 New variables.
15102 (syms_of_xfns): Intern and staticpro them.
15103 (x_frame_parms) <"fullscreen">: New parameter.
15104 (x_fullscreen_move, x_set_fullscreen): New functions.
15105 (x_set_frame_parameters): Support for Qfullscreen.
15106 (x_real_positions): More accurate computation of the frame position.
15107 (x_figure_window_size): Support full-screen frames.
15108 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15109
048addec
JD
15110 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15111 (XTread_socket) <Expose>: Call x_check_fullscreen.
15112 <ConfigureNotify>: Don't resize to fullscreen.
15113 Call x_check_fullscreen_move, and set the want_fullscreen member of
15114 output_data.x.
3a62677f 15115
048addec 151162002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15117
048addec
JD
15118 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15119 for mice with more than 3 buttons.
b8523839 15120
048addec
JD
15121 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15122 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15123
048addec
JD
15124 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15125 (syms_of_w32fns): DEFVAR_BOOL it.
15126 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15127
048addec 151282002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15129
048addec 15130 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15131
048addec 151322002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15133
048addec 15134 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15135
048addec 151362002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15137
048addec
JD
15138 * .gdbinit (xbuffer): Remove address operator since data is now a
15139 pointer.
c93674bb 15140
048addec 151412002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15142
048addec 15143 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15144
048addec 15145 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15146
048addec 151472002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15148
048addec
JD
15149 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15150 when checking for multiple frames.
91175673 15151
048addec 151522002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15153
048addec
JD
15154 * window.c (delete_window): Rewrite the code for changing the
15155 selected window to handle the case where WINDOW is not a leaf.
91175673 15156
048addec 151572002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15158
048addec
JD
15159 * process.c (send_process): Set src_multibyte to 1 after the call
15160 top setup_coding_system, not before the call.
e0fead5d 15161
048addec 151622002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15163
048addec
JD
15164 * xmenu.c (set_frame_menubar, xmenu_show):
15165 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15166
048addec
JD
15167 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15168 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15169
048addec 151702002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15171
048addec 15172 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15173
048addec 15174 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15175
048addec 15176 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15177
048addec 151782002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15179
048addec
JD
15180 * insdel.c (make_gap_larger): Make sure buffer size does not
15181 overflow range of int.
62854fe2 15182
048addec 151832002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15184
048addec
JD
15185 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15186 OVERLAPS_P.
656f46bb 15187
048addec 15188 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15189
048addec
JD
15190 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15191 to the left or to the right of the pointer, put it against
15192 the left screen edge.
15193 (x_frame_parms): Add missing braces around initializer.
036e218d 15194
048addec
JD
15195 * w32term.c (x_setup_relief_colors): Don't compute an image's
15196 background color if it doesn't have a Pixmap.
15197 (notice_overwritten_cursor): Don't depend on
15198 output_cursor and updated_area. Compare pixel coordinates with
15199 window's cursor pixel coordinates.
15200 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15201 Call notice_overwritten_cursor with new arg list.
15202 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15203 unconditionally.
15204 (x_draw_image_relief): Use predefined macro instead of
15205 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15206
048addec 15207 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15208
048addec 152092002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15210
048addec 15211 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15212
048addec 152132002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15214
048addec
JD
15215 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15216 (Fkey_binding): Try the `keymap' property map first.
15217 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15218 minor mode bindings.
90647b07 15219
048addec 152202002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15221
048addec 15222 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15223
048addec 152242002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15225
048addec
JD
15226 * keyboard.c (read_key_sequence): Handle the keymap property
15227 before minor mode maps.
9fbc32aa 15228
048addec
JD
15229 * editfns.c (Fformat): Update thissize from field_width
15230 based on the actual width, in the string case.
036e218d 15231
048addec 152322002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15233
048addec
JD
15234 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15235 when used as truth value to prevent gcc warnings.
9fbc32aa 15236
048addec
JD
15237 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15238 * w32proc.c: Include <config.h>.
9fbc32aa 15239
048addec 152402002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15241
048addec
JD
15242 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15243 not EMACS_INT, to make them compatible with DEFVAR_INT.
15244 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15245
048addec 152462002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15247
048addec
JD
15248 * print.c (print_object): Test print_escape_nonascii only for
15249 unibyte strings.
15250 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15251 when outputting to a multibyte buffer.
9fbc32aa 15252
048addec 152532001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15254
048addec
JD
15255 * print.c (print_object): In multibyte string, use hex escapes.
15256 Use octal only for unibyte strings.
15257 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15258
048addec
JD
15259 * lread.c (read_escape): New arg BYTEREP for reporting whether
15260 escape forces unibyte or multibyte.
15261 (read1): When reading a string, take note of that info.
0142178a 15262
048addec 152632001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15264
048addec
JD
15265 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15266 comparison to test lisp value returned by Fget.
d4824a5d 15267
048addec 152682001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15269
048addec 15270 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15271
048addec 15272 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15273
048addec
JD
15274 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15275 Handle modifier bits. Correct typo in error message.
99e380ee 15276
048addec 152772001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15278
048addec
JD
15279 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15280 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15281 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15282 Update calls to Fdefine_abbrev.
15283 (write_abbrev): Update for changed data format.
15284 Don't list "system" abbrevs.
15285 (Fexpand_abbrev): Update use count with new data format.
15286 (describe_abbrev): Update for changed data format.
15287 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15288
048addec 15289 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15290
048addec 15291 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15292
048addec
JD
15293 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15294 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15295
048addec
JD
15296 * keymap.c (Flookup_key): Error message if key has wrong data type.
15297 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15298 (exclude_key): New variable.
59a86c99 15299
048addec 153002001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15301
048addec
JD
15302 * xterm.c (x_setup_relief_colors): Don't compute an image's
15303 background color if it doesn't have a Pixmap.
eb77a5f4 15304
048addec
JD
15305 * xterm.c (notice_overwritten_cursor): Don't depend on
15306 output_cursor and updated_area. Compare pixel coordinates with
15307 window's cursor pixel coordinates.
15308 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15309 Call notice_overwritten_cursor with new arg list.
15310 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15311 unconditionally.
eb77a5f4 15312
048addec
JD
15313 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15314 height of the cursor line to the amount to scroll.
eb77a5f4 15315
048addec 153162001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15317
048addec
JD
15318 * intervals.c (set_point_both): The position after an invisible,
15319 intangible character is not an acceptable stopping point.
bb313871 15320
048addec 153212001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15322
048addec
JD
15323 * window.c (enlarge_window): In new preserve_before code, convert
15324 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15325
048addec 153262001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15327
048addec 15328 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15329
048addec 153302001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15331
048addec
JD
15332 * keyboard.c (record_char): Ignore duplicate help-echo events only
15333 separated by mouse-movement. When tracking mouse, only record
15334 first and last mouse-movement event in same window.
15335 Don't record mouse-movement events in keyboard macros.
3ce081f5 15336
048addec 153372001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15338
048addec
JD
15339 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15340 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15341
048addec
JD
15342 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15343 instead of Fstring_as_unibyte.
9fabb2f5 15344
048addec 153452001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15346
048addec 15347 The following changes remove mocklisp support:
9fabb2f5 15348
048addec 15349 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15350
048addec
JD
15351 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15352 `Qmocklisp' and `Qmocklisp_arguments'.
15353 Remove prototype of syms_of_mocklisp.
2fa0eedf 15354
048addec 15355 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15356
048addec
JD
15357 * callint.c: Do not include mocklisp.h.
15358 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15359
048addec
JD
15360 * eval.c: Remove variables `Qmocklisp_arguments',
15361 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15362 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15363 Do not test for mocklisp case.
15364 (Fwhile): Remove unused variable `tem'.
15365 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15366
048addec 15367 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15368
048addec 15369 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15370
048addec 15371 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15372
048addec 153732001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15374
048addec
JD
15375 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15376 to the left or to the right of the pointer, put it against
15377 the left screen edge.
6108b49c 15378
048addec 153792001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15380
048addec
JD
15381 * Makefile.in (distclean): Remove .gdbinit if we are building
15382 outside the source tree.
5eea19a4 15383
048addec 153842001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15385
048addec 15386 * w32.c (emacs_root_dir): New function.
5eea19a4 15387
048addec 15388 * msdos.c (emacs_root_dir): New function.
5eea19a4 15389
048addec
JD
15390 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15391 of the current drive as the fallback for default_directory.
438e57dd 15392
048addec
JD
15393 * dired.c (file_name_completion): Run the elements of
15394 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15395
048addec
JD
15396 * lisp.h (scmp): Remove prototype, since it's now a static
15397 function private to dired.c.
c88e5347 15398
048addec 153992001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15400
048addec
JD
15401 * dired.c (scmp): Function moved from minibuf.c.
15402 Delete multibyte handling--used only on encoded strings.
59ce1461 15403
048addec 15404 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15405
048addec 15406 * fns.c (merge): Add QUIT call.
59ce1461 15407
048addec 154082001-12-18 Dave Love <fx@gnu.org>
8727d588 15409
048addec
JD
15410 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15411 language/georgian.el.
8727d588 15412
048addec 154132001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15414
048addec
JD
15415 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15416 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15417
048addec 154182001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15419
048addec
JD
15420 * xdisp.c (window_box_height): Do not return negative values.
15421 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15422
048addec 15423 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15424
048addec 15425 * term.c (keys): Likewise.
deece6f5 15426
048addec 15427 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15428
048addec 154292001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15430
048addec
JD
15431 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15432 patch (COMPOSING_P, not COMPOSING).
28ff4293 15433
048addec 154342001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15435
048addec 15436 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15437
048addec
JD
15438 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15439 before calling decode_coding.
9b46de40 15440
048addec 15441 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15442
048addec
JD
15443 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15444 instead of only for COMPOSITION_DISABLED.
9b46de40 15445
048addec 154462001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15447
048addec 15448 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15449
048addec 15450 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15451
048addec
JD
15452 * buffer.h (struct buffer): New field `display_error_modiff'.
15453 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15454
048addec 15455 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15456
048addec
JD
15457 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15458 Call redisplay_window, but not if display_error_modiff field says no.
15459 (redisplay_window_error): New function.
15460 (displayed_buffer): New variable.
15461 (redisplay_internal, redisplay_windows): Call the new functions
15462 instead of redisplay_window directly.
2cd23960 15463
048addec 154642001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15465
048addec 15466 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15467
048addec 154682001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15469
048addec 15470 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15471 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15472 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15473
048addec 154742001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15475
048addec
JD
15476 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15477 parameter have a numeric value all the time.
f6fa0866 15478
048addec 15479 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15480
048addec 154812001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15482
048addec 15483 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15484
048addec
JD
15485 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15486 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15487
048addec 154882001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15489
048addec
JD
15490 * xdisp.c (move_it_vertically_backward): Change heuristic
15491 for the case that we didn't move far enough initially.
91c153e2 15492
048addec
JD
15493 * window.c (Frecenter): Simplify computation in the case of window
15494 system frames and ARG < 0; use window_box_height.
65b7d3e7 15495
048addec 154962001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15497
048addec
JD
15498 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15499 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15500
048addec 155012001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15502
048addec
JD
15503 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15504 arg is negative.
be676094 15505
048addec 155062001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15507
048addec
JD
15508 * m/hp800.h: Split the __hpux conditional into the parts
15509 that are right for GNU/Linux too and the parts that are not.
15510 Use the former if GNU_LINUX.
15511 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15512
048addec 15513 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15514
048addec 155152001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15516
048addec
JD
15517 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15518 `new style' [w/`doc:' keyword].
032a857d 15519
048addec 155202001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15521
048addec
JD
15522 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15523 before using.
b6270150 15524
048addec 155252001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15526
048addec
JD
15527 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15528 keyword].
98cbb9fa 15529
048addec 155302001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15531
048addec 15532 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15533
048addec 15534 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15535
048addec 155362001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15537
048addec 15538 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15539 Add comment to explain where the struct came from.
048addec
JD
15540 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15541 (add_menu_item): Process pop-up menus first to avoid memory leak.
15542 (add_menu_item, w32_menu_display_help): Use `help' field as
15543 Lisp_Object.
15544 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15545
048addec 155462001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15547
048addec 15548 * COPYING: Moved back.
fa336b91 15549
048addec
JD
15550 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15551 Add parentheses around && within ||.
077907d4 15552
048addec 15553 * indent.c (compute_motion): Likewise.
aa2af83a 15554
048addec 15555 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15556
048addec
JD
15557 * coding.c (setup_coding_system, shrink_encoding_region)
15558 (Fdecode_sjis_char): Likewise.
60a653f1 15559
048addec 155602001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15561
048addec
JD
15562 * xdisp.c (display_mode_element): Don't read past end of string if
15563 it ends with '%'.
60a653f1 15564
048addec
JD
15565 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15566 can hold.
60a653f1 15567
048addec
JD
15568 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15569 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15570 type changed to Lisp_Object.
15571 (syms_of_data): DEFVAR_LISP them.
60a653f1 15572
048addec 155732001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15574
048addec
JD
15575 * callproc.c (init_callproc): Set Vdata_directory based on the source
15576 location whenever Emacs was run uninstalled.
60a653f1 15577
048addec 155782001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15579
048addec
JD
15580 * config.in (HAVE_WORKING_VFORK): New #undefs.
15581 * process.c (create_process):
15582 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15583 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15584 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15585 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15586 * m/intel386.h (HAVE_VFORK): Likewise.
15587 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15588 * m/mips.h (HAVE_VFORK): Likewise.
15589 * s/freebsd.h (vfork): Remove #define.
15590 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15591 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15592
048addec 155932001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15594
048addec
JD
15595 * s/hpux10.h (random): Add undef.
15596 (HAVE_RANDOM): Define it just once.
60a653f1 15597
048addec 155982001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15599
048addec 15600 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15601
048addec 156022001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15603
048addec
JD
15604 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15605 scroll bars of the frame before deleting the frame itself. If the
15606 frame has a widget, delete the frame with XtDestroyWidget, and do
15607 not call XDestroyWindow before that.
60a653f1 15608
048addec 156092001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15610
048addec 15611 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15612
048addec 15613 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15614
048addec 156152001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15616
048addec
JD
15617 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15618 excessively large.
60a653f1 15619
048addec
JD
15620 * insdel.c (make_gap_larger): New function.
15621 (make_gap_smaller): New function.
15622 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15623 Call make_gap_smaller if arg is negative.
60a653f1 15624
048addec 156252001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15626
048addec
JD
15627 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15628 Pass a dummy argument when calling interrupt_signal.
15629 (parse_menu_item): Mark disabled items before checking for empty def.
15630 (read_char_minibuf_menu_prompt): Make safety more visible.
15631 (read_key_sequence): Add a `first_unbound' variable.
15632 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15633 unbound prefix as soon as we can detect it.
60a653f1 15634
048addec
JD
15635 * doc.c (Fsnarf_documentation): Add prototype.
15636 (get_doc_string): Handle negative arguments.
15637 (Fdocumentation): Use AREF and ASIZE.
15638 Move the calls to get_doc_string to a single place.
15639 Don't confuse an interactive-spec for a docstring reference.
15640 (Fdocumentation_property): Take advantage of the fact that
15641 get_doc_string now ignores the sign of the docstring position.
60a653f1 15642
048addec 15643 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15644
048addec 156452001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15646
a64387ee 15647 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15648
048addec 156492001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15650
048addec
JD
15651 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15652 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15653
048addec 156542001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15655
048addec
JD
15656 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15657 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15658
048addec 15659 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15660
048addec 156612001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15662
048addec 15663 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15664
048addec 156652001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15666
048addec 15667 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15668
048addec 156692001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15670
f63fd14e 15671 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15672
048addec
JD
15673 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15674 [!WM_MOUSELEAVE]: Define.
60a653f1 15675
048addec
JD
15676 * w32menu.c (current_popup_menu, get_menu_item_info):
15677 (set_menu_item_info): New vars.
15678 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15679 (w32_menu_show): Set current_popup_menu.
15680 (add_menu_item): Allocate new strings for owner-drawn menu items
15681 and help strings.
15682 Use owner-draw for disabled menu items again.
15683 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15684 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15685
048addec
JD
15686 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15687 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15688 <WM_EXITMENULOOP>: Free menu strings.
15689 <WM_MOUSELEAVE>: Stop tracking mouse.
15690 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15691
048addec
JD
15692 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15693 and mouse face.
60a653f1 15694
048addec 156952001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15696
048addec
JD
15697 The following changes add left-fringe and right-fringe
15698 frame parameters to adjust fringe widths, or remove one or
15699 both fringes.
60a653f1 15700
048addec
JD
15701 * frame.h (struct frame): Remove trunc_area_pixel_width and
15702 trunc_area_cols fields.
15703 (Qleft_fringe, Qright_fringe): Declare.
15704 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15705
048addec
JD
15706 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15707 (syms_of_frame): Initialize them.
60a653f1 15708
048addec
JD
15709 * window.c (coordinates_in_window): Handle separate left and right
15710 fringe widths.
60a653f1 15711
048addec
JD
15712 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15713 and fringe_cols fields.
15714 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15715 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15716 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15717 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15718 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15719 (x_compute_fringe_widths): Add prototype.
60a653f1 15720
048addec
JD
15721 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15722 fill fringe evenly with small dashes.
f63fd14e 15723 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15724 clip the new ZV bitmap to avoid jitter between rows.
15725 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15726 background. Don't draw fringe bitmaps if fringe width is zero.
15727 (x_compute_fringe_widths): New function.
15728 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15729
048addec
JD
15730 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15731 (x_set_frame_parameters): Process `font' parameter before other
15732 parameters as fringe widths depend on it.
15733 (x_set_fringe_width): New function.
15734 (x_figure_window_size): Use x_compute_fringe_widths.
15735 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15736 parameters.
60a653f1 15737
048addec
JD
15738 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15739 (EmacsFrameSetCharSize): Ditto.
60a653f1 15740
048addec
JD
15741 * w32term.h: Merged changes from xterm.h.
15742 * w32term.c: Merged changes from xterm.c.
15743 * w32fns.c: Merged changes from xfns.c.
60a653f1 15744
048addec 157452001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15746
048addec 15747 * COPYING: Removed.
60a653f1 15748
048addec 157492001-11-29 Dave Love <fx@gnu.org>
60a653f1 15750
048addec
JD
15751 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15752 extra extra slot.
15753 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15754
048addec 157552001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15756
048addec
JD
15757 * fileio.c (file-name-coding-system)
15758 (default-file-name-coding-system): Doc fix (links to referenced
15759 variables added).
60a653f1 15760
048addec 157612001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15762
048addec
JD
15763 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15764 Add dummy uses of gcproN variables.
60a653f1 15765
048addec
JD
15766 * category.c (describe_category, describe_category_1)
15767 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15768 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15769
048addec 157702001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15771
048addec 15772 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15773
048addec
JD
15774 * Makefile.in (lispdir): New variable, referring to build dir.
15775 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15776
048addec 157772001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15778
048addec
JD
15779 * w32menu.c (w32_menu_display_help): Actually add the new argument
15780 OWNER.
60a653f1 15781
048addec 157822001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15783
048addec
JD
15784 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15785 menu items. From David Ponce <dponce@wanadoo.fr>.
15786 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15787 conditionally.
f63fd14e 15788 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15789 help event in the owner frame's keyboard buffer.
60a653f1 15790
048addec
JD
15791 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15792 (Fx_show_tip): Don't subtract last width from row width.
15793
15794 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15795 (w32_read_socket): Use EQ to compare frames.
60a653f1 15796
048addec 157972001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15798
048addec
JD
15799 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15800 OVERLAPS_P.
60a653f1 15801
048addec 158022001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15803
048addec
JD
15804 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15805 `gcpro3' and `gcpro4'.
60a653f1 15806
048addec 15807 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15808
048addec 158092001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15810
048addec 15811 * ccl.c: Use AREF and ASIZE.
60a653f1 15812
048addec 158132001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15814
048addec
JD
15815 * lisp.h (run_hook_list_with_args): Remove.
15816 (LIST_END_P): Fix call to wrong_type_argument.
15817 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15818
048addec 158192001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15820
048addec
JD
15821 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15822 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15823
048addec
JD
15824 * eval.c: Use AREF and ASIZE.
15825 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15826
048addec
JD
15827 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15828 which match the end of the file-name.
15829 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15830 is not a valid env var, but leave it as is instead.
60a653f1 15831
048addec
JD
15832 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15833 Make nil bindings in char-tables transparent.
15834 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15835
048addec 158362001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15837
048addec
JD
15838 * textprop.c (set_text_properties_1): Allow START, END in either order.
15839 Do nothing if range is empty.
60a653f1 15840
048addec 15841 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15842
048addec
JD
15843 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15844 (clean): Not here.
60a653f1 15845
048addec 158462001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15847
048addec
JD
15848 * textprop.c (set_text_properties_1): Clearly mark that the
15849 interval should not be empty.
60a653f1 15850
048addec
JD
15851 * intervals.c (graft_intervals_into_buffer):
15852 Don't call set_text_properties_1 on an empty interval.
60a653f1 15853
048addec 158542001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15855
048addec 15856 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15857
048addec
JD
15858 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15859 don't lose the data in it.
60a653f1 15860
048addec 158612001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15862
048addec 15863 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15864
c62aec78 15865 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15866
c62aec78 15867 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15868
048addec 158692001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15870
048addec 15871 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15872
048addec 158732001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15874
048addec
JD
15875 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15876 Niemitalo <kon@iki.fi>.
60a653f1 15877
048addec 158782001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15879
048addec 15880 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15881
048addec
JD
15882 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15883 (Fx_show_tip): Block input during frame creation.
15884 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15885
048addec 158862001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15887
048addec
JD
15888 * lread.c (Fload): Detect recursive load error for more than 3
15889 nestings of the same file.
15890 (Vrecursive_load_depth_limit): Variable deleted.
15891 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15892
048addec 158932001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15894
048addec
JD
15895 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15896 mouse position if either left or top is not specified.
60a653f1 15897
048addec
JD
15898 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15899 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15900 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15901 (my_create_tip_window): Assign tip_window.
15902 (x_create_tip_frame): Use same defaults as X.
15903 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15904 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15905
048addec
JD
15906 * w32term.c (x_after_update_window_line): Doc fix.
15907 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15908 frames.
15909 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15910
048addec
JD
15911 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15912 for all Windowed systems.
60a653f1 15913
048addec 159142001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15915
048addec
JD
15916 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15917 realized, use the initial screen colors to clear the screen.
60a653f1 15918
048addec 159192001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15920
048addec
JD
15921 * textprop.c (Fset_text_properties): Remove unused variables
15922 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15923
048addec
JD
15924 * search.c (Freplace_match): Remove unused variable `inslen'.
15925
15926 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15927
159282001-11-22 Jason Rumney <jasonr@gnu.org>
15929
15930 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15931 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15932 (my_create_tip_window): New function.
15933 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15934 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15935
159362001-11-20 Jason Rumney <jasonr@gnu.org>
15937
15938 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15939 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15940
15941 * w32fns.c (Vw32_system_coding_system): Remove.
15942 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15943
159442001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15945
15946 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15947 after build_annotations.
15948
15949 * syntax.c (describe_syntax): Add dummy arg.
15950 (describe_syntax_1): Update call to describe_vector.
15951
15952 * category.c (describe_category): Add dummy arg.
15953 (describe_category_1): Update call to describe_vector.
15954
15955 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15956 (describe_command, describe_translation): Add dummy second param.
15957 (describe_map): Call elt_describer with two arguments.
15958 (describe_vector_princ): Add `fun' parameter.
15959 Call it instead of the hardcoded `princ'.
15960 (describe_vector): Add arg `args'.
15961 Pass it as a new second argument to elt_describer.
60a653f1 15962
048addec 15963 * keymap.h (describe_vector): Update prototype.
60a653f1 15964
048addec
JD
15965 * frame.c: Don't include keymap.h any more.
15966 (keys_of_frame): Remove.
60a653f1 15967
048addec 15968 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15969
048addec 15970 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15971
048addec 159722001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15973
048addec
JD
15974 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15975 if defined, 0 otherwise.
15976 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15977 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15978
048addec 159792001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15980
048addec 15981 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15982
048addec 159832001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15984
048addec
JD
15985 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15986 (x_draw_bar_cursor): If the background color of the glyph under
15987 the cursor equals the frame's cursor color, use the glyph's
15988 foreground color for drawing the bar cursor.
15989 (x_after_update_window_line): Clear internal border in different
15990 circumstances.
15991 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15992 (w32_draw_relief_rect): Correct relief by 1 pixel.
15993 (x_set_glyph_string_background_width):
15994 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15995 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15996 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15997 if cursor_in_non_selected_windows is false.
15998 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15999 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16000 Notice if cursor gets overwritten.
16001 (notice_overwritten_cursor): Renamed from
16002 note_overwritten_text_cursor. Rewritten to take glyph widths
16003 into account, and to take X positions as parameters.
16004 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16005 around call to x_draw_glyphs.
16006 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16007 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16008 color to use for image glyph reliefs.
16009 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16010 (glyph_rect): Remove unused variable `area'.
60a653f1 16011
048addec
JD
16012 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16013 some items.
16014 (x_set_internal_border_width): Set frame garbaged when window
16015 doesn't exist yet.
16016 (Fx_create_frame): Accept zero tool_bar_button_relief.
16017 (x_clear_image_1, four_corners_best, image_background)
16018 (image_background_transparent): New functions.
16019 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16020 (gs_format): Add `:background' entry.
16021 (lookup_image): Set IMG's background color if specified.
16022 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16023 when appropriate.
16024 (x_clear_image_1): Reset `background_valid' and
16025 `background_transparent_valid' fields.
16026 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16027 calculating it here. Set IMG's background_transparent field.
16028 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16029 (enum png_keyword_index): Add PNG_BACKGROUND.
16030 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16031 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16032 (enum gif_keyword_index): Add GIF_BACKGROUND.
16033 (enum gs_keyword_index): Add GS_BACKGROUND.
16034 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16035 Pre-calculate image background color where necessary.
16036 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16037 Use display info's n_cbits entry for screen depth.
16038 (Fx_show_tip): Remove unused variables `buffer', `top',
16039 `left', `max_width' and `max_height'.
60a653f1 16040
048addec 16041 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16042
048addec 160432001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16044
048addec 16045 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16046
048addec 160472001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16048
048addec 16049 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16050
048addec 160512001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16052
048addec
JD
16053 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16054 (message_dolog_marker3): New static variables hold three markers.
16055 (syms_of_xdisp): Initialize and staticpro them.
16056 (message_dolog): Use message_dolog_marker1..3 instead of
16057 allocating markers each time. Unchain them when done.
60a653f1 16058
048addec 160592001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16060
048addec 16061 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16062
048addec 160632001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16064
048addec 16065 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16066
048addec 160672001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16068
048addec 16069 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16070
048addec 160712001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16072
048addec 16073 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16074
048addec 160752001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16076
048addec
JD
16077 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16078 with invalid position.
60a653f1 16079
048addec 160802001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16081
048addec 16082 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16083
048addec
JD
16084 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16085 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16086 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16087
048addec 16088 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16089
048addec 160902001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16091
048addec
JD
16092 * fileio.c (build_annotations): Split off the tail.
16093 (build_annotations_2): New fun. Extracted from build_annotations.
16094 (Fwrite_region): Split the call to build_annotations into two
16095 calls to build_annotations and build_annotations_2.
077907d4 16096
048addec 160972001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16098
048addec
JD
16099 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16100 clear_waiting_for_input with argument.
1756e2fb 16101
048addec 16102 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16103
048addec 16104 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16105
048addec 16106 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16107
048addec 16108 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16109
048addec 161102001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16111
048addec
JD
16112 * fileio.c (choose_write_coding_system): New fun, extracted
16113 from Fwrite_region.
16114 (Fwrite_region): Use it.
fa336b91 16115
048addec
JD
16116 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16117 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16118 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16119
048addec 161202001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16121
048addec 16122 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16123
048addec
JD
16124 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16125 Required for ISC 4.1.
fa336b91 16126
048addec 161272001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16128
048addec
JD
16129 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16130 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16131
048addec 161322001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16133
048addec
JD
16134 The following changes are made to clean up the various internal
16135 references to the fringes to actually use the term `fringe' for
16136 them. Previously, they were called `flags areas', `bitmap areas',
16137 `left/right side of windows', or implicitly as `flags' or
16138 `bitmaps':
fa336b91 16139
048addec 16140 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16141 Comments fixed. Use renamed symbols.
06e8f738 16142
f63fd14e 16143 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16144
048addec
JD
16145 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16146 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16147 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16148
048addec 16149 * msdos.c: Comment fix.
9ce647f4 16150
048addec 16151 * w32fns.c: Use renamed symbols.
9b784ab8 16152
f63fd14e 16153 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16154 (fringe_bitmap_type): Renamed from bitmap_type.
16155 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16156 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16157 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16158
f63fd14e 16159 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16160 (fringes_extra): Renamed from flags_areas_extra.
16161 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16162 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16163 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16164 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16165 (FRAME_X_LEFT_FRINGE_WIDTH):
16166 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16167 (FRAME_X_RIGHT_FRINGE_WIDTH):
16168 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16169
048addec 16170 * widget.c: Use renamed symbols.
9f7e52b4 16171
f63fd14e 16172 * window.c: Comment fixes. Use renamed symbols.
048addec 16173 (coordinates-in-window-p): Doc fix.
fa336b91 16174
f63fd14e 16175 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16176
048addec 16177 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16178
048addec 16179 * xfns.c: Use renamed symbols.
89512fcd 16180
f63fd14e 16181 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16182 (fringe_bitmap_type): Renamed from bitmap_type.
16183 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16184 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16185 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16186
f63fd14e 16187 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16188 (fringes_extra): Renamed from flags_areas_extra.
16189 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16190 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16191 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16192 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16193 (FRAME_X_LEFT_FRINGE_WIDTH):
16194 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16195 (FRAME_X_RIGHT_FRINGE_WIDTH):
16196 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16197
161982001-11-15 Jason Rumney <jasonr@gnu.org>
16199
16200 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16201 work for most menu items. From David Ponce
16202 <david.ponce@wanadoo.fr>.
16203
162042001-11-15 Gerd Moellmann <gerd@gnu.org>
16205
16206 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16207 Some x_set_* function expect to be called even if old and new
16208 value are equal.
16209
16210 * xdisp.c (build_desired_tool_bar_string): Accept zero
16211 tool_bar_button_relief.
16212
16213 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16214
16215 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16216
16217 * xterm.c (x_draw_bar_cursor): If the background color of the
16218 glyph under the cursor equals the frame's cursor color, use
16219 the glyph's foreground color for drawing the bar cursor.
16220
16221 * dispnew.c (direct_output_forward_char): Fix character/byte
16222 position comparison.
7d18891d 16223
048addec 162242001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16225
048addec
JD
16226 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16227 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16228 Update arguments to find_field.
16229 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16230 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16231 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16232 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16233
048addec 162342001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16235
048addec 16236 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16237
048addec
JD
16238 * dispextern.h (image_background, image_background_transparent):
16239 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16240
048addec 162412001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16242
048addec 16243 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16244
048addec 16245 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16246
048addec 16247 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16248
048addec 16249 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16250
048addec 16251 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16252
048addec 16253 * eval.c (syms_of_eval): Doc fix.
7d18891d 16254
048addec 16255 * coding.c (syms_of_coding): Doc fix.
7d18891d 16256
048addec 16257 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16258
048addec 16259 * dispnew.c (syms_of_display): Doc fix.
9474c847 16260
048addec 16261 * category.c (Fget_unused_category): Doc fix.
9474c847 16262
048addec 16263 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16264
048addec 162652001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16266
048addec 16267 * print.c (prin1, print): Doc fix.
e3059a5d 16268
048addec 162692001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16270
048addec
JD
16271 * fontset.h: Remove declarations of variables
16272 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16273
048addec
JD
16274 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16275 `Vclip_large_size_font'.
eae936e2 16276
048addec 162772001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16278
048addec 16279 * w32fns.c: Doc fix.
ddb67bdc 16280
048addec 162812001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16282
048addec 16283 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16284
048addec 16285 * fns.c: Doc fix.
6e1b91d7 16286
048addec 16287 * emacs.c: Doc fix.
1c1d3d69 16288
048addec 16289 * coding.c: Doc fix.
1c1d3d69 16290
048addec
JD
16291 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16292 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16293 `new style' [w/`doc:' keyword].
b6f4c7ba 16294
048addec 162952001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16296
048addec
JD
16297 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16298 LeaveNotify events. Only FocusIn and FocusOut do that now.
16299 (x_display_and_set_cursor): Do display hollow cursors in active
16300 minibuffer windows when they are not selected.
b6f4c7ba 16301
048addec 163022001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16303
048addec 16304 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16305 * w32term.c: Change doc-string comments to `new style'
16306 [w/`doc:' keyword]. Doc fixes.
a89f435d 16307
048addec
JD
16308 * w32fns.c: Don't define max.
16309 (Fx_open_connection): Only execute once.
a4cd0cd7 16310
048addec 163112001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16312
048addec
JD
16313 * ccl.c: Change macros to use do-while block instead of if-else.
16314 Use braces to follow GNU Coding Standards.
eafb659a 16315
048addec 163162001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16317
048addec 16318 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16319
048addec 16320 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16321
048addec
JD
16322 * insdel.c (replace_range): Use adjust_markers_for_replace
16323 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16324
78819ebb 16325 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16326
048addec
JD
16327 * textprop.c (set_text_properties_1): New subroutine
16328 broken out of set_text_properties.
16329 (set_text_properties): Use set_text_properties_1.
91823618 16330
048addec
JD
16331 * intervals.c (graft_intervals_into_buffer):
16332 Use set_text_properties_1 to clear out properties.
91823618 16333
048addec
JD
16334 * search.c (Freplace_match): Use replace_range to insert
16335 and delete. Don't request property inheritance from
16336 surrounding text.
86928dfb 16337
048addec 163382001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16339
048addec 16340 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16341 vertical fonts. Allow them if face name is explicitly specified.
048addec 16342 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16343
048addec 163442001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16345
048addec
JD
16346 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16347 instead of malloc/free.
a78e0303 16348
048addec 163492001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16350
048addec
JD
16351 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16352 Coding Standards.
16353 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16354
048addec 16355 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16356
048addec 16357 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16358
048addec
JD
16359 * coding.c (encode_coding): Use precomputed value of `src'.
16360 (encode_coding): Remove unused variable `src_end'.
16361 (code_convert_region): Remove unused variables `count'.
830ddd77 16362
048addec 163632001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16364
048addec
JD
16365 * w32term.c (x_display_and_set_cursor): Do not move system caret
16366 if cursor_glyph is NULL.
55c6d645 16367
048addec 163682001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16369
048addec 16370 * keymap.c (access_keymap): Fix compilation error.
5de38842 16371
048addec 163722001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16373
048addec 16374 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16375
048addec 163762001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16377
048addec
JD
16378 * intervals.c (graft_intervals_into_buffer):
16379 Remove #ifdef'd-out code.
16380 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16381
048addec
JD
16382 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16383 code (eval-current-buffer).
16384 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16385
048addec 163862001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16387
048addec 16388 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16389
048addec 163902001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16391
048addec 16392 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16393
048addec
JD
16394 * keyboard.c (make_lispy_event): Check integerness and fix
16395 Lisp_Object/int mixup.
17893c65 16396
048addec 163972001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16398
048addec 16399 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16400
048addec
JD
16401 * fontset.c (fontset_font_pattern): Remove unused variable
16402 `family_registry'.
d5360cc7 16403
048addec 16404 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16405
048addec 164062001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16407
048addec 16408 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16409
048addec
JD
16410 * buffer.c (Fkill_buffer): Don't delete auto save file
16411 if buffer is modified.
d9d54213 16412
048addec 164132001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16414
048addec
JD
16415 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16416 CHECK_NUMBER_CDR.
b116830b 16417
048addec 164182001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16419
048addec 16420 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16421
048addec 164222001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16423
048addec 16424 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16425
048addec 164262001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16427
048addec 16428 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16429
048addec 164302001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16431
048addec
JD
16432 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16433 the program image directly.
982f6c7e 16434
048addec 164352001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16436
048addec 16437 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16438
048addec 164392001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16440
048addec
JD
16441 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16442 and CHECK_BUFFER.
d31053f9 16443
048addec
JD
16444 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16445 (record_char): Likewise.
d31053f9 16446
048addec
JD
16447 * keyboard.c (make_lispy_event): Don't insist a drag event must
16448 move to a different buffer position. Instead, check for moving at
16449 least double_click_fuzz.
982f6c7e 16450
048addec 16451 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16452
048addec 16453 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16454
048addec
JD
16455 * indent.c (current_column_1, Fmove_to_column): Separate the code
16456 for display-table glyphs from the code for buffer text, to fix
16457 bugs in the former.
830047fd 16458
048addec 164592001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16460
048addec
JD
16461 * buffer.c (Fbuffer_local_value): New function.
16462 (syms_of_buffer): Defsubr it.
2df5238c 16463
048addec
JD
16464 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16465 value of `cursor-in-non-selected-windows'.
4e397688 16466
048addec
JD
16467 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16468 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16469 (syms_of_xdisp): Initialize it.
48b0f3ae 16470
048addec 164712001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16472
048addec 16473 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16474
048addec
JD
16475 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16476 keyword].
3ecaf7e5 16477
048addec
JD
16478 * eval.c (top_level_value, top_level_set): Remove commented and
16479 #ifdef'd-out code.
16480 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16481
048addec 164822001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16483
048addec 16484 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16485
048addec 16486 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16487
048addec 16488 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16489
048addec 164902001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16491
048addec
JD
16492 * lisp.h (CHECK_STRING_CAR): New macro.
16493 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16494 treating XCAR and XCDR as lvalues.
16495 (openp): Use CHECK_STRING_CAR.
16496 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16497
048addec 164982001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16499
048addec
JD
16500 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16501 (SIGMASKTYPE): Define.
1b1acc13 16502
048addec 16503 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16504
048addec 165052001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16506
048addec
JD
16507 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16508 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16509 Fix typos in comments.
6cb16f95 16510
048addec
JD
16511 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16512 and #ifdef'd-out code.
16513 Fix and reindent comments.
6cb16f95 16514
048addec 16515 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16516
048addec
JD
16517 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16518 argument `i' in macros.
6cb16f95 16519
048addec
JD
16520 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16521 `i' in macros.
7e9d3c2f 16522
048addec
JD
16523 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16524 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16525 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16526 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16527 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16528 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16529 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16530 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16531 in macros.
7e9d3c2f 16532
048addec
JD
16533 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16534 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16535 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16536 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16537 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16538 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16539 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16540 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16541 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16542 (remove unused second argument).
7e9d3c2f 16543
048addec 165442001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16545
048addec
JD
16546 * syntax.c (describe_syntax): New wrapper.
16547 (Finternal_describe_syntax_value): Rename from describe_syntax.
16548 Don't insert space at front and \n at the end.
16549 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16550
048addec
JD
16551 * regex.c (re_wctype): Try to fix some warnings.
16552 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16553
048addec 165542001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16555
048addec 16556 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16557
048addec 165582001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16559
048addec 16560 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16561
048addec 16562 * data.c (Fsetq_default): Ditto.
c22e59e1 16563
048addec 16564 * callint.c (Finteractive): Ditto.
9271ed2c 16565
048addec 165662001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16567
048addec
JD
16568 * macros.c: Don't include keymap.h any more.
16569
165702001-11-01 Richard M. Stallman <rms@gnu.org>
16571
16572 * data.c (Fmake_local_variable): Doc fix.
16573
16574 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16575 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16576
048addec 16577 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16578 bindings along with or instead of the buffer local map.
16579 Make the overriding maps override what they should.
16580
f00691a3 165812001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16582
16583 * window.c (grow_mini_window): Fix typo in comment.
16584
27188d11
GM
165852001-11-01 Gerd Moellmann <gerd@gnu.org>
16586
7b49b9d2
GM
16587 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16588 (XTset_vertical_scroll_bar): Likewise.
16589
43f7c3ea
GM
16590 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16591 instead of IMAGE_BACKGROUND.
c22e59e1 16592
b350c2e5
GM
16593 * xfns.c (four_corners_best): Reindent.
16594
c22e59e1 16595 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16596 Handle :box so that it is possible to specify sexprs.
16597
bf00d461
EZ
165982001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16599
16600 * s/hpux11.h: New file.
16601
f00691a3 166022001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16603
2b209b97
PJ
16604 * emacs.c (USAGE1): Show command line option --no-window-system
16605 instead of --no-windows in usage.
16606 (standard_args): Rename --no-windows to --no-window-system.
16607 (bug_reporting_address): Follow Emacs coding conventions.
16608
9dbc9081
PJ
16609 * eval.c (Fcommandp): Doc fix.
16610 Change doc-string comments to `new style' [w/`doc:' keyword].
16611
4e10df59
PJ
16612 * frame.c (Fframe_live_p): Doc fix.
16613
16614 * buffer.c (selective-display-ellipses): Doc fix.
16615
dd387b25
GM
166162001-10-31 Gerd Moellmann <gerd@gnu.org>
16617
fe957e65
GM
16618 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16619
dd387b25
GM
16620 * xfaces.c (realize_x_face): If C is not a single-byte character,
16621 set the face's colors_copied_bitwise_p instead of the defaulted_p
16622 members which have a different meaning.
16623 (free_face_colors): Do nothing for a face whose colors have been
16624 copied bitwise.
16625
c22e59e1 16626 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16627
f00691a3 166282001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16629
687784e8
PJ
16630 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16631 [w/`doc:' keyword].
2e1280f8 16632
b9d9a9b9
GM
166332001-10-31 Gerd Moellmann <gerd@gnu.org>
16634
16635 * fns.c (require_unwind): Return Lisp_Object.
16636
f00691a3 166372001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16638
fa1361cb
PJ
16639 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16640 (last-input-char): Revert doc-string to be the same as the
16641 doc-string of `last-input-event'.
16642
6c465a15 16643 * xdisp.c: Fix typos in comments.
48400103 16644
eafa3196
GM
166452001-10-31 Gerd Moellmann <gerd@gnu.org>
16646
16647 * window.c (grow_mini_window): Handle case that the root
16648 window is already smaller than the nominal mininum height.
16649
747d3f2a
SM
166502001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16651
bf9bb76f
SM
16652 * emacs.c (main): Don't call keys_of_macros any more.
16653
16654 * lisp.h (keys_of_macros): Remove.
16655
16656 * macros.c (keys_of_macros): Remove.
16657
747d3f2a
SM
16658 * xfaces.c (Fface_attribute_relative_p): Declare args.
16659
5e905a57
JR
166602001-10-30 Jason Rumney <jasonr@gnu.org>
16661
16662 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16663 (enum_font_cb2): Ignore fonts with vertical orientation.
16664
3a426197
RS
166652001-10-30 Richard M. Stallman <rms@gnu.org>
16666
16667 * keyboard.c (Finput_pending_p): Doc fix.
16668
a742d646
GM
166692001-10-30 Gerd Moellmann <gerd@gnu.org>
16670
259cf6bc
GM
16671 * xterm.c (x_after_update_window_line): Don't run the code
16672 clearing in borders for rows whose visible height is 0.
16673
3f99f948
GM
16674 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16675 resized_p flag is set. If not set, use the much less flickering
16676 method previously used.
16677
16678 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16679
16680 * frame.h (struct frame) <resized_p>: New member.
16681
b4a3be43
GM
16682 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16683 as large as the number of bytes to convert.
747d3f2a 16684
a742d646
GM
16685 * lread.c (to_multibyte): New function.
16686 (read1): Use it.
16687
cacbb9e9
EZ
166882001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16689
16690 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16691
99cb6b2f
GM
166922001-10-30 Gerd Moellmann <gerd@gnu.org>
16693
327f42ee 16694 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16695 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16696 if the row's fill_line_p is set and drawing the last glyph with
16697 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16698
99cb6b2f
GM
16699 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16700
8e8223e2
SM
167012001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16702
16703 * xmenu.c: Include coding.h and charset.h.
16704 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16705 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16706 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16707 Explicitly set wv->help. Use `TRUE' rather than `True'.
16708 (menu_help_callback): Use empty_string.
16709
16710 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16711 (Fx_popup_dialog): Explicitly init f.
16712 (w32_menu_display_help): Use empty_string.
16713
4d083a8f
RS
167142001-10-29 Richard M. Stallman <rms@gnu.org>
16715
b2304472
RS
16716 * fns.c (Frequire): Detect recursive try to require the same
16717 feature 3 or more levels deep, and get error.
16718 (require_unwind): New subroutine.
16719 (require_nesting_list): New variable.
16720 (syms_of_fns): Init and staticpro it.
16721
4d083a8f
RS
16722 * print.c (print_object): Clarify indication of insertion type.
16723
2fe41216
EZ
167242001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16725
90480000
EZ
16726 * coding.c (syms_of_coding): Document that locale-coding-system is
16727 used for decoding input on X.
16728
2fe41216
EZ
16729 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16730
f00691a3 167312001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16732
16733 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16734 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16735
60ebcfe8
GM
167362001-10-29 Gerd Moellmann <gerd@gnu.org>
16737
9a7bdceb
GM
16738 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16739 use NO_CURSOR if cursor_in_non_selected_windows is false.
16740
3f08fcd2
GM
16741 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16742 the slant attribute if FRAME is t.
16743
0ccfdad2
GM
16744 * xfns.c (x_set_internal_border_width): Set frame garbaged
16745 when X window doesn't exist yet.
16746
ef253080
GM
16747 * xterm.c (x_after_update_window_line): Clear internal border
16748 in different circumstances.
b116830b 16749
60ebcfe8
GM
16750 * xterm.c (XTread_socket) <KeyPress>: Don't use
16751 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16752 <handa@etl.go.jp>.
16753
73d25f9c
EZ
167542001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16755
16756 * m/ibms390.h: New file. From Adam Thornton
16757 <athornton@sinenomine.net>.
16758
cac1daf0
GM
167592001-10-28 Gerd Moellmann <gerd@gnu.org>
16760
053b3256 16761 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16762
cac1daf0
GM
16763 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16764 a loop counter.
16765
f00691a3 167662001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16767
f9711de4 16768 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16769
4707d2d0
PJ
16770 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16771 keyword].
16772 Fix typos in comments.
b116830b 16773
d883731c
PJ
16774 * emacs.c (bug_reporting_address): New function.
16775 Use it when displaying usage message.
16776
04012254
PJ
16777 * minibuf.c (read_minibuf): Remove unused external declaration of
16778 variable `Qread_only'.
16779
13b1a09c
PJ
16780 * keymap.c (access_keymap): Remove unused variable `charset'.
16781
5bbf4378
MB
167822001-10-28 Miles Bader <miles@gnu.org>
16783
16784 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16785 Remove #ifdef'd-out code.
16786 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16787 (syms_of_xfaces): Initialize them.
16788
1ce1e4ee
JR
167892001-10-27 Jason Rumney <jasonr@gnu.org>
16790
16791 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16792 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16793 position using the system caret.
16794
16795 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16796 (w32_system_caret_height, w32_system_caret_x)
16797 (w32_system_caret_y): New variables for tracking system caret.
16798 (w32_initialize): Initialize them.
c2d53558 16799 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16800
c2d53558
SM
16801 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16802 New messages types.
1ce1e4ee
JR
16803
16804 * w32term.c (note_mouse_highlight): Clear old help_echo.
16805
f00691a3 168062001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16807
bb4600a4
PJ
16808 * xterm.c: Fix typo in a comment.
16809
7db35a48
PJ
16810 * emacs.c: Fix typos in comments.
16811 Remove unnecessary spaces.
16812 Change doc-string comments to `new style' [w/`doc:' keyword].
16813 (USAGE2): Fix typos in usage string.
16814
a7248e4f
PJ
16815 * xterm.c: Fix typo in a comment.
16816
4e30ce42
PJ
16817 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16818 emacs.c.
16819
62725a92
GM
168202001-10-27 Gerd Moellmann <gerd@gnu.org>
16821
798dbe1f 16822 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16823 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16824 farther backward when target_y was not reached.
16825
62725a92
GM
16826 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16827 Display errno only if non-zero.
16828 (sound_warning): New function.
16829 (vox_configure): Don't treat failing to set sample rate as error.
16830 (various places): Improve error messages.
16831
d4e34d24
EZ
168322001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16833
944e6f60
EZ
16834 * fileio.c (Faccess_file): Run the argument filename through
16835 Fexpand_file_name, before using it.
16836
d4e34d24
EZ
16837 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16838 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16839
38d2af0c
GM
168402001-10-26 Gerd Moellmann <gerd@gnu.org>
16841
da80a8d5
GM
16842 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16843
38d2af0c
GM
16844 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16845 Fix clearing in the case of scroll bars on the right.
c2d53558 16846
45de4a6f 168472001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16848
16849 * w32gui.h (XImage): Add a dummy typedef.
16850
fbd5ceb2
GM
168512001-10-26 Gerd Moellmann <gerd@gnu.org>
16852
c2d53558 16853 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16854
b23236fb
EZ
168552001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16856
16857 * frame.c (Fframe_parameter): Fix last change.
16858
5d991fc4
EZ
16859 * fileio.c: Revert last change (which removed old commented-out
16860 version of expand-file-name). Add a comment that explains why
16861 this old version should not be removed.
16862
879eadc3
GM
168632001-10-25 Gerd Moellmann <gerd@gnu.org>
16864
75700ff2
GM
16865 * frame.c (Fframe_parameter): Fix a bug whereby some
16866 ``artificial'' frame parameters, like `minibuffer' were not
16867 obtained by calling Fframe_parameters.
16868
dfe92a6a
GM
16869 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16870 cursor differently.
16871
879eadc3
GM
16872 * xdisp.c (move_it_vertically_backward): Compute line height
16873 differently. Add heuristic to try to be more compatible to 20.x.
16874
e1010ebe
SM
168752001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16876
d73a471b
SM
16877 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16878
d6da5a06
GM
16879 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16880 boolean.
e1010ebe 16881
f66bd220
MB
168822001-10-25 Miles Bader <miles@gnu.org>
16883
16884 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16885 BG is a pointer to a structure, not a structure.
16886 (gif_format, png_format): Add missing commas.
16887
d436d538
RS
168882001-10-24 Richard M. Stallman <rms@gnu.org>
16889
16890 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16891 (syms_of_xfaces): Defsubr it.
d436d538 16892
f00691a3 168932001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16894
16895 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16896 variable `area'.
16897
f00691a3 168982001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16899
c2d53558 16900 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16901
e2a57b34
MB
169022001-10-25 Miles Bader <miles@gnu.org>
16903
16904 * dispextern.h (struct image): Add `background',
16905 `background_valid', and `background_transparent' fields.
16906 (image_background, image_background_transparent): New declarations.
16907 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16908 * xfns.c (image_background, image_background_transparent)
16909 (four_corners_best): New functions.
c2d53558 16910 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16911 (gs_format): Add `:background' entry.
16912 (lookup_image): Set IMG's background color if specified.
16913 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16914 when appropriate.
16915 (x_clear_image_1): Reset `background_valid' and
16916 `background_transparent_valid' fields.
16917 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16918 calculating it here. Set IMG's background_transparent field.
16919 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16920 (enum png_keyword_index): Add PNG_BACKGROUND.
16921 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16922 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16923 (enum gif_keyword_index): Add GIF_BACKGROUND.
16924 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16925 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16926 Pre-calculate image background color where necessary.
16927 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16928 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16929 color to use for image glyph reliefs.
16930
b547b6e8
GM
169312001-10-24 Gerd Moellmann <gerd@gnu.org>
16932
d9e3b8c6
GM
16933 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16934 in full-width rows.
c2d53558 16935
b547b6e8
GM
16936 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16937 Fix clearing of area not covered by scroll bar.
16938
f00691a3 169392001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16940
16941 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16942 and `real_start'.
c2d53558 16943 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16944 (glyph_rect): Remove unused variable `area'.
16945
76cb5e06
GM
169462001-10-24 Gerd Moellmann <gerd@gnu.org>
16947
bdbdebff 16948 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16949
16950 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16951 (row_containing_pos): Take additional argument DY.
16952 Treat rows ending in middle of char differently.
62e33982
GM
16953 (display_line): Handle tabs on window systems differently.
16954
16955 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16956 with additional argument.
16957
16958 * dispextern.h (row_containing_pos): Adjust prototype.
16959
76cb5e06
GM
16960 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16961 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16962 (try_window_id, try_window_reusing_current_matrix)
16963 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16964 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16965
f00691a3 169662001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16967
c9e60620
PJ
16968 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16969 gnuemacs).
16970 (HAVE_BOXES): Fix typo in comment.
16971 (push_menu_pane): Fix typo in comment.
16972
3b552d56
PJ
16973 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16974 of `Qwhen'.
16975 (single_display_prop_string_p): Remove unused local declarations
16976 of `Qwhen' and `Qmargin'.
16977 (string_buffer_position): Remove unused variable `around'.
16978 (store_frame_title): Remove unused variable `width'.
16979
15c565ac
PJ
16980 * window.c: Don't define max.
16981 (coordinates_in_window): Remove unused variable `uy'.
16982
a8818eb9
PJ
16983 * widget.c: Don't define max.
16984
996fee11
PJ
16985 * process.c: Don't define max.
16986 (create_process): Remove unused variable `buffer'.
16987
496e1a5b
GM
169882001-10-23 Gerd Moellmann <gerd@gnu.org>
16989
c2d53558 16990 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16991
5905ae8b
EZ
169922001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16993
16994 * xfaces.c (Finternal_set_lisp_face_attribute)
16995 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16996 frame is on a windowed display.
16997
24db49fb
GM
169982001-10-23 Gerd Moellmann <gerd@gnu.org>
16999
c2d53558
SM
17000 * dispnew.c (sync_window_with_frame_matrix_rows):
17001 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
17002 of marginal areas.
17003
c2d53558 17004 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17005
f0487f05
EZ
170062001-10-23 Andreas Schwab <schwab@suse.de>
17007
17008 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17009 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17010
f0a48a01
GM
170112001-10-23 Gerd Moellmann <gerd@gnu.org>
17012
c2d53558 17013 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17014 REAL_END. Notice if cursor gets overwritten.
17015 (notice_overwritten_cursor): Take X positions as parameters.
17016 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17017 around call to x_draw_glyphs.
17018
f00691a3 170192001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17020
fc11dff0
PJ
17021 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17022 instead of C) and usage.
a50a10a0 17023
fc11dff0
PJ
17024 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17025 of C) and usage.
a50a10a0
PJ
17026
17027 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17028 `left', `max_width' and `max_height'.
17029
8738febd
GM
170302001-10-23 Gerd Moellmann <gerd@gnu.org>
17031
17032 * xdisp.c (display_line): For a tab continued to the next line,
17033 set row's ends_in_middle_of_char_p.
17034
653c329b
GM
170352001-10-22 Gerd Moellmann <gerd@gnu.org>
17036
17037 * xdisp.c (display_line): Fix computation of continuation lines
17038 width for TABs.
17039
f00691a3 170402001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17041
7ba51063
PJ
17042 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17043 `Qlaplace'.
17044
f958c5ac
PJ
17045 * fileio.c: Remove unused code.
17046
eb360291
MB
170472001-10-22 Miles Bader <miles@gnu.org>
17048
17049 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17050 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17051 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17052
98515cf0
JR
170532001-10-21 Jason Rumney <jasonr@gnu.org>
17054
17055 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17056
93026d88
EZ
170572001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17058
17059 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17060 (Finsert_string): Avoid the multi-line string literals warning.
17061
c9a95b79
MB
170622001-10-22 Miles Bader <miles@gnu.org>
17063
17064 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17065 (Fdocumentation): Don't use it.
17066 (syms_of_doc): Don't initialize it.
17067
17068 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17069 * print.c (Fwith_output_to_temp_buffer): Likewise.
17070 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17071 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17072 (Fsave_restriction): Likewise.
c2d53558
SM
17073 * eval.c (Frun_hooks, Frun_hook_with_args)
17074 (Frun_hook_with_args_until_failure)
17075 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17076 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17077 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17078 (Funwind_protect, Fcondition_case): Likewise.
17079 * coding.c (Ffind_operation_coding_system): Likewise.
17080 * keyboard.c (Ftrack_mouse): Likewise.
17081
a3b10252
MB
170822001-10-21 Miles Bader <miles@gnu.org>
17083
c2d53558 17084 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17085 (Fmake_hash_table): Add usage: string to doc string.
17086 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17087 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17088 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17089 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17090 (Fml_prefix_argument_loop): Likewise.
17091
f00691a3 170922001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17093
c2d53558 17094 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17095
c6f73eec
PJ
17096 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17097 style' [w/`doc:' keyword].
17098
17099 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17100 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17101 comments to `new style' [w/`doc:' keyword].
17102
3cf3436e
JR
171032001-10-21 Jason Rumney <jasonr@gnu.org>
17104
17105 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17106
c169b8f1
JR
17107 * w32term.c (remember_mouse_glyph): New function.
17108 (w32_mouse_position): Use it.
17109 (note_mouse_movement): If the mouse moved off the glyph, remember
17110 its new position.
c2d53558 17111
4fdd691b
JR
17112 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17113 (w32_display_info): Add mouse_face_overlay.
17114
c169b8f1
JR
17115 * w32term.c (notice_overwritten_cursor): Renamed from
17116 note_overwritten_text_cursor. Rewritten to take glyph widths into
17117 account.
17118 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17119 (fast_find_string_pos): New function.
17120 (fast_find_position): Return the correct vpos. Add parameter
17121 STOP. In the final row, stop before glyphs having STOP as object.
17122 Don't consider glyphs that are not from a buffer.
17123 (fast_find_position) [0]: Add a presumably more correct version
17124 for after 21.1.
17125 (expose_window_tree, expose_frame): Don't compute intersections here.
17126 (expose_window): Do it here instead.
17127 (expose_window_tree, expose_window, expose_line): Return 1 when
17128 overwriting mouse-face.
17129 (expose_window): If W is the window currently being updated, mark
17130 the frame garbaged.
17131 (expose_frame): If mouse-face was overwritten, redo it.
17132 (x_use_underline_position_properties): New variable.
17133 (syms_of_xterm): DEFVAR_BOOL it.
17134 (x_draw_glyph_string): Add comment to use it in future.
17135 (x_draw_glyph_string): Restore clipping after drawing box.
17136 Fix a computation of the underline position.
17137 (w32_get_glyph_string_clip_rect): Minor cleanup.
17138 (x_fill_stretch_glyph_string): Remove an assertion.
17139 (x_produce_glyphs): Don't convert multibyte characters
17140 to unibyte characters in unibyte buffers.
17141 (cursor_in_mouse_face_p): New function.
17142 (x_draw_stretch_glyph_string): Use it to choose a different GC
17143 when drawing a cursor within highlighted text. Don't draw
17144 background again if it has already been drawn.
17145 (x_draw_glyph_string_box): Don't draw a full-width
17146 box just because the glyph row's full_width_p flag is set.
17147 (x_draw_glyphs): Fix computation of rightmost x for
17148 full-width rows.
17149 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17150 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17151 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17152 (x_update_window_end): Handle overwritten mouse face
17153 also for tool bar windows.
17154 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17155 DRAW is DRAW_IMAGE_RAISED.
17156 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17157 actually redrawn. Make the function static.
17158 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17159 optimize away highlighting if we pass over that same overlay again.
17160 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17161 to detect a case where we have to highlight a different region
17162 despite not having left the currently highlighted region.
17163 Set mouse_face_overlay in the x_display_info. Avoid changing the
17164 mouse pointer shape when show_mouse_face has already done it, or
17165 there is no need. Handle mouse-face and help-echo in strings.
17166 (glyph_rect): New function.
17167 (w32_mouse_position): Use it to raise the threshold for mouse
17168 movement event generation.
17169 (w32_initialize_display_info): Initialize the x_display_info's
17170 mouse_face_overlay.
17171 (w32_set_vertical_scroll_bar): Don't clear a zero height
17172 or width area.
17173 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17174 a widget to zero height.
17175
3cf3436e 17176 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17177 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17178 equivalents in menu_items.
17179 (w32_menu_show): Don't overwrite an item's name with its key
17180 description in case the description is a multibyte string.
17181 (single_submenu): Some cleanup.
17182
17183 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17184 (postprocess_image): New function.
17185 (lookup_image): Call it for all image types except PostScript.
17186 (x_kill_gs_process): Call postprocess_image.
17187 (tiff_error_handler, tiff_warning_handler): New functions.
17188 (tiff_load): Install them as handlers.
17189 (x_kill_gs_process): Recognize if someone has cleared the image
17190 cache under us.
17191 (valid_image_p): Protect better against invalid image
17192 specifications. Previous code could signal an error.
17193 (Fx_hide_tip, Fshow_tip): Doc fix.
17194 (Fv_max_tooltip_size): New variable.
17195 (syns_of_xfns): DEFVAR_LISP it.
17196 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17197 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17198 window_width. Use a maximum tooltip size specified by
17199 Vx_max_tooltip_size, if that has valid contents.
17200 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17201 Make sure the tooltip is completely visible.
17202 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17203 (Fx_create_frame): Adjust the frame's height for presence
17204 of the tool bar before calling x_figure_window_size.
17205 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17206 when the window gets smaller.
17207 (x_set_foreground_color): Set frame's cursor_pixel.
17208 (x_set_foreground_color, x_set_background_color): Cleaned up.
17209 (x_set_font): Handle case of x_new_fontset returning the same name
17210 as before, although there was a change in fontsets.
17211
386ca361
MB
172122001-10-21 Miles Bader <miles@gnu.org>
17213
c2d53558 17214 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17215 (Flogxor): Add usage: string to doc string.
17216 * charset.c (Fstring): Likewise.
17217 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17218 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17219
f00691a3 172202001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17221
03be2694
PJ
17222 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17223
17224 * alloc.c: Reindent DEFUNs with doc: keywords.
17225
17226 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17227
14ff1ee0
PJ
17228 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17229 keyword].
17230
2f147815 17231See ChangeLog.9 for earlier changes.
6922b018
KH
17232
17233;; Local Variables:
49b3bd82 17234;; coding: iso-2022-7bit
6922b018 17235;; End:
2a34a036 17236
2f147815 17237 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17238 Copying and distribution of this file, with or without modification,
17239 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17240
17241;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4