* macterm.c (Vmac_use_core_graphics): defined
[bpt/emacs.git] / src / ChangeLog
CommitLineData
42afbcda
ST
12005-01-15 Steven Tamm <steventamm@mac.com>
2
743d0696
ST
3 * macterm.c (Vmac_use_core_graphics): defined
4 (syms_of_macterm): Added mac-use-core-graphics
5 (mac_draw_string_common): Use core graphics text rendering if
6 mac-use-core-graphics is enabled.
7
42afbcda
ST
8 * macfns.c (Fx_file_dialog): Save As dialog includes only the
9 file name in the text box.
10
9cdd4884
ST
112005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12
13 * macfns.c (x_set_foreground_color, x_set_background_color): Sync
14 with xfns.c.
15 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
16 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
17 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
18
88948d55
KS
192005-01-14 Kim F. Storm <storm@cua.dk>
20
21 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
22
20d6de82
RS
232005-01-13 Richard M. Stallman <rms@gnu.org>
24
25 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
26 if Voverriding_terminal_local_map is non-nil.
27
28 * keyboard.c (syms_of_keyboard): Doc fix.
29
f75a592e
KS
302005-01-13 Kim F. Storm <storm@cua.dk>
31
32 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
33 (specify 0 for FACE instead). Reorder arg list. Doc fix.
34
28f94a34
RS
352005-01-12 Richard M. Stallman <rms@gnu.org>
36
37 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
38 face property for characters that don't specify one.
39
40 * fns.c (Frequire): Record in load-history unconditionally.
41
57a230b1
KS
422005-01-10 Kim F. Storm <storm@cua.dk>
43
44 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
45
46 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
47 Callers changed.
48 Add support to merge with lisp face id too (if face_name is t).
49
50 * xdisp.c (get_next_display_element, next_element_from_display_vector):
51 Don't lookup lface_id from display table glyphs here; instead use
52 merge_faces to merge the lisp face id into current face.
53
8ab2c119
KS
542005-01-09 Kim F. Storm <storm@cua.dk>
55
56 * dispextern.h (struct it): New member dpvec_face_id.
57 (merge_into_realized_face): Add prototype.
58
59 * xfaces.c (merge_into_realized_face): New function. Used to
60 merge escape-glyph face or face from display table into current face.
61
62 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
63 (syms_of_xdisp): DEFVAR_LISP it.
64 (escape_glyph_face): Remove var.
65 (redisplay_window): Don't initialize it.
66 (setup_for_ellipsis, get_next_display_element):
67 Set it->dpvec_face_id to -1.
68 (get_next_display_element): Test Vshow_nonbreak_escape.
69 Do not setup escape_glyph_face.
70 Properly merge escape-glyph face or face from display table with
71 current face for escape and control characters. Set
72 it->dpvec_face_id to relevant face id instead of adding it to each
73 element of display vector.
74 (next_element_from_display_vector): If it->dpvec_face_id is set,
75 use that instead of lface_id from glyph itself.
76
e0910857
JD
772005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
78
79 * xterm.h (struct x_output): New member, toolbar_detached.
80
81 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
82 38.
83 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
84 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
85 (xg_create_tool_bar): Initialize toolbar_detached.
86 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
87 toolbar_detached is zero.
88
ff59904a
JD
892005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
90
9b85e63d
JD
91 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
92 gtk_menu_popup if not for_click, so callbacks for the menu are called.
93
ff59904a
JD
94 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
95 (xg_tool_bar_callback, xg_tool_bar_help_callback)
96 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
97 warning.
98
99 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 100 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
101 XFLOAT_DATA to get extract number from Lisp object.
102
f9a23a6f
KS
1032005-01-07 Kim F. Storm <storm@cua.dk>
104
105 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
106 Set stop_charpos to current charpos instead of 0.
107
28f94a34
RS
1082005-01-06 Nick Roberts <nickrob@snap.net.nz>
109
110 * xdisp.c (Fformat_mode_line): First arg now required.
111
a6fffcdc
ST
1122005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
113
114 * macterm.c (XLoadQueryFont): Correctly handle 0 size
115 font widths that are returned from some Japanese fonts.
116
c35b0c6b
KS
1172005-01-06 Kim F. Storm <storm@cua.dk>
118
119 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
120 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
121 (destroy_fringe_bitmap): Set fringe_faces element to nil.
122 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
123 fringe_faces array and init elements to nil.
124 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
125 non-persistent face id.
126 (mark_fringe_data): New function for GC.
127
128 * alloc.c (mark_fringe_data): Declare extern.
129 (Fgarbage_collect): Call mark_fringe_data.
130
131 * alloc.c (overrun_check_free): Invalidate freed memory if
132 XMALLOC_CLEAR_FREE_MEMORY is defined.
133
e0e76ab9
ST
1342005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
135
136 * macfns.c: Include sys/param.h.
137 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
138 and function.
139 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
140 of filename string. Set event callback function when creating
141 dialog boxes. Add code conversions for filenames. Don't dispose
142 apple event descriptor record if failed to create it.
143
144 * macterm.c: Include sys/param.h.
145 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
146 kEventWindowUpdate.
147 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
148 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
149 of FSSpec from apple event descriptor record.
150 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
151 size of filename string.
152 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
153 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
154 file dialog is in action.
155 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject
156 only when there are no filename items. Set background color
157 before (un)highlighting the window below the dragged items.
158 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
159
043bc640
KH
1602005-01-05 Romain Francoise <romain@orebokech.com>
161
162 * term.c (encode_terminal_code): Fix buffer size computation.
163
dd496df6
RS
1642005-01-04 Richard M. Stallman <rms@gnu.org>
165
166 * xdisp.c (Fformat_mode_line): Doc fix.
167
026cdede
SM
1682005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
169
170 * alloc.c (refill_memory_reserve): Move.
171 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
172 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
173
d57c7572
RS
1742005-01-03 Richard M. Stallman <rms@gnu.org>
175
176 * window.c (window_scroll_pixel_based): Don't correct preserve_y
177 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
178
b14f868c
JR
1792005-01-03 Jason Rumney <jasonr@gnu.org>
180
181 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
182 fontp->space_width to FONT_WIDTH so they are valid.
183
184 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
185 average width. Set fontp->average_width and fontp->space_width to
186 their appropriate values.
187
188 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
189 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
190 fontp->space_width.
191
e169f939
ST
1922005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
193
194 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
195 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
196 metrics for max and min bounds.
197 (x_load_font): Correctly calculate average font width metrics.
198
19996af4
RS
1992005-01-02 Richard M. Stallman <rms@gnu.org>
200
201 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
202
42d02da0
JD
2032004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
204
205 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
206
1db7dd46
RS
2072004-12-31 Richard M. Stallman <rms@gnu.org>
208
b437860a
RS
209 * xdisp.c (setup_for_ellipsis, get_next_display_element):
210 Set it->ellipsis_p to 1 or 0.
211 (display_line): Record whether row ends in mid-ellipsis.
212 (set_cursor_from_row): If ends in ellipsis. find start of it.
213 (cursor_row_p): If PT's at the end of the ellipsis the row
214 ends within, don't display cursor on this row.
215
216 * dispextern.h (struct it): New element ellipsis_p.
217 (struct glyph_row): New element ends_in_ellipsis_p.
218
219 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
220 position if we're reading from something other than the buffer.
221
1db7dd46
RS
222 * window.c (window_scroll_pixel_based): Only look at
223 Vscroll_preserve_screen_position if the old PT can't be kept.
224 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
225
1225f637
KS
2262004-12-30 Kim F. Storm <storm@cua.dk>
227
228 * xdisp.c (get_line_height_property): New function extracted from
229 original calc_line_height_property.
230 (calc_line_height_property): Rework. Handle t and (nil . ratio).
231 (x_produce_glyphs): Use them to handle line-height and
232 line-spacing according to new height spec.
233 (Qtotal): Remove.
33b2f4ea 234 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 235
c243063e
KH
2362004-12-30 Kenichi Handa <handa@m17n.org>
237
238 * fileio.c (Finsert_file_contents): Don't use
239 current_buffer->buffer_file_coding_system even if REPLACE is
240 non-nil. Call Qafter_insert_file_set_coding with the second arg
241 VISIT.
242
243 * fontset.h (struct font_info): New members space_width and
244 average_width.
245
246 * frame.h (struct frame): New member space_width.
247 (FRAME_SPACE_WIDTH): New macro.
248
249 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
250
251 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
252 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 253 fontp->space_width.
c243063e
KH
254 (x_load_font): Calculate fontp->space_width and
255 fontp->average_width.
256 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
257
258 * xdisp.c (x_produce_glyphs): Calculate tab width by
259 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
260
456e761b
ST
2612004-12-29 Sanghyuk Suh <han9kin@mac.com>
262
263 * macterm.c (SelectionRange): Add Xcode position apple event struct.
264 (do_ae_open_documents): Handle Xcode-style file position open
265 events.
266
188577ce
LT
2672004-12-29 Luc Teirlinck <teirllm@auburn.edu>
268
269 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
270
99ec74b9
RS
2712004-12-29 Richard M. Stallman <rms@gnu.org>
272
273 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
274
30c92fab
ST
2752004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
276
277 * macfns.c (install_window_handler): Modify extern to return OSErr
278 value.
279 (mac_window): Handle return value of install_window_handler.
280
281 * macterm.c (reflect_byte): Remove function.
282 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
283 Lookup table instead.
284 (mac_do_font_lists): Simplify calculation of the longest
285 nonspecial string.
286 (init_mac_drag_n_drop): Remove function and declaration.
287 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
288 init_mac_drag_n_drop.
289 (mac_do_track_drag): New function and declaration.
290 (install_window_handler): Return OSErr value.
291 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
292 handlers for tracking/receiving drag-and-drop items.
293 (do_ae_open_documents): Generate unibyte strings for filenames.
294 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
295 only non-filename items. Set event modifiers. Set return value.
296
4b982924
DN
2972004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
298
299 * coding.c (decode_coding): Fix previous change.
300
93fdf45f
RS
3012004-12-28 Richard M. Stallman <rms@gnu.org>
302
303 * xdisp.c (back_to_previous_visible_line_start):
304 Don't call handle_display_prop.
305
5bdca8af
DN
3062004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
307
308 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
309 (decode_coding_emacs_mule, encode_coding_emacs_mule)
310 (decode_coding_iso2022, encode_designation_at_bol)
311 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
312 (decode_coding): Constify arguments and local vars.
313
33385c6f
JD
3142004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
315
316 * xmenu.c (popup_get_selection): Only pop down dialogs
317 on C-g and Escape.
95bdef2e 318 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 319 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 320 parameter down_on_keypress to popup_get_selection.
33385c6f 321
b15325b2
ST
3222004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
323
324 * dispextern.h: Change HAVE_CARBON to MAC_OS.
325 (struct glyph_string): Likewise.
a2c7e69a 326
b15325b2
ST
327 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
328 mac_initialize.
a2c7e69a 329
b15325b2
ST
330 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
331 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 332
b15325b2 333 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 334
b15325b2
ST
335 * frame.c (x_set_frame_parameters, x_report_frame_params)
336 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
337 (x_set_border_width, Vdefault_frame_scroll_bars): Change
338 HAVE_CARBON to MAC_OS.
a2c7e69a 339
b15325b2
ST
340 * image.c [MAC_OS]: Include sys/stat.h.
341 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
342 QuickTimeComponents.h.
a2c7e69a 343
b15325b2
ST
344 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
345 [!MAC_OSX] (select): Use mac_wait_next_event.
346 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
347 Vexec_suffixes.
348 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
349 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
350 (mac_clear_font_name_table): Add extern.
351 (Fmac_clear_font_name_table): New defun.
352 (syms_of_mac): Defsubr it.
353 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
354 [MAC_OSX] (select_and_poll_event): New function.
355 [MAC_OSX] (sys_select): Use it.
356 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
357 [MAC_OSX && SELECT_USE_CFSOCKET]
358 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
359 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
360 RunLoop for simultaneously monitoring two kinds of inputs, window
361 events and process outputs, without periodically polling.
a2c7e69a 362
b15325b2
ST
363 * macfns.c (mac_initialized): Remove extern.
364 (stricmp): Put in #if 0. All callers changed to use xstricmp in
365 xfaces.c.
366 (strnicmp): Decrement `n' at the end of each loop, not the
367 beginning.
368 (check_mac): Use the term "Mac native windows" instead of "Mac
369 OS".
370 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
371 (mac_get_rdb_resource): New function (from w32reg.c).
372 (x_get_string_resource): Use it.
373 (install_window_handler): Add extern.
374 (mac_window): New function.
375 (Fx_create_frame): Use it instead of make_mac_frame. Set
376 parameter for Qfullscreen. Call x_wm_set_size_hint.
377 (Fx_open_connection, Fx_close_connection): New defuns.
378 (syms_of_macfns): Defsubr them.
379 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
380 kWindowNoUpdatesAttribute to the window attribute.
381 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
382 (x_create_tip_frame): Don't call ShowWindow.
383 (Fx_show_tip): Call ShowWindow.
384 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
385 TARGET_API_MAC_CARBON'.
386 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
387 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 388
b15325b2
ST
389 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
390 Windows.h.
391 (Window): Typedef to WindowPtr and move outside `#if
392 TARGET_API_MAC_CARBON'.
393 (XSizeHints): New struct.
a2c7e69a 394
b15325b2
ST
395 * macterm.c (x_update_begin, x_update_end)
396 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
397 frame.
398 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
399 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
400 (construct_mouse_click): Put in #if 0.
401 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
402 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
403 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
404 (activate_scroll_bars, deactivate_scroll_bars)
405 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
406 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
407 if the position is neither user-specified nor program-specified.
408 (x_free_frame_resources): Free size_hints.
409 (x_wm_set_size_hint): Allocate size_hints if needed. Set
410 size_hints.
411 (mac_clear_font_name_table): New function.
412 (mac_do_list_fonts): Initialize font_name_table if needed.
413 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
414 around mac_do_list_fonts.
415 (mac_unload_font): New function.
416 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
417 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
418 and definitions with #if TARGET_API_MAC_CARBON.
419 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
420 (install_window_handler): Add decl.
421 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
422 window. Use UpdateControls. Get the rectangle that should be
423 updated and restrict the target of expose_frame to it.
424 (do_grow_window): Set minimum height/width according to
425 size_hints.
426 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
427 (do_zoom_window): Don't use x_set_window_size.
428 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
429 (install_window_handler): New function.
430 [!USE_CARBON_EVENTS] (mouse_region): New variable.
431 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
432 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
433 GetEventDispatcherTarget inside BLOCK_INPUT.
434 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
435 Update mouse_region when mouse is moved.
436 (make_mac_frame): Remove.
437 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
438 mouse pointer shapes. Change values of f->left_pos and
439 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
440 call ShowWindow.
441 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
442 Vinvocation_name and Vsystem_name.
443 (mac_make_rdb): New function (from w32term.c).
444 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
445 already been opened. Don't pass argument to
446 mac_initialize_display_info. Don't set dpyinfo->height/width.
447 Add entries to x_display_list and x_display_name_list.
448 (x_delete_display): New function.
449 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
450 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
451
b15325b2
ST
452 * macterm.h (check_mac): Add extern.
453 (struct mac_output): New member size_hints.
454 (FRAME_SIZE_HINTS): New macro.
455 (mac_unload_font): Add extern.
a2c7e69a 456
b15325b2 457 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 458
b15325b2
ST
459 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
460
92d2947b
RS
4612004-12-27 Richard M. Stallman <rms@gnu.org>
462
ebbd14f1
RS
463 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
464 (syms_of_buffer): Don't defsubr it.
465
466 * process.c (list_processes_1): Set undo_list instead
467 of calling Fbuffer_disable_undo.
468
92d2947b
RS
469 * xdisp.c (single_display_spec_string_p): Renamed from
470 single_display_prop_string_p.
471 (single_display_spec_intangible_p): Renamed from
472 single_display_prop_intangible_p.
473 (handle_single_display_spec): Renamed from handle_single_display_prop.
474 Rewritten to be easier to understand.
475
a2c7e69a 476 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
477 and variables get just NAME.
478
479 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
480
481 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
482 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
483 (Qdefvar): Var deleted.
484 (syms_of_eval): Don't initialze it.
485
486 * lread.c (syms_of_lread) <load-history>: Doc fix.
487
9f6fcdc5
JD
4882004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
489
490 * xmenu.c (popup_get_selection): Pop down on C-g.
491 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
492 pops down menu on C-g.
493 (xdialog_show): If dialog popped down and no button in the dialog was
494 pushed, call Fsignal to quit.
495 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
496 Fsignal to quit.
497
498 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
499
500 * gtkutil.c (xg_initialize): Install bindings for C-g so that
501 dialogs and menus pop down.
502
d8ca23a0
KH
5032004-12-27 Kenichi Handa <handa@m17n.org>
504
505 * coding.c (code_convert_region): Fix calculation of `ratio'.
506
857ae68b
JD
5072004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
508
133c0116
JD
509 * gtkutil.c (update_frame_tool_bar): Make the value of
510 tool-bar-button-margin control margins of images in tool bar.
511
857ae68b
JD
512 * alloc.c (check_depth): New variable.
513 (overrun_check_malloc, overrun_check_realloc): Only add
514 overhead and write check pattern if check_depth is 1 (to handle
515 recursive calls). Increase/decrease check_depth in entry/exit.
516 (overrun_check_free): Only check for overhead if check_depth is 1.
517 Increase/decrease check_depth in entry/exit.
518
bd55c35c
JD
5192004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
520
521 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
522 before touching input_available_clear_time, to avoid accessing it
523 from multiple threads.
524
66354420
JR
5252004-12-23 Jason Rumney <jasonr@gnu.org>
526
527 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
528 of JPEG library.
529
55f4edbc
RS
5302004-12-22 Richard M. Stallman <rms@gnu.org>
531
532 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
533
534 * lisp.h (Vundo_outer_limit): Fix decl.
535
536 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
537 Uses changed.
538 (syms_of_undo): Initialize appropriately.
539 (truncate_undo_list): If it's nil, there's no limit.
540
7a0ea9e3
KH
5412004-12-22 Kenichi Handa <handa@m17n.org>
542
543 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
544
fda2922a
RS
5452004-12-21 Richard M. Stallman <rms@gnu.org>
546
547 * eval.c (unwind_to_catch): Clear immediate_quit.
548
549 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
550 specially as `\ ' and `\-'.
551
552 * keyboard.c (kbd_buffer_store_event_hold):
553 In the code for while-no-input, handle immediate_quit.
554
555 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
556 Call that at the very start.
557 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
558 (syms_of_alloc): Don't define undo-limit,
559 undo-strong-limit and undo-outer-limit here.
560
561 * undo.c (truncate_undo_list): Return void.
562 Take just one argument, the buffer.
563 Make it current, and inhibit recursive GC.
564 Access and update the undo list directly; return void.
565 Refer to the undo...limit variables directly.
566 Test undo_outer_limit only after counting the whole current command.
567 When it's exceeded, call the function in undo-outer-limit-function.
568 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
569 (Vundo_outer_limit_function): New variable.
570 (syms_of_undo): Define undo-limit, undo-strong-limit
571 and undo-outer-limit here, and undo-outer-limit-function.
572 Doc fixes.
573
574 * lisp.h (truncate_undo_list): Update decl.
575
5762004-12-21 Piet van Oostrum <piet@cs.uu.nl>
577
578 * fileio.c (Fread_file_name): Delete duplicates in
579 file-name-history when history_delete_duplicates is true.
580
68c69027
ST
5812004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
582
583 * macterm.c (mac_do_list_fonts): Fix memory leak
584
134579f2
RS
5852004-12-20 Richard M. Stallman <rms@gnu.org>
586
587 * regex.c (re_match_2_internal) <symend, wordend>:
588 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
589
fbe6152f
ST
5902004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
591
592 * macterm.c (endif, x_font_name_to_mac_font_name): Use
593 maccentraleurroman instead of maccentraleuropean
594 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
595 quickly finding a specific font without needing regexps.
596
fecad3f6
JD
5972004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
598
333f1b6f
JD
599 * syssignal.h: Declare main_thread.
600 (SIGNAL_THREAD_CHECK): New macro.
601
602 * keyboard.c (input_available_signal): Move thread checking code
603 to macro SIGNAL_THREAD_CHECK and call that macro.
604 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
605
606 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
607
608 * emacs.c: Define main_thread.
609 (main): Initialize main_thread.
610 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
611 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
612
613 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
614
615 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
616
617 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
618
a2c7e69a 619 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
620 SIGNAL_THREAD_CHECK.
621
622 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
623
624 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
625
fecad3f6
JD
626 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
627 returning when xg_ignore_gtk_scrollbar is true.
628
2a84c6da
KS
6292004-12-14 Kim F. Storm <storm@cua.dk>
630
631 * keyboard.c (read_char): Save and restore echo_string when
632 handling input method.
633
d9c1ce9d
RS
6342004-12-13 Richard M. Stallman <rms@gnu.org>
635
636 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
637
638 * keyboard.c (Vthrow_on_input): New variable.
639 (syms_of_keyboard): Defvar and initialize it.
640 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
641
642 * lisp.h (QUIT): Check for Vthrow_on_input.
643 (Vthrow_on_input): Declare it.
644
a6495ed5
KS
6452004-12-13 Kim F. Storm <storm@cua.dk>
646
647 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
648 vector.
649
24a0e22f
RS
6502004-12-12 Richard M. Stallman <rms@gnu.org>
651
652 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
653
654 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
655 (Ftry_completion): Really use outer `zero'; eliminate inner one.
656
d6d31e57
KH
6572004-12-12 Kenichi Handa <handa@m17n.org>
658
659 * term.c (encode_terminal_code): Fix previous change.
660
6f8ffb88
SM
6612004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
662
fb6f5cbf
SM
663 * keyboard.c (handle_async_input): Remove pthread mutex handling.
664 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
665
6f8ffb88
SM
666 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
667 in macro arguments.
668
669 * minibuf.c (Ftry_completion, Fall_completions): Don't use
670 XFASTINT blindly.
671
672 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
673
c83c9f9d
JD
6742004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
675
2f25767f
JD
676 * w32term.c (x_calc_absolute_position): Remove calculation of
677 difference between inner and outer window. Don't subtract difference
678 for left and top calculations.
679
c83c9f9d
JD
680 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
681 for left and top calculations. Remove call to x_real_positions.
24a0e22f 682 [Bug report by Drew Adams in November]
c83c9f9d
JD
683 (x_check_expected_move): Do not set change_gravity to 1 when calling
684 x_set_offset.
685
cc1caa4e
RS
6862004-12-08 Richard M. Stallman <rms@gnu.org>
687
688 * xdisp.c (get_next_display_element): Use `escape-glyph' for
689 control chars and escaped octal codes.
690 (Qescape_glyph): New variable.
691 (syms_of_xdisp): Initialize it.
692 (escape_glyph_face): New variable.
693 (redisplay_window): Initialize it.
694
e0e30823
RS
6952004-12-07 Paul Eggert <eggert@cs.ucla.edu>
696
697 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
698 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
699
f415cacd
JD
7002004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
701
cf435f39
JD
702 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
703 reset_malloc_hooks.
704
6f8ffb88
SM
705 * keyboard.c (handle_async_input, input_available_signal):
706 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 707
f415cacd
JD
708 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
709
19b1f29a
SM
7102004-12-07 Stefan <monnier@iro.umontreal.ca>
711
712 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
713
714 * config.in: Regenerate.
715
ded997c1
JD
7162004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
717
453a4f1b
JD
718 * xmenu.c (Fx_popup_menu): Correct documentation about position.
719 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
720 if not given by a mouse click to correspond with x-popup-menu
721 documentation.
722
9a38524c
JD
723 * config.in: Regenerate.
724
aa477689
JD
725 * gtkutil.c: Include signal.h and syssignal.h.
726 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
727
728 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
729 new variables main_thread and alloc_mutex,
730 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
731 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
732 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
733 (UN)BLOCK_INPUT.
734 (emacs_blocked_free, emacs_blocked_malloc)
735 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
736 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
737 (reset_malloc_hooks): New function.
738
739 * lisp.h: Declare reset_malloc_hooks.
740
741 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
742
743 * keyboard.c: Conditionally include pthread.h
6f8ffb88 744 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
745 thread, block signal, send signal to main thread and return.
746
ded997c1 747 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 748 Set current folder in file chooser if default_filename is a directory.
ded997c1 749
c72b0edd
SM
7502004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
751
752 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
753 Remove redundant correctness checks.
754 (regex_compile): Fix up error codes for \{..\} expressions.
755
c721eee5
RS
7562004-12-05 Richard M. Stallman <rms@gnu.org>
757
758 * regex.c (regex_compile): Fix end-of-pattern case for space.
759
d8f96db8
ST
7602004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
761
6108209e
KS
762 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
763 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 764 crashes with invalid characters.
6108209e
KS
765 * macmenu.c (add_menu_item): Use it.
766 * image.c (image_load_quartz2d): Likewise.
767 * macfns.c (x_set_name, x_set_title): Likewise.
768 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
769 creating them each time for labels.
d8f96db8 770
ab67e8b6
RS
7712004-12-02 Richard M. Stallman <rms@gnu.org>
772
773 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
774 don't use it here.
775
776 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
777 (interactive_p): Skip Scalled_interactively_p frames
778 like Sinteractive_p frames.
b8217ea6 779 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
780
781 * data.c (Fmake_variable_buffer_local): Doc fix.
782 (Fmake_local_variable): Doc fix.
783
784 * insdel.c (insert_from_string_before_markers)
785 (insert_from_string): Don't modify buffer on empty insertion.
786
787 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
788
f86bdc80
ST
7892004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
790
791 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
792 menu text as UTF8 fails.
793
1cae6d39
KS
7942004-12-01 Kim F. Storm <storm@cua.dk>
795
796 * alloc.c: Add commentary for last change.
797 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
798 sizeof(size_t) != 4.
799 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
800 Use them. Also clear header and trailer of freed memory.
801 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
802 (string_overrun_cookie): Rename from string_overrun_pattern.
803 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
804
77ea0764
AS
8052004-12-01 Andreas Schwab <schwab@suse.de>
806
807 * lisp.h: Declare string_to_multibyte.
808
2d5cd4e6
KH
8092004-12-01 Kenichi Handa <handa@m17n.org>
810
811 * w32console.c (w32con_write_glyphs): Decide coding here.
812 Adjusted for the change of encode_terminal_code.
813
814 * term.c (encode_terminal_code): Don't make it "static".
815
25a0994a
KH
8162004-11-30 Kenichi Handa <handa@m17n.org>
817
19b1f29a 818 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 819 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
820 characters at once, and return a pointer to the result of encoding.
821 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
822 (insert_glyphs): Likewise.
823 (term_init): Initialize encode_terminal_bufsize to 0.
824
825 * coding.c (Vcode_conversion_workbuf_name): New variable.
826 (syms_of_coding): Initialize and staticpro it.
827 (set_conversion_work_buffer): New function.
828 (run_pre_post_conversion_on_str): Use it.
829 (run_pre_write_conversin_on_c_str): New function.
830
831 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
832
fc7a70cc
ST
8332004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
834
835 * keyboard.c: Don't undef SIGIO
836 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
837 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
838 (macfns.o): Don't depend on ccl.h.
839 * macfns.c (mac_frame_parm_handlers): Set handlers for
840 Qleft_fringe and Qright_fringe.
841 * macterm.c (mac_fill_rectangle_to_pixmap)
842 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
843 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
844 Put in #if 0.
845 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
846 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
847 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
848 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
849 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
850 XDrawImageString. Always draw background and foreground separately.
851 (x_draw_image_foreground): Use clipping instead of computing the
852 intersection rectangle.
853 (x_draw_image_glyph_string): Don't draw an image with mask to a
854 pixmap.
855 (x_redisplay_interface): Set flush_display_optional member to 0.
856 (XTread_socket): Correctly reset the TEConverter
857 object.
858
fc368889
KS
8592004-11-30 Kim F. Storm <storm@cua.dk>
860
861 * lisp.h: New defines to enable buffer overrun checking.
862 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
863 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
864
865 * alloc.c: Add more checks for buffer overruns.
866 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
867 xmalloc_overrun_check_trailer, overrun_check_malloc)
868 overrun_check_realloc, overrun_check_free): Add.
869 (GC_STRING_EXTRA, string_overrun_pattern): Add.
870 (check_sblock, allocate_string_data, compact_small_strings):
871 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
872 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
873 (check_string_free_list): Add.
874 (allocate_string, sweep_strings): Call check_string_free_list.
875
876 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
877 XMALLOC_OVERRUN_CHECK to avoid crash during load.
878
0af8cfe1
KS
8792004-11-29 Kim F. Storm <storm@cua.dk>
880
881 * fns.c (concat): Use SAFE_ALLOCA.
882
77220eeb
SM
8832004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
884
885 * sysdep.c (emacs_write): Don't use QUIT.
886
a778cf63
KH
8872004-11-29 Kenichi Handa <handa@m17n.org>
888
889 * buffer.c (init_buffer): Set current_buffer->directory to a
890 multibyte string made by string_to_multibyte.
891
77220eeb 892 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 893
e3177e43
AS
8942004-11-27 Andreas Schwab <schwab@suse.de>
895
896 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
897
898 * s/gnu-linux.h: Enable no-op gcpros on ia64.
899 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
900
77220eeb
SM
901 * filelock.c (lock_file_1): Call get_boot_time early.
902 Increase buffer size.
e3177e43 903
ca5e6fef
EZ
9042004-11-27 Eli Zaretskii <eliz@gnu.org>
905
906 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
907 is not defined.
908
e2811828
KS
9092004-11-27 Kim F. Storm <storm@cua.dk>
910
911 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
912 marker out of doc string.
913
7a262394
SM
9142004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
917 which was not mentioned in the log.
918
f33cc5a9
KS
9192004-11-26 Kim F. Storm <storm@cua.dk>
920
048bb03f
KS
921 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
922 angle bitmaps at top/bottom line.
923
f33cc5a9
KS
924 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
925 set it when it->method is set to next_element_from_display_vector.
926 (setup_for_ellipsis): Add LEN argument. Callers changed.
927 Set it->saved_face_id.
928 (get_next_display_element): Use loop instead of recursion.
929 Set it->saved_face_id. Combine duplicate code for ctr chars.
930 (next_element_from_display_vector): Do not set it->saved_face_id.
931 (next_element_from_ellipsis): Use setup_for_ellipsis.
932
670e8906
EZ
9332004-11-26 Eli Zaretskii <eliz@gnu.org>
934
935 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
936 prevent compiler warnings.
937
275464e7
SM
9382004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
939
1bf0e604
SM
940 * keyboard.c (command_loop_1): Print a message describing the key
941 the user just pressed when this key has no binding.
942
275464e7
SM
943 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
944 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
945
946 * lread.c (readchar): Check QUIT when `getc' is interrupted.
947
261b01c6
RS
9482004-11-24 Richard M. Stallman <rms@gnu.org>
949
950 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
951
952 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
953
a5bd504e
KS
9542004-11-24 Kim F. Storm <storm@cua.dk>
955
956 * xdisp.c (move_it_in_display_line_to, display_line):
957 Restore saved_face_id also when truncate-lines or hscrolled.
958
255e4140
JD
9592004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
960
961 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
962 x-use-old-gtk-file-dialog.
963
964 * xfns.c: Define x_use_old_gtk_file_dialog.
965 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
966 outside ifdef USE_GTK.
967
cab27d04
SM
9682004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
969
970 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
971 Don't use XFASTINT blindly.
972
973 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
974
975 * indent.c (skip_invisible): Avoid non-idempotent side-effects
976 in macro arguments.
977
978 * keymap.c (Flookup_key): Check INTEGERP before XINT.
979
980 * lread.c (oblookup): Don't use XFASTINT blindly.
981
982 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
983 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
984
11e0be49
KS
9852004-11-23 Kim F. Storm <storm@cua.dk>
986
4d721114
KS
987 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
988 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
989
11e0be49
KS
990 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
991 signal_p is zero and face name is unknown.
992 (Fx_list_fonts): Don't signal error in lookup_named_face.
993 (Fface_font): Signal error in lookup_named_face.
994 (ascii_face_of_lisp_face): Likewise.
995
996 * dispextern.h (lookup_named_face): Fix prototype.
997
998 * xdisp.c (handle_single_display_prop): Don't signal error in
999 lookup_named_face for unknown fringe face name.
1000 (highlight_trailing_whitespace): Don't signal error in
1001 lookup_named_face if trailing-whitespace face unknown.
1002 (calc_line_height_property): Don't signal error in
1003 lookup_named_face if specified face name is unknown.
1004
1005 * fringe.c (update_window_fringes): Show top row indicator if
1006 window has header-line. Don't show arrow at bob and eob
1007 if the boundary indicators are not used.
1008 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1009
1010 * window.c (set_window_buffer): Clear display_error_modiff.
1011
0960a582
KS
10122004-11-22 Kim F. Storm <storm@cua.dk>
1013
1014 * fringe.c (update_window_fringes): Provide sensible fall-back
1015 value for non-nil indicate-buffer-boundaries setting.
1016
b0e9bb28
MR
10172004-11-22 Markus Rost <rost@ias.edu>
1018
1019 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1020
d0bce91e
SM
10212004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1022
1023 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1024
e1814672
KS
10252004-11-21 Kim F. Storm <storm@cua.dk>
1026
b7fd3518
KS
1027 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1028
1029 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1030 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1031
1032 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1033 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1034
1035 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1036 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1037
d0bce91e
SM
1038 * xdisp.c (move_it_in_display_line_to, display_line):
1039 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1040 line is continued before or in middle of element from display vector.
f01d4d05 1041
f1a61389
KS
1042 * indent.c (Fvertical_motion): Fix last change. Use another
1043 method to detect if iterator moved too far ahead after reseat.
1044
e1814672
KS
1045 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1046 expand matrix width for overflow in zero-width area.
1047 (append_glyph, append_composite_glyph, produce_image_glyph)
1048 (append_stretch_glyph): Use it to avoid loop in redisplay.
1049 (note_mode_line_or_margin_highlight): Don't let help-echo from
1050 string override help-echo from image map.
1051
2dafe1c9
LT
10522004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1053
d0bce91e 1054 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1055 * callint.c (Fcall_interactively): Ditto.
1056
fd6866c8 10572004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1058
1059 * minibuf.c (Fminibuffer_complete_and_exit):
1060 Fixup the case of the completed value, for case-indep completion.
1061
dedbac89
RS
10622004-11-20 Richard M. Stallman <rms@gnu.org>
1063
fd6866c8
RS
1064 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1065
9d00469f 1066 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1067 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1068
dedbac89 1069 * search.c (Vsearch_spaces_regexp):
d0bce91e 1070 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1071
2f672bb5
TTN
10722004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1073
1074 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1075
f31a9a68
RS
10762004-11-19 Richard M. Stallman <rms@gnu.org>
1077
1078 * search.c (Vsearch_whitespace_regexp): New variable.
1079 (syms_of_search): Defvar it.
1080 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1081 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1082 is non-nil.
6de891db
RS
1083 (struct regexp_cache): New element whitespace_regexp.
1084 (syms_of_search): Initialize whitespace_regexp elements.
1085 (compile_pattern): Compare whitespace_regexp elements.
1086 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1087
1088 * regex.c (regex_compile): Substitute whitespace_regexp
1089 for spaces, if it is nonzero.
1090 (whitespace_regexp): New variable.
1091 (re_set_whitespace_regexp): New function.
1092
cbc34cb3
KS
10932004-11-19 Kim F. Storm <storm@cua.dk>
1094
1095 * indent.c (Fvertical_motion): Fix last change.
1096
b54a7539
KS
10972004-11-18 Kim F. Storm <storm@cua.dk>
1098
1099 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1100 Instead, move back again if reseating moves too far ahead.
1101
11022004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1103
1104 * xdisp.c (message3): Call clear_message.
1105
5ff504fe
KS
11062004-11-17 Kim F. Storm <storm@cua.dk>
1107
1108 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1109
5ae53dcf
JD
11102004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1111
d0bce91e 1112 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1113
6abf3a27 1114 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1115 (x_menu_set_in_use): Also set popup_activated_flag.
1116
5ff504fe 1117 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1118 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1119
6abf3a27 1120 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1121
ee31cd78
RS
11222004-11-16 Richard M. Stallman <rms@gnu.org>
1123
6abf3a27
SM
1124 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1125 Use map-keymap-internal to implement that.
ee31cd78
RS
1126
1127 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1128
6abf3a27
SM
11292004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1130
1131 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1132 a window before using XWINDOW.
1133
1134 * window.c (make_window, Fselect_window, make_dummy_parent)
1135 (save_window_save):
1136 * frame.c (make_frame):
1137 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1138
1139 * lisp.h (NILP): Use EQ rather than XFASTINT.
1140
b4d61105
KS
11412004-11-16 Kim F. Storm <storm@cua.dk>
1142
6abf3a27 1143 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1144
b4d61105
KS
1145 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1146 moving backwards.
1147
11482004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1149
1150 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1151
ab5b02b0
KH
11522004-11-16 Kenichi Handa <handa@m17n.org>
1153
1154 * xdisp.c (display_mode_element): Fix previous change (calculate
1155 end position of substring to display correctly).
1156
c482cf97
KS
11572004-11-16 Kim F. Storm <storm@cua.dk>
1158
1159 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1160 Reported by Andrew M. Scott.
1161
9f89426b
KS
11622004-11-15 Kim F. Storm <storm@cua.dk>
1163
1164 * fns.c (Fsafe_plist_get): New defun.
1165 (syms_of_fns): Defsubr it.
1166
1167 * lisp.h (Fsafe_plist_get): Add EXFUN.
1168
1169 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1170 Use Fsafe_plist_get.
1171 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1172 Fix image map element parsing. Use Fsafe_plist_get.
1173
27418463
RS
11742004-11-15 Richard M. Stallman <rms@gnu.org>
1175
1176 * xdisp.c (get_next_display_element): Fix previous change.
1177
a130b901
JD
11782004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1179
ef614e04
JD
1180 * window.c (shrink_windows): Handle special case of one window left
1181 when trying to shrink the final reminder. Grow windows if
1182 total_removed is less than total_shrink.
1183
a130b901
JD
1184 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1185 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1186 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1187 Construct arg to record_unwind_protect with make_save_value.
a130b901 1188
d9a03ad2
RS
11892004-11-13 Richard M. Stallman <rms@gnu.org>
1190
1191 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1192 (get_next_display_element): Fix previous change to apply only to \n.
1193
1194 * indent.c (Fvertical_motion): Scan to PT from start of line to
1195 make iterator consistent.
1196
1197 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1198
b3935289
JD
11992004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1200
1201 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1202
1203 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1204 Record unwind with clean_up_file_dialog.
1205
78819ebb
KS
1206 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1207 Declare.
b3935289
JD
1208
1209 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1210
af89e871
JD
12112004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1212
457a8155 1213 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1214 (xg_file_sel_destroy): Remove.
46303896
KS
1215 (xg_file_response_cb, pop_down_file_dialog)
1216 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1217 New functions.
6abf3a27
SM
1218 (xg_get_file_with_chooser, xg_get_file_with_selection):
1219 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1220 Move common code to xg_get_file_name. Return widget created.
1221 (xg_get_file_name): Set name, transient for, modal and destroy
1222 with parent here. Connect response signal to xg_file_response_cb,
1223 connect delete-event to gtk_true. Record pop_down_file_dialog
1224 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1225 (xg_create_widget): Make dialogs modal.
1226
af89e871
JD
1227 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1228 Lisp_Object.
1229 (popup_get_selection): Move unwind protect ...
1230 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1231 Move destroy of widget to pop_down_menu.
1232 (popup_widget_loop): Move unwind protect ...
1233 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1234 Move destroy of widget to pop_down_menu.
1235 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1236 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1237 x_mouse_leave and grabbed = 0 to pop_down_menu.
1238
5596fbf1
KS
12392004-11-13 Kim F. Storm <storm@cua.dk>
1240
1241 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1242 (syms_of_xdisp): DEFVAR_BOOL it.
1243 (make_cursor_line_fully_visible, try_cursor_movement)
1244 (try_window_id): Use it.
1245
b9de078a
KS
12462004-11-12 Kim F. Storm <storm@cua.dk>
1247
381f7091
KS
1248 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1249 (struct it): New member max_extra_line_spacing.
1250 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1251 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1252 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1253 part of last line is only extra line spacing (so the text on the
1254 line is fully visible). Use helper macros.
1255 Add W arg (to use them). All callers changed.
1256 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1257 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1258
6abf3a27
SM
1259 * window.c (window_scroll_pixel_based, Frecenter):
1260 Use move_it_vertically_backward directly.
381f7091
KS
1261 (Frecenter): Fix calculation of new start pos for negative arg.
1262 Before, the new start pos was sometimes chosen too far back, so
1263 the last line became only partially visible, and thus would be
1264 either only semi-visible or automatically scrolled to the middle
1265 of the window by redisplay.
1266
1267 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1268 (move_it_vertically_backward): Don't recure to move further back.
1269 (move_it_vertically): Remove superfluous condition.
1270 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1271 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1272 (display_tool_bar_line): Clear row->extra_line_spacing.
1273 (try_scrolling): Use move_it_vertically_backward directly.
1274 (redisplay_window): Likewise.
1275 (compute_line_metrics): Set row->extra_line_spacing.
1276 (display_line, display_string): Likewise.
1277 (x_produce_glyphs): Update it->max_extra_line_spacing.
1278
b9de078a
KS
1279 * xmenu.c (pop_down_menu): Return nil.
1280
c3438661
JD
12812004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1282
1283 * xmenu.c (x_menu_wait_for_event): New function.
1284 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1285 to handle timers.
df00f436
JD
1286 (popup_widget_loop): Add argument do_timers.
1287 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1288 do_timers to popup_widget_loop.
c3438661
JD
1289 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1290 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1291 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1292 popup_get_selection.
f1d1cd24
JD
1293 (pop_down_menu): New function.
1294 (popup_get_selection, popup_widget_loop): Unwind protect to
1295 pop_down_menu.
1296 (popup_widget_loop): Add argument widget.
1297 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1298 argument widget to popup_widget_loop.
c3438661 1299
32e2fb04
SM
13002004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1301
1302 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1303
0faf6806
KS
13042004-11-09 Kim F. Storm <storm@cua.dk>
1305
1306 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1307 Fix various comments referring to XEvents instead of input events.
1308 (x_queue_event): Fix format strings.
1309 (x_stop_queuing_selection_requests): Likewise.
1310
1311 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1312 (pint2hrstr): Add extra braces to silence compiler.
1313
1314 * print.c (print_object): Fix format string.
1315
1316 * lread.c (read1): Fix next_char matching.
1317
1318 * lisp.h (Fdelete): Add EXFUN.
1319 (replace_range_2): Add prototype.
1320
1321 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1322
1323 * intervals.h (NULL_INTERVAL_P): Add separate version when
1324 ENABLE_CHECKING is not defined to silence compiler.
1325 (compare_string_intervals): Add prototype.
1326
1327 * fringe.c (destroy_fringe_bitmap): Fix return type.
1328 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1329
1330 * emacs.c (Fdump_emacs): Fix format string.
1331
1332 * doc.c: Include <ctype.h>.
1333 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1334
1335 * data.c (store_symval_forwarding): Remove unused variables.
1336
1337 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1338
16bf4e32
JD
13392004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1340
1341 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1342 to ${OLDXMENU}.
1343
cdb805a9
KS
13442004-11-09 Kim F. Storm <storm@cua.dk>
1345
1346 * process.c (Fmake_network_process): Remove kludge for interrupted
1347 connects on BSD. If connect is interrupted, just close socket and
1348 start over rather than sleeping and retry with same socket.
1349
d87a9ab8 13502004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1351
a8b16c80
JD
1352 * .cvsignore: Add buildobj.lst.
1353
d87a9ab8
JD
1354 * doc.c: New variable Vbuild_files.
1355 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1356 file names from buildobh.lst. Only attach docstrings from files
1357 that are in Vbuild_files.
1358 (syms_of_doc): Defvar Vbuild_files.
1359
1360 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1361 and w32*.o.
1362 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1363 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1364
1365 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1366 is linked.
1367
b6709e77
KS
13682004-11-09 Kim F. Storm <storm@cua.dk>
1369
1370 * fringe.c (update_window_fringes): Update fringe bitmaps if
1371 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1372 also update previous row to get rid of misc. artifacts.
1373
bae9677d
KS
13742004-11-08 Kim F. Storm <storm@cua.dk>
1375
1376 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1377 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1378
3f8ea68c
EZ
13792004-11-08 Eli Zaretskii <eliz@gnu.org>
1380
1381 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1382 Don't include <sys/time.h> explicitly.
1383 Include <stdio.h> unconditionally, not just on MacOS.
1384
a653f812
KH
13852004-11-08 Kenichi Handa <handa@m17n.org>
1386
1387 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1388 don't pay attention to '\' before '*'.
1389 (fontset_pattern_regexp): Change the meaning of the second arg.
1390 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1391 (check_fontset_name): Try NAME as literal at first, and if it
1392 failes, try NAME as pattern.
1393
c37caf9d
JD
13942004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1395
1396 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1397
b72915a7
AS
13982004-11-07 Andreas Schwab <schwab@suse.de>
1399
78819ebb
KS
1400 * lisp.h (Fmsdos_downcase_filename): Declare.
1401 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1402 * fileio.c: Likewise.
1403
238a44a8
JD
14042004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1405
1406 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1407 comparisons with integers instead of Lisp_Object address.
1408 (Fmsdos_set_keyboard): Declare argument allkeys.
1409
1410 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1411
78819ebb 1412 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1413 int/Lisp_Object mixup.
1414
1415 * fileio.c: Ditto.
1416
31141c13
ST
14172004-11-06 Steven Tamm <steventamm@mac.com>
1418
1419 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1420
f28c1bd9
RS
14212004-11-06 Richard M. Stallman <rms@gnu.org>
1422
1423 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1424
1425 * xfaces.c (merge_named_face): GCPRO the face_name in the
1426 named_merge_point struct that we make.
1427 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1428
1429 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1430 before deciding whether to inactivate mark.
1431
59dede22
EZ
14322004-11-06 Lars Brinkhoff <lars@nocrew.org>
1433
1434 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1435 * editfns.c (Fget_internal_run_time): New function.
1436 (syms_of_data): Defsubr it.
1437 * fns.c (sxhash): As far as possible, merge calculation of
1438 hash code for symbols and strings.
59dede22 1439
27540e81
EZ
14402004-11-06 Eli Zaretskii <eliz@gnu.org>
1441
1442 * frame.c (syms_of_frame): Fix the example in the doc string.
1443
df470e3b
JD
14442004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1445
1446 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1447
1448 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1449 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1450
4cc8522c
LT
14512004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1452
1453 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1454
d4a42098
KS
14552004-11-05 Kim F. Storm <storm@cua.dk>
1456
a8490886
KS
1457 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1458
d4a42098
KS
1459 * fileio.c (Ffile_modes): Doc fix.
1460 (auto_save_1): Check for Ffile_modes nil value.
1461
36a2b04c
KS
14622004-11-05 Kim F. Storm <storm@cua.dk>
1463
1464 * xselect.c (struct selection_event_queue, selection_queue)
1465 (x_queue_selection_requests, x_queue_event)
1466 (x_start_queuing_selection_requests)
1467 (x_stop_queuing_selection_requests): Add new queue for selection
1468 input events to replace previous XEvent queue in xterm.c.
1469 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1470 (x_reply_selection_request): Adapt to new queue.
1471 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1472 (x_handle_selection_request, x_handle_selection_clear): Make static.
1473 (x_handle_selection_event): New function. May queue selection events.
1474 (wait_for_property_change_unwind): Use save_value instead of cons.
1475 Clear property_change_reply_object.
1476 (wait_for_property_change): Abort if already waiting.
1477 Use save_value instead of cons for unwind data.
1478 (x_handle_property_notify): Skip events already arrived, but don't
1479 free them, as "arrived" field is checked by wait_for_property_change,
1480 and it will be freed by unwind or explicit unexpect_property_change.
1481 (x_get_foreign_selection): Add to new queue.
1482 (receive_incremental_selection): Don't unexpect wait_object when done
1483 as it has already been freed by previous wait_for_property_change.
1484
1485 * xterm.h (x_start_queuing_selection_requests)
1486 (x_stop_queuing_selection_requests, x_handle_selection_request)
1487 (x_handle_selection_clear): Remove prototypes.
1488 (x_handle_selection_event): Add prototype.
1489
1490 * xterm.c (handle_one_xevent): Don't queue X selection events
1491 here, it may be too late if we start queuing after we have already
1492 stored some selection events into the kbd buffer.
1493 (struct selection_event_queue, queue, x_queue_selection_requests)
1494 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1495 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1496 (x_catch_errors_unwind): Block input around final XSync.
1497
1498 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1499
1500 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1501 (kbd_buffer_unget_event): New function.
1502 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1503 and use x_handle_selection_event.
1504 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1505
9c3ad9e1
JD
15062004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1507
1508 * xselect.c (TRACE3): New debug macro.
1509 (x_reply_selection_request): Use it.
1510 (receive_incremental_selection): In call to TRACE0, the name of
1511 a symbol is in xname.
1512
a33b89de
KS
15132004-11-05 Kim F. Storm <storm@cua.dk>
1514
1515 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1516
a872928c
JD
15172004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1518
88208bb8
JD
1519 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1520
78819ebb 1521 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1522
1523 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1524 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1525 * xfns.c (syms_of_xfns): ... to here.
1526
a872928c
JD
1527 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1528 it doesn't start with /.
1529
b912921c
KH
15302004-11-04 Kenichi Handa <handa@m17n.org>
1531
1532 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1533 treat it as a literal character.
1534
c524d9a6
KS
15352004-11-03 Kim F. Storm <storm@cua.dk>
1536
1537 * .gdbinit (ppt): New function.
1538
8cfd0f36
JD
15392004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1540
a11e1dce
JD
1541 * xterm.c (x_window_to_scroll_bar): Only call
1542 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1543
8cfd0f36
JD
1544 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1545 of save.
1546
a93563fd
AS
15472004-11-02 Andreas Schwab <schwab@suse.de>
1548
1549 * window.c (Fscroll_right): Fix last change.
1550
2b2d59d8
KS
15512004-11-02 Kim F. Storm <storm@cua.dk>
1552
1553 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1554
15552004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1556
1557 * callproc.c (Fcall_process): Block input around vfork.
1558
ca28104d
KS
15592004-11-02 Kim F. Storm <storm@cua.dk>
1560
1561 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1562 (syms_of_eval): Defsubr it.
1563
29bb7127
RS
15642004-11-02 Richard M. Stallman <rms@gnu.org>
1565
1566 * insdel.c (replace_range_2): New function.
1567
1568 * casefiddle.c (casify_region): Handle changes in byte-length
1569 using replace_range_2.
1570
1571 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1572
b6189c3b 1573 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1574 Subtract 1 from pos when checking previous newline for invisibility.
1575
1576 * window.c (window_scroll_pixel_based): Update preserve_y
1577 for header line if any.
1578 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1579 use a new second argument instead.
1580
1581 * eval.c (Fcall_interactive_p): New function.
1582 (interactive_p): Don't test INTERACTIVE here.
1583 (Finteractive_p): Doc fix.
1584
1585 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1586
b6189c3b 15872004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1588
1589 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1590 comparing font names.
a3fe4aaf 1591
2a00cdb4
JD
15922004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1593
f9d64bb3
JD
1594 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1595 Fx_file_dialog if only directories should be read.
1596
1597 * lisp.h: Fx_file_dialog takes 5 parameters.
1598
32e2fb04
SM
1599 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1600 Add parameter only_dir_p.
f9d64bb3
JD
1601 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1602 dialog, just text field part. Do not add DEFAULT_FILENAME
1603 to list of files if it isn't there.
1604 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1605
32e2fb04
SM
1606 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1607 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1608 a save dialog, add option kNavDontConfirmReplacement, change title
1609 to "Enter name", change text for save button to "Ok".
1610
32e2fb04
SM
1611 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1612 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1613
1614 * gtkutil.c (xg_get_file_with_chooser)
1615 (xg_get_file_with_selection): New functions, only defined ifdef
1616 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1617 respectively.
1618 (xg_get_file_name): Add parameter only_dir_p.
1619 Call xg_get_file_with_chooser or xg_get_file_with_selection
1620 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1621 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1622
1623 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1624
2a00cdb4
JD
1625 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1626
f6749d5d
KS
16272004-11-01 Kim F. Storm <storm@cua.dk>
1628
32e2fb04
SM
1629 * process.c (connect_wait_mask, num_pending_connects):
1630 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1631 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1632 (IF_NON_BLOCKING_CONNECT): New helper macro.
1633 (wait_reading_process_output): Only declare and use local vars
1634 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1635
1a99fe1a
JR
16362004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1637
1638 * w32term.c (x_scroll_run): Delete region objects after use.
1639
fcdb28b4
JD
16402004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1641
495ef86b
JD
1642 * xmenu.c: Add prototypes for forward function declarations.
1643 (popup_get_selection): Remove parameter do_timers, remove call to
1644 timer_check.
32e2fb04
SM
1645 (create_and_show_popup_menu, create_and_show_dialog):
1646 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1647
12e6566a
JD
1648 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1649 tool_bar_items and assign the result to f->tool_bar_items if
1650 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1651 tool_bar_items to assignment of result.
1652
fcdb28b4
JD
1653 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1654 pending_atmers is non-zero.
1655
1a1a0c4c
KS
16562004-10-31 Kim F. Storm <storm@cua.dk>
1657
1658 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1659
a36f1680
JW
16602004-10-28 Will <will@glozer.net>
1661
1662 * macterm.c: allow user to assign key modifiers to the Mac Option
1663 key via a 'mac-option-modifier' variable.
1664
32e2fb04 16652004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1666
1667 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1668 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1669 (x_handle_selection_request, x_handle_selection_clear)
1670 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1671
4f71c13f
RS
16722004-10-28 Richard M. Stallman <rms@gnu.org>
1673
1674 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1675
1676 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1677
068f3848
SM
16782004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1679
1680 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1681 comment-starter over a 1-char one.
1682
4660a9e3
RS
16832004-10-27 Richard M. Stallman <rms@gnu.org>
1684
1685 * xdisp.c (get_next_display_element): In mode lines,
1686 treat newline and tab like other control characters.
1687
1688 * editfns.c (Fmessage): Doc fix.
1689
1690 * indent.c (vmotion): When moving up, check the newline before.
1691 Make prevline an int, not a Lisp_Object.
1692
233f3db6
KS
16932004-10-27 Kim F. Storm <storm@cua.dk>
1694
1695 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1696 Only allocate info and discarded tables once.
1697
1698 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1699 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1700 (SAFE_FREE): Test it to determine if we need to unwind to free.
1701 Remove size arg. All users changed.
1702 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1703
1442465d
JD
17042004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1705
1706 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1707 (xg_destroy_widgets): Rename from remove_from_container.
1708 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1709 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1710 instead of remove_from_container.
1711 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1712 (free_frame_tool_bar): Add comment.
1713
1714 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1715 is not NULL before strcmp.
1716
c8636435
KS
17172004-10-26 Kim F. Storm <storm@cua.dk>
1718
1719 * callint.c (Fcall_interactively): Add 'U' code to get the
1720 up-event discarded by a previous 'k' or 'K' argument.
1721
5629f29b
DK
17222004-10-26 David Kastrup <dak@gnu.org>
1723
1724 * buffer.c (syms_of_buffer): Fix a few typos.
1725
4f2f546e
JD
17262004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1727
1728 * xsmfns.c: Put empty line between comment and function body.
1729 Use two spaces before comment end.
1730
fc1062f5
KH
17312004-10-25 Kenichi Handa <handa@m17n.org>
1732
1733 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1734 PATTERN is full XLFD.
1735
be13f5e5
KH
17362004-10-24 Kenichi Handa <handa@m17n.org>
1737
1738 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1739
1740 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1741 (regex_compile): Return REG_ERANGEX if appropriate.
1742
d0ee2ed3
KH
17432004-10-22 Kenichi Handa <handa@m17n.org>
1744
1745 * editfns.c (Ftranslate_region_internal): New function.
1746 (syms_of_editfns): Defsubr it.
1747
63ea8ea5
JD
17482004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1749
1750 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1751
c27ed90a
JD
17522004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1753
068f3848
SM
1754 * xterm.h (x_output): New member `xic_base_fontname'.
1755 (FRAME_XIC_BASE_FONTNAME): New macro.
1756 (xic_free_xfontset): Declare.
c27ed90a 1757
068f3848
SM
1758 * xfns.c (xic_create_xfontset): Share fontsets between frames
1759 based on base_fontname.
1760 (xic_free_xfontset): New function.
1761 (free_frame_xic): Use it.
1762 (xic_set_xfontset): Ditto.
c27ed90a 1763
068f3848 1764 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1765
1766
59508699
JR
17672004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1768
1769 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1770
dede2792
JD
17712004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1772
3aca2078
JD
1773 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1774 XSync.
1775
dede2792
JD
1776 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1777 New variables and constant.
1778 (main): Calculate heap_bss_diff. If we are dumping and the
1779 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1780 and exec ourself again.
1781 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1782 print a warning.
1783
1784 * lastfile.c: Make my_endbss and my_endbss_static available on all
1785 platforms.
1786
1787 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1788 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1789
1dc5ba01
LT
17902004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1791
1792 * data.c (Flocal_variable_if_set_p): Doc fix.
1793
950090be
JR
17942004-10-19 Jason Rumney <jasonr@gnu.org>
1795
1796 * w32.c (init_environment): Set emacs_dir correctly when running
1797 emacs from the build directory.
1798
8550b998
RS
17992004-10-19 Richard M. Stallman <rms@gnu.org>
1800
1801 * editfns.c (Fdelete_and_extract_region):
1802 If region is empty, return null string.
1803
08dedea6
JD
18042004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1805
1dc5ba01 1806 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1807 and canon_width.
068f3848 1808 (xg_frame_cleared): Remove.
08dedea6 1809
068f3848
SM
1810 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1811 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1812 (xg_create_scroll_bar): Put an event box widget between
1813 the scroll bar widget and the edit widget.
1814 (xg_show_scroll_bar): Show the parent widget (the event box).
1815 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1816 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1817 Move the parent (the event box) widget inside the fixed widget.
1818 Move window clear to xterm.c.
1819
068f3848 1820 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1821
08dedea6 1822 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1823 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1824 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1825 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1826
8550b998 18272004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1828
1829 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1830
84338890
JD
18312004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1832
1833 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1834 gdk_window_clear and move gdk_window_process_all_updates after
1835 clear so events are sent to the X server in correct order.
1836
6e1b0d8c
KH
18372004-10-18 Kenichi Handa <handa@m17n.org>
1838
1839 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1840 comparing font names.
8550b998 1841 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1842 (list_fontsets): Likewise.
1843
1844 * search.c (fast_string_match_ignore_case): New function.
1845
1846 * lisp.h (fast_string_match_ignore_case): Extern it.
1847
345e75a8
KS
18482004-10-17 Kim F. Storm <storm@cua.dk>
1849
1850 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1851 than bitmap if there is not left fringe.
1852 (get_overlay_arrow_glyph_row): Also used on windows system.
1853 (display_line): Display overlay string if no left fringe.
1854
be13cbb7
JR
18552004-10-16 Jason Rumney <jasonr@gnu.org>
1856
1857 * w32fns.c (w32_font_match): Encode font name being matched.
1858
c2e2ede7
RS
18592004-10-16 Richard M. Stallman <rms@gnu.org>
1860
1861 * window.c (Fspecial_display_p): Doc fix.
1862
3584d95d
SM
18632004-10-15 Stefan <monnier@iro.umontreal.ca>
1864
1865 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1866 Don't ignore menus, because where-is-internal already does it for us.
1867
699a0392
KS
18682004-10-15 Kim F. Storm <storm@cua.dk>
1869
b3c7a89b
KS
1870 * xdisp.c (redisplay_window): Only update fringes and vertical
1871 border on window frames.
699a0392 1872
4e382b0f
AS
18732004-10-14 Andreas Schwab <schwab@suse.de>
1874
1875 * m/ia64.h (DATA_SEG_BITS): Don't define.
1876
329a7be2
KS
18772004-10-14 Kim F. Storm <storm@cua.dk>
1878
1879 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1880 in some X versions.
329a7be2 1881
982241b1
SM
18822004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1883
1884 * fns.c (map_char_table): Add missing gcpros.
1885
9238467d
SM
18862004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1887
1888 * keymap.c (get_keymap): An autoload form is not a keymap.
1889
1890 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1891
4440e3ca
KS
18922004-10-13 Kim F. Storm <storm@cua.dk>
1893
7cfdabde
KS
1894 * callproc.c (Fcall_process): Simplify handling of display arg.
1895 Resume `display_on_the_fly' once a coding system is determined.
1896
4440e3ca
KS
1897 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1898
1c8dec6a
KS
18992004-10-12 Kim F. Storm <storm@cua.dk>
1900
1901 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1902 caller, such as call-process, is not going to poll for input.
1903 (calc_line_height_property): Handle case where it->object is nil.
1904
1905 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1906
170b174c
KH
19072004-10-12 Kenichi Handa <handa@m17n.org>
1908
9238467d
SM
1909 * xdisp.c (get_next_display_element):
1910 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1911 chars in octal in unibyte buffer.
1912
b583964c
KS
19132004-10-12 Kim F. Storm <storm@cua.dk>
1914
1915 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1916 are no ordinary bindings.
1917
29fabd8c
JD
19182004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1919
9238467d 1920 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1921
c3f4c690
ST
19222004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1923
9238467d
SM
1924 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1925 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1926 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1927 terminal frame.
1928 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1929 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1930 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1931 Make a cancel file-open dialog be like C-g.
9238467d
SM
1932 * mac.c (mktime): Use emacs_mktime.
1933 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1934 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1935
9688f9eb
KS
19362004-10-10 Kim F. Storm <storm@cua.dk>
1937
1938 * keyboard.c (timer_resume_idle): New function to resume idle
1939 timer without resetting timers on the idle list.
1940 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1941 (timer_start_idle, timer_stop_idle): Declare static.
1942 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1943
1944 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1945
f7f3a65f
ST
19462004-10-08 Steven Tamm <steventamm@mac.com>
1947
9238467d 1948 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1949 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1950 NULL where 0 should be used.
f7f3a65f
ST
1951 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1952 objc/malloc.h
9238467d 1953 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1954
3c7d999a
KS
19552004-10-07 Kim F. Storm <storm@cua.dk>
1956
1957 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1958 windows. Update vertical line after drawing window fringes, but
1959 only if actually drawing any bitmaps--or there is no fringe.
1960
1961 * xterm.c (x_update_window_end): Likewise.
1962 * macterm.c (x_update_window_end): Likewise.
1963 * w32term.c (x_update_window_end): Likewise.
1964
1965 * fringe.c (draw_window_fringes): Return value now indicates if
1966 any fringe bitmaps were redrawn (or there are no fringes).
1967
1968 * dispextern.h (draw_window_fringes): Update prototype.
1969
bf06c82f
ST
19702004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1971
1972 * macfns.c (mac_get_window_bounds): Add extern.
1973 (x_real_positions): Use mac_get_window_bounds.
1974
1975 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1976 xmenu.c (YAILOM).
3c7d999a 1977
bf06c82f
ST
1978 * macterm.c [!MAC_OSX]: Include Windows.h.
1979 (front_emacs_window): Rename from mac_front_window. All uses
1980 changed. Return the frontmost non-tooltip emacs window.
1981 (mac_get_window_bounds): New function.
1982 (x_calc_absolute_position): Use the difference of width and height
1983 between the inner and outer window.
1984 (x_set_offset): Specify window position by the coordinae of the
1985 outer window. Adjust the position if the title bar is completely
1986 outside the screen.
1987 (app_is_suspended, app_sleep_time): Remove unused variables.
1988 (do_app_resume, do_app_suspend): Remove their contents because
1989 window-activate/deactivate events will do the job.
1990 (do_zoom_window): Remove unused variables. Make compliant to the
1991 standard way of zooming. Set f->left_pos and f->top_pos.
1992 (XTread_socket): Don't use argument `expected'. Don't use
1993 FrontWindow to determine the clicked window. Exclude unprocessed
1994 mouseUp cases in the early stage. Add parentheses to fix operator
1995 precedence.
1996 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1997
4cbbf6b7 19982004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1999
2000 * config.in: Regenerate.
2001
2002 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2003 HAVE_EXECSHIELD.
2004
b90ee8b5
JD
20052004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2006
2007 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2008 a row if Alt or Meta has been found for that row. Also stop scanning
2009 for Keysyms for that row.
2010
904db1a2
KS
20112004-10-04 Kim F. Storm <storm@cua.dk>
2012
0207b8ad
KS
2013 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2014 to list. Include overlay arrow bitmap in return value.
2015
25f7220c
KS
2016 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2017 bars with fractional column width. If scroll bar separates two
2018 windows, move it towards the window it belongs to. Only update
2019 the padding area below the scroll bar widget when necessary,
2020 i.e. when scroll bar widget is created, moved, or resized.
2021
562020fe
KS
2022 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2023 while tracking/dragging mouse.
2024 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2025
37e34af7
KS
2026 * window.c (coordinates_in_window): Relax check for cursor
2027 on vertial border between mode lines.
2028 (Fset_window_fringes): Do not allow negative widths.
2029 (Fset_window_scroll_bars): Likewise.
2030
904db1a2
KS
2031 * .gdbinit (pp): Shorthand for p ARG + pr.
2032 (ff): New command: flush frame updates (X only).
2033
38fe4f64
MA
20342004-10-03 Michael Albinus <michael.albinus@gmx.de>
2035
2036 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2037
9de36315
KH
20382004-09-30 Kenichi Handa <handa@m17n.org>
2039
07c381ad 2040 * process.c (send_process): Free composition data.
9de36315 2041
07c381ad 2042 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2043
2044 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2045 compositions to encode.
2046 (encode_coding_string): Likewise. Free composition data.
2047
b6189c3b 20482004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2049
2050 * coding.c (code_convert_region): Free composition data.
9de36315 2051
f2a54fbc
KS
20522004-09-29 Kim F. Storm <storm@cua.dk>
2053
dc5d6435
KS
2054 * fringe.c: Remove limit on number of bitmaps.
2055 (fringe_bitmaps, fringe_faces): Change to pointers.
2056 (max_fringe_bitmaps): New var.
2057 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2058 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2059
2060 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2061 (struct glyph_row): Reorder fringe_bitmap related fields.
2062 (struct it): Likewise.
2063
2064 * w32term.c (fringe_bmp): Change to pointer.
2065 (max_fringe_bmp): New var.
2066 (w32_define_fringe_bitmap): Expand fringe_bmp.
2067 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2068 (w32_destroy_fringe_bitmap): Likewise.
2069
20702004-09-29 Kim F. Storm <storm@cua.dk>
2071
2072 * fringe.c: Simplify last change.
f2a54fbc
KS
2073 (lookup_fringe_bitmap): New function.
2074 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2075 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2076 Keep standard bitmaps in Vfringe_bitmaps.
2077 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2078 (Fset_fringe_bitmap_face): Likewise.
2079
2080 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2081 (valid_fringe_bitmap_p): Remove prototype.
2082
2083 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2084
841a8bca
KS
20852004-09-29 Kim F. Storm <storm@cua.dk>
2086
1f2da365
KS
2087 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2088 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2089
841a8bca
KS
2090 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2091
2092 * fringe.c (Vfringe_bitmaps): New variable.
2093 (syms_of_fringe): DEFVAR_LISP it.
2094 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2095 Change arg to Lisp_Object and fail if not an integer.
2096 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2097 (destroy_fringe_bitmap): New functions.
9238467d
SM
2098 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2099 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2100 clear its fringe property.
2101 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2102 Fdestroy_fringe_bitmap.
2103 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2104 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2105 and set fringe property. Signal error if no free slots.
2106 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2107 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2108
2109 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2110 symbols with a fringe property.
2111
4d965590
KS
21122004-09-27 Kim F. Storm <storm@cua.dk>
2113
2114 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2115 Doc fix. Format may now be a symbol or alist, not a cons.
2116
2117 * fringe.c (update_window_fringes): Handle new formats of
2118 indicate-buffer-boundaries (symbol or alist). No longer
2119 allow a simple cons.
2120 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2121
e888c2b3
JD
21222004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2123
9238467d 2124 * config.in: Rebuild.
e888c2b3 2125
83f1cb94
JD
21262004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2127
2128 * config.in: Rebuild.
2129
dd3b1d60 2130 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2131
2c51754c
SM
21322004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2133
2134 * xterm.c (x_term_init): Work around a bug in some X servers.
2135
3df5f8aa
RS
21362004-09-18 Richard M. Stallman <rms@gnu.org>
2137
557ca2c1
RS
2138 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2139
3df5f8aa
RS
2140 * xdisp.c (try_window_reusing_current_matrix):
2141 Handle the case where we reach the old displayed text,
2142 out of sync with the old line boundary.
2143
9238467d 21442004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2145
2146 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2147 narrowed buffer.
2148
bfa02563
KS
21492004-09-14 Kim F. Storm <storm@cua.dk>
2150
a25fe164
KS
2151 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2152
bfa02563
KS
2153 * xfaces.c (Qface_no_inherit): New var.
2154 (syms_of_xfaces): Intern and staticpro it.
2155 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2156 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2157 Don't increment face_change_count when face has non-nil
2158 face-no-inherit property.
2159
126f9c02
SM
21602004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2161
892a8eb5
SM
2162 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2163 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2164
126f9c02 2165 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2166 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2167
c0ad3b38
KS
21682004-09-12 Kim F. Storm <storm@cua.dk>
2169
2170 * editfns.c (Fformat): Handle format strings with multiple text
2171 properties. Reverse text property list from the format string,
2172 so the positions are in increasing order.
2173
844fc085
JD
21742004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2175
2176 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2177 x_uncatch_errors so that possible protocol errors are delivered.
2178
b106731c
EZ
21792004-09-10 Eli Zaretskii <eliz@gnu.org>
2180
21065c92
EZ
2181 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2182 blockinput.h.
2183 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2184 charset.h, and coding.h
9238467d 2185 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2186 (term.o): Depend on window.h and keymap.h.
2187 (abbrev.o): Depend on syntax.h.
2188 (callint.o): Depend on keymap.h.
2189 (casefiddle.o): Depend on charset.h and keymap.h.
2190 (category.o): Depend on keymap.h.
2191 (coding.o): Depend on dispextern.h.
2192 (cmds.o): Depend on keyboard.h and keymap.h.
2193 (dispnew.o): Depend on indent.h and intervals.h.
2194 (doc.o): Depend on keymap.h.
2195 (editfns.o): Depend on frame.h.
2196 (emacs.o): Depend on dispextern.h.
2197 (fileio.o): Don't depend on ccl.h.
2198 (filelock.o): Depend on charset.h and coding.h.
2199 (frame.o): Depend on w32term.h and macterm.h.
2200 (insdel.o): Depend on region-cache.h.
2201 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2202 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2203 (search.o): Depend on $(INTERVALS_SRC).
2204 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2205 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2206 xterm.h, w32term.h, and macterm.h.
2207 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2208 w32term.h, and macterm.h.
2209 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2210 region-cache.h, xterm.h, w32term.h, and macterm.h.
2211 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2212 (data.o): Depend on frame.h.
2213 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2214 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2215 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2216 (intervals.o): Depend on keymap.h.
2217
9238467d
SM
2218 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2219 Add debugging print-out to termscript.
b106731c 2220
64b7122d
RS
22212004-09-09 Richard M. Stallman <rms@gnu.org>
2222
2223 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2224
5670531e
RS
22252004-09-08 Richard M. Stallman <rms@gnu.org>
2226
6cb4a892
RS
2227 * window.c (Fset_window_buffer): Doc fix.
2228
5670531e
RS
2229 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2230
7e388eb7
JL
22312004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2232
2233 * minibuf.c (history_delete_duplicates): New variable.
2234 (read_minibuf): Use it.
2235 (syms_of_minibuf): Create the corresponding lisp variable.
2236
370e3587
KS
22372004-09-08 Kim F. Storm <storm@cua.dk>
2238
2239 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2240 overlay just before point.
2241
f844ba4e
LT
22422004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2243
2244 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2245 * buffer.c (reset_buffer, init_buffer_once):
2246 Handle auto_save_file_format field.
f844ba4e
LT
2247 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2248 `buffer-auto-save-file-format'.
f844ba4e
LT
2249 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2250 (build_annotations): Adapt to replacement of
2251 `auto-save-file-format' with the new buffer-local variable
2252 `buffer-auto-save-file-format'.
2253 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2254
f0f90717
JR
22552004-09-07 Jason Rumney <jasonr@gnu.org>
2256
2257 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2258
9238467d
SM
2259 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2260 Handle Unicode menu titles.
f0f90717 2261
4e14f66c
KS
22622004-09-07 Kim F. Storm <storm@cua.dk>
2263
2264 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2265 property from text property or overlay strings at point.
2266
9238467d 22672004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2268
2269 * xmenu.c (update_submenu_strings): YAILOM.
2270 (set_frame_menubar): Make sure last_i is initialized.
2271
1f06d367
JR
22722004-09-03 Jason Rumney <jasonr@gnu.org>
2273
1806714a 2274 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2275 (digest_single_submenu): Set lname and lkey in widget_value
2276 instead of name and key.
2277 (update_submenu_strings): New function.
2278 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2279 call update_submenu_strings.
2280
2281 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2282 (digest_single_submenu, w32_menu_show): Encode menu strings as
2283 UTF-8 if Unicode API is available.
2284 (utf8to16): New function.
2285 (add_menu_item): Use it when calling Unicode API.
1806714a 2286
46540080
KS
22872004-09-03 Kim F. Storm <storm@cua.dk>
2288
2289 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2290 in overlay or text-property strings; set cursor on corresponding
2291 glyph rather than at end of the string.
2292
9277ba61 22932004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2294
9277ba61 2295 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2296 set a new one before obtaining the global coordinate.
2297 Use FRAME_MAC_WINDOW.
2298 (x_set_name, x_set_title): Encode title to UTF8.
2299 Use SetWindowTitleWithCFString.
9277ba61
ST
2300 (Fx_server_version): Get correct OS version.
2301
1806714a
SM
2302 * macmenu.c (add_menu_item): Remove unused variable `i'.
2303 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2304
2305 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2306 BLOCK_INPUT.
2307 (x_set_offset): Use FRAME_MAC_WINDOW.
2308
2309 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2310 nontext_cursor if it is on a scroll bar.
2311
2312 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2313 Carbon support.
1806714a
SM
2314 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2315 Use LIBS_CARBON.
9277ba61 2316
b10daec7
JD
23172004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2318
2319 * xfns.c (x_set_name_internal): New function. Check if we shall call
2320 xfree before ENCODE_UTF_8.
2321 (x_set_name, x_set_title): Call x_set_name_internal.
2322
f7e22385
JR
23232004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2324
2325 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2326 reload it.
2327
2bf436c3
JD
23282004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2329
1806714a 2330 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2331 (single_submenu): Set lname and lkey in widget_value
2332 instead of name and key.
2333 (update_submenu_strings): New function.
2334 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2335 call update_submenu_strings.
2336
2bf436c3
JD
2337 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2338 instead of name and key.
2339 (update_submenu_strings): New function.
2340 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2341 call update_submenu_strings.
2bf436c3
JD
2342
2343 * gtkutil.h (_widget_value): Added lname and lkey.
2344
11715f92
ST
23452004-08-30 Steven Tamm <steventamm@mac.com>
2346
2347 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2348 by using different names for inner loop variables.
2349
5500be54
JD
23502004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2351
059cd329
JD
2352 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2353 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2354
5500be54
JD
2355 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2356 tool bar items is 0.
2357
383418e5
ST
23582004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2359
2360 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2361 strings in menu items.
2362 (single_submenu): Use ENCODE_MENU_STRING
2363 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2364 button release isn't passed to event loop
2365 (add_menu_item): Use SetMenuItemWithCFString
2366
6eb3ee72
ST
23672004-08-26 Steven Tamm <steventamm@mac.com>
2368
2369 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2370 tool-bar/menu click
2371 * macfns.c (Fx_file_dialog): Implemented using NavServices
2372
10b43ac3
JD
23732004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2374
2728b5d0
JD
2375 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2376
10b43ac3
JD
2377 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2378 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2379 (x_top_window_to_frame): Return 0 if wdesc is None.
2380
2ee3b79e
RS
23812004-08-22 Richard M. Stallman <rms@gnu.org>
2382
2383 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2384 HAVE_TERMIOS]: If there's no char for this signal, drop through
2385 and use system calls.
2386
2387 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2388
9a1ba2ea
KS
23892004-08-20 Kim F. Storm <storm@cua.dk>
2390
2391 * process.c (wait_reading_process_output): Rename from
2392 wait_reading_process_input. All uses changed.
2393 (wait_reading_process_output_1): Rename from
2394 wait_reading_process_input_1. All uses changed.
2395
2396 * dispnew.c (Fsleep_for): Remove obsolete code.
2397
295f3b30
KH
23982004-08-20 Kenichi Handa <handa@m17n.org>
2399
2400 * syntax.c (skip_chars): Fix for unibyte case.
2401
27615979
SM
24022004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2403
2404 * syntax.c (char_quoted): Mixup byte/char pos.
2405 (back_comment): Fixup globals in all cases.
2406
00267f94
JD
24072004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2408
2409 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2410 passing it to gtk_window_set_title.
2411
2439909e
KS
24122004-08-19 Kim F. Storm <storm@cua.dk>
2413
6ba0f14c
KS
2414 * process.c (wait_reading_process_input): Clean up.
2415 Add wait_for_cell, wait_proc, and just_wait_proc args
2416 to avoid overloading `read_kbd' and `do_display' args.
2417 Change read_kbd arg to int. All callers changed.
2418
2439909e
KS
2419 * process.c (process_send_signal): Use CDISABLE.
2420
2421 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2422
101c421e
KS
24232004-08-18 Kim F. Storm <storm@cua.dk>
2424
2425 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2426 forward to wait_reading_process_input via DO_DISPLAY arg.
2427 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2428 object, only process output from that process; also inhibit
2429 running timers if DO_DISPLAY==-2.
2430
c438dc33
KS
24312004-08-17 Kim F. Storm <storm@cua.dk>
2432
2433 * process.c (process_send_signal): Fix last change--use
2434 _POSIX_VDISABLE instead of CVDISABLE when available.
2435
8afc13c6
RS
24362004-08-16 Richard M. Stallman <rms@gnu.org>
2437
2438 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2439 Set VQUIT and VINTR chars to the standard ones if they are unset.
2440 [AIX]: Don't do that here. And don't force VINTR to standard
2441 when SIGNALS_VIA_CHARACTERS.
2442
c438dc33 2443 * process.c (process_send_signal)
8afc13c6
RS
2444 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2445 Do nothing if the character is CVDISABLE.
2446
2447 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2448
c438dc33 2449 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2450 Force POSITION to be between BEGV and ZV.
2451
6dad1714
JPW
24522004-08-14 John Paul Wallington <jpw@gnu.org>
2453
2454 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2455
2456 * fileio.c (Fread_file_name): Doc fix.
2457
2458 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2459
2bd77330
LT
24602004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2461
2462 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2463
c90e7e43
LT
24642004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2465
2466 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2467 Qdisabled_command_hook.
c90e7e43 2468 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2469 Qdisabled_command_hook.
c90e7e43
LT
2470 (syms_of_keyboard): Ditto.
2471
81909a1a
LT
24722004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2473
2474 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2475 (syms_of_keymap) <key-translation-map>: Doc fixes.
2476
0cedd530
SM
24772004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2478
1725a7c9
SM
2479 * window.c (window_list_1): YAILOM.
2480
0cedd530
SM
2481 * fileio.c (make_temp_name): Handle multibyte prefixes.
2482
2515a131
LT
24832004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2484
2485 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2486 Doc fix.
2487
c8b20fb7
KH
24882004-08-03 Kenichi Handa <handa@m17n.org>
2489
2490 * coding.c (decode_coding_string): Adjust coding->consumed, and
2491 etc. with shrinked_bytes.
2492
fb8b092b
KS
24932004-08-03 Kim F. Storm <storm@cua.dk>
2494
2495 * indent.c (compute_motion): Fix check for full width window
2496 in non-window case. Do not count left truncation glyph on
2497 window systems.
2498
df133612
LT
24992004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2500
2501 * data.c (Finteractive_form): Doc fix.
2502
0f7a93c1
KS
25032004-08-02 Kim F. Storm <storm@cua.dk>
2504
2505 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2506 properly accounting for continuation glyph on non-window systems.
2507 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2508 actual window width/height if TOPOS is nil, properly accounting for
2509 continuation glyphs on non-window systems, and optional header lines.
2510 (vmotion): Let compute_motion calculate actual window width.
2511
2512 * window.c (window_scroll_line_based): Let compute_motion
2513 calculate actual window width.
2514
f491e1ed
KS
25152004-08-02 Kim F. Storm <storm@cua.dk>
2516
2517 * process.c (read_process_output): Use whole read buffer.
2518 Don't trigger adaptive read buffering on errors.
2519
83f64226
LT
25202004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2521
2522 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2523
2524 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2525
2526 * callint.c (Fcall_interactively): Doc fix.
2527
8afc13c6
RS
25282004-07-30 Richard M. Stallman <rms@gnu.org>
2529
2530 * abbrev.c (Fexpand_abbrev): Undo previous change.
2531
7c111482
KS
25322004-07-30 Kim F. Storm <storm@cua.dk>
2533
2534 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2535
ee945d08
LT
25362004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2537
2538 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2539
3f911c94
KS
25402004-07-27 Kim F. Storm <storm@cua.dk>
2541
2542 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2543 we have ensured that the glyph fits on the current line (or returned
2544 MOVE_LINE_CONTINUED otherwise).
2545
f29ff8c7
KS
25462004-07-26 Kim F. Storm <storm@cua.dk>
2547
2548 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2549 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2550 if target position is at end of display line but char is not a newline.
2551
81159bb9
RS
25522004-07-25 Richard M. Stallman <rms@gnu.org>
2553
ab431b61
RS
2554 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2555 instead of ON_VERTICAL_BORDER, when on scroll bar.
2556 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2557
2558 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2559
f29ff8c7 2560 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2561 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2562
2563 * alloc.c (check_cons_list): New function (contents commented out).
2564
fc820cc5
LT
25652004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2566
2567 * xfaces.c (Fcolor_supported_p): Doc fix.
2568
2569 * frame.c (Fselect_frame, Fset_frame_selected_window)
2570 (Fframe_visible_p, Fraise_frame): Doc fixes.
2571
289978b5
LT
25722004-07-24 Richard M. Stallman <rms@gnu.org>
2573
78819ebb 2574 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2575
2576 * fileio.c (Fwrite_region): Doc fix.
2577
2578 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2579
2580 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2581 only when a real abbrev is present.
2582
289978b5
LT
2583 * xfns.c (x_icon_verify): New function.
2584 (Fx_create_frame): Use it.
2585
63cc10ae
KS
25862004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2587
2588 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2589
36f826d4
KS
25902004-07-21 Kim F. Storm <storm@cua.dk>
2591
2592 * window.h (struct glyph_matrix): New members nrows_scale_factor
2593 and ncols_scale_factor.
2594
2595 * window.c (make_window): Initialize nrows_scale_factor and
2596 ncols_scale_factor members.
2597
2598 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2599 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2600 (required_matrix_height): Apply nrows_scale_factor.
2601 (required_matrix_width): Apply ncols_scale_factor.
2602
2603 * xdisp.c (display_line): Increment nrows_scale_factor and set
2604 fonts_changed_p if past last allocated row.
2605 (append_glyph, append_composite_glyph, produce_image_glyph)
2606 (append_stretch_glyph): Increment ncols_scale_factor and set
2607 fonts_changed_p if current area is full.
2608
5fc1c546
JD
26092004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2610
2611 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2612
cb7516e5
LT
26132004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2614
2615 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2616 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2617 (Fset_window_start, Fscroll_up, Fscroll_down)
2618 (Fother_window_for_scrolling, Fscroll_other_window)
2619 (Fsave_window_excursion, Fset_window_vscroll)
2620 (syms_of_window) <window-size-fixed>: Doc fixes.
2621
b6189c3b 26222004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2623
2624 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2625 ENCODE_SYSTEM for filenames.
2626
bfcf6608
ST
26272004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2628
2629 * mac.c (sys_select): Block input around call to
2630 ReceiveNextEvent to prevent breakage. Correctly handle
2631 blocking on event queue only by calling ReceiveNextEvent
2632 instead of select (since GUI events aren't on an fd).
2633 (sys_read): Remove function
2634 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2635
e082ac9d
ST
26362004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2637
2638 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2639 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2640
cb7516e5 2641 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2642 frame creation.
2643
2644 * keyboard.c: Undef SIGIO on Carbon
2645
2646 * atimer.c (alarm_signal_handler): Call alarm handlers after
2647 scheduling.
2648
2649 * eval.c (Feval): Remove quit_char test
2650
2651 * process.c (wait_reading_process_input): Remove clearing
2652 stdin for select call on process input.
2653
4b9da0fb
LT
26542004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2655
1204e81c
LT
2656 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2657 capitalization error in docstring.
4b9da0fb 2658
26503ad2
JB
26592004-07-17 Juanma Barranquero <lektu@terra.es>
2660
2661 * keyboard.c (not_single_kboard_state): Do nothing unless
2662 MULTI_KBOARD is defined.
2663
3751eb00
RS
26642004-07-17 Richard M. Stallman <rms@gnu.org>
2665
2666 * window.c (coordinates_in_window): Inside the window but outside
2667 its box to the L or R, return ON_VERTICAL_BORDER.
2668 (window_list_1): Rotate the list to start with WINDOW.
2669
2670 * print.c (print_preprocess): Test for print_depth at limit
2671 before entering in being_printed.
2672
2673 * keyboard.c (not_single_kboard_state): New function.
2674 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2675
2676 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2677 this kboard, and we delete its last frame, go to any_kboard_state.
2678
2679 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2680
b6189c3b 26812004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2682
2683 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2684 system before passing them to OS functions for display.
2685
0f6af254
DK
26862004-07-15 David Kastrup <dak@gnu.org>
2687
f9253326
KS
2688 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2689 Apparently fixes an abort condition.
0f6af254 2690
386c8f42
LT
26912004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2692
2693 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2694 instead of a cons.
2695
366511da
MB
26962004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2697
2698 * keyboard.c (echo_dash): Do nothing if there already is a dash
2699 at the end of the echo string.
2700
f85409d3
KS
27012004-07-12 Kim F. Storm <storm@cua.dk>
2702
2703 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2704 if GC_MARK_STACK.
2705
0ba2e87b
LT
27062004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2707
da38045d
LT
2708 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2709
0ba2e87b
LT
2710 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2711 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2712 (Freplace_buffer_in_windows, Fset_window_buffer)
2713 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2714 (syms_of_window): Expand docstring of `display-buffer-function'.
2715
5668fbb8
LT
27162004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2717
2718 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2719 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2720 that time values of the type (HIGH . LOW) are considered obsolete.
2721
a085bf9d
LT
27222004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2723
669de2fb
LT
2724 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2725 docstring.
2726
bac66325 2727 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2728
8e975df9
JPW
27292004-07-06 John Paul Wallington <jpw@gnu.org>
2730
2731 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2732
fa164e6a
JPW
2733 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2734
2bac9bb1
JD
27352004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2736
2737 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2738 instead of CGMainDisplayID (only in OSX 10.2 and later).
2739
316ef0dc
JPW
27402004-07-04 John Paul Wallington <jpw@gnu.org>
2741
2742 * fileio.c (read_file_name_completion_ignore_case): New variable.
2743 (syms_of_fileio): Declare and initialise it.
2744 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2745
2a1a35c6
EZ
27462004-07-03 Eli Zaretskii <eliz@gnu.org>
2747
2748 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2749 for event.x and event.y.
2750
33a72331
KH
27512004-07-01 Kenichi Handa <handa@m17n.org>
2752
2753 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2754 after getting a new string by pre-write-conversion.
2755
9238467d 27562004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2757
2758 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2759 (x_calc_absolute_position): Remove unused var `child'.
2760
2761 * xfaces.c (x_supports_face_attributes_p)
2762 (Fdisplay_supports_face_attributes_p): YAILOM.
2763 (tty_supports_face_attributes_p): Remove unused var `i'.
2764
2765 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2766 back_unibyte_ok.
2767
2768 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2769
2770 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2771
2772 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2773
f96ec754
AS
27742004-06-30 Andreas Schwab <schwab@suse.de>
2775
2776 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2777 (Finit_image_library): Pass LIBRARIES through to
2778 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2779 (lookup_image_type): Pass Qnil as second argument to
2780 Finit_image_library.
2781
78819ebb 2782 * lisp.h (Finit_image_library): Declare.
f96ec754 2783
59feca74 27842004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2785
31983645
AS
2786 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2787 (XTread_socket): Send mouse button events to the toolbox
2788 dispatcher even when the mouse is grabbed. Don't process window
2789 activate events for non-Emacs windows. Replace function calls to
2790 do_window_activate and do_window_deactivate with their contents.
2791 Reset mouse grabbing status when a window is deactivated.
59feca74 2792
c61278bb
ST
27932004-06-29 Steven Tamm <steventamm@mac.com>
2794
2795 * macterm.c (mac_get_emulated_btn)
2796 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2797 support to correctly mask out modifiers.
2798
c3762cbd
DK
27992004-06-29 David Kastrup <dak@gnu.org>
2800
2801 * search.c (Fset_match_data): Allow buffer before end of list
2802 which can happen if set-match-data is using a pre-consed list.
2803
c61278bb 28042004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2805
2806 * macterm.c (XTread_socket): Correctly set the frame position
2807 after the window is moved.
2808
74cdfe05
JD
28092004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2810
2811 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2812 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2813 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2814 so insensitive and activated icons look ok.
74cdfe05 2815
ef544dc8
JR
28162004-06-27 Jason Rumney <jasonr@gnu.org>
2817
2818 * w32fns.c (file_dialog_callback): Disable edit control if set
2819 to directories only on CDN_INITDONE message.
2820 (Fx_file_dialog): Default to directories only when prompt starts
2821 with "Dired".
2822
7b7990cc
KS
28232004-06-25 Kim F. Storm <storm@cua.dk>
2824
2825 * alloc.c (allocate_misc): Update total_free_markers.
2826 (free_misc): New function.
2827 (safe_alloca_unwind, free_marker): Use it.
2828
2829 * lisp.h (free_misc): Add prototype.
2830
2831 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2832
d8c379f8
RS
28332004-06-24 Richard M. Stallman <rms@gnu.org>
2834
2835 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2836 (syms_of_emacs): Lisp variables deleted.
2837
559cdd07
DK
28382004-06-23 David Kastrup <dak@gnu.org>
2839
94939b84
DK
2840 * search.c (Freplace_match): Adjust the match-data more thoroughly
2841 when replacing strings in the buffer.
2842 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2843 a buffer, add the buffer as last element to the match data.
2844 (Fset_match_data): If an additional element of the match-data is a
2845 buffer, restore it to last_thing_searched.
c8d09ad8 2846 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2847 (restore_match_data): Restore it again.
2848
dce417e7
LT
28492004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2850
2851 * keymap.c (Ftext_char_description): Doc fix.
2852 * doc.c (Fsnarf_documentation): Doc fix.
2853
ef54b2d0
KS
28542004-06-22 Kim F. Storm <storm@cua.dk>
2855
b5bc4d05
KS
2856 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2857
ef54b2d0
KS
2858 * lisp.h (struct Lisp_Save_Value): New member dogc.
2859 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2860 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2861 (SAFE_FREE_LISP): New macro.
2862
2863 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2864 (make_save_value): Init new dogc member.
2865 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2866
2867 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2868 SAFE_FREE_LISP macros.
2869
3d33d993
KS
28702004-06-22 Kim F. Storm <storm@cua.dk>
2871
2872 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2873 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2874 in that memory area are unknown to GC. Add comments.
2875
2876 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2877
5c917f98
KS
28782004-06-21 Kim F. Storm <storm@cua.dk>
2879
2880 * lisp.h (MAX_ALLOCA): Define here.
2881 (safe_alloca_unwind): Add prototype.
2882 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2883
2884 * alloc.c (safe_alloca_unwind): New function.
2885
2886 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2887
2888 * charset.c (Fstring): Use SAFE_ALLOCA.
2889
2890 * coding.c (MAX_ALLOCA): Remove define.
2891
2892 * data.c (MAX_ALLOCA): Remove define.
2893 (Faset): Use SAFE_ALLOCA.
2894
2895 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2896
2897 * fns.c (string_make_multibyte, string_to_multibyte)
2898 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2899 (MAX_ALLOCA): Remove define.
2900 (Fbase64_encode_region, Fbase64_encode_string)
2901 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2902 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2903 memory leak if encoding fails.
2904
2905 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2906
9a09408e
EZ
29072004-06-21 Eli Zaretskii <eliz@gnu.org>
2908
2909 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2910
376de739
RS
29112004-06-20 Richard M. Stallman <rms@gnu.org>
2912
2913 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2914
2915 * search.c (match_limit): Cleaner err msg when no match data available.
2916
2917 * window.c (syms_of_window): Doc fix.
2918
2919 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2920 for Vtransient_mark_mode.
2921
2922 * buffer.c (syms_of_buffer): Doc fix.
2923
acd81db9
DK
29242004-06-21 David Kastrup <dak@gnu.org>
2925
2926 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2927 and unbinding of `case-fold-search' according to
2928 `completion-ignore-case' around calls of string-match and
2929 predicates, respectively. Should give satisfactory performance
2930 in all relevant cases.
2931
f303762d
JD
29322004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2933
95911c74
JD
2934 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2935 clip_x/y_origin.
2936
a6cb6b78
JD
2937 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2938
f303762d
JD
2939 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2940
2941 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2942 on Mac OSX.
2943
bbdb2684
LT
29442004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2945
2946 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2947
5ea48b1c
KS
29482004-06-16 Kim F. Storm <storm@cua.dk>
2949
2950 * dispextern.h (Vimage_types): Remove extern.
2951
803aac3e
MB
29522004-06-16 Miles Bader <miles@gnu.org>
2953
2954 * image.c (lookup_image_type): Initialize image type if necessary.
2955
cdc97764
KS
29562004-06-15 Kim F. Storm <storm@cua.dk>
2957
c4a5739c
KS
2958 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2959 margin at top of window.
2960 (try_window_reusing_current_matrix): Calculate proper cursor position
2961 after scrolling up with non-zero scroll margin, as the old cursor
2962 position corresponds to value of PT before executing this command.
2963 (try_window_id): Consider scroll margin at bottom of window too;
2964 otherwise we fail to scroll when hl-line-mode is enabled.
2965
cdc97764
KS
2966 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2967 proper format and class is a lower-case word.
2968
5b166323
JD
29692004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2970
2971 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2972 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2973 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2974 xg_get_gdk_pixmap_and_mask.
cdc97764 2975
5b166323
JD
2976 * xterm.h (struct x_display_info): Typo in comment fixed.
2977
1ebd4f78
JB
29782004-06-14 Juanma Barranquero <lektu@terra.es>
2979
2980 * dispextern.h (Vimage_types): Make it conditional on
2981 HAVE_WINDOW_SYSTEM.
2982
2983 * image.c (Vimage_types): Move from xdisp.c.
2984 (Vimage_type_cache): New variable.
2985 (define_image_type): New argument indicating whether an image
2986 library was loaded; cache loaded status and return t on success,
2987 nil otherwise.
2988 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2989 (w32_delayed_load): New function to load an image library from a
2990 list of possible filenames.
2991 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2992 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2993 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2994 (Finit_image_library): New function, extracted from `init_image'.
2995 Try to initialize an image library on demand and cache whether we
2996 were successful or not.
2997 (syms_of_image): Initialize `Vimage_types' and
2998 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2999 Export `init-image-library'.
3000 (init_image): Remove initialization of all image types, except xbm
3001 and pbm.
3002
3003 * xdisp.c (Vimage_types): Delete (moved to image.c).
3004
904ee128
AS
30052004-06-14 Andreas Schwab <schwab@suse.de>
3006
3007 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3008 Avoid calling specbind when completion-regexp-list is empty.
3009
092de21d
RS
30102004-06-13 Richard M. Stallman <rms@gnu.org>
3011
3012 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3013 (re_wctype, re_iswctype, re_wctype_to_bit):
3014 Non-function definitions moved here from regex.c.
1ebd4f78 3015
092de21d
RS
3016 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3017 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3018 (re_wctype, re_iswctype, re_wctype_to_bit):
3019 Non-function definitions moved to regex.h.
3020
3021 * window.c (Fselect_window): Doc fix.
3022
3023 * syntax.c: Include regex.h.
3024 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3025 If requested, make a list of classes, then check the scanned
3026 chars for membership in them.
3027 (in_classes): New function.
3028 Doc fix.
3029
3030 * keyboard.c (cmd_error): Don't call any_kboard_state
3031 if inside a recursive edit level.
3032
30332004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3034
3035 * keyboard.c (command_loop): Call any_kboard_state before
3036 command_loop_2 when at top level.
3037
3ebc0939
AS
30382004-06-13 Andreas Schwab <schwab@suse.de>
3039
cea5d0d4
AS
3040 * print.c (print_object): Always use %ld for printing EMACS_INT.
3041
3042 * keyboard.c (cancel_hourglass_unwind): Return a value.
3043 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3044 (Fexecute_extended_command): Likewise.
3045
3046 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3047 avoid clashes.
3048 (SYNTAX): Likewise.
3049 (SYNTAX_WITH_FLAGS): Likewise.
3050 (SYNTAX_MATCH): Likewise.
3051
3052 * syntax.c (char_quoted): Avoid warning about undefined operation.
3053 (find_defun_start): Likewise.
3054 (scan_lists): Likewise.
3055 (INC_FROM): Likewise.
3056 (scan_sexps_forward): Likewise.
3057
be8c4ce4
AS
3058 * image.c: Include <ctype.h>.
3059
3ebc0939
AS
3060 * xfaces.c (face_attr_equal_p): Declare parameters.
3061
6fb41b5b
KH
30622004-06-13 Kenichi Handa <handa@m17n.org>
3063
3064 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3065
fc3095ce
EZ
30662004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3067
3068 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3069
66189a40
KH
30702004-06-12 Kenichi Handa <handa@m17n.org>
3071
3072 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3073 ccl_prog_stack_struct and update it.
3074 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3075 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3076 ccl->eof_ic on EOF.
3077 (ccl_debug_hook): New function.
3078 (struct ccl_prog_stack): New member eof_ic.
3079 (ccl_driver): Handle EOF in subrountine call correctly.
3080
30812004-06-11 Kenichi Handa <handa@m17n.org>
3082
3083 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3084
1da71023
KS
30852004-06-11 Kim F. Storm <storm@cua.dk>
3086
3087 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3088
e9efcef4
JB
30892004-06-11 Juanma Barranquero <lektu@terra.es>
3090
3091 * keyboard.c (Fposn_at_point): Doc fix.
3092
9b9ceb61
DK
30932004-06-11 David Kastrup <dak@gnu.org>
3094
3095 * search.c (match_limit): Don't flag an error if match-data
3096 exceeding the allocated search_regs.num_regs gets requested, just
3097 return Qnil.
3098
6e87ac8f
MB
30992004-06-08 Miles Bader <miles@gnu.org>
3100
3101 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3102
0b0dea7b
JB
31032004-06-07 Juanma Barranquero <lektu@terra.es>
3104
3105 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3106 (Fcurrent_time_string, Fcurrent_time_zone)
3107 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3108
a0a23346
MB
31092004-06-07 Miles Bader <miles@gnu.org>
3110
08384afd 3111 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3112 (push_named_merge_point): New function.
3113 (merge_named_face): New function.
3114 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3115 Use `merge_named_face'.
3116 (merge_face_inheritance): Function removed.
c8d09ad8 3117 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3118 Add new `err_msgs' and `named_merge_points' args. Return error
3119 status. Only print error messages if ERR_MSGS is true. Don't try to
3120 do :inherit attribute validation.
3121 (merge_face_heights): Handle `unspecified' in both directions.
3122 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3123 Call `merge_face_ref' instead of `merge_face_inheritance'.
3124 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3125 (compute_char_face, face_at_buffer_position)
3126 (face_at_string_position): Call `merge_face_ref' instead of
3127 `merge_face_vector_with_property'.
3128
12d5b185
KH
31292004-06-07 Kenichi Handa <handa@m17n.org>
3130
3131 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3132 the necessary places.
3133
2e2d7ee6
KS
31342004-06-07 Kim F. Storm <storm@cua.dk>
3135
3136 * process.c (Fdelete_process): Undo 2004-05-28 change.
3137 Instead, call status_notify also for network process.
3138 (status_message): Use process instead of status as arg.
3139 Give messages "deleted" or "connection broken by remote peer" for
3140 an exited network process.
3141 (status_notify): Change call to status_message.
3142 (read_process_output): Increase readmax to 4096. Do not increase
3143 buffer size for datagram channels (default is now large enough).
3144
fcf0d299
ST
31452004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3146
3147 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3148 problem due to newly defined variable.
3149
0722292b
MB
31502004-06-06 Miles Bader <miles@gnu.org>
3151
3152 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3153 immediately if non-interactive or not initialized.
3154
ddfb8369
RS
31552004-06-05 Richard M. Stallman <rms@gnu.org>
3156
3157 * minibuf.c (Fcompleting_read): Doc fix.
3158
57015754
AS
31592004-06-05 Andreas Schwab <schwab@suse.de>
3160
3161 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3162
23715ea6
JB
31632004-06-05 Juanma Barranquero <lektu@terra.es>
3164
3165 * keymap.c (Fdescribe_vector): Fix docstring.
3166 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3167
8e330b22
MB
31682004-06-05 Miles Bader <miles@gnu.org>
3169
3170 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3171 attributes have different values than the default face.
3172
9742a3a6
EZ
31732004-06-04 Eli Zaretskii <eliz@gnu.org>
3174
3175 * xfaces.c (x_supports_face_attributes_p): Make this function
3176 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3177 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3178 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3179
9717e36c
MB
31802004-06-04 Miles Bader <miles@gnu.org>
3181
3182 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3183 from Ftty_supports_face_attributes_p.
3184 (x_supports_face_attributes_p): New function.
3185 (Ftty_supports_face_attributes_p): Function deleted.
3186 (Fdisplay_supports_face_attributes_p): New function.
3187 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3188 (face_attr_equal_p): New function.
9717e36c
MB
3189 (lface_equal_p): Use it.
3190
52deb19f
JB
31912004-06-03 Juanma Barranquero <lektu@terra.es>
3192
3193 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3194 (Vw32_color_map): Fix typo in docstring.
3195 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3196 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3197 Make argument names match their use in docstring.
3198
86d373e6
JB
31992004-06-02 Juanma Barranquero <lektu@terra.es>
3200
3201 Work around bugs/problems with MinGW builds of graphics libraries
3202 called from MSVC builds of Emacs.
3203
3204 * image.c (lookup_image): Make pointer to img static.
3205 (png_read_from_memory): Disable "global" optimization.
3206
2fb0ce67
SM
32072004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3208
c8d09ad8
SM
3209 * eval.c (Fcondition_case): Fix usage. Simplify.
3210
2fb0ce67
SM
3211 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3212
50bf7673
ST
32132004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3214
3215 * macfns.c: Don't include ccl.h.
3216 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3217 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3218 TextUtils.h.
c8d09ad8 3219 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3220 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3221 display height/width.
3222 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3223 (unwind_create_tip_frame, compute_tip_xy): New functions.
3224 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3225 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3226 and last_show_tip_args.
2fb0ce67 3227
50bf7673
ST
3228 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3229 (Cursor, No_Cursor): New defines.
c8d09ad8 3230 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3231 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3232
3233 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3234
3235 * macterm.c: Don't include Gestalt.h.
3236 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3237 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3238 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3239 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3240 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3241 (construct_mouse_click, XTmouse_position)
3242 (x_scroll_bar_report_motion, x_calc_absolute_position)
3243 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3244 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3245 (note_mouse_movement): Clear the mouse face and reset the pointer
3246 shape when the pointer goes outside the frame without grabbing.
3247 (mac_front_window): New function.
3248 (mac_window_to_frame): New macro.
3249 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3250 (do_window_activate, do_window_deactivate, do_app_resume)
3251 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3252 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3253 (mac_check_for_quit_char): Use mac_front_window and/or
3254 mac_window_to_frame.
3255 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3256 scroll-bar click event.
3257 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3258 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3259 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3260 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3261 (do_window_update): Don't do anything if the updated window is the
3262 tooltip window.
3263 (do_mouse_moved): Handle mouse movement events here (previously in
3264 XTread_socket). Clear the mouse face if
3265 dpyinfo->mouse_face_hidden is set.
3266 (do_os_event, do_events): Remove (now in XTread_socket).
3267 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3268 Loop until all the events in the queue are processed.
3269 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3270 contents of do_os_event and do_events. Remove mouse movement
3271 handling (now in do_mouse_moved). Add the case where
3272 Vmouse_highlight has an integer value.
3273 (NewMacWindow): Remove.
3274 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3275 excess initializations.
3276 (make_mac_terminal_frame): Previous initializations in
3277 make_mac_frame are moved here.
c8d09ad8
SM
3278 (mac_initialize_display_info):
3279 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3280
3281 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3282 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3283
08fd1251
RS
32842004-05-29 Richard M. Stallman <rms@gnu.org>
3285
3286 * lisp.h (truncate_undo_list): Update decl.
3287
3288 * alloc.c (undo_outer_limit): New variable.
3289 (syms_of_alloc): Defvar it.
3290 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3291
3292 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3293
3294 * alloc.c (lisp_align_malloc): Check for base == 0
3295 regardless of HAVE_POSIX_MEMALIGN.
3296 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3297
227ef0ff
SM
32982004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3299
3300 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3301 (marker_blocks_pending_free): Remove.
3302 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3303 Mark the undo lists after claning them up.
3304 Don't free block in marker_blocks_pending_free.
3305 (mark_buffer): Don't mark undo_list.
3306 (gc_sweep): Sweep hash-tables and strings first.
3307 Do free marker blocks that are empty.
3308
034a6113
SM
33092004-05-28 Jim Blandy <jimb@redhat.com>
3310
3311 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3312 after 'case wordend'. For symbeg and symend, print to stderr,
3313 like the other cases.
3314
33594a8d
NF
33152004-05-28 Noah Friedman <friedman@splode.com>
3316
3317 * process.c (Fdelete_process): Do not call remove_process.
3318
ce50a847
SM
33192004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3320
3321 * alloc.c (struct backtrace): Remove.
3322 (Fgarbage_collect): Use the new mark_backtrace.
3323
3324 * eval.c (mark_backtrace): New function.
3325
3326 * minibuf.c (run_exit_minibuf_hook): New function.
3327 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3328 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3329
1e8dae36
KS
33302004-05-27 Kim F. Storm <storm@cua.dk>
3331
3332 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3333 over display properties, e.g. images, that replace buffer text.
3334
846faa3b
KS
33352004-05-25 Kim F. Storm <storm@cua.dk>
3336
3337 * alloc.c (marker_blocks_pending_free): New var.
3338 (gc_sweep): Store free marker blocks on that list.
3339 (Fgarbage_collect): Free them after undo-list cleanup.
3340
3341 * process.c (wait_reading_process_input): Check connect_wait_mask
3342 before actually accepting connection in case it has already been
3343 accepted due to recursion.
3344
b6189c3b 33452004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3346
ce50a847
SM
3347 * coding.c (Fset_safe_terminal_coding_system_internal):
3348 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3349
71d5a208
RS
33502004-05-22 Richard M. Stallman <rms@gnu.org>
3351
3352 * alloc.c (Fmake_string): Doc fix.
3353
3354 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3355 and the alist pairs too.
3356
3357 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3358
3359 * emacs.c (main): Update copyright year.
3360
3361 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3362
3363 * insdel.c (del_range_2, replace_range): Don't write an anchor
3364 if the gap is empty.
3365
3366 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3367 scroll-down-aggressively is small but positive, put point
3368 near the screen edge.
3369
f63fd14e
JB
33702004-05-22 Juanma Barranquero <lektu@terra.es>
3371
3372 * keymap.c (Fdefine_key): Doc fix.
3373
4d12067c
KS
33742004-05-22 Kim F. Storm <storm@cua.dk>
3375
3376 * alloc.c (struct backtrace): Add debug_on_exit member.
3377 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3378 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3379 the removed cons cells.
3380 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3381 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3382 any cons cells pointing to unallocated stings.
3383 Do not lisp_free any marker blocks, as there may still be pointers
3384 to them from buffer undo lists at this stage of GC.
3385
3386 * keyboard.c (struct backtrace): Add debug_on_exit member.
3387 (Fcommand_execute): Clear it.
3388
931285e2
LT
33892004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3390
3391 * intervals.c (lookup_char_property): Do not prematurely return nil.
3392
669fa600
SM
33932004-05-19 Jim Blandy <jimb@redhat.com>
3394
3395 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3396 beginning and end of symbols.
4d12067c 3397
669fa600
SM
3398 * regex.c (enum syntaxcode): Add Ssymbol.
3399 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3400 (re_opcode_t): New opcodes `symbeg' and `symend'.
3401 (print_partial_compiled_pattern): Print the new opcodes properly.
3402 (regex_compile): Parse the new operators.
ce50a847 3403 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3404 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3405 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3406 (re_match_2_internal): Match symbeg and symend.
3407
3408 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3409
0d8c2e5c
KS
34102004-05-19 Kim F. Storm <storm@cua.dk>
3411
3412 * .gdbinit (xsymbol): Fix last change.
3413
669fa600
SM
34142004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * .gdbinit (xprintstr): New fun.
3417 (xstring, xprintsym): Use it.
3418
3419 * w32proc.c (create_child): Use INTMASK.
3420
3421 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3422 unmarked elements of the undo list.
3423
9a6a4c40
DP
34242004-05-18 David Ponce <david@dponce.com>
3425
3426 * print.c (print): Reset print_depth before to call print_object.
3427
f3c4ec74
JR
34282004-05-18 Jason Rumney <jasonr@gnu.org>
3429
3430 * w32console.c: Prefix RIF functions with w32con_ to avoid
3431 namespace clash with functions in term.c and w32term.c.
3432
3433 * w32menu.c (add_menu_item, w32_menu_display_help)
3434 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3435
0d8c2e5c 3436 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3437
6be49c3a
EZ
34382004-05-18 Eli Zaretskii <eliz@gnu.org>
3439
4d0b9a0a
EZ
3440 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3441
6be49c3a
EZ
3442 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3443 with make_number.
3444 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3445 with XINT.
3446
0bc90bba
KS
34472004-05-18 Kim F. Storm <storm@cua.dk>
3448
89d19988
KS
3449 * blockinput.h (INPUT_BLOCKED_P): New macros.
3450
3451 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3452 (Ftop_level): Unblock input if blocked.
3453
0bc90bba
KS
3454 * buffer.h (GET_OVERLAYS_AT): New macro.
3455 * msdos.c (IT_note_mouse_highlight): Use it.
3456 * textprop.c (get_char_property_and_overlay): Use it.
3457 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3458 * xfaces.c (face_at_buffer_position): Use it.
3459
3460 * print.c (print_object): Increase buf size.
3461
653bd0f6
JR
34622004-05-17 Jason Rumney <jasonr@gnu.org>
3463
3464 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3465 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3466 Lisp_Object using i member.
3467 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3468 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3469 consistently.
3470
3471 * w32proc.c (create_child): Use make_number instead of masking pid.
3472
3473 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3474 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3475 Use EQ to compare Lisp_Objects.
3476 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3477
3478 * w32term.c (w32_num_mouse_buttons): Rename from
3479 Vw32_num_mouse_buttons and make it an int.
3480
3481 * w32.c (init_environment): Use it.
3482
3483 * w32fns.c (w32_wnd_proc): Likewise.
3484
3485 * w32proc.c (w32_pipe_read_delay): Rename from
3486 Vw32_pipe_read_delay and make it an int.
3487
3488 * w32.c (_sys_read_ahead): Use it.
3489
3490 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3491
3492 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3493
3494 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3495 (key_event): Don't mix Lisp_Object and int.
3496
3497 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3498
3499 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3500 modifiers in language change event.
3501
54b53ba7
KS
35022004-05-17 Kim F. Storm <storm@cua.dk>
3503
3504 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3505 Such objects may be freed markers which still exist on an undo list.
3506
6e86a75d
JB
35072004-05-16 Juanma Barranquero <lektu@terra.es>
3508
3509 * data.c (Fset_default): Make argument names match their use in
3510 docstring.
3511
fc80da24
AS
35122004-05-15 Andreas Schwab <schwab@suse.de>
3513
3514 * emacs.c (gdb_array_mark_flag): Define.
3515 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3516
c1380aa6
EZ
35172004-05-15 Eli Zaretskii <eliz@gnu.org>
3518
3519 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3520 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3521 defined for the MS-DOS build.
3522
89458937
SM
35232004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3524
3525 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3526
08020f9a
KH
35272004-05-14 Kenichi Handa <handa@m17n.org>
3528
3529 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3530
a433994a
ST
35312004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3532
3533 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3534 section to frame.c section.
3535 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3536 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3537
a433994a 3538 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3539
a433994a 3540 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3541
a433994a
ST
3542 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3543 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3544 (XTread_socket): Fix int/Lisp_Object mixup.
3545 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3546
a433994a
ST
3547 * macterm.h (struct frame, struct face, struct image)
3548 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3549 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3550 Add prototypes.
a433994a 3551
b51a51b9
KS
35522004-05-14 Kim F. Storm <storm@cua.dk>
3553
3554 * process.c (wait_reading_process_input): Make reentrant.
3555 Make Available and Connecting non-static. Save and restore value
3556 of waiting_for_user_input_p.
3557
2bde1dd8
KS
35582004-05-13 Kim F. Storm <storm@cua.dk>
3559
3560 * keyboard.c (mark_kboards): Don't mark x and y members
3561 that are overloaded in selection request events.
3562
a267ab4d
SM
35632004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3564
3565 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3566
eb15ce9e
GM
35672004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3568
3569 * window.c (Fdisplay_buffer, Fsplit_window)
3570 (split-height-threshold): Doc fix.
3571
7fc92635
JB
35722004-05-13 Juanma Barranquero <lektu@terra.es>
3573
3574 * xfaces.c (Ftty_supports_face_attributes_p)
3575 (Finternal_copy_lisp_face): Fix typo in docstring.
3576 (Finternal_get_lisp_face_attribute): Fix docstring.
3577
1ec2a572
JD
35782004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3579
3580 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3581
ae9292e0
ST
35822004-05-11 Steven Tamm <steventamm@mac.com>
3583
3584 * macfns.c (Fx_create_frame): Default to using tool-bar by
3585 setting tool-bar-lines to 1 in default-frame-alist.
3586
35872004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3588
3589 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3590 (xpm_get_color_table_v, xpm_make_color_table_h)
3591 (xpm_put_color_table_h, xpm_get_color_table_h)
3592 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3593 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3594 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3595
fe97e8df
ST
35962004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3597
a267ab4d 3598 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3599 instead of FRAME_X_P
3600
b47e779e
KS
36012004-05-11 Kim F. Storm <storm@cua.dk>
3602
3603 * process.c (read_process_output): Grow decoding_buf when needed;
3604 this could cause a crash in allocate_string and compact_small_strings.
3605
cdc9b845
EZ
36062004-04-29 Jim Blandy <jimb@redhat.com>
3607
3608 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3609 against proper opcode.
3610
aa7094ba
JB
36112004-05-10 Juanma Barranquero <lektu@terra.es>
3612
3613 * process.c (Fstart_process): Fix docstring.
3614
3615 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3616 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3617 (Fsplit_char, Fchar_charset): Make argument names match their use
3618 in docstring.
3619
e109331a
RS
36202004-05-10 Richard M. Stallman <rms@gnu.org>
3621
3622 * print.c (print_preprocess): Use being_printed, loop_count and
3623 halftail to detect overdeep nesting and cyclic cdr chains.
3624
9a28b921
AS
36252004-05-10 Andreas Schwab <schwab@suse.de>
3626
78819ebb 3627 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3628
3629 * fileio.c (Frename_file): Remove extra argument in call to
3630 Fmake_symbolic_link.
3631
e2c02c1a
KS
36322004-05-10 Kim F. Storm <storm@cua.dk>
3633
3634 * xdisp.c (calc_line_height_property): Use string position when
3635 object is a string.
3636
cfe9d13e
KH
36372004-05-10 Kenichi Handa <handa@m17n.org>
3638
a57e8159
KH
3639 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3640 inhibit-modification-hooks to t temporarily before calling
3641 Ferase_buffer.
3642
3643 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3644 inhibit-modification-hooks to t temporarily before calling
3645 Ferase_buffer.
3646
3647 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3648 inhibit-modification-hooks to t temporarily before calling
3649 Ferase_buffer.
3650
cfe9d13e
KH
3651 * fns.c (count_combining): Delete it.
3652 (concat): Don't check combining bytes.
3653
ceb96489
JR
36542004-05-09 Jason Rumney <jasonr@gnu.org>
3655
3656 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3657 (globals_of_w32fns): Set it.
3658
b6189c3b 36592004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3660
3661 * data.c (Fquo): Simplify.
3662
28712a21
JB
36632004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3664
3665 * data.c (Fquo): If any argument is float, do the computation in
3666 floating point.
3667
0f0af7a8
JB
36682004-05-08 Juanma Barranquero <lektu@terra.es>
3669
88214ef6
JB
3670 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3671 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3672 Fix spelling of Emacs on docstring.
3673 (Fset_process_coding_system, Fprocess_coding_system)
3674 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3675 Make argument names match their use in docstring.
3676 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3677 Fix docstring.
3678
0f0af7a8
JB
3679 * editfns.c (Finsert_buffer_substring): Make argument names match their
3680 use in docstring.
3681
3682 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3683
2a316a84
ST
36842004-05-07 Steven Tamm <steventamm@mac.com>
3685
3686 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3687 around call to ReceiveEvent to avoid certain crashes.
3688
36892004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3690
2a316a84
ST
3691 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3692 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3693 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3694 Save/restore the current graphics port and device handle when
3695 drawing into an offscreen graphics world.
3696
3697 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3698 (gif_load): Likewise.
3699
ab80314b
JB
37002004-05-07 Juanma Barranquero <lektu@terra.es>
3701
3702 * window.c (Fset_window_buffer): Fix docstring.
3703
70646bb5
TTN
37042004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3705
3706 * emacs.c (main) [VMS]: Fix var ref.
3707
b6189c3b 37082004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3709
3710 * data.c (Fsetq_default): Fix docstring.
3711
279d3293
JR
37122004-05-06 Jason Rumney <jasonr@gnu.org>
3713
3714 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3715 to avoid name clash.
3716
f72b5416
JD
37172004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3718
3719 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3720 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3721 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3722
6ab66799
KS
37232004-05-04 Kim F. Storm <storm@cua.dk>
3724
3725 * xdisp.c (Qtotal): New var.
3726 (syms_of_xdisp): Intern and staticpro it.
3727 (calc_line_height_property): New arg total. Set it if
3728 line-spacing property has format (total . VALUE).
3729 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3730 Handle total line-spacing property.
3731
ab2d724b
JD
37322004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3733
3734 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3735 "under" scroll bar when size/position changes.
3736
238add5e
JR
37372004-05-03 Jason Rumney <jasonr@gnu.org>
3738
3739 * makefile.nt: Remove.
3740
1644f4e4
EZ
37412004-05-02 Eli Zaretskii <eliz@gnu.org>
3742
a267ab4d
SM
3743 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3744 Avoid compiler warnings.
05fdbeb8 3745
1644f4e4
EZ
3746 * Makefile.in (region-cache.o): Depend on config.h.
3747
b6189c3b 37482004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3749
3750 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3751 with continuation lines, too.
3752
2b98b088
TTN
37532004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3754
3755 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3756
d9bf7950
SM
37572004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3758
3759 * xdisp.c (calc_line_height_property): YAILOM (yet another
3760 int/Lisp_Object mixup).
3761
affa509c
EZ
37622004-05-01 Eli Zaretskii <eliz@gnu.org>
3763
3764 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3765 undo bad effect of pack(4) in some versions of system headers.
3766
07c07cfe
JR
37672004-05-01 Jason Rumney <jasonr@gnu.org>
3768
3769 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3770
e71caa4e
KS
37712004-04-30 Kim F. Storm <storm@cua.dk>
3772
3773 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3774 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3775
3776 * dispextern.h (struct it): Remove member use_default_face.
3777 Add members override_ascent, override_descent, override_boff.
3778
3779 * xdisp.c (init_iterator): Handle line-spacing float value.
3780 Initialize override_ascent member.
3781 (append_space_for_newline): Reset override_ascent.
3782 Remove use_default_face.
3783 (calc_line_height_property): New function to calculate value of
3784 line-height and line-spacing properties. Look at overlays, too.
3785 Set override_ascent, override_descent, override_boff members when
3786 using another face than the current face. Float values are now
3787 relative to the frame default font, by default; accept a cons
3788 of ratio and face name to specify value relative to a specific face.
3789 (x_produce_glyphs): Use calc_line_height_property.
3790 Use override_ascent etc. when set to handle different face heights.
3791 A negative line-spacing property value is interpreted as a total
3792 line height, rather than inter-line spacing.
3793 (note_mouse_highlight): Allocate room for 40 overlays initially.
3794
0fddae66
SM
37952004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3796
3797 * data.c (Fsubr_name): New fun.
3798 (syms_of_data): Defsubr it.
3799
712d23dc
KS
38002004-04-29 Kim F. Storm <storm@cua.dk>
3801
3802 * xdisp.c (null_glyph_slice): New var.
3803 (append_glyph, append_composite_glyph, append_stretch_glyph):
3804 Use it to initialize glyph slice.
3805
033ad8c6
SM
38062004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3807
3808 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3809 (on_hot_spot_p): Make sure we always return a value.
3810 (Flookup_image_map): Remove unused var ix and iy.
3811 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3812
93397360
EZ
38132004-04-27 Eli Zaretskii <eliz@gnu.org>
3814
3815 * msdos.c (init_environment): If one of the TMP... environment
3816 variables is set to a drive letter without a trailing slash,
3817 append a slash.
3818
0c54865e
EZ
38192004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3820
3821 * editfns.c (lisp_time_argument): Provide externally.
3822
3823 * fileio.c (Fset_file_times): New function.
3824 (syms_of_fileio): Intern and staticpro it.
3825
d3b111bd
KS
38262004-04-27 Kim F. Storm <storm@cua.dk>
3827
07dc1231
KS
3828 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3829 header line strings.
3830
360fe9d2
KS
3831 * dispextern.h (struct it): New member use_default_face.
3832
d3b111bd
KS
3833 * xdisp.c (Qline_height): New variable.
3834 (syms_of_xdisp): Intern and staticpro it.
3835 (append_space_for_newline): Partially undo 2004-04-25 change;
3836 add default_face_p arg, and restore callers.
3837 Clear it->use_default_face after use.
3838 (x_produce_glyphs): Set default font for ascii char if
3839 it->use_default_font is set. Change line-spacing property to set
3840 just extra line spacing. Handle new line-height property.
3841
0448588b
AS
38422004-04-26 Andreas Schwab <schwab@suse.de>
3843
3844 * print.c (print_object): Print non-ascii characters in bool
3845 vector representation as octal escapes.
3846
3847 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3848 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3849 bool vectors.
3850 * lread.c (read1): Likewise.
3851 * alloc.c (Fmake_bool_vector): Likewise.
3852 * data.c (Faref, Faset): Likewise.
3853 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3854 (mapcar1): Likewise.
d3b111bd 3855
536d6baa
ST
38562004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3857
3858 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3859
ae11577a
MB
38602004-04-26 Miles Bader <miles@gnu.org>
3861
3862 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3863
e198ba87
JB
38642004-04-26 Juanma Barranquero <lektu@terra.es>
3865
3866 * buffer.c (Fpop_to_buffer): Fix docstring.
3867
f3d5f92d 38682004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3869
f3d5f92d
ST
3870 * lread.c (init_lread): Don't display missing lisp directory
3871 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3872 may be built without correct installation path.
f3d5f92d 3873
03e35edc
KS
38742004-04-25 Kim F. Storm <storm@cua.dk>
3875
9ff3aa31
KS
3876 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3877
3878 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3879
03e35edc
KS
3880 * xdisp.c (append_space_for_newline): Rename from append_space.
3881 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3882 (x_produce_glyphs): Handle line-spacing property on newline char.
3883 If value is t, adjust ascent and descent to fit current row height.
3884 If value is an integer or float, set extra_line_spacing to integer
3885 value, or to float value x current line height.
3886
f24814e0
KH
38872004-04-23 Kenichi Handa <handa@m17n.org>
3888
3889 * fontset.c (Finternal_char_font): If POSITION is nil, return
3890 font for displaying CH with the default face.
3891
d814862a
JB
38922004-04-23 Juanma Barranquero <lektu@terra.es>
3893
3894 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3895
063a45c5
SM
38962004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3897
3898 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3899 Don't make assumptions about the relative place of i and val.
3900 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3901
ae7ab2d3
KS
39022004-04-21 Kim F. Storm <storm@cua.dk>
3903
3904 * dispextern.h (struct glyph_slice): New struct.
3905 (struct glyph): New member slice.
3906 (GLYPH_SLICE_EQUAL_P): New macro.
3907 (GLYPH_EQUAL_P): Use it.
3908 (struct glyph_string): New member slice.
3909 (struct it_slice): New struct.
3910 (struct it): New member slice, add member to stack too.
3911 New member constrain_row_ascent_descent_p.
3912 (image_ascent): Add prototype.
3913
3914 * dispnew.c (buffer_posn_from_coords): Return full image width
3915 and height even for image slices (posn is relative to full image).
3916 (marginal_area_string): Adjust x0,y0 for image slice.
3917
3918 * image.c (image_ascent): Add slice arg; calculate ascent for
3919 image slice (or full image).
3920
3921 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3922 (syms_of_keyboard): Defsubr them.
3923
3924 * lisp.h (pos_visible_p): Fix prototype.
3925
c62aec78 3926 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3927 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3928 (x_draw_image_foreground, x_draw_image_relief)
3929 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3930 Draw sliced images.
3931
3932 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3933 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3934 (x_draw_image_foreground, x_draw_image_relief)
3935 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3936 Draw sliced images.
3937
3938 * w32term.h (image_ascent): Remove prototype.
3939
3940 * window.c (Fpos_visible_in_window_p): Return pixel position if
3941 PARTIALLY arg is non-nil. Simplify. Doc fix.
3942 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3943 to return/set vscroll in pixels.
3944
3945 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3946
3947 * xdisp.c (Qslice): New variable.
3948 (syms_of_xdisp): Intern and staticpro it.
3949 (pos_visible_p): Return pixel position in new x and y args.
3950 (init_iterator): Reset it->slice info.
3951 (handle_display_prop): Parse (slice ...) property.
3952 (push_it, pop_it): Save/restore slice info.
3953 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3954 force repositioning of tall row if window is vscrolled, as that
3955 would reset vscroll.
3956 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3957 increasing row height if row is non-empty.
3958 (fill_image_glyph_string): Copy slice info.
3959 (take_vertical_position_into_account): Simplify.
3960 (produce_image_glyph): Handle iterator slice info, setup glyph
3961 slice info. Do not force minimum line height.
3962 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3963 do not increase height (ascent/descent) of non-empty row when
3964 adding normal character glyph; instead reduce glyph ascent/descent
3965 appropriately; if row is higher than current glyph, adjust glyph
3966 descent/ascent to reposition glyph within the existing row.
3967 Likewise, when char is newline, only set ascent/descent if row is
3968 currently empty.
3969 (note_mouse_highlight): Handle hotspots with sliced image.
3970
3971 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3972 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3973 (x_draw_image_foreground, x_draw_image_relief)
3974 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3975 Draw sliced images.
3976
3977 * xterm.h (image_ascent): Remove prototype.
3978
d58f8753
SM
39792004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3980
3981 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3982
4ce2719d
JPW
39832004-04-20 John Paul Wallington <jpw@gnu.org>
3984
3985 * fns.c (Fassoc, Feql): Fix indentation.
3986
d58f8753 3987 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3988
95f8c3b9
JPW
39892004-04-19 John Paul Wallington <jpw@gnu.org>
3990
3991 * fns.c (Feql): New function.
d58f8753 3992 (syms_of_fns): Defsubr it.
95f8c3b9 3993
b7e85537
JR
39942004-04-18 Jason Rumney <jasonr@gnu.org>
3995
3996 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3997 after closing the clipboard.
3998
5a72efd4
LT
39992004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4000
4001 * buffer.c (Fbuffer_base_buffer): Doc fix.
4002
20dc8583
KS
40032004-04-17 Kim F. Storm <storm@cua.dk>
4004
60962ec4
KS
4005 * keymap.c (Fkey_description): Add optional PREFIX arg.
4006 Combine prefix with KEYS to make up the full key sequence to describe.
4007 Correlate meta_prefix_char and following (simple) key to describe
4008 as meta modifier. All callers changed.
4009 (describe_map): Rename arg `keys' to `prefix'. Remove local
4010 `elt_prefix' var. Use Fkey_description with prefix instead of
4011 elt_prefix combined with Fsingle_key_description.
4012 (describe_vector): Declare static. Replace arg `elt_prefix' with
4013 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4014 if !KEYMAP_P. Use Fkey_description with prefix instead of
4015 Fsingle_key_description.
4016
4017 * keymap.h (Fkey_description): Fix prototype.
4018 (describe_vector): Remove prototype.
4019
409368b9
KS
4020 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4021
20dc8583
KS
4022 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4023 (png_load): Fix calculation of transparent background color on X
4024 and W32 platforms.
4025
75c5501b
JB
40262004-04-16 Juanma Barranquero <lektu@terra.es>
4027
4028 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4029 not too large before computing how much to scroll.
4030
da879ae8
SM
40312004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4032
4033 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4034
d01ca4a8
LT
40352004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4036
4037 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4038 Add hyperlink to Elisp manual to the docstring.
4039
572943b3
SM
40402004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4041
4042 * callint.c (fix_command): Use XDCR.
4043
5e30a0fb
NR
40442004-04-14 Nick Roberts <nick@nick.uklinux.net>
4045
4046 * window.c (Fget_lru_window): Doc fix.
4047
a27ddfaf
KS
40482004-04-14 Kim F. Storm <storm@cua.dk>
4049
4050 * editfns.c (Fformat): Fix allocation size of precision array.
4051
4052 * dispnew.c (update_window): Only set changed_p if
4053 scrolling_window actually did scroll.
4054 (scrolling_window): Only return 1 if we actually did scroll.
4055
4056 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4057 height to glyph height when cursor row is not fully visible.
4058 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4059 failure in case row is higher than window. Callers changed.
4060 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4061 Try to scroll partially visible, higher-than-window cursor row.
4062 (redisplay_window): Always try to scroll partially visible,
4063 higher-than-window cursor row - both initially and again with
4064 centering_position = 0.
4065 Clear desired matrix before retrying with centering_position = 0.
4066
da879ae8
SM
40672004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4068
4069 * syntax.c (scan_lists): Simplify backward string scan.
4070 Fix off-by-one boundary check for string and comment fences.
4071
5fc16e8e
SM
40722004-04-13 Joe Buehler <jbuehler@hekimian.com>
4073
4074 * sheap.c, unexcw.c: New files.
4075
c9aac8e6
LT
40762004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4077
4078 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4079 base buffer has been killed. Correct the error message if the
4080 base buffer does not exist.
4081
1e88a355
SM
40822004-04-12 Joe Buehler <jbuehler@hekimian.com>
4083
4084 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4085 Cygwin itself. Add support for Xaw3d scrollbars.
4086
4087 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4088
4089 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4090
4091 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4092 before Cygwin unexec.
4093
4094 * Makefile.in: Link changes for Cygwin unexec() support.
4095
8dbff9a0
AS
40962004-04-12 Andreas Schwab <schwab@suse.de>
4097
4098 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4099
54dffe35
LT
41002004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4101
4102 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4103 IGNORE argument equals NAME. Doc fix.
4104
99a72bdf
MY
41052004-04-11 Masatake YAMATO <jet@gyve.org>
4106
1e88a355 4107 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4108 empty if they are backwards.
4109
40899d7b
SM
41102004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4111
4112 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4113
f8f853de
SM
41142004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4115
4116 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4117
c953fe1b
KS
41182004-04-06 Kim F. Storm <storm@cua.dk>
4119
661e85c1
KS
4120 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4121 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4122
4123 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4124 clearing highlight.
4125
4126 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4127
4128 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4129 clearing highlight.
4130
c953fe1b
KS
4131 * indent.c (vmotion): Do not reserve one column for continuation
4132 marks on window frames.
4133
c1994268
EZ
41342004-04-04 Eli Zaretskii <eliz@gnu.org>
4135
4136 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4137 from GCC.
4138
9f691b0d
SM
41392004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4140
4141 * .gdbinit-union: Remove.
4142
4143 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4144 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4145 ($nonvalbits): Remove.
4146 ($valmask): Set it by calling xreload to avoid redundancy.
4147
4148 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4149 (gdb_emacs_intbits): Remove.
4150
7a8560d7
JD
41512004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4152
9f691b0d 4153 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4154
3c8111fc
KH
41552004-03-30 Kenichi Handa <handa@m17n.org>
4156
4157 * editfns.c (Fformat): Fix initialization of the array info.
4158
48a0bce4
KS
41592004-03-30 Kim F. Storm <storm@cua.dk>
4160
4161 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4162 (syms_of_xterm): DEFVAR_BOOL it.
4163 (ignore_next_mouse_click_timeout): New var.
4164 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4165 Use it to filter mouse clicks following focus event.
4166
1cd0066c
KS
41672004-03-29 David Ponce <david@dponce.com>
4168
4169 * callint.c (Fcall_interactively): Fix last change.
4170
adb3b353
SM
41712004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4172
4173 * eval.c (Fcommandp): Simplify.
4174
4175 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4176 Extend to handle all kinds of functions.
4177
4178 * lisp.h (Finteractive_form): Declare.
4179
4180 * callint.c (Fcall_interactively): Use it.
4181
6fc4c9c9
KS
41822004-03-26 Kim F. Storm <storm@cua.dk>
4183
4184 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4185 to catch errors in calc_pixel_width_or_height during redisplay.
4186
abdb9b83
MY
41872004-03-26 Masatake YAMATO <jet@gyve.org>
4188
b17856dd 4189 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4190
b17856dd 4191 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4192
b17856dd 4193 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4194
b17856dd 4195 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4196
e8a84b6c
JD
41972004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4198
b17856dd 4199 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4200
36a3fd05
RS
42012004-03-19 Richard M. Stallman <rms@gnu.org>
4202
4203 * s/sol2-6.h: Delete previous change.
4204
ab24c127
KS
42052004-03-19 Kim F. Storm <storm@cua.dk>
4206
4207 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4208 to_charpos corresponds to newline in right fringe. Use local
4209 BUFFER_POS_REACHED_P macro.
4210
992126de
JD
42112004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4212
4213 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4214 to compile on non-window system.
4215
45dbfc84
KS
42162004-03-19 Kim F. Storm <storm@cua.dk>
4217
4218 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4219
4220 * image.c (Qcenter): Move to xdisp.c.
4221
4222 * xdisp.c (Qcenter): Declare here.
adb3b353 4223 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4224 (handle_single_display_prop): Allow space display property on all
4225 platforms.
4226 (display_mode_line): Set mode_line_p before displaying line.
4227 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4228 handling. Remove complex cases for fringes and scroll-bars.
4229 Add left, right, and center alignment positions. Add text (area)
4230 width/height. Return width or height for image specs.
4231 (produce_stretch_glyph): Improve handling of :align-to. Is now
4232 relative to left of text area by default, but other base offsets
4233 can be specified -- also for text lines.
4234
4235 * term.c (produce_glyphs): Handle IT_STRETCH.
4236 (produce_stretch_glyph): New function to handle space width and
4237 align-to display properties on non-window systems.
4238
37264101
SM
42392004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4240
4241 * fileio.c (Fread_file_name): Set completion-ignore-case for
4242 case-insensitive systems.
4243
73bc43da
MY
42442004-03-14 Masatake YAMATO <jet@gyve.org>
4245
4246 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4247 when keymap and cursor are setup.
4248
9062aa89
ST
42492004-03-14 Steven Tamm <steventamm@mac.com>
4250
b17856dd 4251 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4252
e4b1b5ab
KS
42532004-03-14 Kim F. Storm <storm@cua.dk>
4254
4255 * dispextern.h (x_find_image_file): Add prototype.
4256
4257 * image.c (x_find_image_file): Make extern.
4258
4259 * xfns.c (x_find_image_file): Remove prototype.
4260
a6eeaa81 42612004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4262
37264101 4263 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4264
37264101 4265 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4266
e69cfac2
RS
42672004-03-12 Richard M. Stallman <rms@gnu.org>
4268
4269 * fns.c (internal_equal): New arg PROPS controls comparing
4270 text properties. All callers changed.
4271 (Fequal_including_properties): New function.
4272 (syms_of_fns): defsubr it.
4273
45034953
KS
42742004-03-12 Kim F. Storm <storm@cua.dk>
4275
4276 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4277
45034953
KS
4278 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4279 (image_background, image_background_transparent): Fix prototypes.
4280
37264101 4281 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4282
4283 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4284 (x_query_font, x_find_ccl_program, x_set_window_size)
4285 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4286 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4287 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4288
4289 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4290 (x_query_font, x_find_ccl_program, x_set_window_size)
4291 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4292 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4293 (mac_draw_line_to_pixmap): Add prototypes.
4294
42952004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4296
4297 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4298
a12d3d87
KS
42992004-03-11 Kim F. Storm <storm@cua.dk>
4300
d3ab1cf1
KS
4301 * dispextern.h: Move image related prototypes from xfns.c section
4302 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4303 HAVE_X_WINDOWS.
37264101 4304
37de9f51 4305 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4306 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4307 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4308 (GTK_OBJ) [USE_GTK]: New declaration.
4309 (obj): Add $(GTK_OBJ) to list.
4310
5243c06a 43112004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4312
5243c06a
ST
4313 * image.c [MAC_OSX]: Include sys/stat.h
4314
4315 * macfns.c (syms_of_macfns): Remove definitions of things now
4316 defined in image.c
4317
c0f97789
KS
43182004-03-11 Kim F. Storm <storm@cua.dk>
4319
4320 The following changes consolidates the identical/similar image
4321 support code previously found in xfns.c, w32fns.c, and macfns.c
4322 into a new file image.c.
4323
4324 * makefile.w32-in (OBJ1): Add image.o.
4325 ($(BLD)/image.$(O)): Add dependencies.
4326
4327 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4328 (image.o): Add dependencies.
37264101 4329
c0f97789
KS
4330 * image.c: New file with consolidated image support code.
4331 (COLOR_TABLE_SUPPORT): New define to control whether
4332 color table support is available (X only).
4333 (Bitmap_Record): Common name for x_bitmap_record,
4334 w32_bitmap_record, and mac_bitmap_record.
4335 (XImagePtr): Common name for pointer to XImage or equivalent.
4336 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4337 to XImagePtr on X+MAC, and to HDC on W32.
4338 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4339 (NO_PIXMAP): Common name for "None" or equivalent.
4340 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4341 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4342 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4343 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4344 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4345 (XDrawLine): Define on MAC for code sharing.
4346 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4347 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4348 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4349 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4350 (x_reference_bitmap, x_create_bitmap_from_data)
4351 (x_create_bitmap_from_file, x_destroy_bitmap)
4352 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4353 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4354 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4355 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4356 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4357 (define_image_type, lookup_image_type, valid_image_p)
4358 (image_error, enum image_value_type, struct image_keyword)
4359 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4360 (make_image, free_image, prepare_image_for_display, image_ascent)
4361 (four_corners_best, image_background, image_background_transparent)
4362 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4363 (make_image_cache, free_image_cache, clear_image_cache)
4364 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4365 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4366 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4367 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4368 (init_image_func_pointer, image_load_quartz2d)
4369 (struct ct_color, init_color_table, free_color_table)
4370 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4371 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4372 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4373 (x_disable_image, x_build_heuristic_mask)
4374 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4375 (TIFF support, GIF support, Ghostscript support): Consolidate image
4376 code from xfns.c, w32fns.c, and macfns.c.
4377 (syms_of_image): Consolidate image related symbol setup here.
4378 (init_image): Consolidate image related initializations here.
37264101 4379
c0f97789
KS
4380 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4381 and init_image. Remove call to init_xfns.
4382
37264101
SM
4383 * macterm.h (struct mac_bitmap_record): Add file member.
4384 Not currently used, but simplifies code sharing.
c0f97789
KS
4385
4386 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4387 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4388 (x_reference_bitmap, x_create_bitmap_from_data)
4389 (x_create_bitmap_from_file, x_destroy_bitmap)
4390 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4391 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4392 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4393 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4394 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4395 (define_image_type, lookup_image_type, valid_image_p)
4396 (image_error, enum image_value_type, struct image_keyword)
4397 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4398 (make_image, free_image, prepare_image_for_display, image_ascent)
4399 (four_corners_best, image_background, image_background_transparent)
4400 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4401 (make_image_cache, free_image_cache, clear_image_cache)
4402 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4403 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4404 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4405 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4406 (init_image_func_pointer, image_load_quartz2d)
4407 (struct ct_color, init_color_table, free_color_table)
4408 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4409 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4410 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4411 (x_disable_image, x_build_heuristic_mask)
4412 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4413 (TIFF support, GIF support, Ghostscript support): Merge with image
4414 code from xfns.c and macfns.c into image.c.
4415 (syms_of_xfns): Move image related symbols to image.c.
4416 (init_external_image_libraries, init_xfns): Remove; initialization
4417 moved to init_image in image.c.
4418
4419 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4420 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4421 (x_reference_bitmap, x_create_bitmap_from_data)
4422 (x_create_bitmap_from_file, x_destroy_bitmap)
4423 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4424 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4425 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4426 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4427 (define_image_type, lookup_image_type, valid_image_p)
4428 (image_error, enum image_value_type, struct image_keyword)
4429 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4430 (make_image, free_image, prepare_image_for_display, image_ascent)
4431 (four_corners_best, image_background, image_background_transparent)
4432 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4433 (make_image_cache, free_image_cache, clear_image_cache)
4434 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4435 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4436 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4437 (struct ct_color, init_color_table, free_color_table)
4438 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4439 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4440 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4441 (x_disable_image, x_build_heuristic_mask)
4442 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4443 (TIFF support, GIF support, Ghostscript support): Merge with image
4444 code from xfns.c and macfns.c into image.c.
4445 (syms_of_xfns): Move image related symbols to image.c.
4446 (init_external_image_libraries, init_xfns): Remove; initialization
4447 moved to init_image in image.c.
4448
4449 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4450 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4451 (x_reference_bitmap, x_create_bitmap_from_data)
4452 (x_create_bitmap_from_file, x_destroy_bitmap)
4453 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4454 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4455 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4456 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4457 (define_image_type, lookup_image_type, valid_image_p)
4458 (image_error, enum image_value_type, struct image_keyword)
4459 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4460 (make_image, free_image, prepare_image_for_display, image_ascent)
4461 (four_corners_best, image_background, image_background_transparent)
4462 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4463 (make_image_cache, free_image_cache, clear_image_cache)
4464 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4465 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4466 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4467 (struct ct_color, init_color_table, free_color_table)
4468 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4469 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4470 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4471 (x_disable_image, x_build_heuristic_mask)
4472 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4473 (TIFF support, GIF support, Ghostscript support): Merge with
4474 w32fns.c and macfns.c image code into image.c.
4475 (syms_of_xfns): Move image related symbols to image.c.
4476 (init_xfns): Remove; initialization moved to init_image in image.c.
4477
4478 * lisp.h (syms_of_image, init_image): Add protoypes.
4479 (init_xfns): Remove prototype.
4480
4481 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4482 (x_reference_bitmap, x_create_bitmap_from_data)
4483 (x_create_bitmap_from_file, x_destroy_bitmap)
4484 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4485 (gamma_correct) [MAC_OS]: Add prototype.
4486
4487 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4488 (x_reference_bitmap, x_create_bitmap_from_data)
4489 (x_create_bitmap_from_file, x_destroy_bitmap)
4490 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4491
6eced09c
KH
44922004-03-09 Kenichi Handa <handa@etlken2>
4493
4494 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4495 correctly.
4496
9a7e95f3
RS
44972004-03-04 Richard M. Stallman <rms@gnu.org>
4498
04a6e76b
RS
4499 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4500
9a7e95f3
RS
4501 * window.c (Fdisplay_buffer): Doc fix.
4502
4503 * buffer.c (Fpop_to_buffer): Doc fix.
4504
6c2488df
KS
45052004-03-03 Kim F. Storm <storm@cua.dk>
4506
4507 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4508
d8d95bc7
SM
45092004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4512
357589bf
RS
45132004-03-02 Richard M. Stallman <rms@gnu.org>
4514
4515 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4516
409949b5
KH
45172004-03-02 Kenichi Handa <handa@m17n.org>
4518
4519 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4520
d24bc50f
KS
45212004-03-02 Kim F. Storm <storm@cua.dk>
4522
4523 * window.h (struct window): New member overlay_arrow_bitmap.
4524
4525 * window.c (make_window): Initialize overlay_arrow_bitmap.
4526
4527 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4528 implement and integrate multiple overlay arrows with redisplay.
4529 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4530 (last_arrow_position, last_arrow_string): Replace by properties.
4531 (Qlast_arrow_position, Qlast_arrow_string)
4532 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4533 (syms_of_xdisp): Intern and staticpro them.
4534 (overlay_arrow_string_or_property, update_overlay_arrows)
4535 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4536 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4537 (redisplay_internal): Use them instead of directly accessing
4538 Voverlay_arrow_position etc. for multiple overlay arrows.
4539 (mark_window_display_accurate): Use update_overlay_arrows.
4540 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4541 (try_window_id): Use overlay_arrows_changed_p.
4542 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4543 (display_line): Use overlay_arrow_at_row to check multiple
4544 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4545 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4546 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4547 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4548
4549 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4550 (update_window_fringes): Remove unused code.
4551
c1464661
JR
45522004-03-01 Jason Rumney <jasonr@gnu.org>
4553
4554 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4555
a64387ee
JB
45562004-03-01 Juanma Barranquero <lektu@terra.es>
4557
4558 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4559
4560 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4561
334faa08
JD
45622004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4563
4564 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4565 how many colors can be displayed.
4566
bb62616f
KH
45672004-03-01 Kenichi Handa <handa@m17n.org>
4568
4569 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4570 correctly.
4571
0fd16104
KS
45722004-02-28 Kim F. Storm <storm@cua.dk>
4573
4574 * dispnew.c (update_window): Update header line also if there are
4575 no other changes in window (move code after set_cursor label).
4576
4577 * lisp.h (mark_window_display_accurate): Remove prototype.
4578
4579 * window.c (window_loop, Fforce_window_update): Force mode line
4580 updates by setting prevent_redisplay_optimizations_p and
4581 update_mode_lines.
4582
b59dd9c8
JD
45832004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4584
d8d95bc7 4585 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4586
4587 * xterm.c (x_calc_absolute_position): Call x_real_positions
4588 to get WM window sizes and use those to calculate position.
d8d95bc7 4589 (x_set_offset): Remove code commented out.
b59dd9c8 4590
a874691c
MB
45912004-02-28 Miles Bader <miles@gnu.org>
4592
4593 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4594
3e0c6482
KS
45952004-02-28 Kim F. Storm <storm@cua.dk>
4596
4597 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4598 an event into kbd fifo, but with special handling of quit event;
4599 a quit event is saved for later, and further events are discarded
4600 until the saved quit event has been processed.
4601 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4602 (gen_help_event): Store help event in kbd fifo.
4603 (NREAD_INPUT_EVENTS): Remove.
4604 (read_avail_input): Adapt to new read_socket_hook interface.
4605 Remove allocation and initialization of local input_event buffer,
4606 as read_socket_hook stores events directly in fifo. Allocate and
4607 initialize local hold_quit event to handle postponed quit event
4608 (and store it if set by kbd_buffer_store_event_hold).
4609
4610 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4611 (gen_help_event): Fix prototype.
4612
a64387ee 4613 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4614 numcharsp args. Add hold_quit arg.
f63fd14e 4615 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4616 directly in fifo using kbd_buffer_store_event_hold.
4617
4618 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4619 (read_input_waiting): Adapt to new read_socket_hook interface.
4620 Remove allocation and initialization of local input_event buffer,
4621 as read_socket_hook stores events directly in fifo. Allocate and
4622 initialize local hold_quit event to handle postponed quit event
4623 (and store it if set by kbd_buffer_store_event_hold).
4624
a64387ee 4625 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4626
4627 * termhooks.h (read_socket_hook): Fix prototype.
4628
4629 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4630 numcharsp args. Add hold_quit arg.
f63fd14e 4631 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4632 directly in fifo using kbd_buffer_store_event_hold.
4633
4634 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4635
4636 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4637 Add hold_quit arg. Rework to use just one, local, inev
4638 input_event. Store inev directly in fifo using
3e0c6482
KS
4639 kbd_buffer_store_event_hold. Update count in one place.
4640 Postpone call to gen_help_event until inev is stored; use new
4641 local do_help for this.
4642 Remove local emacs_event in handing of ButtonPress event; just use
4643 inev instead (so no reason to copy it later).
4644
4645 * xsmfns.c (x_session_check_input): Remove numchars arg.
4646
d8d95bc7
SM
4647 * xterm.c (x_focus_changed, x_detect_focus_change):
4648 Remove numchars arg. Always store event into bufp arg.
4649 Return nothing. Callers changed accordingly.
3e0c6482
KS
4650 (glyph_rect): Simplify.
4651 (STORE_KEYSYM_FOR_DEBUG): New macro.
4652 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4653 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4654 (current_hold_quit) [USE_GTK]: Add.
4655 (event_handler_gdk): Adapt to new handle_one_xevent.
4656 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4657 Add hold_quit arg. Rework to use just one, local, inev
4658 input_event. Store inev directly in fifo using
3e0c6482
KS
4659 kbd_buffer_store_event_hold. Update count in one place.
4660 Postpone call to gen_help_event until inev is stored; use new
4661 local do_help for this.
4662 Simplify handling of keysyms (consolidate common code). Fix bug
4663 where count was updated with nchars instead of nbytes.
4664 Remove local emacs_event in handing of ButtonPress event; just use
4665 inev instead (so no reason to copy it later).
4666 Remove `out' label. Rename label `ret' to `done'; add various
4667 `goto done' to clarify code flow in deeply nested blocks.
4668 (x_dispatch_event): Simplify as handle_one_xevent now calls
4669 kbd_buffer_store_event itself.
f63fd14e 4670 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4671 arg. Call handle_one_xevent with new arglist. Store event from
4672 x_session_check_input in fifo.
4673 [USE_GTK]: Setup current_hold_quit.
4674 Decrement handling_signal before unblocking input.
4675 (x_initialize) [USE_GTK]: Initialize current_count.
4676
4677 * xterm.h (x_session_check_input): Fix prototype.
4678
e3564461 46792004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4680
d8d95bc7 4681 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4682
e3564461
ST
4683 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4684 macgui.h).
a64387ee 4685
e3564461 4686 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4687
e3564461
ST
4688 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4689 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4690 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4691 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4692 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4693 (Bitmap): Remove typedef.
4694 (Pixmap): Change int to GWorldPtr.
4695
d8d95bc7 4696 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4697
d8d95bc7
SM
4698 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4699 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4700 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4701 long representation.
4702 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4703 colors used for masks.
4704 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4705
e3564461
ST
4706 * macfns.c: Include sys/types.h and sys/stat.h.
4707 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4708 Include QuickTime/QuickTime.h.
4709 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4710 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4711 functions defined in macterm.c.
4712 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4713 (ZPixmap): New #define for compatibility with xfns.c.
4714 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4715 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4716 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4717 New functions.
e3564461 4718 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4719 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4720 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4721 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4722 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4723 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4724 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4725 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4726 long mixup.
4727 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4728 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4729 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4730 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4731 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4732 (x_alloc_image_color, clear_image_cache, lookup_image)
4733 (x_find_image_file, xbm_read_bitmap_file_data)
4734 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4735 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4736 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4737 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4738 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4739 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4740 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4741 #if 0.
4742 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4743 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4744 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4745 New functions (from xfns.c).
e3564461
ST
4746 (Fx_create_frame): Record unwind_create_frame.
4747 (Fxw_display_color_p): Use dpyinfo->color_p.
4748 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4749 dpyinfo->n_cbits.
4750 (Fx_display_color_cells): Use dpyinfo->n_planes;
4751 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4752 (Qheuristic, cross_disabled_images, emboss_matrix)
4753 (laplace_matrix): New variables (from xfns.c).
4754 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4755 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4756 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4757 (image_background_transparent): New function (from xfns.c).
4758 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4759 (image_load_quicktime): Add declaration.
4760 [MAC_OSX] (image_load_quartz2d): Likewise.
4761 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4762 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4763 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4764 (xbm_load_image_from_file, x_laplace_read_row)
4765 (x_laplace_write_row, pbm_read_file): Remove functions.
4766 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4767 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4768 (colors_in_color_table): Sync with xfns.c (although not used).
4769 (lookup_rgb_color): Don't lookup color table. Just do gamma
4770 correction.
4771 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4772 (x_disable_image): New function (from xfns.c).
4773 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4774 (x_build_heuristic_mask): Sync with xfns.c.
4775 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4776 (HAVE_PBM): Remove #ifdef.
4777 (pbm_load): Sync with xfns.c. Set img->width and img->height
4778 before IMAGE_BACKGROUND.
d8d95bc7 4779 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4780 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4781 Don't enclose with #if HAVE_PNG.
4782 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4783 symbol _CGImageCreateWithPNGDataProvider is defined.
4784 Otherwise use image_load_quicktime.
e3564461 4785 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4786 [HAVE_PNG] (png_load): Sync with xfns.c.
4787 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4788 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4789 HAVE_JPEG.
4790 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4791 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4792 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4793 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4794 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4795 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4796 HAVE_TIFF.
4797 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4798 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4799 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4800 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4801 New functions (from xfns.c).
e3564461 4802 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4803 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4804 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4805 Don't enclose with #if HAVE_GIF.
4806 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4807 animated gif. Otherwise use image_load_quicktime.
4808 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4809 gif_DrawText to avoid conflict with QuickdrawText.h.
4810 [HAVE_GIF] (gif_load): Sync with xfns.c.
4811 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4812 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4813 Ghostscript is not supported yet).
4814 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4815 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4816 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4817 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4818 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4819 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4820 HAVE_PNG. Call EnterMovies to support animated gifs.
4821 Call init_image_func_pointer to bind a symbol
e3564461 4822 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4823
d8d95bc7 4824 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4825 (x_draw_bar_cursor): Sync declaration with xterm.c.
4826 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4827 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4828 graphics).
4829 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4830 (mac_draw_line_to_pixmap, XCreatePixmap)
4831 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4832 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4833 New functions.
4834 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4835 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4836 Cast bits to char *.
e3564461
ST
4837 (reflect_byte): New function (from w32fns.c).
4838 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4839 due to byte alignment.
d8d95bc7
SM
4840 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4841 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4842 (XSetForeground): Remove static (now used in macfns.c).
4843 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4844 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4845 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4846 (x_draw_glyph_string_box, x_draw_image_foreground)
4847 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4848 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4849 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4850 Sync with xterm.c.
4851 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4852 than the xterm.c version when a strictly horizontal or vertical
4853 line is drawn.
4854 (XTset_terminal_window): Add static.
4855 (x_make_frame_visible): Add UNBLOCK_INPUT.
4856 (x_free_frame_resources): New funcion (from xterm.c).
4857 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4858 occurs in tool bar area.
d8d95bc7
SM
4859 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4860 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4861 Initialize image cache.
4862 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4863 Enclose unused functions with #if 0.
4864 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4865 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4866 from a mac font name to an XLFD font name according to its script code.
e3564461 4867 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4868 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4869 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4870 whose name starts with `.'.
4871 (init_font_name_table): Use decode_mac_font_name. Add both
4872 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4873 of a font is smJapanese.
4874 (mac_do_list_fonts): New function to list fonts that match a given
4875 pattern.
4876 (x_list_fonts, XLoadQueryFont): Use it.
4877 (XLoadQueryFont): Set rbearing field for each variable width
4878 character to avoid needless redraw.
4879 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4880
446f5f3d
KS
48812004-02-26 Kim F. Storm <storm@cua.dk>
4882
af617d0f
KS
4883 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4884 as read_socket_hook handler on X aborts if buffer is too small
4885 and W32 handler doesn't always check buffer limit.
4886
446f5f3d
KS
4887 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4888 right-fringe similar to a display margin image. Specifically,
4889 the characters having the fringe prop are no longer shown, and
4890 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4891 do this. Set fringe bitmap face_id in it->face_id.
4892 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4893 still realize it->face (i.e. the fringe bitmap face).
4894
7d8a0b55
MB
48952004-02-25 Miles Bader <miles@gnu.org>
4896
4897 * xdisp.c (check_it): Check string/string_pos consistency.
4898 (init_iterator): Initialize string-related fields properly.
4899
49002004-02-11 Miles Bader <miles@gnu.org>
4901
4902 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4903
49042004-02-10 Miles Bader <miles@gnu.org>
4905
4906 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4907 BLOCK_INPUT can be nested, so it doesn't make much sense.
4908
a64387ee 49092004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4910
4911 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4912 (xbm_read_bitmap_data): Use unsigned char for image data.
4913
92f5fba2
LT
49142004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4915
4916 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4917
8565fb3d
JR
49182004-02-22 Jason Rumney <jasonr@gnu.org>
4919
4920 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4921 correctly over other bitmaps.
4922
a6eeaa81 49232004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4924
4925 * emacs.c (USAGE1): Split into two halves.
4926 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4927 (USAGE3): Rename from USAGE2.
4928 (USAGE4): Rename from USAGE3.
f8125c39 4929
4effffca
EZ
49302004-02-21 Juri Linkov <juri@jurta.org>
4931
4932 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4933 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4934 --file. Fix -f, -l. Sort options. Untabify.
4935 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4936
923c1e6f
LT
49372004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4938
4939 * category.c (Fdefine_category, Fcategory_docstring)
4940 (Fget_unused_category, Fset_category_table)
4941 (Fcategory_set_mnemonics): Doc fixes.
4942
b0e225fd
KS
49432004-02-20 Kim F. Storm <storm@cua.dk>
4944
4945 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4946 The following changes are relative to the 2004-01-21 revision.
4947 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4948 in one call to read_socket_hook. Value is 8.
4949 (read_avail_input): Separate and rework handling of read_socket_hook
4950 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4951 in read_socket_hook case, and repeat if full buffer is read.
4952 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4953 In non-read_socket_hook case, just use a single input_event, and
4954 call kbd_buffer_store_event on the fly for each character.
4955
b15aa9f9
SM
49562004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4959 Remove unused `gu' alternative.
4960
83c9aa95
AS
49612004-02-19 Andreas Schwab <schwab@suse.de>
4962
4963 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4964 warning.
4965
cc808173
KS
49662004-02-18 Kim F. Storm <storm@cua.dk>
4967
4968 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4969 Fix last change.
4970
ab90a54d
KS
49712004-02-17 Kim F. Storm <storm@cua.dk>
4972
b26f249f
KS
4973 * xdisp.c (fast_find_position): Fix return value of new version;
4974 it was inverted compared to the 21.1 version.
4975 (get_window_cursor_type): Don't look at glyph if NULL.
4976 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4977
ab90a54d
KS
4978 * keyboard.c: Rework previous change; it didn't consider that the
4979 buf array was allocated on the stack.
4980 (prev_read): Remove variable.
4981 (read_avail_input_buf): New static event buffer array.
b9568dfc 4982 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4983 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4984 Use in_read_avail_input to handle re-entrance; when re-entered,
4985 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4986 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4987 is always cleared on entry. To ensure that, we clear (just) the
4988 entries that were used before we return.
4989 (init_keyboard): Initialize read_avail_input_buf here.
4990
b6189c3b 49912004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4992
4993 * cmds.c (Fend_of_line): Doc fix.
4994
7b5368c1
EZ
49952004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4996
4997 * keyboard.c (prev_read): New static variable.
4998 (read_avail_input): Use it to zero out only those slots in buf[]
4999 that were used last time we were called.
5000
a6eeaa81 50012004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
5002
5003 * Makefile.in (obj): Move fringe.o from here...
5004 (XOBJ, MAC_OBJ): ...to here.
5005
159c348e
SE
50062004-02-16 Stephen Eglen <stephen@gnu.org>
5007
5008 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5009
d2f14999
SM
50102004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5011
b15aa9f9
SM
5012 * data.c (Fbyteorder):
5013 * fringe.c (Fdefine_fringe_bitmap):
5014 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5015 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5016
8d50508a
JR
50172004-02-16 Jason Rumney <jasonr@gnu.org>
5018
5019 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5020
dd4497dc
ST
50212004-02-15 Steven Tamm <steventamm@mac.com>
5022
5023 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5024 controlling emulation of a three button mouse with option and
5025 command keys.
5026 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5027 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5028
c9159cb3
KS
50292004-02-15 Kim F. Storm <storm@cua.dk>
5030
2cc52658
KS
5031 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5032
c9159cb3
KS
5033 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5034 Perform byte-swapping.
5035
12fde2dc
KS
50362004-02-14 Kim F. Storm <storm@cua.dk>
5037
5038 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5039 bits from char to short to facilitate wider bitmaps.
5040 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5041 member.
5042
5043 * fringe.c (struct fringe_bitmap): Change member bits from char to
5044 short to facilitate 16 bits wide bitmaps. Modify all standard
5045 bitmaps accordingly.
5046 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5047 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5048 (draw_fringe_bitmap): Ditto.
5049 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5050 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5051 handle up to 16 bits wide bitmaps.
5052 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5053 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5054
5055 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5056 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5057 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5058
5059 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5060 so it is no longer necessary to expand them here.
5061
5062 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5063
9d7271e8
KS
50642004-02-12 Kim F. Storm <storm@cua.dk>
5065
5066 * window.c (Fwindow_fringes): Doc fix.
5067
706c1e4f
JD
50682004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5069
5070 * xselect.c (x_get_foreign_selection): Add new optional parameter
5071 time_stamp.
5072 (Fx_get_selection_internal): Ditto, pass time_stamp to
5073 x_get_foreign_selection.
5074
5075 * data.c (Fbyteorder): New function.
5076
c2d12b5d
JD
50772004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5078
5079 * atimer.c: Move include stdio.h to same place as in other files.
5080
5081 * region-cache.c: Ditto.
5082
5083 * sysdep.c: Ditto.
5084
5085 * xfaces.c: Ditto.
5086
4c1947b9
SS
50872004-02-09 Sam Steingold <sds@gnu.org>
5088
89458937 5089 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5090
82722af3
KS
50912004-02-09 Kim F. Storm <storm@cua.dk>
5092
5093 * fringe.c: New file. Move original fringe related declarations
5094 and code from dispextern.h and xdisp.c here.
5095 Rework code to support user defined fringe bitmaps, redefining
5096 standard bitmaps, ability to overlay user defined bitmap with
5097 overlay arrow bitmap, and add faces to bitmaps.
5098 (Voverflow_newline_into_fringe): Declare here.
5099 (enum fringe_bitmap_align): New enum.
5100 (..._bits): All bitmaps are now defined without bitswapping; that
5101 is now done in init_fringe_once (if necessary).
5102 (standard_bitmaps): New array with specifications for the
5103 standard fringe bitmaps.
5104 (fringe_faces): New array.
5105 (valid_fringe_bitmap_id_p): New function.
5106 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5107 (draw_fringe_bitmap): New function which draws fringe bitmap,
5108 possibly overlaying bitmap with cursor in right fringe or the
5109 overlay arrow in the left fringe.
5110 (update_window_fringes): Do not handle overlay arrow here.
5111 Compare and copy fringe bitmap faces.
5112 (init_fringe_bitmap): New function.
5113 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5114 define and destroy user defined fringe bitmaps.
5115 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5116 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5117 (syms_of_fringe): New function. Defsubr new DEFUNs.
5118 DEFVAR_LISP Voverflow_newline_into_fringe.
5119 (init_fringe_once, init_fringe): New functions.
5120 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5121
82722af3
KS
5122 * Makefile.in (obj): Add fringe.o.
5123 (fringe.o): New dependencies.
5124
5125 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5126 bits allocated to hold a fringe number. Increase number of bits
5127 from 4 to 8 to allow user defined fringe bitmaps.
5128 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5129 left_user_fringe_face_id, right_user_fringe_bitmap,
5130 right_user_fringe_face_id.
5131 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5132 Move to new file fringe.c.
5133 (MAX_FRINGE_BITMAPS): Define here.
5134 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5135 and overlay_p. Change member which to int.
5136 (struct redisplay_interface): New members define_fringe_bitmap
5137 and destroy_fringe_bitmap.
5138 (valid_fringe_bitmap_id_p): Add prototype.
5139 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5140
5141 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5142 arrows.
5143 (update_frame): Do flush_display if force_flush_display_p to
5144 ensure display (specifically fringes) are updated in a timely
5145 manner when resizing the frame by dragging the mouse.
5146 (update_window_line): Update row if overlay arrow changed.
5147 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5148 or overlay arrow changed.
5149
5150 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5151 syms_of_fringe, and init_fringe.
5152
5153 * frame.h (struct frame): New member force_flush_display_p.
5154
5155 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5156 Add prototypes.
5157
a3993cc8 5158 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5159 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5160 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5161 Use cursor color for displaying cursor in fringe.
82722af3
KS
5162 (x_redisplay_interface): Add null handlers for
5163 define_fringe_bitmap and destroy_fringe_bitmap functions.
5164
5165 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5166 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5167 for displaying cursor in fringe.
5168 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5169 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5170 (w32_redisplay_interface): Add them to redisplay_interface.
5171 (w32_term_init): Call w32_init_fringe instead of explicitly
5172 defining fringe bitmaps in fringe_bmp array.
5173 (x_delete_display): Call w32_reset_fringes instead of explicitly
5174 destroying fringe bitmaps in fringe_bmp array.
5175
5176 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5177 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5178 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5179 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5180 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5181 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5182 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5183 Move fringe handling vars and code to new file fringe.c.
5184 (handle_display_prop): Handle left-fringe and right-fringe
5185 display properties; store user fringe bitmaps in iterator.
5186 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5187 (clear_garbaged_frames): Set force_flush_display_p if resized.
5188 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5189 (display_line): Handle cursor in fringe at eob.
5190 (display_line): Set row user fringe bitmaps from iterator.
5191
5192 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5193 Use cursor color for displaying cursor in fringe.
5194 (x_redisplay_interface): Add null handlers for
5195 define_fringe_bitmap and destroy_fringe_bitmap functions.
5196
030400eb
JD
51972004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5198
5199 * macfns.c (Fx_change_window_property): Make doc string and
5200 parameters same as for X version.
5201
5202 * w32fns.c (Fx_change_window_property): Ditto.
5203
3af55251
KS
52042004-02-07 Kim F. Storm <storm@cua.dk>
5205
ec110e9e
KS
5206 * xdisp.c (hscroll_window_tree): Position cursor near to right
5207 margin in hscrolled window when jumping to end of line (rather
5208 than centering cursor).
5209
3af55251
KS
5210 * process.c (wait_reading_process_input): Don't do adaptive read
5211 buffering if waiting for a specific process.
5212
b0c138ce
LT
52132004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5214
5215 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5216 (Fread_minibuffer, Feval_minibuffer)
5217 (Fread_string, Fread_no_blanks_input)
5218 (Fcompleting_read): Doc fixes.
5219 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5220 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5221 (read_minibuf): Fix initial comment.
5222 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5223 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5224 checking completion-regexp-list.
5225 (Fdisplay_completion_list): Make it handle arguments that are
5226 symbols. Doc fix.
5227
9676f5ad 52282004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5229
9676f5ad 5230 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5231
9676f5ad
JD
5232 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5233 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5234 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5235 format. Remove unused variable cons.
5b698285
JD
5236
5237 * xselect.c: Include stdio,h.
5238
fc1d15f6
KH
52392004-02-05 Kenichi Handa <handa@m17n.org>
5240
ebaff4af
KH
5241 * fns.c (Fset_char_table_range): Fix previous change.
5242
fc1d15f6
KH
5243 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5244
9676f5ad
JD
52452004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5246
5247 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5248
da75761f
SM
52492004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5250
5251 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5252 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5253
13c5d120
KH
52542004-02-04 Kenichi Handa <handa@m17n.org>
5255
5256 * fns.c (Fset_char_table_range): Handle charsets ascii,
5257 eight-bit-control, and eight-bit-graphic correctly.
5258
2883d842
JR
52592004-02-03 Jason Rumney <jasonr@gnu.org>
5260
5261 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5262
5263 * w32fns.c (x_to_w32_font): Likewise.
5264
69eff41f
JD
52652004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5266
5267 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5268 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5269
5270 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5271 ClientMessages.
5272
5273 * xselect.c: Include termhooks.h and X11/Xproto.h
5274 (x_check_property_data, x_fill_property_data)
5275 (x_property_data_to_lisp, mouse_position_for_drop)
5276 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5277 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5278 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5279
da75761f 5280 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5281 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5282 OUTER_P.
5283 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5284 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5285 if vector_ret_p is true.
5286 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5287
a6eeaa81 52882004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5289
5290 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5291 basename of FILE relative to it, not FILE itself.
5292
09721b31
KH
52932004-02-02 Kenichi Handa <handa@m17n.org>
5294
5295 * coding.c (coding_restore_composition): Check invalid
5296 composition data more rigidly.
5297
eb996101
LT
52982004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5299
5300 * fileio.c (Fread_file_name_internal): Correctly handle the case
5301 where insert-default-directory is nil.
5302 (Fread_file_name): Always return an empty string if the user exits
5303 with an empty minibuffer. Adapt the docstring accordingly.
5304 (syms_of_fileio): Adapt the docstring of insert-default-directory
5305 to the change in Fread_file_name.
5306
a6eeaa81 53072004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5308
5309 * alloca.c [!alloca]: Fix the prototype for xfree.
5310
13f52ed8
KH
53112004-01-29 Kenichi Handa <handa@m17n.org>
5312
5313 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5314 (string_byte_to_char): Likewise.
5315
d57625a0
JR
53162004-01-28 Peter Runestig <peter@runestig.com>
5317
5318 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5319
a64387ee 53202004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5321
5322 * unexmacosx.c (unexec_copy): Do not copy more than was
5323 requested to prevent overwriting during unexec.
5324
eb37b8fd
JD
53252004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5326
ce38070a
JD
5327 * process.c (sigchld_handler): Add comment about not calling malloc.
5328
eb37b8fd
JD
5329 * process.h: Add extern to synch_process_termsig.
5330
a64387ee 53312004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5332
da75761f
SM
5333 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5334 Move setting of scroll bars from make_mac_frame to
5335 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5336
d62a265d
RS
53372004-01-26 Richard M. Stallman <rms@gnu.org>
5338
5339 * search.c (Freplace_match): Handle nonexistent
5340 back-references properly.
5341
53422004-01-03 Richard M. Stallman <rms@gnu.org>
5343
5344 * window.c (decode_any_window): New function.
5345 (Fwindow_height, Fwindow_width, Fwindow_edges)
5346 (Fwindow_pixel_edges, Fwindow_inside_edges)
5347 (Fwindow_inside_pixel_edges): Use decode_any_window.
5348
ff236419
JD
53492004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5350
5351 * process.h: synch_process_termsig new variable.
5352
5353 * callproc.c: Define synch_process_termsig.
5354 (Fcall_process): Initiate synch_process_termsig to zero and
5355 check if non-zero and get signal name after subprocess has ended.
5356
5357 * process.c (sigchld_handler): Set synch_process_termsig
5358 if terminated by a signal. synch_process_death setting removed.
5359
5360 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5361
41b867ea
AS
53622004-01-26 Andreas Schwab <schwab@suse.de>
5363
5364 * print.c (print_preprocess): Declare size as EMACS_INT to not
5365 lose bits.
5366 (print_object): Likewise.
5367 * alloc.c (Fpurecopy): Likewise.
5368
a08084ff
LT
53692004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5370
5371 * window.c (Fwindow_minibuffer_p): Doc fix.
5372
b19ac475
JY
53732004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5374
5375 * editfns.c (Fformat): Make both passes accept the same set of flags.
5376
fe905025
KH
53772004-01-23 Kenichi Handa <handa@m17n.org>
5378
5379 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5380 one, set buffer to OBJECT temporarily.
5381
438fc6c0
SM
53822004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5383
455316e2
SM
5384 * keyboard.c (kbd_buffer_gcpro): Remove.
5385 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5386 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5387 Don't initialize and/or maintain the variable any more. It was made
5388 redundant by my commit of 2003-06-15.
5389
438fc6c0
SM
5390 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5391
5335a4ee
JD
53922004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5393
5394 * lisp.h: Add undef DECL_ALIGN.
5395
dcdaeebc
SM
53962004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5397
5398 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5399 Check interrupt_input_pending explicitly.
5400
5401 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5402
5403 * keyboard.c (handle_async_input): New fun,
5404 extracted from input_available_signal.
5405 (input_available_signal, reinvoke_input_signal): Use it.
5406
9076a823
SM
54072004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5408
d7107586
SM
5409 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5410
5411 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5412 manipulation macros for when tags are in the lower bits.
5413 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5414 (DECL_ALIGN): New macro.
5415 (DEFUN): Use it.
5416
5417 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5418
5419 * s/darwin.h (__attribute__): Remove outdated workaround.
5420
5421 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5422
5423 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5424 Don't check range of malloc address.
5425 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5426
9076a823
SM
5427 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5428
5429 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5430
ba029065
KH
54312004-01-19 Kenichi Handa <handa@m17n.org>
5432
5433 * fontset.c (fontset_font_pattern): Fix previous change.
5434
7af0e8d7
MB
54352004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5436
5437 * xdisp.c (Voverflow_newline_into_fringe)
5438 (move_it_in_display_line_to, redisplay_internal)
5439 (update_window_fringes, redisplay_window, display_line, window):
5440 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5441 that it compiles without a window-system.
5442 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5443
77a9cf69
KS
54442004-01-16 Kim F. Storm <storm@cua.dk>
5445
5446 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5447
a64387ee 5448 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5449 buffer_local_flags for indicate_buffer_boundaries.
5450 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5451 default- variable for it.
5452
5453 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5454 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5455 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5456 overflowing newlines into right fringe.
5457 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5458 and indicate_bottom_line_p for buffer boundaries and scrolling.
5459 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5460 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5461 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5462 and HOLLOW_SQUARE_BITMAP.
5463 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5464 Add prototypes.
5465
5466 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5467 instead of related indicator fields.
5468 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5469 (direct_output_for_insert): Handle exact width lines like
5470 contined lines. Call update_window_fringes.
5471 (update_window): Call update_window_fringes.
5472 (scrolling_window): Don't skip desired rows with changed bitmaps.
5473 Check if fringe bitmaps changes when assigning scrolled rows.
5474
5475 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5476 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5477 (move_it_in_display_line_to): Overflow newline into fringe for
5478 rows that are exactly as wide as the window.
5479 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5480 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5481 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5482 (fringe_bitmaps): Add new bitmaps.
5483 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5484 Select proper bitmap for cursor in fringe when appropriate.
5485 Handle alignment of bitmap to top or bottom of row.
5486 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5487 done by update_window_fringes.
5488 (update_window_fringes, draw_window_fringes): New functions.
5489 (redisplay_internal): Call update_window_fringes in case only
5490 cursor row is updated.
5491 (redisplay_window): Call update_window_fringes.
5492 Explicitly call draw_window_fringes if redisplay was done using
5493 the current matrix or the overlay arrow is in the window.
5494 (try_window_reusing_current_matrix): Mark scrolled rows for
5495 fringe update (to update buffer-boundaries / scrolling icons).
5496 (find_last_unchanged_at_beg_row): Handle exact width lines line
5497 continued lines.
5498 (display_line): Overflow newline into fringe for rows that are
5499 exactly as wide as the window. Don't append space for newline
d7107586 5500 in this case.
77a9cf69
KS
5501 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5502 in fringe as if it had been overwritten.
5503 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5504 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5505 void-text-area-pointer as user options.
5506 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5507
77a9cf69
KS
5508 * xterm.c (x_update_window_end): Call draw_window_fringes.
5509 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5510 in row instead of actually drawing fringe bitmaps.
5511 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5512 (x_draw_window_cursor): Draw cursor in fringe.
5513
5514 * w32term.c (x_update_window_end): Call draw_window_fringes.
5515 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5516 in row instead of actually drawing fringe bitmaps.
5517 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5518 (w32_draw_window_cursor): Draw cursor in fringe.
5519
5520 * macterm.c (x_update_window_end): Call draw_window_fringes.
5521 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5522 in row instead of actually drawing fringe bitmaps.
5523 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5524 (mac_draw_window_cursor): Draw cursor in fringe.
5525
a633a954
JD
55262004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5527
5528 * xterm.c (handle_one_xevent): Don't handle characters that are part
5529 of an old style (XLookupString) compose sequence.
5530
80460525
KH
55312004-01-15 Kenichi Handa <handa@m17n.org>
5532
5533 * search.c (Freplace_match): Use make_multibyte_string or
5534 make_unibyte_string according to the buffer multibyteness.
5535
7fc34f85
SM
55362004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5537
5538 * alloc.c (struct interval_block, struct string_block)
5539 (struct symbol_block, struct marker_block, live_string_p)
5540 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5541 Better preserve alignment for objects in blocks.
5542 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5543
5544 * lread.c (defvar_per_buffer): Remove dead declaration.
5545
5546 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5547 space size.
5548
66070bd1
JD
55492004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5550
5551 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5552 if a key press should pop down. Only pop down if a key is pressed
5553 outside the menu/dialog.
5554 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5555 popup_get_selection.
5556 (create_and_show_dialog): Pass 1 for down_on_keypress to
5557 popup_get_selection.
5558
de7515d6
JD
55592004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5560
5561 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5562 BLOCK/UNBLOCK_INPUT.
5563
160b1b50
JD
55642004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5565
5566 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5567 specified.
5568
3a9f36e6
KH
55692004-01-08 Kenichi Handa <handa@m17n.org>
5570
5571 * editfns.c (Fformat): Fix '&' to '&&'.
5572
3803eb32
AS
55732004-01-08 Andreas Schwab <schwab@suse.de>
5574
5575 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5576 size if PSEUDOVECTOR_FLAG is set.
5577
9da88f37
KH
55782004-01-07 Kenichi Handa <handa@m17n.org>
5579
74ac5074
KH
5580 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5581
9da88f37
KH
5582 * fontset.c (fontset_ref_via_base): Fix previous change.
5583
05faee07
KS
55842004-01-07 Kim F. Storm <storm@cua.dk>
5585
5586 * process.c (read_process_output): Only activate adaptive
5587 buffering if we read less than 256 bytes at a time.
5588
634910c8
KS
55892004-01-06 Kim F. Storm <storm@cua.dk>
5590
5591 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5592 object and image object. Return glyph width and height.
5593 (mode_line_string, marginal_area_string): Ditto.
5594
5595 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5596 (marginal_area_string): Fix prototypes.
5597
5598 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5599 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5600 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5601
5602 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5603 buffer_posn_from_coords, and marginal_area_string functions to
5604 include both string object and image object in the lispy position.
5605 Also add actual glyph width and height to position.
5606 (read_key_sequence): Use real buffer position from mouse
5607 event to find keymap property even when click is in marginal area.
5608
5609 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5610 mode_line_string and marginal_area_string functions to handle
5611 both string object and image object properties.
d7107586 5612
57951c2e
AS
56132004-01-06 Andreas Schwab <schwab@suse.de>
5614
5615 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5616 character.
5617
181e6a61
AS
56182004-01-02 Andreas Schwab <schwab@suse.de>
5619
d7107586
SM
5620 * macterm.c (emacs_options, x_initialized, same_x_server):
5621 Remove unused (and duplicated) definitions.
181e6a61 5622
31e0fbdd
KS
56232004-01-02 Kim F. Storm <storm@cua.dk>
5624
5625 * process.h (struct Lisp_Process): New members for adaptive read
5626 buffering: adaptive_read_buffering, read_output_delay, and
5627 read_output_skip.
5628
5629 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5630 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5631 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5632 (process_output_delay_count, process_output_skip): New vars.
5633 (Vprocess_adaptive_read_buffering): New variable.
5634 (make_process): Initialize adaptive read buffering members.
5635 (Fstart_process): Set adaptive_read_buffering member.
5636 (deactivate_process): Cleanup adaptive read buffering.
5637 (wait_reading_process_input): Temporarily omit delayed
5638 subprocesses from the set of file descriptors to read from;
5639 adjust the select timeout if we skipped any subprocesses.
5640 (read_process_output): Increase adaptive read buffering delay if
5641 we read less than a full buffer; reduce delay when we read a
5642 full buffer.
5643 (send_process): Simplify using local Lisp_Process var.
5644 Reset adaptive read buffering delay after write.
5645 (init_process): Initialize process_output_delay_count and
5646 process_output_skip.
5647 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5648
68c6a789
JR
56492004-01-01 Jason Rumney <jasonr@gnu.org>
5650
d7107586 5651 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5652
3f70fe82
LT
56532003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5654
5655 * print.c (Ferror_message_string): Add hyperlink in the docstring
5656 to the definition of `signal' in the Elisp manual.
5657 * eval.c (Fsignal): Ditto.
5658
b6189c3b 56592003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5660
5661 * fns.c (internal_equal): Return t for two NaN arguments.
5662
7abd90ea
RS
56632003-12-29 Richard M. Stallman <rms@gnu.org>
5664
5665 * data.c (store_symval_forwarding): Handle setting
5666 default-fill-column, etc., by changing the value in
5667 buffers that use the default.
5668
5669 * minibuf.c (Fset_minibuffer_window): Doc fix.
5670
5671 * fileio.c (choose_write_coding_system): Ignore auto_saving
5672 if using the visited file for auto saves.
5673 (Fwrite_region): Don't update SAVE_MODIFF
5674 if auto-saving in visited file.
5675
3e7cfcdc
KH
56762003-12-29 Kenichi Handa <handa@m17n.org>
5677
5678 * dispextern.h (face_font_available_p): Extern it.
5679
5680 * fontset.c (Voverriding_fontspec_alist): New variable.
5681 (lookup_overriding_fontspec): New function.
d7107586 5682 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5683 (fontset_font_pattern): Likewise.
5684 (regulalize_fontname): New function.
5685 (Fset_fontset_font): Call regulalize_fontname.
5686 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5687 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5688 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5689
5690 * xfaces.c (face_font_available_p): New function.
5691
7abd90ea
RS
56922003-12-28 Richard M. Stallman <rms@gnu.org>
5693
5694 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5695 or if its name is nil.
5696
5697 * buffer.c (Fkill_buffer): Don't delete auto-save file
5698 if it's the same as the visited file.
5699
de1d1a40
LT
57002003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5701
5702 * coding.c (Fcheck_coding_system): Doc fix.
5703
204fb75e
KS
57042003-12-28 Kim F. Storm <storm@cua.dk>
5705
5706 * Makefile.in (eval.o): Depend on dispextern.h.
5707
5708 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5709 image glyph using image's ascent.
5710 (mode_line_string): Return image glyph as object clicked on.
5711 Adjust y0 for image glyph using image's ascent.
5712
5713 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5714 (struct glyph): New members, ascent and descent. Used to save
5715 this glyph's ascent and descent, instead of having.
5716 (struct glyph): Declare member face_id using FACE_ID_BITS.
5717 (find_hot_spot): Add prototype.
5718
5719 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5720 (QCmap): Declare extern.
5721 (make_lispy_position): When position is inside image hot-spot,
5722 use hot-spot element's id as posn element.
5723
5724 * lisp.h (IMAGEP): New macro to test for image object type.
5725 (Qimage): Declare extern.
5726
5727 * macfns.c (Qimage): Remove extern (now in lisp.h).
5728 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5729
5730 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5731
5732 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5733 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5734
5735 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5736
5737 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5738
5739 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5740 pointer types.
5741 (Qrelative_width, Qalign_to): Remove unused variables.
5742 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5743 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5744 image maps.
d7107586 5745 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5746 new dx and dy args.
5747 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5748 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5749 than row's ascent and height, to get sensible height on tall rows.
5750 (build_desired_tool_bar_string): Remove Qimage extern.
5751 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5752 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5753 image glyph is alone on the last line.
5754 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5755 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5756 (on_hot_spot_p): New function to check if position is inside an
d7107586 5757 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5758 (find_hot_spot): New function to search for image hot-spot.
5759 (Flookup_image_map): New defun to search for image hot-spot.
5760 (define_frame_cursor1): New aux function to determine frame pointer.
5761 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5762 Handle `pointer' text property and :pointer image property to
5763 control frame pointer shape. Detect image hot-spots for pointer
5764 and help_echo properties. Use define_frame_cursor1.
5765 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5766 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5767 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5768
5769 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5770
5771 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5772 (Qimage): Remove extern (now in lisp.h).
5773 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5774
5775 * xmenu.c (show_help_event): Remove unused code.
5776
5777 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5778 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5779 row's ascent and descent, to get a sensible height on tall rows.
5780
fc052137
LT
57812003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5782
5783 * minibuf.c (Fcompleting_read): Undo previous change.
5784
a64387ee 57852003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5786
5787 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5788 Arguments GCPRO'ed in call to file name handler.
5789
56ffd194
TTN
57902003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5791
5792 * termcap.c (tgetst1): Scan for "%pN"; if all
5793 N are continuous in [1,9], remove all "%pN".
5794
5202d23d
JD
57952003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5796
f26fab36
JD
5797 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5798
5202d23d
JD
5799 * xfaces.c (lface_fully_specified_p): Take into account that
5800 MAC OS always have unspecified stipple.
5801
8babaa59
TTN
58022003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5803
5804 * tparam.c (tparam1): Add handling for `%pN', which
5805 means use param N for the next substitution.
5806
2d176448
TTN
58072003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5808
5809 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5810 In case `frame' is nil, consult the selected frame.
5811 (Fcolor_supported_p): Likewise.
5812
adb0708c
LT
58132003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5814
000eeb15
LT
5815 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5816 Doc fixes.
0dc72b11
LT
5817
5818 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5819 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5820 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5821 Doc fix.
5822 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5823 read_minibuf.
5824 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5825 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5826
2e4d132b
KH
58272003-12-03 Kenichi Handa <handa@m17n.org>
5828
5829 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5830 encoding sequence.
5831
3999c705
KH
58322003-12-01 Kenichi Handa <handa@m17n.org>
5833
5834 * composite.c (syms_of_composite): Don't make the compostion hash
5835 table week.
5836
d344ecbb
LT
58372003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5838
5839 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5840 * textprop.c (Fget_char_property_and_overlay): New function.
5841 (syms_of_textprop): Defsubr it.
5842
03d6484e
JD
58432003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5844
019b1f0e
JD
5845 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5846 to compile on terminal configuration.
5847
03d6484e
JD
5848 * fileio.c (Fread_file_name): Check use_file_dialog also before
5849 calling Fx_file_dialog.
5850
5851 * fns.c: use_file_dialog: New variable.
5852 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5853
442d3fd0
KS
58542003-11-29 Kim F. Storm <storm@cua.dk>
5855
5856 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5857 (syms_of_msdos): Don't intern and staticpro them.
5858
0f6a07a8
KS
58592003-11-27 Kim F. Storm <storm@cua.dk>
5860
5861 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5862 coordinates relative to glyph at posn. If glyph is an image,
5863 return that as object at posn. Callers changed.
5864 (mode_line_string, marginal_area_string): Calculate and return
5865 pixel coordinates relative to glyph. Callers changed.
5866
5867 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5868 (marginal_area_string): Fix prototypes.
5869 (window_box_left_offset, window_box_right_offset): Add prototypes.
5870
5871 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5872 Remove prototypes.
5873
5874 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5875
5876 * keyboard.c (make_lispy_position): Add x and y coordinates
5877 relative to the current glyph as 7th element of position.
5878 If glyph is an image, return it in the object element.
5879 (read_key_sequence): Skip checks for keymap property in cases
5880 where POSN_STRING is not a string (e.g. an image).
5881
5882 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5883 (Vshow_text_cursor_in_void): New variable.
5884 (glyph_to_pixel_coords): Don't use negative hpos.
5885 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5886 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5887 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5888 (calc_pixel_width_or_height): New aux function, implementing
5889 pixel based artihmetic for glyph widths and heights.
5890 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5891 :width, :height, :align-to, and :ascent, thus allowing these to
5892 be specified in pixels as well as multiples of characters.
5893 Don't produce stretch glyphs with zero width or height.
5894 (get_specified_cursor_type): Declare static.
5895 (get_window_cursor_type): Declare static. Add glyph arg to be
5896 able to know when cursor is on an image; always substitute
5897 hollow-box cursor for filled-box cursor on images, to avoid
5898 negative images and flicker when blinking the cursor.
5899 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5900 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5901 than vertical scroll-bar cursor in display margins.
5902 (note_mouse_highlight): Use non-text cursor rather than text
5903 cursor in fringes and over images in the text area.
5904 Use non-text cursor when mouse pointer is outside editable text,
5905 i.e. in the void after end-of-line or end-of-buffer; this was
5906 already done for W32, but is now standard for all systems --
5907 user can toggle show-text-cursor-in-void to get old behaviour.
5908 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5909 Vdisplay_pixels_per_inch.
5910
00498bfc
AS
59112003-11-25 Andreas Schwab <schwab@suse.de>
5912
5913 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5914 EMACS_INT to not lose bits.
5915 (Ffillarray): Don't set bits beyond the size of a bool vector.
5916
edaa824d
KS
59172003-11-25 Kim F. Storm <storm@cua.dk>
5918
5919 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5920 define this defun on systems that cannot use stderr as lvalue.
5921
74d6f539
GM
59222003-11-24 Gerd Moellmann <gerd@gnu.org>
5923
5924 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5925 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5926 ld's default is incompatible with unexec.
5927
6a1ff3ba
KS
59282003-11-23 Kim F. Storm <storm@cua.dk>
5929
63dc7c6b
KS
5930 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5931 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5932 (Fforce_window_update): New defun.
5933 (syms_of_window): Defsubr it.
5934 (Fset_window_margins, Fset_window_fringes): Doc fix.
5935
6a1ff3ba
KS
5936 * print.c (Fredirect_debugging_output): New defun.
5937 (syms_of_print): Defsubr it.
5938
aef109b7
LT
59392003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5940
5941 * fns.c (Fset_char_table_parent): Doc fix.
5942
6a1ff3ba 59432003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5944
5945 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5946 for glyph clicked on, rather than (unused) pixel positions.
5947 (mode_line_string, marginal_area_string): Change X and Y args to
5948 pointers for returning actual row/column for glyph clicked on.
5949 Simplify and optimize loops.
5950
aef109b7
LT
5951 * dispextern.h (mode_line_string, marginal_area_string):
5952 Update prototypes.
63ccbe21
KS
5953
5954 * keyboard.c (make_lispy_position): New function for generating
5955 mouse click positions from frame and pixel coordinates.
5956 Enhanced to return buffer position and actual row/column for
5957 events outside the text area using updated mode_line_string and
5958 marginal_area_string functions.
5959 Return left-fringe and right-fringe clicks as such, rather than
5960 clicks in text area.
5961 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5962 pixel_to_glyph_coords, as we never use the results.
5963 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5964 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5965 Eliminate unused code in WHEEL_EVENT handling.
5966 (make_lispy_movement): Use make_lispy_position.
5967
5968 * window.c (coordinates_in_window): Remove redundant tests.
5969 Fix returned X pixel value for left-margin.
5970
5971 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5972 mode_line_string and marginal_area_string parameters.
5973
a64387ee 59742003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5975
d7107586
SM
5976 * w32.c (struct the_group, getgrgid): Add.
5977 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5978
3dbf3426
LT
59792003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5980
5981 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5982
cae8ddbb 59832003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5984
d7107586
SM
5985 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5986 include in call to file name handler. Optionally translate numeric
5987 UID and GID to strings. Update docstring.
5988 (directory_files_internal): Add parameter ID-FORMAT.
5989 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5990 include in call to file name handler and call to
5991 directory_files_internal. Update Docstring.
5992 (Fdirectory_files): Add dummy parameter in call to
5993 directory_files_internal.
5994 * lisp.h (Qinteger): Add.
5995 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5996 (Ffile_attributes): Add parameter.
5997 * data.c (Qinteger): Export.
cae8ddbb 5998
2550b848
LT
59992003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6000
3dbf3426 6001 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 6002
88380018
KS
60032003-11-19 Kim F. Storm <storm@cua.dk>
6004
6005 * xdisp.c (init_iterator): Initialize it->start to position
6006 before reseating (in case start position is invisible).
6007 (init_to_row_start): Set it->start to row-start.
6008 (redisplay_window): Accept optional_new_start if start position
6009 is invisible (in which case IT_CHARPOS overshoots PT).
6010 (display_line): Setup row->start from it->start (rather than
6011 it->current which is wrong if first char on line is invisible).
6012 When done, reseat it->start to it->current (= start of next row).
6013 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6014 is only partially visible.
6015
6016 * dispextern.h (struct it): New member start.
6017
854c1a59
SM
60182003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6019
455316e2
SM
6020 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6021 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6022 of block_index outside of the macro call.
6023 (Fgarbage_collect): Remove null code.
6024
6025 * m/amdx86-64.h: Don't redefine XPNTR.
6026
854c1a59
SM
6027 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6028 of VALMASK.
6029
6030 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6031 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6032 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6033
6034 * lisp.h (VALMASK): Only define for non-union type.
6035 (MARKBIT): Remove.
6036 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6037 (XTYPE): Define unconditionally.
6038 (XSETTYPE): Remove one more remnant.
6039 (EQ): Define differently for the union and non-union cases.
6040 (INTMASK): New bit mask.
6041 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6042 (GC_EQ): Delegate to EQ.
6043
6044 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6045
a0c6ef2d
JD
60462003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6047
6048 * xterm.c (x_window_to_scroll_bar): Move check of display to
6049 where window_id is compared.
6050
859492c4
KS
60512003-11-17 Kim F. Storm <storm@cua.dk>
6052
6053 * dispextern.h (struct it): New member first_vpos.
6054
6055 * xdisp.c (start_display): Set it->first_vpos.
6056 (try_window_id): Use first_vpos to start display in first _text_
6057 line if no reusable lines at start of window with header line.
6058
810f2256
JD
60592003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6060
7c402969 6061 * w32fns.c (XPutPixel):
854c1a59
SM
6062 * w32bdf.c (w32_init_bdf_font):
6063 * sunfns.c (sel_read):
6064 * process.c (Fmake_network_process):
6065 * frame.c (store_frame_param):
6066 * fontset.c (Fset_fontset_font):
6067 * emacs.c (shut_down_emacs):
a64387ee 6068 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6069
a32e9bfd
JD
6070 * config.in: Regenerate.
6071
810f2256
JD
6072 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6073 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6074 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6075 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6076 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6077
6078 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6079
6080 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6081 (XTmouse_position, handle_one_xevent): Pass Display* to
6082 x_window_to_scroll_bar.
6083 (x_window_to_scroll_bar): Take a Display* argument.
6084 Check that display for frame is equal to Display* argument.
854c1a59 6085 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6086 x_display_info_for_display instead. Use Display in xev instead
6087 of GDK_DISPLAY.
6088 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6089 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6090 (x_connection_closed): Call xg_display_close for GTK.
6091 (x_term_init): Call xg_display_open for additional displays.
6092 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6093 for GTK.
6094
6095 * xmenu.c (single_menu_item, mouse_position_for_popup)
6096 (x_activate_menubar): Formatting adjustments.
6097
6098 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6099 adjustments.
6100
6101 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6102 (xg_display_close, xg_create_default_cursor)
6103 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6104 handling.
854c1a59
SM
6105 (xg_left_ptr_cursor): Remove.
6106 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6107 cursor here.
6108 (xg_win_to_widget): Take Display* argument, call
6109 gdk_xid_table_lookup_for_display.
6110 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6111 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6112 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6113 in FRAME_X_DISPLAY_INFO.
6114 (xg_get_scroll_id_for_window): Take Display* argument.
6115 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6116 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6117
78819ebb
KS
6118 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6119 Display* argument.
6120 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6121
0b03cc78
JD
61222003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6123
6124 * xterm.c (x_detect_focus_change): Do not change focus frame for
6125 Enter/LeaveNotify if the current focus frame has explicit focus.
6126
77e688fa
KS
61272003-11-14 Kim F. Storm <storm@cua.dk>
6128
6129 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6130 is active and first glyph is only partially visible.
854c1a59 6131
dd429b03
KH
61322003-11-13 Kenichi Handa <handa@m17n.org>
6133
6134 * xdisp.c (select_frame_for_redisplay): New function.
6135 (redisplay_internal): Record also selected_frame for
6136 unwind_redisplay. Call select_frame_for_redisplay before
6137 redrawing each frame.
6138 (unwind_redisplay): Argument changed to a cons.
6139
6d9266f4
LT
61402003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6141
6142 * fns.c (Fstring_to_multibyte): Doc fix.
6143
80060eb3
KH
61442003-11-11 Kenichi Handa <handa@m17n.org>
6145
6146 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6147
74305183
JD
61482003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6149
6150 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6151 program specified positions.
6152
cfda993e
JD
61532003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6154
6155 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6156
df211069
KH
61572003-11-08 Kenichi Handa <handa@m17n.org>
6158
6159 * Makefile.in (lisp): Add kannada.el.
6160 (shortlisp): Likewise.
6161
4307d534
KH
61622003-11-07 Kenichi Handa <handa@m17n.org>
6163
854c1a59
SM
6164 * coding.c (coding_allocate_composition_data):
6165 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6166 (coding_restore_composition): Detect invalid composition data.
6167 Give Fstring and Fvector a Lispy integer, not C int.
6168
854c1a59
SM
61692003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6170
6171 * floatfns.c (Flogb): Don't use VALMASK.
6172
6173 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6174 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6175
6176 * lisp.h (XINT): Move the cast to clarify what is going on.
6177 (GCTYPEMASK, XSETTYPE): Remove.
6178 (XGCTYPE): Make it an alias of XTYPE.
6179
d04103a1
JD
61802003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6181
6182 * xterm.c (x_term_init): Fix formatting.
6183
da18b5ac
JD
61842003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6185
78819ebb
KS
6186 * gtkutil.h (xg_have_tear_offs): Declare.
6187 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6188
6189 * gtkutil.c: Remove variable xg_did_tearoff.
6190 (xg_have_tear_offs): New function.
6191 (tearoff_remove): Just decrease xg_detached_menus.
6192 (tearoff_activate): Increase xg_detached_menus and call
6193 tearoff_remove when tearoff is removed.
854c1a59 6194 (xg_keep_popup): Remove function.
da18b5ac
JD
6195 (create_menus): Give add_tearoff_p as argument to recursive
6196 call to create_menus.
6197 (xg_create_widget): Use variables instead of multiple
6198 strcmp. Tell create_menus to create tear off only for
6199 menu bar menus.
6200 (xg_update_menubar): Change title for a detached menu also.
6201 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6202 of deep_p.
6203 (xg_initialize): Initialize xg_detached_menus, remove
6204 initialization of xg_did_tearoff.
6205
6206 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6207 xg_have_tear_offs returns non-zero.
6208 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6209 call to xg_keep_popup.
6210
64d4923e
AC
62112003-11-01 Andrew Choi <akochoi@shaw.ca>
6212
6213 * macterm.c (XTread_socket): Handle menubar selection and grow
6214 window only for mouseDown events.
854c1a59 6215
6cc8bc07
JD
62162003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6217
6218 * xterm.c (x_term_init): For GTK part, increase x_initialized
6219 to check for more than one display. Use error instead of return 0.
6220
043131c4
AC
62212003-10-31 Andrew Choi <akochoi@shaw.ca>
6222
854c1a59 6223 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6224 (copy_dysymtab): Call it.
6225
bdda99a1
LT
62262003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6227
6228 * eval.c (Fdefvaralias): Doc fix.
6229
800f42ff 62302003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6231
6232 * data.c (Fsetplist): Doc fix.
6233
ef35b389
LK
62342003-10-14 Lute Kamstra <lute@gnu.org>
6235
6236 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6237
ef35b389 62382003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6239
07107abc
KS
6240 * window.c (Fset_window_margins): Simplify arg checking.
6241
f7005886
RS
62422003-10-13 Richard M. Stallman <rms@gnu.org>
6243
6244 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6245 (print_partial_compiled_pattern): Replace assert with a printout.
6246 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6247
6248 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6249
6250 * window.c (Fset_window_margins): Allow only integers as args.
6251 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6252 Doc fixes.
6253
9c0c2af5
LK
62542003-10-13 Lute Kamstra <lute@gnu.org>
6255
6256 * window.c (Fset_window_fringes): Elaborate docstring.
6257
3f080e4e
AC
62582003-10-12 Andrew Choi <akochoi@shaw.ca>
6259
854c1a59 6260 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6261
3f080e4e
AC
6262 * s/darwin.h (GC_MARK_STACK): Define.
6263
0aa513ed
JD
62642003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6265
6266 * window.c (shrink_windows): New function.
6267 (size_window): Call shrink_windows to calculate window sizes when
6268 shrinking frame with more than one window.
6269
6aa8858a
KS
62702003-10-12 Kim F. Storm <storm@cua.dk>
6271
6272 * xdisp.c (compute_fringe_widths): Doc fix.
6273
c2164d91
KH
62742003-10-08 Kenichi Handa <handa@m17n.org>
6275
854c1a59 6276 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6277
f82ac129
KH
62782003-10-07 Kenichi Handa <handa@m17n.org>
6279
6280 * coding.c (Qcoding_system_define_form): New variable.
6281 (syms_of_coding): Intern and staticpro it.
6282 (Fcheck_coding_system): Try to autoload the definition of
6283 CODING-SYSTEM.
6284
9296c947
LT
62852003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6286
6287 * fns.c (Frequire): Doc fix.
6288
c1f0671a
JD
62892003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6290
3d8c3826
JD
6291 * xfns.c (Fx_send_client_event): New function as a base for
6292 manipulating extended window manager hints.
6dc15d98 6293 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6294
068ae0fd
JD
6295 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6296 that function is removed.
6297
6298 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6299 x/y_pixels_outer_diff.
6300 (x_check_expected_move): Calculate move_offset_left/top.
6301
6302 * xterm.h (struct x_output): New members: move_offset_top/left.
6303
854c1a59 6304 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6305 call x_set_offset directly.
6306
6307 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6308
96f09305
JD
6309 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6310
6311 * xterm.c (x_delete_display): Free font names and font_encoder
6312 in dpyinfo->font_table.
6313
854c1a59
SM
6314 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6315 Move xfree of font names to x_delete_display.
96f09305 6316
c1f0671a
JD
6317 * xterm.h (struct x_display_info): New member, wm_type.
6318 (struct x_output): New members, expected_top/left and
6319 check_expected_move.
6320
6321 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6322 is received.
854c1a59
SM
6323 (handle_one_xevent): Rename x_check_expected_move from
6324 x_check_fullscreen_move.
c1f0671a
JD
6325 (x_set_offset): Only add WM decoration sizes to modified_top/left
6326 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6327 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6328 Removed fullscreen specific code. Use check_expected_move,
6329 expected_left/top instead. Also, set wm_type.
6330 (x_term_init): Initialize wm_type to unknown.
6331
6332 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6333 sizes to move_x/y.
6334
be2fdba9
KH
63352003-10-03 Kenichi Handa <handa@m17n.org>
6336
6337 * macterm.c (x_load_font): Clear all members of FONTP before start
6338 filling them.
6339
63402003-10-02 Kenichi Handa <handa@m17n.org>
6341
6342 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6343 before calling find_ccl_program_func. Call find_ccl_program_func
6344 only when fontp->font_encoder is not NULL.
6345
6346 * xterm.c (x_load_font): Clear all members of FONTP before start
6347 filling them.
6348
26a6e439
JPW
63492003-10-03 John Paul Wallington <jpw@gnu.org>
6350
6351 * keymap.c (map_keymap): Don't abort when binding is a vector.
6352
0d4c2dc2
JR
63532003-10-02 Jason Rumney <jasonr@gnu.org>
6354
854c1a59
SM
6355 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6356 Sync dependencies with Makefile.in.
a63cf46f
JR
6357 (alloca.o): Remove.
6358
0d4c2dc2
JR
6359 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6360 filling them.
6361
6362 * w32bdf.c (w32_load_bdf_font): Likewise.
6363
ab8f7d5c
RS
63642003-09-30 Richard M. Stallman <rms@gnu.org>
6365
6366 * term.c (set_tty_color_mode): Calculate current_mode_spec
6367 regardless of value of VAL.
6368
854c1a59 6369 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6370 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6371 Handle over_used when splitting UNDER.
6372
a64387ee 63732003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6374
6375 * regex.c (regex_compile): Free the stack when returning from function.
6376
3413f972
KH
63772003-09-28 Kenichi Handa <handa@m17n.org>
6378
6379 * fontset.c (Finternal_char_font): Change return value to
6380 cons (FONT-NAME . GLYPH-CODE).
6381
a6eeaa81 63822003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6383
6384 * term.c (tty_setup_colors): Treat any negative argument as -1.
6385
f98ddc99
KH
63862003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6387
6388 * process.c (send_process): Delete unused temp_buf.
6389
66c8f1a8
DL
63902003-09-26 Dave Love <fx@gnu.org>
6391
6392 * xterm.c (x_bitmap_mask): Declare.
6393
ca716c26
DL
63942003-09-25 Dave Love <fx@gnu.org>
6395
6396 * Makefile.in (fns.o): Depend on md5.h.
6397
fbe57420
KS
63982003-09-25 Kim F. Storm <storm@cua.dk>
6399
6400 * window.c (set_window_buffer): Fix redisplay problems when
6401 switching between buffers with different display margin widths.
6402
ef6ae4ff
KS
64032003-09-23 Kim F. Storm <storm@cua.dk>
6404
6405 * process.c (set_socket_option): Fix :bindtodevice option.
6406 (Fset_network_process_option): Update process contact list when
6407 setting option succeeds.
6408 (Fmake_network_process): Doc fix.
6409
68e03c1c
DL
64102003-09-23 Dave Love <fx@gnu.org>
6411
7146d1c1 6412 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6413
a6eeaa81 64142003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6415
6416 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6417 color mode is an integer number (it could be -1).
6418
8fe7d8c8
RS
64192003-09-22 Richard M. Stallman <rms@gnu.org>
6420
6421 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6422 in the case where OVER is longer than UNDER.
6423
2f71b5ea
MY
64242003-09-22 Masatake YAMATO <jet@gyve.org>
6425
7146d1c1 6426 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6427 `vertical_type'.
7146d1c1 6428
0c4da023
KS
64292003-09-21 Kim F. Storm <storm@cua.dk>
6430
6431 * frame.c (Vdefault_frame_scroll_bars): New variable.
6432 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6433 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6434 window-system default scroll bar position.
6435
b648413b
KS
6436 * window.c (Fwindow_scroll_bars): Doc fix.
6437
8f5b9e34
JD
64382003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6439
854c1a59 6440 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6441
b0f23edf
RS
64422003-09-19 Richard M. Stallman <rms@gnu.org>
6443
6444 * atimer.h: Don't include lisp.h.
6445 (P_): Define it here (as well as elsewhere).
6446
6447 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6448 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6449
6450 * data.c (Fvariable_binding_locus): New function.
6451 (syms_of_data): defsubr it.
6452 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6453
e1283999
DL
64542003-09-18 Dave Love <fx@gnu.org>
6455
ad5f3636
DL
6456 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6457
e1283999
DL
6458 * process.c (Fnetwork_interface_info): Fix type error.
6459 (Fnetwork_interface_list): Doc fix.
6460 (read_process_output, read_process_output): Delete unused var.
6461
b8c7fd71
KS
64622003-09-17 Kim F. Storm <storm@cua.dk>
6463
6464 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6465 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6466 (Fnetwork_interface_info): Check that ifreq struct has required
6467 fields before accessing them; this requires that those fields are
6468 defined as macros, which may be too restrictive on some platforms,
6469 but it is better than failing on other platforms.
6470 (syms_of_process): Only defsubr above fns when included.
6471
11e0a411
DL
64722003-09-17 Dave Love <fx@gnu.org>
6473
6474 * unexalpha.c: Don't include varargs.h.
6475
e9c50801
KS
64762003-09-17 Kim F. Storm <storm@cua.dk>
6477
6478 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6479 for network process.
6480 (socket_options): Add `:' prefix to option names. Add optbit field.
6481 (set_socket_option): Remove no_error arg and special handling of s < 0.
6482 Return 1<<optbit for known option, 0 for unknown.
6483 Do not interpret 0 as false for boolean option (only nil).
6484 Pass failed option and value to report_file_error.
7146d1c1 6485 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6486 (Fset_network_process_option): New function to set just one option.
6487 (Fmake_network_process): Allow :coding arg to be a cons.
6488 Allow :server arg to be an integer specifying backlog size.
6489 Remove :options arg, and allow options to be specified directly
6490 as :KEY, VALUE pairs. Parse these options before binding socket.
6491 As before, :reuseaddr t is default for a server process, but this
6492 can now be disabled by specifying :reuseaddr nil.
6493 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6494 (init_process): Availability of network options is now checked with
6495 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6496 setup features.
6497 (syms_of_process): Fix defsubr's for the replaced functions.
6498
a0fc3644
DL
64992003-09-16 Dave Love <fx@gnu.org>
6500
6501 * Makefile.in: Depend on coding.h.
6502
6df2a645
KS
65032003-09-14 Kim F. Storm <storm@cua.dk>
6504
6505 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6506 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6507 (syms_of_process): Defsubr them.
6508
6509 * config.in: Regenerate.
7146d1c1
SM
6510
65112003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6512
6513 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6514 * m/news-r6.h (XUNMARK): Remove.
6515 * m/mips.h (XUNMARK): Remove.
6516 * m/mips-siemens.h (XUNMARK): Remove.
6517 * m/iris4d.h (XUNMARK): Remove.
6518 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6519
0930c1a1
SM
65202003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6521
31003b9e
SM
6522 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6523 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6524 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6525 (XTYPE): Use unsigned right-shift.
6526 (XMARKBIT, XMARK, XUNMARK): Remove.
6527
0930c1a1
SM
6528 * alloc.c (init_intervals, init_symbol, init_marker):
6529 Don't preallocate anything.
6530 (Fgarbage_collect, mark_object): Ignore the markbit.
6531
6532 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6533
19bb0fcd 65342003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6535
6536 * xdisp.c (pint2hrstr): New function.
6537 (decode_mode_spec): Add `%i' and `%I' specs.
6538 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6539 for `mode-line-format'.
6540
03bb6a06
AS
65412003-09-07 Andreas Schwab <schwab@suse.de>
6542
6543 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6544 avoid warning.
6545
a6eeaa81 65462003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6547
0930c1a1 6548 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6549
ed159bbf
KS
65502003-09-03 Kim F. Storm <storm@cua.dk>
6551
6552 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6553 change (superseded by 2002-08-30 change); the default blink-off
6554 cursor is now again "no cursor".
6555
fe64a394
JR
65562003-09-01 Jason Rumney <jasonr@gnu.org>
6557
6558 * makefile.w32-in (alloca.o): Remove.
6559 (coding.o): Depend on intervals.h
6560 (emacs.o, bytecode.o): Depend on window.h
6561
c0175e24
DL
65622003-09-01 Dave Love <fx@gnu.org>
6563
6564 * Makefile.in (alloca.o): Remove commands.
6565 (coding.o): Depend on intervals.h composite.h window.h.
6566 (emacs.o): Depend on window.h keyboard.h keymap.h.
6567 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6568 (bytecode.o): Depend on window.h.
6569
a24d4cb2
JR
65702003-08-31 Jason Rumney <jasonr@gnu.org>
6571
4bc2315e
JR
6572 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6573 returned even when font_type is unknown.
6574
a24d4cb2
JR
6575 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6576
9d35adc7
JD
65772003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6578
6579 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6580
6581 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6582 *_offset.
6583
6584 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6585 calculate pixel value.
6586
6f68b035
GM
65872003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6588
0930c1a1
SM
6589 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6590 Don't tell redisplay display is accurate when it's actually been
6591 paused for pending input.
6f68b035 6592
4828b4d7
RS
65932003-08-29 Richard M. Stallman <rms@gnu.org>
6594
6595 * dispnew.c (adjust_glyph_matrix): Call window_box
6596 whenever W is nonzero.
6597
6598 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6599 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6600 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6601 Use indirect_variable to trace thru variable aliases.
6602
6603 * config.in: Updated.
6604
6605 * callint.c (Fcall_interactively): Save and restore
6606 Vthis_command, Vthis_original_command, real_this_command,
6607 and current_kboard->Vlast_command.
6608
6609 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6610
e019878d
GM
66112003-08-29 Gerd Moellmann <gerd@gnu.org>
6612
6613 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6614
85478bc6
KH
66152003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6616
0930c1a1 6617 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6618 (decode_coding_sjis_big5): Likewise.
6619
07ce82d3
JR
66202003-08-27 Jason Rumney <jasonr@gnu.org>
6621
d3703de3
JR
6622 * w32.c (sys_pipe): Protect against file descriptor overflow.
6623
ee4a01d1
JR
6624 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6625
07ce82d3
JR
6626 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6627
a64387ee 66282003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6629
6630 * xfns.c (Vgtk_version_string): New variable.
6631 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6632
a6eeaa81 66332003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6634
0930c1a1 6635 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6636
5459e42a
EZ
6637 * Makefile.in (msdos.o): Depend on intervals.h.
6638
0930c1a1 6639 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6640
231d6cfb
JD
66412003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6642
6643 * xterm.h (struct x_display_info): New fields: client_leader_window
6644 and Xatom_wm_client_leader.
6645
6646 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6647 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6648
6649 * xsmfns.c (create_client_leader_window): New function.
6650 (x_session_initialize): Call create_client_leader_window, take
6651 dpyinfo as argument.
6652
6653 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6654
6655 * Makefile.in (xsmfns.o): Add more depenedencies.
6656
afa88464
DL
66572003-08-21 Dave Love <fx@gnu.org>
6658
6659 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6660
f730033e
KH
66612003-08-21 Kenichi Handa <handa@m17n.org>
6662
6663 * term.c (term_init): Fix previous change; don't rely on the
6664 length of `buffer' if TERMINFO is defined.
6665
6dca786c
DL
66662003-08-20 Dave Love <fx@gnu.org>
6667
6668 * atimer.h: Include lisp.h.
6669
6670 * lisp.h (EMACS_LISP_H): New.
6671 (popup_activated_flag): Don't declare.
6672
6673 * alloca.c: Some merging with gnulib. Change logic and doc
6674 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6675 [DO_BLOCK_INPUT]: Don't include lisp.h.
6676 (xmalloc, xfree): Declare.
6677 (malloc): Don't declare.
6678
0930c1a1 6679 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6680 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6681 atimer.h, blockinput.h.
6682
6683 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6684
78819ebb 6685 * alloca.s: Remove.
6dca786c 6686
3a06a6d9
RS
66872003-08-19 Gerd Moellmann <gerd@gnu.org>
6688
6689 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6690 use -lncurses.
6691
6692 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6693 FreeBSD returns something longer than 2044. Abort if the end of
6694 the buffer is overwritten.
6695
27eeee55
MB
66962003-08-19 Miles Bader <miles@gnu.org>
6697
6698 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6699
2f297815
GM
67002003-08-19 Gerd Moellmann <gerd@gnu.org>
6701
f4446bbf
GM
6702 * alloc.c (lisp_align_malloc): Check for memory full when
6703 allocating ablocks, which also avoids freeing a pointer into an
6704 ablocks structure.
6705
6706 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6707
0930c1a1 6708 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6709
0e7d7aae
RS
67102003-08-16 Richard M. Stallman <rms@gnu.org>
6711
6712 * editfns.c (Fencode_time): Doc fix.
6713
67142003-08-16 David Ponce <david@dponce.com>
6715
6716 * fileio.c (Fwrite_region): Fix conditional expression to issue
6717 the right message.
6718
b6189c3b 67192003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6720
6721 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6722 Set default value to 1.
0e7d7aae 6723
5d551295
KH
67242003-08-15 Kenichi Handa <handa@m17n.org>
6725
6726 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6727 what autoscaled.
6728 (best_matching_font): Once we find a better scalable font, set
6729 non_scalable_has_exact_height_p to 1.
6730 (try_font_list): Call try_alternative_families to try any family
6731 with the given registry.
6732
1661e56b
AS
67332003-08-09 Andreas Schwab <schwab@suse.de>
6734
f29181dc
AS
6735 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6736
1661e56b
AS
6737 * print.c (print_string): Fix printing of multibyte string with
6738 nontrivial printcharfun.
6739
465aa50a
JD
67402003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6741
6742 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6743
6744 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6745
e430e5ba
KH
67462003-07-31 Kenichi Handa <handa@m17n.org>
6747
6748 * process.c (read_process_output): Return the actually read bytes
6749 instead of the result of decoding.
6750
97e7188e
KH
67512003-07-31 Kenichi Handa <handa@m17n.org>
6752
6753 * xterm.h (struct x_bitmap_record): New member have_mask.
6754
6755 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6756 to 0.
6757 (x_create_bitmap_from_file): Likewise.
6758 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6759 (x_destroy_all_bitmaps): Likewise.
6760 (x_create_bitmap_mask): Set have_mask member to 1.
6761
b53094d6
RS
67622003-07-30 Richard M. Stallman <rms@gnu.org>
6763
6764 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6765
631f2082
JD
67662003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6767
6768 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6769
c855f2ca
RS
67702003-07-29 Richard M. Stallman <rms@gnu.org>
6771
6772 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6773 Conditionalize XIM code on HAVE_XIM.
6774
6775 * fns.c (Fclear_string): New function.
6776 (syms_of_fns): defsubr it.
6777
b6189c3b 67782003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6779
0930c1a1 6780 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6781
29ea8ae9
SM
67822003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6783
6784 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6785
6786 * buffer.c (delete_all_overlays): New function.
6787 * buffer.h (delete_all_overlays): Declare.
6788 * coding.c (run_pre_post_conversion_on_str):
6789 * print.c (temp_output_buffer_setup):
6790 * fileio.c (Finsert_file_contents):
6791 * minibuf.c (get_minibuffer): Use it.
6792
1dd7ccf2
AC
67932003-07-22 Andrew Choi <akochoi@shaw.ca>
6794
6795 * unexmacosx.c (unexec_regions_sort_compare):
6796 (unexec_regions_merge): New functions. Sort and merge unexec
6797 regions before dumping them.
6798
f57bd967
DL
67992003-07-22 Dave Love <fx@gnu.org>
6800
6801 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6802
7cdee936
SM
68032003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6804
6805 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6806 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6807 MARKBIT as the gcmarkbit for strings.
6808
e50886d3
RS
68092003-07-21 Richard M. Stallman <rms@gnu.org>
6810
6811 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6812
29ea8ae9 6813 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6814 (syms_of_fns): Corresponding change.
6815
6816 * alloc.c (syms_of_alloc): Doc fixes.
6817
68182003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6819
6820 * s/netbsd.h: Use -Wl syntax.
6821
fdc39b59
RS
68222003-07-17 Richard M. Stallman <rms@gnu.org>
6823
6824 * xterm.c (xim_initialize): Redo 6/24 change.
6825
9c53385f
SM
68262003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6827
6828 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6829 (Fswitch_to_buffer): Don't signal an error when switching to the same
6830 buffer in a dedicated window.
6831
6832 * alloc.c: Use bitmaps for cons, as was done for floats.
6833 (init_float, init_cons): Let the normal code allocate the first block.
6834 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6835 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6836 New macros.
6837 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6838 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6839 (live_cons_p): Check the pointer is not past the `conses' array.
6840 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6841 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6842 (survives_gc_p): Use CONS_MARKED_P and simplify.
6843 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6844
dde13196
PE
68452003-07-13 Paul Eggert <eggert@twinsun.com>
6846
6847 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6848 puts it into BSS instead, at least on Solaris 8 and 9.
6849 This is a valid optimization, and it may occur on other platforms,
6850 so Emacs should not assume that initializing a static variable to
6851 zero puts it into data.
6852 * alloc.c (pure, staticvec):
6853 Initialize these arrays to nonzero, so that they're not
6854 put into BSS by that optimization.
6855
a801bc34
SM
68562003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6857
6858 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6859 (lisp_align_malloc): Use posix_memalign is available.
6860 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6861 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6862 for consistency. Update users.
6863
0c8b2afa
RS
68642003-07-13 Richard M. Stallman <rms@gnu.org>
6865
6866 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6867
668c2ab0
JB
68682003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6869
6870 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6871 and use the Gtk+ function gtk_window_icon_from_file if available.
6872
6873 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6874 handle mask of bitmaps.
6875 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6876 mask property.
6877 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6878
6879 * xterm.h (xg_set_icon): New function.
6880
800bebe3
RS
68812003-07-12 Paul Eggert <eggert@twinsun.com>
6882
6883 * unexelf.c (unexec): Consider a section to precede the .bss
6884 section if its addresses overlap that of .bss.
6885
69e38995
RS
68862003-07-12 Richard M. Stallman <rms@gnu.org>
6887
6888 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6889
6890 * config.in (HAVE_CRTIN): Add #undef.
6891 (INLINE): Really inline only if OPTIMIZE is defined.
6892
6893 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6894 END_FILES_1.
6895 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6896 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6897
6898 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6899 (TERMINFO): Define.
6900 (LIBS_TERMCAP): Define.
6901 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6902
6903 * xfns.c: Include libpng/png.h instead of png.h.
6904
f1d0c238
AS
69052003-07-11 Andreas Schwab <schwab@suse.de>
6906
6907 * buffer.c (modify_overlay): Update prototype.
6908 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6909 Likewise.
6910
5f6bf5fe
SM
69112003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6912
6913 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6914 (struct interval): Move to intervals.h.
6915 (struct Lisp_Marker): Use EMACS_INT for position info.
6916 (forward_point): Remove prototype of defunct function.
6917 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6918 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6919 (syms_of_textprop, set_text_properties): Remove prototypes that are
6920 already in intervals.h.
6921
6922 * intervals.h (struct interval): Move from lisp.h.
6923 Use EMACS_INT for position and size info.
6924
6925 * coding.c: Include intervals.h for Fset_text_properties.
6926
6927 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6928 position and length information.
6929
2765b457
SM
69302003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6931
6932 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6933 position and length information.
6934
2410d73a
SM
69352003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6936
6937 Change overlays_after and overlays_before so the overlays themselves
6938 are linked into lists, rather than using cons cells. After all each
6939 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6940 Lisp_Overlay for free and save up one cons cell per overlay (not
6941 to mention one indirection when traversing the list of overlay).
6942
6943 * lisp.h (struct Lisp_Overlay): New field `next'.
6944
6945 * buffer.h (struct buffer): Change overlays_before and overlays_after
6946 from Lisp lists of overlays to pointers to overlays.
6947
6948 * buffer.c (overlay_strings, recenter_overlay_lists):
6949 Fix typo in eassert in last commit.
6950 (unchain_overlay): New function.
6951 (add_overlay_mod_hooklist): Use AREF.
6952 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6953 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6954 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6955 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6956 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6957 Adjust to new type of overlays_(before|after).
6958
6959 * alloc.c (mark_object): Mark the new `next' field of overlays.
6960 (mark_buffer): Manually mark the overlays_(after|before) fields.
6961
6962 * coding.c (run_pre_post_conversion_on_str):
6963 * editfns.c (overlays_around):
6964 * xdisp.c (load_overlay_strings):
6965 * fileio.c (Finsert_file_contents):
6966 * indent.c (current_column):
6967 * insdel.c (signal_before_change, signal_after_change):
6968 * intervals.c (set_point_both):
6969 * print.c (temp_output_buffer_setup): Use new type for
6970 overlays_(before|after).
6971
04812929
SM
69722003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6973
6974 * buffer.c (report_overlay_modification): Don't run hooks while
6975 traversing the list of overlays.
6976
6977 * buffer.h (struct buffer): Use an int for overlay_center.
6978 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6979 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6980
6981 * buffer.c (reset_buffer, recenter_overlay_lists)
6982 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6983 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6984 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6985 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6986 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6987
6988 * xdisp.c (fast_find_position): Remove unused var.
6989
6990 * cmds.c (Qexpand_abbrev): New sym.
6991 (syms_of_cmds): Initialize it.
6992 (internal_self_insert): Use it to call expand-abbrev.
6993
2e7ecf15
KS
69942003-07-09 Kim F. Storm <storm@cua.dk>
6995
f9711de4 6996 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6997 was configured with --without-xim.
42f81f64 6998 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6999
c6de56a0
RS
70002003-07-07 Richard M. Stallman <rms@gnu.org>
7001
7002 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7003
7004 * alloc.c (Fgarbage_collect): Doc fix.
7005
b6189c3b 70062003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
7007
7008 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7009
bfe1a3f7
SM
70102003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7011
04812929
SM
7012 * minibuf.c (read_minibuf): UNGCPRO before returning.
7013 (Ftry_completion, Fall_completions): Doc fix.
7014
bfe1a3f7
SM
7015 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7016 now that `floats' is not the last element of the struct any more.
7017
ee79d1aa
JR
70182003-07-06 Jason Rumney <jasonr@gnu.org>
7019
7020 * w32term.h (ClipboardSequence_Proc): New type.
7021
7022 * w32fns.c (clipboard_sequence_fn): New variable.
7023 (globals_of_w32fns): Initialize it.
7024
7025 * w32select.c (last_clipboard_sequence_number): New variable.
7026 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7027 number if possible.
7028
49723c04
SM
70292003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7030
4698665f
SM
7031 * m/amdx86-64.h (MARKBIT):
7032 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7033 MARKBIT and ARRAY_MARK_FLAG any more.
7034
7035 * m/hp800.h (XSETMARKBIT):
7036 * m/sr2k.h (XSETMARKBIT):
7037 * lisp.h (XSETMARKBIT): Remove unused macro.
7038
49723c04
SM
7039 * lisp.h (mark_object): Change prototype.
7040
7041 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7042 (last_marked): Change accordingly.
7043 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7044 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7045 (mark_buffer): Update calls to mark_object.
7046
7047 * bytecode.c (mark_byte_stack):
7048 * fns.c (sweep_weak_table):
7049 * keyboard.c (mark_kboards): Update calls to mark_object.
7050
1d660eca
JR
70512003-07-06 Jason Rumney <jasonr@gnu.org>
7052
7053 * alloc.c (struct ablock): Only include padding when there is some.
7054
618b5ae4
SM
70552003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7056
7057 * alloc.c (ALIGN): Add casts to simplify usage.
7058 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7059 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7060 (struct ablock, struct ablocks): New types.
7061 (free_ablock): New global var.
7062 (lisp_align_malloc, lisp_align_free): New functions.
7063 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7064 (struct float_block): Reorder and add gcmarkbits.
7065 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7066 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7067 (init_float, make_float): Use lisp_align_malloc.
7068 (free_float, live_float_p): Don't use `type' any more.
7069 (make_float): Use FLOAT_UNMARK to access to mark bit.
7070 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7071 Use FLOAT_MARKED_P to access the mark bit.
7072 (pure_alloc): Simplify use of ALIGN.
7073 (mark_object): Use FLOAT_MARK to access the mark bit.
7074 (gc_sweep): Use new macros to access the float's mark bit.
7075 (init_alloc_once): Init free_ablock.
7076
7077 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7078
3ef06d12
SM
70792003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7080
7081 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7082 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7083 (allocate_buffer): Move.
7084 (string_bytes): Don't mask markbit of `size_byte'.
7085 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7086 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7087 Use the `size' field of buffers (rather than the `name' field) for
7088 the mark bit, as is done for all other vectorlike objects.
7089 Use the new macros to access the mark bit of vectorlike objects.
7090
e81043aa
RS
70912003-06-26 Richard M. Stallman <rms@gnu.org>
7092
7093 * puresize.h (BASE_PURESIZE): Increment base size.
7094
7095 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7096
7097 * xterm.c (xim_initialize): Undo previous change.
7098
2d0834cc
SM
70992003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7100
7101 * alloc.c (survives_gc_p): Simplify.
7102
7103 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7104
7105 * window.c (Fset_window_dedicated_p): Simplify.
7106 (display_buffer_1): Don't raise the win from which minibuf was entered.
7107 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7108 (Fminibuffer_selected_window): Simplify.
7109
7110 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7111
7112 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7113 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7114
7115 * insdel.c (check_markers, adjust_markers_for_delete)
7116 (adjust_markers_for_insert, adjust_markers_for_replace)
7117 (prepare_to_modify_buffer, RESTORE_VALUE):
7118 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7119 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7120 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7121 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7122 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7123 * editfns.c (save_excursion_restore, transpose_markers):
7124 * window.c (delete_window):
7125 * xdisp.c (message_dolog): Update for new types.
7126
d54ae3d8
JD
71272003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7128
a5f696ac
JD
7129 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7130 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7131 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7132
7133 * frame.c (make_frame): Initialize default_face_done_p.
7134
7135 * frame.h (struct frame): Add default_face_done_p.
7136
d54ae3d8
JD
7137 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7138 will be defined.
7139
2336fe58
SM
71402003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7141
7142 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7143 Initialize the new field `gcmarkbit'.
7144 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7145 (mark_interval_tree): Don't mark the tree separately from the nodes.
7146 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7147 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7148 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7149
7150 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7151 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7152 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7153 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7154 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7155
bcea31c2
DL
71562003-06-24 Dave Love <fx@gnu.org>
7157
7158 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7159
7160 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7161 from gnulib.
7162
2601f59e
RS
71632003-06-21 Richard M. Stallman <rms@gnu.org>
7164
7165 * fileio.c (Fwrite_region): Alternate messages
7166 for append and partial write.
7167
7168 * keyboard.c (read_key_sequence): When converting upcase fn key to
7169 downcase, update fkey and keytran so `backspace' gets translated.
7170
7171 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7172
7173 * process.c (wait_reading_process_input): Don't signal SIGIO
7174 in batch mode.
7175
b5d2c621
KH
71762003-06-17 Kenichi Handa <handa@m17n.org>
7177
7178 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7179 composite.h.
7180
7181 * xselect.c: Don't include charset.h, coding.h, composite.h.
7182 (Qforeign_selection): New variable.
7183 (syms_of_xselect): Intern and static it.
7184 (selection_data_to_lisp_data): Return a unibyte string made from
7185 data with `foreign-selection' text property.
7186
6793bc63
SM
71872003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7188
7189 * termhooks.h (EVENT_INIT): New macro.
7190
7191 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7192
7193 * alloc.c (mark_kboards): Move to keyboard.c.
7194
7195 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7196 * xterm.c (x_dispatch_event):
7197 * xmenu.c (find_and_call_menu_selection):
7198 * xdisp.c (handle_tool_bar_click):
7199 * w32menu.c (menubar_selection_callback):
7200 * sysdep.c (kbd_input_ast, read_input_waiting):
7201 * msdos.c (dos_rawgetc):
7202 * macterm.c (mac_check_for_quit_char):
7203 * macmenu.c (menubar_selection_callback):
7204 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7205 data to kbd_buffer_store_event.
7206
b3ea810c
KS
72072003-06-15 Kim F. Storm <storm@cua.dk>
7208
7209 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7210 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7211
b8f75eda
KG
72122003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7213
7214 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7215
ba92ce48
KH
72162003-06-12 Kenichi Handa <handa@m17n.org>
7217
7218 * fileio.c (Fwrite_region): Save and restore restriction.
7219
b80263be
DL
72202003-06-12 Dave Love <fx@gnu.org>
7221
7222 * alloca.c (alloca): Declare arg as size_t.
7223
6793bc63
SM
7224 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7225 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7226
b23c0a83
DL
72272003-06-11 Dave Love <fx@gnu.org>
7228
7229 * search.c (shrink_regexp_cache): Use xrealloc.
7230 (syms_of_search): Use xmalloc.
7231
700e47c2
KS
72322003-06-10 Kim F. Storm <storm@cua.dk>
7233
7234 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7235 Adjust phys_cursor.x to be relative to window box, rather than
7236 text area before checking -- to ensure cursor is redrawn when
7237 exposing window.
7238 Note: This also fixes a similar (older) bug if display margins
7239 are present.
7240
f11aa0b2
KH
72412003-06-06 Kenichi Handa <handa@m17n.org>
7242
7243 * coding.c (encoding_buffer_size): If coding->type is
7244 coding_type_ccl, double magnification on CRLF encoding.
7245
3d143690
JR
72462003-06-06 Jason Rumney <jasonr@gnu.org>
7247
7248 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7249 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7250
7251 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7252 Mac too.
7253
f16205ca
DL
72542003-06-05 Dave Love <fx@gnu.org>
7255
b23c0a83
DL
7256 * strftime.c: Merge changes from gnulib.
7257
f16205ca
DL
7258 * mktime.c (__mktime_internal): Merge changes from gnulib
7259 involving year 69 and dst2.
7260
7261 Changes to merge with gnulib version and be consistent with the
7262 autoconf test:
7263
6793bc63
SM
7264 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7265 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7266 [HAVE_LOCALE_H]: Include locale.h.
7267 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7268
9b87a0bc
KS
72692003-06-05 Kim F. Storm <storm@cua.dk>
7270
7271 * window.c (coordinates_in_window): Convert X and Y to window
7272 relative coordinates inside mode-line and header-line parts.
7273 Convert X and Y to margin area relative coordinates inside left
7274 and right display margin parts.
7275
5a8a15ec
JR
72762003-06-05 Jason Rumney <jasonr@gnu.org>
7277
7278 * w32fns.c (add_system_logical_colors_to_map): New function.
7279 (Fx_open_connection): Use it.
7280
01ed8ff1
SM
72812003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7282
7283 * process.c (allocate_pty): Revert part of the previous patch.
7284 (Faccept_process_output): Simplify.
7285
b427b65d
JR
72862003-06-04 Jason Rumney <jasonr@gnu.org>
7287
7288 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7289
7290 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7291 (lispy_mouse_wheel_names): Remove.
7292 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7293 Always define drag_and_drop_syms.
7294
7295 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7296 WHEEL_EVENT events.
7297
914a8c47
SM
72982003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7299
01ed8ff1
SM
7300 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7301
914a8c47
SM
7302 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7303
adcb132c
JD
73042003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7305
7306 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7307 menu item label.
7308
be781fa7
RS
73092003-06-03 Richard M. Stallman <rms@gnu.org>
7310
7311 * window.c (Fwindow_edges): Doc fix.
7312 (Fwindow_pixel_edges, Fwindow_inside_edges)
7313 (Fwindow_inside_pixel_edges): New functions.
7314 (syms_of_window): defsubr them.
7315
7316 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7317 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7318
914a8c47
SM
73192003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7320
7321 * dispnew.c (Fsit_for): Don't lie about the number of args.
7322
5b07197a
DL
73232003-06-02 Dave Love <fx@gnu.org>
7324
7325 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7326 (syms_of_callproc) <process-environment>: Doc fix.
7327
7328 * doc.c: Use HAVE_FCNTL_H, not USG5.
7329
7330 * xfaces.c (font_rescale_ratio): Fix for K&R.
7331
7332 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7333
7334 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7335
7336 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7337
7338 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7339 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7340
d7107586 7341 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7342
7343 * xmenu.c (ENCODE_MENU_STRING): New.
7344 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7345 Use it.
7346
7347 * coding.h (ENCODE_UTF_8): New.
7348 (Qutf_8): Declare.
7349
7350 * coding.c (Qutf_8): New.
7351 (syms_of_coding): Intern it.
7352
7353 * fns.c: Doc fixes.
7354
7335b336
KH
73552003-06-02 Kenichi Handa <handa@m17n.org>
7356
7357 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7358
914a8c47
SM
73592003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7360
7361 * lread.c (openp): Make sure STR is a string.
7362
9862c135
JR
73632003-06-01 David Ponce <david@dponce.com>
7364
cab27d04 7365 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7366 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7367
7368 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7369 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7370 (discard_mouse_events): Discard WHEEL_EVENT events too.
7371 (lispy_wheel_names, wheel_syms): New.
7372 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7373 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7374 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7375
7376 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7377 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7378 WHEEL_EVENT events.
7379
f984e73e
JPW
73802003-05-31 John Paul Wallington <jpw@gnu.org>
7381
7382 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7383 timer are in lisp/emacs-lisp.
7384
1efcd78f
KH
73852003-05-31 Kenichi Handa <handa@m17n.org>
7386
458c8af4
KH
7387 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7388 region when a buffer is changed to unibyte.
7389
1efcd78f
KH
7390 * charset.h (VALID_LEADING_CODE_P): New macro.
7391 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7392
778e2804
KH
7393 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7394 is nonzero, accept multibyte form of eight-bit-control chars.
7395 (decode_composition_emacs_mule): Likewise.
7396 (decode_coding_emacs_mule): Likewise.
7397 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7398 multibyte form of eight-bit-control chars.
7399
7400 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7401 (Finsert_file_contents): If coding-system-for-read is bound to
7402 Qauto_save_coding, use the coding system emacs-mule with special
7403 setting for recovering a file.
7404 (choose_write_coding_system): On auto saving, use the coding
7405 system emacs-mule with special setting for auto saving.
7406 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7407
034060e4
KH
74082003-05-30 Kenichi Handa <handa@m17n.org>
7409
7410 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7411 properly before calling ccl_driver.
7412
778e2804 7413 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7414
cab27d04 7415 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7416 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7417 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7418
595f5aa5
GM
74192003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7420
7421 * xfaces.c (realize_default_face): Do not abort if lface is
7422 non-existent - reverts change from 2003-05-19.
7423
103e0180
KH
74242003-05-29 Kenichi Handa <handa@m17n.org>
7425
7426 * coding.c (decode_coding_iso2022): Pay attention to the byte
7427 sequence of CTEXT extended segment, and retain those bytes as is.
7428
74292003-05-28 Kenichi Handa <handa@m17n.org>
7430
cab27d04 7431 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7432 of CODING_REPLACEMENT_CHARACTER.
7433 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7434 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7435 check this flag on encoding.
cab27d04
SM
7436 (encode_coding_sjis_big5):
7437 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7438 (Fset_terminal_coding_system_internal):
7439 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7440 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7441
7442 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7443 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7444 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7445
ff6a3bfb 74462003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7447
ff6a3bfb
RS
7448 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7449
7450 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7451
1963c428
KS
74522003-05-28 Kim F. Storm <storm@cua.dk>
7453
7454 * xdisp.c (expose_window): Fix error in calculation of
7455 window relative coordinates of area to redisplay.
7456
2b5d4601
JR
74572003-05-27 Jason Rumney <jasonr@gnu.org>
7458
7459 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7460
1c64a4a2
JB
74612003-05-27 David Ponce <david@dponce.com>
7462
7463 Handle W32 mouse wheel events as mouse click events, like in X.
7464
7465 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7466 MOUSE_WHEEL_EVENT anymore.
7467
7468 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7469 Scrolling down/up the mouse wheel is respectively mapped to mouse
7470 button 4 and 5.
7471 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7472 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7473 WM_MOUSEWHEEL events.
7474
2d031b89
AS
74752003-05-27 Andreas Schwab <schwab@suse.de>
7476
20464fdf
AS
7477 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7478
2d031b89
AS
7479 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7480 partially visible line.
7481
7482 * alloc.c (Fgarbage_collect): Fix last change.
7483
97bc76d4
JPW
74842003-05-26 John Paul Wallington <jpw@gnu.org>
7485
7486 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7487
56613f06
SM
74882003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7489
7490 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7491 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7492
7493 * window.h (window_box_text_cols): Declare.
7494
7495 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7496 (x_draw_vertical_border): Remove unused var `f'.
7497
7498 * xfaces.c (build_scalable_font_name): Remove `unused var
7499 pixel_size' warning.
7500
7501 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7502
7503 * unexelf.c (unexec): Remove `unused var n' warning.
7504
7505 * strftime.c (my_strftime_localtime_r): Remove `defined but
7506 unused' warning.
7507
7508 * process.c (allocate_pty): Remove `unused var stb' and
7509 `cp might be used uninitialized' warnings.
7510
7511 * dispnew.c (mode_line_string): Remove unused var `f'.
7512
7513 * coding.c (find_safe_codings): Remove unused var `i'.
7514
7515 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7516
7517 * buffer.c (Fkill_buffer): Remove unused var `list'.
7518
7519 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7520
93421a1f
JD
75212003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7522
7523 * frame.c (make_frame): Condition want_fullscreen with
7524 HAVE_WINDOW_SYSTEM.
7525
c4b8aebc
JB
75262003-05-25 Juanma Barranquero <lektu@terra.es>
7527
7528 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7529 (Fwindow_scroll_bars): Fix typo in docstring.
7530
0416870b
KS
75312003-05-24 Kim F. Storm <storm@cua.dk>
7532
7533 The following changes serve several purposes:
7534
7535 1) Swap the position of fringes and display margins in windows, i.e.
7536 the fringes are now displayed between the margins and the text area
7537 (by default).
7538
7539 2) Allow fringe and scroll bar parameters to be set per-buffer and
7540 per-window (like display margins). Such settings are now stored
7541 in window configurations, preserved when frames are resized, and
9018a88e 7542 copied when windows are split vertically or horizontally.
0416870b
KS
7543 Several bugs related to display margins have been fixed.
7544
7545 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7546
0416870b
KS
7547 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7548 rather than FRAME_WIDTH (FRAME_FONT (f)).
7549
7550 5) Introduce a consistent naming of variables, members and macros
7551 depending on whether their value is measured in pixels or in
7552 canonical columns/lines. Pixel dimensions are named *_width and
7553 *_height, while canonical columns/lines are named *_cols and
7554 *_lines. Pixel positions are named *_x and *_y, while column/line
7555 positions are named *_col and *_line.
7556
7557 6) Consolidate more of the X, W32, and MAC gui code by moving
7558 common data into struct frame, and generalize it for the non-gui
7559 case by using suitable defaults.
7560
7561 7) Cleanup and consolidate the macros controlling frame and window
7562 layout into frame.h and window.h, and generalize the use of the
7563 various window_box_* functions (enhanced to handle the new fringe
7564 position and the per-window fringe and scroll bar settings).
7565
7566 * frame.h (struct frame): Rename members height to text_lines,
7567 width to text_cols, window_height to total_lines, window_width to
7568 total_cols, new_height to new_text_lines, new_width to
7569 new_text_cols. All uses changed.
7570 (struct frame): New members which consolidate common members of
7571 x_output, w32_output, and mac_output structures: left_pos,
7572 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7573 win_gravity, size_hint_flags, border_width, internal_border_width,
7574 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7575 want_fullscreen. All uses changed.
7576 (struct frame): New member column_width contaning the canonical
7577 column width, analogue to line_height. All uses changed.
7578 (struct frame): Rename members scroll_bar_pixel_width to
7579 config_scroll_bar_width, and scroll_bar_cols to
7580 config_scroll_bar_cols. All uses changed.
7581 (struct frame): New member scroll_bar_actual_width which
7582 consolidates and renames the vertical_scroll_bar_extra member of
7583 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7584 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7585 from x/w32/macterm.h files. All uses changed. Also change code
7586 which referred to f->output_data...->pixel_height.
cab27d04 7587 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7588 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7589 which referred to f->output_data...->pixel_width.
cab27d04 7590 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7591 Also change code which referred to f->height.
cab27d04 7592 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7593 Also change code which referred to f->width.
7594 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7595 to update new_text_lines and new_text_cols members directly.
cab27d04 7596 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7597 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7598 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7599 FRAME_SCROLL_BAR_COLS. All uses changed.
7600 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7601 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7602 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7603 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7604 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7605 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7606 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7607 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7608 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7609 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7610 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7611 Unconditionally return line_height member (it now has proper value
7612 also for non-window frames).
7613 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7614 return new column_width member (rather than the default font width).
7615 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7616 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7617 from x/w32/macterm.h files. Unconditionally return corresponding
7618 member of frame structure (they now have proper values also for
7619 non-window frames).
cab27d04 7620 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7621 Calculate return value from left and right widths.
7622 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7623 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7624 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7625 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7626 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7627 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7628 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7629 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7630 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7631 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7632 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7633 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7634 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7635 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7636 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7637 consolidated from x/mac/w32term.h.
cab27d04 7638 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7639 consolidated from x/mac/w32term.h.
cab27d04 7640 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7641 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7642 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7643 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7644
7645 * window.h (struct window): Rename members left to left_col,
7646 top to top_line, height to total_lines, width to total_cols,
7647 left_margin_width to left_margin_cols, right_margin_width to
7648 right_margin_cols, orig_height to orig_total_lines, orig_top to
7649 orig_top_line. All uses changed.
7650 (struct window): New members left_fringe_width, right_fringe_width,
7651 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7652 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7653 New macros primarily used to simplify other macros.
7654 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7655 referred to XINT (w->width).
7656 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7657 referred to XINT (w->height).
7658 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7659 referred to XINT (w->width) * canon_x_unit.
7660 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7661 referred to XINT (w->height) * canon_y_unit.
7662 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7663 referred to XINT (w->left).
cab27d04 7664 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7665 all uses and code that referred to XINT (w->left) + XINT (w->width).
7666 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7667 referred to XINT (w->top).
7668 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7669 referred to XINT (w->top) + XINT (w->height).
7670 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7671 referred to XINT (w->left) * canon_x_unit.
7672 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7673 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7674 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7675 referred to XINT (w->top) * canon_y_unit.
7676 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7677 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7678 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7679 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7680 All uses changed.
cab27d04 7681 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7682 All uses changed.
cab27d04 7683 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7684 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7685 Do not exclude left fringe width.
cab27d04 7686 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7687 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7688 Do not exclude fringe widths.
7689 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7690 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7691 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7692 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7693 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7694 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7695 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7696 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7697 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7698 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7699 New macros. Change code which referenced corresponding
7700 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7701 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7702 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7703 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7704 allow per-window scroll-bar settings.
7705 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7706 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7707 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7708 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7709 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7710 FRAME_SCROLL_BAR_WIDTH.
7711 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7712 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7713 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7714 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7715 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7716 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7717 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7718 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7719 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7720 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7721 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7722 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7723 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7724 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7725 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7726 (window_from_coordinates): Update prototype.
7727 (Fset_window_buffer): Update EXFUN.
7728 (set_window_buffer): Update prototype.
9018a88e 7729
0416870b 7730 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7731 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7732 changed.
7733 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7734 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7735 internal_border_width is now set to 0 for non-window frames.
7736 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7737 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7738 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7739 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7740 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7741 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7742 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7743 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7744 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7745 Move to window.h and renamed [see window.h changes].
0416870b
KS
7746 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7747 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7748 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7749 Use WINDOW_TOTAL_LINES.
0416870b
KS
7750 (frame_update_line_height): Remove prototype.
7751
7752 * buffer.h (struct buffer): Rename members measured in columns:
7753 left_margin_width to left_margin_cols, right_margin_width to
7754 right_margin_cols. All uses changed.
7755 New members left_fringe_width, right_fringe_width,
7756 fringes_outside_margins for per-buffer fringe settings.
7757 New members scroll_bar_width and vertical_scroll_bar_type for
7758 per-buffer scroll bar settings.
7759
7760 * buffer.c (init_buffer_once): Set buffer_defaults and
7761 buffer_local_flags for new buffer-local variables
7762 left_fringe_width, right_fringe_width, fringes_outside_margins,
7763 scroll_bar_width, and vertical_scroll_bar_type.
7764 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7765 default-* variables for them.
7766
7767 * dispnew.c: Make (many) trivial substitutions for renamed and
7768 new macros in dispextern.h, frame.h and window.h.
7769 (mode_line_string): No need to adjust width for mode lines, as it
7770 is already adjusted by the caller.
7771 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7772
0416870b
KS
7773 * frame.c: Make (many) trivial substitutions for renamed and
7774 new macros in dispextern.h, frame.h and window.h.
7775 (make_frame): Initialize left_fringe_width, right_fringe_width,
7776 fringe_cols, scroll_bar_actual_width, border_width,
7777 internal_border_width, column_width, line_height, x_pixels_diff,
7778 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7779 members with values suitable for a non-window frames.
7780
7781 * gtkutil.c: Make (many) trivial substitutions for renamed and
7782 new macros in dispextern.h, frame.h and window.h.
9018a88e 7783
0416870b
KS
7784 * indent.c: Make (few) trivial substitutions for renamed and
7785 new macros in dispextern.h, frame.h and window.h.
7786
7787 * keyboard.c: Make (many) trivial substitutions for renamed and
7788 new macros in dispextern.h, frame.h and window.h.
7789 (make_lispy_event): Use window positions returned from
7790 window_from_coordinates when constructing the lisp event for
7791 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7792 (incorrect) values locally.
7793 (make_lispy_movement): Use window positions returned from
7794 window_from_coordinates when constructing the lisp event, rather
7795 than calculating (incorrect) values locally.
7796
7797 * scroll.c: Make (some) trivial substitutions for renamed and
7798 new macros in dispextern.h, frame.h and window.h.
7799
7800 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7801 scroll-bars.
7802
7803 * sysdep.c: Make (few) trivial substitutions for renamed and
7804 new macros in dispextern.h, frame.h and window.h.
7805
7806 * term.c: Make (some) trivial substitutions for renamed and
7807 new macros in dispextern.h, frame.h and window.h.
7808
7809 * widget.c: Make (few) trivial substitutions for renamed and
7810 new macros in dispextern.h, frame.h and window.h.
7811
7812 * window.c: Make (many) trivial substitutions for renamed and
7813 new macros in dispextern.h, frame.h and window.h.
7814 (make_window): Initialize new members
7815 left_margin_cols, right_margin_cols, left_fringe_width,
7816 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7817 and vertical_scroll_bar_type.
cab27d04 7818 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7819 and per-window fringes and scroll-bars.
0416870b 7820 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7821 frame's internal_border_width (the effect normally negible since
0416870b
KS
7822 the internal_border_width is typically 0 or 1 pixel, but very
7823 noticeable for an internal_border_width of e.g. 25 pixels).
7824 Upon successful return (other than ON_NOTHING), the coordinates
7825 are now always properly converted to window relative for the
7826 given display element.
7827 (window_from_coordinates): Add new parameters wx and wy to
7828 return the window relative x and y position in the returned
7829 window and part. A null arg means, don't return the position.
7830 All callers changed.
7831 (adjust_window_margins): New function which may reduce the width
7832 of the display margins if a window's text area is too small after
7833 resizing or splitting windows.
7834 (size_window): Fix bug that did not account for display margin
7835 widths when checking the minimum width of a window; use
7836 adjust_window_margins.
7837 (set_window_buffer): Call Fset_window_fringes and
7838 Fset_window_scroll_bars to setup per-window elements.
7839 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7840 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7841 (e.g. after splitting a window or resizing the frame).
7842 All callers changed.
0416870b
KS
7843 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7844 (Fsplit_window): Duplicate original window's display margin,
7845 fringe, and scroll-bar settings; then call Fset_window_buffer with
7846 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7847 window to only preserve the display margins in one of the windows.
c4b8aebc 7848 When splitting horizontally, call adjust_window_margins on both
0416870b 7849 windows to ensure that the text area of the new windows is non too
f9711de4 7850 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7851 width of the split window was less than the width of the display
7852 margins.
cab27d04 7853 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7854 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7855 Fix bug that caused vertical separator to be subtracted also on
7856 window frames. Fix another bug that did not reduce the returned
7857 value by the columns used for display margins.
7858 (window_scroll_line_based): Fix bug related to scrolling too much
7859 when display margins are present (implicitly fixed by the fix to
7860 window_box_text_cols).
7861 (scroll_left, scroll_right): Fix bug related to scrolling too far
7862 by default when display margins are present (implicitly fixed by
7863 the fix to window_box_text_cols).
7864 (struct saved_window): Rename members left to left_col, top to
7865 top_line, width to total_cols, height to total_lines, orig_top to
7866 orig_top_line, orig_height to orig_total_lines. All uses changed.
7867 New members left_margin_cols, right_margin_cols,
7868 left_fringe_width, right_fringe_width, fringes_outside_margins,
7869 scroll_bar_width, and vertical_scroll_bar_type for saving
7870 per-window display elements.
7871 (Fset_window_configuration): Restore display margins, fringes,
7872 and scroll bar settings. This fixes a bug which caused display
7873 margins to be discarded when saving and restoring a window
7874 configuration.
7875 (save_window_save): Save display margins, fringes, and scroll bar
7876 settings. This fixes a bug which caused display margins to be
7877 discarded when saving and restoring a window configuration.
7878 (Fset_window_margins): Do nothing if display margins are not
7879 really changed. Otherwise, call adjust_window_margins to ensure
7880 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7881 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7882 the width of the window.
7883 (Fset_window_fringes): New defun to allow user to specifically set
7884 this window's fringe widths and position vs. display margins.
cab27d04 7885 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7886 (Fset_window_scroll_bars): New defun to allow user to specifically
7887 set this window's scroll bar width and position.
7888 (Fwindow_scroll_bars): New defun to return window's actual scroll
7889 bar settings.
7890 (compare_window_configurations): Also compare display margins,
7891 fringes, and scroll bar settings.
7892 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7893
7894 * xdisp.c: Make (many) trivial substitutions for renamed and
7895 new macros in dispextern.h, frame.h and window.h.
7896 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7897 and new fringe vs. display margin position. Note that returned
0416870b
KS
7898 value is no longer guaranteed to be a whole multiple of the frame
7899 column width, since per-window fringes may now be any width.
7900 (window_box_left_offset): New function like window_box_left, but
7901 value is relative to left border of window (rather than frame).
7902 (window_box_right_offset): New function like window_box_right,
7903 but value is relative to left border of window.
7904 (window_box_left): Adapt to per-window fringes and scroll bars,
7905 and new fringe vs. display margin position. Simplify by using
7906 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7907 (window_box): Allow null args for unnecessary return values;
7908 change/simplify relevant callers.
7909 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7910 and new fringe vs. display margin position.
7911 Use window_box_left_offset and window_box_right_offset
0416870b 7912 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7913 scroll bars, and new fringe vs. display margin position.
7914 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7915 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7916 fringe vs. display margin position.
7917 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7918 (redisplay_window): Adapt to per-window scroll bars.
7919 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7920 bars, and new fringe vs. display margin position.
7921 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7922 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7923 bars, and new fringe vs. display margin position. Fix bug which
7924 increased total width of full_width rows by width of scroll bars
7925 although window's total width already includes that.
7926 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7927 (expose_area): Simplify using window_box_left_offset.
7928 (x_draw_vertical_border): Handle per-window scroll bar settings,
7929 mixing windows with left, right and no scroll bars.
7930
7931 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7932 where it's used in x_list_fonts (for clarity).
7933 (frame_update_line_height): Remove unused function; functionality
7934 is now done directly when setting the default font in x_set_font.
7935
7936 * xfns.c: Make (many) trivial substitutions for renamed and
7937 new macros in dispextern.h, frame.h and window.h.
7938
7939 * xmenu.c: Make (some) trivial substitutions for renamed and
7940 new macros in dispextern.h, frame.h and window.h.
7941
7942 * xterm.h (struct x_output): Move members left_pos, top_pos,
7943 border_width, pixel_height, pixel_width, line_height,
7944 internal_border_width, vertical_scroll_bar_extra,
7945 left_fringe_width, right_fringe_width, fringe_cols,
7946 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7947 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7948 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7949 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7950 (PIXEL_WIDTH, PIXEL_HEIGHT)
7951 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7952 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7953 frame.h and renamed [see frame.h changes].
7954 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7955 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7956 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7957 and renamed [see frame.h changes].
9018a88e 7958
0416870b
KS
7959 * xterm.c: Make (several) trivial substitutions for renamed and
7960 new macros in dispextern.h, frame.h and window.h.
cab27d04 7961 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7962 (scroll_run): Adapt to new fringe position.
7963 (glyph_rect): Use window coordinates returned from
7964 window_from_coordinates rather than frame_to_window_pixel_xy.
7965 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7966 scroll-bars.
7967 (handle_one_xevent): Simplify a USE_GTK conditional.
7968 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7969 (fringes are now inside margins, i.e. always in the clipping area).
7970 All callers changed.
7971 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7972 directly, then call compute_fringe_widths. Don't call
7973 frame_update_line_height.
7974
7975 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7976 border_width, pixel_height, pixel_width, line_height,
7977 internal_border_width, vertical_scroll_bar_extra,
7978 left_fringe_width, right_fringe_width, fringe_cols,
7979 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7980 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7981 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7982 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7983 (PIXEL_WIDTH, PIXEL_HEIGHT)
7984 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7985 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7986 frame.h and renamed [see frame.h changes].
7987 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7988 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7989 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7990 and renamed [see frame.h changes].
9018a88e 7991
0416870b
KS
7992 * w32term.c: Make (several) trivial substitutions for renamed and
7993 new macros in dispextern.h, frame.h and window.h.
cab27d04 7994 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7995 (glyph_rect): Use window coordinates returned from
7996 window_from_coordinates rather than frame_to_window_pixel_xy.
7997 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7998 scroll-bars.
7999 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8000 (fringes are now inside margins, i.e. always in the clipping area).
8001 All callers changed.
8002 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8003 directly, then call compute_fringe_widths. Don't call
8004 frame_update_line_height.
8005
8006 * w32console.c: Make (few) trivial substitutions for renamed and
8007 new macros in dispextern.h, frame.h and window.h.
8008
8009 * w32fns.c: Make (many) trivial substitutions for renamed and
8010 new macros in dispextern.h, frame.h and window.h.
8011
8012 * w32menu.c: Make (few) trivial substitutions for renamed and
8013 new macros in dispextern.h, frame.h and window.h.
8014
8015 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8016 border_width, pixel_height, pixel_width, line_height,
8017 internal_border_width, vertical_scroll_bar_extra,
8018 left_fringe_width, right_fringe_width, fringe_cols,
8019 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8020 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8021 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8022 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8023 (PIXEL_WIDTH, PIXEL_HEIGHT)
8024 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8025 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8026 frame.h and renamed [see frame.h changes].
8027 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8028 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8029 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8030 and renamed [see frame.h changes].
9018a88e 8031
0416870b
KS
8032 * macterm.c: Make (several) trivial substitutions for renamed and
8033 new macros in dispextern.h, frame.h and window.h.
cab27d04 8034 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8035 (glyph_rect): Use window coordinates returned from
8036 window_from_coordinates rather than frame_to_window_pixel_xy.
8037 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8038 scroll-bars.
8039 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8040 (fringes are now inside margins, i.e. always in the clipping area).
8041 All callers changed.
8042 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8043 directly, then call compute_fringe_widths. Don't call
8044 frame_update_line_height.
8045
8046 * macfns.c: Make (several) trivial substitutions for renamed and
8047 new macros in dispextern.h, frame.h and window.h.
9018a88e 8048 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8049
8050 * macmenu.c: Make (few) trivial substitutions for renamed and
8051 new macros in dispextern.h, frame.h and window.h.
8052
8053 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8054 and line_height, and use corresponding new members in struct
8055 frame. All uses changed.
8056 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8057 superseeded by corresponding macros in frame.h.
8058
8059 * msdos.c: Make (several) trivial substitutions for renamed and
8060 new macros in dispextern.h, frame.h and window.h.
8061 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8062 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8063 (internal_terminal_init): No need to initialize line_height here;
8064 it now defaults to 1.
8065
9018a88e
SM
80662003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8067
8068 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8069 dropping `down' events.
8070
016bd3c0
AS
80712003-05-24 Andreas Schwab <schwab@suse.de>
8072
8073 * coding.c (find_safe_codings): Fix last change.
8074
4dacadcc
TTN
80752003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8076
8077 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8078
319830ce
SM
80792003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8080
9018a88e
SM
8081 * xdisp.c (display_mode_element): Increase max depth.
8082 Simplify the error handling code. Use a different error string
8083 for the case where we hit the depth limit.
8084
319830ce
SM
8085 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8086
8087 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8088
80892003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8090
8091 * intervals.c (get_local_map): Don't get char-property of previous
8092 point any more: get_pos_property already does it and better.
8093
c67de8ba
DL
80942003-05-21 Dave Love <fx@gnu.org>
8095
8096 [Merged from unicode branch.]
8097
8098 * xfns.c (x_window, x_window): Use use_xim.
8099
8100 * xterm.c (use_xim): Initialize.
8101 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8102 (x_term_init): Maybe set use_xim.
8103
8104 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8105
edd3ff1d
JR
81062003-05-21 Jason Rumney <jasonr@gnu.org>
8107
8108 * unexw32.c (_start): Remove _fmode initialization.
8109
8110 * emacs.c (main) [WINDOWSNT]: Move it here.
8111
463f55ee
DL
81122003-05-20 Dave Love <fx@gnu.org>
8113
8114 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8115
af253914
RS
81162003-05-19 Richard M. Stallman <rms@gnu.org>
8117
8118 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8119 as value for QCfont attribute.
8120 (realize_default_face): lface should already exist; crash if not.
8121 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8122
8123 * frame.c (Fignore_event): Doc fix.
8124
1d211019
KH
81252003-05-19 Kenichi Handa <handa@m17n.org>
8126
8127 * coding.c (decode_coding_string): Handle post-read-conversion
8128 even if the coding doesn't require decoding.
8129
4dd68254
RS
81302003-05-18 Richard M. Stallman <rms@gnu.org>
8131
8132 * callproc.c (Fcall_process_region): Doc fix.
8133
14d87dc9
SM
81342003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8135
deca5d96
SM
8136 * lread.c (Fload): Print a message if package is obsolete.
8137
14d87dc9
SM
8138 * window.c (Fselect_window): Add optional `norecord' arg.
8139 (select_window_1): Fold into Fselect_window.
8140 (select_window_norecord): New function.
8141 (temp_output_buffer_show): Use it. Preserve current buffer.
8142
8143 * window.h (Fselect_window): Update declaration.
8144
8145 * window.c (delete_window, Fother_window, Fset_window_configuration):
8146 * minibuf.c (read_minibuf):
8147 * macterm.c (x_new_focus_frame):
8148 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8149 * callint.c (Fcall_interactively):
8150 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8151
8152 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8153
78f52183
DK
81542003-05-17 David Kastrup <dak@gnu.org>
8155
8156 * process.c (read_process_output): Back out change from 2003-03-09.
8157
14d87dc9
SM
81582003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8159
8160 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8161
8162 * textprop.c (text_property_stickiness): New arg `buffer'.
8163
8164 * intervals.h (text_property_stickiness): New arg `buffer'.
8165 (get_pos_property): Declare.
8166
8167 * intervals.c (get_local_map): Use get_pos_property, to obey
8168 stickiness and empty overlays.
8169 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8170 (merge_properties, intervals_equal, merge_properties_sticky):
8171 Use XCAR, XCDR.
8172 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8173
1fd1cc2f
RS
81742003-05-17 Richard M. Stallman <rms@gnu.org>
8175
4f9f637a
RS
8176 * minibuf.c (read_minibuf): If buffer is empty, record the default
8177 in the history.
8178 (Fminibuffer_complete_word): When deleting the overlap, take account
8179 of its real position.
8180
8181 * fns.c (map_char_table): Fix previous change.
8182
1fd1cc2f
RS
8183 * syntax.c (find_defun_start):
8184 When open_paren_in_column_0_is_defun_start,
8185 return beginning of buffer.
8186
8187 * lisp.h (map_char_table): Declare added arg.
8188
8189 * fns.c (map_char_table): New arg TABLE gets the master table.
8190 All calls changed.
8191 Process default and inheritance, resorting to Faref if necessary.
8192
8193 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8194 (Faccessible_keymaps): Pass new arg to map_char_table.
8195
8196 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8197
8198 * casetab.c (set_case_table): Pass new arg to map_char_table.
8199
8200 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8201
8202 * lisp.h (specbinding_func): New typedef.
8203 (struct specbinding): Use specbinding_func, to put the `volatile'
8204 in the right place.
8205
8206 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8207 to avoid GCC warning.
14d87dc9 8208
b6189c3b 82092003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8210
14d87dc9 8211 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8212
35fb885d
SM
82132003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8214
8215 * keyboard.c (apply_modifiers): Don't fill the other cache.
8216
9a274fbd
SM
82172003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8218
c55b5fad
SM
8219 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8220
9a274fbd
SM
8221 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8222 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8223 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8224 (Fset_window_configuration, Fcurrent_window_configuration)
8225 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8226 (Fpos_visible_in_window_p, mark_window_cursors_off)
8227 (window_internal_height, window_internal_width, Frecenter)
8228 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8229 (replace_buffer_in_all_windows, init_window_once, init_window)
8230 (syms_of_window, keys_of_window): Move from lisp.h.
8231 * lisp.h: Move window.c declarations to window.h.
8232
8233 * bytecode.c: Include window.h.
8234 * emacs.c: Include window.h.
8235
14d87dc9 8236 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8237 (keyremap): Add `parent' field.
8238 (keyremap_step): Use it. Remove `parent' argument.
8239 (read_key_sequence): Setup and use the new `parent' field.
8240
fd93e331
SM
82412003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8242
8243 * keyboard.c (adjust_point_for_property): Ensure termination.
8244
1c4001a1
SM
82452003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8246
8247 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8248 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8249 duplicated handling of function-key-map and key-translation-map
8250 in read_key_sequence.
8251 (read_key_sequence): Use them.
8252
8253 * keyboard.c (adjust_point_for_property): Try harder to move point
8254 to the non-sticky end of an invisible property.
8255
8256 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8257 property intangible as well.
8258
780379b1
AS
82592003-05-10 Andreas Schwab <schwab@suse.de>
8260
8261 * xmenu.c (single_menu_item): Change last parameter to void* to
8262 avoid warning.
8263
ca2de342
RS
82642003-05-09 Richard M. Stallman <rms@gnu.org>
8265
8266 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8267 Bind Qinhibit_modification_hooks to t so there will be no GC.
8268 Rename local `tem' to `save_deactivate_mark'.
8269
8270 * eval.c (specpdl_ptr): Declare volatile.
8271 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8272 before doing the work of unbinding it.
8273
8274 * lisp.h (struct specbinding): Declare elements volatile.
8275 (specpdl_ptr): Declare volatile.
8276
8277 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8278
8279 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8280 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8281
347003be
DL
82822003-05-08 Dave Love <fx@gnu.org>
8283
8284 * coding.c (Vlast_coding_system_used): Doc fix.
8285
5adcec23
JR
82862003-05-07 Jason Rumney <jasonr@gnu.org>
8287
8288 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8289 when system does not support them.
8290
5fe3b8a4
SM
82912003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8292
8293 * fileio.c (Qwrite_region_annotate_functions): New var.
8294 (build_annotations): Use it to process the global part of the hook.
8295 (syms_of_fileio): Init and staticpro it.
8296
8297 * keyboard.c (safe_run_hooks_error): Display a message instead of
8298 silently ignoring the error.
8299
83002003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8301
8302 * keyboard.c (input_available_signal): Mark static.
8303 (menu_bar_items): Use map_keymap.
8304 (menu_bar_one_keymap): Remove.
8305 (menu_bar_item): Adjust arglist (for use in map_keymap).
8306 Properly hide a second binding when not both are keymaps.
8307
8308 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8309 (single_keymap_panes): Use it and map_keymap.
8310 (single_menu_item): Use skp as well.
8311
8312 * keymap.h (map_keymap_function_t): New type.
8313 (map_keymap): Declare.
8314
8315 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8316 (map_keymap_call, Fmap_keymap): New functions.
8317 (syms_of_keymap): Defsubr map-keymap.
8318
4b1b4443
JD
83192003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8320
8321 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8322 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8323 ..._with_mnemonic functions for menu items.
8324
1f816871
KH
83252003-05-01 Kenichi Handa <handa@m17n.org>
8326
8327 * coding.c (coding_system_accept_latin_extra_p): Delete this
8328 function.
8329 (find_safe_codings): Pay attention to
8330 the property tranlsation-table-for-encode of each codings.
8331 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8332
5ed6ba5b
SM
83332003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8334
8335 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8336
32c06229
SM
83372003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8338
8339 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8340
8341 * lisp.h (CHECK): Wrap args in parenthesis.
8342 (specbind): Fix doc: symbol = Qnil is not supported any more.
8343
8344 * bytecode.c (Fbyte_code) <unwind-protect>:
8345 Use Fprogn rather than 0 and Qnil.
8346
8347 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8348 `double', and `triple' modifiers as well.
8349
ed3c3314
RS
83502003-04-30 Richard M. Stallman <rms@gnu.org>
8351
8352 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8353
8354 * alloc.c (abort_on_gc): New variable.
8355 (Fgarbage_collect): Abort if abort_on_gc is set.
8356
8357 * lisp.h (abort_on_gc): Add decl.
8358
8359 * eval.c (Fsignal): Clear abort_on_gc.
8360
8361 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8362 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8363
8364 * xdisp.c (move_it_vertically_backward): Do the final big else
8365 even if nlines is 0.
8366
8367 * xdisp.c (redisplay_internal): Finish the per-frame loop
8368 even if redisplay is suspended by input.
8369
0b325c12
AC
83702003-04-24 Andrew Choi <akochoi@shaw.ca>
8371
8372 * macterm.c (x_list_fonts): Return all fonts that match if
8373 maxnames = -1.
8374
4e837cd0
KH
83752003-04-25 Kenichi Handa <handa@m17n.org>
8376
8377 * syntax.c (skip_chars): Fix previous change.
8378
9af7511a
KH
83792003-04-24 Kenichi Handa <handa@m17n.org>
8380
8381 * syntax.c (skip_chars): Make the code faster by using the common
8382 technique of *p, *stop, and *endp.
8383
e3b2c21f
JD
83842003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8385
8386 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8387 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8388 being updated.
8389
32c06229
SM
83902003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8391
8392 * eval.c (Fapply): Undo last change and add a comment about why.
8393
c6464167
MB
83942003-04-18 Miles Bader <miles@gnu.org>
8395
8396 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8397 pickier PARSE_MULTIBYTE_SEQ.
8398
e509f168
SM
83992003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8400
8401 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8402 Use XCDR, XCAR, CONSP.
8403 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8404 (Fapply): Remove unnecessary GCPRO.
8405
8406 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8407
8408 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8409
8410 * buffer.h: Don't hardcode BEG==1.
8411
8412 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8413
5ceea398
RS
84142003-04-16 Richard M. Stallman <rms@gnu.org>
8415
8416 * xdisp.c (try_window, try_window_reusing_current_matrix):
8417 When at end of window, set window_end_pos to Z-ZV.
8418
8419 * buffer.c (Foverlay_recenter): Doc fix.
8420
e509f168
SM
84212003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8422
8423 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8424
d243e605
AC
84252003-04-14 Andrew Choi <akochoi@shaw.ca>
8426
8427 * macterm.c (mac_check_for_quit_char): Don't check more often than
8428 once a second.
8429
6901b111
SM
84302003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8431
8432 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8433 specially, so that they can't hide an implicit switch-frame event.
8434 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8435 (head_table): Use switch-frame as event_kind for select-window.
8436 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8437
8438 * editfns.c (Fformat): Lisp_Object/int mixup.
8439 (format2): Remove unused var numargs.
8440
e301806f 84412003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8442
6901b111 8443 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8444 (Qafter_insert_file_set_coding): New variable.
8445 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8446 for after-insert-file-adjust-coding-function.
8447 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8448 instead of Vafter_insert_file_adjust_coding_function.
8449
38914424
KH
84502003-04-11 Kenichi Handa <handa@m17n.org>
8451
8452 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8453
8454 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8455 string. Callers changed.
8456
84572003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8458
6901b111 8459 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8460 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8461 (Finsert_file_contents):
8462 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8463 decode-format.
8464
f979dc05
JD
84652003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8466
8467 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8468 get GtkAdjustment as widget now is a GtkRange.
8469
8470 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8471 GtkRange to avoid memory leak.
8472
f8c6b4c2 84732003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8474
50ebc53d
KH
8475 * xfaces.c (Vface_font_rescale_alist): New variable.
8476 (struct font_name): New member rescale_ratio.
8477 (font_rescale_ratio): New function.
6901b111 8478 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8479 (better_font_p): On comparing point sized, pay attention to
8480 recale_ratio member of fonts.
8481 (build_scalable_font_name): Reflect font->rescale_ratio in the
8482 font name.
6901b111 8483 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8484
cb98871c
KH
8485 * lread.c (read1): Before calling index, check if the 2nd
8486 arguemnt is in ASCII range.
8487
4773b8ca
RS
84882003-04-08 Richard M. Stallman <rms@gnu.org>
8489
b0ada147
RS
8490 * fileio.c (Ffile_symlink_p): Doc fix.
8491
8492 * editfns.c (Fformat): Translate positions of text properties
8493 in the format string to apply them to the result.
8494
4773b8ca
RS
8495 * fileio.c (Finsert_file_contents): Doc fix.
8496 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8497
84982003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8499
4773b8ca
RS
8500 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8501
e8f25745 85022003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8503
e8f25745
ST
8504 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8505 that self-contained application finds libexec files.
8506
f8c6b4c2 85072003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8508
6901b111
SM
8509 * coding.c (code_convert_region_unwind):
8510 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8511 (code_convert_region): If post-read-conversion function changed
8512 the value of last-coding-sytem, keep the new value in
8513 coding->symbol so that it won't be overridden.
8514 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8515 (coding_system_accept_latin_extra_p): New function.
8516 (find_safe_codings): Pay attention to characters registered in
8517 latin-extra-code-table.
2310d84c 8518
39c9a034
TTN
85192003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8520
8521 * Makefile.in (md5.o): Add missing dependency info.
8522
eb67c5d6
RS
85232003-04-06 Richard M. Stallman <rms@gnu.org>
8524
8525 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8526
8527 * marker.c (verify_bytepos): New function.
8528
8529 * intervals.c (set_intervals_multibyte_1): When becoming
8530 multibyte, adjust right and left child sizes to a whole set of
8531 characters. If an interval gets zero total-length, delete it.
8532 If an interval consists of just its children, delete one of them.
8533
8534 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8535 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8536
eb67c5d6
RS
8537 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8538 All calls deleted.
8539 (lisp_malloc): Do the work here directly.
8540
b1f81fc5
JB
85412003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8542
8543 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8544 char tables.
8545
85462003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8547
8548 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8549 destructively change "%S" to "%s".
8550
774666fb
MB
85512003-04-03 Miles Bader <miles@gnu.org>
8552
8553 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8554 always set.
8555
19c37f01
DL
85562003-04-01 Dave Love <fx@gnu.org>
8557
8558 * xfns.c (xpm_lookup_color): Grok "opaque".
8559
2f4b24c3
AC
85602003-03-31 Andrew Choi <akochoi@shaw.ca>
8561
8562 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8563 parent window ID.
8564
8565 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8566
8567 * macterm.h (struct mac_output): Define x_pixels_diff and
8568 y_pixels_diff.
b1f81fc5 8569
9443fcf6
JB
85702003-03-31 Juanma Barranquero <lektu@terra.es>
8571
8572 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8573 blockinput.h and files included from it.
8574
e072891b
KS
85752003-03-31 Kim F. Storm <storm@cua.dk>
8576
8577 The following changes consolidates the common code related to
8578 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8579 files into frame.c.
9443fcf6 8580
e072891b
KS
8581 * frame.c: Include blockinput.h.
8582 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8583 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8584 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8585 related vars here.
8586 (struct frame_parm_table, frame_parms): New table for describing
8587 frame parameters and their associated Q-variable.
8588 The order of the parameters corresponds to the sequence of the
8589 frame_parm_handlers table in redisplay_interface.
8590 (x_fullscreen_move, x_set_frame_parameters)
8591 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8592 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8593 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8594 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8595 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8596 Generic functions for processing of frame parameters.
8597 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8598 (display_x_get_resource, x_get_resource_string): Functions for
8599 generic access to X resources.
8600 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8601 (x_default_parameter, Fx_parse_geometry): Functions for generic
8602 access to frame parameters.
6901b111
SM
8603 (x_figure_window_size): Generic calculation of frame size.
8604 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8605 (syms_of_frame): Intern and staticpro frame parameter variables.
8606 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8607 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8608
e072891b
KS
8609 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8610 parameter related vars defined in frame.c.
8611 (EMACS_CLASS): Define here.
8612 (enum FULLSCREEN_*): Define here.
8613 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8614 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8615 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8616 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8617 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8618 (x_set_visibility, x_set_autoraise, x_set_autolower)
8619 (x_set_unsplittable, x_set_vertical_scroll_bars)
8620 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8621 (x_figure_window_size): Add prototypes.
8622
8623 * dispextern.h (frame_parm_handler): New typedef.
8624 (struct redisplay_interface): New member frame_parm_handlers.
8625 (enum resource_types): Move declaration here.
8626 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8627 (x_default_parameter): Add prototypes.
8628
8629 * window.c: Remove extern decl for frame parameter vars.
8630 (change_window_heights): New generic function;
8631 replaces x_change_window_heights. All users changed.
8632
8633 * window.h (change_window_heights): Add prototype.
8634
8635 * xfaces.c: Remove extern decl for frame parameter vars.
8636
8637 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8638 (struct w32_display_info): Fix type of xrdb member.
8639 (enum FULLSCREEN_*): Remove.
8640 Remove prototypes for generic functions (in frame.h).
8641
8642 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8643 parameters now defined in frame.h and frame.c.
f63fd14e 8644 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8645 (enum x_frame_parms): Remove (bogus, unused enum).
8646 (check_x_display_info): Make non-static (for frame.c).
8647 (struct x_frame_parm_table, x_frame_parms): Remove.
8648 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8649 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8650 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8651 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8652 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8653 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8654 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8655 Remove. Use generic functions instead.
8656 (enum resource_types): Remove.
8657 (x_set_scroll_bar_default_width): New global function (for frame.c).
8658 (Fx_create_frame): Depend on x_figure_window_size to add space for
8659 toolbar and setup size_hint_flags.
8660 (x_frame_parm_handlers): New table for redisplay_interface.
8661 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8662
e072891b 8663 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8664 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8665 (x_redisplay_interface): Add x_frame_parm_handlers member.
8666
8667 * w32gui.h (XrmDatabase): New (dummy) typedef.
8668
8669 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8670 (struct w32_display_info): Fix type of xrdb member.
8671 (enum FULLSCREEN_*): Remove.
8672 (x_fullscreen_adjust): Remove prototype.
8673
8674 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8675 parameters now defined in frame.h and frame.c.
f63fd14e 8676 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8677 (enum x_frame_parms): Remove (bogus, unused enum).
8678 (check_x_display_info): Make non-static (for frame.c).
8679 (struct x_frame_parm_table, x_frame_parms): Remove.
8680 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8681 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8682 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8683 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8684 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8685 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8686 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8687 Remove. Use generic functions instead.
8688 (enum resource_types): Remove.
8689 (x_set_scroll_bar_default_width): New global function (for frame.c).
8690 (Fx_create_frame): Depend on x_figure_window_size to add space for
8691 toolbar and setup size_hint_flags.
8692 (w32_frame_parm_handlers): New table for redisplay_interface.
8693 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8694
e072891b
KS
8695 * w32term.c: Remove unnecessary extern declarations.
8696 (x_fullscreen_adjust): Remove. Use generic instead.
8697 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8698
8699 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8700
8701 * macgui.h (XrmDatabase): New (dummy) typedef.
8702
8703 * macterm.h (EMACS_CLASS): Remove.
8704 (struct mac_display_info): Add xrdb member.
8705 (struct mac_output): Add want_fullscreen member.
8706
8707 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8708 parameters now defined in frame.h and frame.c.
f63fd14e 8709 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8710 (check_x_display_info): Make non-static (for frame.c).
8711 (struct x_frame_parm_table, x_frame_parms): Remove.
8712 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8713 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8714 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8715 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8716 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8717 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8718 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8719 Remove. Use generic functions instead.
8720 (enum resource_types): Remove.
8721 (x_set_scroll_bar_default_width): New global function (for frame.c).
8722 (mac_frame_parm_handlers): New table for redisplay_interface.
8723 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8724
e072891b
KS
8725 * macterm.c: Remove unnecessary extern declarations.
8726 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8727
3e6a560b
KS
8728 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8729 included from it (atimer.h and systime.h).
8730
7b7b454e
AS
87312003-03-30 Andreas Schwab <schwab@suse.de>
8732
8733 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8734 parameters for shift_glyphs_for_insert.
8735
8736 * macterm.c (x_redisplay_interface): Add missing entry for
8737 draw_vertical_window_border.
8738
beb402de
KG
87392003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8740
8741 * fileio.c (Fexpand_file_name): In the no-handler case, after
8742 expanding, look again for a handler and invoke it. This is needed
8743 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8744 expansion produces "/user@host:/bar/../baz" which needs to be
8745 expanded again for the finame result "/user@host:/baz".
8746
b676f356
JD
87472003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8748
8749 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8750 of area to be redrawn for better performance.
8751
3c671a56
SM
87522003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8753
8754 * xterm.c (take_vertical_position_into_account): Remove.
8755 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8756 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8757 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8758 (x_set_toolkit_scroll_bar_thumb): Simplify.
8759 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8760 (XTread_socket): Remove unused var.
8761 (x_make_frame_invisible): Replace goto with else.
8762
8763 * xdisp.c (set_vertical_scroll_bar): New fun.
8764 (redisplay_window): Use it.
8765
84f2e615
RS
87662003-03-26 Richard M. Stallman <rms@gnu.org>
8767
8768 * xdisp.c (update_tool_bar): Recompute tool bar if
8769 update_mode_lines is set. Set w->update_mode_line
8770 only if the tool bar contents actually change.
8771 (update_menu_bar): Undo previous change.
8772
70b6104c
JD
87732003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8774
5fd6f727
JD
8775 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8776 (xg_frame_set_char_size): Calculate scroll bar width before frame
8777 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8778 (xg_separator_p): Check for all documented separator types.
8779 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8780 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8781
70b6104c
JD
8782 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8783 so tool bar gets updated.
8784
d9b36d19
SM
87852003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8786
8787 * data.c (store_symval_forwarding): Re-instate part of the code
8788 that was deleted with too much enthusiasm.
8789
87902003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8791
8792 * data.c (store_symval_forwarding): Delete special read-only
8793 hack for type == -1, since we now use ->constant instead.
8794 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8795
8796 * buffer.c (overlays_in): Declare static.
8797 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8798 `constant' field rather than the variable's `type' field.
8799
365fa1b3
AC
88002003-03-24 Andrew Choi <akochoi@shaw.ca>
8801
8802 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8803
8804 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8805
8806 * fns.c [MAC_OSX]: Do not redefine vector.
8807
8808 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8809
8810 * macgui.h: Remove definition of No_Cursor.
8811
d9b36d19 8812 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8813
8814 * xdisp.c: Define No_Cursor.
8815 (x_write_glyphs, notice_overwritten_cursor)
8816 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8817 (note_mouse_highlight): Remove Mac-specific code.
8818 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8819
c0bcce6f
JPW
88202003-03-24 John Paul Wallington <jpw@gnu.org>
8821
8822 * xdisp.c (redisplay_window): If mini window's buffer is not
8823 empty, then redisplay it like other windows.
8824
a526b96c
KS
88252003-03-23 Kim F. Storm <storm@cua.dk>
8826
8827 * w32term.c (w32_draw_window_cursor): Fix last change.
8828
37ab321e
KH
88292003-03-23 Kenichi Handa <handa@m17n.org>
8830
a526b96c
KS
8831 * alloc.c (make_string_from_bytes, make_specified_string):
8832 Add `const' for the arg CONTENTS.
37ab321e
KH
8833
8834 * lisp.h (make_string_from_bytes, make_specified_string):
8835 Prototypes adjusted.
8836
7863d625
JD
88372003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8838
a526b96c 8839 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8840
7863d625
JD
8841 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8842 (XG_SB_RANGE): New define.
8843
8844 * gtkutil.c (xg_fixed_handle_expose): New function.
8845 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8846 expose events.
8847 (xg_update_scrollbar_pos): Take two more arguments, left and width
8848 of scroll bar including borders.
8849 Clear left and right part outside scroll bar separately as some
8850 themes have bars that are not an even number of pixels.
d9b36d19 8851 Don't set reallocate_redraws, don't call
7863d625
JD
8852 gdk_window_process_all_updates.
8853 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8854 so no need to change it. Calculate size and value with XG_SB_RANGE.
8855
d9b36d19
SM
8856 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8857 Pass left and width of scroll bar including borders to
7863d625
JD
8858 xg_update_scrollbar_pos.
8859
af0ad939
TTN
88602003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8861
8862 * Makefile.in: Make sure space precedes end-of-line backslashes.
8863
b22139fd
KS
88642003-03-22 Kim F. Storm <storm@cua.dk>
8865
8866 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8867 Add generic versions here. Remove system specific versions
8868 defined elsewhere.
8869
8870 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8871 Add prototypes.
8872
6e6410cf
KS
8873 * xterm.h (STORE_NATIVE_RECT): New macro.
8874
5c9cc435
KS
88752003-03-21 Kim F. Storm <storm@cua.dk>
8876
00c64fab
SM
8877 * xdisp.c (get_glyph_string_clip_rect):
8878 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8879
8880 * dispextern.h (struct redisplay_interface): Add active_p
8881 argument to draw_window_cursor member. All uses changed.
8882
acd37560
KS
88832003-03-21 Kim F. Storm <storm@cua.dk>
8884
8885 The following changes consolidate code related to writing and
8886 inserting glyphs, exposing frame, the tool bar, the mouse face,
8887 the output cursor, and help echo from xterm.c, w32term.c and
8888 macterm.c into xdisp.c. It also generalizes the use of the
8889 window_part enum instead of using numeric values throughout.
af0ad939 8890
acd37560
KS
8891 * xdisp.c: Consolidate gui-independent code here.
8892 Include keymap.h.
8893 (Qhelp_echo): Import.
8894 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8895 (help_echo_string, help_echo_window, help_echo_object)
8896 (previous_help_echo_string, help_echo_pos): Declare here.
8897 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8898 (estimate_mode_line_height): Define here. Handle windowing
8899 systems directly (without using estimate_mode_line_height_hook).
8900 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8901 (update_window_cursor, update_cursor_in_window_tree)
8902 (fast_find_position, fast_find_string_pos)
8903 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8904 (expose_area, expose_line, expose_overlaps, expose_window)
8905 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8906 declared static as they are only used locally in xdisp.c.
8907 (draw_glyphs): Rename from x_draw_glyphs and make static.
8908 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8909 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8910 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8911 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8912 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8913 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8914 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8915 (note_mouse_highlight, x_clear_window_mouse_face)
8916 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8917 (x_intersect_rectangles): New generic functions for use by xdisp.c
8918 and GUI front-ends.
8919 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8920 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8921
8922 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8923 (NativeRectangle): Generic typedef for rectangle type.
8924 (enum window_part): Move here from window.c.
8925 (struct redisplay_interface): New members flush_display_optional,
8926 define_frame_cursor, clear_frame_area, draw_window_cursor,
8927 draw_vertical_window_border, shift_glyphs_for_insert.
8928 Rename member clear_mouse_face to clear_window_mouse_face.
8929 (estimate_mode_line_height_hook): Remove hook.
8930 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8931 (tool_bar_item_info): Remove prototype.
8932 (help_echo_string, help_echo_window, help_echo_object)
8933 (previous_help_echo_string, help_echo_pos)
8934 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8935 (x_stretch_cursor_p, output_cursor): Declare extern.
8936 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8937 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8938 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8939 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8940 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8941 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8942 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8943 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8944 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8945 Add prototypes.
8946 (mode_line_string, marginal_area_string): Fix prototypes.
8947
8948 * window.c (enum window_part): Move to dispextern.h.
8949 (coordinates_in_window): Use enum window_part member names
8950 instead of numbers to describe return value.
8951 (struct check_window_data): Change part member to window_part.
8952 (check_window_containing): Return window_part unaltered.
8953 (window_from_coordinates): Change part arg from int to enum
8954 window_part. Allow part arg to be null. All users changed.
8955
8956 * window.h (window_from_coordinates): Fix prototype.
8957
8958 * term.c (estimate_mode_line_height): Move to xdisp.c.
8959
8960 * keyboard.c (make_lispy_event): Use enum window_part.
8961
8962 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8963 window_part instead of int in arg list. Users changed.
8964
8965 * xterm.h (No_Cursor): Declare as None for X.
8966 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8967
acd37560
KS
8968 * xterm.c: Remove consolidated defines and code.
8969 (BETWEEN): Remove unused macro.
8970 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8971 (x_define_frame_cursor, x_clear_frame_area)
8972 (x_draw_window_cursor): New X-specific functions for RIF.
8973 (x_redisplay_interface): Add new members.
8974
8975 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8976
8977 * w32term.h (struct w32_output): Remove cross_cursor member.
8978
8979 * w32term.c: Remove consolidated defines and code.
8980 (BETWEEN): Remove unused macro.
8981 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8982 (w32_define_frame_cursor, w32_clear_frame_area)
8983 (w32_draw_window_cursor): New W32-specific functions for RIF.
8984 (w32_redisplay_interface): Add new members.
8985
a64387ee 8986 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8987 (XRectangle): Add X compatible rectangle type.
8988 (NativeRectangle): Declare as RECT for W32.
8989 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8990
8991 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8992
8993 * w32console.c: Remove consolidated defines and code.
af0ad939 8994
acd37560
KS
8995 * msdos.h (Display_Info): Add generic typedef.
8996
8997 * msdos.c: Remove consolidated defines and code.
8998 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8999
9000 * macterm.h (struct mac_output): Replace member cross_cursor by
9001 hand_cursor.
9002 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9003
9004 * macterm.c: Remove consolidated defines and code.
9005 (BETWEEN): Remove unused macro.
9006 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9007 (mac_define_frame_cursor, mac_clear_frame_area)
9008 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9009 (x_redisplay_interface): Add new members.
9010
9011 * macgui.h (No_Cursor): Define as 0 for Mac.
9012 (XRectangle): Add X compatible rectangle type.
9013 (NativeRectangle): Declare as Rect for Mac.
9014 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9015
204ccab1
KS
9016 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9017 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9018
9443fcf6 9019 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9020 included from it. Add dependency on keymap.h.
9021
9022 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9023
8ba01a70 90242003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9025
9026 * fileio.c (Fexpand_file_name): Fix previous change.
9027
8ba01a70 90282003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9029
9030 * fileio.c (Ffile_name_directory): Reconstruct file name by
9031 make_specified_string.
9032 (Ffile_name_nondirectory, Ffile_name_as_directory)
9033 (Fdirectory_file_name, Fexpand_file_name)
9034 (Fsubstitute_in_file_name): Likewise.
9035 (Fread_file_name): Compare decoded homedir with DIR and
9036 DEFAULT_FILENAME.
9037
9038 * alloc.c (make_specified_string): If NCHARS is negative, count
9039 the number of characters.
9040
19536747
JD
90412003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9042
de38ae5a
JD
9043 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9044 all widgets.
9045
19536747
JD
9046 * gtkutil.h: Removed xg_ignore_next_thumb.
9047
37ab321e 90482003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9049
9050 * coding.c (Vchar_coding_system_table): Remove this variable.
9051 (Vcoding_system_safe_chars): New variable.
9052 (intersection): Remove this function.
9053 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9054 all codings in SAFE_CODINGS.
00c64fab 9055 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9056 find_safe_codings. Get generic coding systems from
9057 Vcoding_system_safe_chars.
9058 (Fdefine_coding_system_internal): New function.
9059 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9060 Initialize and staticpro Vcoding_system_safe_chars.
9061
17097258
JD
90622003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9063
2a2071c3
JD
9064 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9065 equal old values before updating.
9066
17097258
JD
9067 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9068
9069 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9070
90712003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9072
9073 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9074 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9075 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9076 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9077 (xg_create_scroll_bar): Pass bar to button event callback.
9078 (xg_find_top_left_in_fixed): New function.
9079 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9080 whole scroll bar area. Get old position with
9081 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9082 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9083 dragging is in progress. Calculate whole as for Motif.
9084 Remove code that saved last values. Call gtk_range functions to
9085 set scroll bar sizes.
9086
9087 * gtkutil.h: Removed xg_ignore_next_thumb.
9088
8cb9dfbf
JB
90892003-03-17 Juanma Barranquero <lektu@terra.es>
9090
9091 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9092 and files included from it.
9093
00c64fab
SM
90942003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9095
9096 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9097 multiple occurrences of the same keymap under different prefixes.
9098 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9099
c45bb3b2
JR
91002003-03-16 Jason Rumney <jasonr@gnu.org>
9101
9102 * w32gui.h: Use HDC for Display.
9103
9104 * w32term.c (w32_encode_char): Prevent double-byte chars from
9105 crashing Emacs.
9106
9107 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9108 as binary.
9109
2a6d0874
JB
91102003-03-16 Juanma Barranquero <lektu@terra.es>
9111
9112 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9113
03eb5fab
KS
91142003-03-16 Kim F. Storm <storm@cua.dk>
9115
9116 The following changes consolidate some of the gui-independent
9117 parts of the processing and drawing of "glyph strings" from
9118 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9119
03eb5fab
KS
9120 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9121 21 bits (this reduces number of faces from 4M to 2M).
9122 Replace W32 specific w32_font_type member (2 bits) by generic
9123 font_type member (3 bits) for portability.
9124 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9125 (enum draw_glyphs_face): Define here.
9126 (struct glyph_string): Define here. Merge W32 and X versions.
9127 (struct redisplay_interface): New members per_char_metric,
9128 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9129 (VCENTER_BASELINE_OFFSET): Define here.
9130 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9131 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9132
9133 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9134 (dump_glyph_string): Moved here.
9135 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9136 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9137 (fill_composite_glyph_string, fill_glyph_string)
9138 (fill_image_glyph_string, fill_stretch_glyph_string)
9139 (left_overwritten, left_overwriting, right_overwritten)
9140 (right_overwriting, get_char_face_and_encoding)
9141 (set_glyph_string_background_width, compute_overhangs_and_x)
9142 (append_glyph, append_composite_glyph, produce_image_glyph)
9143 (take_vertical_position_into_account, append_stretch_glyph)
9144 (produce_stretch_glyph): New generic functions (based on X version).
9145 Call platform specific functions through rif.
9146 (INIT_GLYPH_STRING): New macro, hides W32 details.
9147 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9148 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9149 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9150 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9151 (notice_overwritten_cursor):
9152 Generic functions exported to platform modules. Users changed.
9153
9154 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9155 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9156 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9157 New macros for consolidated code.
2a6d0874 9158
03eb5fab
KS
9159 * xterm.c: Remove consolidated defines and code.
9160 (x_per_char_metric, x_encode_char)
9161 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9162 (x_redisplay_interface): Add new members.
9163
9164 * w32gui.h (Display): Add dummy typedef for consolidation.
9165 (XChar2b): Define alias for wchar_t for consolidation.
9166 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9167
9168 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9169 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9170 New macros for consolidation.
9171
fad49844 9172 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9173 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9174 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9175 (w32_per_char_metric): Change font_type arg to int for RIF.
9176 (w32_encode_char): Return int according to RIF requirements.
9177 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9178 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9179 x_get_glyph_overhangs.
9180 (w32_redisplay_interface): Add new members.
9181
9182 * macgui.h (XChar2b): Move typedef here for consolidation.
9183 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9184
9185 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9186 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9187 consolidation.
9188
9189 * macterm.c: Remove consolidated defines and code.
9190 (mac_per_char_metric): New function for RIF.
00c64fab 9191 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9192 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9193 (x_redisplay_interface): Add new members.
9194
00c64fab
SM
91952003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9196
9197 * keymap.c (Vmenu_events): New var.
9198 (syms_of_keymap): Initialize it.
9199 (where_is_internal): Check more carefully what is a menu event.
9200
225c7a07
RS
92012003-03-14 Richard M. Stallman <rms@gnu.org>
9202
9203 * lread.c (read1): After #!, exit loop on eof.
9204
cea9be54
JD
92052003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9206
9ea0e54d
JD
9207 * gtkutil.h: Add declaration for xg_frame_cleared.
9208
0cb35f4e
JD
9209 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9210
cea9be54
JD
9211 * gtkutil.c (struct xg_last_sb_pos): New structure.
9212 (handle_fixed_child): New function.
9213 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9214 and force a redraw on them.
9215 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9216 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9217 so we can avoid unneeded redraws.
9218 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9219 and force a redraw on the scroll bar.
9220 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9221 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9222 (xg_frame_cleared): New function.
cea9be54 9223
20b853f3
KH
92242003-03-13 Kenichi Handa <handa@m17n.org>
9225
9226 * coding.c (Fdetect_coding_region): Fix docstring.
9227 (Fdetect_coding_string): Fix docstring.
9228
7a555aff
AS
92292003-03-13 Andreas Schwab <schwab@suse.de>
9230
25cc0080
AS
9231 * gtkutil.c: Add prototype for create_menus.
9232
30225431
AS
9233 * data.c (long_to_cons): Fix type of top.
9234
9235 * xselect.c (selection_data_to_lisp_data): Use int instead of
9236 long for an integer of size 4.
9237
7a555aff 9238 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9239 (xg_tool_bar_help_callback): Likewise.
7a555aff 9240
a3e4741f
AS
92412003-03-12 Andreas Schwab <schwab@suse.de>
9242
9243 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9244
9668be7c
KS
92452003-03-12 Kim F. Storm <storm@cua.dk>
9246
03eb5fab 9247 The following changes consolidate the fringe handling from
9668be7c 9248 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9249
9668be7c
KS
9250 * xdisp.c: Consolidate fringe handling code here.
9251 (left_bits, right_bits, continued_bits, continuation_bits)
9252 (ov_bits, zv_bits): Define fringe bitmaps.
9253 (fringe_bitmaps): New array holding fringe bitmaps.
9254 (draw_fringe_bitmap): Draw a specific bitmap; call display
9255 specific drawing routine via rif->draw_fringe_bitmap.
9256 (draw_row_fringe_bitmaps): Generic replacement for
9257 x_draw_row_fringe_bitmaps; all callers changed.
9258 (compute_fringe_widths): Generic replacement for
9259 x_compute_fringe_widths; all callers changed.
9260
9261 * dispextern.h (enum fringe_bitmap_type): Define here.
9262 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9263 (fringe_bitmaps): Declare extern.
9264 (struct redisplay_interface): New member draw_fringe_bitmap.
9265 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9266
9267 * xterm.c: Remove generic fringe code.
9268 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9269 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9270
9271 * w32term.c: Remove generic fringe code.
9272 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9273 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9274
9668be7c
KS
9275 * macterm.c: Remove generic fringe code.
9276 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9277 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9278
00a88f32
SM
92792003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9280
9281 * print.c (Fprin1_to_string): Return unibyte string if possible.
9282
1d1de695
DK
92832003-03-09 David Kastrup <dak@gnu.org>
9284
9285 * process.c (read_process_output): We have allocated enough space
9286 for readmax and carryover, so actually use the alloted space.
9287
257f40f2
JD
92882003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9289
9290 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9291 toolkit scrollbar click.
9292
9293 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9294 for USE_GTK.
9295 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9296 also.
9297 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9298 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9299
78819ebb 9300 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9301
9302 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9303 (xg_tool_bar_item_expose_callback): New function.
9304 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9305 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9306 on the tool bar widget.
9307 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9308 to expose on the tool bar item widgets.
9309
15213141
JD
93102003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9311
26b74a0b 9312 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9313 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9314 deleted from the image cache).
9315
15213141
JD
9316 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9317 the event isn't for a frame (i.e. for dialogs).
9318
20b853f3 93192003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9320
9321 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9322 composition components reaches the limit, terminate composing.
9323 (COMPOSITION_OK): New macro.
00a88f32 9324 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9325 composition is found.
9326 (coding_restore_composition): Adjust the number of composition
9327 components if it is not sane.
9328
c9029fe5
JB
93292003-03-06 Juanma Barranquero <lektu@terra.es>
9330
9331 * w32term.h (struct w32_display_info): Add xrdb member to support
9332 passing resources via -xrm on Windows.
9333
9334 * w32term.c (w32_make_rdb): New function.
9335 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9336 struct. Delete leftover code.
9337
9338 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9339 for resources passed on the command line.
9340
9341 * w32reg.c (w32_get_rdb_resource): New function.
9342 (x_get_string_resource): Use it, so resources passed with -xrm
9343 supercede the ones in the registry.
9344
9d00001f
JD
93452003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9346
9347 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9348 instead of x_top_window_to_frame.
9349
ca2417b9
JD
93502003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9351
9352 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9353 when restarting Emacs.
9354
5b20caf0
RS
93552003-03-03 Richard M. Stallman <rms@gnu.org>
9356
9357 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9358 to run kill-buffer-query-functions.
9359 (Qkill_buffer_query_functions): New var.
9360 (syms_of_buffer): Init and staticpro it.
9361
58e91b77
JD
93622003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9363
9364 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9365
932357b4
KS
93662003-02-25 Kim F. Storm <storm@cua.dk>
9367
9368 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9369 If centering point failed to make whole line visible and vscroll
9370 is non-zero, disable vscroll and try centering point again.
9371
9372 * lread.c (read1): Accept `single space' syntax like (? x).
9373
bb8db7e1
JD
93742003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9375
9376 * keyboard.c (cancel_hourglass_unwind): Surround with
9377 #ifdef HAVE_X_WINDOWS
9378
47d77aab
KH
93792003-02-25 Kenichi Handa <handa@m17n.org>
9380
9381 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9382 process only when "subprocesses" is defined.
9383
6a097c0c
SM
93842003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9385
9386 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9387
0b063c27
JB
93882003-02-24 Juanma Barranquero <lektu@terra.es>
9389
d1135afc
JB
9390 * callint.c (fix_command): Declare as static void and move before
9391 Fcall_interactively.
9392
0b063c27
JB
9393 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9394 (syms_of_xdisp): Don't initialize Qwhen.
9395
0af912f0
JD
93962003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9397
9398 * keyboard.c (cancel_hourglass_unwind): New function.
9399 (command_loop_1): Cancel hourglass with unwind-protect.
9400
120d0a23
RS
94012003-02-23 Richard M. Stallman <rms@gnu.org>
9402
9403 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9404 Detect (when ... (region-beginning)) etc.
9405 (Fcall_interactively): Call fix_command.
9406 (Qif, Qwhen): New variables.
9407 (syms_of_callint): Init and staticpro them.
0b063c27 9408
120d0a23
RS
9409 * regex.c (print_partial_compiled_pattern): Output to stderr.
9410
4ece81a6
KG
94112003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9412
9413 * dired.c (directory_files_internal): Don't expand directory.
9414 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9415 instead. From Lars Hansen <larsh@math.ku.dk>.
9416
e52bd6b7
SM
94172003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9418
9419 * fns.c (string_to_multibyte): Remove unused var i.
9420 (Flanginfo): Fix int/Lisp_Object mixup.
9421 (void_call2): New fun.
9422 (Fmap_char_table): Use it in place of call2.
9423
9424 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9425
9426 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9427
9428 * keymap.c (copy_keymap_1): Make it static.
9429
9430 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9431
c33ef7c4
JB
94322003-02-22 David Ponce <david@dponce.com>
9433
9434 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9435
16782258
JD
94362003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9437
9438 * process.h: Removed subtty field from struct Lisp_Process.
9439
9440 * process.c (create_process): Remove setting of subtty.
9441 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9442 (Fprocess_running_child_p, process_send_signal):
9443 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9444 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9445
3abeca61
KG
94462003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9447
9448 * keymap.c (Fdefine_key): Doc fix.
9449
92a8ce63
JB
94502003-02-21 Juanma Barranquero <lektu@terra.es>
9451
9452 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9453
9454 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9455 POLLING_PROBLEM_IN_SELECT.
9456
9457 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9458 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9459
9460 * s/hpux10-20.h: New file.
9461
e52bd6b7
SM
9462 * process.c (wait_reading_process_input):
9463 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9464
20f1ef2e
KH
94652003-02-20 Kenichi Handa <handa@m17n.org>
9466
32d0a9dc
KH
9467 * fontset.c (check_fontset_name): If NAME is nil, return the
9468 default fontset.
9469 (override_font_info): New function.
e52bd6b7 9470 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9471 (Ffontset_info): If FONTSET is not the default fontset, merge
9472 FONTSET onto the copy of the default fontset, and work on that
9473 copy. Document that NAME nil means the default fontset.
9474 (Ffontset_font): Document that NAME nil means the default fontset.
9475
20f1ef2e
KH
9476 * process.c (setup_process_coding_systems): If the process's
9477 in/out descriptor is -1, do nothing.
9478
77d1daf2
AS
94792003-02-19 Andreas Schwab <schwab@suse.de>
9480
e52bd6b7
SM
9481 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9482 Add prototypes.
77d1daf2 9483
f9a45bb3
KH
94842003-02-19 Kenichi Handa <handa@m17n.org>
9485
9486 * xfaces.c (try_alternative_families): Try all scalable fonts if
9487 Vscalable_fonts_allowed is not Qt.
9488
72ecb43c
JD
94892003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9490
9491 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9492
ee5be7c3
JD
94932003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9494
9495 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9496 names.
9497
9498 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9499 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9500 x_face_list_fonts.
9501 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9502 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9503
4cd519a7
KS
95042003-02-18 Kim F. Storm <storm@cua.dk>
9505
068f9882
KS
9506 * lread.c (read1): Fix last change.
9507 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9508
7290a344
AC
95092003-02-18 Andrew Choi <akochoi@shaw.ca>
9510
9511 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9512
1f7fa69b
AS
95132003-02-18 Andreas Schwab <schwab@suse.de>
9514
9515 * window.c (window_scroll_pixel_based): Move outside a
9516 multi-glyph character before setting new window start.
9517
9518 * xdisp.c (in_display_vector_p): New function.
9519 * dispextern.h (in_display_vector_p): Declare.
9520
23e21195
KS
95212003-02-18 Kim F. Storm <storm@cua.dk>
9522
9523 * lread.c (read1): Fix and relax read syntax.
9524 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9525 Only recognize "," after dotted-pair dot if inside backquote.
9526 Never include "`" or "," (inside backquote) in a symbol.
9527 Allow dotted-pair dot after a character constant.
9528 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9529
f098b121
JD
95302003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9531
9532 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9533 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9534 icons. Set name of tool bar to emacs-toolbar.
9535 (update_frame_tool_bar): Connect expose event to
9536 xg_tool_bar_expose_callback.
9537
63020c46
RS
95382003-02-17 Richard M. Stallman <rms@gnu.org>
9539
9540 * keyboard.c (this_command_key_count_reset): New variable.
9541 Initiatize to 0 where this_command_key_count is set.
9542 (read_char): Save and restore this_command_key_count_reset
9543 around input method code.
9544 (read_char): If this_command_key_count_reset, echo reread commands.
9545 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9546
fb4452cc
KH
95472003-02-17 Kenichi Handa <handa@m17n.org>
9548
9549 * fns.c (string_to_multibyte): Always return a multibyte string.
9550
bd11cc09
JR
95512003-02-16 Jason Rumney <jasonr@gnu.org>
9552
e52bd6b7
SM
9553 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9554 Negative max_fonts parameter means list all.
bd11cc09 9555
4cdf4bde
DL
95562003-02-14 Dave Love <fx@gnu.org>
9557
9558 * fns.c (Flanginfo): Doc fix.
9559
023b93f6
KS
95602003-02-13 Kim F. Storm <storm@cua.dk>
9561
37cd4238
KS
9562 * lread.c (read_escape): Interpret \s as a SPACE character, except
9563 for \s-X in a character constant which still is the super modifier.
9564 (read1): Signal an `invalid read syntax' error if a character
9565 constant is immediately followed by a digit or symbol character.
9566
140a6b7e
KS
9567 * search.c (Fmatch_data): Doc fix. Explicitly state that
9568 match-data is undefined if last search failed.
9569
023b93f6
KS
9570 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9571 All uses changed.
9572
7d5c86e5
JB
95732003-02-12 Juanma Barranquero <lektu@terra.es>
9574
9575 * eval.c (Fdefmacro): Fix typo.
9576
295fff2c
KS
95772003-02-12 Kim F. Storm <storm@cua.dk>
9578
9579 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9580 macro is a string, convert meta modifiers in string when copying
9581 the string into a vector.
9582
60f3202d
KS
95832003-02-11 Kim F. Storm <storm@cua.dk>
9584
9585 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9586
61cb0b53
KH
95872003-02-11 Kenichi Handa <handa@m17n.org>
9588
9589 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9590
7392e23c
KS
95912003-02-10 Kim F. Storm <storm@cua.dk>
9592
9593 * process.c: Doc fixes.
9594 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9595
ce4254bd
KH
95962003-02-10 Kenichi Handa <handa@m17n.org>
9597
9c7a329a
KH
9598 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9599
ce4254bd
KH
9600 * process.c (QCfilter_multibyte): New variable.
9601 (setup_process_coding_systems): New function.
e52bd6b7
SM
9602 (Fset_process_buffer, Fset_process_filter):
9603 Call setup_process_coding_systems.
ce4254bd
KH
9604 (Fstart_process): Initialize the member `filter_multibyte' of
9605 struct Lisp_Process.
9606 (create_process): Call setup_process_coding_systems.
9607 (Fmake_network_process): New keyward `:filter-multibyte'.
9608 Initialize the member `filter_multibyte' of struct Lisp_Process.
9609 Call setup_process_coding_systems.
9610 (server_accept_connection): Call setup_process_coding_systems.
9611 (read_process_output): If the process has a filter, decide the
9612 multibyteness of a string to given to the filter by
9613 `filter_multibyte' member of the process. If the process doesn't
9614 have a filter and the result of conversion is unibyte, use
9615 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9616 multibyte form.
9617 (Fset_process_coding_system): Call setup_process_coding_systems.
9618 (Fset_process_filter_multibyte): New function.
9619 (Fprocess_filter_multibyte_p): New function.
9620 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9621 Defsubr Sset_process_filter_multibyte and
9622 Sprocess_filter_multibyte_p.
9623
9624 * process.h (struct Lisp_Process): New member filter_multibyte.
9625
9626 * lisp.h (setup_process_coding_systems): Add prototype.
9627
9628 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9629 process, update coding systems for the process.
9630
b08d5f59
KH
96312003-02-09 Kenichi Handa <handa@m17n.org>
9632
9633 * fns.c (string_to_multibyte): New function.
9634 (Fstring_to_multibyte): New function.
9635 (syms_of_fns): Defsubr it.
9636
0dfd93c0
AS
96372003-02-08 Andreas Schwab <schwab@suse.de>
9638
9639 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9640 instead of the substitution.
9641
7b76ca1c
JD
96422003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9643
9644 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9645
9646 * xmenu.c (menu_position_func): Adjust menu popup position so that
9647 the menu is fully visible.
7b76ca1c 9648
2436a4e4
JD
96492003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9650
9651 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9652 (x_make_frame_invisible, x_wm_set_icon_position):
9653 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9654
9655 * xfns.c (x_set_name, x_set_title): Ditto.
9656
37d1e680
RS
96572003-02-04 Richard M. Stallman <rms@gnu.org>
9658
9659 * keyboard.c (echo_now): Update before_command_echo_length.
9660 (Freset_this_command_lengths): Reset this_command_key_count etc.
9661 immediately rather than arranging to do it later.
9662 (before_command_key_count_1, before_command_echo_length_1)
9663 (before_command_restore_flag): Vars deleted.
9664 (add_command_key): Don't handle before_command_restore_flag.
9665 (read_char, record_menu_key): Don't update before_command_key_count or
9666 before_command_echo_length.
9667 (read_char): Don't handle before_command_restore_flag.
9668
9669 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9670 in direct-output clauses if it wouldn't be called in the ordinary case.
9671
578846a3
KS
96722003-02-04 Kim F. Storm <storm@cua.dk>
9673
9674 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9675
49853a4d
JD
96762003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9677
9678 * gtkutil.c (remove_from_container): Copying list is not needed.
9679 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9680 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9681 on list returned from gtk_container_get_children to avoid memory leak.
9682
8b53dc06
JR
96832003-02-01 Jason Rumney <jasonr@gnu.org>
9684
5d54d177
JR
9685 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9686 local malloc.
9687 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9688 definitions in xpm.h.
9689 (init_xpm_functions): New function.
f63fd14e 9690 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9691 (init_external_image_libraries): Try to load libXpm.dll.
9692
8b53dc06
JR
9693 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9694 timestamp.
9695
b222e415
DL
96962003-01-31 Dave Love <fx@gnu.org>
9697
9698 * syntax.c (Fskip_chars_forward)
9699 (open-paren-in-column-0-is-defun-start): Doc fix.
9700
c60ee5e7
JB
97012003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9702
9703 * fileio.c: Support // at start of name for Cygwin (just added proper
9704 preprocessor tests).
9705
9706 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9707
9708 * Makefile.in: Use @EXEEXT@ for Cygwin.
9709
9710 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9711
9712 * s/cygwin.h: Added for Cygwin port.
9713
53b37591
JB
97142003-01-31 Juanma Barranquero <lektu@terra.es>
9715
9716 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9717 when including gif_lib.h.
fe929957 9718 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9719 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9720 Windows. Disable color table lookups. Call library functions
53b37591 9721 through pointers determined at runtime.
fe929957
JB
9722 (init_external_image_libraries): Try to load libungif.dll and
9723 libtiff.dll.
53b37591 9724
45415a8f
KH
97252003-01-31 Kenichi Handa <handa@m17n.org>
9726
9727 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9728 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9729
a97e4138
JD
97302003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9731
e52bd6b7 9732 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9733
6eed9bed
DL
97342003-01-30 Dave Love <fx@gnu.org>
9735
9736 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9737 (Fgarbage_collect): Use them.
9738 (init_alloc, syms_of_alloc): Set them up.
9739
100dcd40
JB
97402003-01-30 Juanma Barranquero <lektu@terra.es>
9741
9742 * w32fns.c (init_external_image_libraries): Add missing operator.
9743
fbd852af
JR
97442003-01-29 Jason Rumney <jasonr@gnu.org>
9745
9746 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9747 an alternative name for jpeg.dll.
9748
8a2d8020
KH
97492003-01-29 Kenichi Handa <handa@m17n.org>
9750
9751 * xdisp.c (set_cursor_from_row): Pay attention to string display
9752 properties.
9753
058c18c7
AC
97542003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9755
9756 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9757 <escape>.
9758 (keycode_to_xkeysym_table): Reformat and add more comments.
9759 (XTread_socket): Drop special case for backspace.
9760
385f11cf
AC
97612003-01-28 Andrew Choi <akochoi@shaw.ca>
9762
9763 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9764 values in old-style RGB specs.
9765
c922a224
JB
97662003-01-27 Juanma Barranquero <lektu@terra.es>
9767
9768 * w32fns.c (init_external_image_libraries): Try alternate names for the
9769 jpeg dll.
9770
0a1d6de0
JD
97712003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9772
9773 * gtkutil.c (create_dialog, xg_separator_p)
9774 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9775 before calling strcmp or strlen.
9776
a97e4138 97772003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9778
9779 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9780 and handle image load failure.
9781
28908312
JR
97822003-01-26 Jason Rumney <jasonr@gnu.org>
9783
9784 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9785 New functions.
f63fd14e
JB
9786 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9787 Disable color table lookups. Call jpeg library functions
28908312
JR
9788 through pointers determined at runtime.
9789 (init_external_image_libraries): Try to load jpeg.dll.
9790
84e47416
RS
97912003-01-25 Richard M. Stallman <rms@gnu.org>
9792
9793 * lisp.h: Declare format2 instead of format1.
9794
9795 * fileio.c (barf_or_query_if_file_exists):
9796 Call format2 instead of format1.
9797
9798 * editfns.c (format2): New function, replaces format1
9799 but takes exactly two Lisp Objects as format args.
9800
9801 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9802
a97e4138 98032003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9804
9805 * xterm.h: Change to return value of x_dispatch_event to int.
9806
9807 * xterm.c (x_filter_event): New function.
9808 (event_handler_gdk, XTread_socket): Call x_filter_event.
9809 (x_dispatch_event): Change to return value of finish.
9810 (event_handler_gdk): Use return value from x_dispatch_event.
9811
9812 * xfns.c (x_window): Call create_frame_xic for GTK version to
9813 initialize input methods.
9814
9815 * gtkutil.h: Add (void) prototypes.
9816
9817 * gtkutil.c (create_menus): Remove code that puts the help menu to
9818 the right.
9819
54eefef1
JR
98202003-01-25 Jason Rumney <jasonr@gnu.org>
9821
9822 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9823 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9824 (png_load): Adjust colors for Windows. Use Windows
9825 bitmaps. Disable color table lookups.
c262430d
JR
9826 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9827 (init_png_functions): New function.
9828 (png_read_from_memory, png_load): Call png library functions
9829 through pointers determined at runtime.
9830 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9831 (init_external_image_libraries): New function.
9832 (init_xfns): Call it.
54eefef1 9833
1a9e275b
AS
98342003-01-24 Andreas Schwab <schwab@suse.de>
9835
9836 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9837
a97e4138 98382003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9839
9840 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9841 of static initializer.
9842
422eec7e
DL
98432003-01-24 Dave Love <fx@gnu.org>
9844
9845 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9846 architectures.
9847
9848 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9849 Use __alignof__.
9850
2a026b04
KH
98512003-01-24 Kenichi Handa <handa@m17n.org>
9852
9853 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9854 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9855 (command_loop_1): Call adjust_point_for_property with proper
9856 second arg.
9857
a18bb28d
JR
98582003-01-22 Jason Rumney <jasonr@gnu.org>
9859
9860 Sync changes with xterm.c and xfns.c.
9861
9862 * w32term.c (x_draw_glyph_string_foreground)
9863 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9864
9865 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9866 phys_cursor's hpos is overwritten. This is still not completely
9867 correct, as it doesn't really make sense to use hpos at all to
9868 get the cursor glyph (as that is relative to the width of the
9869 characters on the line, which may have changed during the update).
9870
9871 * w32term.c (notice_overwritten_cursor): Handle the special case
9872 of the cursor being in the first blank non-text line at the
9873 end of a window.
9874
9875 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9876 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9877 Compute from the x position returned by x_draw_glyphs.
9878
9879 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9880 except for NO_CURSOR and system caret, to make phys_cursor_width
9881 contain what its name suggests.
9882 (notice_overwritten_cursor): Consider the cursor image erased if
9883 the output area intersects the cursor image in y-direction.
9884
6a097c0c
SM
9885 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9886 note_mode_line_highlight and extend.
a18bb28d
JR
9887
9888 * w32term.c (last_window): New variable.
9889 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9890 (note_mouse_movement): Remove reimplemented code in #if 0.
9891
9892 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9893 not update_mode_lines, and always set it to 1.
9894
ac6e47ef
JR
98952003-01-21 Jason Rumney <jasonr@gnu.org>
9896
9897 * w32fns.c (IDC_HAND): Define it if system headers don't.
9898
98992003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9900
9901 * w32term.h (struct w32_output): New member hand_cursor.
9902 (WM_EMACS_SETCURSOR): New message definition.
9903
9904 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9905 function w32_define_cursor.
9906 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9907 position, change member name output_data.x to output_data.w32 and
9908 add function w32_define_cursor.
9909 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9910 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9911 (w32_initialize_display_info):
9912 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9913
9914 * w32fns.c (Vx_hand_shape): New variable.
9915 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9916 WM_EMACS_SETCURSOR.
9917 (x-create-frame): Setup Cursor types.
9918
ceb39a17
JB
99192003-01-21 David Ponce <david@dponce.com>
9920
ac6e47ef 9921 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9922 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9923 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9924 2002-09-30.)
ac6e47ef
JR
9925 (w32_draw_relief_rect): Declare all args.
9926 (w32_define_cursor): New.
9927
9928 * w32fns.c (w32_load_cursor): New function.
9929 (w32_init_class): Use it.
9930 (x_put_x_image): Declare all args.
9931
b6189c3b 99322003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9933
9934 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9935
a97e4138 99362003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9937
9938 * gtkutil.c: Must include stdio.h before termhooks.h
9939
83fc9c63
DL
99402003-01-21 Dave Love <fx@gnu.org>
9941
9942 * alloc.c (Fgc_status): Print zombie list.
9943 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9944 Fix assignment of zombies.
9945 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9946 Don't take car of non-cons.
9947
9948 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9949
9950 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9951
fe04b8c8
JR
99522003-01-20 David Ponce <david@dponce.com>
9953
9954 * w32menu.c (digest_single_submenu): Declare all args.
9955
9956 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9957 changes in xmenu.c:
9958
9959 (parse_single_submenu): Use individual keymap's prompt
9960 string as pane name, if there is one.
9961 (set_frame_menubar): Save menu_items_n_panes from each call to
9962 parse_single_submenu and use it when calling digest_single_submenu.
9963
539e69a9
ST
99642003-01-20 Steven Tamm <steventamm@mac.com>
9965
9966 * macterm.c (XTread_socket): Checks for valid, visible window
9967 before sending a scroll-wheel event.
9968
675d000f
RS
99692003-01-20 Richard M. Stallman <rms@gnu.org>
9970
9971 * xdisp.c (redisplay_window): If mini window's buffer is not
9972 a minibuffer, then redisplay it like other windows.
9973
a97e4138 99742003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9975
9976 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9977 external tool bar before setting tool bar height.
9978
048addec
JD
99792003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9980
9981 * xterm.c (handle_one_xevent): Surround popup_activated
9982 with #ifdef:s for non-toolkit version.
9983
9984 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9985 (gtkutil.o): New file.
9986 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9987 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9988
9989 * gtkutil.c: New file for GTK version.
9990
9991 * gtkutil.h: New file for GTK version.
9992
9993 * xterm.h: Add xt_or_gtk_widget.
9994 Include gtk files for USE_GTK.
9995 (struct x_output): Add toolbar_height.
9996 (struct x_output): Add GTK widgets and Gdk size_hints.
9997 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9998 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9999 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10000
10001 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 10002 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
10003 (note_mouse_highlight): Check popup_activated for USE_GTK.
10004 (xt_action_hook): Don't compile if USE_GTK.
10005 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10006 (xg_scroll_callback): New function.
10007 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10008 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10009 for USE_GTK.
10010 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10011 xg_show_scroll_bar for USE_GTK.
10012 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10013 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10014 (event_handler_gdk): New function for USE_GTK.
10015 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10016 (handle_one_xevent): Make sure widget is mapped before
10017 calling x_real_positions for USE_GTK.
10018 (XTread_socket): Add GTK event loop for USE_GTK.
10019 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10020 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10021 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10022 (x_iconify_frame): Add code for USE_GTK.
10023 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10024 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10025 is in gtkutil.c.
10026 (x_term_init): Add initialization for GTK.
10027 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10028
10029 * xmenu.c: Include gtkutil.h for USE_GTK.
10030 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10031 (single_menu_item, single_menu_item, Fx_popup_dialog):
10032 Check for USE_GTK.
048addec
JD
10033 (popup_widget_loop): New function for USE_GTK.
10034 (x_activate_menubar): Add code for USE_GTK.
10035 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10036 (menu_highlight_callback, menubar_selection_callback):
10037 Add USE_GTK versions.
048addec
JD
10038 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10039 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10040 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10041 is in gtkutil.c.
10042 (popup_selection_callback): New version for USE_GTK.
10043 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10044 one USE_X_TOOLKIT version.
048addec
JD
10045 (xmenu_show): Call create_and_show_popup_menu.
10046 (dialog_selection_callback): New version for USE_GTK.
10047 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10048 one USE_X_TOOLKIT version.
048addec
JD
10049 (xdialog_show): Call create_and_show_dialog.
10050
10051 * xfns.c: Include gtkutil for USE_GTK.
10052 (x_window_to_frame, x_any_window_to_frame)
10053 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10054 (x_top_window_to_frame): Add code for USE_GTK.
10055 (x_set_background_color): Call xg_set_background_color for GTK.
10056 (x_set_menu_bar_lines): Check for USE_GTK.
10057 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10058 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10059 (x_window): Call xg_create_frame_widgets for USE_GTK.
10060 (Fx_create_frame): Check for USE_GTK
10061 (Fx_file_dialog): New implementation for USE_GTK.
10062
10063 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10064 (update_menu_bar): Add check for USE_GTK.
10065 (update_tool_bar): Add check for USE_GTK and external tool bar.
10066 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10067 (redisplay_internal): Add check for USE_GTK and popup_activated.
10068 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10069 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10070 (display_menu_bar): Add check for USE_GTK
10071
78819ebb 10072 * lisp.h (Vx_resource_name): Declare extern.
048addec 10073
a64387ee 10074 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10075 for USE_GTK.
10076 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10077
10078 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10079 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10080 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10081
10082 * fileio.c (Fread_file_name): Add check for USE_GTK.
10083
6bdb309a
SM
10084 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10085 Add check for USE_GTK.
048addec
JD
10086
10087 * config.in: Added HAVE_GTK
10088
10089 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10090
100912003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10092
10093 * charset.h (Funibyte_char_to_multibyte): Export.
10094
100952003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10096
10097 * xmenu.c (mouse_position_for_popup): New function.
10098 (Fx_popup_menu): Call mouse_position_for_popup for X and
10099 mouse_position_hook for others.
10100
101012003-01-17 Kim F. Storm <storm@cua.dk>
10102
10103 * editfns.c (Finsert): Mention `string-make-multibyte' and
10104 `string-as-multibyte' in doc string.
10105
101062003-01-17 Kenichi Handa <handa@m17n.org>
10107
10108 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10109
048addec
JD
10110 * editfns.c (Fformat): Convert an unibyte char argument that is
10111 formatted by "%c" to multibyte if the total result must be a
10112 multibyte string.
cd7df9c0 10113
048addec 101142003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10115
048addec
JD
10116 * process.c (set-process-filter): Document unibyte/multibyte-ness
10117 of string argument.
56210ecd 10118
048addec 101192003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10120
048addec 10121 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10122
048addec
JD
10123 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10124 (re_search_2): Likewise.
6df8b9fe 10125
048addec 101262003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10127
048addec
JD
10128 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10129 buffer is unibyte.
292ddc31 10130
048addec 101312003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10132
048addec 10133 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10134
048addec
JD
10135 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10136 (Fprevious_char_property_change)
10137 (Fnext_single_char_property_change)
10138 (Fprevious_single_char_property_change, Fnext_property_change)
10139 (Fnext_single_property_change, Fprevious_property_change)
10140 (Fprevious_single_property_change, Fadd_text_properties)
10141 (Fput_text_property, Fset_text_properties)
10142 (Fremove_text_properties, Fremove_list_of_text_properties)
10143 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10144
048addec 101452003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10146
048addec
JD
10147 * process.h (struct Lisp_Process): New member plist replaces old
10148 member private_vars. All uses changed.
63e4e4c6 10149
048addec 10150 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10151 (QCplist): Rename from QCvars. Change all uses.
048addec 10152 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10153 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10154 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10155 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10156
048addec 101572003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10158
6bdb309a 10159 * m/delta.h: Remove (obsolete).
e833850f 10160
048addec 101612003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10162
048addec
JD
10163 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10164 behaviour in front of symlinks.
10165 (Fdelete_file): Raise an error on directories.
817cb127 10166
048addec 101672003-01-13 Dave Love <fx@gnu.org>
817cb127 10168
048addec 10169 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10170
048addec 101712003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10172
048addec
JD
10173 * minibuf.c (minibuffer_completion_contents):
10174 Error if point is inside prompt.
3e8cf2ea 10175
048addec
JD
10176 * keyboard.c (command_loop_1): Don't redisplay directly
10177 if there's a post-command-hook.
3e8cf2ea 10178
048addec
JD
10179 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10180 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10181
048addec 101822003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10183
048addec 10184 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10185
048addec
JD
10186 * process.c (QCvars): New variable.
10187 (syms_of_process): Intern and staticpro it.
10188 (Fset_process_contact): Removed function.
10189 (Fprocess_variable, Fset_process_variable): New functions.
10190 (syms_of_process): Defsubr them.
10191 (Fstart_process): Initialize private_vars plist to nil.
10192 (Fmake_network_process): New arg :vars to setup the private
10193 variables for new network process.
10194 (server_accept_connection): Copy server's private variables to
10195 client process.
2c10f029 10196
048addec
JD
10197 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10198 crashes). Code rewritten and simplified. Now directly aligns the
10199 pointer and recalculates pure_bytes_used, rather than aligning the
10200 size and adjusting the pointer.
b8a76c6c 10201
048addec 102022003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10203
048addec
JD
10204 * process.c (Fset_process_contact): New function.
10205 (syms_of_process): defsubr it.
10206 (make-network-process): Update doc.
3a8d0899 10207
048addec 102082003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10209
048addec
JD
10210 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10211 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10212
048addec 102132003-01-10 Dave Love <fx@gnu.org>
4abc7470 10214
048addec 10215 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10216
048addec 102172003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10218
048addec
JD
10219 * process.c (Fmake_network_process): Convert new port number
10220 to host byte order for `:service t' case. From Mario Lang.
bf338245 10221
048addec 102222003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10223
048addec
JD
10224 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10225 instead of XtAppProcessEvent.
bf338245 10226
048addec
JD
10227 * xterm.c (handle_one_xevent): New function.
10228 (x_dispatch_event): New function.
10229 (XTread_socket): Call handle_one_xevent.
bf338245 10230
048addec 10231 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10232
048addec
JD
10233 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10234 call XQueryPointer to get coordinates.
10235 (popup_get_selection): Do not set popup_activated_flag to zero,
10236 let popup_deactivate_callback do that. Needed for Motif.
10237 Call x_dispatch_event instead of XtDispatchEvent.
10238 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10239
048addec 102402003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10241
6bdb309a 10242 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10243 connection's local address in :local property of contact info.
10244 (Fmake_network_process): Record local network address for new
10245 client processes in :local property of contact info.
6bdb309a 10246 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10247
048addec 102482003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10249
048addec 10250 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10251
048addec 102522003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10253
048addec 10254 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10255
048addec
JD
10256 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10257 use the same test as for custom-variable-p.
8c6d74c6 10258
048addec 102592003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10260
048addec
JD
10261 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10262 Count LAST_LINE_MISFIT in scroll margin for end of window.
10263 Move label too_near_end before setting SCROLL_MARGIN_POS.
10264 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10265
048addec
JD
10266 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10267 scroll_conservatively case. If scrolling that much doesn't change
10268 STARTP, move it down one line.
e833850f 10269
048addec
JD
10270 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10271 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10272
048addec
JD
10273 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10274 selected frame.
8c6d74c6 10275
048addec
JD
10276 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10277 (syms_of_keymap): staticpro them.
10278 (Fapropos_internal): Initialize them and clear them out.
10279 Don't GCPRO them.
8c6d74c6 10280
048addec
JD
10281 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10282 Doc fixes.
8c6d74c6 10283
048addec
JD
10284 * lisp.h: New misc type Lisp_Save_Value.
10285 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10286 (XSAVE_VALUE): New macro.
10287 (struct Lisp_Save_Value): New data type.
10288 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10289 (make_save_value): Declare.
8c6d74c6 10290
048addec 10291 * alloc.c (make_save_value): New function.
8c6d74c6 10292
048addec
JD
10293 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10294 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10295
048addec 102962003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10297
048addec 10298 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10299
048addec
JD
10300 * keyboard.c (command_loop_1): Call adjust_point_for_property
10301 in direct action cases for Qforward_char and Qbackward_char.
10302 Set already_adjusted so it won't be done twice.
8c6d74c6 10303
b6189c3b 103042002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10305
048addec
JD
10306 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10307 type definition of size_t.
8c609cff 10308
048addec 103092003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10310
048addec
JD
10311 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10312 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10313
048addec 103142002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10315
048addec
JD
10316 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10317 to default to t.
fa634a5e 10318
048addec 103192002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10320
048addec 10321 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10322
048addec 103232002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10324
048addec
JD
10325 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10326 allow building in a different directory than source. Uses some
10327 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10328
048addec 103292002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10330
048addec
JD
10331 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10332 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10333 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10334 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10335
048addec 103362002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10337
048addec
JD
10338 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10339 <scroll-down-aggressively>: Doc fix.
2155ecf3 10340
048addec
JD
10341 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10342 string as pane name, if there is one.
10343 (set_frame_menubar): Save menu_items_n_panes from each call to
10344 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10345
048addec
JD
10346 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10347 Don't try to make last line fully visible if it is past end of window.
61f1d295 10348
048addec 103492002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10350
048addec
JD
10351 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10352 (mac_menu_show): Add support for hierarchical popup menus.
10353 (add_menu_item): Remove indentation support.
10354 (fill_submenu, fill_menu): Create hierarchical menus
10355 instead of using indentation.
0b17a217 10356
048addec 103572002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10358
048addec
JD
10359 * xdisp.c (try_cursor_movement): Don't call try_window here.
10360 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10361
048addec 10362 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10363
048addec 103642002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10365
048addec
JD
10366 * macterm.c (XTread_socket): Call KeyTranslate for control and
10367 meta to deal correctly shifted non-alpha characters, like C-S-5
10368 being treated like C-%. Does not look for shift key to deal
10369 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10370
048addec 103712002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10372
048addec
JD
10373 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10374 If it is non-nil, run timers. Use an unwind-protect to requeue
10375 the events that were read ahead.
10376 (popup_get_selection_unwind): New subroutine.
10377 (popup_get_selection_queue): File-scope variable now holds that queue.
10378 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10379 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10380 Use an unwind-protect to pop down the dialog box.
10381 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10382
048addec
JD
10383 * xdisp.c (row_containing_pos): Change exit test using last_y.
10384 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10385
048addec
JD
10386 * lread.c (load_error_handler): New function.
10387 (Fload): Handle errors in Fsubstitute_in_file_name.
10388 Don't expect Fsignal to return.
f02cac82 10389
048addec
JD
10390 * eval.c: Errors and throws work right with interrupt blocking.
10391 (struct catchtag): New elt interrupt_input_blocked.
10392 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10393 (internal_catch, Fcondition_case, internal_condition_case)
10394 (internal_condition_case_1, internal_condition_case_2): Save it.
10395 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10396
048addec 10397 * editfns.c (Fformat): Add parens.
f02cac82 10398
048addec
JD
10399 * dired.c (file_name_completion): Fix that change.
10400 Delete special quit-handling code; just use QUIT.
f02cac82 10401
b6189c3b 104022002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10403
048addec
JD
10404 * dired.c (file_name_completion): Close directory on error
10405 just as in directory_files_internal.
1a590729 10406
048addec 104072002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10408
048addec
JD
10409 * window.c (Fset_window_configuration): Set old_point to correct
10410 value when new_current_buffer == current_buffer.
f02cac82 10411
048addec 104122002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10413
048addec
JD
10414 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10415 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10416 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10417
048addec
JD
10418 These changes were in part based upon suggestions made by Peter
10419 'Luna' Runestig [peter@runestig.com].
9785d95b 10420
048addec
JD
10421 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10422 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10423 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10424 global variables.
9785d95b 10425
048addec
JD
10426 * w32.c (globals_of_w32): New function. Used to initialize those
10427 global variables that must always be initialized on startup even
10428 when the global variable initialized is non zero. Its primary
10429 purpose at this time is to set the global variables
10430 g_b_init_is_windows_9x, g_b_init_open_process_token,
10431 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10432 g_b_init_get_sid_identifier_authority to 0 on startup.
10433 Called from main.
9785d95b 10434
048addec
JD
10435 * w32.c (is_windows_9x): Perform initialization only if
10436 g_b_init_is_windows_9x is equal to 0. On initialization set
10437 g_b_init_is_windows_9x equal to 1.
2308af15 10438
048addec
JD
10439 * w32.c (open_process_token): Perform initialization only if
10440 g_b_init_open_process_token is equal to 0. On initialization set
10441 g_b_init_open_process_token equal to 1.
2308af15 10442
048addec
JD
10443 * w32.c (get_token_information): Perform initialization only if
10444 g_b_init_get_token_information is equal to 0. On initialization
10445 set g_b_init_get_token_information equal to 1.
9785d95b 10446
048addec
JD
10447 * w32.c (lookup_account_sid): Perform initialization only if
10448 g_b_init_lookup_account_sid is equal to 0. On initialization
10449 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10450
048addec
JD
10451 * w32.c (get_sid_identifier_authority): Perform initialization
10452 only if g_b_init_get_sid_identifier_authority is equal to 0.
10453 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10454
f63fd14e 10455 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10456 those global variables that must always be initialized on startup
10457 even when the global variable initialized is non zero.
10458 Its primary purpose at this time is to initialize the global variable
10459 track_mouse_event_fn.
9785d95b 10460
a64387ee 10461 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10462 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10463
048addec 10464 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10465
f63fd14e 10466 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10467 initialize those global variables that must always be initialized
10468 on startup even when the global variable initialized is non zero.
10469 Its primary purpose at this time is to initialize the global
10470 variables get_menu_item_info and set_menu_item_info.
9785d95b 10471
048addec
JD
10472 * w32menu.c (initialize_frame_menubar): Remove initialization of
10473 get_menu_item_info and set_menu_item_info.
9785d95b 10474
048addec 10475 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10476
048addec
JD
10477 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10478 Declare them.
9785d95b 10479
048addec
JD
10480 * emacs.c (main): Call globals_of_w32 prior to calling
10481 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10482 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10483 is defined.
9785d95b 10484
048addec
JD
10485 * w32term.c (x_update_window_begin): 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_HIDE_CARET message to it.
2308af15 10489
048addec
JD
10490 * w32term.c (x_update_window_end): Fix Windows API error
10491 detected by BoundsChecker. Test to determine if
10492 w32_system_caret_hwnd is NULL prior to attempting to use
10493 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10494
048addec 104952002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10496
048addec
JD
10497 * coding.c (coding_system_require_warning): New variable.
10498 (syms_of_coding): DEFVAR it.
b6da19ef 10499
048addec 10500 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10501
048addec
JD
10502 * fileio.c (choose_write_coding_system): Even if
10503 Vcoding_system_for_write is non-nil, if
10504 coding_system_require_warning is nonzero, call
10505 Vselect_safe_coding_system_function.
bfcf6dbe 10506
048addec 105072002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10508
048addec
JD
10509 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10510 (lisp): Add font-core.
2c568af5 10511
048addec 105122002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10513
048addec
JD
10514 * textprop.c (text_read_only): New arg `propval'.
10515 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10516 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10517
048addec 105182002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10519
048addec 10520 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10521
048addec 105222002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10523
048addec
JD
10524 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10525 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10526 Be more careful about when help_events are generated.
96720f09 10527
048addec 105282002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10529
048addec
JD
10530 * macterm.c (mac_check_for_quit_char): Correctly set the
10531 modifiers of the event to 0.
10532 * mac.c (sys_select): Duplicate rfds before calling select to
10533 ensure that rfds survive the while loop.
e5ae1c49 10534
048addec 105352002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10536
048addec
JD
10537 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10538 row_containing_pos returned NULL.
2eb46b2d 10539
048addec 105402002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10541
6bdb309a 10542 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10543 non-blocking.
6bdb309a 10544 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10545 the one given.
b11f1d8a 10546
048addec 105472002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10548
048addec 10549 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10550
048addec 105512002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10552
048addec
JD
10553 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10554 as the last thing.
a4ac5b17 10555
048addec 105562002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10557
048addec 10558 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10559
048addec 105602002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10561
048addec
JD
10562 * editfns.c (Fformat): Handle precision in string conversion
10563 specifiers like libc functions do (ie, print at most that many
10564 characters).
85cce843 10565
048addec 105662002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10567
048addec
JD
10568 * xdisp.c (row_containing_pos): Check more carefully
10569 whether charpos is really in the row before returning it.
0d4d26a7 10570
048addec 105712002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10572
048addec 10573 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10574
048addec
JD
10575 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10576 each stack frame. This may change as it could be time consuming.
0d4d26a7 10577
048addec
JD
10578 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10579 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10580 (mac_initialize): Add code to check for pressing of quit_char
048addec 10581 in the OS event queue.
b11f1d8a 10582
048addec
JD
10583 * mac.c (sys_select): Call mac_check_for_quit_char every second
10584 while blocking on select.
0d4d26a7 10585
048addec
JD
10586 * mac.c (sys_read): Use sys_select to test for input first
10587 before calling read, to allow C-g to break.
9252f7bc 10588
048addec 105892002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10590
048addec 10591 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10592
048addec 10593 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10594
048addec 10595 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10596
048addec
JD
10597 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10598 autoload.
9252f7bc 10599
048addec 10600 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10601
048addec 10602 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10603
048addec 106042002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10605
048addec 10606 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10607
048addec 106082002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10609
048addec 10610 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10611
048addec 10612 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10613
048addec 10614 * alloca.c: Don't use #error.
02d588e2 10615
048addec 106162002-12-03 Dave Love <fx@gnu.org>
02d588e2 10617
048addec
JD
10618 * buffer.c (Qucs_set_table_for_input): New.
10619 (Fget_buffer_create): Use it.
10620 (Qset_buffer_major_mode_hook): Deleted.
10621 (Fset_buffer_major_mode): Revert previous change.
10622 (init_buffer_once): Intern ucs-set-table-for-input.
10623 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10624 Add &Qucs_set_table_for_input.
451e2697 10625
048addec 106262002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10627
048addec
JD
10628 * callint.c (Fcall_interactively): Use next_event only if less
10629 than key_count.
72742a99 10630
048addec 106312002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10632
048addec
JD
10633 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10634 names to 255 characters.
72742a99 10635
048addec
JD
10636 * macterm.c (XTread_socket): If all frames have been collapsed,
10637 expand the first one before handling drag-and-drop events.
72742a99 10638
048addec
JD
10639 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10640 which is detected by autoconf.
40e6ff95 10641
048addec 106422002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10643
048addec
JD
10644 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10645 offset in two hints table to allow prebinding to be redone and
10646 allow the executable to be stripped.
c02138c6 10647
048addec 106482002-11-29 Dave Love <fx@gnu.org>
c02138c6 10649
048addec
JD
10650 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10651 already provided.
0e47bbf7 10652
048addec 106532002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10654
048addec
JD
10655 * xdisp.c (start_display): Check more intelligently for
10656 whether the line is continued.
10657 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10658
048addec 106592002-11-28 Dave Love <fx@gnu.org>
44129dcb 10660
048addec
JD
10661 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10662 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10663
048addec 106642002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10665
048addec
JD
10666 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10667 more descriptive error output from lread.c:Fload upon most require
10668 cycles during boostrapping.
1637fd2c 10669
048addec 106702002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10671
048addec
JD
10672 * fileio.c (Finsert_file_contents): Give a more appropriate error
10673 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10674
048addec
JD
10675 * dired.c (Ffile_attributes): Don't return negative file sizes for
10676 files bigger than 2Gb when off_t is 32 bit.
540c2788 10677
048addec 106782002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10679
048addec 10680 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10681
048addec
JD
10682 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10683 Test GETPGRP_VOID instead.
10684 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10685
048addec
JD
10686 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10687 Don't define.
10688 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10689
048addec 10690 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10691
048addec 106922002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10693
048addec
JD
10694 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10695 supported.
4042a81a 10696
048addec 106972002-11-25 Dave Love <fx@gnu.org>
4042a81a 10698
048addec 10699 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10700
048addec 10701 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10702
048addec 107032002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10704
048addec 10705 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10706
048addec 107072002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10708
048addec
JD
10709 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10710 determine the size of pointers alloced in unexed space instead
10711 of using possibly invalid emacs_zone pointers. This fixes the
10712 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10713
048addec 107142002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10715
048addec 10716 * search.c (Fstring_match): Doc fix.
c1ee53bc 10717
048addec
JD
10718 * callint.c (Fcall_interactively): If a command fails because
10719 `*' detects a read-only buffer, but RECORD_FLAG is set,
10720 record it anyway if the args don't actually do tty input.
5598c32e 10721
048addec 107222002-11-22 Dave Love <fx@gnu.org>
5598c32e 10723
048addec 10724 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10725
048addec
JD
10726 * keyboard.c (interrupt_signal): Provide forward declaration.
10727 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10728
048addec 10729 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10730
048addec 107312002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10732
048addec
JD
10733 * eval.c (interactive_p): Skip any number of bytecode
10734 and special form frames, in any order.
516eea8e 10735
048addec 107362002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10737
048addec
JD
10738 * w32fns.c (convert_mono_to_color_image): New function.
10739 (xbm_load, xbm_load_image): Use it when foreground or background
10740 is explicitly set.
04dbfa08 10741
048addec 107422002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10743
048addec 10744 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10745
048addec 107462002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10747
048addec
JD
10748 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10749 (XPutPixel): Swap blue and red.
10750 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10751 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10752 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10753 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10754
048addec 107552002-11-18 Dave Love <fx@gnu.org>
d824beee 10756
048addec 10757 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10758
048addec 10759 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10760
048addec 10761 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10762
048addec
JD
10763 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10764 malloc, realloc, calloc.
d824beee 10765
048addec
JD
10766 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10767 (bcmp): Don't define.
d824beee 10768
048addec 10769 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10770
048addec 10771 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10772
048addec 10773 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10774
048addec 10775 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10776
048addec
JD
10777 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10778 Don't include alloca.h.
d824beee 10779
048addec 10780 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10781
048addec 10782 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10783
048addec 10784 * process.c (_GNU_SOURCE): Don't define.
1998560a 10785
048addec 10786 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10787
048addec 107882002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10789
048addec 10790 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10791
048addec 107922002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10793
048addec
JD
10794 * dispextern.h (struct face): Add `overstrike' field.
10795 * xterm.c (x_draw_glyph_string_foreground)
10796 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10797 * xfaces.c (load_face_font): Set `face->overstrike' based on
10798 result from choose_face_font.
10799 (best_matching_font, choose_face_font): Add `needs_overstrike'
10800 argument, and use it to return whether overstriking is desirable
10801 for this face/font combo.
10802 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10803
048addec 108042002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10805
048addec
JD
10806 This change is my fix for the following entry in etc/PROBLEMS:
10807 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10808 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10809
048addec
JD
10810 * w32.c: Added wrapper functions around the win32 API functions
10811 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10812 GetSidIdentifierAuthority. These wrapper functions serve two
10813 purposes:
10814 1. They ensure that the wrapped function can never be called
10815 when Emacs is running on an operating system on which they are
10816 not supported (Microsoft Windows 95 / 98 / ME).
10817 2. They call the wrapped functions via function pointers rather
10818 than calling them directly. This avoids taking advantage of the
10819 undocumented fact that although these functions are not supported
10820 in the 9x branch of Microsoft Windows, the functions do exist in
10821 the version of advapi32.dll that is found in the 9x branch of
10822 Microsoft Windows.
f60ae425 10823
6bdb309a 10824 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10825 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10826 and GetSidIdentifierAuthority with calls to the newly added
10827 wrapper functions.
f60ae425 10828
048addec
JD
10829 * w32.h: Added extern declarations for the following functions:
10830 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10831 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10832
6bdb309a 10833 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10834 function pointer track_mouse_event_fn in the handler for the
10835 WM_SETFOCUS message.
3582b6a3 10836
6bdb309a 10837 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10838 reinitialize the function pointers set_menu_item_info and
10839 get_menu_item_info.
f60ae425 10840
048addec 108412002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10842
048addec
JD
10843 * sound.c: Added a partial implementation of play-sound-internal
10844 for Microsoft Windows. Added various #ifdef / #else / #endif
10845 code blocks to separate the code that will compile under
10846 Microsoft Windows from the code that is specific to Gnu/Linux.
10847 Moved several blocks of code around to make this separation of code
10848 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10849
048addec 10850 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10851
048addec
JD
10852 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10853 added support for play-sound-internal under Windows would be
10854 included in the build of Emacs.
517f42a0 10855
048addec 108562002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10857
048addec 10858 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10859
048addec 10860 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10861
048addec 108622002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10863
048addec
JD
10864 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10865 (adjust_point_for_property): Move out of display and invisible even if
10866 we were already inside before (in case a property was added while
10867 we weren't looking). Be more careful when handling invisible props.
10868 Skip invisible text as if it really wasn't there at all.
aab83f91 10869
048addec 108702002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10871
048addec
JD
10872 * w32term.c (x_draw_image_foreground)
10873 (w32_draw_image_foreground_1): Use standard copy and invert
10874 operations to draw images.
aab83f91 10875
048addec
JD
10876 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10877 depth of 1.
10878 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10879 (XPutPixel): Don't invert bits here.
a4478a76 10880
048addec 108812002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10882
048addec
JD
10883 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10884 (w32_draw_image_foreground_1): Handle image masks.
10885 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10886
048addec
JD
10887 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10888 (x_from_xcolors): Adjust RGB values for W32.
10889 (image_background, image_background_transparent)
10890 (postprocess_image, x_to_xcolors, x_disable_image)
10891 (x_build_heuristic_mask): Adapt for W32 and enable.
10892 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10893 (xbm_load): Remove unused variable.
03670a65 10894
048addec 108952002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10896
048addec 10897 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10898
048addec 108992002-11-14 Dave Love <fx@gnu.org>
59daa29a 10900
048addec 10901 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10902
048addec
JD
10903 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10904 * xmenu.c (unuse_menu_items, digest_single_submenu):
10905 * xfns.c (x_put_x_image):
10906 * xdisp.c (message2_nolog, set_message):
10907 * undo.c (record_point):
10908 * terminfo.c (tparam):
10909 * syntax.c (scan_sexps_forward):
10910 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10911 * composite.c (update_compositions):
10912 * cm.c (calccost, cmgoto):
10913 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10914
048addec 10915 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10916
048addec
JD
10917 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10918 Don't declare.
59daa29a 10919
048addec 10920 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10921
048addec
JD
10922 * fns.c (Fcopy_sequence): Doc fix.
10923 (Fmap_char_table): Cast `call2'.
3947677c 10924
048addec
JD
109252002-11-14 Francesco Potorti` <pot@gnu.org>
10926
10927 * s/sol2-8.h: New file.
10928
109292002-11-14 Kim F. Storm <storm@cua.dk>
10930
10931 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10932 dependency on `risky-local-variable' and the :propertize form.
10933
109342002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10935
10936 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10937
10938 * syntax.c (scan_sexps_forward): Undo last patch.
10939 Use a more obvious fix: check eob before updating the syntax table.
10940
109412002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10942
10943 * syntax.c (scan_sexps_forward): Update syntax table before reading
10944 a char rather than after so we don't update the table past eob.
10945
109462002-11-09 Dave Love <fx@gnu.org>
10947
10948 * buffer.c (Fset_buffer_major_mode): Fix last change.
10949
10950 * regex.c (regexec): Fix pmatch declaration.
10951
10952 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10953
10954 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10955 to self-inserting characters.
10956 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10957
10958 * coding.c (Vtranslation_table_for_input): New.
10959 (syms_of_coding): DEFVAR it.
10960
109612002-11-08 Juanma Barranquero <lektu@terra.es>
10962
10963 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10964 window.
10965
109662002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10967
6bdb309a 10968 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10969 cp, and i.
10970
109712002-11-06 Dave Love <fx@gnu.org>
10972
10973 * buffer.c (Qset_buffer_major_mode_hook): New.
10974 (Fset_buffer_major_mode): Use it.
10975
109762002-11-06 Richard M. Stallman <rms@gnu.org>
10977
10978 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10979 and stop_polling.
10980
10981 * process.c (wait_reading_process_input):
10982 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10983 Avoid initialization for auto Lisp_Object var.
10984
10985 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10986
10987 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10988
109892002-11-05 Richard M. Stallman <rms@gnu.org>
10990
10991 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10992
10993 * callint.c (Fcall_interactively): New local filter_specs.
10994 (Fcall_interactively): Check for progn as well as let.
10995 Add a gcpro.
10996 (Qprogn): New variable.
10997 (syms_of_callint): Staticpro and init Qprogn.
10998
109992002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11000
11001 * lread.c (Feval_buffer): Doc fix.
11002
110032002-11-04 Dave Love <fx@gnu.org>
11004
11005 * keyboard.c (read_char): Always translate iff
11006 Vkeyboard_translate_table is a char table and c is valid.
11007
11008 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11009 and fix C types.
11010
110112002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11012
11013 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11014
11015 * editfns.c (get_pos_property): Don't hardcode Qfield.
11016
11017 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11018 overlays. Also handle `invisible' prop.
11019
110202002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11021
11022 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11023 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11024
110252002-11-01 Andreas Schwab <schwab@suse.de>
11026
11027 * editfns.c (Fmessage): Revert last change to properly handle %%.
11028
110292002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11030
11031 * xmenu.c (unuse_menu_items): New fun.
11032 (menu_items_inuse): New var.
11033 (syms_of_xmenu): Initialize it.
11034 (init_menu_items): Use it to detect re-entrance.
11035 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11036 (Fx_popup_menu): Remove spurious XSETFRAME.
11037
11038 * editfns.c (find_field): Make an exception for nil fields.
11039
110402002-11-01 Dave Love <fx@gnu.org>
11041
11042 * m/gec63.h: Deleted.
11043
110442002-10-31 Dave Love <fx@gnu.org>
11045
11046 * xterm.c (XTread_socket): Fix last change.
11047 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11048
110492002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11050
11051 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11052
110532002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11054
11055 * editfns.c (overlays_around, get_pos_property): New funs.
11056 (find_field): Use them.
11057 Also be careful not to modify POS before its last use.
11058 (Fmessage): Don't Fformat if there's nothing to format.
11059
110602002-10-30 Dave Love <fx@gnu.org>
11061
11062 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11063 [HAVE_PTY_H]; Include pty.h.
11064
11065 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11066
11067 * xterm.c (Qeql): Declare.
11068 (Vx_keysym_table): New.
11069 (syms_of_xterm): Initialize it.
11070 (XTread_socket): Use it. Deal with ASCII keysyms.
11071 (XSetIMValues) [HAVE_X11R6]: Prototype.
11072
11073 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11074 (lispy_kana_keys): Comment out.
11075 (make_lispy_event) [XK_kana_A]: Comment out.
11076 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11077 Fix sprintf call.
11078
11079 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11080 regexp.h change).
11081 (TERMINFO, LIBS_TERMCAP): Define.
11082
11083 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11084 (bcmp): Define conditional on HAVE_BCMP.
11085 (NO_SIOCTL_H): Don't define.
11086 (TIOCSIGSEND): Don't make conditional on IRIX6.
11087
11088 * s/sol2-5.h: Don't include strings.h.
11089 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11090
11091 * s/irix6-0.h (IRIX6): Don't define.
11092 (bcopy, bcmp, bzero): Don't undef.
11093
11094 * s/irix6-5.h: Don't include strings.h.
11095 (IRIX6): Don't define.
11096 (bcopy, bcmp, bzero): Don't undef.
11097
11098 * syntax.c (Fforward_comment): Doc fix.
11099
111002002-10-29 Kim F. Storm <storm@cua.dk>
11101
11102 * process.c (Fsignal_process): Allow PROCESS to be specified by
11103 name in addition to pid (as integer or string).
11104
111052002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11106
11107 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11108 environments.
11109
111102002-10-27 Kim F. Storm <storm@cua.dk>
11111
11112 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11113
11114 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11115
11116 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11117
11118 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11119
111202002-10-26 Richard M. Stallman <rms@gnu.org>
11121
11122 * editfns.c (Fformat): Detect invalid format letters for floats.
11123
111242002-10-25 Kenichi Handa <handa@m17n.org>
11125
11126 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11127 (x_set_title): Likewise.
11128
111292002-10-25 Juanma Barranquero <lektu@terra.es>
11130
11131 * macgui.h:
11132 * w32gui.h: Remove definition of XColor.
11133
11134 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11135
111362002-10-24 Kim F. Storm <storm@cua.dk>
11137
11138 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11139 Callers changed (supply dummy arg).
11140
11141 * lisp.h (get_window_cursor_type): Update prototype.
11142
11143 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11144 get_window_cursor_type to track system caret.
11145
111462002-10-24 Kim F. Storm <storm@cua.dk>
11147
11148 * process.c (Fformat_network_address): New function.
11149 (syms_of_process): Defsubr it.
11150 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11151 service/host is not set; before Emacs would crash in that case.
048addec
JD
11152 (Fmake_network_process): Don't use Ffind_operation_coding_system
11153 to setup coding system if host or service is not set.
11154
111552002-10-23 Juanma Barranquero <lektu@terra.es>
11156
11157 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11158
11159 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11160 COLORREF.
11161
11162 * macgui.h:
11163 * w32gui.h: Add definition of XColor.
11164
11165 * macfns.c:
11166 * w32fns.c:
11167 * xfaces.c: Remove definition of XColor.
11168
111692002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11170
11171 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11172
11173 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11174 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11175 window if it is dedicated.
11176 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11177 (Vspecial_display_function): Update docstring.
11178
11179 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11180 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11181 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11182
111832002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11184
11185 * casefiddle.c (casify_region): Don't treat a prefix char as part
11186 of a word when at the beginning.
11187
111882002-10-17 Juanma Barranquero <lektu@terra.es>
11189
11190 * lread.c (syms_of_lread): Fix typos.
11191
111922002-10-17 Dave Love <fx@gnu.org>
11193
11194 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11195
111962002-10-16 Richard M. Stallman <rms@gnu.org>
11197
11198 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11199
112002002-10-14 Juanma Barranquero <lektu@terra.es>
11201
11202 * w16select.c (syms_of_win16select): Fix docstring for
11203 `selection-coding-system'.
11204
11205 * w32select.c (syms_of_w32select): Likewise.
11206
112072002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11208
11209 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11210 a backslash-quoted char.
11211 (scan_lists, scan_sexps_forward): Pacify the compiler.
11212
112132002-10-13 Richard M. Stallman <rms@gnu.org>
11214
11215 * window.c (window_scroll): Set immediate_quit.
11216
11217 * print.c (print): When backquote form is the car of a list,
11218 output in old style. Use old_backquote_output to output all
11219 comma forms inside it in old style too.
11220
11221 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11222
112232002-10-11 Markus Rost <rost@math.ohio-state.edu>
11224
11225 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11226 batch mode).
11227
11228 * lread.c (Fload): Doc fix (load-suffixes).
11229
112302002-10-10 Steven Tamm <steventamm@mac.com>
11231
11232 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11233 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11234 Also switch the default to Qnil from Qt.
11235
112362002-10-08 Kenichi Handa <handa@m17n.org>
11237
11238 * coding.c (code_convert_region): When we need more GAP for
11239 conversion, pay attention to the case that coding->produced is not
11240 greater than coding->consumed.
11241
112422002-10-07 Richard M. Stallman <rms@gnu.org>
11243
11244 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11245
112462002-10-06 Andrew Choi <akochoi@shaw.ca>
11247
11248 * macmenu.c (mac_menu_show): Add j to count menu items; match
11249 menu_item_selection to it to find selected item.
11250
112512002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11252
11253 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11254 cases. The correct fix is to pass ReparentNotify to Xt.
11255 The shell widget interprets ConfigureNotify differently depending
11256 on if it has been reparented or not.
11257
112582002-10-05 Markus Rost <rost@math.ohio-state.edu>
11259
11260 * editfns.c (Fformat_time_string): Doc fix.
11261
112622002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11263
11264 * fns.c (Flength): Doc fix.
11265
112662002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11267
11268 * keyboard.c (keyremap): New struct.
11269 (read_key_sequence): Use it: globally replace keytran_foo with
11270 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11271 keytran_next and fkey_next to just `next'.
11272
112732002-10-04 Steven Tamm <steventamm@mac.com>
11274
11275 * macterm.c (keycode_to_xkeysym_table): Change return to be
11276 treated like an X keysym.
11277
112782002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11279
11280 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11281 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11282 This is to also handle x/y changes that occur because of a resize.
11283
112842002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11285
11286 * frame.c (Vdelete_frame_functions): New variable.
11287 (syms_of_frame): Initialize and defvar it.
11288 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11289 it when frame's `tooltip' parameter is non-nil.
11290
11291 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11292
11293 * w32fns.c (x_create_tip_frame): Likewise.
11294
11295 * macfns.c (x_create_tip_frame): Likewise.
11296
112972002-09-30 Kenichi Handa <handa@m17n.org>
11298
11299 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11300 -1 before calling ccl_driver.
11301
11302 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11303 Only when it is non-nil, handle composition sequence.
11304 (setup_coding_system) <0>: Don't force composition handling.
11305
11306 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11307
113082002-09-29 Richard M. Stallman <rms@gnu.org>
11309
11310 * search.c (Freplace_match): Adjust match data for the substitution
11311 just made in the buffer.
11312
11313 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11314 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11315
113162002-09-27 Richard M. Stallman <rms@gnu.org>
11317
11318 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11319 (read_char): Use them. Do all exits thru the end of the function.
11320
113212002-09-27 Kenichi Handa <handa@etl.go.jp>
11322
11323 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11324 is nil.
11325
113262002-09-26 Richard M. Stallman <rms@gnu.org>
11327
11328 * regex.h (__restrict_arr): Don't define if already defined.
11329
11330 * coding.c (run_pre_post_conversion_on_str):
11331 Save and restore Vdeactivate_mark.
11332
113332002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11334
11335 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11336
113372002-09-26 Kenichi Handa <handa@etl.go.jp>
11338
11339 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11340 nonzero, try face's family at first. Otherwise try FAMILY at first.
11341 (choose_face_font): If C is a single byte char or latin-1, call
11342 try_font_list with PREFER_FACE_FAMILY 1.
11343
113442002-09-21 Richard M. Stallman <rms@gnu.org>
11345
11346 * window.c (select_window_1): Don't select frame.
11347 Set frame's selected window only when frame itself is selected.
11348 (Fselect_window): Doc fix.
11349
113502002-09-18 Kim F. Storm <storm@cua.dk>
11351
11352 * process.c (make-network-process): Doc fix (there is no
11353 network-server-log-function hook).
11354
113552002-09-18 Richard M. Stallman <rms@gnu.org>
11356
11357 * print.c (print): Clear out the unused parts of Vprint_number_table.
11358 (syms_of_print): Doc fix for `print-number-table'.
11359
11360 * unexelf.c (unexec): Undo previous change.
11361
113622002-09-17 Andreas Schwab <schwab@suse.de>
11363
11364 * m/alpha.h [LINUX]: Don't define DATA_START.
11365
113662002-09-16 Dave Love <fx@gnu.org>
11367
11368 * unexelf.c (unexec): Deal with .got, reinstating change from
11369 25-08-1999.
11370
113712002-09-13 Richard M. Stallman <rms@gnu.org>
11372
11373 * s/sol2-6.h (UNEXEC): Comment out definition.
11374
11375 * unexsol.c (unexec): Don't downcase first letter of error msg.
11376
11377 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11378
113792002-09-12 Markus Rost <rost@math.ohio-state.edu>
11380
11381 * unexsol.c: Include buffer.h, charset.h, coding.h.
11382
113832002-09-11 Richard M. Stallman <rms@gnu.org>
11384
11385 * unexsol.c: Don't use report_file_error; do it by hand
11386 using dlerror.
11387
11388 * process.c (wait_reading_process_input, both versions):
11389 Before calling turn_on_atimers, call stop_polling.
11390
11391 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11392
11393 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11394 we go to too_near_end, call clear_glyph_matrix.
11395 (redisplay_window): After make_cursor_line_fully_visible,
11396 call clear_glyph_matrix and bypass `goto done'.
11397
11398 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11399 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11400
114012002-09-10 Richard M. Stallman <rms@gnu.org>
11402
11403 * fileio.c (Fdo_auto_save): Catch error making directory.
11404 Only call push_message if we need to.
11405 At the same time, make an unwind-protect to pop it.
11406 Rename local message_p to old_message_p.
11407 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11408 (do_auto_save_unwind): Don't call pop_message.
11409
11410 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11411
11412 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11413
11414 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11415
11416 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11417
114182002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11419
11420 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11421 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11422 (re_match_2_internal): Be more careful with infinite loops.
11423
114242002-09-10 Kim F. Storm <storm@cua.dk>
11425
11426 * macros.c (end_kbd_macro): New function.
11427 (Fend_kbd_macro): Use it.
11428
11429 * macros.h (end_kbd_macro): Declare extern.
11430
11431 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11432 end and save it instead of discarding it.
11433
114342002-09-09 Markus Rost <rost@math.ohio-state.edu>
11435
11436 * s/sol2-6.h: Fix typo. Add comment.
11437
114382002-09-09 Richard M. Stallman <rms@gnu.org>
11439
11440 * regex.c (regnum_t): Use signed int, not unsigned int.
11441
11442 * s/sol2-6.h: New file.
11443
11444 * s/sol2-5.h (UNEXEC): Definition deleted.
11445
114462002-09-08 Kim F. Storm <storm@cua.dk>
11447
11448 * macros.c (executing_macro_index): Change type to EMACS_INT.
11449 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11450
11451 * macros.h (executing_macro_index): Change type to EMACS_INT.
11452
114532002-09-06 Richard M. Stallman <rms@gnu.org>
11454
11455 * casetab.c (set_case_table): Make canon table point to eqv table.
11456
114572002-09-06 Juanma Barranquero <lektu@terra.es>
11458
11459 * coding.c (syms_of_coding): Fix spacing.
11460
11461 * composite.c (Fcompose_region_internal)
11462 (Fcompose_string_internal): Likewise.
11463
11464 * data.c (Flsh): Likewise.
11465
11466 * fontset.c (Fset_fontset_font): Likewise.
11467
11468 * macfns.c (Fx_server_max_request_size): Likewise.
11469
11470 * w16select.c (syms_of_win16select): Likewise.
11471
11472 * w32select.c (syms_of_w32select): Likewise.
11473
11474 * xselect.c (syms_of_xselect): Likewise.
11475
114762002-09-05 Richard M. Stallman <rms@gnu.org>
11477
11478 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11479 call EXTEND_RANGE_TABLE and return a proper value.
11480 (set_image_of_range): Don't call set_image_of_range_1
11481 if no TRANSLATE or if range includes all of Latin-1.
11482 Only call it for the Latin-1 part of the range.
11483 For other cases, make two separate ranges,
11484 one for the original specified characters and one for
11485 their case-conversions.
11486
114872002-09-04 Richard M. Stallman <rms@gnu.org>
11488
11489 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11490
11491 * window.c (displayed_window_lines): Correct for one-off bug
11492 in HEIGHT on non-window displays.
11493
11494 * regex.c (set_image_of_range_1): New function.
11495 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11496 Return a value to indicate running out of memory.
11497 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11498 (extend_range_table_work_area): New subroutine.
11499 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11500 Different calling conventions, and used from set_image_of_range{,_1}.
11501 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11502
115032002-09-04 Juanma Barranquero <lektu@terra.es>
11504
11505 * makefile.w32-in: All dependencies updated.
11506
115072002-09-01 Richard M. Stallman <rms@gnu.org>
11508
11509 * unexsol.c: New file.
11510
11511 * xfns.c (Qbox): Declare external, don't define.
11512
11513 * xdisp.c (redisplay_window) <force-start case>:
11514 If point is on semi-visible last line, reposition
11515 it at previous line.
11516
11517 * alloc.c (display_malloc_warning): Use display-warning.
11518 (malloc_warning_1): Function deleted.
11519
11520 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11521
11522 * lread.c (read1): Handle #! by skipping the line.
11523
115242002-08-31 Richard M. Stallman <rms@gnu.org>
11525
11526 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11527 Don't include LDFLAGS.
11528 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11529
115302002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11531
11532 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11533 member of x_display_info unless we compile for some window system.
11534
115352002-08-31 Kim F. Storm <storm@cua.dk>
11536
11537 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11538 (get_window_cursor_type): Don't use them.
11539 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11540
115412002-08-30 Kenichi Handa <handa@etl.go.jp>
11542
11543 * xdisp.c (get_next_display_element): Fix previous change.
11544
115452002-08-30 Andrew Choi <akochoi@shaw.ca>
11546
11547 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11548 (expose_window): Use it to fix the display of overlapping
11549 rows (merge code from xterm.c).
11550
11551 * macfns.c (Qbox): Add extern declaration.
11552
115532002-08-30 Juanma Barranquero <lektu@terra.es>
11554
11555 * w32fns.c (Qbox): Make extern.
11556 (syms_of_w32fns): Remove initialization of Qbox.
11557
115582002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11559
11560 * xfns.c (Fx_open_connection): Fix error message.
11561
115622002-08-30 Kim F. Storm <storm@cua.dk>
11563
11564 The following changes consolidates the handling of the cursor
11565 type in xdisp.c, moving duplicate code and functionality from
11566 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11567
11568 * frame.h (enum text_cursor_kinds): Consolidated here.
11569 Added DEFAULT_CURSOR value.
11570 (struct frame) <desired_cursor, cursor_width>
11571 <blink_off_cursor, blink_off_cursor_width>: New fields.
11572 Consolidated from output_x, output_w32 and output_mac structs.
11573 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11574 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11575
11576 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11577 Variables consolidated here.
11578 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11579 (Vcursor_in_non_selected_windows): Renamed from
11580 cursor_in_non_selected_windows and changed to Lisp_Object.
11581 (syms_of_xdisp): Define and staticpro new and moved variables.
11582 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11583 consolidated here. Recognize Qhollow setting.
11584 (set_frame_cursor_types): New function to set frame cursor types
11585 based on the frame parameters.
11586 (get_window_cursor_type): New function to calculate new cursor
11587 type and width for the specified window. Based on duplicated
11588 code consolidated here.
11589 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11590 check buffer-local alternate-cursor-type and blink-cursor-alist
11591 before using built-in blink off methods.
11592
11593 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11594
11595 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11596 (get_specified_cursor_type, get_window_cursor_type)
11597 (set_frame_cursor_types): Added prototypes.
11598
11599 * macfns.c (x_specified_cursor_type): Removed.
11600 (x_set_cursor_type): Use set_frame_cursor_types.
11601 (Qbar, Qbox): Removed.
11602 (syms_of_macfns): Don't intern or staticpro them.
11603
11604 * macterm.c (x_specified_cursor_type): Remove prototype.
11605 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11606 (x_display_and_set_cursor): Use get_window_cursor_type.
11607 Remove unused local variables cursor_non_selected, active_cursor.
11608 Redraw cursor if hbar cursor width changes.
11609 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11610
11611 * macterm.h (enum text_cursor_kinds): Removed.
11612 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11613 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11614 (FRAME_DESIRED_CURSOR): Macro removed.
11615
11616 * w32fns.c (Vblink_cursor_alist): Removed.
11617 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11618 (syms_of_w32fns): Don't intern, staticpro, or define them.
11619 (x_specified_cursor_type): Removed.
11620 (x_set_cursor_type): Use set_frame_cursor_types.
11621
11622 * w32term.c (x_specified_cursor_type): Remove prototype.
11623 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11624 (x_display_and_set_cursor): Use get_window_cursor_type.
11625 Remove unused local variables cursor_off_state.
11626 Redraw cursor if hbar cursor width changes.
11627 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11628
11629 * w32term.h (enum text_cursor_kinds): Removed.
11630 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11631 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11632 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11633 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11634 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11635 w32_highlight_frame.
11636
11637 * xfns.c (Vblink_cursor_alist): Removed.
11638 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11639 (syms_of_xfns): Don't intern, staticpro, or define them.
11640 (x_specified_cursor_type): Removed.
11641 (x_set_cursor_type): Use set_frame_cursor_types.
11642
11643 * xterm.c (x_specified_cursor_type): Remove prototype.
11644 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11645 (x_display_and_set_cursor): Use get_window_cursor_type.
11646 Remove unused local variables cursor_off_state.
11647 Redraw cursor if hbar cursor width changes.
11648
11649 * xterm.h (enum text_cursor_kinds): Removed.
11650 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11651 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11652 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11653 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11654 (x_specified_cursor_type): Remove prototype.
11655
116562002-08-28 Richard M. Stallman <rms@gnu.org>
11657
11658 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11659 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11660 (Vblink_cursor_alist): New variable.
11661 (syms_of_w32fns): Initialize and defvar it.
11662 (x_specified_cursor_type): Recognize Qbox for filled box.
11663 Exceptions are hollow boxes.
11664 (Qbox, Qhollow): New variables.
11665 (syms_of_w32fns): Initialize and staticpro them.
11666
11667 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11668 New macros.
11669 (struct w32_output): New fields blink_off_cursor,
11670 blink_off_cursor_width.
11671 (FRAME_CURSOR_WIDTH): New macro.
11672
11673 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11674 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11675
11676 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11677 for bar cursor.
11678
11679 * w32term.c (expose_overlaps): New function.
11680 (expose_window): Use it to fix the display of overlapping rows.
11681
116822002-08-28 Simon Josefsson <jas@extundo.com>
11683
11684 * xfns.c (Fx_open_connection): Improve help when X connection
11685 fails, xhost is insecure and xauth is better.
11686
116872002-08-28 Juanma Barranquero <lektu@terra.es>
11688
11689 * makefile.w32-in: Add missing dependencies on w32term.h and
11690 composite.h.
11691
11692 * emacs.c (USAGE1): Add missing newline.
11693
116942002-08-27 Andrew Choi <akochoi@shaw.ca>
11695
11696 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11697
116982002-08-27 Richard M. Stallman <rms@gnu.org>
11699
11700 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11701 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11702 (Vblink_cursor_alist): New variable.
11703 (syms_of_xfns): Initialize and defvar it.
11704 (x_specified_cursor_type): Recognize Qbox for filled box.
11705 Exceptions are hollow boxes.
11706 (Qbox, Qhollow): New variables.
11707 (syms_of_xfns): Initialize and staticpro them.
11708
11709 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11710 New macros.
11711 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11712
11713 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11714 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11715
11716 * emacs.c (main): Handle --script.
11717 (USAGE1): Mention --script.
11718 (standard_args): Define sort order for --script.
11719
117202002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11721
11722 * xdisp.c (redisplay_updating_p): Variable removed.
11723 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11724 New variables.
11725 (init_iterator): Don't free realized faces if
11726 inhibit_free_realized_faces is set.
11727 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11728 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11729 initialize Qinhibit_free_realized_faces.
11730
11731 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11732 when iterator is adding glyphs to a glyph matrix.
11733
117342002-08-27 Kenichi Handa <handa@etl.go.jp>
11735
11736 * xdisp.c (get_next_display_element): In unibyte case, don't use
11737 octal form for such eight-bit characters that can be converted to
11738 multibyte char.
11739
117402002-08-26 Kim F. Storm <storm@cua.dk>
11741
b6189c3b
KS
11742 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11743 foreground and background colors. From Joe Buehler.
048addec
JD
11744
117452002-08-26 Miles Bader <miles@gnu.org>
11746
11747 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11748
117492002-08-25 Andrew Choi <akochoi@shaw.ca>
11750
11751 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11752 defined instead of MAC_OSX.
11753
11754 * s/darwin.h (select): Define select to sys_select only if
11755 HAVE_CARBON is defined.
11756 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11757 (DONT_REOPEN_PTY): #def it.
11758
11759 * macterm.c (XTread_socket): Remove code to call
11760 SendEventToEventTarget for keys with command modifiers when
11761 mac_command_key_is_meta is nil.
11762
117632002-08-24 Andreas Schwab <schwab@suse.de>
11764
11765 * eval.c (Fdefvar): Fix last change.
11766
117672002-08-23 Richard M. Stallman <rms@gnu.org>
11768
11769 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11770 Record variables in load history as (defvar . VAR).
11771 (Fdefvar): Don't record in load history if no initial value.
11772 (Qdefvar): New variable.
11773 (syms_of_eval): Init and staticpro it.
11774
11775 * lread.c (syms_of_lread): Doc fix.
11776 (build_load_history): Use Fmember to see if a definition
11777 is already in the Vload_history element.
11778
11779 * process.c (Fstart_process): Remove /: from program name.
11780
11781 * emacs.c (decode_env_path): Don't add /: if file name handler
11782 has a `safe-magic' property.
11783
11784 * callproc.c (Fcall_process): Remove /: from program name.
11785
117862002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11787
11788 * regex.c (PATFETCH): Remove the translating fetch.
11789 (PATFETCH_RAW): Rename to PATFETCH.
11790 (set_image_of_range): New fun.
11791 (SET_RANGE_TABLE_WORK_AREA): Use it.
11792 (regex_compile): Don't translate the pattern chars so eagerly.
11793 Only do it when inserting an `exactn' bytecode or when handling
11794 a char-range.
11795 (mutually_exclusive_p): Avoid empty statement.
11796
117972002-08-22 Kim F. Storm <storm@cua.dk>
11798
11799 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11800 end up on a partially visible line; this reverts a specific part
11801 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11802 display error which has been reported several times now.
11803 However it introduces the problem that changes was supposed to fix.
11804 See my comments in the source if you want to debug this further.
11805
118062002-08-20 Kenichi Handa <handa@etl.go.jp>
11807
11808 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11809
118102002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11811
11812 * msdos.c (croak): Add `void' to definition.
11813
c1380aa6 11814 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11815 Don't define them, they are defined in msdos.c.
11816
11817 * mem-limits.h [MSDOS]: Declare etext.
11818
11819 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11820 `const' since CORRECT_DIR_SEPS modifies its target.
11821
118222002-08-19 Kim F. Storm <storm@cua.dk>
11823
2fb0ce67 11824 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11825 KEEP-RECORD to avoid clearing lossage when we just want to clear
11826 the current key sequence (kmacro needs this).
11827
118282002-08-19 Kenichi Handa <handa@localhost>
11829
11830 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11831
11832 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11833 cons, return Qnil.
11834
118352002-08-17 Richard M. Stallman <rms@gnu.org>
11836
11837 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11838
11839 * sysdep.c [!VMS]: Include sys/files.h.
11840
11841 * editfns.c (save_restriction_restore): Defend from unchained marker.
11842
11843 * buffer.c (overlays_at): Handle extending vec uniformly.
11844 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11845
118462002-08-15 Andrew Choi <akochoi@shaw.ca>
11847
11848 * mac.c (init_mac_osx_environment): New function.
11849
11850 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11851
118522002-08-14 Kim F. Storm <storm@cua.dk>
11853
11854 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11855 executing macro before appending to it (when used from Lisp).
11856 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11857 which is called prior to each iteration of macro (for kmacro.el).
11858 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11859
11860 * lisp.h (Fexecute_kbd_macro): Update prototype.
11861
11862 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11863
118642002-08-14 Kenichi Handa <handa@etl.go.jp>
11865
11866 * xselect.c (QUTF8_STRING): New variable.
11867 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11868 (x_atom_to_symbol): Likewise.
11869 (x_get_local_selection): New argument local_request. If it is
11870 nonzero, call handler_fn with the second arg nil.
11871 (x_handle_selection_request): Call x_get_local_selection with
11872 local_request 0.
11873 (lisp_data_to_selection_data): Don't encode the string here.
11874 (Fx_get_selection_internal): Call x_get_local_selection with
11875 local_request 1.
11876 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11877
11878 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11879
11880 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11881
118822002-08-13 Richard M. Stallman <rms@gnu.org>
11883
11884 * minibuf.c (Fminibufferp): New function.
11885 (syms_of_minibuf): Defsubr it.
11886 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11887
118882002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11889
11890 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11891
118922002-08-12 Richard M. Stallman <rms@gnu.org>
11893
11894 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11895 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11896 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11897 already.
11898
11899 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11900
119012002-08-11 Andrew Choi <akochoi@shaw.ca>
11902
11903 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11904 (Vmac_pass_command_to_system): New variable.
11905 (Vmac_pass_control_to_system): New variable.
11906 (do_mouse_moved): Check wp with is_emacs_window.
11907 (XTread_socket): Check window_ptr with is_emacs_window.
11908 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11909 events back to Mac Toolbox for processing, depending on values of
11910 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11911 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11912 Vmac_pass_control_to_system.
11913
119142002-08-10 Kenichi Handa <handa@etl.go.jp>
11915
11916 * coding.c (unencodable_char_position): New function.
11917 (Funencodable_char_position): New function.
11918 (syms_of_coding): Defsubr Funencodable_char_position.
11919
119202002-08-10 Andrew Choi <akochoi@shaw.ca>
11921
11922 * mac.c (sys_select) [MAC_OSX]: New function.
11923
11924 * macterm.c (MakeMeTheFrontProcess): New function.
11925 (mac_initialize): Call MakeMeTheFrontProcess.
11926
11927 * s/darwin.h: Define select to sys_select.
11928
119292002-08-09 Richard M. Stallman <rms@gnu.org>
11930
11931 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11932
119332002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11934
11935 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11936 end of the buffer.
11937
119382002-08-08 Ken Raeburn <raeburn@mit.edu>
11939
11940 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11941
11942 * puresize.h (BASE_PURESIZE): Increase to 910000.
11943
119442002-08-08 Kenichi Handa <handa@etl.go.jp>
11945
11946 * coding.c (Ffind_operation_coding_system): For write-region, if
11947 VISIT is a filename, make it the target.
11948
119492002-08-07 Richard M. Stallman <rms@gnu.org>
11950
11951 * alloc.c (mark_object): Detect long lists for debugging.
11952 (mark_object_loop_halt): New variable.
11953
11954 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11955
11956 * data.c (Fmake_variable_frame_local): Doc fix.
11957
119582002-08-01 David Ponce <david@dponce.com>
11959
11960 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11961 (malloc_widget_value, free_widget_value)
11962 (w32_free_submenu_strings): Use them.
11963
11964 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11965 (push_menu_pane, push_menu_item, single_keymap_panes)
11966 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11967 (single_submenu, set_frame_menubar)
11968 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11969
11970 (Fx_popup_menu): Don't show pop up menu until preceding one is
11971 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11972
11973 * w32menu.c: Changes adapted from xmenu.c
11974 (set_frame_menubar): First parse all submenus,
11975 then make widget_value trees from them.
11976 Don't allocate any widget_value objects
11977 until we are done with the parsing.
11978 (parse_single_submenu): New function.
11979 (digest_single_submenu): New function.
11980 (single_submenu): Function deleted, replaced by those two.
11981
119822002-08-04 Andrew Choi <akochoi@shaw.ca>
11983
11984 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11985 returns a valid window pointer before proceeding for keyDown and
11986 autoKey events.
11987
119882002-08-03 Andrew Choi <akochoi@shaw.ca>
11989
11990 * macterm.c (USE_CARBON_EVENTS): New macro.
11991 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11992 (x_iconify_frame): Call CollapseWindow.
11993 (Vmac_reverse_ctrl_meta): New variable.
11994 (Vmac_wheel_button_is_mouse_2): New variable.
11995 (init_mac_drag_n_drop): New function.
11996 (mac_do_receive_drag): New function.
11997 (mac_handle_service_event): New function.
11998 (init_service_handler): New function.
11999 (mac_to_emacs_modifiers): New function.
12000 (mac_event_to_emacs_modifiers): New function.
12001 (mac_get_mouse_btn): New function.
12002 (mac_convert_event_ref): New function.
12003 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12004 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12005 mac_get_mouse_btn.
12006 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12007
12008 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12009 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12010 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12011 TOOL_BAR_EVENT for MAC_OS as well.
12012 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12013 as for WINDOWS_NT.
12014 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12015
12016 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12017
120182002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12019
12020 * xdisp.c (forward_to_next_line_start): Fix a condition that
12021 lead to a newline being skipped.
12022
120232002-08-02 Andrew Choi <akochoi@shaw.ca>
12024
12025 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12026
120272002-08-01 Richard M. Stallman <rms@gnu.org>
12028
12029 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12030
120312002-07-31 Andrew Choi <akochoi@shaw.ca>
12032
12033 * macfns.c: #undef init_process before #define-ing it.
12034
12035 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12036 HAVE_CARBON is defined.
12037
120382002-07-31 Richard M. Stallman <rms@gnu.org>
12039
12040 * xmenu.c (set_frame_menubar): First parse all submenus,
12041 then make widget_value trees from them.
12042 Don't allocate any widget_value objects
12043 until we are done with the parsing.
12044 (parse_single_submenu): New function.
12045 (digest_single_submenu): New function.
12046 (single_submenu): Function deleted, replaced by those two.
12047
120482002-07-30 Juanma Barranquero <lektu@terra.es>
12049
12050 * w32proc.c (syms_of_ntproc): Fix docstring of
12051 `w32-get-true-file-attributes'.
12052
120532002-07-28 Richard M. Stallman <rms@gnu.org>
12054
12055 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12056 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12057
12058 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12059
12060 * keyboard.c (make_lispy_event):
12061 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12062 Explicitly clear up_modifier in event->modifiers.
12063
120642002-07-27 Richard M. Stallman <rms@gnu.org>
12065
12066 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12067
12068 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12069 for bar cursor.
12070
120712002-07-26 Kenichi Handa <handa@etl.go.jp>
12072
12073 * coding.c (detect_coding_iso2022): While checking a byte sequence
12074 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12075 it in the normal loop.
12076
120772002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12078
12079 * xterm.c (expose_overlaps): New function.
12080 (expose_window): Use it to fix the display of overlapping rows.
12081
12082 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12083
120842002-07-23 Ken Raeburn <raeburn@gnu.org>
12085
12086 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12087 since it only depends on XUINT.
12088
12089 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12090 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12091 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12092 Macros deleted.
3947677c 12093
77d1daf2
AS
12094 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12095 its value over other approaches.
12096 * sysdep.c (start_of_data): Don't define the function if a macro
12097 form has been defined.
8a8e19a3 12098
048addec
JD
120992002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12100
12101 * xdisp.c (redisplay_updating_p): New variable.
12102 (init_iterator): Don't free realized faces when
12103 redisplay_updating_p is set.
12104 (redisplay_internal): Set redisplay_updating_p while updating
12105 the display.
12106
121072002-07-23 Richard M. Stallman <rms@gnu.org>
12108
12109 * editfns.c (Fmessage): Treat "" like nil.
12110
121112002-07-23 Kenichi Handa <handa@etl.go.jp>
12112
12113 * xdisp.c (face_before_or_after_it_pos):
12114 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12115
121162002-07-22 Juanma Barranquero <lektu@terra.es>
12117
12118 * callproc.c (init_callproc) [DOS_NT]:
12119 Initialize Vshared_game_score_directory to nil.
12120 (syms_of_callproc) [DOS_NT]: Likewise.
12121
121222002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12123
12124 * xdisp.c (display_line): Replace an abort with xassert.
12125
121262002-07-21 Richard M. Stallman <rms@gnu.org>
12127
12128 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12129 and END_UNCHANGED when setting buffer_unchanged_p.
12130 Use current_matrix_up_to_date_p to decide whether to use
12131 try_cursor_movement.
12132
12133 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12134
12135 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12136
12137 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12138 Set to nil if dir does not exist.
12139 (syms_of_callproc): Init unconditionally and simply.
12140
12141 * buffer.c (Fbuffer_list): Doc fix.
12142
121432002-07-21 Ken Raeburn <raeburn@gnu.org>
12144
12145 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12146
12147 * buffer.c (mmap_realloc): When shrinking, make sure number of
12148 pages to unmap is rounded towards zero.
12149
12150 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12151 (XSETINT): Deleted.
12152
12153 * m/att3b.h (XINT): Don't define.
12154 (VALBITS, VALMASK, XTYPE): Deleted.
12155 (DATA_SEG_BITS): Define.
12156 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12157 ARRAY_MARK_FLAG): Deleted.
12158 (DATA_SEG_BITS): Define.
12159 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12160 (DATA_SEG_BITS): Define.
12161
121622002-07-20 Richard M. Stallman <rms@gnu.org>
12163
12164 * print.c (print_error_message): New args CONTEXT and CALLER.
12165 Calls changed.
12166
12167 * lisp.h (print_error_message): Declare new args.
12168
12169 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12170 and CONTEXT to print_error_message, don't print them here.
12171 For a Quit, don't use Vsignaling_function.
12172 Call message_log_maybe_newline.
12173
12174 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12175
121762002-07-20 Kim F. Storm <storm@cua.dk>
12177
12178 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12179
121802002-07-19 Ken Raeburn <raeburn@gnu.org>
12181
12182 * bytecode.c (struct byte_stack): Pointers into byte string now
12183 point to const.
12184 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12185 const.
12186 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12187 * coding.c (encode_eol, detect_coding, detect_eol):
12188 (decode_coding, encode_coding, detect_coding_system):
12189 Source strings now treated as const.
12190 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12191 modify Lisp string contents.
12192 * coding.h (decode_coding, encode_coding, detect_coding,
12193 detect_eol): Declarations updated.
12194 * composite.c (compose_chars_in_text): Treat Lisp string contents
12195 as const.
12196 * dispnew.c (safe_bcopy): Source pointer now points to const.
12197 * lisp.h (STRING_COPYIN): New macro.
12198 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12199 (internal_with_output_to_temp_buffer): Declarations updated.
12200 * print.c (temp_output_buffer_setup):
12201 (internal_with_output_to_temp_buffer): Buffer name argument is now
12202 pointer to const.
12203 * sound.c (struct sound_device): Function pointer field "write"
12204 buffer argument now points to const.
12205 (vox_write): Buffer argument points to const.
12206 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12207 contents as const.
12208 * sysdep.c (emacs_write): Buffer pointer now const.
12209 * term.c (encode_terminal_code): Buffer pointer now const.
12210 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12211 (x_face_list_fonts, x_update_menu_appearance):
12212 (hash_string_case_insensitive): Treat Lisp string contents as const.
12213
122142002-07-19 Juanma Barranquero <lektu@terra.es>
12215
048addec
JD
12216 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12217
12218 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12219 (Ffile_name_as_directory): Fix argument name in docstring.
12220 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12221
122222002-07-18 Richard M. Stallman <rms@gnu.org>
12223
12224 * data.c (Fdefalias): Doc fix.
12225
122262002-07-17 Dave Love <fx@gnu.org>
12227
12228 * intervals.h (text_property_stickiness): Use P_.
12229
12230 * ccl.c: Remove `emacs' conditionals.
12231 (ccl_backtrace_table): Fix size spec.
12232 (ccl_driver): Fix type errors.
12233
122342002-07-16 Ken Raeburn <raeburn@gnu.org>
12235
12236 * alloc.c (xstrdup, make_string, make_unibyte_string)
12237 (make_multibyte_string, build_string): String pointer args now
12238 point to const.
12239 * charset.c (find_charset_in_text, c_string_width):
12240 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12241 * fileio.c (report_file_error):
12242 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12243 (count_combining_before, count_combining_after, insert_1_both):
12244 (insert, insert_and_inherit, insert_string):
12245 (insert_before_markers, insert_before_markers_and_inherit):
12246 * lread.c (intern, oblookup, hash_string):
12247 * minibuf.c (temp_echo_area_glyphs):
12248 * search.c (fast_c_string_match_ignore_case):
12249 * sysdep.c (emacs_open, set_file_times):
12250 * xfaces.c (xstricmp):
12251 * xdisp.c (store_frame_title, string_char_and_length):
12252 (message_dolog, message2, message2_nolog, set_message): Likewise.
12253 (set_message_1): Cast message string argument to const pointer.
12254 * editfns.c (general_insert_function): Insertion function now
12255 takes pointer to const for input data.
12256 * charset.h (find_charset_in_text, c_string_width):
12257 (parse_str_as_multibyte): Declarations updated.
12258 * dispextern.h (xstricmp): Declaration updated.
12259 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12260 (count_size_as_multibyte, count_combining_before):
12261 (count_combining_after, insert_1, insert_1_both, message_dolog):
12262 (insert, insert_and_inherit, insert_before_markers)
12263 (insert_before_markers_and_inherit, set_message, message2):
12264 (message2_dolog, build_string, make_string, make_unibyte_string):
12265 (make_multibyte_string, intern, oblookup, report_file_error):
12266 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12267 (emacs_open, xstrdup): Declarations updated.
12268 * systime.h (set_file_times): Declaration updated.
12269
12270 * charset.c (find_charset_in_text, lisp_string_width): Use const
12271 for pointer to lisp string data.
12272 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12273 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12274 * coding.c (Ffind_coding_systems_region_interval):
12275 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12276 (Fmake_directory_internal, Fdelete_directory):
12277 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12278 * fontset.c (font_family_registry, fs_query_fontset):
12279 (list_fontsets):
12280 * frame.c (Fframe_parameter):
12281 * keyboard.c (cmd_error_internal):
12282 * keymap.c (Fdescribe_buffer_bindings):
12283 * lread.c (complete_filename_p, openp):
12284 * minibuf.c (Fminibuffer_complete_word):
12285 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12286 (face_before_or_after_it_pos, next_element_from_string):
12287 (get_overlay_arrow_glyph_row, display_mode_element):
12288 (decode_mode_spec_coding):
12289 * xterm.c (same_x_server): Likewise.
12290
12291 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12292 settings of non-existent fields.
12293
12294 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12295 copy a lisp value.
12296
12297 * lread.c (Fintern_soft): Use string macros instead of
12298 Lisp_String fields.
12299 * keyboard.c (echo_char, parse_modifiers_uncached):
12300 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12301 * textprop.c (validate_interval_range, interval_of): Likewise.
12302
12303 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12304
12305 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12306 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12307 XSTRING()->size_byte.
12308
12309 * lisp.h (SDATA, SREF): Produce rvalue.
12310 (SSET): New macro.
12311 * alloc.c (make_event_array): Use SSET for storing into a string.
12312 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12313 a string.
12314 * casefiddle.c (casify_object): Use SSET.
12315 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12316 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12317 address of string contents.
12318 * data.c (Faref): Use SDATA.
12319 (Faset): Use SDATA, SSET.
12320 * dired.c (directory_files_internal): Use SSET.
12321 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12322 (Fread_file_name): Use SREF, SSET.
12323 * fns.c (concat): Use SSET.
12324 (concat, Fdelete): Use SDATA.
12325 * insdel.c (insert_from_string_1): Use SDATA.
12326 * keyboard.c (Fevent_convert_list): Use SREF.
12327 * lread.c (Fload): Use SDATA, SSET.
12328 * macfns.c (validate_x_resource_name): Use SSET.
12329 * process.c (status_message): Use SSET.
12330 * search.c (wordify): Use SDATA.
12331 (Freplace_match): Use SREF.
12332 * w32fns.c (validate_x_resource_name): Use SSET.
12333 * xfns.c (validate_x_resource_name): Use SSET.
12334 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12335
123362002-07-16 Richard M. Stallman <rms@gnu.org>
12337
12338 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12339
12340 * xdisp.c (reconsider_clip_changes):
12341 Don't test prevent_redisplay_optimizations_p.
12342 (redisplay_internal): Test prevent_redisplay_optimizations_p
12343 along with clip_changed in some cases.
12344 (try_window_id): Likewise.
12345 (redisplay_window): New local var buffer_unchanged_p.
12346
12347 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12348
12349 * process.c (create_process): Test USG_SUBTTY_WORKS.
12350 (process_send_signal): Clean up handling of GID.
12351 Detect errors in ioctls meant to set GID.
12352
12353 * window.c (temp_output_buffer_show):
12354 Don't set prevent_redisplay_optimizations_p.
12355
123562002-07-15 Juanma Barranquero <lektu@terra.es>
12357
12358 * eval.c (Fdefvaralias): Add docstring argument.
12359
123602002-07-15 Ken Raeburn <raeburn@gnu.org>
12361
12362 * lisp.h (STRING_INTERVALS): Produce rvalue.
12363 (STRING_SET_INTERVALS): New macro.
12364 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12365 * fns.c (Fstring_as_multibyte): Likewise.
12366 * intervals.c (balance_possible_root_interval, delete_interval)
12367 (create_root_interval, copy_intervals_to_string): Likewise.
12368 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12369 instead of 0.
12370
123712002-07-14 Ken Raeburn <raeburn@gnu.org>
12372
12373 * lisp.h (STRING_SET_CHARS): New macro.
12374 (SCHARS, SBYTES): Produce rvalues.
12375 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12376 * fns.c (concat): Likewise.
12377 * lread.c (read_vector): Likewise.
12378
12379 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12380 (STRING_SET_UNIBYTE): New macro.
12381 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12382 length of -1) changed to use STRING_SET_UNIBYTE.
12383 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12384 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12385 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12386 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12387 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12388 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12389 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12390 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12391 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12392 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12393 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12394 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12395 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12396 unchanged for now.
12397
123982002-07-13 Kim F. Storm <storm@cua.dk>
12399
12400 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12401
124022002-07-12 Richard M. Stallman <rms@gnu.org>
12403
12404 * fileio.c (Fwrite_region): Doc fix.
12405
12406 * print.c (print_error_message): Don't handle Vsignaling_function here.
12407
12408 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12409 (command_loop_1): Avoid certain actions after memory-full error.
12410
12411 * eval.c (Fsignal): Don't call cancel_hourglass.
12412 For a memory-full error, don't call Vsignal_hook_function
12413 and don't set Vsignaling_function.
12414
12415 * process.c (process_send_signal): Add abort call.
12416
124172002-07-11 Markus Rost <rost@math.ohio-state.edu>
12418
12419 * keymap.c (Fkey_binding): Fix typo.
12420
124212002-07-11 Richard M. Stallman <rms@gnu.org>
12422
12423 * alloc.c (Vmemory_full): New variable.
12424 (Vmemory_signal_data): Renamed from memory_signal_data.
12425 Uses changed.
12426 (syms_of_alloc): Defvar them.
12427 (memory_full, buffer_memory_full): Set Vmemory_full.
12428
12429 * lisp.h (Vmemory_full): Add declaration.
12430 (current_column, indented_beyond_p): Change declaration.
12431
12432 * indent.c (last_known_column): Declare as double, not float.
12433 (current_column, current_column_1, string_display_width)
12434 (position_indentation): Return `double'.
12435 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12436
12437 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12438 (back_to_previous_visible_line_start)
12439 (reseat_at_next_visible_line_start, next_element_from_buffer):
12440 Use `double', not `float', when calling indented_beyond_p.
12441
12442 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12443
12444 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12445
124462002-07-11 Juanma Barranquero <lektu@terra.es>
12447
12448 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12449 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12450 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12451 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12452 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12453 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12454
124552002-07-10 Juanma Barranquero <lektu@terra.es>
12456
d814862a
JB
12457 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12458 All callers changed.
048addec
JD
12459
124602002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12461
12462 * data.c (Fdefalias): Add an optional `docstring' argument.
12463 (set_internal, Fsetq_default): Use XCAR/XCDR.
12464
12465 * composite.c (HASH_VALUE, HASH_KEY):
12466 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12467
124682002-07-09 Kenichi Handa <handa@etl.go.jp>
12469
12470 * callproc.c (Fcall_process): Fix previous change.
12471
124722002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12473
12474 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12475 Add support for hash-tables.
12476 (Ftry_completion): Return t even if the string appears multiple times.
12477
12478 * fns.c (Fnconc): Use XCDR.
12479 (Fprovide): Use CONSP and XCDR.
12480 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12481 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12482 (Fmake_hash_table): Accept `:size nil'.
12483 (Fmakehash): Delete: moved to subr.el.
12484 (syms_of_fns): Don't defsubr makehash.
12485
12486 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12487 (HASH_TABLE_SIZE): Move from fns.c.
12488
124892002-07-07 Richard M. Stallman <rms@gnu.org>
12490
12491 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12492 Instead just return 0 when there is something to be done.
12493 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12494 retry scrolling as if cursor were off the bottom.
12495 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12496 return CURSOR_MOVEMENT_MUST_SCROLL.
12497 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12498 go to try_to_scroll.
12499
12500 * buffer.c (Fbuffer_local_value): Store current value into its binding
12501 so we get the up-to-date value for the binding that is loaded.
12502
12503 * eval.c (Fdefmacro): Doc fix.
12504
125052002-07-05 Dave Love <fx@gnu.org>
12506
12507 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12508 correctly.
12509
12510 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12511 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12512 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12513 CCL_LookupCharConstTbl.
12514 (syms_of_ccl): Defvar translation-hash-table-vector.
12515
125162002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12517
12518 * xdisp.c: Remove unused variable `face'.
12519
125202002-07-04 Juanma Barranquero <lektu@terra.es>
12521
12522 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12523 obsolescence information.
12524
125252002-07-03 Andrew Choi <akochoi@shaw.ca>
12526
12527 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12528 pattern. Search cache first.
12529 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12530 for Japanese font.
12531 (XLoadQueryFont): Use it.
12532
125332002-07-02 Richard M. Stallman <rms@gnu.org>
12534
12535 * keymap.c (Fdefine_key): Doc fix.
12536
12537 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12538
125392002-07-02 Juanma Barranquero <lektu@terra.es>
12540
12541 * keymap.c (syms_of_keymap): Fix typo.
12542
125432002-07-01 Andrew Choi <akochoi@shaw.ca>
12544
12545 * s/darwin.h: Define POSIX_SIGNALS.
12546
12547 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12548 and FSRefMakePath to convert FSSpec returned with Apple Event to
12549 Posix pathname.
12550 (mac_initialize) [TARGET_API_MAC_CARBON]:
12551 Call init_required_apple_events and disable the `Quit' menu item
12552 provided automatically by the Carbon Toolbox.
12553
125542002-07-01 Dave Love <fx@gnu.org>
12555
12556 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12557 for K&R.
12558
12559 * xterm.c: Fix prototype for K&R.
12560
12561 * term.c (costs_set): Declare static, non-initialized for pcc.
12562
125632002-07-01 Richard M. Stallman <rms@gnu.org>
12564
12565 * keyboard.c (timer_last_idleness_start_time): New variable.
12566 (timer_start_idle): Set that.
12567 (read_key_sequence): Use that to reset timer_idleness_start_time
12568 to previous value.
12569
12570 * window.c (Frecenter): With arg, set optional_new_start.
12571
12572 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12573
12574 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12575 buffer for completion.
12576
125772002-06-29 Ken Raeburn <raeburn@gnu.org>
12578
12579 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12580
125812002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12582
12583 * keyboard.c (readable_filtered_events): New function that filters
12584 FOCUS_IN_EVENT depending on parameter.
12585 (readable_events): Calls readable_filtered_events, not filtering
12586 FOCUS_IN_EVENT.
12587 (get_filtered_input_pending): New function, filtering parameter passed
12588 to readable_filtered_events.
12589 (get_input_pending): Calls get_filtered_input_pending, not filtering
12590 FOCUS_IN_EVENT.
12591 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12592 FOCUS_IN_EVENT.
12593
12594 * xterm.h (struct x_output): Add focus_state.
12595
12596 * xterm.c (x_focus_changed): New function.
12597 (x_detect_focus_change): New function.
12598 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12599 EnterNotify and LeaveNotify to track X focus changes.
12600
126012002-06-28 Andreas Schwab <schwab@suse.de>
12602
12603 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12604
126052002-06-27 Kim F. Storm <storm@cua.dk>
12606
12607 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12608 (mode_line_string_face_prop): New variables.
12609 (store_mode_line_string): New function.
12610 (display_mode_element): Use store_mode_line_string to
12611 add mode-line string elements to mode_line_string_list
12612 when mode_line_string_list is non-nil.
12613 (Fformat_mode_line): Now returns propertized string by
12614 default. New arg NO-PROPS to ignore properties.
12615 (decode_mode_spec): Only add two dashes for %- in propertized
12616 mode-line string.
12617 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12618
126192002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12620
12621 * minibuf.c (minibuffer_completion_contents): Add return type.
12622
126232002-06-27 Juanma Barranquero <lektu@terra.es>
12624
12625 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12626
126272002-06-26 Juanma Barranquero <lektu@terra.es>
12628
12629 * fileio.c (read_file_name_cleanup): Add missing return.
12630
126312002-06-26 Richard M. Stallman <rms@gnu.org>
12632
12633 * window.c (Frecenter): Don't set force_start flag.
12634
12635 * minibuf.c (do_completion, Fminibuffer_complete_word)
12636 (Fminibuffer_completion_help): Complete just the text before point.
12637 (minibuffer_completion_contents): New function.
12638
12639 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12640
12641 * frame.c (frames_bury_buffer): Function deleted.
12642
126432002-06-25 Miles Bader <miles@gnu.org>
12644
12645 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12646 the end of callint_message, allow for a terminating '\0'.
12647
126482002-06-24 Juanma Barranquero <lektu@terra.es>
12649
12650 * w32select.c: Include composite.h
12651
12652 * w16select.c: Likewise.
12653
126542002-06-24 Kenichi Handa <handa@etl.go.jp>
12655
12656 * callproc.c (Fcall_process): If code detection is necessary,
12657 call detect_coding directly here.
12658
12659 * coding.c (detect_eol): Preserve coding->cmp_data.
12660
12661 * w16select.c (Fw16_get_clipboard_data):
12662 * w32fns.c (w32_to_x_font):
12663 * w32select.c (Fw32_get_clipboard_data):
12664 * xselect.c (selection_data_to_lisp_data):
12665 * xterm.c (XTread_socket): Disable composition handling.
12666
126672002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12668
12669 * print.c (temp_output_buffer_setup): Kill all local variables.
12670
126712002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12672
12673 * lread.c (Fread): Remove redundant and imprecise declaration.
12674
12675 * xfns.c (check_x_display_info): Use check_x_frame.
12676
12677 * .gdbinit (xprintsym): Use the new `xname' field.
12678 (xsymbol): Use it.
12679
126802002-06-22 Jason Rumney <jasonr@gnu.org>
12681
12682 * w32fns.c (file_dialog_callback): New function.
12683 (Fx_file_dialog): Allow selecting directories as well as files.
12684
126852002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12686
12687 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12688 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12689
126902002-06-17 Andrew Choi <akochoi@shaw.ca>
12691
12692 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12693 black and white before scrolling. Restore frame background and
12694 foreground color after scrolling.
12695 (do_window_update): Call XClearWindow before calling expose_frame.
12696 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12697 FRAME_FOREGROUND_PIXEL of frame.
12698
12699 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12700 test Mac command key as <ALT> key.
12701
127022002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12703
12704 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12705
12706 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12707 Lookup keys in function-key-map immediately so that key-translation-map
12708 can be applied earlier.
12709 Remove function_key_possible and key_translation_possible, replaced
12710 by checking `keytran_start < t'.
12711
12712 * .gdbinit (xsymbol): Use the new `xname' field.
12713
127142002-06-17 Andrew Choi <akochoi@shaw.ca>
12715
12716 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12717 test Mac command key as <ALT> key.
12718
12719 * mac.c (do_applescript): Call initialize_applescript if necessary
12720 when first called. Dispose of result_desc only when there is no error.
12721 (Fdo_applescript): Use %d format specifier instead of %ld.
12722
127232002-06-16 Andrew Choi <akochoi@shaw.ca>
12724
12725 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12726 of FrontWindow for cases keyDown and autoKey.
12727
12728 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12729 Vdefault_fontset to Monaco with mac-roman coding.
12730
12731 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12732 init_process before and after inclusion of Carbon/Carbon.h, resp.
12733
12734 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12735 cursor_gc.
12736 (add_font_name_table_entry): New function.
12737 (init_font_name_table): Use add_font_name_table_entry; add italic,
12738 bold, and bold-italic entries for truetype fonts.
12739
12740 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12741 for Mac too.
12742 (try_font_list) [MAC_OS]: If no font matches given registry, try
12743 fonts with any registry matching face_family.
12744 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12745
12746 * s/darwin.h: If autoconf detects the Ncurses library, define
12747 LIBS_TERMCAP to -lncurses to use it.
12748
127492002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12750
12751 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12752
127532002-06-15 Richard M. Stallman <rms@gnu.org>
12754
12755 * window.c (Fset_window_configuration): Explicitly preserve
12756 the point value that new_current_buffer had at the start.
12757
127582002-06-14 Juanma Barranquero <lektu@terra.es>
12759
12760 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12761 Fix typos.
12762
127632002-06-14 Kim F. Storm <storm@cua.dk>
12764
12765 * insdel.c (insert_1_both, insert_from_string_1)
12766 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12767 insert happened in the end_unchanged region. Otherwise, the
12768 redisplay may be confused and duplicate the last line in the
12769 buffer [seen after save-buffer when require-final-newline==t].
12770
127712002-06-13 Jason Rumney <jasonr@gnu.org>
12772
12773 * w32.c (init_environment): Remove EMACSLOCKDIR.
12774 (stat): Swap _S_IFDIR and _S_IFREG.
12775
127762002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12777
12778 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12779 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12780 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12781 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12782 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12783 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12784 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12785 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12786 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12787 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12788 SELECTION_REQUEST_EVENT, selection_clear_event to
12789 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12790 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12791 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12792 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12793 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12794 no_event to NO_EVENT.
12795
127962002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12797
12798 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12799
128002002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12801
12802 * intervals.c (textget): Don't forget to `return'.
12803 (lookup_char_property): Use XCAR/XCDR.
12804
128052002-06-12 Juanma Barranquero <lektu@terra.es>
12806
12807 * xdisp.c (Fformat_mode_line): Fix typo.
12808
128092002-06-12 Kim F. Storm <storm@cua.dk>
12810
12811 * xdisp.c (Fformat_mode_line): New function.
12812 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12813 (store_frame_title_char, store_frame_title): Use unconditionally.
12814 (init_xdisp): Defsubr Fformat_mode_line.
12815 Initialize frame_title_buf etc. unconditionally.
12816
128172002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12818
12819 * keyboard.c (read_key_sequence):
12820 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12821 things through those maps after downcasing events.
12822 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12823 applies after function-key-map.
12824 Make sure that keytran can be done in the middle in the sequence.
12825 Be careful not to throw away events past the one we downcase.
12826
12827 * lread.c (read_integer): Remove unused var `tem'.
12828 (read1): Fix int/Lisp_Object mixup.
12829
12830 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12831
128322002-06-11 Richard M. Stallman <rms@gnu.org>
12833
12834 * keyboard.c (readable_events): Ignore any number of
12835 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12836
128372002-06-09 Miles Bader <miles@gnu.org>
12838
12839 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12840 (parse_rgb_list, tty_lookup_color): New functions.
12841 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12842 (color_distance, Fcolor_distance): New functions.
12843 (TTY_SAME_COLOR_THRESHOLD): New macro.
12844 (Qtty_color_standard_values): New variable.
12845 (syms_of_xfaces): Initialize new vars & functions.
12846
128472002-06-08 Colin Walters <walters@verbum.org>
12848
12849 * textprop.c (Vchar_property_alias_alist): New variable.
12850 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12851
12852 * intervals.c (lookup_char_property): New function for looking up
12853 overlay and text properties, created from textget.
12854 (textget): Use it.
12855
12856 * intervals.h (lookup_char_property): Declare.
12857 (Vchar_property_alias_alist): Declare.
12858
12859 * buffer.c (Foverlay_get): Use lookup_char_property.
12860
128612002-06-07 Sam Steingold <sds@gnu.org>
12862
12863 * xselect.c (lisp_data_to_selection_data): Fix last change:
12864 *data_ret is not a Lisp string, while unibyte_string is.
12865
128662002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12867
12868 * xselect.c (lisp_data_to_selection_data): Fix last change:
12869 set size_ret.
12870
128712002-06-07 Andreas Schwab <schwab@suse.de>
12872
12873 * m/amdx86-64.h: New file.
12874
128752002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12876
12877 * fns.c (Fstring_make_unibyte): Doc fix.
12878
12879 * xselect.c (lisp_data_to_selection_data): If the requested type
12880 is STRING, call string_make_unibyte to encode the selected text
12881 as a string.
12882
12883 * window.c (Fset_window_hscroll): Doc fix.
12884
128852002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12886
12887 * fileio.c (choose_write_coding_system):
12888 Call select-safe-coding-system properly.
12889
128902002-06-03 Richard M. Stallman <rms@gnu.org>
12891
12892 * xdisp.c (message_with_string): Error if STRING is not a string.
12893
12894 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12895
12896 * fileio.c (choose_write_coding_system): Pass FILE arg to
12897 Vselect_safe_coding_system_function.
12898
128992002-06-03 Ken Raeburn <raeburn@gnu.org>
12900
12901 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12902
129032002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12904
12905 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12906 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12907 * keymap.c (describe_command): Likewise.
12908 * minibuf.c (read_minibuf): Likewise.
12909
12910 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12911 Cast `current_column' return value to int.
12912 (back_to_previous_visible_line_start)
12913 (reseat_at_next_visible_line_start, next_element_from_buffer):
12914 Cast `indented_beyond_p' 3rd arg to float.
12915
12916 * indent.c (last_known_column): Now a float.
12917 (current_column_1, position_indentation, current_column)
12918 (string_display_width): Return float.
12919 (Fcurrent_column): Cast `current_column' return value to int.
12920 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12921 (indented_beyond_p): Third arg now a float.
12922 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12923
12924 * lisp.h (current_column): Now returns float.
12925 (indented_beyond_p): 3rd arg now a float.
12926
129272002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12928
12929 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12930 is Qcompound_text_with_extensions.
12931
12932 * xselect.c (lisp_data_to_selection_data): Always set selection
12933 type as string if x_encode_text returns streingp non-NULL.
12934
12935 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12936
129372002-05-30 Richard M. Stallman <rms@gnu.org>
12938
12939 * window.c (Fset_window_configuration): Correct the handling
12940 of point in current buffer, to work with multiple windows.
12941
129422002-05-29 Colin Walters <walters@verbum.org>
12943
12944 * lread.c (Fread_from_string): Don't depend on order of evaluation
12945 for C function parameters.
12946
129472002-05-28 Richard M. Stallman <rms@gnu.org>
12948
12949 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12950 way for blinked-off state and for a nonselected window.
12951
12952 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12953 instead, see if the new start pos is at beginning of line.
12954
12955 * fileio.c (Fwrite_region): If START is a string, don't
12956 make any annotations.
12957
12958 * eval.c (syms_of_eval): Doc fix.
12959
129602002-05-28 Colin Walters <walters@debian.org>
12961
12962 * emacs.c (USAGE1): Add --no-splash.
12963 (standard_args): Ditto.
12964
129652002-05-28 Colin Walters <walters@gnu.org>
12966
12967 * lread.c (readchar_count): New variable.
12968 (readchar): Increment it.
12969 (unreadchar): Decrement it.
12970 (read_multibyte): Decrement it.
12971 (Vread_with_symbol_positions): New variable.
12972 (Vread_symbol_positions_list): New variable.
12973 (read_internal_start): New function, created from Fread and
12974 Fread_from_string. Handle Vread_symbol_positions_list and
12975 Vread_with_symbol_positions.
12976 (readevalloop, Fread, Fread_from_string): Use it.
12977 (read1): Use readchar_count to add symbol positions to
12978 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12979 (syms_of_lread): DEFVAR_LISP and initialize them.
12980
12981 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12982 (substitute_object_recurse, substitute_object_in_subtree)
12983 (substitute_in_interval): Prototype.
12984 (read_multibyte): Return c if it's less than zero.
12985
129862002-05-28 Kim F. Storm <storm@cua.dk>
12987
12988 * fileio.c (Fread_file_name_internal): Added brute-force
12989 speed up for using predicate file-directory-p.
12990
129912002-05-28 Kim F. Storm <storm@cua.dk>
12992
12993 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12994 New variables.
12995 (syms_of_fileio): DEFVAR_LISP them.
12996 (read_file_name_cleanup): New unwind function.
12997 (Fread_file_name_internal): Only return completions satifying
12998 Vread_file_name_predicate. Temporarily unwind protect and rebind
12999 default-directory while checking completions against the predicate.
13000 (Fread_file_name): Added PREDICATE argument. Specbind it to
13001 Vread_file_name_predicate during completion.
13002 Call Vread_file_name_function to read the file name if non-nil.
13003
13004 * lisp.h (Fread_file_name): Now has 6 args.
13005
13006 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13007 predicate for Fread_file_name when reading directory name.
13008 Supply Qnil for predicate in other calls to Fread_file_name.
13009
130102002-05-26 Miles Bader <miles@gnu.org>
13011
13012 * term.c (tty_capable_p): New function.
13013 * dispextern.h (tty_capable_p): New function declaration.
13014 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13015 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13016
130172002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13018
13019 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13020 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13021 (Vwrite_region_annotate_functions): Docstring fix.
13022
130232002-05-23 Kim F. Storm <storm@cua.dk>
13024
13025 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13026 phys_cursor's hpos is overwritten. This is still not completely
13027 correct, as it doesn't really make sense to use hpos at all to
13028 get the cursor glyph (as that is relative to the width of the
13029 characters on the line, which may have changed during the update).
13030
130312002-05-22 Jason Rumney <jasonr@gnu.org>
13032
13033 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13034 Lisp_Object.
13035 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13036 Use modified enumfont_t struct.
13037
13038 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13039
13040 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13041 Handle the `hbar' cursor type.
13042 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13043
13044 * w32fns.c (Qhbar): New variable.
13045 (x_specified_cursor_type): Use it.
13046
130472002-05-21 Ken Raeburn <raeburn@gnu.org>
13048
13049 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13050 now, when the address is needed.
13051
130522002-05-21 Colin Walters <walters@gnu.org>
13053
13054 * Makefile.in (shortlisp): Add font-core.el.
13055
130562002-05-20 Richard M. Stallman <rms@gnu.org>
13057
13058 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13059
13060 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13061 equivalent key bindings here.
13062
130632002-05-20 Ken Raeburn <raeburn@gnu.org>
13064
13065 Change symbol structure to contain a lisp object for the symbol
13066 name:
13067 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13068 object field named "xname".
13069 (SYMBOL_NAME): New macro.
13070 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13071 name field.
13072 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13073 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13074 instead of name field.
13075 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13076 SYMBOL_NAME instead of XSYMBOL and name field.
13077 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13078 instead of XSYMBOL and name field.
13079 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13080 and SYMBOL_NAME instead of XSYMBOL and name field.
13081 * coding.c (Fread_coding_system, code_convert_region1)
13082 (code_convert_string1, code_convert_string_norecord)
13083 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13084 XSYMBOL and name field.
13085 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13086 (Fmake_variable_buffer_local, Fmake_local_variable)
13087 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13088 of XSYMBOL and name field.
13089 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13090 XSYMBOL and name field.
13091 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13092 instead of XSYMBOL and name field.
13093 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13094 XSYMBOL and name field.
13095 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13096 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13097 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13098 instead of XSYMBOL and name field.
13099 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13100 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13101 (parse_solitary_modifier, Fexecute_extended_command):
13102 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13103 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13104 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13105 of XSYMBOL and name field.
13106 (describe_command, describe_translation): Use SYMBOL_NAME and
13107 assignment instead of XSYMBOL and name field and XSETSTRING.
13108 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13109 instead of XSYMBOL and name field.
13110 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13111 name field and XSETSTRING.
13112 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13113 of XSYMBOL and name field.
13114 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13115 assignment instead of XSYMBOL and name field and XSETSTRING.
13116 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13117 XSTRING instead of XSYMBOL and name field.
13118 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13119 and XSTRING instead of XSYMBOL and name field.
13120 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13121 and XSTRING instead of XSYMBOL and name field.
13122 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13123 XSTRING instead of XSYMBOL and name field.
13124 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13125 of XSYMBOL and name field.
13126 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13127 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13128
131292002-05-19 Ken Raeburn <raeburn@gnu.org>
13130
13131 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13132 and XCDR real rvalues in most configurations.
13133
13134 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13135 Don't take the address of the cdr part of a cons cell; instead, track
13136 the parent cell and call XSETCDR, or set the variable for the head
13137 of the list if we haven't started down the list yet.
13138
131392002-05-19 Richard M. Stallman <rms@gnu.org>
13140
13141 * doc.c (reread_doc_file): Don't ask for confirmation.
13142
131432002-05-18 Jason Rumney <jasonr@gnu.org>
13144
13145 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13146 (xbm_load_image): Use it.
13147 (xbm_load): Ditto.
13148 (xbm_read_bitmap_data): Reverted to xfns.c version.
13149 From David Ponce <david@dponce.com>.
13150
131512002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13152
13153 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13154 2.02 and later.
13155
131562002-05-16 Juanma Barranquero <lektu@terra.es>
13157
13158 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13159
131602002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13161
13162 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13163 meaningful test.
13164 (read_char_minibuf_menu_prompt): Fix typo.
13165
131662002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13167
13168 * eval.c (Fcommandp): Doc fix.
13169
131702002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13171
13172 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13173 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13174 (Fset_keymap_parent): Gcpro a bit more.
13175 (access_keymap): Gcpro around meta_map call and around the main loop.
13176 (get_keyelt): Gcpro when following indirect references.
13177 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13178 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13179 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13180 Remove useless ad-hoc remap code.
13181
131822002-05-13 Richard M. Stallman <rms@gnu.org>
13183
13184 * search.c (search_buffer): Give up boyer moore search if inverse
13185 translation change charset_base.
13186
131872002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13188
13189 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13190 characters is carried over from the previous block of text, adjust
13191 coding->produced to account for the extra character.
13192
131932002-05-11 Andreas Schwab <schwab@suse.de>
13194
13195 * coding.c (intersection): Keep the elements of the returned list
13196 in the same order as in the first list.
13197
131982002-05-11 Kim F. Storm <storm@cua.dk>
13199
13200 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13201 only update cmm_size if realloc actually succeeds.
13202 Testing with initial size of 2 elements revealed that using
13203 realloc on GNU/Linux would cause a random trap in xmalloc
13204 later on, so I rewrote the code to use malloc/bcopy/free instead
13205 of realloc.
13206
132072002-05-10 Jason Rumney <jasonr@gnu.org>
13208
13209 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13210
132112002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13212
13213 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13214 parens, to ensure correct evaluation order.
13215
132162002-05-10 Kim F. Storm <storm@cua.dk>
13217
13218 * keymap.c (Vemulation_mode_map_alists): New variable.
13219 (syms_of_keymap): DEFVAR_LISP it.
13220 (current_minor_maps): Process keymap alists in that list before
13221 minor-mode-overriding-map-alist and minor-mode-map-alist.
13222
132232002-05-09 Richard M. Stallman <rms@gnu.org>
13224
13225 * search.c (Freplace_match): Doc fix.
13226
132272002-05-09 Kim F. Storm <storm@cua.dk>
13228
13229 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13230 Enlarge cursor rectangle drawn around image with non-zero relief.
13231
13232 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13233 Enlarge cursor rectangle drawn around image with non-zero relief.
13234
13235 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13236 Enlarge cursor rectangle drawn around image with non-zero relief.
13237
132382002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13239
13240 * xselect.c (lisp_data_to_selection_data): Don't set selection
13241 type if comes from the Lisp object's car. If the selection
13242 contains a pure ASCII text, always return QSTRING as its type.
13243
132442002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13245
13246 * mac.c (mac-cut-function): Doc fix.
13247
132482002-05-05 Richard M. Stallman <rms@gnu.org>
13249
13250 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13251
132522002-05-04 Jason Rumney <jasonr@gnu.org>
13253
13254 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13255 for event-click-count.
13256
13257 * process.c (init_process): Only add server subfeature if we can
13258 use non-blocking I/O.
13259
132602002-05-04 Andrew Choi <akochoi@shaw.ca>
13261
13262 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13263 repeatedly.
13264
132652002-05-03 Jason Rumney <jasonr@gnu.org>
13266
13267 * process.c (Fmake_network_process): Only support server sockets
13268 when we can make them non-blocking.
13269
13270 * s/ms-w32.h (HAVE_SELECT): Define.
13271
13272 * w32.h (FILE_NDELAY): New flag.
13273
13274 * w32.c (sys_getpeername, fcntl): New functions.
13275 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13276
13277 * w32proc.c: include sys/file.h.
13278
132792002-05-03 Colin Walters <walters@verbum.org>
13280
13281 * callproc.c (Vgame_score_directory): Renamed to
13282 Vshared_game_score_directory.
13283
132842002-04-30 Richard M. Stallman <rms@gnu.org>
13285
13286 * s/gnu.h [emacs]: Include stdio.h.
13287 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13288
13289 * eval.c (do_autoload): Error if called while preparing to dump.
13290
13291 * fns.c (Frequire): Error if need to load while preparing to dump.
13292
132932002-04-28 Colin Walters <walters@verbum.org>
13294
13295 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13296 Default to "~/.emacs.d/games".
13297
132982002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13299
13300 * lread.c (openp): Change arg exec_only to predicate.
13301 (build_load_history): Use XCAR/XCDR.
13302 (Flocate_file_internal): New fun.
13303 (syms_of_lread): Defsubr it.
13304 (Fload): Update call to openp.
13305
13306 * lisp.h (openp): Update prototype.
13307
13308 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13309 * w32proc.c (sys_spawnve):
13310 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13311 * w32.c (check_windows_init_file):
13312 * sound.c (Fplay_sound_internal):
13313 * process.c (Fstart_process):
13314 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13315 * mac.c (run_mac_command):
13316 * emacs.c (init_cmdargs):
13317 * callproc.c (Fcall_process): Update call to openp.
13318
13319 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13320
13321 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13322
133232002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13324
13325 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13326 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13327
133282002-04-28 Richard M. Stallman <rms@gnu.org>
13329
13330 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13331
13332 * eval.c (Fcommandp): New arg for_call_interactively.
13333 * lisp.h (Fcommandp): Declare new arg.
13334
133352002-04-28 Jason Rumney <jasonr@gnu.org>
13336
13337 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13338
13339 * w32.c (stat, fstat): Use file index information to generate
13340 inodes for directories where available.
13341
133422002-04-26 Andrew Choi <akochoi@shaw.ca>
13343
13344 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13345 [HAVE_CARBON]: Include Mac object files.
13346
13347 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13348 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13349 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13350 MAC_OSX, and MAC_OS instead of macintosh.
13351
13352 * editfns.c [MAC_OS8]: Include stdio.h.
13353
13354 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13355
13356 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13357 Apple Monaco.
13358
78819ebb 13359 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13360 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13361 calling select.
13362
13363 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13364
13365 * tparam.c [MAC_OSX]: Don't define BC and UP.
13366
13367 * config.in [HAVE_CARBON]: Add.
13368
13369 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13370 Move here from mac/src and mac/inc.
13371
13372 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13373
133742002-04-26 Gerd Moellmann <gerd@gnu.org>
13375
13376 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13377 Compute phys_cursor_width from the x position returned
13378 by x_draw_glyhs, which is cheaper.
13379 (x_display_and_set_cursor): Compute the buffer-local value
13380 of `cursor-in-non-selected-windows' only when needed.
13381
133822002-04-25 Gerd Moellmann <gerd@gnu.org>
13383
13384 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13385 cursor on a stretch glyph has a width that depends on
13386 x_stretch_cursor_p.
13387
133882002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13389
13390 * abbrev.c (abbrev-start-location): Doc fix.
13391
13392 * indent.c (Fvertical_motion): Fix last change.
13393
133942002-04-25 Gerd Moellmann <gerd@gnu.org>
13395
13396 * indent.c (Fvertical_motion): Move to the start of the line
13397 containing PT before moving up or down.
13398
133992002-04-24 Gerd Moellmann <gerd@gnu.org>
13400
13401 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13402 case of writing a whole row, more or less analogous to the case of
13403 writing only parts of a row.
13404
13405 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13406 0 for NO_CURSOR.
13407
13408 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13409
134102002-04-23 Colin Walters <walters@verbum.org>
13411
13412 * buffer.c (syms_of_buffer): Doc fix.
13413
134142002-04-23 Gerd Moellmann <gerd@gnu.org>
13415
13416 * xterm.c (notice_overwritten_cursor): Handle the special case
13417 of the cursor being in the first blank non-text line at the
13418 end of a window.
13419
13420 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13421 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13422 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13423 bar cursors only, to make phys_cursor_width contain what its name
13424 suggests.
13425 (notice_overwritten_cursor): Consider the cursor image erased if
13426 the output area intersects the cursor image in y-direction.
13427
134282002-04-23 Simon Marshall <simon@gnu.org>
13429
13430 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13431 to XC_hand2.
13432
134332002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13434
13435 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13436
134372002-04-22 Kim F. Storm <storm@cua.dk>
13438
13439 * textprop.c (remove_properties): Fixed trap for malformed plist.
13440
134412002-04-22 Richard M. Stallman <rms@gnu.org>
13442
13443 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13444
13445 * window.c (make_window): Initialize height_fixed_p,
13446 last_cursor_off_p, and p->cursor_off_p slots.
13447
134482002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13449
13450 * fns.c (use-dialog-box): Doc fix.
13451
134522002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13453
13454 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13455 variables `row', `i' and `area'.
13456 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13457 toolkit library.
13458
134592002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13460
13461 * xfaces.c (clear_font_table): Don't free the default font of
13462 a frame even if it's on another display.
13463 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13464 that could be Qt.
13465
134662002-04-19 Juanma Barranquero <lektu@terra.es>
13467
13468 * indent.c (Fmove_to_column): Remove unused local variable
13469 `next_boundary_byte'.
13470 (current_column_1): Likewise.
13471
134722002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13473
13474 * msdos.c (Qhbar): New variable.
13475 (syms_of_msdos): Intern and staticpro it.
13476 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13477 cursor type.
13478
134792002-04-19 Dave Lambert <dlambert@acm.org>
13480
13481 Theses change implement an underscore-like (`hbar') cursor.
13482
13483 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13484
13485 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13486 Handle the `hbar' cursor type.
13487 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13488
13489 * xfns.c (Qhbar): New variable.
13490 (syms_of_xfns): Intern and staticpro it.
13491 (x_specified_cursor_type): Handle `hbar' cursor.
13492
13493 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13494 not defined.
13495
134962002-04-18 Richard M. Stallman <rms@gnu.org>
13497
13498 * textprop.c (remove_properties): New arg LIST allows scanning
13499 either a list or a plist.
13500 (interval_has_some_properties_list): New function, like
13501 interval_has_some_properties using list instead of plist.
13502 All callers changed.
13503 (Fremove_list_of_text_properties): New function.
13504 (syms_of_textprop): Defsubr it.
13505
135062002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13507
13508 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13509
135102002-04-17 Juanma Barranquero <lektu@terra.es>
13511
13512 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13513
135142002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13515
13516 * window.c (coordinates_in_window): Don't report on margin area
13517 if its width is zero.
13518
135192002-04-16 Jason Rumney <jasonr@gnu.org>
13520
13521 * w32fns.c (Fx_file_dialog): Decode file name before using.
13522
13523 * w32term.c (construct_drag_n_drop): Likewise.
13524
135252002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13526
13527 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13528 store load-history in pure space.
13529
13530 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13531
135322002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13533
13534 * xterm.c (Qlatin_1, Qutf_8): New vars.
13535 (syms_of_xterm): Initialize them.
13536 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13537 decoding the output of X*LookupString.
13538 Always use latin-1 to decode the output of XLookupString.
13539 Try Xutf8LookupString if XmbLookupString failed.
13540
13541 * region-cache.c (new_region_cache): Use BEG.
13542
135432002-04-16 Gerd Moellmann <gerd@gnu.org>
13544
13545 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13546 configuration files.
13547 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13548 returns 0.
13549
135502002-04-15 Andreas Schwab <schwab@suse.de>
13551
13552 * config.in: Regenerated using autoheader.
13553
13554 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13555 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13556 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13557 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13558 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13559 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13560 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13561 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13562 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13563 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13564 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13565 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13566 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13567 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13568 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13569 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13570 STACK_DIRECTION, now set by autoconf.
13571
135722002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13573
13574 * dispnew.c (marginal_area_string): Sort arguments.
13575
13576 * dispextern.h (marginal_area_string): Add prototype.
13577
135782002-04-13 Richard M. Stallman <rms@gnu.org>
13579
13580 * fileio.c (Finsert_file_contents):
13581 Don't call temp_output_buffer_setup--do just part, by hand.
13582
13583 * coding.c (run_pre_post_conversion_on_str):
13584 Don't call temp_output_buffer_setup--do just part, by hand.
13585
13586 * keyboard.c (command_loop_1): Don't call start_hourglass
13587 or cancel_hourglass when executing a macro.
13588
13589 * marker.c (count_markers): New function.
13590
13591 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13592 grow without limit. Move recently used elements to the front.
13593
135942002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13595
13596 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13597
135982002-04-12 Gerd Moellmann <gerd@gnu.org>
13599
13600 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13601 rows marginal areas.
13602 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13603 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13604
13605 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13606
136072002-04-12 Dave Love <fx@gnu.org>
13608
13609 * dispnew.c (marginal_area_string): New.
13610
13611 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13612 (Qleft_margin, Qright_margin): Declare.
13613 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13614
13615 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13616 note_mode_line_highlight and extended.
13617
13618 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13619 (make_lispy_event): Deal with mouse events in margins.
13620
136212002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13622
13623 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13624
13625 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13626 than deactivating the mark if tmm is set to `lambda'.
13627 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13628 Use a single event for HELP_EVENT.
13629 (Fexecute_extended_command): Save last_point_position.
13630
136312002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13632
13633 * lisp.h (Fpropertize): Add prototype.
13634
13635 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13636
136372002-04-10 Colin Walters <walters@verbum.org>
13638
13639 * config.in: Add HAVE_SHARED_GAME_DIR.
13640
13641 * callproc.c: (Vgame_score_directory): New variable.
13642 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13643
136442002-04-10 Richard M. Stallman <rms@gnu.org>
13645
13646 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13647
136482002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13649
13650 * minibuf.c (read_minibuf): Use empty_string.
13651 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13652 Short-circuit the search as soon as it "failed".
13653 (Fall_completions): Allow lambda forms and lists of strings for alist.
13654 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13655 when require_match is nil.
13656 (Ftest_completion): Rename from `test_completion' and export to elisp.
13657 Call the predicate also when alist is a list.
13658 Obey Vcompletion_regexp_list.
13659 (do_completion, Fminibuffer_complete_and_exit): Use it.
13660 (Fassoc_string): Rename from `assoc_for_completion'.
13661 Allow list of strings as well and export to elisp.
13662
136632002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13664
13665 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13666
136672002-04-08 Juanma Barranquero <lektu@terra.es>
13668
13669 * w32.c (sys_accept): Don't hide variable `s'.
13670
136712002-04-05 Gerd Moellmann <gerd@gnu.org>
13672
13673 * callint.c (Fcall_interactively): Use INTEGERP instead of
13674 NUMBERP for checking Vhistory_length.
13675
136762002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13677
13678 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13679 Doc fix to reflect it.
13680
136812002-04-04 Richard M. Stallman <rms@gnu.org>
13682
13683 * xdisp.c (display_mode_element): New arg RISKY.
13684 Disregard text props found or specified within a variable
13685 that isn't marked risky-local-variable.
13686 (Qrisky_local_variable): New variable.
13687 (syms_of_xdisp): Init and staticpro it.
13688
136892002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13690
13691 * undo.c (record_point): New fun.
13692 (record_delete, record_insert): Use it.
13693
136942002-04-03 Juanma Barranquero <lektu@terra.es>
13695
13696 * doc.c (Fdocumentation): Add missing parentheses.
13697 (Fdocumentation_property): Likewise.
13698
136992002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13700
13701 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13702 data is 0, just return nil.
13703
137042002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13705
13706 * msdos.c (syms_of_msdos): Fix last change with
13707 mouse_autoselect_window.
13708
137092002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13710
13711 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13712 mouse_autoselect_window.
13713
137142002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13715
13716 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13717 with system-specific keysyms. Use it also for unknown function keys.
13718
13719 * doc.c (reread_doc_file): Return whether reload was attempted.
13720 (Fdocumentation, Fdocumentation_property): Don't try to reload
13721 if the doc is 0 and only ask once.
13722
13723 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13724
137252002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13726
13727 * keyboard.c (read_char): If the event was Qselect_window,
13728 restore timer_idleness_start_time to its previous value.
13729
13730 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13731
137322002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13733
13734 * region-cache.c (new_region_cache): Use BEG.
13735
13736 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13737 Use BEG and BEG_BYTE.
13738
13739 * doc.c (get_doc_string): Return nil if the location is wrong.
13740 (reread_doc_file): New fun.
13741 (Fdocumentation, Fdocumentation_property):
13742 Call it if get_doc_string fails.
13743 (Fsnarf_documentation): Make it work for a dumped Emacs.
13744
13745 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13746 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13747
13748 * charset.c (Fstring): Allow 0 arguments.
13749
13750 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13751
13752 * process.c (DATAGRAM_CONN_P, list_processes_1)
13753 (Fprocess_datagram_address, Fset_process_datagram_address)
13754 (Fset_network_process_options, server_accept_connection):
13755 Fix some int/Lisp_Object confusions (thank you union types).
13756
137572002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13758
13759 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13760
13761 * w32term.c: Likewise.
13762 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13763
13764 * keyboard.c (Qselect_window): New symbol.
13765 (head_table): Use it.
13766 (keys_of_keyboard): Bound select-window event to handle-select-window.
13767 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13768
13769 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13770 (last_window): New variable.
13771 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13772 (note_mouse_movement): Remove reimplemented code in #if 0.
13773 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13774 Emacs windows.
13775
13776 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13777
137782002-03-31 Gerd Moellmann <gerd@gnu.org>
13779
13780 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13781 Callers changed.
13782
137832002-03-30 Richard M. Stallman <rms@gnu.org>
13784
13785 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13786 loop whenever it stops making progress.
13787
13788 * widget.c (set_frame_size): Don't call change_frame_size.
13789
137902002-03-30 Gerd Moellmann <gerd@gnu.org>
13791
13792 * dispnew.c (direct_output_for_insert):
13793 Call mark_window_display_accurate.
13794
137952002-03-29 Jason Rumney <jasonr@gnu.org>
13796
13797 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13798
137992002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13800
13801 * Makefile.in (lread.o): Depend on coding.h.
13802
13803 * lread.c (openp, Fload): Encode the file name before passing it
13804 to `stat', `access', and `emacs_open'.
13805 (openp): GCPRO the encoded file name. Don't recompute Lisp
13806 strings unnecessarily.
13807
138082002-03-29 Kim F. Storm <storm@cua.dk>
13809
13810 * fns.c (Flax_plist_put): Doc fix.
13811
138122002-03-28 Miles Bader <miles@gnu.org>
13813
13814 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13815
138162002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13817
13818 * process.c (set-network-process-options): Add usage.
13819 (make-network-process): Doc fix.
13820
138212002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13822
13823 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13824
138252002-03-26 Richard M. Stallman <rms@gnu.org>
13826
13827 * fns.c (Fsubstring_no_properties): New function.
13828 (Flax_plist_get, Flax_plist_put): New functions.
13829 (syms_of_fns): defsubr them.
13830
13831 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13832 don't test or alter w->update_mode_line.
13833
13834 * window.c (Fdisplay_buffer): Doc fix.
13835
138362002-03-24 Richard M. Stallman <rms@gnu.org>
13837
13838 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13839
138402002-03-24 Gerd Moellmann <gerd@gnu.org>
13841
13842 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13843 (Fdefmacro): Handle `(declare ...)'.
13844 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13845 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13846
138472002-03-24 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13850 (xbm_file_p): Add prototypes.
13851 (xbm_format, xbm_image_p): Sync with xfns.c.
13852 (reflect_byte): New function.
13853 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13854 (xbm_load_image): Create bitmaps with a depth of 1.
13855 (init_xfns): Enable XBM images.
13856
138572002-03-23 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13860 correctly. Do not pass up_modifier to keyboard buffer.
13861
13862 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13863
138642002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13865
13866 * Makefile.in (bootstrapclean): New target.
13867 (bootstrap-temacs, bootstrap-doc): Remove.
13868 (bootstrap-emacs): Use a bog-standard `temacs'.
13869 Don't bother to build a DOC file.
13870
13871 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13872
13873 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13874 in temacs even if !CANNOT_DUMP.
13875 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13876
13877 * alloc.c (check_pure_size): Only output a warning.
13878
138792002-03-22 Jason Rumney <jasonr@gnu.org>
13880
13881 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13882 supported.
13883
13884 * w32term.c (zv_bits): Declare as short, for word alignment.
13885 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13886 (syms_of_w32term): Define x-use-underline-position-properties.
13887
13888 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13889 (clear_image_cache): Block input, fix logic, clear matrices in
13890 all frames that share this cache.
13891
138922002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13893
13894 * emacs.c (main): Update the Copyright year in the blurb printed
13895 by "emacs --version".
13896
13897 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13898
13899 * xterm.c (XTread_socket): If XK_ISO_Lock and
13900 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13901 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13902
139032002-03-21 Kim F. Storm <storm@cua.dk>
13904
13905 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13906 menu-bar bindings in keymap and local-map properties _are_ used.
13907 But try keymap property first in accordance with 2002-01-03 patch.
13908 Added comment describing why this is not always reliable.
13909 (tool_bar_items): Ditto for tool-bar.
13910
139112002-03-21 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32fns.c (x_clear_image_1): Disable color table code.
13914
139152002-03-21 Kim F. Storm <storm@cua.dk>
13916
13917 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13918 removed the wrong version of the DEFUN macro; fixed it.
13919
13920 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13921 Fmember rather than Fmemq).
13922 (Fprovide): Check that subfeatures is a list.
13923
13924 * process.c (QCfeature, QCdatagram): Removed variables.
13925 (QCtype, Qdatagram): New variables.
13926 (network_process_featurep): Removed function.
13927 (Fmake_network_process): Removed :feature check.
13928 Use :type 'datagram instead of :datagram t to create a datagram
13929 socket. This allows us to add other connection types (e.g. raw
13930 sockets) later in a consistent manner.
13931 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13932 supported subfeatures for feature make-network-process.
13933 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13934 Intern and staticpro QCtype and Qdatagram.
13935 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13936
13937 * xfns.c: (QCtype): Remove duplicate declaration and
13938 initialization (is now declared in process.c).
13939
13940 * w32fns.c: (QCtype): Remove duplicate declaration and
13941 initialization (is now declared in process.c).
13942
139432002-03-21 Richard M. Stallman <rms@gnu.org>
13944
13945 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13946 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13947 when jumping to `fail' to avoid undoing reg changes in the
13948 last iteration of the loop.
13949 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13950
13951 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13952 Depend on process.h.
13953
139542002-03-20 Jason Rumney <jasonr@gnu.org>
13955
13956 Most of the following changes are still conditional on HAVE_IMAGES
13957 which is not set by default on Windows.
13958
13959 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13960
13961 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13962 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13963 (four_corners_best, x_clear_image_1, x_clear_image)
13964 (x_alloc_image_color, postprocess_image)
13965 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13966 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13967 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13968
13969 * w32gui.h (struct XImage): Define.
13970
13971 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13972 extract mouse co-ordinates.
13973
139742002-03-20 Jason Rumney <jasonr@gnu.org>
13975
13976 * w32.c (init_winsock): Dynamically load new server and UDP
13977 socket functions.
13978 (socket_to_fd): New function.
13979 (sys_socket): Use it.
13980 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13981 (sys_recvfrom, sys_sendto): New wrapper functions.
13982
13983 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13984 and initialization.
13985
13986 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13987
139882002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13989
13990 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13991 Don't use "sun" as a variable, it's a predefined constant on Sun
13992 machines.
13993
139942002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13995
13996 * bytecode.c (Fbyte_code): Revert last change.
13997
139982002-03-19 Kim F. Storm <storm@cua.dk>
13999
14000 * makefile.w32-in (LIBS): Add $(WSOCK32).
14001 From David Ponce <dponce@voila.fr>.
14002
140032002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14004
14005 * process.c (wait_reading_process_input): Move variables `pname'
14006 and `pnamelen' down where they are used.
14007
14008 * bytecode.c (Fbyte_code): Discard unused computed value to
14009 prevent gcc warning.
14010
14011 * lisp.h (Fplist_member): Add prototype.
14012
140132002-03-18 Kim F. Storm <storm@cua.dk>
14014
14015 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14016 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14017
14018 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14019 Remove explicit GNU_LINUX settings for datagram support.
14020
140212002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14022
14023 * process.c (Fmake_network_process): Remove unused variable `sa'.
14024 Doc fix. Add usage:.
14025 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14026
140272002-03-17 Richard M. Stallman <rms@gnu.org>
14028
14029 * xdisp.c (cursor_type_changed): New variable.
14030 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14031 Clear it when clearing windows_or_buffers_changed.
14032 (try_cursor_movement, redisplay_window, try_window_id)
14033 (try_window_reusing_current_matrix): Test cursor_type_changed
14034 along with windows_or_buffers_changed.
14035
14036 * window.h (cursor_type_changed): New variable.
14037
14038 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14039 not update_mode_lines, and always set it to 1.
14040
14041 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14042 if no frames needed redrawing.
14043
140442002-03-17 Kim F. Storm <storm@cua.dk>
14045
14046 The following changes add support for network server processes,
14047 datagram connections, and local (unix) sockets.
14048
14049 * process.h (struct Lisp_Process): New member log.
14050 Doc fix: Member command used to indicate stopped network process.
14051 Doc fix: Member childp contains plist for network process.
14052 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14053
14054 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14055 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14056 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14057 New variables.
14058 (NETCONN1_P): New macro.
14059 (DATAGRAM_SOCKETS): New conditional symbol.
14060 (datagram_address): New array.
14061 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14062 (status_message): Use concat3.
14063 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14064 for a stopped network process.
14065 (Fset_process_buffer): Update contact plist for network process.
14066 (Fset_process_filter): Ditto. Don't enable input for stopped
14067 network processes. Server must listen, even if filter is t.
14068 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14069 New functions.
14070 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14071 (Fprocess_contact): Added KEY argument. Handle datagrams.
14072 (list_processes_1): Optionally show only processes with the query
14073 on exit flag set. Dynamically adjust column widths. Omit tty
14074 column if not needed. Report stopped network processes.
14075 Identify server and datagram network processes.
14076 (Flist_processes): New optional arg `query-only'.
14077 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14078 (conv_lisp_to_sockaddr, set_socket_options)
14079 (network_process_featurep, unwind_request_sigio): New helper functions.
14080 (Fprocess_datagram_address, Fset_process_datagram_address):
14081 (Fset_network_process_options): New lisp functions.
14082 (Fopen_network_stream): Removed. Now defined in simple.el.
14083 (Fmake_network_process): New lisp function. Code is based on previous
14084 Fopen_network_stream, but heavily reworked with new property list based
14085 argument list, support for datagrams, server processes, and local
14086 sockets in addition to old client-only functionality.
14087 (server_accept_connection): New function.
14088 (wait_reading_process_input): Use it to handle incoming connects.
14089 Do not enable input on a new connection if process is stopped.
f63fd14e 14090 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14091 (send_process): Handle datagram sockets.
14092 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14093 network process is indicated by setting command field to t .
14094 (Fprocess_send_eof): No-op if datagram connection.
14095 (Fstatus_notify): Don't read input for a stream server socket or a
14096 stopped network process.
14097 (init_process): Initialize datagram_address array.
14098 (syms_of_process): Intern and staticpro new variables, defsubr new
14099 functions.
14100
141012002-03-16 Jason Rumney <jasonr@gnu.org>
14102
14103 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14104 startup case.
14105
141062002-03-16 Richard M. Stallman <rms@gnu.org>
14107
14108 * xdisp.c (redisplay_internal, redisplay_windows):
14109 Use list_of_error to call internal_condition_case_1.
14110 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14111 so as to catch all errors with no possibility of debugger redisplay.
14112 (list_of_error): New variable.
14113 (syms_of_xdisp): Init and staticpro it.
14114
14115 * print.c (print_object): Delete `\ ' from printed rep of frame.
14116
141172002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14118
14119 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14120 until its implementation is fixed.
14121
141222002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14123
14124 * xfns.c (png_load): Remove unused variable `gamma_str'.
14125
141262002-03-14 Richard M. Stallman <rms@gnu.org>
14127
14128 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14129
141302002-03-14 Miles Bader <miles@gnu.org>
14131
14132 * intervals.c (adjust_for_invis_intang): New function.
14133 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14134 work for dealing with invisible+intangible regions. Do so before
14135 and after both forward and backward movements, to handle both
14136 front-sticky and rear-sticky cases.
14137 * textprop.c (text_property_stickiness): Function moved here from
14138 `editfns.c'.
14139 * intervals.h (text_property_stickiness): New declaration.
14140 * editfns.c (char_property_eq): Function removed.
14141 (text_property_stickiness): Function moved to `textprop.c'.
14142
141432002-03-13 Jason Rumney <jasonr@gnu.org>
14144
14145 * config.in: Add STRFTIME_NO_POSIX2.
14146
14147 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14148 and %OX when underlying strftime does not.
14149
141502002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14151
14152 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14153 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14154 line) to avoid annoying flicker.
14155 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14156 (XTread_socket): Mark it static.
14157
14158 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14159
141602002-03-13 Kim F. Storm <storm@cua.dk>
14161
14162 * puresize.h (BASE_PURESIZE): Increase to 775000.
14163
141642002-03-12 Juanma Barranquero <lektu@terra.es>
14165
14166 * editfns.c (syms_of_editfns): Fix typo.
14167
141682002-03-12 Gerd Moellmann <gerd@gnu.org>
14169
14170 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14171 Include termopt.h for interrupt_input.
14172
141732002-03-11 Andreas Schwab <schwab@suse.de>
14174
14175 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14176
141772002-03-11 Gerd Moellmann <gerd@gnu.org>
14178
14179 * xterm.c (note_mouse_movement): Put code for
14180 x_autoselect_window_p in #if 0.
14181
14182 * lread.c (Fload): Don't assume that message_with_string uses the
14183 string it is given like a C string.
14184
141852002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14186
78819ebb 14187 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14188
14189 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14190 x_session_have_connection.
14191 (x_initialize): Add call to x_session_initialize.
14192
14193 * termhooks.h (enum event_kind): Add save_session_event.
14194
14195 * keyboard.c: Add Emacs event save_session_event.
14196
14197 * emacs.c (main): Add call to syms_of_xsmfns.
14198
78819ebb 14199 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14200
14201 * config.in: Add HAVE_X_SM.
14202
14203 * Makefile.in (LIBXT): Add -lSM -lICE
14204 if HAVE_X_SM and not USE_X_TOOLKIT.
14205 (XOBJ): New file xsmfns.c added.
14206
14207 * xsmfns.c: New file for X session management.
14208
142092002-03-09 Jason Rumney <jasonr@gnu.org>
14210
14211 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14212 read-only when setting modified time.
14213
142142002-03-08 Gerd Moellmann <gerd@gnu.org>
14215
14216 * xdisp.c (move_it_vertically_backward): At the end of the function,
14217 when moving forward by lines, treat terminal frames specially.
14218
14219 * keyboard.c (echo_char): Make sure to add a separator between
14220 keys even if echo_dash hasn't been called.
14221
14222 * xdisp.c: Use new string macros.
14223 (update_echo_area): Pass number of bytes to message3 instead of
14224 number of chars.
14225 (set_message_1): Don't access a string's size_byte directly.
14226 (decode_mode_spec_coding): Use number of bytes of eoltype string
14227 instead number of chars.
14228
14229 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14230
142312002-03-08 Juanma Barranquero <lektu@terra.es>
14232
14233 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14234 24-bit.
14235
142362002-03-06 Jason Rumney <jasonr@gnu.org>
14237
14238 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14239
142402002-03-06 Gerd Moellmann <gerd@gnu.org>
14241
14242 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14243 (cancel_echoing, echo_length, echo_truncate): Changed to
14244 work with new kboard definition.
14245 (echo_now): Use message3_nolog instead of message2_nolog.
14246
14247 * alloc.c (mark_kboards): Mark echo_string.
14248
14249 * keyboard.h (ECHOBUFSIZE): Removed.
14250 (struct kboard): Member echoptr removed, member echobuf renamed
14251 to echo_string.
14252
14253 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14254 message3 instead of message2 to display the message using STRING's
14255 text properties.
14256
142572002-03-05 Andreas Schwab <schwab@suse.de>
14258
14259 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14260
142612002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14262
14263 * frame.c (default-frame-alist): Explain that setting it doesn't
14264 affect existing frames.
14265
142662002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14267
14268 * indent.c (skip_invisible): Fix my brain fart.
14269
14270 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14271
142722002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14273
14274 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14275 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14276 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14277 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14278 and variables to use EMACS_INT instead of just int.
14279
14280 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14281
142822002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14283
14284 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14285 environment, pass it down with corrected value.
14286
142872002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14288
14289 * lread.c (read_filtered_event): Do not call start_hourglass
14290 before returning.
14291
142922002-03-04 Juanma Barranquero <lektu@terra.es>
14293
14294 * w32term.c (x_display_and_set_cursor): Fix typo.
14295
142962002-03-03 Richard M. Stallman <rms@gnu.org>
14297
14298 * fileio.c (Fmake_temp_name): Doc fix.
14299
143002002-03-03 Gary Wong <gtw@gnu.org>
14301
14302 * termcap.c [!emacs]: Replace ospeed for building standalone
14303 libtermcap, for binary compatibility.
14304
14305 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14306
143072002-03-03 Richard M. Stallman <rms@gnu.org>
14308
14309 * xrdb.c (file_p): Rename arg `path' to `filename'.
14310
14311 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14312 only if it is an integer.
14313
14314 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14315 If png_get_sRGB gives an answer, call png_set_gamma
14316 using the default image gamma value.
14317
14318 * lread.c (read1): When reading from a file, default string to
14319 multibyte only if it has some multibyte characters.
14320
14321 * print.c (print_object): Output multibyte chars 128...255
14322 using \x even if ! print_escape_multibyte.
14323
14324 * xdisp.c (display_mode_element): Move the places where
14325 bytepos, charpos, this, and lisp_string are set.
14326 Use lisp_string to set bytepos.
14327
14328 * xdisp.c (redisplay_internal):
14329 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14330
14331 * xdisp.c (display_mode_element): Merge properties specified with
14332 :propertize onto those that come with the string.
14333
143342002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14335
14336 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14337 automatic-hscrolling. Users changed.
14338 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14339 Users changed.
14340 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14341
143422002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14343
14344 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14345
143462002-03-02 Kim F. Storm <storm@cua.dk>
14347
14348 * window.c (Fminibuffer_selected_window): New function.
14349 (syms_of_window): Defsubr it.
14350
143512002-03-01 Kim F. Storm <storm@cua.dk>
14352
14353 * window.h (struct window): New member phys_cursor_width.
14354
14355 * window.c (make_window, replace_window): Init phys_cursor_width.
14356
14357 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14358 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14359
14360 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14361 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14362
14363 * lisp.h (GCPRO6): New macro.
14364
14365 * process.c (Fopen_network_stream): Use GCPRO6.
14366
143672002-03-01 Kim F. Storm <storm@cua.dk>
14368
14369 * process.c (Qconnect, Qfailed): New variables.
14370 (syms_of_process): Intern and staticpro them.
14371 (Fprocess_status): Document connect and failed return values.
14372 [NON_BLOCKING_CONNECT]: New conditional.
14373 (connect_wait_mask, num_pending_connects): New variables.
14374 (status_message): Convert Qfailed status.
14375 (Fopen_network_stream): Added support for non-blocking connect.
14376 New optional args: filter, sentinel, non_blocking. Doc updated.
14377 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14378 (deactivate_process): Handle pending non-blocking connect.
14379 (wait_reading_process_input): Poll for status of non-blocking
14380 connects. Exec sentinel directly when connect succeeds.
14381 (status_notify): Don't read process output if not yet connected.
14382
143832002-02-28 Kim F. Storm <storm@cua.dk>
14384
14385 * window.c: (minibuf_selected_window): Renamed from
14386 Vminibuf_selected_window. Users changed.
14387 (syms_of_window): Staticpro it.
14388
143892002-02-26 Kim F. Storm <storm@cua.dk>
14390
14391 The following changes add a new Vminibuf_selected_window variable
14392 which is similar to Vminibuf_scroll_window, but which is only set
14393 on entry to the minibuffer (from a non-minibuffer window):
14394
14395 * window.c: (Vminibuf_selected_window): New variable.
14396 (struct save_window_data): New member minibuf_selected_window.
14397 (Fset_window_configuration): Restore Vminibuf_selected_window.
14398 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14399 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14400 (compare_window_configurations): Compare minibuf_selected_window.
14401
14402 * window.h: (Vminibuf_selected_window): Declare extern.
14403
14404 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14405 entry to minibuffer or on entry from a non-minibuffer window.
14406
14407 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14408 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14409
14410 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14411 instead of Vminibuf_scroll_window when deciding in which window
14412 the region should be highlighted. Consequently, the region remains
14413 highlighteded even when a completion buffer is also displayed.
14414
144152002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14416
14417 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14418
14419 * xselect.c (Qcompound_text_with_extensions): Renamed from
14420 Qcompound_text_no_extensions.
14421 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14422
144232002-02-26 Juanma Barranquero <lektu@terra.es>
14424
14425 * w32proc.c (syms_of_ntproc): Doc fix.
14426
144272002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14428
14429 * intervals.h: Include "dispextern.h" unconditionally.
14430
144312002-02-24 Jason Rumney <jasonr@gnu.org>
14432
14433 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14434 and disp-table.elc.
14435 (lisp): Add emacs-lisp/backquote.elc.
14436
144372002-02-24 Kim F. Storm <storm@cua.dk>
14438
14439 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14440 The validation of the event type was too strict as it didn't
14441 allow string events; buffer names are used in bindings for
14442 menu-bar-select-buffer (see `menu-bar-update-buffers').
14443
144442002-02-23 Kim F. Storm <storm@cua.dk>
14445
14446 The following changes rework my patch of 2002-02-06 which
14447 added command remapping by entering the commands directly into
14448 the keymaps. Now, command remapping uses an explicit `remap'
14449 prefix in the keymaps, i.e. [remap COMMAND].
14450
14451 * keymap.c (Qremap, remap_command_vector): New variables.
14452 (is_command_symbol): Removed function.
14453 (Fdefine_key): No longer accept a symbol for KEY.
14454 Added validation of [remap COMMAND] argument for KEY.
14455 The DEF is no longer required to be a symbol when remapping a command.
14456 (Fremap_command): New function to remap command through keymaps.
14457 (Flookup_key): Perform command remapping initiated by
14458 Fremap_command directly for speed.
14459 (Fkey_binding): Use Fremap_command for command remapping.
14460 (where_is_internal): Handle new command remapping representation.
14461 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14462 staticpro them. Defsubr Fremap_command.
14463
14464 * keymap.h (Fremap_command): Declare extern.
14465 (is_command_symbol): Remove extern.
14466
14467 * keyboard.c (command_loop_1): Use Fremap_command for command
14468 remapping; now try command remapping for all symbols.
14469
144702002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14471
14472 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14473
144742002-02-23 Jason Rumney <jasonr@gnu.org>
14475
14476 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14477 on the string before encoding it.
14478 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14479 after decoding it.
14480
14481 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14482
144832002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14484
14485 * w32term.c (enter_timestamp): Remove unused static variable to
14486 prevent warning.
14487
14488 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14489
144902002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14491
14492 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14493
14494 * xselect.c (selection_data_to_lisp_data): Fix last change.
14495
144962002-02-22 Jason Rumney <jasonr@gnu.org>
14497
14498 * w32term.h (struct w32_output): New member menu_command_in_progress.
14499
14500 * w32menu.c (menubar_selection_callback): Free the menu and
14501 clear the menu_command_in_progress flag.
14502
14503 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14504 (menu_free_timer): New variable.
14505 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14506 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14507 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14508 menu command is in progress.
14509 <WM_COMMAND>: Set the menu_command_in_progress flag.
14510 Kill any menu_free_timer that is running.
14511
14512 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14513 Call ExtTextOutA rather than ExtTextOut.
14514
145152002-02-22 Eli Zaretskii <eliz@gnu.org>
14516
14517 * puresize.h (BASE_PURESIZE): Increase to 755000.
14518
145192002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14520
14521 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14522 on the string before encoding it.
14523 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14524 after decoding it.
14525
145262002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14527
14528 Support for ICCCM Extended Segments in X selections:
14529
14530 * xselect.c <Qcompound_text_no_extensions>: New variable.
14531 (syms_of_xselect): Intern and staticpro it.
14532 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14533 selection text.
14534 (lisp_data_to_selection_data): If next-selection-coding-system is
14535 compound-text-no-extensions, set the type of selection to be
14536 compound-text.
14537
14538 * xterm.h (x_encode_text): Update prototype.
14539
14540 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14541 callers changed. If SELECTIONP is non-zero, run the
14542 pre-write-conversion function before encoding the selection text.
14543
145442002-02-21 Kim F. Storm <storm@cua.dk>
14545
14546 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14547
14548 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14549 Correct composing of language-change event.
14550
145512002-02-20 Kim F. Storm <storm@cua.dk>
14552
14553 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14554 bindings at PT when building menu (the menu is not updated often
14555 enough for this to work reliable).
14556 (tool_bar_items): Likewise.
14557 (current_active_maps): Removed unused (and buggy) function.
14558
145592002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14560
14561 * xfns.c (gif_load): Use correct width and height for GIF images.
14562
145632002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14564
14565 * floatfns.c (Fatan): Accept an optional second arg and call
14566 atan2 if passed 2 args.
14567
145682002-02-18 Jason Rumney <jasonr@gnu.org>
14569
14570 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14571
145722002-02-17 Jason Rumney <jasonr@gnu.org>
14573
14574 * w32term.c (x_autoselect_window_p): New variable.
14575 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14576 (note_mouse_movement): Use it.
14577
14578 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14579
14580 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14581
14582 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14583 New variables.
14584 (syms_of_w32fns): Intern and staticpro them.
14585 (x_frame_parms) <"fullscreen">: New parameter.
14586 (x_fullscreen_move, x_set_fullscreen): New functions.
14587 (x_set_frame_parameters): Support Qfullscreen.
14588 (x_real_positions): Save x/y_pixels_diff frame params.
14589 (x_figure_window_size): Support full-screen frames.
14590 (Fx_create_frame): Default the fullscreen parameter.
14591
14592 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14593 (x_fullscreen_adjust): New functions.
14594 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14595 fullscreen. Call x_check_fullscreen_move, and set the
14596 want_fullscreen member of output_data.w32
14597 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14598
14599 * w32term.h: New enum for FULLSCREEN_* constants.
14600 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14601 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14602 (x-fullscreen-adjust): New prototype.
14603
146042002-02-17 Kim F. Storm <storm@cua.dk>
14605
14606 * frame.c: (Vmouse_highlight): New variable.
14607 (syms_of_frame): DEFVAR_LISP it.
14608
14609 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14610
048addec 14611 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14612
048addec
JD
14613 * xterm.c (disable_mouse_highlight): Removed variable.
14614 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14615 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14616 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14617 and on after keyboard input.
14618 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14619
048addec 14620 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14621
048addec
JD
14622 * msdos.c (disable_mouse_highlight): Removed variable.
14623 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14624 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14625 (internal_terminal_init): Initialize mouse_face_hidden.
14626 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14627 and on after keyboard input.
4f1b1854 14628
048addec 14629 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14630
048addec
JD
14631 * w32term.c (disable_mouse_highlight): Removed variable.
14632 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14633 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14634 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14635 and on after keyboard input.
14636 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14637
048addec 146382002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14639
048addec
JD
14640 * msdos.c (last_mouse_window): New variable.
14641 (dos_rawgetc): Fix last change--if the mouse is in the same window
14642 as recorded in last_mouse_window, don't select this window.
5cb6905d 14643
048addec 14644 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14645
048addec
JD
14646 * msdos.c (x_autoselect_window_p): New variable.
14647 (syms_of_msdos): Defvar it.
14648 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14649 which the last mouse movement occured, unless it is already selected.
437dfb9f 14650
048addec
JD
14651 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14652 New variables.
14653 (syms_of_xdisp): DEVFAR them.
14654 (hscroll_window_tree): Use automatic_hscroll_margin and
14655 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14656
048addec 146572002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14658
048addec
JD
14659 * xterm.c (x-autoselect-window): New variable.
14660 (note_mouse_movement): Use it.
9f696a00 14661
048addec 14662 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14663
048addec 146642002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14665
bfa02563 14666 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14667
048addec 14668 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14669
048addec 146702002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14671
048addec 14672 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14673
048addec
JD
14674 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14675 (Vx_super_keysym): New variables.
14676 (syms_of_xterm): DEFVAR_LISP them.
14677 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14678 variables to determine which keys to use for the various modifiers.
a474d59c 14679
048addec 146802002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14681
048addec
JD
14682 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14683 (mode_line_in_non_selected_windows): New variable.
14684 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14685
048addec
JD
14686 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14687 Use mode_line_in_non_selected_windows.
14688 (mode_line_in_non_selected_windows): Declare extern.
14689 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14690
048addec 146912002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14692
048addec
JD
14693 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14694 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14695 (Fclear_this_command_keys): Doc fixes.
2d10309f 14696
048addec
JD
14697 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14698 (update_face_from_frame_parameter): Increment face_change_count
14699 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14700
048addec
JD
14701 * xdisp.c (QCpropertize): New variable.
14702 (mode_line_proptrans_alist): New variable.
14703 (display_mode_element): New arg PROPS; all calls changed.
14704 Implement this, for strings.
14705 Handle literal output of strings by sharing the
14706 main-line code for strings, using local var `literal'.
14707 Handle :propertize feature.
14708 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14709 mode_line_proptrans_alist.
0b1e6b54 14710
048addec 147112002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14712
048addec
JD
14713 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14714 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14715
048addec
JD
14716 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14717 (CURRENT_MODE_LINE_FACE_ID): Use it.
14718 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14719
048addec
JD
14720 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14721 to get mode line face.
e17144de 14722
048addec 147232002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14724
048addec
JD
14725 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14726 variables; cus-start.el doesn't need them anymore.
44368f8f 14727
048addec 147282002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14729
048addec
JD
14730 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14731 reduction. This fixes a display problem where stray newlines were
14732 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14733
048addec 147342002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14735
048addec 14736 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14737
048addec 14738 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14739
048addec 147402002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14741
048addec
JD
14742 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14743 match each other.
14744 (w32_load_system_font): Prevent Cleartype fonts from loading.
14745 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14746
048addec 147472002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14748
048addec
JD
14749 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14750 (CURRENT_MODE_LINE_HEIGHT): Use it.
14751 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14752
048addec
JD
14753 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14754 (pos_visible_p, handle_face_prop): Likewise.
14755 (display_mode_lines): Likewise, but for the real selected window.
14756 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14757
048addec
JD
14758 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14759 in non-selected windows.
14760 (realize_basic_faces): Realize it.
14761 (syms_of_term): Intern and staticpro it.
308dd672 14762
048addec 147632002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14764
048addec
JD
14765 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14766 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14767
048addec 147682002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14769
048addec
JD
14770 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14771 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14772
048addec 14773 * floatfns.c (Fround): Doc fix.
3c1e6b46 14774
048addec 147752002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14776
048addec 14777 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14778
048addec 147792002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14780
048addec 14781 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14782
048addec 147832002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14784
048addec
JD
14785 * keymap.c (where_is_internal): Only check whether definition is
14786 remapped if it fulfills is_command_symbol.
0065bb74 14787
048addec 147882002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14789
048addec 14790 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14791
048addec 14792 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14793
048addec 147942002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14795
048addec
JD
14796 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14797 defining command remapping. Doc updated.
14798 (Flookup_key): Remap command through keymap if KEY is a symbol.
14799 (is_command_symbol): New function.
14800 (Fkey_binding): Use it. New optional argument NO-REMAP.
14801 Doc updated. Callers changed. Perform command remapping via
14802 recursive call unless that arg is non-nil.
14803 (where_is_internal): New argument no_remap. Callers changed.
14804 Call recursively to find original key bindings for a remapped
14805 comand unless that arg is non-nil.
14806 (Fwhere_is_internal): New optional argument NO-REMAP.
14807 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14808
048addec
JD
14809 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14810 (is_command_symbol): Added prototype.
0d8466cc 14811
048addec
JD
14812 * keyboard.c (Vthis_original_command): New variable.
14813 (syms_of_keyboard): DEFVAR_LISP it.
14814 (command_loop_1): Set it, and perform command remapping.
15fff01d 14815
048addec 148162002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14817
048addec 14818 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14819
048addec 148202002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14821
048addec 14822 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14823
048addec 148242002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14825
048addec 14826 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14827
048addec 148282002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14829
048addec 14830 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14831
048addec 148322002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14833
048addec 14834 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14835
048addec
JD
14836 * lread.c (read1): Redesign strategy for force_multibyte and
14837 force_singlebyte. Now is_multibyte records whether read_buffer
14838 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14839
048addec 148402002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14841
048addec
JD
14842 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14843 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14844
048addec 148452002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14846
048addec
JD
14847 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14848 latter never being defined on GNU/Linux.
749f499f 14849
048addec 148502002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14851
048addec
JD
14852 * xfaces.c (realize_default_face): Don't set the weight and slant of
14853 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14854
048addec 148552002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14856
048addec
JD
14857 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14858 Call cancel_hourglass unconditionally.
d0fd26dd 14859
048addec
JD
14860 * eval.c (Fsignal): Remove duplicated declaration of
14861 the variable `display_hourglass_p'.
b4c45162 14862
048addec 148632002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14864
048addec 14865 * editfns.c (region_limit): Nicer error message.
c95eaa61 14866
048addec
JD
14867 * coding.c (decode_composition_emacs_mule):
14868 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14869
048addec
JD
14870 * callint.c (check_mark): New arg to specify clearer error message.
14871 Callers changed.
c95eaa61 14872
048addec 148732002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14874
048addec 14875 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14876
048addec 148772002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14878
048addec
JD
14879 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14880 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14881 Fix doc-strings.
c95eaa61 14882
048addec 148832002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14884
048addec 14885 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14886
048addec
JD
14887 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14888 and scroll_up_aggressively.
c95eaa61 14889
048addec 148902002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14891
048addec 14892 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14893
048addec 148942002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14895
048addec
JD
14896 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14897 (Fprevious_property_change, Fprevious_single_property_change):
14898 Stay within the narrowed-buffer boundaries.
e2c3786a 14899
048addec 149002002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14901
048addec
JD
14902 * term.c (Ftty_display_color_cells): New function.
14903 (syms_of_term): Defsubr it.
14904 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14905 argument name to DISPLAY. Doc fix.
bf794306 14906
048addec
JD
14907 * dispextern.h: Add prototype for set_tty_color_mode and
14908 tty_setup_colors.
bf794306 14909
048addec 149102002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14911
048addec
JD
14912 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14913 If region left to draw is not what was expected, mark the frame as
14914 garbaged.
62582985 14915
048addec
JD
14916 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14917 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14918
048addec 149192002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14920
048addec
JD
14921 * w32term.c (x_update_window_begin): Only hide caret if
14922 w32_use_visible_system_caret is set.
14923 (x_update_window_end): Only show caret if
14924 w32_use_visible_system_caret is set.
14925 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14926
048addec 14927 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14928
048addec 149292002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14930
048addec
JD
14931 * unexelf.c (unexec): Define n so as to cause compilation error
14932 for the code where people have often written n instead of nn.
1e9a6186 14933
048addec 14934 * .gdbinit (hookpost-run): Defined.
1e9a6186 14935
048addec 149362002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14937
048addec 14938 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14939
048addec 149402002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14941
048addec
JD
14942 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14943 if fullscreen is being set.
7c75be36 14944
048addec 149452002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14946
048addec
JD
14947 * minibuf.c (Fminibuffer_contents)
14948 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14949 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14950
048addec 149512002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14952
048addec 14953 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14954
048addec 149552002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14956
048addec
JD
14957 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14958 height before comparison.
14959 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14960
048addec 149612002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14962
048addec
JD
14963 * w32term.c (w32_system_caret_width): Remove.
14964 (w32_use_visible_system_caret): New user flag.
14965 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14966 Windows reports a screen reader running.
14967 (x_update_window_begin): Hide the system caret.
14968 (x_update_window_end): Show the system caret.
14969 (x_display_and_set_cursor): Don't draw a cursor when
14970 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14971
048addec
JD
14972 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14973 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14974 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14975 the user requests it. Use system default width when creating.
14976 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14977
048addec
JD
14978 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14979 New window messages.
905cc05a 14980
048addec 149812002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14982
048addec 14983 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14984
048addec 149852002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14986
048addec 14987 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14988
048addec 149892002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14990
048addec 14991 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14992
048addec 149932002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14994
048addec
JD
14995 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14996 that Windows returns. If a double check fails, try to guess how
14997 ExtTextOut is going to act.
4d0fa4f3 14998
048addec
JD
14999 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15000 in place of stricmp.
15001 (w32_list_synthesized_fonts): Removed.
15002 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15003 (struct enumfont_t): New element; list.
15004 (enum_font_cb2): List all style and charset variations of a font.
15005 (Fw32_select_font): New optional argument; include_proportional.
15006 Exclude vertical fonts. Exclude proportional fonts unless
15007 include_proportional is non-nil.
15008 (w32_enable_synthesized_fonts): Change to a boolean.
15009 (Fw32_send_sys_command): Doc fix.
493faf20 15010
048addec 150112002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15012
048addec
JD
15013 * dispnew.c (update_frame): Move the variable `tem' to the block
15014 where it is used.
4971e491 15015
048addec 150162002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15017
048addec
JD
15018 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15019 call to face-set-after-frame-default.
4971e491 15020
048addec 150212002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15022
048addec
JD
15023 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15024 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15025
048addec 150262002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15027
048addec
JD
15028 * window.c (enlarge_window): When exceeding size of parent,
15029 directly delete all the siblings instead of trying to resize it.
201c831a 15030
048addec 150312002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15032
048addec 15033 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15034
048addec 150352002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15036
048addec 15037 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15038
048addec 150392002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15040
048addec
JD
15041 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15042 is invisible. This can happen if cursor is on top line of a
15043 window, and we switch to a buffer with a header line.
d77fbc16 15044
048addec 15045 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15046
048addec 150472002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15048
048addec
JD
15049 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15050 `dont_resize' only when used.
61e3b944 15051
048addec 15052 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15053
048addec 150542002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15055
048addec
JD
15056 * xdisp.c (display_mode_element): When computing charpos, depend
15057 on multibyteness of elt, not the text in field.
8af01033 15058
048addec 150592002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15060
048addec
JD
15061 * buffer.c (Fkill_all_local_variables):
15062 Increment `update_mode_lines' only once.
7363986a 15063
048addec 150642002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15065
048addec
JD
15066 * lisp.h (adjust_after_replace_noundo)
15067 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15068
048addec 15069 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15070
048addec 150712002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15072
048addec
JD
15073 Support for the --color command-line argument and tty-color-mode
15074 frame parameter:
f1a85b89 15075
048addec
JD
15076 * term.c (tty_default_color_capabilities, tty_setup_colors)
15077 (set_tty_color_mode): New functions.
15078 (term_init): Call tty_default_color_capabilities.
15079 (Qtty_color_mode_alist): New variable.
15080 (syms_of_term): Intern and staticpro it.
f1a85b89 15081
048addec
JD
15082 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15083 frames.
15084 (do_switch_frame): For termcap frames, switch the tty
15085 color mode as specified by the frame's parameters.
15086 (Qtty_color_mode): New variable.
15087 (syms_of_frame): Intern and staticpro it.
3a62677f 15088
048addec
JD
15089 * emacs.c (USAGE2): Add the --color option.
15090 (standard_args): Ditto.
72244db2 15091
048addec
JD
150922002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15093
15094 * xterm.h (struct x_output): New members want_fullscreen,
15095 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15096 y_pixels_outer_diff.
15097 New enum for FULLSCREEN_* constants.
15098 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15099 is NULL.
15100 (x_fullscreen_adjust): Add prototype.
3a62677f 15101
048addec
JD
15102 * emacs.c (USAGE2): Add the new full-screen arguments.
15103 (standard_args): Ditto.
3a62677f 15104
048addec
JD
15105 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15106 New variables.
15107 (syms_of_xfns): Intern and staticpro them.
15108 (x_frame_parms) <"fullscreen">: New parameter.
15109 (x_fullscreen_move, x_set_fullscreen): New functions.
15110 (x_set_frame_parameters): Support for Qfullscreen.
15111 (x_real_positions): More accurate computation of the frame position.
15112 (x_figure_window_size): Support full-screen frames.
15113 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15114
048addec
JD
15115 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15116 (XTread_socket) <Expose>: Call x_check_fullscreen.
15117 <ConfigureNotify>: Don't resize to fullscreen.
15118 Call x_check_fullscreen_move, and set the want_fullscreen member of
15119 output_data.x.
3a62677f 15120
048addec 151212002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15122
048addec
JD
15123 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15124 for mice with more than 3 buttons.
b8523839 15125
048addec
JD
15126 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15127 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15128
048addec
JD
15129 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15130 (syms_of_w32fns): DEFVAR_BOOL it.
15131 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15132
048addec 151332002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15134
048addec 15135 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15136
048addec 151372002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15138
048addec 15139 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15140
048addec 151412002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15142
048addec
JD
15143 * .gdbinit (xbuffer): Remove address operator since data is now a
15144 pointer.
c93674bb 15145
048addec 151462002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15147
048addec 15148 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15149
048addec 15150 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15151
048addec 151522002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15153
048addec
JD
15154 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15155 when checking for multiple frames.
91175673 15156
048addec 151572002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15158
048addec
JD
15159 * window.c (delete_window): Rewrite the code for changing the
15160 selected window to handle the case where WINDOW is not a leaf.
91175673 15161
048addec 151622002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15163
048addec
JD
15164 * process.c (send_process): Set src_multibyte to 1 after the call
15165 top setup_coding_system, not before the call.
e0fead5d 15166
048addec 151672002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15168
048addec
JD
15169 * xmenu.c (set_frame_menubar, xmenu_show):
15170 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15171
048addec
JD
15172 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15173 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15174
048addec 151752002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15176
048addec 15177 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15178
048addec 15179 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15180
048addec 15181 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15182
048addec 151832002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15184
048addec
JD
15185 * insdel.c (make_gap_larger): Make sure buffer size does not
15186 overflow range of int.
62854fe2 15187
048addec 151882002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15189
048addec
JD
15190 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15191 OVERLAPS_P.
656f46bb 15192
048addec 15193 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15194
048addec
JD
15195 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15196 to the left or to the right of the pointer, put it against
15197 the left screen edge.
15198 (x_frame_parms): Add missing braces around initializer.
036e218d 15199
048addec
JD
15200 * w32term.c (x_setup_relief_colors): Don't compute an image's
15201 background color if it doesn't have a Pixmap.
15202 (notice_overwritten_cursor): Don't depend on
15203 output_cursor and updated_area. Compare pixel coordinates with
15204 window's cursor pixel coordinates.
15205 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15206 Call notice_overwritten_cursor with new arg list.
15207 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15208 unconditionally.
15209 (x_draw_image_relief): Use predefined macro instead of
15210 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15211
048addec 15212 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15213
048addec 152142002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15215
048addec 15216 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15217
048addec 152182002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15219
048addec
JD
15220 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15221 (Fkey_binding): Try the `keymap' property map first.
15222 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15223 minor mode bindings.
90647b07 15224
048addec 152252002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15226
048addec 15227 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15228
048addec 152292002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15230
048addec
JD
15231 * keyboard.c (read_key_sequence): Handle the keymap property
15232 before minor mode maps.
9fbc32aa 15233
048addec
JD
15234 * editfns.c (Fformat): Update thissize from field_width
15235 based on the actual width, in the string case.
036e218d 15236
048addec 152372002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15238
048addec
JD
15239 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15240 when used as truth value to prevent gcc warnings.
9fbc32aa 15241
048addec
JD
15242 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15243 * w32proc.c: Include <config.h>.
9fbc32aa 15244
048addec 152452002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15246
048addec
JD
15247 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15248 not EMACS_INT, to make them compatible with DEFVAR_INT.
15249 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15250
048addec 152512002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15252
048addec
JD
15253 * print.c (print_object): Test print_escape_nonascii only for
15254 unibyte strings.
15255 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15256 when outputting to a multibyte buffer.
9fbc32aa 15257
048addec 152582001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15259
048addec
JD
15260 * print.c (print_object): In multibyte string, use hex escapes.
15261 Use octal only for unibyte strings.
15262 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15263
048addec
JD
15264 * lread.c (read_escape): New arg BYTEREP for reporting whether
15265 escape forces unibyte or multibyte.
15266 (read1): When reading a string, take note of that info.
0142178a 15267
048addec 152682001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15269
048addec
JD
15270 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15271 comparison to test lisp value returned by Fget.
d4824a5d 15272
048addec 152732001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15274
048addec 15275 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15276
048addec 15277 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15278
048addec
JD
15279 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15280 Handle modifier bits. Correct typo in error message.
99e380ee 15281
048addec 152822001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15283
048addec
JD
15284 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15285 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15286 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15287 Update calls to Fdefine_abbrev.
15288 (write_abbrev): Update for changed data format.
15289 Don't list "system" abbrevs.
15290 (Fexpand_abbrev): Update use count with new data format.
15291 (describe_abbrev): Update for changed data format.
15292 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15293
048addec 15294 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15295
048addec 15296 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15297
048addec
JD
15298 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15299 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15300
048addec
JD
15301 * keymap.c (Flookup_key): Error message if key has wrong data type.
15302 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15303 (exclude_key): New variable.
59a86c99 15304
048addec 153052001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15306
048addec
JD
15307 * xterm.c (x_setup_relief_colors): Don't compute an image's
15308 background color if it doesn't have a Pixmap.
eb77a5f4 15309
048addec
JD
15310 * xterm.c (notice_overwritten_cursor): Don't depend on
15311 output_cursor and updated_area. Compare pixel coordinates with
15312 window's cursor pixel coordinates.
15313 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15314 Call notice_overwritten_cursor with new arg list.
15315 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15316 unconditionally.
eb77a5f4 15317
048addec
JD
15318 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15319 height of the cursor line to the amount to scroll.
eb77a5f4 15320
048addec 153212001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15322
048addec
JD
15323 * intervals.c (set_point_both): The position after an invisible,
15324 intangible character is not an acceptable stopping point.
bb313871 15325
048addec 153262001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15327
048addec
JD
15328 * window.c (enlarge_window): In new preserve_before code, convert
15329 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15330
048addec 153312001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15332
048addec 15333 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15334
048addec 153352001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15336
048addec
JD
15337 * keyboard.c (record_char): Ignore duplicate help-echo events only
15338 separated by mouse-movement. When tracking mouse, only record
15339 first and last mouse-movement event in same window.
15340 Don't record mouse-movement events in keyboard macros.
3ce081f5 15341
048addec 153422001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15343
048addec
JD
15344 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15345 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15346
048addec
JD
15347 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15348 instead of Fstring_as_unibyte.
9fabb2f5 15349
048addec 153502001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15351
048addec 15352 The following changes remove mocklisp support:
9fabb2f5 15353
048addec 15354 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15355
048addec
JD
15356 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15357 `Qmocklisp' and `Qmocklisp_arguments'.
15358 Remove prototype of syms_of_mocklisp.
2fa0eedf 15359
048addec 15360 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15361
048addec
JD
15362 * callint.c: Do not include mocklisp.h.
15363 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15364
048addec
JD
15365 * eval.c: Remove variables `Qmocklisp_arguments',
15366 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15367 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15368 Do not test for mocklisp case.
15369 (Fwhile): Remove unused variable `tem'.
15370 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15371
048addec 15372 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15373
048addec 15374 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15375
048addec 15376 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15377
048addec 153782001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15379
048addec
JD
15380 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15381 to the left or to the right of the pointer, put it against
15382 the left screen edge.
6108b49c 15383
048addec 153842001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15385
048addec
JD
15386 * Makefile.in (distclean): Remove .gdbinit if we are building
15387 outside the source tree.
5eea19a4 15388
048addec 153892001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15390
048addec 15391 * w32.c (emacs_root_dir): New function.
5eea19a4 15392
048addec 15393 * msdos.c (emacs_root_dir): New function.
5eea19a4 15394
048addec
JD
15395 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15396 of the current drive as the fallback for default_directory.
438e57dd 15397
048addec
JD
15398 * dired.c (file_name_completion): Run the elements of
15399 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15400
048addec
JD
15401 * lisp.h (scmp): Remove prototype, since it's now a static
15402 function private to dired.c.
c88e5347 15403
048addec 154042001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15405
048addec
JD
15406 * dired.c (scmp): Function moved from minibuf.c.
15407 Delete multibyte handling--used only on encoded strings.
59ce1461 15408
048addec 15409 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15410
048addec 15411 * fns.c (merge): Add QUIT call.
59ce1461 15412
048addec 154132001-12-18 Dave Love <fx@gnu.org>
8727d588 15414
048addec
JD
15415 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15416 language/georgian.el.
8727d588 15417
048addec 154182001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15419
048addec
JD
15420 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15421 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15422
048addec 154232001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15424
048addec
JD
15425 * xdisp.c (window_box_height): Do not return negative values.
15426 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15427
048addec 15428 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15429
048addec 15430 * term.c (keys): Likewise.
deece6f5 15431
048addec 15432 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15433
048addec 154342001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15435
048addec
JD
15436 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15437 patch (COMPOSING_P, not COMPOSING).
28ff4293 15438
048addec 154392001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15440
048addec 15441 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15442
048addec
JD
15443 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15444 before calling decode_coding.
9b46de40 15445
048addec 15446 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15447
048addec
JD
15448 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15449 instead of only for COMPOSITION_DISABLED.
9b46de40 15450
048addec 154512001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15452
048addec 15453 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15454
048addec 15455 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15456
048addec
JD
15457 * buffer.h (struct buffer): New field `display_error_modiff'.
15458 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15459
048addec 15460 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15461
048addec
JD
15462 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15463 Call redisplay_window, but not if display_error_modiff field says no.
15464 (redisplay_window_error): New function.
15465 (displayed_buffer): New variable.
15466 (redisplay_internal, redisplay_windows): Call the new functions
15467 instead of redisplay_window directly.
2cd23960 15468
048addec 154692001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15470
048addec 15471 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15472
048addec 154732001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15474
048addec 15475 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15476 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15477 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15478
048addec 154792001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15480
048addec
JD
15481 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15482 parameter have a numeric value all the time.
f6fa0866 15483
048addec 15484 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15485
048addec 154862001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15487
048addec 15488 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15489
048addec
JD
15490 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15491 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15492
048addec 154932001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15494
048addec
JD
15495 * xdisp.c (move_it_vertically_backward): Change heuristic
15496 for the case that we didn't move far enough initially.
91c153e2 15497
048addec
JD
15498 * window.c (Frecenter): Simplify computation in the case of window
15499 system frames and ARG < 0; use window_box_height.
65b7d3e7 15500
048addec 155012001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15502
048addec
JD
15503 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15504 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15505
048addec 155062001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15507
048addec
JD
15508 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15509 arg is negative.
be676094 15510
048addec 155112001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15512
048addec
JD
15513 * m/hp800.h: Split the __hpux conditional into the parts
15514 that are right for GNU/Linux too and the parts that are not.
15515 Use the former if GNU_LINUX.
15516 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15517
048addec 15518 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15519
048addec 155202001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15521
048addec
JD
15522 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15523 `new style' [w/`doc:' keyword].
032a857d 15524
048addec 155252001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15526
048addec
JD
15527 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15528 before using.
b6270150 15529
048addec 155302001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15531
048addec
JD
15532 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15533 keyword].
98cbb9fa 15534
048addec 155352001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15536
048addec 15537 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15538
048addec 15539 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15540
048addec 155412001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15542
048addec 15543 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15544 Add comment to explain where the struct came from.
048addec
JD
15545 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15546 (add_menu_item): Process pop-up menus first to avoid memory leak.
15547 (add_menu_item, w32_menu_display_help): Use `help' field as
15548 Lisp_Object.
15549 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15550
048addec 155512001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15552
048addec 15553 * COPYING: Moved back.
fa336b91 15554
048addec
JD
15555 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15556 Add parentheses around && within ||.
077907d4 15557
048addec 15558 * indent.c (compute_motion): Likewise.
aa2af83a 15559
048addec 15560 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15561
048addec
JD
15562 * coding.c (setup_coding_system, shrink_encoding_region)
15563 (Fdecode_sjis_char): Likewise.
60a653f1 15564
048addec 155652001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15566
048addec
JD
15567 * xdisp.c (display_mode_element): Don't read past end of string if
15568 it ends with '%'.
60a653f1 15569
048addec
JD
15570 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15571 can hold.
60a653f1 15572
048addec
JD
15573 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15574 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15575 type changed to Lisp_Object.
15576 (syms_of_data): DEFVAR_LISP them.
60a653f1 15577
048addec 155782001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15579
048addec
JD
15580 * callproc.c (init_callproc): Set Vdata_directory based on the source
15581 location whenever Emacs was run uninstalled.
60a653f1 15582
048addec 155832001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15584
048addec
JD
15585 * config.in (HAVE_WORKING_VFORK): New #undefs.
15586 * process.c (create_process):
15587 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15588 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15589 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15590 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15591 * m/intel386.h (HAVE_VFORK): Likewise.
15592 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15593 * m/mips.h (HAVE_VFORK): Likewise.
15594 * s/freebsd.h (vfork): Remove #define.
15595 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15596 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15597
048addec 155982001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15599
048addec
JD
15600 * s/hpux10.h (random): Add undef.
15601 (HAVE_RANDOM): Define it just once.
60a653f1 15602
048addec 156032001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15604
048addec 15605 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15606
048addec 156072001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15608
048addec
JD
15609 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15610 scroll bars of the frame before deleting the frame itself. If the
15611 frame has a widget, delete the frame with XtDestroyWidget, and do
15612 not call XDestroyWindow before that.
60a653f1 15613
048addec 156142001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15615
048addec 15616 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15617
048addec 15618 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15619
048addec 156202001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15621
048addec
JD
15622 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15623 excessively large.
60a653f1 15624
048addec
JD
15625 * insdel.c (make_gap_larger): New function.
15626 (make_gap_smaller): New function.
15627 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15628 Call make_gap_smaller if arg is negative.
60a653f1 15629
048addec 156302001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15631
048addec
JD
15632 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15633 Pass a dummy argument when calling interrupt_signal.
15634 (parse_menu_item): Mark disabled items before checking for empty def.
15635 (read_char_minibuf_menu_prompt): Make safety more visible.
15636 (read_key_sequence): Add a `first_unbound' variable.
15637 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15638 unbound prefix as soon as we can detect it.
60a653f1 15639
048addec
JD
15640 * doc.c (Fsnarf_documentation): Add prototype.
15641 (get_doc_string): Handle negative arguments.
15642 (Fdocumentation): Use AREF and ASIZE.
15643 Move the calls to get_doc_string to a single place.
15644 Don't confuse an interactive-spec for a docstring reference.
15645 (Fdocumentation_property): Take advantage of the fact that
15646 get_doc_string now ignores the sign of the docstring position.
60a653f1 15647
048addec 15648 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15649
048addec 156502001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15651
a64387ee 15652 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15653
048addec 156542001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15655
048addec
JD
15656 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15657 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15658
048addec 156592001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15660
048addec
JD
15661 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15662 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15663
048addec 15664 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15665
048addec 156662001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15667
048addec 15668 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15669
048addec 156702001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15671
048addec 15672 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15673
048addec 156742001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15675
f63fd14e 15676 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15677
048addec
JD
15678 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15679 [!WM_MOUSELEAVE]: Define.
60a653f1 15680
048addec
JD
15681 * w32menu.c (current_popup_menu, get_menu_item_info):
15682 (set_menu_item_info): New vars.
15683 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15684 (w32_menu_show): Set current_popup_menu.
15685 (add_menu_item): Allocate new strings for owner-drawn menu items
15686 and help strings.
15687 Use owner-draw for disabled menu items again.
15688 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15689 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15690
048addec
JD
15691 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15692 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15693 <WM_EXITMENULOOP>: Free menu strings.
15694 <WM_MOUSELEAVE>: Stop tracking mouse.
15695 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15696
048addec
JD
15697 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15698 and mouse face.
60a653f1 15699
048addec 157002001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15701
048addec
JD
15702 The following changes add left-fringe and right-fringe
15703 frame parameters to adjust fringe widths, or remove one or
15704 both fringes.
60a653f1 15705
048addec
JD
15706 * frame.h (struct frame): Remove trunc_area_pixel_width and
15707 trunc_area_cols fields.
15708 (Qleft_fringe, Qright_fringe): Declare.
15709 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15710
048addec
JD
15711 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15712 (syms_of_frame): Initialize them.
60a653f1 15713
048addec
JD
15714 * window.c (coordinates_in_window): Handle separate left and right
15715 fringe widths.
60a653f1 15716
048addec
JD
15717 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15718 and fringe_cols fields.
15719 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15720 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15721 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15722 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15723 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15724 (x_compute_fringe_widths): Add prototype.
60a653f1 15725
048addec
JD
15726 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15727 fill fringe evenly with small dashes.
f63fd14e 15728 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15729 clip the new ZV bitmap to avoid jitter between rows.
15730 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15731 background. Don't draw fringe bitmaps if fringe width is zero.
15732 (x_compute_fringe_widths): New function.
15733 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15734
048addec
JD
15735 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15736 (x_set_frame_parameters): Process `font' parameter before other
15737 parameters as fringe widths depend on it.
15738 (x_set_fringe_width): New function.
15739 (x_figure_window_size): Use x_compute_fringe_widths.
15740 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15741 parameters.
60a653f1 15742
048addec
JD
15743 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15744 (EmacsFrameSetCharSize): Ditto.
60a653f1 15745
048addec
JD
15746 * w32term.h: Merged changes from xterm.h.
15747 * w32term.c: Merged changes from xterm.c.
15748 * w32fns.c: Merged changes from xfns.c.
60a653f1 15749
048addec 157502001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15751
048addec 15752 * COPYING: Removed.
60a653f1 15753
048addec 157542001-11-29 Dave Love <fx@gnu.org>
60a653f1 15755
048addec
JD
15756 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15757 extra extra slot.
15758 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15759
048addec 157602001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15761
048addec
JD
15762 * fileio.c (file-name-coding-system)
15763 (default-file-name-coding-system): Doc fix (links to referenced
15764 variables added).
60a653f1 15765
048addec 157662001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15767
048addec
JD
15768 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15769 Add dummy uses of gcproN variables.
60a653f1 15770
048addec
JD
15771 * category.c (describe_category, describe_category_1)
15772 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15773 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15774
048addec 157752001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15776
048addec 15777 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15778
048addec
JD
15779 * Makefile.in (lispdir): New variable, referring to build dir.
15780 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15781
048addec 157822001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15783
048addec
JD
15784 * w32menu.c (w32_menu_display_help): Actually add the new argument
15785 OWNER.
60a653f1 15786
048addec 157872001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15788
048addec
JD
15789 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15790 menu items. From David Ponce <dponce@wanadoo.fr>.
15791 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15792 conditionally.
f63fd14e 15793 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15794 help event in the owner frame's keyboard buffer.
60a653f1 15795
048addec
JD
15796 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15797 (Fx_show_tip): Don't subtract last width from row width.
15798
15799 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15800 (w32_read_socket): Use EQ to compare frames.
60a653f1 15801
048addec 158022001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15803
048addec
JD
15804 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15805 OVERLAPS_P.
60a653f1 15806
048addec 158072001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15808
048addec
JD
15809 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15810 `gcpro3' and `gcpro4'.
60a653f1 15811
048addec 15812 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15813
048addec 158142001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15815
048addec 15816 * ccl.c: Use AREF and ASIZE.
60a653f1 15817
048addec 158182001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15819
048addec
JD
15820 * lisp.h (run_hook_list_with_args): Remove.
15821 (LIST_END_P): Fix call to wrong_type_argument.
15822 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15823
048addec 158242001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15825
048addec
JD
15826 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15827 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15828
048addec
JD
15829 * eval.c: Use AREF and ASIZE.
15830 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15831
048addec
JD
15832 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15833 which match the end of the file-name.
15834 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15835 is not a valid env var, but leave it as is instead.
60a653f1 15836
048addec
JD
15837 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15838 Make nil bindings in char-tables transparent.
15839 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15840
048addec 158412001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15842
048addec
JD
15843 * textprop.c (set_text_properties_1): Allow START, END in either order.
15844 Do nothing if range is empty.
60a653f1 15845
048addec 15846 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15847
048addec
JD
15848 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15849 (clean): Not here.
60a653f1 15850
048addec 158512001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15852
048addec
JD
15853 * textprop.c (set_text_properties_1): Clearly mark that the
15854 interval should not be empty.
60a653f1 15855
048addec
JD
15856 * intervals.c (graft_intervals_into_buffer):
15857 Don't call set_text_properties_1 on an empty interval.
60a653f1 15858
048addec 158592001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15860
048addec 15861 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15862
048addec
JD
15863 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15864 don't lose the data in it.
60a653f1 15865
048addec 158662001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15867
048addec 15868 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15869
c62aec78 15870 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15871
c62aec78 15872 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15873
048addec 158742001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15875
048addec 15876 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15877
048addec 158782001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15879
048addec
JD
15880 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15881 Niemitalo <kon@iki.fi>.
60a653f1 15882
048addec 158832001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15884
048addec 15885 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15886
048addec
JD
15887 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15888 (Fx_show_tip): Block input during frame creation.
15889 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15890
048addec 158912001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15892
048addec
JD
15893 * lread.c (Fload): Detect recursive load error for more than 3
15894 nestings of the same file.
15895 (Vrecursive_load_depth_limit): Variable deleted.
15896 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15897
048addec 158982001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15899
048addec
JD
15900 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15901 mouse position if either left or top is not specified.
60a653f1 15902
048addec
JD
15903 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15904 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15905 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15906 (my_create_tip_window): Assign tip_window.
15907 (x_create_tip_frame): Use same defaults as X.
15908 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15909 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15910
048addec
JD
15911 * w32term.c (x_after_update_window_line): Doc fix.
15912 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15913 frames.
15914 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15915
048addec
JD
15916 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15917 for all Windowed systems.
60a653f1 15918
048addec 159192001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15920
048addec
JD
15921 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15922 realized, use the initial screen colors to clear the screen.
60a653f1 15923
048addec 159242001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15925
048addec
JD
15926 * textprop.c (Fset_text_properties): Remove unused variables
15927 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15928
048addec
JD
15929 * search.c (Freplace_match): Remove unused variable `inslen'.
15930
15931 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15932
159332001-11-22 Jason Rumney <jasonr@gnu.org>
15934
15935 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15936 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15937 (my_create_tip_window): New function.
15938 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15939 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15940
159412001-11-20 Jason Rumney <jasonr@gnu.org>
15942
15943 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15944 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15945
15946 * w32fns.c (Vw32_system_coding_system): Remove.
15947 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15948
159492001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15950
15951 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15952 after build_annotations.
15953
15954 * syntax.c (describe_syntax): Add dummy arg.
15955 (describe_syntax_1): Update call to describe_vector.
15956
15957 * category.c (describe_category): Add dummy arg.
15958 (describe_category_1): Update call to describe_vector.
15959
15960 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15961 (describe_command, describe_translation): Add dummy second param.
15962 (describe_map): Call elt_describer with two arguments.
15963 (describe_vector_princ): Add `fun' parameter.
15964 Call it instead of the hardcoded `princ'.
15965 (describe_vector): Add arg `args'.
15966 Pass it as a new second argument to elt_describer.
60a653f1 15967
048addec 15968 * keymap.h (describe_vector): Update prototype.
60a653f1 15969
048addec
JD
15970 * frame.c: Don't include keymap.h any more.
15971 (keys_of_frame): Remove.
60a653f1 15972
048addec 15973 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15974
048addec 15975 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15976
048addec 159772001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15978
048addec
JD
15979 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15980 if defined, 0 otherwise.
15981 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15982 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15983
048addec 159842001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15985
048addec 15986 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15987
048addec 159882001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15989
048addec
JD
15990 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15991 (x_draw_bar_cursor): If the background color of the glyph under
15992 the cursor equals the frame's cursor color, use the glyph's
15993 foreground color for drawing the bar cursor.
15994 (x_after_update_window_line): Clear internal border in different
15995 circumstances.
15996 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15997 (w32_draw_relief_rect): Correct relief by 1 pixel.
15998 (x_set_glyph_string_background_width):
15999 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16000 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16001 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16002 if cursor_in_non_selected_windows is false.
16003 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16004 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16005 Notice if cursor gets overwritten.
16006 (notice_overwritten_cursor): Renamed from
16007 note_overwritten_text_cursor. Rewritten to take glyph widths
16008 into account, and to take X positions as parameters.
16009 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16010 around call to x_draw_glyphs.
16011 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16012 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16013 color to use for image glyph reliefs.
16014 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16015 (glyph_rect): Remove unused variable `area'.
60a653f1 16016
048addec
JD
16017 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16018 some items.
16019 (x_set_internal_border_width): Set frame garbaged when window
16020 doesn't exist yet.
16021 (Fx_create_frame): Accept zero tool_bar_button_relief.
16022 (x_clear_image_1, four_corners_best, image_background)
16023 (image_background_transparent): New functions.
16024 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16025 (gs_format): Add `:background' entry.
16026 (lookup_image): Set IMG's background color if specified.
16027 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16028 when appropriate.
16029 (x_clear_image_1): Reset `background_valid' and
16030 `background_transparent_valid' fields.
16031 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16032 calculating it here. Set IMG's background_transparent field.
16033 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16034 (enum png_keyword_index): Add PNG_BACKGROUND.
16035 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16036 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16037 (enum gif_keyword_index): Add GIF_BACKGROUND.
16038 (enum gs_keyword_index): Add GS_BACKGROUND.
16039 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16040 Pre-calculate image background color where necessary.
16041 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16042 Use display info's n_cbits entry for screen depth.
16043 (Fx_show_tip): Remove unused variables `buffer', `top',
16044 `left', `max_width' and `max_height'.
60a653f1 16045
048addec 16046 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16047
048addec 160482001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16049
048addec 16050 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16051
048addec 160522001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16053
048addec 16054 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16055
048addec 160562001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16057
048addec
JD
16058 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16059 (message_dolog_marker3): New static variables hold three markers.
16060 (syms_of_xdisp): Initialize and staticpro them.
16061 (message_dolog): Use message_dolog_marker1..3 instead of
16062 allocating markers each time. Unchain them when done.
60a653f1 16063
048addec 160642001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16065
048addec 16066 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16067
048addec 160682001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16069
048addec 16070 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16071
048addec 160722001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16073
048addec 16074 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16075
048addec 160762001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16077
048addec 16078 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16079
048addec 160802001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16081
048addec
JD
16082 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16083 with invalid position.
60a653f1 16084
048addec 160852001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16086
048addec 16087 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16088
048addec
JD
16089 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16090 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16091 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16092
048addec 16093 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16094
048addec 160952001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16096
048addec
JD
16097 * fileio.c (build_annotations): Split off the tail.
16098 (build_annotations_2): New fun. Extracted from build_annotations.
16099 (Fwrite_region): Split the call to build_annotations into two
16100 calls to build_annotations and build_annotations_2.
077907d4 16101
048addec 161022001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16103
048addec
JD
16104 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16105 clear_waiting_for_input with argument.
1756e2fb 16106
048addec 16107 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16108
048addec 16109 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16110
048addec 16111 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16112
048addec 16113 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16114
048addec 161152001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16116
048addec
JD
16117 * fileio.c (choose_write_coding_system): New fun, extracted
16118 from Fwrite_region.
16119 (Fwrite_region): Use it.
fa336b91 16120
048addec
JD
16121 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16122 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16123 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16124
048addec 161252001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16126
048addec 16127 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16128
048addec
JD
16129 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16130 Required for ISC 4.1.
fa336b91 16131
048addec 161322001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16133
048addec
JD
16134 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16135 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16136
048addec 161372001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16138
048addec
JD
16139 The following changes are made to clean up the various internal
16140 references to the fringes to actually use the term `fringe' for
16141 them. Previously, they were called `flags areas', `bitmap areas',
16142 `left/right side of windows', or implicitly as `flags' or
16143 `bitmaps':
fa336b91 16144
048addec 16145 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16146 Comments fixed. Use renamed symbols.
06e8f738 16147
f63fd14e 16148 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16149
048addec
JD
16150 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16151 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16152 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16153
048addec 16154 * msdos.c: Comment fix.
9ce647f4 16155
048addec 16156 * w32fns.c: Use renamed symbols.
9b784ab8 16157
f63fd14e 16158 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16159 (fringe_bitmap_type): Renamed from bitmap_type.
16160 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16161 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16162 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16163
f63fd14e 16164 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16165 (fringes_extra): Renamed from flags_areas_extra.
16166 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16167 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16168 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16169 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16170 (FRAME_X_LEFT_FRINGE_WIDTH):
16171 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16172 (FRAME_X_RIGHT_FRINGE_WIDTH):
16173 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16174
048addec 16175 * widget.c: Use renamed symbols.
9f7e52b4 16176
f63fd14e 16177 * window.c: Comment fixes. Use renamed symbols.
048addec 16178 (coordinates-in-window-p): Doc fix.
fa336b91 16179
f63fd14e 16180 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16181
048addec 16182 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16183
048addec 16184 * xfns.c: Use renamed symbols.
89512fcd 16185
f63fd14e 16186 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16187 (fringe_bitmap_type): Renamed from bitmap_type.
16188 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16189 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16190 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16191
f63fd14e 16192 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16193 (fringes_extra): Renamed from flags_areas_extra.
16194 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16195 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16196 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16197 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16198 (FRAME_X_LEFT_FRINGE_WIDTH):
16199 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16200 (FRAME_X_RIGHT_FRINGE_WIDTH):
16201 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16202
162032001-11-15 Jason Rumney <jasonr@gnu.org>
16204
16205 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16206 work for most menu items. From David Ponce
16207 <david.ponce@wanadoo.fr>.
16208
162092001-11-15 Gerd Moellmann <gerd@gnu.org>
16210
16211 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16212 Some x_set_* function expect to be called even if old and new
16213 value are equal.
16214
16215 * xdisp.c (build_desired_tool_bar_string): Accept zero
16216 tool_bar_button_relief.
16217
16218 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16219
16220 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16221
16222 * xterm.c (x_draw_bar_cursor): If the background color of the
16223 glyph under the cursor equals the frame's cursor color, use
16224 the glyph's foreground color for drawing the bar cursor.
16225
16226 * dispnew.c (direct_output_forward_char): Fix character/byte
16227 position comparison.
7d18891d 16228
048addec 162292001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16230
048addec
JD
16231 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16232 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16233 Update arguments to find_field.
16234 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16235 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16236 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16237 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16238
048addec 162392001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16240
048addec 16241 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16242
048addec
JD
16243 * dispextern.h (image_background, image_background_transparent):
16244 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16245
048addec 162462001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16247
048addec 16248 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16249
048addec 16250 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16251
048addec 16252 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16253
048addec 16254 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16255
048addec 16256 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16257
048addec 16258 * eval.c (syms_of_eval): Doc fix.
7d18891d 16259
048addec 16260 * coding.c (syms_of_coding): Doc fix.
7d18891d 16261
048addec 16262 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16263
048addec 16264 * dispnew.c (syms_of_display): Doc fix.
9474c847 16265
048addec 16266 * category.c (Fget_unused_category): Doc fix.
9474c847 16267
048addec 16268 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16269
048addec 162702001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16271
048addec 16272 * print.c (prin1, print): Doc fix.
e3059a5d 16273
048addec 162742001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16275
048addec
JD
16276 * fontset.h: Remove declarations of variables
16277 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16278
048addec
JD
16279 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16280 `Vclip_large_size_font'.
eae936e2 16281
048addec 162822001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16283
048addec 16284 * w32fns.c: Doc fix.
ddb67bdc 16285
048addec 162862001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16287
048addec 16288 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16289
048addec 16290 * fns.c: Doc fix.
6e1b91d7 16291
048addec 16292 * emacs.c: Doc fix.
1c1d3d69 16293
048addec 16294 * coding.c: Doc fix.
1c1d3d69 16295
048addec
JD
16296 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16297 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16298 `new style' [w/`doc:' keyword].
b6f4c7ba 16299
048addec 163002001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16301
048addec
JD
16302 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16303 LeaveNotify events. Only FocusIn and FocusOut do that now.
16304 (x_display_and_set_cursor): Do display hollow cursors in active
16305 minibuffer windows when they are not selected.
b6f4c7ba 16306
048addec 163072001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16308
048addec 16309 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16310 * w32term.c: Change doc-string comments to `new style'
16311 [w/`doc:' keyword]. Doc fixes.
a89f435d 16312
048addec
JD
16313 * w32fns.c: Don't define max.
16314 (Fx_open_connection): Only execute once.
a4cd0cd7 16315
048addec 163162001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16317
048addec
JD
16318 * ccl.c: Change macros to use do-while block instead of if-else.
16319 Use braces to follow GNU Coding Standards.
eafb659a 16320
048addec 163212001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16322
048addec 16323 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16324
048addec 16325 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16326
048addec
JD
16327 * insdel.c (replace_range): Use adjust_markers_for_replace
16328 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16329
78819ebb 16330 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16331
048addec
JD
16332 * textprop.c (set_text_properties_1): New subroutine
16333 broken out of set_text_properties.
16334 (set_text_properties): Use set_text_properties_1.
91823618 16335
048addec
JD
16336 * intervals.c (graft_intervals_into_buffer):
16337 Use set_text_properties_1 to clear out properties.
91823618 16338
048addec
JD
16339 * search.c (Freplace_match): Use replace_range to insert
16340 and delete. Don't request property inheritance from
16341 surrounding text.
86928dfb 16342
048addec 163432001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16344
048addec 16345 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16346 vertical fonts. Allow them if face name is explicitly specified.
048addec 16347 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16348
048addec 163492001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16350
048addec
JD
16351 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16352 instead of malloc/free.
a78e0303 16353
048addec 163542001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16355
048addec
JD
16356 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16357 Coding Standards.
16358 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16359
048addec 16360 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16361
048addec 16362 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16363
048addec
JD
16364 * coding.c (encode_coding): Use precomputed value of `src'.
16365 (encode_coding): Remove unused variable `src_end'.
16366 (code_convert_region): Remove unused variables `count'.
830ddd77 16367
048addec 163682001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16369
048addec
JD
16370 * w32term.c (x_display_and_set_cursor): Do not move system caret
16371 if cursor_glyph is NULL.
55c6d645 16372
048addec 163732001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16374
048addec 16375 * keymap.c (access_keymap): Fix compilation error.
5de38842 16376
048addec 163772001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16378
048addec 16379 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16380
048addec 163812001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16382
048addec
JD
16383 * intervals.c (graft_intervals_into_buffer):
16384 Remove #ifdef'd-out code.
16385 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16386
048addec
JD
16387 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16388 code (eval-current-buffer).
16389 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16390
048addec 163912001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16392
048addec 16393 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16394
048addec 163952001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16396
048addec 16397 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16398
048addec
JD
16399 * keyboard.c (make_lispy_event): Check integerness and fix
16400 Lisp_Object/int mixup.
17893c65 16401
048addec 164022001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16403
048addec 16404 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16405
048addec
JD
16406 * fontset.c (fontset_font_pattern): Remove unused variable
16407 `family_registry'.
d5360cc7 16408
048addec 16409 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16410
048addec 164112001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16412
048addec 16413 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16414
048addec
JD
16415 * buffer.c (Fkill_buffer): Don't delete auto save file
16416 if buffer is modified.
d9d54213 16417
048addec 164182001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16419
048addec
JD
16420 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16421 CHECK_NUMBER_CDR.
b116830b 16422
048addec 164232001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16424
048addec 16425 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16426
048addec 164272001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16428
048addec 16429 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16430
048addec 164312001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16432
048addec 16433 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16434
048addec 164352001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16436
048addec
JD
16437 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16438 the program image directly.
982f6c7e 16439
048addec 164402001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16441
048addec 16442 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16443
048addec 164442001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16445
048addec
JD
16446 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16447 and CHECK_BUFFER.
d31053f9 16448
048addec
JD
16449 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16450 (record_char): Likewise.
d31053f9 16451
048addec
JD
16452 * keyboard.c (make_lispy_event): Don't insist a drag event must
16453 move to a different buffer position. Instead, check for moving at
16454 least double_click_fuzz.
982f6c7e 16455
048addec 16456 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16457
048addec 16458 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16459
048addec
JD
16460 * indent.c (current_column_1, Fmove_to_column): Separate the code
16461 for display-table glyphs from the code for buffer text, to fix
16462 bugs in the former.
830047fd 16463
048addec 164642001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16465
048addec
JD
16466 * buffer.c (Fbuffer_local_value): New function.
16467 (syms_of_buffer): Defsubr it.
2df5238c 16468
048addec
JD
16469 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16470 value of `cursor-in-non-selected-windows'.
4e397688 16471
048addec
JD
16472 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16473 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16474 (syms_of_xdisp): Initialize it.
48b0f3ae 16475
048addec 164762001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16477
048addec 16478 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16479
048addec
JD
16480 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16481 keyword].
3ecaf7e5 16482
048addec
JD
16483 * eval.c (top_level_value, top_level_set): Remove commented and
16484 #ifdef'd-out code.
16485 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16486
048addec 164872001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16488
048addec 16489 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16490
048addec 16491 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16492
048addec 16493 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16494
048addec 164952001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16496
048addec
JD
16497 * lisp.h (CHECK_STRING_CAR): New macro.
16498 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16499 treating XCAR and XCDR as lvalues.
16500 (openp): Use CHECK_STRING_CAR.
16501 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16502
048addec 165032001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16504
048addec
JD
16505 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16506 (SIGMASKTYPE): Define.
1b1acc13 16507
048addec 16508 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16509
048addec 165102001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16511
048addec
JD
16512 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16513 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16514 Fix typos in comments.
6cb16f95 16515
048addec
JD
16516 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16517 and #ifdef'd-out code.
16518 Fix and reindent comments.
6cb16f95 16519
048addec 16520 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16521
048addec
JD
16522 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16523 argument `i' in macros.
6cb16f95 16524
048addec
JD
16525 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16526 `i' in macros.
7e9d3c2f 16527
048addec
JD
16528 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16529 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16530 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16531 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16532 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16533 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16534 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16535 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16536 in macros.
7e9d3c2f 16537
048addec
JD
16538 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16539 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16540 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16541 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16542 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16543 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16544 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16545 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16546 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16547 (remove unused second argument).
7e9d3c2f 16548
048addec 165492001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16550
048addec
JD
16551 * syntax.c (describe_syntax): New wrapper.
16552 (Finternal_describe_syntax_value): Rename from describe_syntax.
16553 Don't insert space at front and \n at the end.
16554 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16555
048addec
JD
16556 * regex.c (re_wctype): Try to fix some warnings.
16557 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16558
048addec 165592001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16560
048addec 16561 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16562
048addec 165632001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16564
048addec 16565 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16566
048addec 16567 * data.c (Fsetq_default): Ditto.
c22e59e1 16568
048addec 16569 * callint.c (Finteractive): Ditto.
9271ed2c 16570
048addec 165712001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16572
048addec
JD
16573 * macros.c: Don't include keymap.h any more.
16574
165752001-11-01 Richard M. Stallman <rms@gnu.org>
16576
16577 * data.c (Fmake_local_variable): Doc fix.
16578
16579 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16580 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16581
048addec 16582 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16583 bindings along with or instead of the buffer local map.
16584 Make the overriding maps override what they should.
16585
f00691a3 165862001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16587
16588 * window.c (grow_mini_window): Fix typo in comment.
16589
27188d11
GM
165902001-11-01 Gerd Moellmann <gerd@gnu.org>
16591
7b49b9d2
GM
16592 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16593 (XTset_vertical_scroll_bar): Likewise.
16594
43f7c3ea
GM
16595 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16596 instead of IMAGE_BACKGROUND.
c22e59e1 16597
b350c2e5
GM
16598 * xfns.c (four_corners_best): Reindent.
16599
c22e59e1 16600 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16601 Handle :box so that it is possible to specify sexprs.
16602
bf00d461
EZ
166032001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16604
16605 * s/hpux11.h: New file.
16606
f00691a3 166072001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16608
2b209b97
PJ
16609 * emacs.c (USAGE1): Show command line option --no-window-system
16610 instead of --no-windows in usage.
16611 (standard_args): Rename --no-windows to --no-window-system.
16612 (bug_reporting_address): Follow Emacs coding conventions.
16613
9dbc9081
PJ
16614 * eval.c (Fcommandp): Doc fix.
16615 Change doc-string comments to `new style' [w/`doc:' keyword].
16616
4e10df59
PJ
16617 * frame.c (Fframe_live_p): Doc fix.
16618
16619 * buffer.c (selective-display-ellipses): Doc fix.
16620
dd387b25
GM
166212001-10-31 Gerd Moellmann <gerd@gnu.org>
16622
fe957e65
GM
16623 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16624
dd387b25
GM
16625 * xfaces.c (realize_x_face): If C is not a single-byte character,
16626 set the face's colors_copied_bitwise_p instead of the defaulted_p
16627 members which have a different meaning.
16628 (free_face_colors): Do nothing for a face whose colors have been
16629 copied bitwise.
16630
c22e59e1 16631 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16632
f00691a3 166332001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16634
687784e8
PJ
16635 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16636 [w/`doc:' keyword].
2e1280f8 16637
b9d9a9b9
GM
166382001-10-31 Gerd Moellmann <gerd@gnu.org>
16639
16640 * fns.c (require_unwind): Return Lisp_Object.
16641
f00691a3 166422001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16643
fa1361cb
PJ
16644 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16645 (last-input-char): Revert doc-string to be the same as the
16646 doc-string of `last-input-event'.
16647
6c465a15 16648 * xdisp.c: Fix typos in comments.
48400103 16649
eafa3196
GM
166502001-10-31 Gerd Moellmann <gerd@gnu.org>
16651
16652 * window.c (grow_mini_window): Handle case that the root
16653 window is already smaller than the nominal mininum height.
16654
747d3f2a
SM
166552001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16656
bf9bb76f
SM
16657 * emacs.c (main): Don't call keys_of_macros any more.
16658
16659 * lisp.h (keys_of_macros): Remove.
16660
16661 * macros.c (keys_of_macros): Remove.
16662
747d3f2a
SM
16663 * xfaces.c (Fface_attribute_relative_p): Declare args.
16664
5e905a57
JR
166652001-10-30 Jason Rumney <jasonr@gnu.org>
16666
16667 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16668 (enum_font_cb2): Ignore fonts with vertical orientation.
16669
3a426197
RS
166702001-10-30 Richard M. Stallman <rms@gnu.org>
16671
16672 * keyboard.c (Finput_pending_p): Doc fix.
16673
a742d646
GM
166742001-10-30 Gerd Moellmann <gerd@gnu.org>
16675
259cf6bc
GM
16676 * xterm.c (x_after_update_window_line): Don't run the code
16677 clearing in borders for rows whose visible height is 0.
16678
3f99f948
GM
16679 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16680 resized_p flag is set. If not set, use the much less flickering
16681 method previously used.
16682
16683 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16684
16685 * frame.h (struct frame) <resized_p>: New member.
16686
b4a3be43
GM
16687 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16688 as large as the number of bytes to convert.
747d3f2a 16689
a742d646
GM
16690 * lread.c (to_multibyte): New function.
16691 (read1): Use it.
16692
cacbb9e9
EZ
166932001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16694
16695 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16696
99cb6b2f
GM
166972001-10-30 Gerd Moellmann <gerd@gnu.org>
16698
327f42ee 16699 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16700 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16701 if the row's fill_line_p is set and drawing the last glyph with
16702 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16703
99cb6b2f
GM
16704 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16705
8e8223e2
SM
167062001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16707
16708 * xmenu.c: Include coding.h and charset.h.
16709 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16710 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16711 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16712 Explicitly set wv->help. Use `TRUE' rather than `True'.
16713 (menu_help_callback): Use empty_string.
16714
16715 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16716 (Fx_popup_dialog): Explicitly init f.
16717 (w32_menu_display_help): Use empty_string.
16718
4d083a8f
RS
167192001-10-29 Richard M. Stallman <rms@gnu.org>
16720
b2304472
RS
16721 * fns.c (Frequire): Detect recursive try to require the same
16722 feature 3 or more levels deep, and get error.
16723 (require_unwind): New subroutine.
16724 (require_nesting_list): New variable.
16725 (syms_of_fns): Init and staticpro it.
16726
4d083a8f
RS
16727 * print.c (print_object): Clarify indication of insertion type.
16728
2fe41216
EZ
167292001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16730
90480000
EZ
16731 * coding.c (syms_of_coding): Document that locale-coding-system is
16732 used for decoding input on X.
16733
2fe41216
EZ
16734 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16735
f00691a3 167362001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16737
16738 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16739 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16740
60ebcfe8
GM
167412001-10-29 Gerd Moellmann <gerd@gnu.org>
16742
9a7bdceb
GM
16743 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16744 use NO_CURSOR if cursor_in_non_selected_windows is false.
16745
3f08fcd2
GM
16746 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16747 the slant attribute if FRAME is t.
16748
0ccfdad2
GM
16749 * xfns.c (x_set_internal_border_width): Set frame garbaged
16750 when X window doesn't exist yet.
16751
ef253080
GM
16752 * xterm.c (x_after_update_window_line): Clear internal border
16753 in different circumstances.
b116830b 16754
60ebcfe8
GM
16755 * xterm.c (XTread_socket) <KeyPress>: Don't use
16756 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16757 <handa@etl.go.jp>.
16758
73d25f9c
EZ
167592001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16760
16761 * m/ibms390.h: New file. From Adam Thornton
16762 <athornton@sinenomine.net>.
16763
cac1daf0
GM
167642001-10-28 Gerd Moellmann <gerd@gnu.org>
16765
053b3256 16766 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16767
cac1daf0
GM
16768 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16769 a loop counter.
16770
f00691a3 167712001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16772
f9711de4 16773 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16774
4707d2d0
PJ
16775 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16776 keyword].
16777 Fix typos in comments.
b116830b 16778
d883731c
PJ
16779 * emacs.c (bug_reporting_address): New function.
16780 Use it when displaying usage message.
16781
04012254
PJ
16782 * minibuf.c (read_minibuf): Remove unused external declaration of
16783 variable `Qread_only'.
16784
13b1a09c
PJ
16785 * keymap.c (access_keymap): Remove unused variable `charset'.
16786
5bbf4378
MB
167872001-10-28 Miles Bader <miles@gnu.org>
16788
16789 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16790 Remove #ifdef'd-out code.
16791 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16792 (syms_of_xfaces): Initialize them.
16793
1ce1e4ee
JR
167942001-10-27 Jason Rumney <jasonr@gnu.org>
16795
16796 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16797 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16798 position using the system caret.
16799
16800 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16801 (w32_system_caret_height, w32_system_caret_x)
16802 (w32_system_caret_y): New variables for tracking system caret.
16803 (w32_initialize): Initialize them.
c2d53558 16804 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16805
c2d53558
SM
16806 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16807 New messages types.
1ce1e4ee
JR
16808
16809 * w32term.c (note_mouse_highlight): Clear old help_echo.
16810
f00691a3 168112001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16812
bb4600a4
PJ
16813 * xterm.c: Fix typo in a comment.
16814
7db35a48
PJ
16815 * emacs.c: Fix typos in comments.
16816 Remove unnecessary spaces.
16817 Change doc-string comments to `new style' [w/`doc:' keyword].
16818 (USAGE2): Fix typos in usage string.
16819
a7248e4f
PJ
16820 * xterm.c: Fix typo in a comment.
16821
4e30ce42
PJ
16822 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16823 emacs.c.
16824
62725a92
GM
168252001-10-27 Gerd Moellmann <gerd@gnu.org>
16826
798dbe1f 16827 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16828 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16829 farther backward when target_y was not reached.
16830
62725a92
GM
16831 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16832 Display errno only if non-zero.
16833 (sound_warning): New function.
16834 (vox_configure): Don't treat failing to set sample rate as error.
16835 (various places): Improve error messages.
16836
d4e34d24
EZ
168372001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16838
944e6f60
EZ
16839 * fileio.c (Faccess_file): Run the argument filename through
16840 Fexpand_file_name, before using it.
16841
d4e34d24
EZ
16842 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16843 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16844
38d2af0c
GM
168452001-10-26 Gerd Moellmann <gerd@gnu.org>
16846
da80a8d5
GM
16847 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16848
38d2af0c
GM
16849 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16850 Fix clearing in the case of scroll bars on the right.
c2d53558 16851
45de4a6f 168522001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16853
16854 * w32gui.h (XImage): Add a dummy typedef.
16855
fbd5ceb2
GM
168562001-10-26 Gerd Moellmann <gerd@gnu.org>
16857
c2d53558 16858 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16859
b23236fb
EZ
168602001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16861
16862 * frame.c (Fframe_parameter): Fix last change.
16863
5d991fc4
EZ
16864 * fileio.c: Revert last change (which removed old commented-out
16865 version of expand-file-name). Add a comment that explains why
16866 this old version should not be removed.
16867
879eadc3
GM
168682001-10-25 Gerd Moellmann <gerd@gnu.org>
16869
75700ff2
GM
16870 * frame.c (Fframe_parameter): Fix a bug whereby some
16871 ``artificial'' frame parameters, like `minibuffer' were not
16872 obtained by calling Fframe_parameters.
16873
dfe92a6a
GM
16874 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16875 cursor differently.
16876
879eadc3
GM
16877 * xdisp.c (move_it_vertically_backward): Compute line height
16878 differently. Add heuristic to try to be more compatible to 20.x.
16879
e1010ebe
SM
168802001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16881
d73a471b
SM
16882 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16883
d6da5a06
GM
16884 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16885 boolean.
e1010ebe 16886
f66bd220
MB
168872001-10-25 Miles Bader <miles@gnu.org>
16888
16889 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16890 BG is a pointer to a structure, not a structure.
16891 (gif_format, png_format): Add missing commas.
16892
d436d538
RS
168932001-10-24 Richard M. Stallman <rms@gnu.org>
16894
16895 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16896 (syms_of_xfaces): Defsubr it.
d436d538 16897
f00691a3 168982001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16899
16900 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16901 variable `area'.
16902
f00691a3 169032001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16904
c2d53558 16905 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16906
e2a57b34
MB
169072001-10-25 Miles Bader <miles@gnu.org>
16908
16909 * dispextern.h (struct image): Add `background',
16910 `background_valid', and `background_transparent' fields.
16911 (image_background, image_background_transparent): New declarations.
16912 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16913 * xfns.c (image_background, image_background_transparent)
16914 (four_corners_best): New functions.
c2d53558 16915 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16916 (gs_format): Add `:background' entry.
16917 (lookup_image): Set IMG's background color if specified.
16918 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16919 when appropriate.
16920 (x_clear_image_1): Reset `background_valid' and
16921 `background_transparent_valid' fields.
16922 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16923 calculating it here. Set IMG's background_transparent field.
16924 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16925 (enum png_keyword_index): Add PNG_BACKGROUND.
16926 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16927 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16928 (enum gif_keyword_index): Add GIF_BACKGROUND.
16929 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16930 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16931 Pre-calculate image background color where necessary.
16932 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16933 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16934 color to use for image glyph reliefs.
16935
b547b6e8
GM
169362001-10-24 Gerd Moellmann <gerd@gnu.org>
16937
d9e3b8c6
GM
16938 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16939 in full-width rows.
c2d53558 16940
b547b6e8
GM
16941 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16942 Fix clearing of area not covered by scroll bar.
16943
f00691a3 169442001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16945
16946 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16947 and `real_start'.
c2d53558 16948 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16949 (glyph_rect): Remove unused variable `area'.
16950
76cb5e06
GM
169512001-10-24 Gerd Moellmann <gerd@gnu.org>
16952
bdbdebff 16953 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16954
16955 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16956 (row_containing_pos): Take additional argument DY.
16957 Treat rows ending in middle of char differently.
62e33982
GM
16958 (display_line): Handle tabs on window systems differently.
16959
16960 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16961 with additional argument.
16962
16963 * dispextern.h (row_containing_pos): Adjust prototype.
16964
76cb5e06
GM
16965 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16966 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16967 (try_window_id, try_window_reusing_current_matrix)
16968 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16969 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16970
f00691a3 169712001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16972
c9e60620
PJ
16973 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16974 gnuemacs).
16975 (HAVE_BOXES): Fix typo in comment.
16976 (push_menu_pane): Fix typo in comment.
16977
3b552d56
PJ
16978 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16979 of `Qwhen'.
16980 (single_display_prop_string_p): Remove unused local declarations
16981 of `Qwhen' and `Qmargin'.
16982 (string_buffer_position): Remove unused variable `around'.
16983 (store_frame_title): Remove unused variable `width'.
16984
15c565ac
PJ
16985 * window.c: Don't define max.
16986 (coordinates_in_window): Remove unused variable `uy'.
16987
a8818eb9
PJ
16988 * widget.c: Don't define max.
16989
996fee11
PJ
16990 * process.c: Don't define max.
16991 (create_process): Remove unused variable `buffer'.
16992
496e1a5b
GM
169932001-10-23 Gerd Moellmann <gerd@gnu.org>
16994
c2d53558 16995 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16996
5905ae8b
EZ
169972001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16998
16999 * xfaces.c (Finternal_set_lisp_face_attribute)
17000 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17001 frame is on a windowed display.
17002
24db49fb
GM
170032001-10-23 Gerd Moellmann <gerd@gnu.org>
17004
c2d53558
SM
17005 * dispnew.c (sync_window_with_frame_matrix_rows):
17006 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
17007 of marginal areas.
17008
c2d53558 17009 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17010
f0487f05
EZ
170112001-10-23 Andreas Schwab <schwab@suse.de>
17012
17013 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17014 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17015
f0a48a01
GM
170162001-10-23 Gerd Moellmann <gerd@gnu.org>
17017
c2d53558 17018 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17019 REAL_END. Notice if cursor gets overwritten.
17020 (notice_overwritten_cursor): Take X positions as parameters.
17021 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17022 around call to x_draw_glyphs.
17023
f00691a3 170242001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17025
fc11dff0
PJ
17026 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17027 instead of C) and usage.
a50a10a0 17028
fc11dff0
PJ
17029 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17030 of C) and usage.
a50a10a0
PJ
17031
17032 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17033 `left', `max_width' and `max_height'.
17034
8738febd
GM
170352001-10-23 Gerd Moellmann <gerd@gnu.org>
17036
17037 * xdisp.c (display_line): For a tab continued to the next line,
17038 set row's ends_in_middle_of_char_p.
17039
653c329b
GM
170402001-10-22 Gerd Moellmann <gerd@gnu.org>
17041
17042 * xdisp.c (display_line): Fix computation of continuation lines
17043 width for TABs.
17044
f00691a3 170452001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17046
7ba51063
PJ
17047 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17048 `Qlaplace'.
17049
f958c5ac
PJ
17050 * fileio.c: Remove unused code.
17051
eb360291
MB
170522001-10-22 Miles Bader <miles@gnu.org>
17053
17054 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17055 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17056 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17057
98515cf0
JR
170582001-10-21 Jason Rumney <jasonr@gnu.org>
17059
17060 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17061
93026d88
EZ
170622001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17063
17064 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17065 (Finsert_string): Avoid the multi-line string literals warning.
17066
c9a95b79
MB
170672001-10-22 Miles Bader <miles@gnu.org>
17068
17069 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17070 (Fdocumentation): Don't use it.
17071 (syms_of_doc): Don't initialize it.
17072
17073 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17074 * print.c (Fwith_output_to_temp_buffer): Likewise.
17075 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17076 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17077 (Fsave_restriction): Likewise.
c2d53558
SM
17078 * eval.c (Frun_hooks, Frun_hook_with_args)
17079 (Frun_hook_with_args_until_failure)
17080 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17081 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17082 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17083 (Funwind_protect, Fcondition_case): Likewise.
17084 * coding.c (Ffind_operation_coding_system): Likewise.
17085 * keyboard.c (Ftrack_mouse): Likewise.
17086
a3b10252
MB
170872001-10-21 Miles Bader <miles@gnu.org>
17088
c2d53558 17089 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17090 (Fmake_hash_table): Add usage: string to doc string.
17091 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17092 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17093 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17094 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17095 (Fml_prefix_argument_loop): Likewise.
17096
f00691a3 170972001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17098
c2d53558 17099 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17100
c6f73eec
PJ
17101 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17102 style' [w/`doc:' keyword].
17103
17104 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17105 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17106 comments to `new style' [w/`doc:' keyword].
17107
3cf3436e
JR
171082001-10-21 Jason Rumney <jasonr@gnu.org>
17109
17110 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17111
c169b8f1
JR
17112 * w32term.c (remember_mouse_glyph): New function.
17113 (w32_mouse_position): Use it.
17114 (note_mouse_movement): If the mouse moved off the glyph, remember
17115 its new position.
c2d53558 17116
4fdd691b
JR
17117 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17118 (w32_display_info): Add mouse_face_overlay.
17119
c169b8f1
JR
17120 * w32term.c (notice_overwritten_cursor): Renamed from
17121 note_overwritten_text_cursor. Rewritten to take glyph widths into
17122 account.
17123 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17124 (fast_find_string_pos): New function.
17125 (fast_find_position): Return the correct vpos. Add parameter
17126 STOP. In the final row, stop before glyphs having STOP as object.
17127 Don't consider glyphs that are not from a buffer.
17128 (fast_find_position) [0]: Add a presumably more correct version
17129 for after 21.1.
17130 (expose_window_tree, expose_frame): Don't compute intersections here.
17131 (expose_window): Do it here instead.
17132 (expose_window_tree, expose_window, expose_line): Return 1 when
17133 overwriting mouse-face.
17134 (expose_window): If W is the window currently being updated, mark
17135 the frame garbaged.
17136 (expose_frame): If mouse-face was overwritten, redo it.
17137 (x_use_underline_position_properties): New variable.
17138 (syms_of_xterm): DEFVAR_BOOL it.
17139 (x_draw_glyph_string): Add comment to use it in future.
17140 (x_draw_glyph_string): Restore clipping after drawing box.
17141 Fix a computation of the underline position.
17142 (w32_get_glyph_string_clip_rect): Minor cleanup.
17143 (x_fill_stretch_glyph_string): Remove an assertion.
17144 (x_produce_glyphs): Don't convert multibyte characters
17145 to unibyte characters in unibyte buffers.
17146 (cursor_in_mouse_face_p): New function.
17147 (x_draw_stretch_glyph_string): Use it to choose a different GC
17148 when drawing a cursor within highlighted text. Don't draw
17149 background again if it has already been drawn.
17150 (x_draw_glyph_string_box): Don't draw a full-width
17151 box just because the glyph row's full_width_p flag is set.
17152 (x_draw_glyphs): Fix computation of rightmost x for
17153 full-width rows.
17154 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17155 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17156 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17157 (x_update_window_end): Handle overwritten mouse face
17158 also for tool bar windows.
17159 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17160 DRAW is DRAW_IMAGE_RAISED.
17161 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17162 actually redrawn. Make the function static.
17163 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17164 optimize away highlighting if we pass over that same overlay again.
17165 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17166 to detect a case where we have to highlight a different region
17167 despite not having left the currently highlighted region.
17168 Set mouse_face_overlay in the x_display_info. Avoid changing the
17169 mouse pointer shape when show_mouse_face has already done it, or
17170 there is no need. Handle mouse-face and help-echo in strings.
17171 (glyph_rect): New function.
17172 (w32_mouse_position): Use it to raise the threshold for mouse
17173 movement event generation.
17174 (w32_initialize_display_info): Initialize the x_display_info's
17175 mouse_face_overlay.
17176 (w32_set_vertical_scroll_bar): Don't clear a zero height
17177 or width area.
17178 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17179 a widget to zero height.
17180
3cf3436e 17181 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17182 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17183 equivalents in menu_items.
17184 (w32_menu_show): Don't overwrite an item's name with its key
17185 description in case the description is a multibyte string.
17186 (single_submenu): Some cleanup.
17187
17188 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17189 (postprocess_image): New function.
17190 (lookup_image): Call it for all image types except PostScript.
17191 (x_kill_gs_process): Call postprocess_image.
17192 (tiff_error_handler, tiff_warning_handler): New functions.
17193 (tiff_load): Install them as handlers.
17194 (x_kill_gs_process): Recognize if someone has cleared the image
17195 cache under us.
17196 (valid_image_p): Protect better against invalid image
17197 specifications. Previous code could signal an error.
17198 (Fx_hide_tip, Fshow_tip): Doc fix.
17199 (Fv_max_tooltip_size): New variable.
17200 (syns_of_xfns): DEFVAR_LISP it.
17201 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17202 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17203 window_width. Use a maximum tooltip size specified by
17204 Vx_max_tooltip_size, if that has valid contents.
17205 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17206 Make sure the tooltip is completely visible.
17207 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17208 (Fx_create_frame): Adjust the frame's height for presence
17209 of the tool bar before calling x_figure_window_size.
17210 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17211 when the window gets smaller.
17212 (x_set_foreground_color): Set frame's cursor_pixel.
17213 (x_set_foreground_color, x_set_background_color): Cleaned up.
17214 (x_set_font): Handle case of x_new_fontset returning the same name
17215 as before, although there was a change in fontsets.
17216
386ca361
MB
172172001-10-21 Miles Bader <miles@gnu.org>
17218
c2d53558 17219 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17220 (Flogxor): Add usage: string to doc string.
17221 * charset.c (Fstring): Likewise.
17222 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17223 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17224
f00691a3 172252001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17226
03be2694
PJ
17227 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17228
17229 * alloc.c: Reindent DEFUNs with doc: keywords.
17230
17231 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17232
14ff1ee0
PJ
17233 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17234 keyword].
17235
2f147815 17236See ChangeLog.9 for earlier changes.
6922b018
KH
17237
17238;; Local Variables:
49b3bd82 17239;; coding: iso-2022-7bit
6922b018 17240;; End:
2a34a036 17241
2f147815 17242 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17243 Copying and distribution of this file, with or without modification,
17244 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17245
17246;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4