(Fformat_mode_line): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
026cdede
SM
12005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * alloc.c (refill_memory_reserve): Move.
4 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
6
d57c7572
RS
72005-01-03 Richard M. Stallman <rms@gnu.org>
8
9 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
11
b14f868c
JR
122005-01-03 Jason Rumney <jasonr@gnu.org>
13
14 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
15 fontp->space_width to FONT_WIDTH so they are valid.
16
17 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
18 average width. Set fontp->average_width and fontp->space_width to
19 their appropriate values.
20
21 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
22 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
23 fontp->space_width.
24
e169f939
ST
252005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26
27 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
28 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
29 metrics for max and min bounds.
30 (x_load_font): Correctly calculate average font width metrics.
31
19996af4
RS
322005-01-02 Richard M. Stallman <rms@gnu.org>
33
34 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
35
42d02da0
JD
362004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
37
38 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
39
1db7dd46
RS
402004-12-31 Richard M. Stallman <rms@gnu.org>
41
b437860a
RS
42 * xdisp.c (setup_for_ellipsis, get_next_display_element):
43 Set it->ellipsis_p to 1 or 0.
44 (display_line): Record whether row ends in mid-ellipsis.
45 (set_cursor_from_row): If ends in ellipsis. find start of it.
46 (cursor_row_p): If PT's at the end of the ellipsis the row
47 ends within, don't display cursor on this row.
48
49 * dispextern.h (struct it): New element ellipsis_p.
50 (struct glyph_row): New element ends_in_ellipsis_p.
51
52 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
53 position if we're reading from something other than the buffer.
54
1db7dd46
RS
55 * window.c (window_scroll_pixel_based): Only look at
56 Vscroll_preserve_screen_position if the old PT can't be kept.
57 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
58
1225f637
KS
592004-12-30 Kim F. Storm <storm@cua.dk>
60
61 * xdisp.c (get_line_height_property): New function extracted from
62 original calc_line_height_property.
63 (calc_line_height_property): Rework. Handle t and (nil . ratio).
64 (x_produce_glyphs): Use them to handle line-height and
65 line-spacing according to new height spec.
66 (Qtotal): Remove.
33b2f4ea 67 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 68
c243063e
KH
692004-12-30 Kenichi Handa <handa@m17n.org>
70
71 * fileio.c (Finsert_file_contents): Don't use
72 current_buffer->buffer_file_coding_system even if REPLACE is
73 non-nil. Call Qafter_insert_file_set_coding with the second arg
74 VISIT.
75
76 * fontset.h (struct font_info): New members space_width and
77 average_width.
78
79 * frame.h (struct frame): New member space_width.
80 (FRAME_SPACE_WIDTH): New macro.
81
82 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
83
84 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
85 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 86 fontp->space_width.
c243063e
KH
87 (x_load_font): Calculate fontp->space_width and
88 fontp->average_width.
89 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
90
91 * xdisp.c (x_produce_glyphs): Calculate tab width by
92 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
93
456e761b
ST
942004-12-29 Sanghyuk Suh <han9kin@mac.com>
95
96 * macterm.c (SelectionRange): Add Xcode position apple event struct.
97 (do_ae_open_documents): Handle Xcode-style file position open
98 events.
99
188577ce
LT
1002004-12-29 Luc Teirlinck <teirllm@auburn.edu>
101
102 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
103
99ec74b9
RS
1042004-12-29 Richard M. Stallman <rms@gnu.org>
105
106 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
107
30c92fab
ST
1082004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
109
110 * macfns.c (install_window_handler): Modify extern to return OSErr
111 value.
112 (mac_window): Handle return value of install_window_handler.
113
114 * macterm.c (reflect_byte): Remove function.
115 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
116 Lookup table instead.
117 (mac_do_font_lists): Simplify calculation of the longest
118 nonspecial string.
119 (init_mac_drag_n_drop): Remove function and declaration.
120 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
121 init_mac_drag_n_drop.
122 (mac_do_track_drag): New function and declaration.
123 (install_window_handler): Return OSErr value.
124 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
125 handlers for tracking/receiving drag-and-drop items.
126 (do_ae_open_documents): Generate unibyte strings for filenames.
127 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
128 only non-filename items. Set event modifiers. Set return value.
129
4b982924
DN
1302004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
131
132 * coding.c (decode_coding): Fix previous change.
133
93fdf45f
RS
1342004-12-28 Richard M. Stallman <rms@gnu.org>
135
136 * xdisp.c (back_to_previous_visible_line_start):
137 Don't call handle_display_prop.
138
5bdca8af
DN
1392004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
140
141 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
142 (decode_coding_emacs_mule, encode_coding_emacs_mule)
143 (decode_coding_iso2022, encode_designation_at_bol)
144 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
145 (decode_coding): Constify arguments and local vars.
146
33385c6f
JD
1472004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
148
149 * xmenu.c (popup_get_selection): Only pop down dialogs
150 on C-g and Escape.
95bdef2e 151 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 152 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 153 parameter down_on_keypress to popup_get_selection.
33385c6f 154
b15325b2
ST
1552004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156
157 * dispextern.h: Change HAVE_CARBON to MAC_OS.
158 (struct glyph_string): Likewise.
a2c7e69a 159
b15325b2
ST
160 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
161 mac_initialize.
a2c7e69a 162
b15325b2
ST
163 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
164 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 165
b15325b2 166 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 167
b15325b2
ST
168 * frame.c (x_set_frame_parameters, x_report_frame_params)
169 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
170 (x_set_border_width, Vdefault_frame_scroll_bars): Change
171 HAVE_CARBON to MAC_OS.
a2c7e69a 172
b15325b2
ST
173 * image.c [MAC_OS]: Include sys/stat.h.
174 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
175 QuickTimeComponents.h.
a2c7e69a 176
b15325b2
ST
177 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
178 [!MAC_OSX] (select): Use mac_wait_next_event.
179 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
180 Vexec_suffixes.
181 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
182 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
183 (mac_clear_font_name_table): Add extern.
184 (Fmac_clear_font_name_table): New defun.
185 (syms_of_mac): Defsubr it.
186 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
187 [MAC_OSX] (select_and_poll_event): New function.
188 [MAC_OSX] (sys_select): Use it.
189 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
190 [MAC_OSX && SELECT_USE_CFSOCKET]
191 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
192 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
193 RunLoop for simultaneously monitoring two kinds of inputs, window
194 events and process outputs, without periodically polling.
a2c7e69a 195
b15325b2
ST
196 * macfns.c (mac_initialized): Remove extern.
197 (stricmp): Put in #if 0. All callers changed to use xstricmp in
198 xfaces.c.
199 (strnicmp): Decrement `n' at the end of each loop, not the
200 beginning.
201 (check_mac): Use the term "Mac native windows" instead of "Mac
202 OS".
203 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
204 (mac_get_rdb_resource): New function (from w32reg.c).
205 (x_get_string_resource): Use it.
206 (install_window_handler): Add extern.
207 (mac_window): New function.
208 (Fx_create_frame): Use it instead of make_mac_frame. Set
209 parameter for Qfullscreen. Call x_wm_set_size_hint.
210 (Fx_open_connection, Fx_close_connection): New defuns.
211 (syms_of_macfns): Defsubr them.
212 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
213 kWindowNoUpdatesAttribute to the window attribute.
214 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
215 (x_create_tip_frame): Don't call ShowWindow.
216 (Fx_show_tip): Call ShowWindow.
217 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
218 TARGET_API_MAC_CARBON'.
219 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
220 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 221
b15325b2
ST
222 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
223 Windows.h.
224 (Window): Typedef to WindowPtr and move outside `#if
225 TARGET_API_MAC_CARBON'.
226 (XSizeHints): New struct.
a2c7e69a 227
b15325b2
ST
228 * macterm.c (x_update_begin, x_update_end)
229 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
230 frame.
231 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
232 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
233 (construct_mouse_click): Put in #if 0.
234 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
235 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
236 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
237 (activate_scroll_bars, deactivate_scroll_bars)
238 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
239 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
240 if the position is neither user-specified nor program-specified.
241 (x_free_frame_resources): Free size_hints.
242 (x_wm_set_size_hint): Allocate size_hints if needed. Set
243 size_hints.
244 (mac_clear_font_name_table): New function.
245 (mac_do_list_fonts): Initialize font_name_table if needed.
246 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
247 around mac_do_list_fonts.
248 (mac_unload_font): New function.
249 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
250 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
251 and definitions with #if TARGET_API_MAC_CARBON.
252 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
253 (install_window_handler): Add decl.
254 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
255 window. Use UpdateControls. Get the rectangle that should be
256 updated and restrict the target of expose_frame to it.
257 (do_grow_window): Set minimum height/width according to
258 size_hints.
259 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
260 (do_zoom_window): Don't use x_set_window_size.
261 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
262 (install_window_handler): New function.
263 [!USE_CARBON_EVENTS] (mouse_region): New variable.
264 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
265 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
266 GetEventDispatcherTarget inside BLOCK_INPUT.
267 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
268 Update mouse_region when mouse is moved.
269 (make_mac_frame): Remove.
270 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
271 mouse pointer shapes. Change values of f->left_pos and
272 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
273 call ShowWindow.
274 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
275 Vinvocation_name and Vsystem_name.
276 (mac_make_rdb): New function (from w32term.c).
277 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
278 already been opened. Don't pass argument to
279 mac_initialize_display_info. Don't set dpyinfo->height/width.
280 Add entries to x_display_list and x_display_name_list.
281 (x_delete_display): New function.
282 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
283 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
284
b15325b2
ST
285 * macterm.h (check_mac): Add extern.
286 (struct mac_output): New member size_hints.
287 (FRAME_SIZE_HINTS): New macro.
288 (mac_unload_font): Add extern.
a2c7e69a 289
b15325b2 290 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 291
b15325b2
ST
292 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
293
92d2947b
RS
2942004-12-27 Richard M. Stallman <rms@gnu.org>
295
ebbd14f1
RS
296 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
297 (syms_of_buffer): Don't defsubr it.
298
299 * process.c (list_processes_1): Set undo_list instead
300 of calling Fbuffer_disable_undo.
301
92d2947b
RS
302 * xdisp.c (single_display_spec_string_p): Renamed from
303 single_display_prop_string_p.
304 (single_display_spec_intangible_p): Renamed from
305 single_display_prop_intangible_p.
306 (handle_single_display_spec): Renamed from handle_single_display_prop.
307 Rewritten to be easier to understand.
308
a2c7e69a 309 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
310 and variables get just NAME.
311
312 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
313
314 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
315 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
316 (Qdefvar): Var deleted.
317 (syms_of_eval): Don't initialze it.
318
319 * lread.c (syms_of_lread) <load-history>: Doc fix.
320
9f6fcdc5
JD
3212004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
322
323 * xmenu.c (popup_get_selection): Pop down on C-g.
324 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
325 pops down menu on C-g.
326 (xdialog_show): If dialog popped down and no button in the dialog was
327 pushed, call Fsignal to quit.
328 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
329 Fsignal to quit.
330
331 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
332
333 * gtkutil.c (xg_initialize): Install bindings for C-g so that
334 dialogs and menus pop down.
335
d8ca23a0
KH
3362004-12-27 Kenichi Handa <handa@m17n.org>
337
338 * coding.c (code_convert_region): Fix calculation of `ratio'.
339
857ae68b
JD
3402004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
341
133c0116
JD
342 * gtkutil.c (update_frame_tool_bar): Make the value of
343 tool-bar-button-margin control margins of images in tool bar.
344
857ae68b
JD
345 * alloc.c (check_depth): New variable.
346 (overrun_check_malloc, overrun_check_realloc): Only add
347 overhead and write check pattern if check_depth is 1 (to handle
348 recursive calls). Increase/decrease check_depth in entry/exit.
349 (overrun_check_free): Only check for overhead if check_depth is 1.
350 Increase/decrease check_depth in entry/exit.
351
bd55c35c
JD
3522004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
353
354 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
355 before touching input_available_clear_time, to avoid accessing it
356 from multiple threads.
357
66354420
JR
3582004-12-23 Jason Rumney <jasonr@gnu.org>
359
360 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
361 of JPEG library.
362
55f4edbc
RS
3632004-12-22 Richard M. Stallman <rms@gnu.org>
364
365 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
366
367 * lisp.h (Vundo_outer_limit): Fix decl.
368
369 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
370 Uses changed.
371 (syms_of_undo): Initialize appropriately.
372 (truncate_undo_list): If it's nil, there's no limit.
373
7a0ea9e3
KH
3742004-12-22 Kenichi Handa <handa@m17n.org>
375
376 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
377
fda2922a
RS
3782004-12-21 Richard M. Stallman <rms@gnu.org>
379
380 * eval.c (unwind_to_catch): Clear immediate_quit.
381
382 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
383 specially as `\ ' and `\-'.
384
385 * keyboard.c (kbd_buffer_store_event_hold):
386 In the code for while-no-input, handle immediate_quit.
387
388 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
389 Call that at the very start.
390 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
391 (syms_of_alloc): Don't define undo-limit,
392 undo-strong-limit and undo-outer-limit here.
393
394 * undo.c (truncate_undo_list): Return void.
395 Take just one argument, the buffer.
396 Make it current, and inhibit recursive GC.
397 Access and update the undo list directly; return void.
398 Refer to the undo...limit variables directly.
399 Test undo_outer_limit only after counting the whole current command.
400 When it's exceeded, call the function in undo-outer-limit-function.
401 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
402 (Vundo_outer_limit_function): New variable.
403 (syms_of_undo): Define undo-limit, undo-strong-limit
404 and undo-outer-limit here, and undo-outer-limit-function.
405 Doc fixes.
406
407 * lisp.h (truncate_undo_list): Update decl.
408
4092004-12-21 Piet van Oostrum <piet@cs.uu.nl>
410
411 * fileio.c (Fread_file_name): Delete duplicates in
412 file-name-history when history_delete_duplicates is true.
413
68c69027
ST
4142004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
415
416 * macterm.c (mac_do_list_fonts): Fix memory leak
417
134579f2
RS
4182004-12-20 Richard M. Stallman <rms@gnu.org>
419
420 * regex.c (re_match_2_internal) <symend, wordend>:
421 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
422
fbe6152f
ST
4232004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
424
425 * macterm.c (endif, x_font_name_to_mac_font_name): Use
426 maccentraleurroman instead of maccentraleuropean
427 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
428 quickly finding a specific font without needing regexps.
429
fecad3f6
JD
4302004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
431
333f1b6f
JD
432 * syssignal.h: Declare main_thread.
433 (SIGNAL_THREAD_CHECK): New macro.
434
435 * keyboard.c (input_available_signal): Move thread checking code
436 to macro SIGNAL_THREAD_CHECK and call that macro.
437 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
438
439 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
440
441 * emacs.c: Define main_thread.
442 (main): Initialize main_thread.
443 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
444 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
445
446 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
447
448 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
449
450 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
451
a2c7e69a 452 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
453 SIGNAL_THREAD_CHECK.
454
455 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
456
457 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
458
fecad3f6
JD
459 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
460 returning when xg_ignore_gtk_scrollbar is true.
461
2a84c6da
KS
4622004-12-14 Kim F. Storm <storm@cua.dk>
463
464 * keyboard.c (read_char): Save and restore echo_string when
465 handling input method.
466
d9c1ce9d
RS
4672004-12-13 Richard M. Stallman <rms@gnu.org>
468
469 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
470
471 * keyboard.c (Vthrow_on_input): New variable.
472 (syms_of_keyboard): Defvar and initialize it.
473 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
474
475 * lisp.h (QUIT): Check for Vthrow_on_input.
476 (Vthrow_on_input): Declare it.
477
a6495ed5
KS
4782004-12-13 Kim F. Storm <storm@cua.dk>
479
480 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
481 vector.
482
24a0e22f
RS
4832004-12-12 Richard M. Stallman <rms@gnu.org>
484
485 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
486
487 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
488 (Ftry_completion): Really use outer `zero'; eliminate inner one.
489
d6d31e57
KH
4902004-12-12 Kenichi Handa <handa@m17n.org>
491
492 * term.c (encode_terminal_code): Fix previous change.
493
6f8ffb88
SM
4942004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
495
fb6f5cbf
SM
496 * keyboard.c (handle_async_input): Remove pthread mutex handling.
497 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
498
6f8ffb88
SM
499 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
500 in macro arguments.
501
502 * minibuf.c (Ftry_completion, Fall_completions): Don't use
503 XFASTINT blindly.
504
505 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
506
c83c9f9d
JD
5072004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
508
2f25767f
JD
509 * w32term.c (x_calc_absolute_position): Remove calculation of
510 difference between inner and outer window. Don't subtract difference
511 for left and top calculations.
512
c83c9f9d
JD
513 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
514 for left and top calculations. Remove call to x_real_positions.
24a0e22f 515 [Bug report by Drew Adams in November]
c83c9f9d
JD
516 (x_check_expected_move): Do not set change_gravity to 1 when calling
517 x_set_offset.
518
cc1caa4e
RS
5192004-12-08 Richard M. Stallman <rms@gnu.org>
520
521 * xdisp.c (get_next_display_element): Use `escape-glyph' for
522 control chars and escaped octal codes.
523 (Qescape_glyph): New variable.
524 (syms_of_xdisp): Initialize it.
525 (escape_glyph_face): New variable.
526 (redisplay_window): Initialize it.
527
e0e30823
RS
5282004-12-07 Paul Eggert <eggert@cs.ucla.edu>
529
530 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
531 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
532
f415cacd
JD
5332004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
534
cf435f39
JD
535 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
536 reset_malloc_hooks.
537
6f8ffb88
SM
538 * keyboard.c (handle_async_input, input_available_signal):
539 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 540
f415cacd
JD
541 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
542
19b1f29a
SM
5432004-12-07 Stefan <monnier@iro.umontreal.ca>
544
545 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
546
547 * config.in: Regenerate.
548
ded997c1
JD
5492004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
550
453a4f1b
JD
551 * xmenu.c (Fx_popup_menu): Correct documentation about position.
552 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
553 if not given by a mouse click to correspond with x-popup-menu
554 documentation.
555
9a38524c
JD
556 * config.in: Regenerate.
557
aa477689
JD
558 * gtkutil.c: Include signal.h and syssignal.h.
559 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
560
561 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
562 new variables main_thread and alloc_mutex,
563 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
564 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
565 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
566 (UN)BLOCK_INPUT.
567 (emacs_blocked_free, emacs_blocked_malloc)
568 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
569 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
570 (reset_malloc_hooks): New function.
571
572 * lisp.h: Declare reset_malloc_hooks.
573
574 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
575
576 * keyboard.c: Conditionally include pthread.h
6f8ffb88 577 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
578 thread, block signal, send signal to main thread and return.
579
ded997c1 580 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 581 Set current folder in file chooser if default_filename is a directory.
ded997c1 582
c72b0edd
SM
5832004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
586 Remove redundant correctness checks.
587 (regex_compile): Fix up error codes for \{..\} expressions.
588
c721eee5
RS
5892004-12-05 Richard M. Stallman <rms@gnu.org>
590
591 * regex.c (regex_compile): Fix end-of-pattern case for space.
592
d8f96db8
ST
5932004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
594
6108209e
KS
595 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
596 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 597 crashes with invalid characters.
6108209e
KS
598 * macmenu.c (add_menu_item): Use it.
599 * image.c (image_load_quartz2d): Likewise.
600 * macfns.c (x_set_name, x_set_title): Likewise.
601 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
602 creating them each time for labels.
d8f96db8 603
ab67e8b6
RS
6042004-12-02 Richard M. Stallman <rms@gnu.org>
605
606 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
607 don't use it here.
608
609 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
610 (interactive_p): Skip Scalled_interactively_p frames
611 like Sinteractive_p frames.
b8217ea6 612 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
613
614 * data.c (Fmake_variable_buffer_local): Doc fix.
615 (Fmake_local_variable): Doc fix.
616
617 * insdel.c (insert_from_string_before_markers)
618 (insert_from_string): Don't modify buffer on empty insertion.
619
620 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
621
f86bdc80
ST
6222004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
623
624 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
625 menu text as UTF8 fails.
626
1cae6d39
KS
6272004-12-01 Kim F. Storm <storm@cua.dk>
628
629 * alloc.c: Add commentary for last change.
630 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
631 sizeof(size_t) != 4.
632 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
633 Use them. Also clear header and trailer of freed memory.
634 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
635 (string_overrun_cookie): Rename from string_overrun_pattern.
636 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
637
77ea0764
AS
6382004-12-01 Andreas Schwab <schwab@suse.de>
639
640 * lisp.h: Declare string_to_multibyte.
641
2d5cd4e6
KH
6422004-12-01 Kenichi Handa <handa@m17n.org>
643
644 * w32console.c (w32con_write_glyphs): Decide coding here.
645 Adjusted for the change of encode_terminal_code.
646
647 * term.c (encode_terminal_code): Don't make it "static".
648
25a0994a
KH
6492004-11-30 Kenichi Handa <handa@m17n.org>
650
19b1f29a 651 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 652 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
653 characters at once, and return a pointer to the result of encoding.
654 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
655 (insert_glyphs): Likewise.
656 (term_init): Initialize encode_terminal_bufsize to 0.
657
658 * coding.c (Vcode_conversion_workbuf_name): New variable.
659 (syms_of_coding): Initialize and staticpro it.
660 (set_conversion_work_buffer): New function.
661 (run_pre_post_conversion_on_str): Use it.
662 (run_pre_write_conversin_on_c_str): New function.
663
664 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
665
fc7a70cc
ST
6662004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
667
668 * keyboard.c: Don't undef SIGIO
669 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
670 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
671 (macfns.o): Don't depend on ccl.h.
672 * macfns.c (mac_frame_parm_handlers): Set handlers for
673 Qleft_fringe and Qright_fringe.
674 * macterm.c (mac_fill_rectangle_to_pixmap)
675 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
676 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
677 Put in #if 0.
678 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
679 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
680 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
681 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
682 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
683 XDrawImageString. Always draw background and foreground separately.
684 (x_draw_image_foreground): Use clipping instead of computing the
685 intersection rectangle.
686 (x_draw_image_glyph_string): Don't draw an image with mask to a
687 pixmap.
688 (x_redisplay_interface): Set flush_display_optional member to 0.
689 (XTread_socket): Correctly reset the TEConverter
690 object.
691
fc368889
KS
6922004-11-30 Kim F. Storm <storm@cua.dk>
693
694 * lisp.h: New defines to enable buffer overrun checking.
695 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
696 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
697
698 * alloc.c: Add more checks for buffer overruns.
699 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
700 xmalloc_overrun_check_trailer, overrun_check_malloc)
701 overrun_check_realloc, overrun_check_free): Add.
702 (GC_STRING_EXTRA, string_overrun_pattern): Add.
703 (check_sblock, allocate_string_data, compact_small_strings):
704 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
705 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
706 (check_string_free_list): Add.
707 (allocate_string, sweep_strings): Call check_string_free_list.
708
709 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
710 XMALLOC_OVERRUN_CHECK to avoid crash during load.
711
0af8cfe1
KS
7122004-11-29 Kim F. Storm <storm@cua.dk>
713
714 * fns.c (concat): Use SAFE_ALLOCA.
715
77220eeb
SM
7162004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
717
718 * sysdep.c (emacs_write): Don't use QUIT.
719
a778cf63
KH
7202004-11-29 Kenichi Handa <handa@m17n.org>
721
722 * buffer.c (init_buffer): Set current_buffer->directory to a
723 multibyte string made by string_to_multibyte.
724
77220eeb 725 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 726
e3177e43
AS
7272004-11-27 Andreas Schwab <schwab@suse.de>
728
729 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
730
731 * s/gnu-linux.h: Enable no-op gcpros on ia64.
732 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
733
77220eeb
SM
734 * filelock.c (lock_file_1): Call get_boot_time early.
735 Increase buffer size.
e3177e43 736
ca5e6fef
EZ
7372004-11-27 Eli Zaretskii <eliz@gnu.org>
738
739 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
740 is not defined.
741
e2811828
KS
7422004-11-27 Kim F. Storm <storm@cua.dk>
743
744 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
745 marker out of doc string.
746
7a262394
SM
7472004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
748
749 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
750 which was not mentioned in the log.
751
f33cc5a9
KS
7522004-11-26 Kim F. Storm <storm@cua.dk>
753
048bb03f
KS
754 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
755 angle bitmaps at top/bottom line.
756
f33cc5a9
KS
757 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
758 set it when it->method is set to next_element_from_display_vector.
759 (setup_for_ellipsis): Add LEN argument. Callers changed.
760 Set it->saved_face_id.
761 (get_next_display_element): Use loop instead of recursion.
762 Set it->saved_face_id. Combine duplicate code for ctr chars.
763 (next_element_from_display_vector): Do not set it->saved_face_id.
764 (next_element_from_ellipsis): Use setup_for_ellipsis.
765
670e8906
EZ
7662004-11-26 Eli Zaretskii <eliz@gnu.org>
767
768 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
769 prevent compiler warnings.
770
275464e7
SM
7712004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
772
1bf0e604
SM
773 * keyboard.c (command_loop_1): Print a message describing the key
774 the user just pressed when this key has no binding.
775
275464e7
SM
776 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
777 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
778
779 * lread.c (readchar): Check QUIT when `getc' is interrupted.
780
261b01c6
RS
7812004-11-24 Richard M. Stallman <rms@gnu.org>
782
783 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
784
785 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
786
a5bd504e
KS
7872004-11-24 Kim F. Storm <storm@cua.dk>
788
789 * xdisp.c (move_it_in_display_line_to, display_line):
790 Restore saved_face_id also when truncate-lines or hscrolled.
791
255e4140
JD
7922004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
793
794 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
795 x-use-old-gtk-file-dialog.
796
797 * xfns.c: Define x_use_old_gtk_file_dialog.
798 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
799 outside ifdef USE_GTK.
800
cab27d04
SM
8012004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
802
803 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
804 Don't use XFASTINT blindly.
805
806 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
807
808 * indent.c (skip_invisible): Avoid non-idempotent side-effects
809 in macro arguments.
810
811 * keymap.c (Flookup_key): Check INTEGERP before XINT.
812
813 * lread.c (oblookup): Don't use XFASTINT blindly.
814
815 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
816 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
817
11e0be49
KS
8182004-11-23 Kim F. Storm <storm@cua.dk>
819
4d721114
KS
820 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
821 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
822
11e0be49
KS
823 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
824 signal_p is zero and face name is unknown.
825 (Fx_list_fonts): Don't signal error in lookup_named_face.
826 (Fface_font): Signal error in lookup_named_face.
827 (ascii_face_of_lisp_face): Likewise.
828
829 * dispextern.h (lookup_named_face): Fix prototype.
830
831 * xdisp.c (handle_single_display_prop): Don't signal error in
832 lookup_named_face for unknown fringe face name.
833 (highlight_trailing_whitespace): Don't signal error in
834 lookup_named_face if trailing-whitespace face unknown.
835 (calc_line_height_property): Don't signal error in
836 lookup_named_face if specified face name is unknown.
837
838 * fringe.c (update_window_fringes): Show top row indicator if
839 window has header-line. Don't show arrow at bob and eob
840 if the boundary indicators are not used.
841 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
842
843 * window.c (set_window_buffer): Clear display_error_modiff.
844
0960a582
KS
8452004-11-22 Kim F. Storm <storm@cua.dk>
846
847 * fringe.c (update_window_fringes): Provide sensible fall-back
848 value for non-nil indicate-buffer-boundaries setting.
849
b0e9bb28
MR
8502004-11-22 Markus Rost <rost@ias.edu>
851
852 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
853
d0bce91e
SM
8542004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
855
856 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
857
e1814672
KS
8582004-11-21 Kim F. Storm <storm@cua.dk>
859
b7fd3518
KS
860 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
861
862 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
863 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
864
865 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
866 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
867
868 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
869 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
870
d0bce91e
SM
871 * xdisp.c (move_it_in_display_line_to, display_line):
872 Restore saved_face_id if overflow-newline-into-fringe is enabled and
873 line is continued before or in middle of element from display vector.
f01d4d05 874
f1a61389
KS
875 * indent.c (Fvertical_motion): Fix last change. Use another
876 method to detect if iterator moved too far ahead after reseat.
877
e1814672
KS
878 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
879 expand matrix width for overflow in zero-width area.
880 (append_glyph, append_composite_glyph, produce_image_glyph)
881 (append_stretch_glyph): Use it to avoid loop in redisplay.
882 (note_mode_line_or_margin_highlight): Don't let help-echo from
883 string override help-echo from image map.
884
2dafe1c9
LT
8852004-11-20 Luc Teirlinck <teirllm@auburn.edu>
886
d0bce91e 887 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
888 * callint.c (Fcall_interactively): Ditto.
889
fd6866c8 8902004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
891
892 * minibuf.c (Fminibuffer_complete_and_exit):
893 Fixup the case of the completed value, for case-indep completion.
894
dedbac89
RS
8952004-11-20 Richard M. Stallman <rms@gnu.org>
896
fd6866c8
RS
897 * lisp.h (Fread_from_minibuffer): Add arg in decl.
898
9d00469f 899 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 900 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 901
dedbac89 902 * search.c (Vsearch_spaces_regexp):
d0bce91e 903 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 904
2f672bb5
TTN
9052004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
906
907 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
908
f31a9a68
RS
9092004-11-19 Richard M. Stallman <rms@gnu.org>
910
911 * search.c (Vsearch_whitespace_regexp): New variable.
912 (syms_of_search): Defvar it.
913 (compile_pattern_1): Call re_set_whitespace_regexp with it.
914 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
915 is non-nil.
6de891db
RS
916 (struct regexp_cache): New element whitespace_regexp.
917 (syms_of_search): Initialize whitespace_regexp elements.
918 (compile_pattern): Compare whitespace_regexp elements.
919 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
920
921 * regex.c (regex_compile): Substitute whitespace_regexp
922 for spaces, if it is nonzero.
923 (whitespace_regexp): New variable.
924 (re_set_whitespace_regexp): New function.
925
cbc34cb3
KS
9262004-11-19 Kim F. Storm <storm@cua.dk>
927
928 * indent.c (Fvertical_motion): Fix last change.
929
b54a7539
KS
9302004-11-18 Kim F. Storm <storm@cua.dk>
931
932 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
933 Instead, move back again if reseating moves too far ahead.
934
9352004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
936
937 * xdisp.c (message3): Call clear_message.
938
5ff504fe
KS
9392004-11-17 Kim F. Storm <storm@cua.dk>
940
941 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
942
5ae53dcf
JD
9432004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
944
d0bce91e 945 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 946
6abf3a27 947 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
948 (x_menu_set_in_use): Also set popup_activated_flag.
949
5ff504fe 950 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
951 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
952
6abf3a27 953 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 954
ee31cd78
RS
9552004-11-16 Richard M. Stallman <rms@gnu.org>
956
6abf3a27
SM
957 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
958 Use map-keymap-internal to implement that.
ee31cd78
RS
959
960 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
961
6abf3a27
SM
9622004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
965 a window before using XWINDOW.
966
967 * window.c (make_window, Fselect_window, make_dummy_parent)
968 (save_window_save):
969 * frame.c (make_frame):
970 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
971
972 * lisp.h (NILP): Use EQ rather than XFASTINT.
973
b4d61105
KS
9742004-11-16 Kim F. Storm <storm@cua.dk>
975
6abf3a27 976 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 977
b4d61105
KS
978 * indent.c (Fvertical_motion): Fix last change. Only reseat when
979 moving backwards.
980
9812004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
982
983 * dispextern.h: Extern reseat_at_previous_visible_line_start.
984
ab5b02b0
KH
9852004-11-16 Kenichi Handa <handa@m17n.org>
986
987 * xdisp.c (display_mode_element): Fix previous change (calculate
988 end position of substring to display correctly).
989
c482cf97
KS
9902004-11-16 Kim F. Storm <storm@cua.dk>
991
992 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
993 Reported by Andrew M. Scott.
994
9f89426b
KS
9952004-11-15 Kim F. Storm <storm@cua.dk>
996
997 * fns.c (Fsafe_plist_get): New defun.
998 (syms_of_fns): Defsubr it.
999
1000 * lisp.h (Fsafe_plist_get): Add EXFUN.
1001
1002 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1003 Use Fsafe_plist_get.
1004 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1005 Fix image map element parsing. Use Fsafe_plist_get.
1006
27418463
RS
10072004-11-15 Richard M. Stallman <rms@gnu.org>
1008
1009 * xdisp.c (get_next_display_element): Fix previous change.
1010
a130b901
JD
10112004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1012
ef614e04
JD
1013 * window.c (shrink_windows): Handle special case of one window left
1014 when trying to shrink the final reminder. Grow windows if
1015 total_removed is less than total_shrink.
1016
a130b901
JD
1017 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1018 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1019 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1020 Construct arg to record_unwind_protect with make_save_value.
a130b901 1021
d9a03ad2
RS
10222004-11-13 Richard M. Stallman <rms@gnu.org>
1023
1024 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1025 (get_next_display_element): Fix previous change to apply only to \n.
1026
1027 * indent.c (Fvertical_motion): Scan to PT from start of line to
1028 make iterator consistent.
1029
1030 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1031
b3935289
JD
10322004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1033
1034 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1035
1036 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1037 Record unwind with clean_up_file_dialog.
1038
78819ebb
KS
1039 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1040 Declare.
b3935289
JD
1041
1042 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1043
af89e871
JD
10442004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1045
457a8155 1046 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1047 (xg_file_sel_destroy): Remove.
46303896
KS
1048 (xg_file_response_cb, pop_down_file_dialog)
1049 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1050 New functions.
6abf3a27
SM
1051 (xg_get_file_with_chooser, xg_get_file_with_selection):
1052 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1053 Move common code to xg_get_file_name. Return widget created.
1054 (xg_get_file_name): Set name, transient for, modal and destroy
1055 with parent here. Connect response signal to xg_file_response_cb,
1056 connect delete-event to gtk_true. Record pop_down_file_dialog
1057 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1058 (xg_create_widget): Make dialogs modal.
1059
af89e871
JD
1060 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1061 Lisp_Object.
1062 (popup_get_selection): Move unwind protect ...
1063 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1064 Move destroy of widget to pop_down_menu.
1065 (popup_widget_loop): Move unwind protect ...
1066 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1067 Move destroy of widget to pop_down_menu.
1068 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1069 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1070 x_mouse_leave and grabbed = 0 to pop_down_menu.
1071
5596fbf1
KS
10722004-11-13 Kim F. Storm <storm@cua.dk>
1073
1074 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1075 (syms_of_xdisp): DEFVAR_BOOL it.
1076 (make_cursor_line_fully_visible, try_cursor_movement)
1077 (try_window_id): Use it.
1078
b9de078a
KS
10792004-11-12 Kim F. Storm <storm@cua.dk>
1080
381f7091
KS
1081 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1082 (struct it): New member max_extra_line_spacing.
1083 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1084 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1085 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1086 part of last line is only extra line spacing (so the text on the
1087 line is fully visible). Use helper macros.
1088 Add W arg (to use them). All callers changed.
1089 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1090 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1091
6abf3a27
SM
1092 * window.c (window_scroll_pixel_based, Frecenter):
1093 Use move_it_vertically_backward directly.
381f7091
KS
1094 (Frecenter): Fix calculation of new start pos for negative arg.
1095 Before, the new start pos was sometimes chosen too far back, so
1096 the last line became only partially visible, and thus would be
1097 either only semi-visible or automatically scrolled to the middle
1098 of the window by redisplay.
1099
1100 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1101 (move_it_vertically_backward): Don't recure to move further back.
1102 (move_it_vertically): Remove superfluous condition.
1103 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1104 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1105 (display_tool_bar_line): Clear row->extra_line_spacing.
1106 (try_scrolling): Use move_it_vertically_backward directly.
1107 (redisplay_window): Likewise.
1108 (compute_line_metrics): Set row->extra_line_spacing.
1109 (display_line, display_string): Likewise.
1110 (x_produce_glyphs): Update it->max_extra_line_spacing.
1111
b9de078a
KS
1112 * xmenu.c (pop_down_menu): Return nil.
1113
c3438661
JD
11142004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1115
1116 * xmenu.c (x_menu_wait_for_event): New function.
1117 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1118 to handle timers.
df00f436
JD
1119 (popup_widget_loop): Add argument do_timers.
1120 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1121 do_timers to popup_widget_loop.
c3438661
JD
1122 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1123 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1124 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1125 popup_get_selection.
f1d1cd24
JD
1126 (pop_down_menu): New function.
1127 (popup_get_selection, popup_widget_loop): Unwind protect to
1128 pop_down_menu.
1129 (popup_widget_loop): Add argument widget.
1130 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1131 argument widget to popup_widget_loop.
c3438661 1132
32e2fb04
SM
11332004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1134
1135 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1136
0faf6806
KS
11372004-11-09 Kim F. Storm <storm@cua.dk>
1138
1139 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1140 Fix various comments referring to XEvents instead of input events.
1141 (x_queue_event): Fix format strings.
1142 (x_stop_queuing_selection_requests): Likewise.
1143
1144 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1145 (pint2hrstr): Add extra braces to silence compiler.
1146
1147 * print.c (print_object): Fix format string.
1148
1149 * lread.c (read1): Fix next_char matching.
1150
1151 * lisp.h (Fdelete): Add EXFUN.
1152 (replace_range_2): Add prototype.
1153
1154 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1155
1156 * intervals.h (NULL_INTERVAL_P): Add separate version when
1157 ENABLE_CHECKING is not defined to silence compiler.
1158 (compare_string_intervals): Add prototype.
1159
1160 * fringe.c (destroy_fringe_bitmap): Fix return type.
1161 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1162
1163 * emacs.c (Fdump_emacs): Fix format string.
1164
1165 * doc.c: Include <ctype.h>.
1166 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1167
1168 * data.c (store_symval_forwarding): Remove unused variables.
1169
1170 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1171
16bf4e32
JD
11722004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1173
1174 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1175 to ${OLDXMENU}.
1176
cdb805a9
KS
11772004-11-09 Kim F. Storm <storm@cua.dk>
1178
1179 * process.c (Fmake_network_process): Remove kludge for interrupted
1180 connects on BSD. If connect is interrupted, just close socket and
1181 start over rather than sleeping and retry with same socket.
1182
d87a9ab8 11832004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1184
a8b16c80
JD
1185 * .cvsignore: Add buildobj.lst.
1186
d87a9ab8
JD
1187 * doc.c: New variable Vbuild_files.
1188 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1189 file names from buildobh.lst. Only attach docstrings from files
1190 that are in Vbuild_files.
1191 (syms_of_doc): Defvar Vbuild_files.
1192
1193 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1194 and w32*.o.
1195 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1196 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1197
1198 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1199 is linked.
1200
b6709e77
KS
12012004-11-09 Kim F. Storm <storm@cua.dk>
1202
1203 * fringe.c (update_window_fringes): Update fringe bitmaps if
1204 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1205 also update previous row to get rid of misc. artifacts.
1206
bae9677d
KS
12072004-11-08 Kim F. Storm <storm@cua.dk>
1208
1209 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1210 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1211
3f8ea68c
EZ
12122004-11-08 Eli Zaretskii <eliz@gnu.org>
1213
1214 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1215 Don't include <sys/time.h> explicitly.
1216 Include <stdio.h> unconditionally, not just on MacOS.
1217
a653f812
KH
12182004-11-08 Kenichi Handa <handa@m17n.org>
1219
1220 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1221 don't pay attention to '\' before '*'.
1222 (fontset_pattern_regexp): Change the meaning of the second arg.
1223 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1224 (check_fontset_name): Try NAME as literal at first, and if it
1225 failes, try NAME as pattern.
1226
c37caf9d
JD
12272004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1228
1229 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1230
b72915a7
AS
12312004-11-07 Andreas Schwab <schwab@suse.de>
1232
78819ebb
KS
1233 * lisp.h (Fmsdos_downcase_filename): Declare.
1234 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1235 * fileio.c: Likewise.
1236
238a44a8
JD
12372004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1238
1239 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1240 comparisons with integers instead of Lisp_Object address.
1241 (Fmsdos_set_keyboard): Declare argument allkeys.
1242
1243 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1244
78819ebb 1245 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1246 int/Lisp_Object mixup.
1247
1248 * fileio.c: Ditto.
1249
31141c13
ST
12502004-11-06 Steven Tamm <steventamm@mac.com>
1251
1252 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1253
f28c1bd9
RS
12542004-11-06 Richard M. Stallman <rms@gnu.org>
1255
1256 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1257
1258 * xfaces.c (merge_named_face): GCPRO the face_name in the
1259 named_merge_point struct that we make.
1260 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1261
1262 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1263 before deciding whether to inactivate mark.
1264
59dede22
EZ
12652004-11-06 Lars Brinkhoff <lars@nocrew.org>
1266
1267 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1268 * editfns.c (Fget_internal_run_time): New function.
1269 (syms_of_data): Defsubr it.
1270 * fns.c (sxhash): As far as possible, merge calculation of
1271 hash code for symbols and strings.
59dede22 1272
27540e81
EZ
12732004-11-06 Eli Zaretskii <eliz@gnu.org>
1274
1275 * frame.c (syms_of_frame): Fix the example in the doc string.
1276
df470e3b
JD
12772004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1278
1279 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1280
1281 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1282 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1283
4cc8522c
LT
12842004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1285
1286 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1287
d4a42098
KS
12882004-11-05 Kim F. Storm <storm@cua.dk>
1289
a8490886
KS
1290 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1291
d4a42098
KS
1292 * fileio.c (Ffile_modes): Doc fix.
1293 (auto_save_1): Check for Ffile_modes nil value.
1294
36a2b04c
KS
12952004-11-05 Kim F. Storm <storm@cua.dk>
1296
1297 * xselect.c (struct selection_event_queue, selection_queue)
1298 (x_queue_selection_requests, x_queue_event)
1299 (x_start_queuing_selection_requests)
1300 (x_stop_queuing_selection_requests): Add new queue for selection
1301 input events to replace previous XEvent queue in xterm.c.
1302 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1303 (x_reply_selection_request): Adapt to new queue.
1304 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1305 (x_handle_selection_request, x_handle_selection_clear): Make static.
1306 (x_handle_selection_event): New function. May queue selection events.
1307 (wait_for_property_change_unwind): Use save_value instead of cons.
1308 Clear property_change_reply_object.
1309 (wait_for_property_change): Abort if already waiting.
1310 Use save_value instead of cons for unwind data.
1311 (x_handle_property_notify): Skip events already arrived, but don't
1312 free them, as "arrived" field is checked by wait_for_property_change,
1313 and it will be freed by unwind or explicit unexpect_property_change.
1314 (x_get_foreign_selection): Add to new queue.
1315 (receive_incremental_selection): Don't unexpect wait_object when done
1316 as it has already been freed by previous wait_for_property_change.
1317
1318 * xterm.h (x_start_queuing_selection_requests)
1319 (x_stop_queuing_selection_requests, x_handle_selection_request)
1320 (x_handle_selection_clear): Remove prototypes.
1321 (x_handle_selection_event): Add prototype.
1322
1323 * xterm.c (handle_one_xevent): Don't queue X selection events
1324 here, it may be too late if we start queuing after we have already
1325 stored some selection events into the kbd buffer.
1326 (struct selection_event_queue, queue, x_queue_selection_requests)
1327 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1328 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1329 (x_catch_errors_unwind): Block input around final XSync.
1330
1331 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1332
1333 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1334 (kbd_buffer_unget_event): New function.
1335 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1336 and use x_handle_selection_event.
1337 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1338
9c3ad9e1
JD
13392004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1340
1341 * xselect.c (TRACE3): New debug macro.
1342 (x_reply_selection_request): Use it.
1343 (receive_incremental_selection): In call to TRACE0, the name of
1344 a symbol is in xname.
1345
a33b89de
KS
13462004-11-05 Kim F. Storm <storm@cua.dk>
1347
1348 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1349
a872928c
JD
13502004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1351
88208bb8
JD
1352 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1353
78819ebb 1354 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1355
1356 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1357 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1358 * xfns.c (syms_of_xfns): ... to here.
1359
a872928c
JD
1360 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1361 it doesn't start with /.
1362
b912921c
KH
13632004-11-04 Kenichi Handa <handa@m17n.org>
1364
1365 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1366 treat it as a literal character.
1367
c524d9a6
KS
13682004-11-03 Kim F. Storm <storm@cua.dk>
1369
1370 * .gdbinit (ppt): New function.
1371
8cfd0f36
JD
13722004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1373
a11e1dce
JD
1374 * xterm.c (x_window_to_scroll_bar): Only call
1375 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1376
8cfd0f36
JD
1377 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1378 of save.
1379
a93563fd
AS
13802004-11-02 Andreas Schwab <schwab@suse.de>
1381
1382 * window.c (Fscroll_right): Fix last change.
1383
2b2d59d8
KS
13842004-11-02 Kim F. Storm <storm@cua.dk>
1385
1386 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1387
13882004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1389
1390 * callproc.c (Fcall_process): Block input around vfork.
1391
ca28104d
KS
13922004-11-02 Kim F. Storm <storm@cua.dk>
1393
1394 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1395 (syms_of_eval): Defsubr it.
1396
29bb7127
RS
13972004-11-02 Richard M. Stallman <rms@gnu.org>
1398
1399 * insdel.c (replace_range_2): New function.
1400
1401 * casefiddle.c (casify_region): Handle changes in byte-length
1402 using replace_range_2.
1403
1404 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1405
b6189c3b 1406 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1407 Subtract 1 from pos when checking previous newline for invisibility.
1408
1409 * window.c (window_scroll_pixel_based): Update preserve_y
1410 for header line if any.
1411 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1412 use a new second argument instead.
1413
1414 * eval.c (Fcall_interactive_p): New function.
1415 (interactive_p): Don't test INTERACTIVE here.
1416 (Finteractive_p): Doc fix.
1417
1418 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1419
b6189c3b 14202004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1421
1422 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1423 comparing font names.
a3fe4aaf 1424
2a00cdb4
JD
14252004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1426
f9d64bb3
JD
1427 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1428 Fx_file_dialog if only directories should be read.
1429
1430 * lisp.h: Fx_file_dialog takes 5 parameters.
1431
32e2fb04
SM
1432 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1433 Add parameter only_dir_p.
f9d64bb3
JD
1434 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1435 dialog, just text field part. Do not add DEFAULT_FILENAME
1436 to list of files if it isn't there.
1437 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1438
32e2fb04
SM
1439 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1440 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1441 a save dialog, add option kNavDontConfirmReplacement, change title
1442 to "Enter name", change text for save button to "Ok".
1443
32e2fb04
SM
1444 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1445 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1446
1447 * gtkutil.c (xg_get_file_with_chooser)
1448 (xg_get_file_with_selection): New functions, only defined ifdef
1449 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1450 respectively.
1451 (xg_get_file_name): Add parameter only_dir_p.
1452 Call xg_get_file_with_chooser or xg_get_file_with_selection
1453 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1454 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1455
1456 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1457
2a00cdb4
JD
1458 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1459
f6749d5d
KS
14602004-11-01 Kim F. Storm <storm@cua.dk>
1461
32e2fb04
SM
1462 * process.c (connect_wait_mask, num_pending_connects):
1463 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1464 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1465 (IF_NON_BLOCKING_CONNECT): New helper macro.
1466 (wait_reading_process_output): Only declare and use local vars
1467 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1468
1a99fe1a
JR
14692004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1470
1471 * w32term.c (x_scroll_run): Delete region objects after use.
1472
fcdb28b4
JD
14732004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1474
495ef86b
JD
1475 * xmenu.c: Add prototypes for forward function declarations.
1476 (popup_get_selection): Remove parameter do_timers, remove call to
1477 timer_check.
32e2fb04
SM
1478 (create_and_show_popup_menu, create_and_show_dialog):
1479 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1480
12e6566a
JD
1481 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1482 tool_bar_items and assign the result to f->tool_bar_items if
1483 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1484 tool_bar_items to assignment of result.
1485
fcdb28b4
JD
1486 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1487 pending_atmers is non-zero.
1488
1a1a0c4c
KS
14892004-10-31 Kim F. Storm <storm@cua.dk>
1490
1491 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1492
a36f1680
JW
14932004-10-28 Will <will@glozer.net>
1494
1495 * macterm.c: allow user to assign key modifiers to the Mac Option
1496 key via a 'mac-option-modifier' variable.
1497
32e2fb04 14982004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1499
1500 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1501 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1502 (x_handle_selection_request, x_handle_selection_clear)
1503 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1504
4f71c13f
RS
15052004-10-28 Richard M. Stallman <rms@gnu.org>
1506
1507 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1508
1509 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1510
068f3848
SM
15112004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1512
1513 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1514 comment-starter over a 1-char one.
1515
4660a9e3
RS
15162004-10-27 Richard M. Stallman <rms@gnu.org>
1517
1518 * xdisp.c (get_next_display_element): In mode lines,
1519 treat newline and tab like other control characters.
1520
1521 * editfns.c (Fmessage): Doc fix.
1522
1523 * indent.c (vmotion): When moving up, check the newline before.
1524 Make prevline an int, not a Lisp_Object.
1525
233f3db6
KS
15262004-10-27 Kim F. Storm <storm@cua.dk>
1527
1528 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1529 Only allocate info and discarded tables once.
1530
1531 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1532 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1533 (SAFE_FREE): Test it to determine if we need to unwind to free.
1534 Remove size arg. All users changed.
1535 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1536
1442465d
JD
15372004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1538
1539 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1540 (xg_destroy_widgets): Rename from remove_from_container.
1541 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1542 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1543 instead of remove_from_container.
1544 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1545 (free_frame_tool_bar): Add comment.
1546
1547 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1548 is not NULL before strcmp.
1549
c8636435
KS
15502004-10-26 Kim F. Storm <storm@cua.dk>
1551
1552 * callint.c (Fcall_interactively): Add 'U' code to get the
1553 up-event discarded by a previous 'k' or 'K' argument.
1554
5629f29b
DK
15552004-10-26 David Kastrup <dak@gnu.org>
1556
1557 * buffer.c (syms_of_buffer): Fix a few typos.
1558
4f2f546e
JD
15592004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1560
1561 * xsmfns.c: Put empty line between comment and function body.
1562 Use two spaces before comment end.
1563
fc1062f5
KH
15642004-10-25 Kenichi Handa <handa@m17n.org>
1565
1566 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1567 PATTERN is full XLFD.
1568
be13f5e5
KH
15692004-10-24 Kenichi Handa <handa@m17n.org>
1570
1571 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1572
1573 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1574 (regex_compile): Return REG_ERANGEX if appropriate.
1575
d0ee2ed3
KH
15762004-10-22 Kenichi Handa <handa@m17n.org>
1577
1578 * editfns.c (Ftranslate_region_internal): New function.
1579 (syms_of_editfns): Defsubr it.
1580
63ea8ea5
JD
15812004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1582
1583 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1584
c27ed90a
JD
15852004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1586
068f3848
SM
1587 * xterm.h (x_output): New member `xic_base_fontname'.
1588 (FRAME_XIC_BASE_FONTNAME): New macro.
1589 (xic_free_xfontset): Declare.
c27ed90a 1590
068f3848
SM
1591 * xfns.c (xic_create_xfontset): Share fontsets between frames
1592 based on base_fontname.
1593 (xic_free_xfontset): New function.
1594 (free_frame_xic): Use it.
1595 (xic_set_xfontset): Ditto.
c27ed90a 1596
068f3848 1597 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1598
1599
59508699
JR
16002004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1601
1602 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1603
dede2792
JD
16042004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1605
3aca2078
JD
1606 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1607 XSync.
1608
dede2792
JD
1609 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1610 New variables and constant.
1611 (main): Calculate heap_bss_diff. If we are dumping and the
1612 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1613 and exec ourself again.
1614 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1615 print a warning.
1616
1617 * lastfile.c: Make my_endbss and my_endbss_static available on all
1618 platforms.
1619
1620 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1621 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1622
1dc5ba01
LT
16232004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1624
1625 * data.c (Flocal_variable_if_set_p): Doc fix.
1626
950090be
JR
16272004-10-19 Jason Rumney <jasonr@gnu.org>
1628
1629 * w32.c (init_environment): Set emacs_dir correctly when running
1630 emacs from the build directory.
1631
8550b998
RS
16322004-10-19 Richard M. Stallman <rms@gnu.org>
1633
1634 * editfns.c (Fdelete_and_extract_region):
1635 If region is empty, return null string.
1636
08dedea6
JD
16372004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1638
1dc5ba01 1639 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1640 and canon_width.
068f3848 1641 (xg_frame_cleared): Remove.
08dedea6 1642
068f3848
SM
1643 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1644 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1645 (xg_create_scroll_bar): Put an event box widget between
1646 the scroll bar widget and the edit widget.
1647 (xg_show_scroll_bar): Show the parent widget (the event box).
1648 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1649 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1650 Move the parent (the event box) widget inside the fixed widget.
1651 Move window clear to xterm.c.
1652
068f3848 1653 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1654
08dedea6 1655 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1656 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1657 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1658 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1659
8550b998 16602004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1661
1662 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1663
84338890
JD
16642004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1665
1666 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1667 gdk_window_clear and move gdk_window_process_all_updates after
1668 clear so events are sent to the X server in correct order.
1669
6e1b0d8c
KH
16702004-10-18 Kenichi Handa <handa@m17n.org>
1671
1672 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1673 comparing font names.
8550b998 1674 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1675 (list_fontsets): Likewise.
1676
1677 * search.c (fast_string_match_ignore_case): New function.
1678
1679 * lisp.h (fast_string_match_ignore_case): Extern it.
1680
345e75a8
KS
16812004-10-17 Kim F. Storm <storm@cua.dk>
1682
1683 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1684 than bitmap if there is not left fringe.
1685 (get_overlay_arrow_glyph_row): Also used on windows system.
1686 (display_line): Display overlay string if no left fringe.
1687
be13cbb7
JR
16882004-10-16 Jason Rumney <jasonr@gnu.org>
1689
1690 * w32fns.c (w32_font_match): Encode font name being matched.
1691
c2e2ede7
RS
16922004-10-16 Richard M. Stallman <rms@gnu.org>
1693
1694 * window.c (Fspecial_display_p): Doc fix.
1695
3584d95d
SM
16962004-10-15 Stefan <monnier@iro.umontreal.ca>
1697
1698 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1699 Don't ignore menus, because where-is-internal already does it for us.
1700
699a0392
KS
17012004-10-15 Kim F. Storm <storm@cua.dk>
1702
b3c7a89b
KS
1703 * xdisp.c (redisplay_window): Only update fringes and vertical
1704 border on window frames.
699a0392 1705
4e382b0f
AS
17062004-10-14 Andreas Schwab <schwab@suse.de>
1707
1708 * m/ia64.h (DATA_SEG_BITS): Don't define.
1709
329a7be2
KS
17102004-10-14 Kim F. Storm <storm@cua.dk>
1711
1712 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1713 in some X versions.
329a7be2 1714
982241b1
SM
17152004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1716
1717 * fns.c (map_char_table): Add missing gcpros.
1718
9238467d
SM
17192004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1720
1721 * keymap.c (get_keymap): An autoload form is not a keymap.
1722
1723 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1724
4440e3ca
KS
17252004-10-13 Kim F. Storm <storm@cua.dk>
1726
7cfdabde
KS
1727 * callproc.c (Fcall_process): Simplify handling of display arg.
1728 Resume `display_on_the_fly' once a coding system is determined.
1729
4440e3ca
KS
1730 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1731
1c8dec6a
KS
17322004-10-12 Kim F. Storm <storm@cua.dk>
1733
1734 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1735 caller, such as call-process, is not going to poll for input.
1736 (calc_line_height_property): Handle case where it->object is nil.
1737
1738 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1739
170b174c
KH
17402004-10-12 Kenichi Handa <handa@m17n.org>
1741
9238467d
SM
1742 * xdisp.c (get_next_display_element):
1743 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1744 chars in octal in unibyte buffer.
1745
b583964c
KS
17462004-10-12 Kim F. Storm <storm@cua.dk>
1747
1748 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1749 are no ordinary bindings.
1750
29fabd8c
JD
17512004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1752
9238467d 1753 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1754
c3f4c690
ST
17552004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1756
9238467d
SM
1757 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1758 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1759 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1760 terminal frame.
1761 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1762 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1763 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1764 Make a cancel file-open dialog be like C-g.
9238467d
SM
1765 * mac.c (mktime): Use emacs_mktime.
1766 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1767 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1768
9688f9eb
KS
17692004-10-10 Kim F. Storm <storm@cua.dk>
1770
1771 * keyboard.c (timer_resume_idle): New function to resume idle
1772 timer without resetting timers on the idle list.
1773 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1774 (timer_start_idle, timer_stop_idle): Declare static.
1775 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1776
1777 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1778
f7f3a65f
ST
17792004-10-08 Steven Tamm <steventamm@mac.com>
1780
9238467d 1781 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1782 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1783 NULL where 0 should be used.
f7f3a65f
ST
1784 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1785 objc/malloc.h
9238467d 1786 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1787
3c7d999a
KS
17882004-10-07 Kim F. Storm <storm@cua.dk>
1789
1790 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1791 windows. Update vertical line after drawing window fringes, but
1792 only if actually drawing any bitmaps--or there is no fringe.
1793
1794 * xterm.c (x_update_window_end): Likewise.
1795 * macterm.c (x_update_window_end): Likewise.
1796 * w32term.c (x_update_window_end): Likewise.
1797
1798 * fringe.c (draw_window_fringes): Return value now indicates if
1799 any fringe bitmaps were redrawn (or there are no fringes).
1800
1801 * dispextern.h (draw_window_fringes): Update prototype.
1802
bf06c82f
ST
18032004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1804
1805 * macfns.c (mac_get_window_bounds): Add extern.
1806 (x_real_positions): Use mac_get_window_bounds.
1807
1808 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1809 xmenu.c (YAILOM).
3c7d999a 1810
bf06c82f
ST
1811 * macterm.c [!MAC_OSX]: Include Windows.h.
1812 (front_emacs_window): Rename from mac_front_window. All uses
1813 changed. Return the frontmost non-tooltip emacs window.
1814 (mac_get_window_bounds): New function.
1815 (x_calc_absolute_position): Use the difference of width and height
1816 between the inner and outer window.
1817 (x_set_offset): Specify window position by the coordinae of the
1818 outer window. Adjust the position if the title bar is completely
1819 outside the screen.
1820 (app_is_suspended, app_sleep_time): Remove unused variables.
1821 (do_app_resume, do_app_suspend): Remove their contents because
1822 window-activate/deactivate events will do the job.
1823 (do_zoom_window): Remove unused variables. Make compliant to the
1824 standard way of zooming. Set f->left_pos and f->top_pos.
1825 (XTread_socket): Don't use argument `expected'. Don't use
1826 FrontWindow to determine the clicked window. Exclude unprocessed
1827 mouseUp cases in the early stage. Add parentheses to fix operator
1828 precedence.
1829 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1830
4cbbf6b7 18312004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1832
1833 * config.in: Regenerate.
1834
1835 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1836 HAVE_EXECSHIELD.
1837
b90ee8b5
JD
18382004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1839
1840 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1841 a row if Alt or Meta has been found for that row. Also stop scanning
1842 for Keysyms for that row.
1843
904db1a2
KS
18442004-10-04 Kim F. Storm <storm@cua.dk>
1845
0207b8ad
KS
1846 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1847 to list. Include overlay arrow bitmap in return value.
1848
25f7220c
KS
1849 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1850 bars with fractional column width. If scroll bar separates two
1851 windows, move it towards the window it belongs to. Only update
1852 the padding area below the scroll bar widget when necessary,
1853 i.e. when scroll bar widget is created, moved, or resized.
1854
562020fe
KS
1855 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1856 while tracking/dragging mouse.
1857 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1858
37e34af7
KS
1859 * window.c (coordinates_in_window): Relax check for cursor
1860 on vertial border between mode lines.
1861 (Fset_window_fringes): Do not allow negative widths.
1862 (Fset_window_scroll_bars): Likewise.
1863
904db1a2
KS
1864 * .gdbinit (pp): Shorthand for p ARG + pr.
1865 (ff): New command: flush frame updates (X only).
1866
38fe4f64
MA
18672004-10-03 Michael Albinus <michael.albinus@gmx.de>
1868
1869 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1870
9de36315
KH
18712004-09-30 Kenichi Handa <handa@m17n.org>
1872
07c381ad 1873 * process.c (send_process): Free composition data.
9de36315 1874
07c381ad 1875 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1876
1877 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1878 compositions to encode.
1879 (encode_coding_string): Likewise. Free composition data.
1880
b6189c3b 18812004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1882
1883 * coding.c (code_convert_region): Free composition data.
9de36315 1884
f2a54fbc
KS
18852004-09-29 Kim F. Storm <storm@cua.dk>
1886
dc5d6435
KS
1887 * fringe.c: Remove limit on number of bitmaps.
1888 (fringe_bitmaps, fringe_faces): Change to pointers.
1889 (max_fringe_bitmaps): New var.
1890 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1891 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1892
1893 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1894 (struct glyph_row): Reorder fringe_bitmap related fields.
1895 (struct it): Likewise.
1896
1897 * w32term.c (fringe_bmp): Change to pointer.
1898 (max_fringe_bmp): New var.
1899 (w32_define_fringe_bitmap): Expand fringe_bmp.
1900 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1901 (w32_destroy_fringe_bitmap): Likewise.
1902
19032004-09-29 Kim F. Storm <storm@cua.dk>
1904
1905 * fringe.c: Simplify last change.
f2a54fbc
KS
1906 (lookup_fringe_bitmap): New function.
1907 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1908 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1909 Keep standard bitmaps in Vfringe_bitmaps.
1910 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1911 (Fset_fringe_bitmap_face): Likewise.
1912
1913 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1914 (valid_fringe_bitmap_p): Remove prototype.
1915
1916 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1917
841a8bca
KS
19182004-09-29 Kim F. Storm <storm@cua.dk>
1919
1f2da365
KS
1920 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1921 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1922
841a8bca
KS
1923 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1924
1925 * fringe.c (Vfringe_bitmaps): New variable.
1926 (syms_of_fringe): DEFVAR_LISP it.
1927 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1928 Change arg to Lisp_Object and fail if not an integer.
1929 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1930 (destroy_fringe_bitmap): New functions.
9238467d
SM
1931 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1932 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1933 clear its fringe property.
1934 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1935 Fdestroy_fringe_bitmap.
1936 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1937 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1938 and set fringe property. Signal error if no free slots.
1939 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1940 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1941
1942 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1943 symbols with a fringe property.
1944
4d965590
KS
19452004-09-27 Kim F. Storm <storm@cua.dk>
1946
1947 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1948 Doc fix. Format may now be a symbol or alist, not a cons.
1949
1950 * fringe.c (update_window_fringes): Handle new formats of
1951 indicate-buffer-boundaries (symbol or alist). No longer
1952 allow a simple cons.
1953 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1954
e888c2b3
JD
19552004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1956
9238467d 1957 * config.in: Rebuild.
e888c2b3 1958
83f1cb94
JD
19592004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1960
1961 * config.in: Rebuild.
1962
dd3b1d60 1963 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1964
2c51754c
SM
19652004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1966
1967 * xterm.c (x_term_init): Work around a bug in some X servers.
1968
3df5f8aa
RS
19692004-09-18 Richard M. Stallman <rms@gnu.org>
1970
557ca2c1
RS
1971 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1972
3df5f8aa
RS
1973 * xdisp.c (try_window_reusing_current_matrix):
1974 Handle the case where we reach the old displayed text,
1975 out of sync with the old line boundary.
1976
9238467d 19772004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1978
1979 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1980 narrowed buffer.
1981
bfa02563
KS
19822004-09-14 Kim F. Storm <storm@cua.dk>
1983
a25fe164
KS
1984 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1985
bfa02563
KS
1986 * xfaces.c (Qface_no_inherit): New var.
1987 (syms_of_xfaces): Intern and staticpro it.
1988 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1989 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1990 Don't increment face_change_count when face has non-nil
1991 face-no-inherit property.
1992
126f9c02
SM
19932004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1994
892a8eb5
SM
1995 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1996 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1997
126f9c02 1998 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1999 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2000
c0ad3b38
KS
20012004-09-12 Kim F. Storm <storm@cua.dk>
2002
2003 * editfns.c (Fformat): Handle format strings with multiple text
2004 properties. Reverse text property list from the format string,
2005 so the positions are in increasing order.
2006
844fc085
JD
20072004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2008
2009 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2010 x_uncatch_errors so that possible protocol errors are delivered.
2011
b106731c
EZ
20122004-09-10 Eli Zaretskii <eliz@gnu.org>
2013
21065c92
EZ
2014 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2015 blockinput.h.
2016 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2017 charset.h, and coding.h
9238467d 2018 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2019 (term.o): Depend on window.h and keymap.h.
2020 (abbrev.o): Depend on syntax.h.
2021 (callint.o): Depend on keymap.h.
2022 (casefiddle.o): Depend on charset.h and keymap.h.
2023 (category.o): Depend on keymap.h.
2024 (coding.o): Depend on dispextern.h.
2025 (cmds.o): Depend on keyboard.h and keymap.h.
2026 (dispnew.o): Depend on indent.h and intervals.h.
2027 (doc.o): Depend on keymap.h.
2028 (editfns.o): Depend on frame.h.
2029 (emacs.o): Depend on dispextern.h.
2030 (fileio.o): Don't depend on ccl.h.
2031 (filelock.o): Depend on charset.h and coding.h.
2032 (frame.o): Depend on w32term.h and macterm.h.
2033 (insdel.o): Depend on region-cache.h.
2034 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2035 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2036 (search.o): Depend on $(INTERVALS_SRC).
2037 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2038 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2039 xterm.h, w32term.h, and macterm.h.
2040 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2041 w32term.h, and macterm.h.
2042 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2043 region-cache.h, xterm.h, w32term.h, and macterm.h.
2044 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2045 (data.o): Depend on frame.h.
2046 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2047 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2048 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2049 (intervals.o): Depend on keymap.h.
2050
9238467d
SM
2051 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2052 Add debugging print-out to termscript.
b106731c 2053
64b7122d
RS
20542004-09-09 Richard M. Stallman <rms@gnu.org>
2055
2056 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2057
5670531e
RS
20582004-09-08 Richard M. Stallman <rms@gnu.org>
2059
6cb4a892
RS
2060 * window.c (Fset_window_buffer): Doc fix.
2061
5670531e
RS
2062 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2063
7e388eb7
JL
20642004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2065
2066 * minibuf.c (history_delete_duplicates): New variable.
2067 (read_minibuf): Use it.
2068 (syms_of_minibuf): Create the corresponding lisp variable.
2069
370e3587
KS
20702004-09-08 Kim F. Storm <storm@cua.dk>
2071
2072 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2073 overlay just before point.
2074
f844ba4e
LT
20752004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2076
2077 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2078 * buffer.c (reset_buffer, init_buffer_once):
2079 Handle auto_save_file_format field.
f844ba4e
LT
2080 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2081 `buffer-auto-save-file-format'.
f844ba4e
LT
2082 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2083 (build_annotations): Adapt to replacement of
2084 `auto-save-file-format' with the new buffer-local variable
2085 `buffer-auto-save-file-format'.
2086 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2087
f0f90717
JR
20882004-09-07 Jason Rumney <jasonr@gnu.org>
2089
2090 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2091
9238467d
SM
2092 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2093 Handle Unicode menu titles.
f0f90717 2094
4e14f66c
KS
20952004-09-07 Kim F. Storm <storm@cua.dk>
2096
2097 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2098 property from text property or overlay strings at point.
2099
9238467d 21002004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2101
2102 * xmenu.c (update_submenu_strings): YAILOM.
2103 (set_frame_menubar): Make sure last_i is initialized.
2104
1f06d367
JR
21052004-09-03 Jason Rumney <jasonr@gnu.org>
2106
1806714a 2107 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2108 (digest_single_submenu): Set lname and lkey in widget_value
2109 instead of name and key.
2110 (update_submenu_strings): New function.
2111 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2112 call update_submenu_strings.
2113
2114 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2115 (digest_single_submenu, w32_menu_show): Encode menu strings as
2116 UTF-8 if Unicode API is available.
2117 (utf8to16): New function.
2118 (add_menu_item): Use it when calling Unicode API.
1806714a 2119
46540080
KS
21202004-09-03 Kim F. Storm <storm@cua.dk>
2121
2122 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2123 in overlay or text-property strings; set cursor on corresponding
2124 glyph rather than at end of the string.
2125
9277ba61 21262004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2127
9277ba61 2128 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2129 set a new one before obtaining the global coordinate.
2130 Use FRAME_MAC_WINDOW.
2131 (x_set_name, x_set_title): Encode title to UTF8.
2132 Use SetWindowTitleWithCFString.
9277ba61
ST
2133 (Fx_server_version): Get correct OS version.
2134
1806714a
SM
2135 * macmenu.c (add_menu_item): Remove unused variable `i'.
2136 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2137
2138 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2139 BLOCK_INPUT.
2140 (x_set_offset): Use FRAME_MAC_WINDOW.
2141
2142 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2143 nontext_cursor if it is on a scroll bar.
2144
2145 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2146 Carbon support.
1806714a
SM
2147 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2148 Use LIBS_CARBON.
9277ba61 2149
b10daec7
JD
21502004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2151
2152 * xfns.c (x_set_name_internal): New function. Check if we shall call
2153 xfree before ENCODE_UTF_8.
2154 (x_set_name, x_set_title): Call x_set_name_internal.
2155
f7e22385
JR
21562004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2157
2158 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2159 reload it.
2160
2bf436c3
JD
21612004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2162
1806714a 2163 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2164 (single_submenu): Set lname and lkey in widget_value
2165 instead of name and key.
2166 (update_submenu_strings): New function.
2167 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2168 call update_submenu_strings.
2169
2bf436c3
JD
2170 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2171 instead of name and key.
2172 (update_submenu_strings): New function.
2173 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2174 call update_submenu_strings.
2bf436c3
JD
2175
2176 * gtkutil.h (_widget_value): Added lname and lkey.
2177
11715f92
ST
21782004-08-30 Steven Tamm <steventamm@mac.com>
2179
2180 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2181 by using different names for inner loop variables.
2182
5500be54
JD
21832004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2184
059cd329
JD
2185 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2186 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2187
5500be54
JD
2188 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2189 tool bar items is 0.
2190
383418e5
ST
21912004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2192
2193 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2194 strings in menu items.
2195 (single_submenu): Use ENCODE_MENU_STRING
2196 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2197 button release isn't passed to event loop
2198 (add_menu_item): Use SetMenuItemWithCFString
2199
6eb3ee72
ST
22002004-08-26 Steven Tamm <steventamm@mac.com>
2201
2202 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2203 tool-bar/menu click
2204 * macfns.c (Fx_file_dialog): Implemented using NavServices
2205
10b43ac3
JD
22062004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2207
2728b5d0
JD
2208 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2209
10b43ac3
JD
2210 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2211 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2212 (x_top_window_to_frame): Return 0 if wdesc is None.
2213
2ee3b79e
RS
22142004-08-22 Richard M. Stallman <rms@gnu.org>
2215
2216 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2217 HAVE_TERMIOS]: If there's no char for this signal, drop through
2218 and use system calls.
2219
2220 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2221
9a1ba2ea
KS
22222004-08-20 Kim F. Storm <storm@cua.dk>
2223
2224 * process.c (wait_reading_process_output): Rename from
2225 wait_reading_process_input. All uses changed.
2226 (wait_reading_process_output_1): Rename from
2227 wait_reading_process_input_1. All uses changed.
2228
2229 * dispnew.c (Fsleep_for): Remove obsolete code.
2230
295f3b30
KH
22312004-08-20 Kenichi Handa <handa@m17n.org>
2232
2233 * syntax.c (skip_chars): Fix for unibyte case.
2234
27615979
SM
22352004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2236
2237 * syntax.c (char_quoted): Mixup byte/char pos.
2238 (back_comment): Fixup globals in all cases.
2239
00267f94
JD
22402004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2241
2242 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2243 passing it to gtk_window_set_title.
2244
2439909e
KS
22452004-08-19 Kim F. Storm <storm@cua.dk>
2246
6ba0f14c
KS
2247 * process.c (wait_reading_process_input): Clean up.
2248 Add wait_for_cell, wait_proc, and just_wait_proc args
2249 to avoid overloading `read_kbd' and `do_display' args.
2250 Change read_kbd arg to int. All callers changed.
2251
2439909e
KS
2252 * process.c (process_send_signal): Use CDISABLE.
2253
2254 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2255
101c421e
KS
22562004-08-18 Kim F. Storm <storm@cua.dk>
2257
2258 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2259 forward to wait_reading_process_input via DO_DISPLAY arg.
2260 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2261 object, only process output from that process; also inhibit
2262 running timers if DO_DISPLAY==-2.
2263
c438dc33
KS
22642004-08-17 Kim F. Storm <storm@cua.dk>
2265
2266 * process.c (process_send_signal): Fix last change--use
2267 _POSIX_VDISABLE instead of CVDISABLE when available.
2268
8afc13c6
RS
22692004-08-16 Richard M. Stallman <rms@gnu.org>
2270
2271 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2272 Set VQUIT and VINTR chars to the standard ones if they are unset.
2273 [AIX]: Don't do that here. And don't force VINTR to standard
2274 when SIGNALS_VIA_CHARACTERS.
2275
c438dc33 2276 * process.c (process_send_signal)
8afc13c6
RS
2277 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2278 Do nothing if the character is CVDISABLE.
2279
2280 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2281
c438dc33 2282 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2283 Force POSITION to be between BEGV and ZV.
2284
6dad1714
JPW
22852004-08-14 John Paul Wallington <jpw@gnu.org>
2286
2287 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2288
2289 * fileio.c (Fread_file_name): Doc fix.
2290
2291 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2292
2bd77330
LT
22932004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2294
2295 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2296
c90e7e43
LT
22972004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2298
2299 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2300 Qdisabled_command_hook.
c90e7e43 2301 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2302 Qdisabled_command_hook.
c90e7e43
LT
2303 (syms_of_keyboard): Ditto.
2304
81909a1a
LT
23052004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2306
2307 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2308 (syms_of_keymap) <key-translation-map>: Doc fixes.
2309
0cedd530
SM
23102004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2311
1725a7c9
SM
2312 * window.c (window_list_1): YAILOM.
2313
0cedd530
SM
2314 * fileio.c (make_temp_name): Handle multibyte prefixes.
2315
2515a131
LT
23162004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2317
2318 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2319 Doc fix.
2320
c8b20fb7
KH
23212004-08-03 Kenichi Handa <handa@m17n.org>
2322
2323 * coding.c (decode_coding_string): Adjust coding->consumed, and
2324 etc. with shrinked_bytes.
2325
fb8b092b
KS
23262004-08-03 Kim F. Storm <storm@cua.dk>
2327
2328 * indent.c (compute_motion): Fix check for full width window
2329 in non-window case. Do not count left truncation glyph on
2330 window systems.
2331
df133612
LT
23322004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2333
2334 * data.c (Finteractive_form): Doc fix.
2335
0f7a93c1
KS
23362004-08-02 Kim F. Storm <storm@cua.dk>
2337
2338 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2339 properly accounting for continuation glyph on non-window systems.
2340 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2341 actual window width/height if TOPOS is nil, properly accounting for
2342 continuation glyphs on non-window systems, and optional header lines.
2343 (vmotion): Let compute_motion calculate actual window width.
2344
2345 * window.c (window_scroll_line_based): Let compute_motion
2346 calculate actual window width.
2347
f491e1ed
KS
23482004-08-02 Kim F. Storm <storm@cua.dk>
2349
2350 * process.c (read_process_output): Use whole read buffer.
2351 Don't trigger adaptive read buffering on errors.
2352
83f64226
LT
23532004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2354
2355 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2356
2357 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2358
2359 * callint.c (Fcall_interactively): Doc fix.
2360
8afc13c6
RS
23612004-07-30 Richard M. Stallman <rms@gnu.org>
2362
2363 * abbrev.c (Fexpand_abbrev): Undo previous change.
2364
7c111482
KS
23652004-07-30 Kim F. Storm <storm@cua.dk>
2366
2367 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2368
ee945d08
LT
23692004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2370
2371 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2372
3f911c94
KS
23732004-07-27 Kim F. Storm <storm@cua.dk>
2374
2375 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2376 we have ensured that the glyph fits on the current line (or returned
2377 MOVE_LINE_CONTINUED otherwise).
2378
f29ff8c7
KS
23792004-07-26 Kim F. Storm <storm@cua.dk>
2380
2381 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2382 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2383 if target position is at end of display line but char is not a newline.
2384
81159bb9
RS
23852004-07-25 Richard M. Stallman <rms@gnu.org>
2386
ab431b61
RS
2387 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2388 instead of ON_VERTICAL_BORDER, when on scroll bar.
2389 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2390
2391 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2392
f29ff8c7 2393 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2394 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2395
2396 * alloc.c (check_cons_list): New function (contents commented out).
2397
fc820cc5
LT
23982004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2399
2400 * xfaces.c (Fcolor_supported_p): Doc fix.
2401
2402 * frame.c (Fselect_frame, Fset_frame_selected_window)
2403 (Fframe_visible_p, Fraise_frame): Doc fixes.
2404
289978b5
LT
24052004-07-24 Richard M. Stallman <rms@gnu.org>
2406
78819ebb 2407 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2408
2409 * fileio.c (Fwrite_region): Doc fix.
2410
2411 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2412
2413 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2414 only when a real abbrev is present.
2415
289978b5
LT
2416 * xfns.c (x_icon_verify): New function.
2417 (Fx_create_frame): Use it.
2418
63cc10ae
KS
24192004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2420
2421 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2422
36f826d4
KS
24232004-07-21 Kim F. Storm <storm@cua.dk>
2424
2425 * window.h (struct glyph_matrix): New members nrows_scale_factor
2426 and ncols_scale_factor.
2427
2428 * window.c (make_window): Initialize nrows_scale_factor and
2429 ncols_scale_factor members.
2430
2431 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2432 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2433 (required_matrix_height): Apply nrows_scale_factor.
2434 (required_matrix_width): Apply ncols_scale_factor.
2435
2436 * xdisp.c (display_line): Increment nrows_scale_factor and set
2437 fonts_changed_p if past last allocated row.
2438 (append_glyph, append_composite_glyph, produce_image_glyph)
2439 (append_stretch_glyph): Increment ncols_scale_factor and set
2440 fonts_changed_p if current area is full.
2441
5fc1c546
JD
24422004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2443
2444 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2445
cb7516e5
LT
24462004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2447
2448 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2449 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2450 (Fset_window_start, Fscroll_up, Fscroll_down)
2451 (Fother_window_for_scrolling, Fscroll_other_window)
2452 (Fsave_window_excursion, Fset_window_vscroll)
2453 (syms_of_window) <window-size-fixed>: Doc fixes.
2454
b6189c3b 24552004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2456
2457 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2458 ENCODE_SYSTEM for filenames.
2459
bfcf6608
ST
24602004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2461
2462 * mac.c (sys_select): Block input around call to
2463 ReceiveNextEvent to prevent breakage. Correctly handle
2464 blocking on event queue only by calling ReceiveNextEvent
2465 instead of select (since GUI events aren't on an fd).
2466 (sys_read): Remove function
2467 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2468
e082ac9d
ST
24692004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2470
2471 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2472 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2473
cb7516e5 2474 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2475 frame creation.
2476
2477 * keyboard.c: Undef SIGIO on Carbon
2478
2479 * atimer.c (alarm_signal_handler): Call alarm handlers after
2480 scheduling.
2481
2482 * eval.c (Feval): Remove quit_char test
2483
2484 * process.c (wait_reading_process_input): Remove clearing
2485 stdin for select call on process input.
2486
4b9da0fb
LT
24872004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2488
1204e81c
LT
2489 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2490 capitalization error in docstring.
4b9da0fb 2491
26503ad2
JB
24922004-07-17 Juanma Barranquero <lektu@terra.es>
2493
2494 * keyboard.c (not_single_kboard_state): Do nothing unless
2495 MULTI_KBOARD is defined.
2496
3751eb00
RS
24972004-07-17 Richard M. Stallman <rms@gnu.org>
2498
2499 * window.c (coordinates_in_window): Inside the window but outside
2500 its box to the L or R, return ON_VERTICAL_BORDER.
2501 (window_list_1): Rotate the list to start with WINDOW.
2502
2503 * print.c (print_preprocess): Test for print_depth at limit
2504 before entering in being_printed.
2505
2506 * keyboard.c (not_single_kboard_state): New function.
2507 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2508
2509 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2510 this kboard, and we delete its last frame, go to any_kboard_state.
2511
2512 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2513
b6189c3b 25142004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2515
2516 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2517 system before passing them to OS functions for display.
2518
0f6af254
DK
25192004-07-15 David Kastrup <dak@gnu.org>
2520
f9253326
KS
2521 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2522 Apparently fixes an abort condition.
0f6af254 2523
386c8f42
LT
25242004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2525
2526 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2527 instead of a cons.
2528
366511da
MB
25292004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2530
2531 * keyboard.c (echo_dash): Do nothing if there already is a dash
2532 at the end of the echo string.
2533
f85409d3
KS
25342004-07-12 Kim F. Storm <storm@cua.dk>
2535
2536 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2537 if GC_MARK_STACK.
2538
0ba2e87b
LT
25392004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2540
da38045d
LT
2541 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2542
0ba2e87b
LT
2543 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2544 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2545 (Freplace_buffer_in_windows, Fset_window_buffer)
2546 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2547 (syms_of_window): Expand docstring of `display-buffer-function'.
2548
5668fbb8
LT
25492004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2550
2551 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2552 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2553 that time values of the type (HIGH . LOW) are considered obsolete.
2554
a085bf9d
LT
25552004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2556
669de2fb
LT
2557 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2558 docstring.
2559
bac66325 2560 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2561
8e975df9
JPW
25622004-07-06 John Paul Wallington <jpw@gnu.org>
2563
2564 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2565
fa164e6a
JPW
2566 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2567
2bac9bb1
JD
25682004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2569
2570 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2571 instead of CGMainDisplayID (only in OSX 10.2 and later).
2572
316ef0dc
JPW
25732004-07-04 John Paul Wallington <jpw@gnu.org>
2574
2575 * fileio.c (read_file_name_completion_ignore_case): New variable.
2576 (syms_of_fileio): Declare and initialise it.
2577 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2578
2a1a35c6
EZ
25792004-07-03 Eli Zaretskii <eliz@gnu.org>
2580
2581 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2582 for event.x and event.y.
2583
33a72331
KH
25842004-07-01 Kenichi Handa <handa@m17n.org>
2585
2586 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2587 after getting a new string by pre-write-conversion.
2588
9238467d 25892004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2590
2591 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2592 (x_calc_absolute_position): Remove unused var `child'.
2593
2594 * xfaces.c (x_supports_face_attributes_p)
2595 (Fdisplay_supports_face_attributes_p): YAILOM.
2596 (tty_supports_face_attributes_p): Remove unused var `i'.
2597
2598 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2599 back_unibyte_ok.
2600
2601 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2602
2603 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2604
2605 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2606
f96ec754
AS
26072004-06-30 Andreas Schwab <schwab@suse.de>
2608
2609 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2610 (Finit_image_library): Pass LIBRARIES through to
2611 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2612 (lookup_image_type): Pass Qnil as second argument to
2613 Finit_image_library.
2614
78819ebb 2615 * lisp.h (Finit_image_library): Declare.
f96ec754 2616
59feca74 26172004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2618
31983645
AS
2619 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2620 (XTread_socket): Send mouse button events to the toolbox
2621 dispatcher even when the mouse is grabbed. Don't process window
2622 activate events for non-Emacs windows. Replace function calls to
2623 do_window_activate and do_window_deactivate with their contents.
2624 Reset mouse grabbing status when a window is deactivated.
59feca74 2625
c61278bb
ST
26262004-06-29 Steven Tamm <steventamm@mac.com>
2627
2628 * macterm.c (mac_get_emulated_btn)
2629 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2630 support to correctly mask out modifiers.
2631
c3762cbd
DK
26322004-06-29 David Kastrup <dak@gnu.org>
2633
2634 * search.c (Fset_match_data): Allow buffer before end of list
2635 which can happen if set-match-data is using a pre-consed list.
2636
c61278bb 26372004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2638
2639 * macterm.c (XTread_socket): Correctly set the frame position
2640 after the window is moved.
2641
74cdfe05
JD
26422004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2643
2644 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2645 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2646 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2647 so insensitive and activated icons look ok.
74cdfe05 2648
ef544dc8
JR
26492004-06-27 Jason Rumney <jasonr@gnu.org>
2650
2651 * w32fns.c (file_dialog_callback): Disable edit control if set
2652 to directories only on CDN_INITDONE message.
2653 (Fx_file_dialog): Default to directories only when prompt starts
2654 with "Dired".
2655
7b7990cc
KS
26562004-06-25 Kim F. Storm <storm@cua.dk>
2657
2658 * alloc.c (allocate_misc): Update total_free_markers.
2659 (free_misc): New function.
2660 (safe_alloca_unwind, free_marker): Use it.
2661
2662 * lisp.h (free_misc): Add prototype.
2663
2664 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2665
d8c379f8
RS
26662004-06-24 Richard M. Stallman <rms@gnu.org>
2667
2668 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2669 (syms_of_emacs): Lisp variables deleted.
2670
559cdd07
DK
26712004-06-23 David Kastrup <dak@gnu.org>
2672
94939b84
DK
2673 * search.c (Freplace_match): Adjust the match-data more thoroughly
2674 when replacing strings in the buffer.
2675 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2676 a buffer, add the buffer as last element to the match data.
2677 (Fset_match_data): If an additional element of the match-data is a
2678 buffer, restore it to last_thing_searched.
c8d09ad8 2679 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2680 (restore_match_data): Restore it again.
2681
dce417e7
LT
26822004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2683
2684 * keymap.c (Ftext_char_description): Doc fix.
2685 * doc.c (Fsnarf_documentation): Doc fix.
2686
ef54b2d0
KS
26872004-06-22 Kim F. Storm <storm@cua.dk>
2688
b5bc4d05
KS
2689 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2690
ef54b2d0
KS
2691 * lisp.h (struct Lisp_Save_Value): New member dogc.
2692 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2693 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2694 (SAFE_FREE_LISP): New macro.
2695
2696 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2697 (make_save_value): Init new dogc member.
2698 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2699
2700 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2701 SAFE_FREE_LISP macros.
2702
3d33d993
KS
27032004-06-22 Kim F. Storm <storm@cua.dk>
2704
2705 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2706 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2707 in that memory area are unknown to GC. Add comments.
2708
2709 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2710
5c917f98
KS
27112004-06-21 Kim F. Storm <storm@cua.dk>
2712
2713 * lisp.h (MAX_ALLOCA): Define here.
2714 (safe_alloca_unwind): Add prototype.
2715 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2716
2717 * alloc.c (safe_alloca_unwind): New function.
2718
2719 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2720
2721 * charset.c (Fstring): Use SAFE_ALLOCA.
2722
2723 * coding.c (MAX_ALLOCA): Remove define.
2724
2725 * data.c (MAX_ALLOCA): Remove define.
2726 (Faset): Use SAFE_ALLOCA.
2727
2728 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2729
2730 * fns.c (string_make_multibyte, string_to_multibyte)
2731 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2732 (MAX_ALLOCA): Remove define.
2733 (Fbase64_encode_region, Fbase64_encode_string)
2734 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2735 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2736 memory leak if encoding fails.
2737
2738 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2739
9a09408e
EZ
27402004-06-21 Eli Zaretskii <eliz@gnu.org>
2741
2742 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2743
376de739
RS
27442004-06-20 Richard M. Stallman <rms@gnu.org>
2745
2746 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2747
2748 * search.c (match_limit): Cleaner err msg when no match data available.
2749
2750 * window.c (syms_of_window): Doc fix.
2751
2752 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2753 for Vtransient_mark_mode.
2754
2755 * buffer.c (syms_of_buffer): Doc fix.
2756
acd81db9
DK
27572004-06-21 David Kastrup <dak@gnu.org>
2758
2759 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2760 and unbinding of `case-fold-search' according to
2761 `completion-ignore-case' around calls of string-match and
2762 predicates, respectively. Should give satisfactory performance
2763 in all relevant cases.
2764
f303762d
JD
27652004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2766
95911c74
JD
2767 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2768 clip_x/y_origin.
2769
a6cb6b78
JD
2770 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2771
f303762d
JD
2772 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2773
2774 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2775 on Mac OSX.
2776
bbdb2684
LT
27772004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2778
2779 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2780
5ea48b1c
KS
27812004-06-16 Kim F. Storm <storm@cua.dk>
2782
2783 * dispextern.h (Vimage_types): Remove extern.
2784
803aac3e
MB
27852004-06-16 Miles Bader <miles@gnu.org>
2786
2787 * image.c (lookup_image_type): Initialize image type if necessary.
2788
cdc97764
KS
27892004-06-15 Kim F. Storm <storm@cua.dk>
2790
c4a5739c
KS
2791 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2792 margin at top of window.
2793 (try_window_reusing_current_matrix): Calculate proper cursor position
2794 after scrolling up with non-zero scroll margin, as the old cursor
2795 position corresponds to value of PT before executing this command.
2796 (try_window_id): Consider scroll margin at bottom of window too;
2797 otherwise we fail to scroll when hl-line-mode is enabled.
2798
cdc97764
KS
2799 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2800 proper format and class is a lower-case word.
2801
5b166323
JD
28022004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2803
2804 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2805 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2806 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2807 xg_get_gdk_pixmap_and_mask.
cdc97764 2808
5b166323
JD
2809 * xterm.h (struct x_display_info): Typo in comment fixed.
2810
1ebd4f78
JB
28112004-06-14 Juanma Barranquero <lektu@terra.es>
2812
2813 * dispextern.h (Vimage_types): Make it conditional on
2814 HAVE_WINDOW_SYSTEM.
2815
2816 * image.c (Vimage_types): Move from xdisp.c.
2817 (Vimage_type_cache): New variable.
2818 (define_image_type): New argument indicating whether an image
2819 library was loaded; cache loaded status and return t on success,
2820 nil otherwise.
2821 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2822 (w32_delayed_load): New function to load an image library from a
2823 list of possible filenames.
2824 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2825 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2826 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2827 (Finit_image_library): New function, extracted from `init_image'.
2828 Try to initialize an image library on demand and cache whether we
2829 were successful or not.
2830 (syms_of_image): Initialize `Vimage_types' and
2831 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2832 Export `init-image-library'.
2833 (init_image): Remove initialization of all image types, except xbm
2834 and pbm.
2835
2836 * xdisp.c (Vimage_types): Delete (moved to image.c).
2837
904ee128
AS
28382004-06-14 Andreas Schwab <schwab@suse.de>
2839
2840 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2841 Avoid calling specbind when completion-regexp-list is empty.
2842
092de21d
RS
28432004-06-13 Richard M. Stallman <rms@gnu.org>
2844
2845 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2846 (re_wctype, re_iswctype, re_wctype_to_bit):
2847 Non-function definitions moved here from regex.c.
1ebd4f78 2848
092de21d
RS
2849 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2850 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2851 (re_wctype, re_iswctype, re_wctype_to_bit):
2852 Non-function definitions moved to regex.h.
2853
2854 * window.c (Fselect_window): Doc fix.
2855
2856 * syntax.c: Include regex.h.
2857 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2858 If requested, make a list of classes, then check the scanned
2859 chars for membership in them.
2860 (in_classes): New function.
2861 Doc fix.
2862
2863 * keyboard.c (cmd_error): Don't call any_kboard_state
2864 if inside a recursive edit level.
2865
28662004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2867
2868 * keyboard.c (command_loop): Call any_kboard_state before
2869 command_loop_2 when at top level.
2870
3ebc0939
AS
28712004-06-13 Andreas Schwab <schwab@suse.de>
2872
cea5d0d4
AS
2873 * print.c (print_object): Always use %ld for printing EMACS_INT.
2874
2875 * keyboard.c (cancel_hourglass_unwind): Return a value.
2876 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2877 (Fexecute_extended_command): Likewise.
2878
2879 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2880 avoid clashes.
2881 (SYNTAX): Likewise.
2882 (SYNTAX_WITH_FLAGS): Likewise.
2883 (SYNTAX_MATCH): Likewise.
2884
2885 * syntax.c (char_quoted): Avoid warning about undefined operation.
2886 (find_defun_start): Likewise.
2887 (scan_lists): Likewise.
2888 (INC_FROM): Likewise.
2889 (scan_sexps_forward): Likewise.
2890
be8c4ce4
AS
2891 * image.c: Include <ctype.h>.
2892
3ebc0939
AS
2893 * xfaces.c (face_attr_equal_p): Declare parameters.
2894
6fb41b5b
KH
28952004-06-13 Kenichi Handa <handa@m17n.org>
2896
2897 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2898
fc3095ce
EZ
28992004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2900
2901 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2902
66189a40
KH
29032004-06-12 Kenichi Handa <handa@m17n.org>
2904
2905 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2906 ccl_prog_stack_struct and update it.
2907 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2908 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2909 ccl->eof_ic on EOF.
2910 (ccl_debug_hook): New function.
2911 (struct ccl_prog_stack): New member eof_ic.
2912 (ccl_driver): Handle EOF in subrountine call correctly.
2913
29142004-06-11 Kenichi Handa <handa@m17n.org>
2915
2916 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2917
1da71023
KS
29182004-06-11 Kim F. Storm <storm@cua.dk>
2919
2920 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2921
e9efcef4
JB
29222004-06-11 Juanma Barranquero <lektu@terra.es>
2923
2924 * keyboard.c (Fposn_at_point): Doc fix.
2925
9b9ceb61
DK
29262004-06-11 David Kastrup <dak@gnu.org>
2927
2928 * search.c (match_limit): Don't flag an error if match-data
2929 exceeding the allocated search_regs.num_regs gets requested, just
2930 return Qnil.
2931
6e87ac8f
MB
29322004-06-08 Miles Bader <miles@gnu.org>
2933
2934 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2935
0b0dea7b
JB
29362004-06-07 Juanma Barranquero <lektu@terra.es>
2937
2938 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2939 (Fcurrent_time_string, Fcurrent_time_zone)
2940 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2941
a0a23346
MB
29422004-06-07 Miles Bader <miles@gnu.org>
2943
08384afd 2944 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2945 (push_named_merge_point): New function.
2946 (merge_named_face): New function.
2947 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2948 Use `merge_named_face'.
2949 (merge_face_inheritance): Function removed.
c8d09ad8 2950 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2951 Add new `err_msgs' and `named_merge_points' args. Return error
2952 status. Only print error messages if ERR_MSGS is true. Don't try to
2953 do :inherit attribute validation.
2954 (merge_face_heights): Handle `unspecified' in both directions.
2955 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2956 Call `merge_face_ref' instead of `merge_face_inheritance'.
2957 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2958 (compute_char_face, face_at_buffer_position)
2959 (face_at_string_position): Call `merge_face_ref' instead of
2960 `merge_face_vector_with_property'.
2961
12d5b185
KH
29622004-06-07 Kenichi Handa <handa@m17n.org>
2963
2964 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2965 the necessary places.
2966
2e2d7ee6
KS
29672004-06-07 Kim F. Storm <storm@cua.dk>
2968
2969 * process.c (Fdelete_process): Undo 2004-05-28 change.
2970 Instead, call status_notify also for network process.
2971 (status_message): Use process instead of status as arg.
2972 Give messages "deleted" or "connection broken by remote peer" for
2973 an exited network process.
2974 (status_notify): Change call to status_message.
2975 (read_process_output): Increase readmax to 4096. Do not increase
2976 buffer size for datagram channels (default is now large enough).
2977
fcf0d299
ST
29782004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2979
2980 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2981 problem due to newly defined variable.
2982
0722292b
MB
29832004-06-06 Miles Bader <miles@gnu.org>
2984
2985 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2986 immediately if non-interactive or not initialized.
2987
ddfb8369
RS
29882004-06-05 Richard M. Stallman <rms@gnu.org>
2989
2990 * minibuf.c (Fcompleting_read): Doc fix.
2991
57015754
AS
29922004-06-05 Andreas Schwab <schwab@suse.de>
2993
2994 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2995
23715ea6
JB
29962004-06-05 Juanma Barranquero <lektu@terra.es>
2997
2998 * keymap.c (Fdescribe_vector): Fix docstring.
2999 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3000
8e330b22
MB
30012004-06-05 Miles Bader <miles@gnu.org>
3002
3003 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3004 attributes have different values than the default face.
3005
9742a3a6
EZ
30062004-06-04 Eli Zaretskii <eliz@gnu.org>
3007
3008 * xfaces.c (x_supports_face_attributes_p): Make this function
3009 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3010 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3011 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3012
9717e36c
MB
30132004-06-04 Miles Bader <miles@gnu.org>
3014
3015 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3016 from Ftty_supports_face_attributes_p.
3017 (x_supports_face_attributes_p): New function.
3018 (Ftty_supports_face_attributes_p): Function deleted.
3019 (Fdisplay_supports_face_attributes_p): New function.
3020 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3021 (face_attr_equal_p): New function.
9717e36c
MB
3022 (lface_equal_p): Use it.
3023
52deb19f
JB
30242004-06-03 Juanma Barranquero <lektu@terra.es>
3025
3026 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3027 (Vw32_color_map): Fix typo in docstring.
3028 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3029 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3030 Make argument names match their use in docstring.
3031
86d373e6
JB
30322004-06-02 Juanma Barranquero <lektu@terra.es>
3033
3034 Work around bugs/problems with MinGW builds of graphics libraries
3035 called from MSVC builds of Emacs.
3036
3037 * image.c (lookup_image): Make pointer to img static.
3038 (png_read_from_memory): Disable "global" optimization.
3039
2fb0ce67
SM
30402004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3041
c8d09ad8
SM
3042 * eval.c (Fcondition_case): Fix usage. Simplify.
3043
2fb0ce67
SM
3044 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3045
50bf7673
ST
30462004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3047
3048 * macfns.c: Don't include ccl.h.
3049 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3050 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3051 TextUtils.h.
c8d09ad8 3052 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3053 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3054 display height/width.
3055 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3056 (unwind_create_tip_frame, compute_tip_xy): New functions.
3057 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3058 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3059 and last_show_tip_args.
2fb0ce67 3060
50bf7673
ST
3061 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3062 (Cursor, No_Cursor): New defines.
c8d09ad8 3063 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3064 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3065
3066 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3067
3068 * macterm.c: Don't include Gestalt.h.
3069 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3070 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3071 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3072 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3073 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3074 (construct_mouse_click, XTmouse_position)
3075 (x_scroll_bar_report_motion, x_calc_absolute_position)
3076 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3077 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3078 (note_mouse_movement): Clear the mouse face and reset the pointer
3079 shape when the pointer goes outside the frame without grabbing.
3080 (mac_front_window): New function.
3081 (mac_window_to_frame): New macro.
3082 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3083 (do_window_activate, do_window_deactivate, do_app_resume)
3084 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3085 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3086 (mac_check_for_quit_char): Use mac_front_window and/or
3087 mac_window_to_frame.
3088 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3089 scroll-bar click event.
3090 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3091 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3092 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3093 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3094 (do_window_update): Don't do anything if the updated window is the
3095 tooltip window.
3096 (do_mouse_moved): Handle mouse movement events here (previously in
3097 XTread_socket). Clear the mouse face if
3098 dpyinfo->mouse_face_hidden is set.
3099 (do_os_event, do_events): Remove (now in XTread_socket).
3100 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3101 Loop until all the events in the queue are processed.
3102 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3103 contents of do_os_event and do_events. Remove mouse movement
3104 handling (now in do_mouse_moved). Add the case where
3105 Vmouse_highlight has an integer value.
3106 (NewMacWindow): Remove.
3107 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3108 excess initializations.
3109 (make_mac_terminal_frame): Previous initializations in
3110 make_mac_frame are moved here.
c8d09ad8
SM
3111 (mac_initialize_display_info):
3112 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3113
3114 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3115 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3116
08fd1251
RS
31172004-05-29 Richard M. Stallman <rms@gnu.org>
3118
3119 * lisp.h (truncate_undo_list): Update decl.
3120
3121 * alloc.c (undo_outer_limit): New variable.
3122 (syms_of_alloc): Defvar it.
3123 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3124
3125 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3126
3127 * alloc.c (lisp_align_malloc): Check for base == 0
3128 regardless of HAVE_POSIX_MEMALIGN.
3129 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3130
227ef0ff
SM
31312004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3132
3133 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3134 (marker_blocks_pending_free): Remove.
3135 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3136 Mark the undo lists after claning them up.
3137 Don't free block in marker_blocks_pending_free.
3138 (mark_buffer): Don't mark undo_list.
3139 (gc_sweep): Sweep hash-tables and strings first.
3140 Do free marker blocks that are empty.
3141
034a6113
SM
31422004-05-28 Jim Blandy <jimb@redhat.com>
3143
3144 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3145 after 'case wordend'. For symbeg and symend, print to stderr,
3146 like the other cases.
3147
33594a8d
NF
31482004-05-28 Noah Friedman <friedman@splode.com>
3149
3150 * process.c (Fdelete_process): Do not call remove_process.
3151
ce50a847
SM
31522004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3153
3154 * alloc.c (struct backtrace): Remove.
3155 (Fgarbage_collect): Use the new mark_backtrace.
3156
3157 * eval.c (mark_backtrace): New function.
3158
3159 * minibuf.c (run_exit_minibuf_hook): New function.
3160 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3161 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3162
1e8dae36
KS
31632004-05-27 Kim F. Storm <storm@cua.dk>
3164
3165 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3166 over display properties, e.g. images, that replace buffer text.
3167
846faa3b
KS
31682004-05-25 Kim F. Storm <storm@cua.dk>
3169
3170 * alloc.c (marker_blocks_pending_free): New var.
3171 (gc_sweep): Store free marker blocks on that list.
3172 (Fgarbage_collect): Free them after undo-list cleanup.
3173
3174 * process.c (wait_reading_process_input): Check connect_wait_mask
3175 before actually accepting connection in case it has already been
3176 accepted due to recursion.
3177
b6189c3b 31782004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3179
ce50a847
SM
3180 * coding.c (Fset_safe_terminal_coding_system_internal):
3181 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3182
71d5a208
RS
31832004-05-22 Richard M. Stallman <rms@gnu.org>
3184
3185 * alloc.c (Fmake_string): Doc fix.
3186
3187 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3188 and the alist pairs too.
3189
3190 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3191
3192 * emacs.c (main): Update copyright year.
3193
3194 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3195
3196 * insdel.c (del_range_2, replace_range): Don't write an anchor
3197 if the gap is empty.
3198
3199 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3200 scroll-down-aggressively is small but positive, put point
3201 near the screen edge.
3202
f63fd14e
JB
32032004-05-22 Juanma Barranquero <lektu@terra.es>
3204
3205 * keymap.c (Fdefine_key): Doc fix.
3206
4d12067c
KS
32072004-05-22 Kim F. Storm <storm@cua.dk>
3208
3209 * alloc.c (struct backtrace): Add debug_on_exit member.
3210 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3211 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3212 the removed cons cells.
3213 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3214 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3215 any cons cells pointing to unallocated stings.
3216 Do not lisp_free any marker blocks, as there may still be pointers
3217 to them from buffer undo lists at this stage of GC.
3218
3219 * keyboard.c (struct backtrace): Add debug_on_exit member.
3220 (Fcommand_execute): Clear it.
3221
931285e2
LT
32222004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3223
3224 * intervals.c (lookup_char_property): Do not prematurely return nil.
3225
669fa600
SM
32262004-05-19 Jim Blandy <jimb@redhat.com>
3227
3228 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3229 beginning and end of symbols.
4d12067c 3230
669fa600
SM
3231 * regex.c (enum syntaxcode): Add Ssymbol.
3232 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3233 (re_opcode_t): New opcodes `symbeg' and `symend'.
3234 (print_partial_compiled_pattern): Print the new opcodes properly.
3235 (regex_compile): Parse the new operators.
ce50a847 3236 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3237 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3238 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3239 (re_match_2_internal): Match symbeg and symend.
3240
3241 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3242
0d8c2e5c
KS
32432004-05-19 Kim F. Storm <storm@cua.dk>
3244
3245 * .gdbinit (xsymbol): Fix last change.
3246
669fa600
SM
32472004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3248
3249 * .gdbinit (xprintstr): New fun.
3250 (xstring, xprintsym): Use it.
3251
3252 * w32proc.c (create_child): Use INTMASK.
3253
3254 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3255 unmarked elements of the undo list.
3256
9a6a4c40
DP
32572004-05-18 David Ponce <david@dponce.com>
3258
3259 * print.c (print): Reset print_depth before to call print_object.
3260
f3c4ec74
JR
32612004-05-18 Jason Rumney <jasonr@gnu.org>
3262
3263 * w32console.c: Prefix RIF functions with w32con_ to avoid
3264 namespace clash with functions in term.c and w32term.c.
3265
3266 * w32menu.c (add_menu_item, w32_menu_display_help)
3267 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3268
0d8c2e5c 3269 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3270
6be49c3a
EZ
32712004-05-18 Eli Zaretskii <eliz@gnu.org>
3272
4d0b9a0a
EZ
3273 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3274
6be49c3a
EZ
3275 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3276 with make_number.
3277 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3278 with XINT.
3279
0bc90bba
KS
32802004-05-18 Kim F. Storm <storm@cua.dk>
3281
89d19988
KS
3282 * blockinput.h (INPUT_BLOCKED_P): New macros.
3283
3284 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3285 (Ftop_level): Unblock input if blocked.
3286
0bc90bba
KS
3287 * buffer.h (GET_OVERLAYS_AT): New macro.
3288 * msdos.c (IT_note_mouse_highlight): Use it.
3289 * textprop.c (get_char_property_and_overlay): Use it.
3290 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3291 * xfaces.c (face_at_buffer_position): Use it.
3292
3293 * print.c (print_object): Increase buf size.
3294
653bd0f6
JR
32952004-05-17 Jason Rumney <jasonr@gnu.org>
3296
3297 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3298 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3299 Lisp_Object using i member.
3300 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3301 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3302 consistently.
3303
3304 * w32proc.c (create_child): Use make_number instead of masking pid.
3305
3306 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3307 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3308 Use EQ to compare Lisp_Objects.
3309 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3310
3311 * w32term.c (w32_num_mouse_buttons): Rename from
3312 Vw32_num_mouse_buttons and make it an int.
3313
3314 * w32.c (init_environment): Use it.
3315
3316 * w32fns.c (w32_wnd_proc): Likewise.
3317
3318 * w32proc.c (w32_pipe_read_delay): Rename from
3319 Vw32_pipe_read_delay and make it an int.
3320
3321 * w32.c (_sys_read_ahead): Use it.
3322
3323 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3324
3325 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3326
3327 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3328 (key_event): Don't mix Lisp_Object and int.
3329
3330 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3331
3332 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3333 modifiers in language change event.
3334
54b53ba7
KS
33352004-05-17 Kim F. Storm <storm@cua.dk>
3336
3337 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3338 Such objects may be freed markers which still exist on an undo list.
3339
6e86a75d
JB
33402004-05-16 Juanma Barranquero <lektu@terra.es>
3341
3342 * data.c (Fset_default): Make argument names match their use in
3343 docstring.
3344
fc80da24
AS
33452004-05-15 Andreas Schwab <schwab@suse.de>
3346
3347 * emacs.c (gdb_array_mark_flag): Define.
3348 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3349
c1380aa6
EZ
33502004-05-15 Eli Zaretskii <eliz@gnu.org>
3351
3352 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3353 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3354 defined for the MS-DOS build.
3355
89458937
SM
33562004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3357
3358 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3359
08020f9a
KH
33602004-05-14 Kenichi Handa <handa@m17n.org>
3361
3362 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3363
a433994a
ST
33642004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3365
3366 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3367 section to frame.c section.
3368 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3369 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3370
a433994a 3371 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3372
a433994a 3373 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3374
a433994a
ST
3375 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3376 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3377 (XTread_socket): Fix int/Lisp_Object mixup.
3378 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3379
a433994a
ST
3380 * macterm.h (struct frame, struct face, struct image)
3381 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3382 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3383 Add prototypes.
a433994a 3384
b51a51b9
KS
33852004-05-14 Kim F. Storm <storm@cua.dk>
3386
3387 * process.c (wait_reading_process_input): Make reentrant.
3388 Make Available and Connecting non-static. Save and restore value
3389 of waiting_for_user_input_p.
3390
2bde1dd8
KS
33912004-05-13 Kim F. Storm <storm@cua.dk>
3392
3393 * keyboard.c (mark_kboards): Don't mark x and y members
3394 that are overloaded in selection request events.
3395
a267ab4d
SM
33962004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3397
3398 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3399
eb15ce9e
GM
34002004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3401
3402 * window.c (Fdisplay_buffer, Fsplit_window)
3403 (split-height-threshold): Doc fix.
3404
7fc92635
JB
34052004-05-13 Juanma Barranquero <lektu@terra.es>
3406
3407 * xfaces.c (Ftty_supports_face_attributes_p)
3408 (Finternal_copy_lisp_face): Fix typo in docstring.
3409 (Finternal_get_lisp_face_attribute): Fix docstring.
3410
1ec2a572
JD
34112004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3412
3413 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3414
ae9292e0
ST
34152004-05-11 Steven Tamm <steventamm@mac.com>
3416
3417 * macfns.c (Fx_create_frame): Default to using tool-bar by
3418 setting tool-bar-lines to 1 in default-frame-alist.
3419
34202004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3421
3422 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3423 (xpm_get_color_table_v, xpm_make_color_table_h)
3424 (xpm_put_color_table_h, xpm_get_color_table_h)
3425 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3426 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3427 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3428
fe97e8df
ST
34292004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3430
a267ab4d 3431 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3432 instead of FRAME_X_P
3433
b47e779e
KS
34342004-05-11 Kim F. Storm <storm@cua.dk>
3435
3436 * process.c (read_process_output): Grow decoding_buf when needed;
3437 this could cause a crash in allocate_string and compact_small_strings.
3438
cdc9b845
EZ
34392004-04-29 Jim Blandy <jimb@redhat.com>
3440
3441 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3442 against proper opcode.
3443
aa7094ba
JB
34442004-05-10 Juanma Barranquero <lektu@terra.es>
3445
3446 * process.c (Fstart_process): Fix docstring.
3447
3448 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3449 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3450 (Fsplit_char, Fchar_charset): Make argument names match their use
3451 in docstring.
3452
e109331a
RS
34532004-05-10 Richard M. Stallman <rms@gnu.org>
3454
3455 * print.c (print_preprocess): Use being_printed, loop_count and
3456 halftail to detect overdeep nesting and cyclic cdr chains.
3457
9a28b921
AS
34582004-05-10 Andreas Schwab <schwab@suse.de>
3459
78819ebb 3460 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3461
3462 * fileio.c (Frename_file): Remove extra argument in call to
3463 Fmake_symbolic_link.
3464
e2c02c1a
KS
34652004-05-10 Kim F. Storm <storm@cua.dk>
3466
3467 * xdisp.c (calc_line_height_property): Use string position when
3468 object is a string.
3469
cfe9d13e
KH
34702004-05-10 Kenichi Handa <handa@m17n.org>
3471
a57e8159
KH
3472 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3473 inhibit-modification-hooks to t temporarily before calling
3474 Ferase_buffer.
3475
3476 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3477 inhibit-modification-hooks to t temporarily before calling
3478 Ferase_buffer.
3479
3480 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3481 inhibit-modification-hooks to t temporarily before calling
3482 Ferase_buffer.
3483
cfe9d13e
KH
3484 * fns.c (count_combining): Delete it.
3485 (concat): Don't check combining bytes.
3486
ceb96489
JR
34872004-05-09 Jason Rumney <jasonr@gnu.org>
3488
3489 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3490 (globals_of_w32fns): Set it.
3491
b6189c3b 34922004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3493
3494 * data.c (Fquo): Simplify.
3495
28712a21
JB
34962004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3497
3498 * data.c (Fquo): If any argument is float, do the computation in
3499 floating point.
3500
0f0af7a8
JB
35012004-05-08 Juanma Barranquero <lektu@terra.es>
3502
88214ef6
JB
3503 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3504 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3505 Fix spelling of Emacs on docstring.
3506 (Fset_process_coding_system, Fprocess_coding_system)
3507 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3508 Make argument names match their use in docstring.
3509 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3510 Fix docstring.
3511
0f0af7a8
JB
3512 * editfns.c (Finsert_buffer_substring): Make argument names match their
3513 use in docstring.
3514
3515 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3516
2a316a84
ST
35172004-05-07 Steven Tamm <steventamm@mac.com>
3518
3519 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3520 around call to ReceiveEvent to avoid certain crashes.
3521
35222004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3523
2a316a84
ST
3524 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3525 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3526 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3527 Save/restore the current graphics port and device handle when
3528 drawing into an offscreen graphics world.
3529
3530 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3531 (gif_load): Likewise.
3532
ab80314b
JB
35332004-05-07 Juanma Barranquero <lektu@terra.es>
3534
3535 * window.c (Fset_window_buffer): Fix docstring.
3536
70646bb5
TTN
35372004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3538
3539 * emacs.c (main) [VMS]: Fix var ref.
3540
b6189c3b 35412004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3542
3543 * data.c (Fsetq_default): Fix docstring.
3544
279d3293
JR
35452004-05-06 Jason Rumney <jasonr@gnu.org>
3546
3547 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3548 to avoid name clash.
3549
f72b5416
JD
35502004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3551
3552 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3553 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3554 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3555
6ab66799
KS
35562004-05-04 Kim F. Storm <storm@cua.dk>
3557
3558 * xdisp.c (Qtotal): New var.
3559 (syms_of_xdisp): Intern and staticpro it.
3560 (calc_line_height_property): New arg total. Set it if
3561 line-spacing property has format (total . VALUE).
3562 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3563 Handle total line-spacing property.
3564
ab2d724b
JD
35652004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3566
3567 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3568 "under" scroll bar when size/position changes.
3569
238add5e
JR
35702004-05-03 Jason Rumney <jasonr@gnu.org>
3571
3572 * makefile.nt: Remove.
3573
1644f4e4
EZ
35742004-05-02 Eli Zaretskii <eliz@gnu.org>
3575
a267ab4d
SM
3576 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3577 Avoid compiler warnings.
05fdbeb8 3578
1644f4e4
EZ
3579 * Makefile.in (region-cache.o): Depend on config.h.
3580
b6189c3b 35812004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3582
3583 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3584 with continuation lines, too.
3585
2b98b088
TTN
35862004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3587
3588 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3589
d9bf7950
SM
35902004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3591
3592 * xdisp.c (calc_line_height_property): YAILOM (yet another
3593 int/Lisp_Object mixup).
3594
affa509c
EZ
35952004-05-01 Eli Zaretskii <eliz@gnu.org>
3596
3597 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3598 undo bad effect of pack(4) in some versions of system headers.
3599
07c07cfe
JR
36002004-05-01 Jason Rumney <jasonr@gnu.org>
3601
3602 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3603
e71caa4e
KS
36042004-04-30 Kim F. Storm <storm@cua.dk>
3605
3606 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3607 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3608
3609 * dispextern.h (struct it): Remove member use_default_face.
3610 Add members override_ascent, override_descent, override_boff.
3611
3612 * xdisp.c (init_iterator): Handle line-spacing float value.
3613 Initialize override_ascent member.
3614 (append_space_for_newline): Reset override_ascent.
3615 Remove use_default_face.
3616 (calc_line_height_property): New function to calculate value of
3617 line-height and line-spacing properties. Look at overlays, too.
3618 Set override_ascent, override_descent, override_boff members when
3619 using another face than the current face. Float values are now
3620 relative to the frame default font, by default; accept a cons
3621 of ratio and face name to specify value relative to a specific face.
3622 (x_produce_glyphs): Use calc_line_height_property.
3623 Use override_ascent etc. when set to handle different face heights.
3624 A negative line-spacing property value is interpreted as a total
3625 line height, rather than inter-line spacing.
3626 (note_mouse_highlight): Allocate room for 40 overlays initially.
3627
0fddae66
SM
36282004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3629
3630 * data.c (Fsubr_name): New fun.
3631 (syms_of_data): Defsubr it.
3632
712d23dc
KS
36332004-04-29 Kim F. Storm <storm@cua.dk>
3634
3635 * xdisp.c (null_glyph_slice): New var.
3636 (append_glyph, append_composite_glyph, append_stretch_glyph):
3637 Use it to initialize glyph slice.
3638
033ad8c6
SM
36392004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3640
3641 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3642 (on_hot_spot_p): Make sure we always return a value.
3643 (Flookup_image_map): Remove unused var ix and iy.
3644 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3645
93397360
EZ
36462004-04-27 Eli Zaretskii <eliz@gnu.org>
3647
3648 * msdos.c (init_environment): If one of the TMP... environment
3649 variables is set to a drive letter without a trailing slash,
3650 append a slash.
3651
0c54865e
EZ
36522004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3653
3654 * editfns.c (lisp_time_argument): Provide externally.
3655
3656 * fileio.c (Fset_file_times): New function.
3657 (syms_of_fileio): Intern and staticpro it.
3658
d3b111bd
KS
36592004-04-27 Kim F. Storm <storm@cua.dk>
3660
07dc1231
KS
3661 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3662 header line strings.
3663
360fe9d2
KS
3664 * dispextern.h (struct it): New member use_default_face.
3665
d3b111bd
KS
3666 * xdisp.c (Qline_height): New variable.
3667 (syms_of_xdisp): Intern and staticpro it.
3668 (append_space_for_newline): Partially undo 2004-04-25 change;
3669 add default_face_p arg, and restore callers.
3670 Clear it->use_default_face after use.
3671 (x_produce_glyphs): Set default font for ascii char if
3672 it->use_default_font is set. Change line-spacing property to set
3673 just extra line spacing. Handle new line-height property.
3674
0448588b
AS
36752004-04-26 Andreas Schwab <schwab@suse.de>
3676
3677 * print.c (print_object): Print non-ascii characters in bool
3678 vector representation as octal escapes.
3679
3680 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3681 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3682 bool vectors.
3683 * lread.c (read1): Likewise.
3684 * alloc.c (Fmake_bool_vector): Likewise.
3685 * data.c (Faref, Faset): Likewise.
3686 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3687 (mapcar1): Likewise.
d3b111bd 3688
536d6baa
ST
36892004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3690
3691 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3692
ae11577a
MB
36932004-04-26 Miles Bader <miles@gnu.org>
3694
3695 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3696
e198ba87
JB
36972004-04-26 Juanma Barranquero <lektu@terra.es>
3698
3699 * buffer.c (Fpop_to_buffer): Fix docstring.
3700
f3d5f92d 37012004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3702
f3d5f92d
ST
3703 * lread.c (init_lread): Don't display missing lisp directory
3704 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3705 may be built without correct installation path.
f3d5f92d 3706
03e35edc
KS
37072004-04-25 Kim F. Storm <storm@cua.dk>
3708
9ff3aa31
KS
3709 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3710
3711 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3712
03e35edc
KS
3713 * xdisp.c (append_space_for_newline): Rename from append_space.
3714 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3715 (x_produce_glyphs): Handle line-spacing property on newline char.
3716 If value is t, adjust ascent and descent to fit current row height.
3717 If value is an integer or float, set extra_line_spacing to integer
3718 value, or to float value x current line height.
3719
f24814e0
KH
37202004-04-23 Kenichi Handa <handa@m17n.org>
3721
3722 * fontset.c (Finternal_char_font): If POSITION is nil, return
3723 font for displaying CH with the default face.
3724
d814862a
JB
37252004-04-23 Juanma Barranquero <lektu@terra.es>
3726
3727 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3728
063a45c5
SM
37292004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3730
3731 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3732 Don't make assumptions about the relative place of i and val.
3733 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3734
ae7ab2d3
KS
37352004-04-21 Kim F. Storm <storm@cua.dk>
3736
3737 * dispextern.h (struct glyph_slice): New struct.
3738 (struct glyph): New member slice.
3739 (GLYPH_SLICE_EQUAL_P): New macro.
3740 (GLYPH_EQUAL_P): Use it.
3741 (struct glyph_string): New member slice.
3742 (struct it_slice): New struct.
3743 (struct it): New member slice, add member to stack too.
3744 New member constrain_row_ascent_descent_p.
3745 (image_ascent): Add prototype.
3746
3747 * dispnew.c (buffer_posn_from_coords): Return full image width
3748 and height even for image slices (posn is relative to full image).
3749 (marginal_area_string): Adjust x0,y0 for image slice.
3750
3751 * image.c (image_ascent): Add slice arg; calculate ascent for
3752 image slice (or full image).
3753
3754 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3755 (syms_of_keyboard): Defsubr them.
3756
3757 * lisp.h (pos_visible_p): Fix prototype.
3758
c62aec78 3759 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3760 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3761 (x_draw_image_foreground, x_draw_image_relief)
3762 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3763 Draw sliced images.
3764
3765 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3766 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3767 (x_draw_image_foreground, x_draw_image_relief)
3768 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3769 Draw sliced images.
3770
3771 * w32term.h (image_ascent): Remove prototype.
3772
3773 * window.c (Fpos_visible_in_window_p): Return pixel position if
3774 PARTIALLY arg is non-nil. Simplify. Doc fix.
3775 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3776 to return/set vscroll in pixels.
3777
3778 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3779
3780 * xdisp.c (Qslice): New variable.
3781 (syms_of_xdisp): Intern and staticpro it.
3782 (pos_visible_p): Return pixel position in new x and y args.
3783 (init_iterator): Reset it->slice info.
3784 (handle_display_prop): Parse (slice ...) property.
3785 (push_it, pop_it): Save/restore slice info.
3786 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3787 force repositioning of tall row if window is vscrolled, as that
3788 would reset vscroll.
3789 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3790 increasing row height if row is non-empty.
3791 (fill_image_glyph_string): Copy slice info.
3792 (take_vertical_position_into_account): Simplify.
3793 (produce_image_glyph): Handle iterator slice info, setup glyph
3794 slice info. Do not force minimum line height.
3795 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3796 do not increase height (ascent/descent) of non-empty row when
3797 adding normal character glyph; instead reduce glyph ascent/descent
3798 appropriately; if row is higher than current glyph, adjust glyph
3799 descent/ascent to reposition glyph within the existing row.
3800 Likewise, when char is newline, only set ascent/descent if row is
3801 currently empty.
3802 (note_mouse_highlight): Handle hotspots with sliced image.
3803
3804 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3805 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3806 (x_draw_image_foreground, x_draw_image_relief)
3807 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3808 Draw sliced images.
3809
3810 * xterm.h (image_ascent): Remove prototype.
3811
d58f8753
SM
38122004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3813
3814 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3815
4ce2719d
JPW
38162004-04-20 John Paul Wallington <jpw@gnu.org>
3817
3818 * fns.c (Fassoc, Feql): Fix indentation.
3819
d58f8753 3820 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3821
95f8c3b9
JPW
38222004-04-19 John Paul Wallington <jpw@gnu.org>
3823
3824 * fns.c (Feql): New function.
d58f8753 3825 (syms_of_fns): Defsubr it.
95f8c3b9 3826
b7e85537
JR
38272004-04-18 Jason Rumney <jasonr@gnu.org>
3828
3829 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3830 after closing the clipboard.
3831
5a72efd4
LT
38322004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3833
3834 * buffer.c (Fbuffer_base_buffer): Doc fix.
3835
20dc8583
KS
38362004-04-17 Kim F. Storm <storm@cua.dk>
3837
60962ec4
KS
3838 * keymap.c (Fkey_description): Add optional PREFIX arg.
3839 Combine prefix with KEYS to make up the full key sequence to describe.
3840 Correlate meta_prefix_char and following (simple) key to describe
3841 as meta modifier. All callers changed.
3842 (describe_map): Rename arg `keys' to `prefix'. Remove local
3843 `elt_prefix' var. Use Fkey_description with prefix instead of
3844 elt_prefix combined with Fsingle_key_description.
3845 (describe_vector): Declare static. Replace arg `elt_prefix' with
3846 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3847 if !KEYMAP_P. Use Fkey_description with prefix instead of
3848 Fsingle_key_description.
3849
3850 * keymap.h (Fkey_description): Fix prototype.
3851 (describe_vector): Remove prototype.
3852
409368b9
KS
3853 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3854
20dc8583
KS
3855 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3856 (png_load): Fix calculation of transparent background color on X
3857 and W32 platforms.
3858
75c5501b
JB
38592004-04-16 Juanma Barranquero <lektu@terra.es>
3860
3861 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3862 not too large before computing how much to scroll.
3863
da879ae8
SM
38642004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3865
3866 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3867
d01ca4a8
LT
38682004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3869
3870 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3871 Add hyperlink to Elisp manual to the docstring.
3872
572943b3
SM
38732004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3874
3875 * callint.c (fix_command): Use XDCR.
3876
5e30a0fb
NR
38772004-04-14 Nick Roberts <nick@nick.uklinux.net>
3878
3879 * window.c (Fget_lru_window): Doc fix.
3880
a27ddfaf
KS
38812004-04-14 Kim F. Storm <storm@cua.dk>
3882
3883 * editfns.c (Fformat): Fix allocation size of precision array.
3884
3885 * dispnew.c (update_window): Only set changed_p if
3886 scrolling_window actually did scroll.
3887 (scrolling_window): Only return 1 if we actually did scroll.
3888
3889 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3890 height to glyph height when cursor row is not fully visible.
3891 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3892 failure in case row is higher than window. Callers changed.
3893 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3894 Try to scroll partially visible, higher-than-window cursor row.
3895 (redisplay_window): Always try to scroll partially visible,
3896 higher-than-window cursor row - both initially and again with
3897 centering_position = 0.
3898 Clear desired matrix before retrying with centering_position = 0.
3899
da879ae8
SM
39002004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3901
3902 * syntax.c (scan_lists): Simplify backward string scan.
3903 Fix off-by-one boundary check for string and comment fences.
3904
5fc16e8e
SM
39052004-04-13 Joe Buehler <jbuehler@hekimian.com>
3906
3907 * sheap.c, unexcw.c: New files.
3908
c9aac8e6
LT
39092004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3910
3911 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3912 base buffer has been killed. Correct the error message if the
3913 base buffer does not exist.
3914
1e88a355
SM
39152004-04-12 Joe Buehler <jbuehler@hekimian.com>
3916
3917 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3918 Cygwin itself. Add support for Xaw3d scrollbars.
3919
3920 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3921
3922 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3923
3924 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3925 before Cygwin unexec.
3926
3927 * Makefile.in: Link changes for Cygwin unexec() support.
3928
8dbff9a0
AS
39292004-04-12 Andreas Schwab <schwab@suse.de>
3930
3931 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3932
54dffe35
LT
39332004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3934
3935 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3936 IGNORE argument equals NAME. Doc fix.
3937
99a72bdf
MY
39382004-04-11 Masatake YAMATO <jet@gyve.org>
3939
1e88a355 3940 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3941 empty if they are backwards.
3942
40899d7b
SM
39432004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3944
3945 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3946
f8f853de
SM
39472004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3948
3949 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3950
c953fe1b
KS
39512004-04-06 Kim F. Storm <storm@cua.dk>
3952
661e85c1
KS
3953 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3954 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3955
3956 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3957 clearing highlight.
3958
3959 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3960
3961 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3962 clearing highlight.
3963
c953fe1b
KS
3964 * indent.c (vmotion): Do not reserve one column for continuation
3965 marks on window frames.
3966
c1994268
EZ
39672004-04-04 Eli Zaretskii <eliz@gnu.org>
3968
3969 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3970 from GCC.
3971
9f691b0d
SM
39722004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3973
3974 * .gdbinit-union: Remove.
3975
3976 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3977 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3978 ($nonvalbits): Remove.
3979 ($valmask): Set it by calling xreload to avoid redundancy.
3980
3981 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3982 (gdb_emacs_intbits): Remove.
3983
7a8560d7
JD
39842004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3985
9f691b0d 3986 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3987
3c8111fc
KH
39882004-03-30 Kenichi Handa <handa@m17n.org>
3989
3990 * editfns.c (Fformat): Fix initialization of the array info.
3991
48a0bce4
KS
39922004-03-30 Kim F. Storm <storm@cua.dk>
3993
3994 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3995 (syms_of_xterm): DEFVAR_BOOL it.
3996 (ignore_next_mouse_click_timeout): New var.
3997 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3998 Use it to filter mouse clicks following focus event.
3999
1cd0066c
KS
40002004-03-29 David Ponce <david@dponce.com>
4001
4002 * callint.c (Fcall_interactively): Fix last change.
4003
adb3b353
SM
40042004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4005
4006 * eval.c (Fcommandp): Simplify.
4007
4008 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4009 Extend to handle all kinds of functions.
4010
4011 * lisp.h (Finteractive_form): Declare.
4012
4013 * callint.c (Fcall_interactively): Use it.
4014
6fc4c9c9
KS
40152004-03-26 Kim F. Storm <storm@cua.dk>
4016
4017 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4018 to catch errors in calc_pixel_width_or_height during redisplay.
4019
abdb9b83
MY
40202004-03-26 Masatake YAMATO <jet@gyve.org>
4021
b17856dd 4022 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4023
b17856dd 4024 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4025
b17856dd 4026 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4027
b17856dd 4028 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4029
e8a84b6c
JD
40302004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4031
b17856dd 4032 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4033
36a3fd05
RS
40342004-03-19 Richard M. Stallman <rms@gnu.org>
4035
4036 * s/sol2-6.h: Delete previous change.
4037
ab24c127
KS
40382004-03-19 Kim F. Storm <storm@cua.dk>
4039
4040 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4041 to_charpos corresponds to newline in right fringe. Use local
4042 BUFFER_POS_REACHED_P macro.
4043
992126de
JD
40442004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4045
4046 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4047 to compile on non-window system.
4048
45dbfc84
KS
40492004-03-19 Kim F. Storm <storm@cua.dk>
4050
4051 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4052
4053 * image.c (Qcenter): Move to xdisp.c.
4054
4055 * xdisp.c (Qcenter): Declare here.
adb3b353 4056 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4057 (handle_single_display_prop): Allow space display property on all
4058 platforms.
4059 (display_mode_line): Set mode_line_p before displaying line.
4060 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4061 handling. Remove complex cases for fringes and scroll-bars.
4062 Add left, right, and center alignment positions. Add text (area)
4063 width/height. Return width or height for image specs.
4064 (produce_stretch_glyph): Improve handling of :align-to. Is now
4065 relative to left of text area by default, but other base offsets
4066 can be specified -- also for text lines.
4067
4068 * term.c (produce_glyphs): Handle IT_STRETCH.
4069 (produce_stretch_glyph): New function to handle space width and
4070 align-to display properties on non-window systems.
4071
37264101
SM
40722004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4073
4074 * fileio.c (Fread_file_name): Set completion-ignore-case for
4075 case-insensitive systems.
4076
73bc43da
MY
40772004-03-14 Masatake YAMATO <jet@gyve.org>
4078
4079 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4080 when keymap and cursor are setup.
4081
9062aa89
ST
40822004-03-14 Steven Tamm <steventamm@mac.com>
4083
b17856dd 4084 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4085
e4b1b5ab
KS
40862004-03-14 Kim F. Storm <storm@cua.dk>
4087
4088 * dispextern.h (x_find_image_file): Add prototype.
4089
4090 * image.c (x_find_image_file): Make extern.
4091
4092 * xfns.c (x_find_image_file): Remove prototype.
4093
a6eeaa81 40942004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4095
37264101 4096 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4097
37264101 4098 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4099
e69cfac2
RS
41002004-03-12 Richard M. Stallman <rms@gnu.org>
4101
4102 * fns.c (internal_equal): New arg PROPS controls comparing
4103 text properties. All callers changed.
4104 (Fequal_including_properties): New function.
4105 (syms_of_fns): defsubr it.
4106
45034953
KS
41072004-03-12 Kim F. Storm <storm@cua.dk>
4108
4109 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4110
45034953
KS
4111 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4112 (image_background, image_background_transparent): Fix prototypes.
4113
37264101 4114 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4115
4116 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4117 (x_query_font, x_find_ccl_program, x_set_window_size)
4118 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4119 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4120 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4121
4122 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4123 (x_query_font, x_find_ccl_program, x_set_window_size)
4124 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4125 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4126 (mac_draw_line_to_pixmap): Add prototypes.
4127
41282004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4129
4130 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4131
a12d3d87
KS
41322004-03-11 Kim F. Storm <storm@cua.dk>
4133
d3ab1cf1
KS
4134 * dispextern.h: Move image related prototypes from xfns.c section
4135 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4136 HAVE_X_WINDOWS.
37264101 4137
37de9f51 4138 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4139 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4140 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4141 (GTK_OBJ) [USE_GTK]: New declaration.
4142 (obj): Add $(GTK_OBJ) to list.
4143
5243c06a 41442004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4145
5243c06a
ST
4146 * image.c [MAC_OSX]: Include sys/stat.h
4147
4148 * macfns.c (syms_of_macfns): Remove definitions of things now
4149 defined in image.c
4150
c0f97789
KS
41512004-03-11 Kim F. Storm <storm@cua.dk>
4152
4153 The following changes consolidates the identical/similar image
4154 support code previously found in xfns.c, w32fns.c, and macfns.c
4155 into a new file image.c.
4156
4157 * makefile.w32-in (OBJ1): Add image.o.
4158 ($(BLD)/image.$(O)): Add dependencies.
4159
4160 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4161 (image.o): Add dependencies.
37264101 4162
c0f97789
KS
4163 * image.c: New file with consolidated image support code.
4164 (COLOR_TABLE_SUPPORT): New define to control whether
4165 color table support is available (X only).
4166 (Bitmap_Record): Common name for x_bitmap_record,
4167 w32_bitmap_record, and mac_bitmap_record.
4168 (XImagePtr): Common name for pointer to XImage or equivalent.
4169 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4170 to XImagePtr on X+MAC, and to HDC on W32.
4171 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4172 (NO_PIXMAP): Common name for "None" or equivalent.
4173 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4174 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4175 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4176 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4177 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4178 (XDrawLine): Define on MAC for code sharing.
4179 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4180 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4181 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4182 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4183 (x_reference_bitmap, x_create_bitmap_from_data)
4184 (x_create_bitmap_from_file, x_destroy_bitmap)
4185 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4186 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4187 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4188 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4189 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4190 (define_image_type, lookup_image_type, valid_image_p)
4191 (image_error, enum image_value_type, struct image_keyword)
4192 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4193 (make_image, free_image, prepare_image_for_display, image_ascent)
4194 (four_corners_best, image_background, image_background_transparent)
4195 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4196 (make_image_cache, free_image_cache, clear_image_cache)
4197 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4198 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4199 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4200 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4201 (init_image_func_pointer, image_load_quartz2d)
4202 (struct ct_color, init_color_table, free_color_table)
4203 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4204 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4205 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4206 (x_disable_image, x_build_heuristic_mask)
4207 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4208 (TIFF support, GIF support, Ghostscript support): Consolidate image
4209 code from xfns.c, w32fns.c, and macfns.c.
4210 (syms_of_image): Consolidate image related symbol setup here.
4211 (init_image): Consolidate image related initializations here.
37264101 4212
c0f97789
KS
4213 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4214 and init_image. Remove call to init_xfns.
4215
37264101
SM
4216 * macterm.h (struct mac_bitmap_record): Add file member.
4217 Not currently used, but simplifies code sharing.
c0f97789
KS
4218
4219 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4220 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4221 (x_reference_bitmap, x_create_bitmap_from_data)
4222 (x_create_bitmap_from_file, x_destroy_bitmap)
4223 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4224 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4225 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4226 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4227 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4228 (define_image_type, lookup_image_type, valid_image_p)
4229 (image_error, enum image_value_type, struct image_keyword)
4230 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4231 (make_image, free_image, prepare_image_for_display, image_ascent)
4232 (four_corners_best, image_background, image_background_transparent)
4233 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4234 (make_image_cache, free_image_cache, clear_image_cache)
4235 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4236 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4237 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4238 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4239 (init_image_func_pointer, image_load_quartz2d)
4240 (struct ct_color, init_color_table, free_color_table)
4241 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4242 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4243 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4244 (x_disable_image, x_build_heuristic_mask)
4245 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4246 (TIFF support, GIF support, Ghostscript support): Merge with image
4247 code from xfns.c and macfns.c into image.c.
4248 (syms_of_xfns): Move image related symbols to image.c.
4249 (init_external_image_libraries, init_xfns): Remove; initialization
4250 moved to init_image in image.c.
4251
4252 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4253 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4254 (x_reference_bitmap, x_create_bitmap_from_data)
4255 (x_create_bitmap_from_file, x_destroy_bitmap)
4256 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4257 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4258 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4259 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4260 (define_image_type, lookup_image_type, valid_image_p)
4261 (image_error, enum image_value_type, struct image_keyword)
4262 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4263 (make_image, free_image, prepare_image_for_display, image_ascent)
4264 (four_corners_best, image_background, image_background_transparent)
4265 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4266 (make_image_cache, free_image_cache, clear_image_cache)
4267 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4268 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4269 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4270 (struct ct_color, init_color_table, free_color_table)
4271 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4272 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4273 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4274 (x_disable_image, x_build_heuristic_mask)
4275 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4276 (TIFF support, GIF support, Ghostscript support): Merge with image
4277 code from xfns.c and macfns.c into image.c.
4278 (syms_of_xfns): Move image related symbols to image.c.
4279 (init_external_image_libraries, init_xfns): Remove; initialization
4280 moved to init_image in image.c.
4281
4282 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4283 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4284 (x_reference_bitmap, x_create_bitmap_from_data)
4285 (x_create_bitmap_from_file, x_destroy_bitmap)
4286 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4287 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4288 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4289 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4290 (define_image_type, lookup_image_type, valid_image_p)
4291 (image_error, enum image_value_type, struct image_keyword)
4292 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4293 (make_image, free_image, prepare_image_for_display, image_ascent)
4294 (four_corners_best, image_background, image_background_transparent)
4295 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4296 (make_image_cache, free_image_cache, clear_image_cache)
4297 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4298 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4299 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4300 (struct ct_color, init_color_table, free_color_table)
4301 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4302 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4303 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4304 (x_disable_image, x_build_heuristic_mask)
4305 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4306 (TIFF support, GIF support, Ghostscript support): Merge with
4307 w32fns.c and macfns.c image code into image.c.
4308 (syms_of_xfns): Move image related symbols to image.c.
4309 (init_xfns): Remove; initialization moved to init_image in image.c.
4310
4311 * lisp.h (syms_of_image, init_image): Add protoypes.
4312 (init_xfns): Remove prototype.
4313
4314 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4315 (x_reference_bitmap, x_create_bitmap_from_data)
4316 (x_create_bitmap_from_file, x_destroy_bitmap)
4317 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4318 (gamma_correct) [MAC_OS]: Add prototype.
4319
4320 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4321 (x_reference_bitmap, x_create_bitmap_from_data)
4322 (x_create_bitmap_from_file, x_destroy_bitmap)
4323 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4324
6eced09c
KH
43252004-03-09 Kenichi Handa <handa@etlken2>
4326
4327 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4328 correctly.
4329
9a7e95f3
RS
43302004-03-04 Richard M. Stallman <rms@gnu.org>
4331
04a6e76b
RS
4332 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4333
9a7e95f3
RS
4334 * window.c (Fdisplay_buffer): Doc fix.
4335
4336 * buffer.c (Fpop_to_buffer): Doc fix.
4337
6c2488df
KS
43382004-03-03 Kim F. Storm <storm@cua.dk>
4339
4340 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4341
d8d95bc7
SM
43422004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4343
4344 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4345
357589bf
RS
43462004-03-02 Richard M. Stallman <rms@gnu.org>
4347
4348 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4349
409949b5
KH
43502004-03-02 Kenichi Handa <handa@m17n.org>
4351
4352 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4353
d24bc50f
KS
43542004-03-02 Kim F. Storm <storm@cua.dk>
4355
4356 * window.h (struct window): New member overlay_arrow_bitmap.
4357
4358 * window.c (make_window): Initialize overlay_arrow_bitmap.
4359
4360 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4361 implement and integrate multiple overlay arrows with redisplay.
4362 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4363 (last_arrow_position, last_arrow_string): Replace by properties.
4364 (Qlast_arrow_position, Qlast_arrow_string)
4365 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4366 (syms_of_xdisp): Intern and staticpro them.
4367 (overlay_arrow_string_or_property, update_overlay_arrows)
4368 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4369 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4370 (redisplay_internal): Use them instead of directly accessing
4371 Voverlay_arrow_position etc. for multiple overlay arrows.
4372 (mark_window_display_accurate): Use update_overlay_arrows.
4373 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4374 (try_window_id): Use overlay_arrows_changed_p.
4375 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4376 (display_line): Use overlay_arrow_at_row to check multiple
4377 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4378 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4379 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4380 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4381
4382 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4383 (update_window_fringes): Remove unused code.
4384
c1464661
JR
43852004-03-01 Jason Rumney <jasonr@gnu.org>
4386
4387 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4388
a64387ee
JB
43892004-03-01 Juanma Barranquero <lektu@terra.es>
4390
4391 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4392
4393 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4394
334faa08
JD
43952004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4396
4397 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4398 how many colors can be displayed.
4399
bb62616f
KH
44002004-03-01 Kenichi Handa <handa@m17n.org>
4401
4402 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4403 correctly.
4404
0fd16104
KS
44052004-02-28 Kim F. Storm <storm@cua.dk>
4406
4407 * dispnew.c (update_window): Update header line also if there are
4408 no other changes in window (move code after set_cursor label).
4409
4410 * lisp.h (mark_window_display_accurate): Remove prototype.
4411
4412 * window.c (window_loop, Fforce_window_update): Force mode line
4413 updates by setting prevent_redisplay_optimizations_p and
4414 update_mode_lines.
4415
b59dd9c8
JD
44162004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4417
d8d95bc7 4418 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4419
4420 * xterm.c (x_calc_absolute_position): Call x_real_positions
4421 to get WM window sizes and use those to calculate position.
d8d95bc7 4422 (x_set_offset): Remove code commented out.
b59dd9c8 4423
a874691c
MB
44242004-02-28 Miles Bader <miles@gnu.org>
4425
4426 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4427
3e0c6482
KS
44282004-02-28 Kim F. Storm <storm@cua.dk>
4429
4430 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4431 an event into kbd fifo, but with special handling of quit event;
4432 a quit event is saved for later, and further events are discarded
4433 until the saved quit event has been processed.
4434 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4435 (gen_help_event): Store help event in kbd fifo.
4436 (NREAD_INPUT_EVENTS): Remove.
4437 (read_avail_input): Adapt to new read_socket_hook interface.
4438 Remove allocation and initialization of local input_event buffer,
4439 as read_socket_hook stores events directly in fifo. Allocate and
4440 initialize local hold_quit event to handle postponed quit event
4441 (and store it if set by kbd_buffer_store_event_hold).
4442
4443 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4444 (gen_help_event): Fix prototype.
4445
a64387ee 4446 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4447 numcharsp args. Add hold_quit arg.
f63fd14e 4448 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4449 directly in fifo using kbd_buffer_store_event_hold.
4450
4451 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4452 (read_input_waiting): Adapt to new read_socket_hook interface.
4453 Remove allocation and initialization of local input_event buffer,
4454 as read_socket_hook stores events directly in fifo. Allocate and
4455 initialize local hold_quit event to handle postponed quit event
4456 (and store it if set by kbd_buffer_store_event_hold).
4457
a64387ee 4458 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4459
4460 * termhooks.h (read_socket_hook): Fix prototype.
4461
4462 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4463 numcharsp args. Add hold_quit arg.
f63fd14e 4464 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4465 directly in fifo using kbd_buffer_store_event_hold.
4466
4467 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4468
4469 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4470 Add hold_quit arg. Rework to use just one, local, inev
4471 input_event. Store inev directly in fifo using
3e0c6482
KS
4472 kbd_buffer_store_event_hold. Update count in one place.
4473 Postpone call to gen_help_event until inev is stored; use new
4474 local do_help for this.
4475 Remove local emacs_event in handing of ButtonPress event; just use
4476 inev instead (so no reason to copy it later).
4477
4478 * xsmfns.c (x_session_check_input): Remove numchars arg.
4479
d8d95bc7
SM
4480 * xterm.c (x_focus_changed, x_detect_focus_change):
4481 Remove numchars arg. Always store event into bufp arg.
4482 Return nothing. Callers changed accordingly.
3e0c6482
KS
4483 (glyph_rect): Simplify.
4484 (STORE_KEYSYM_FOR_DEBUG): New macro.
4485 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4486 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4487 (current_hold_quit) [USE_GTK]: Add.
4488 (event_handler_gdk): Adapt to new handle_one_xevent.
4489 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4490 Add hold_quit arg. Rework to use just one, local, inev
4491 input_event. Store inev directly in fifo using
3e0c6482
KS
4492 kbd_buffer_store_event_hold. Update count in one place.
4493 Postpone call to gen_help_event until inev is stored; use new
4494 local do_help for this.
4495 Simplify handling of keysyms (consolidate common code). Fix bug
4496 where count was updated with nchars instead of nbytes.
4497 Remove local emacs_event in handing of ButtonPress event; just use
4498 inev instead (so no reason to copy it later).
4499 Remove `out' label. Rename label `ret' to `done'; add various
4500 `goto done' to clarify code flow in deeply nested blocks.
4501 (x_dispatch_event): Simplify as handle_one_xevent now calls
4502 kbd_buffer_store_event itself.
f63fd14e 4503 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4504 arg. Call handle_one_xevent with new arglist. Store event from
4505 x_session_check_input in fifo.
4506 [USE_GTK]: Setup current_hold_quit.
4507 Decrement handling_signal before unblocking input.
4508 (x_initialize) [USE_GTK]: Initialize current_count.
4509
4510 * xterm.h (x_session_check_input): Fix prototype.
4511
e3564461 45122004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4513
d8d95bc7 4514 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4515
e3564461
ST
4516 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4517 macgui.h).
a64387ee 4518
e3564461 4519 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4520
e3564461
ST
4521 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4522 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4523 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4524 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4525 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4526 (Bitmap): Remove typedef.
4527 (Pixmap): Change int to GWorldPtr.
4528
d8d95bc7 4529 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4530
d8d95bc7
SM
4531 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4532 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4533 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4534 long representation.
4535 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4536 colors used for masks.
4537 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4538
e3564461
ST
4539 * macfns.c: Include sys/types.h and sys/stat.h.
4540 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4541 Include QuickTime/QuickTime.h.
4542 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4543 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4544 functions defined in macterm.c.
4545 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4546 (ZPixmap): New #define for compatibility with xfns.c.
4547 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4548 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4549 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4550 New functions.
e3564461 4551 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4552 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4553 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4554 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4555 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4556 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4557 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4558 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4559 long mixup.
4560 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4561 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4562 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4563 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4564 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4565 (x_alloc_image_color, clear_image_cache, lookup_image)
4566 (x_find_image_file, xbm_read_bitmap_file_data)
4567 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4568 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4569 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4570 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4571 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4572 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4573 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4574 #if 0.
4575 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4576 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4577 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4578 New functions (from xfns.c).
e3564461
ST
4579 (Fx_create_frame): Record unwind_create_frame.
4580 (Fxw_display_color_p): Use dpyinfo->color_p.
4581 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4582 dpyinfo->n_cbits.
4583 (Fx_display_color_cells): Use dpyinfo->n_planes;
4584 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4585 (Qheuristic, cross_disabled_images, emboss_matrix)
4586 (laplace_matrix): New variables (from xfns.c).
4587 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4588 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4589 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4590 (image_background_transparent): New function (from xfns.c).
4591 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4592 (image_load_quicktime): Add declaration.
4593 [MAC_OSX] (image_load_quartz2d): Likewise.
4594 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4595 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4596 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4597 (xbm_load_image_from_file, x_laplace_read_row)
4598 (x_laplace_write_row, pbm_read_file): Remove functions.
4599 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4600 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4601 (colors_in_color_table): Sync with xfns.c (although not used).
4602 (lookup_rgb_color): Don't lookup color table. Just do gamma
4603 correction.
4604 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4605 (x_disable_image): New function (from xfns.c).
4606 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4607 (x_build_heuristic_mask): Sync with xfns.c.
4608 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4609 (HAVE_PBM): Remove #ifdef.
4610 (pbm_load): Sync with xfns.c. Set img->width and img->height
4611 before IMAGE_BACKGROUND.
d8d95bc7 4612 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4613 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4614 Don't enclose with #if HAVE_PNG.
4615 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4616 symbol _CGImageCreateWithPNGDataProvider is defined.
4617 Otherwise use image_load_quicktime.
e3564461 4618 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4619 [HAVE_PNG] (png_load): Sync with xfns.c.
4620 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4621 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4622 HAVE_JPEG.
4623 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4624 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4625 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4626 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4627 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4628 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4629 HAVE_TIFF.
4630 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4631 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4632 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4633 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4634 New functions (from xfns.c).
e3564461 4635 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4636 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4637 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4638 Don't enclose with #if HAVE_GIF.
4639 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4640 animated gif. Otherwise use image_load_quicktime.
4641 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4642 gif_DrawText to avoid conflict with QuickdrawText.h.
4643 [HAVE_GIF] (gif_load): Sync with xfns.c.
4644 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4645 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4646 Ghostscript is not supported yet).
4647 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4648 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4649 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4650 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4651 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4652 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4653 HAVE_PNG. Call EnterMovies to support animated gifs.
4654 Call init_image_func_pointer to bind a symbol
e3564461 4655 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4656
d8d95bc7 4657 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4658 (x_draw_bar_cursor): Sync declaration with xterm.c.
4659 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4660 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4661 graphics).
4662 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4663 (mac_draw_line_to_pixmap, XCreatePixmap)
4664 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4665 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4666 New functions.
4667 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4668 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4669 Cast bits to char *.
e3564461
ST
4670 (reflect_byte): New function (from w32fns.c).
4671 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4672 due to byte alignment.
d8d95bc7
SM
4673 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4674 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4675 (XSetForeground): Remove static (now used in macfns.c).
4676 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4677 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4678 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4679 (x_draw_glyph_string_box, x_draw_image_foreground)
4680 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4681 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4682 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4683 Sync with xterm.c.
4684 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4685 than the xterm.c version when a strictly horizontal or vertical
4686 line is drawn.
4687 (XTset_terminal_window): Add static.
4688 (x_make_frame_visible): Add UNBLOCK_INPUT.
4689 (x_free_frame_resources): New funcion (from xterm.c).
4690 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4691 occurs in tool bar area.
d8d95bc7
SM
4692 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4693 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4694 Initialize image cache.
4695 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4696 Enclose unused functions with #if 0.
4697 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4698 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4699 from a mac font name to an XLFD font name according to its script code.
e3564461 4700 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4701 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4702 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4703 whose name starts with `.'.
4704 (init_font_name_table): Use decode_mac_font_name. Add both
4705 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4706 of a font is smJapanese.
4707 (mac_do_list_fonts): New function to list fonts that match a given
4708 pattern.
4709 (x_list_fonts, XLoadQueryFont): Use it.
4710 (XLoadQueryFont): Set rbearing field for each variable width
4711 character to avoid needless redraw.
4712 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4713
446f5f3d
KS
47142004-02-26 Kim F. Storm <storm@cua.dk>
4715
af617d0f
KS
4716 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4717 as read_socket_hook handler on X aborts if buffer is too small
4718 and W32 handler doesn't always check buffer limit.
4719
446f5f3d
KS
4720 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4721 right-fringe similar to a display margin image. Specifically,
4722 the characters having the fringe prop are no longer shown, and
4723 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4724 do this. Set fringe bitmap face_id in it->face_id.
4725 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4726 still realize it->face (i.e. the fringe bitmap face).
4727
7d8a0b55
MB
47282004-02-25 Miles Bader <miles@gnu.org>
4729
4730 * xdisp.c (check_it): Check string/string_pos consistency.
4731 (init_iterator): Initialize string-related fields properly.
4732
47332004-02-11 Miles Bader <miles@gnu.org>
4734
4735 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4736
47372004-02-10 Miles Bader <miles@gnu.org>
4738
4739 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4740 BLOCK_INPUT can be nested, so it doesn't make much sense.
4741
a64387ee 47422004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4743
4744 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4745 (xbm_read_bitmap_data): Use unsigned char for image data.
4746
92f5fba2
LT
47472004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4748
4749 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4750
8565fb3d
JR
47512004-02-22 Jason Rumney <jasonr@gnu.org>
4752
4753 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4754 correctly over other bitmaps.
4755
a6eeaa81 47562004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4757
4758 * emacs.c (USAGE1): Split into two halves.
4759 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4760 (USAGE3): Rename from USAGE2.
4761 (USAGE4): Rename from USAGE3.
f8125c39 4762
4effffca
EZ
47632004-02-21 Juri Linkov <juri@jurta.org>
4764
4765 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4766 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4767 --file. Fix -f, -l. Sort options. Untabify.
4768 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4769
923c1e6f
LT
47702004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4771
4772 * category.c (Fdefine_category, Fcategory_docstring)
4773 (Fget_unused_category, Fset_category_table)
4774 (Fcategory_set_mnemonics): Doc fixes.
4775
b0e225fd
KS
47762004-02-20 Kim F. Storm <storm@cua.dk>
4777
4778 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4779 The following changes are relative to the 2004-01-21 revision.
4780 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4781 in one call to read_socket_hook. Value is 8.
4782 (read_avail_input): Separate and rework handling of read_socket_hook
4783 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4784 in read_socket_hook case, and repeat if full buffer is read.
4785 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4786 In non-read_socket_hook case, just use a single input_event, and
4787 call kbd_buffer_store_event on the fly for each character.
4788
b15aa9f9
SM
47892004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4790
4791 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4792 Remove unused `gu' alternative.
4793
83c9aa95
AS
47942004-02-19 Andreas Schwab <schwab@suse.de>
4795
4796 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4797 warning.
4798
cc808173
KS
47992004-02-18 Kim F. Storm <storm@cua.dk>
4800
4801 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4802 Fix last change.
4803
ab90a54d
KS
48042004-02-17 Kim F. Storm <storm@cua.dk>
4805
b26f249f
KS
4806 * xdisp.c (fast_find_position): Fix return value of new version;
4807 it was inverted compared to the 21.1 version.
4808 (get_window_cursor_type): Don't look at glyph if NULL.
4809 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4810
ab90a54d
KS
4811 * keyboard.c: Rework previous change; it didn't consider that the
4812 buf array was allocated on the stack.
4813 (prev_read): Remove variable.
4814 (read_avail_input_buf): New static event buffer array.
b9568dfc 4815 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4816 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4817 Use in_read_avail_input to handle re-entrance; when re-entered,
4818 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4819 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4820 is always cleared on entry. To ensure that, we clear (just) the
4821 entries that were used before we return.
4822 (init_keyboard): Initialize read_avail_input_buf here.
4823
b6189c3b 48242004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4825
4826 * cmds.c (Fend_of_line): Doc fix.
4827
7b5368c1
EZ
48282004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4829
4830 * keyboard.c (prev_read): New static variable.
4831 (read_avail_input): Use it to zero out only those slots in buf[]
4832 that were used last time we were called.
4833
a6eeaa81 48342004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4835
4836 * Makefile.in (obj): Move fringe.o from here...
4837 (XOBJ, MAC_OBJ): ...to here.
4838
159c348e
SE
48392004-02-16 Stephen Eglen <stephen@gnu.org>
4840
4841 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4842
d2f14999
SM
48432004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4844
b15aa9f9
SM
4845 * data.c (Fbyteorder):
4846 * fringe.c (Fdefine_fringe_bitmap):
4847 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4848 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4849
8d50508a
JR
48502004-02-16 Jason Rumney <jasonr@gnu.org>
4851
4852 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4853
dd4497dc
ST
48542004-02-15 Steven Tamm <steventamm@mac.com>
4855
4856 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4857 controlling emulation of a three button mouse with option and
4858 command keys.
4859 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4860 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4861
c9159cb3
KS
48622004-02-15 Kim F. Storm <storm@cua.dk>
4863
2cc52658
KS
4864 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4865
c9159cb3
KS
4866 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4867 Perform byte-swapping.
4868
12fde2dc
KS
48692004-02-14 Kim F. Storm <storm@cua.dk>
4870
4871 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4872 bits from char to short to facilitate wider bitmaps.
4873 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4874 member.
4875
4876 * fringe.c (struct fringe_bitmap): Change member bits from char to
4877 short to facilitate 16 bits wide bitmaps. Modify all standard
4878 bitmaps accordingly.
4879 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4880 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4881 (draw_fringe_bitmap): Ditto.
4882 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4883 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4884 handle up to 16 bits wide bitmaps.
4885 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4886 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4887
4888 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4889 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4890 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4891
4892 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4893 so it is no longer necessary to expand them here.
4894
4895 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4896
9d7271e8
KS
48972004-02-12 Kim F. Storm <storm@cua.dk>
4898
4899 * window.c (Fwindow_fringes): Doc fix.
4900
706c1e4f
JD
49012004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4902
4903 * xselect.c (x_get_foreign_selection): Add new optional parameter
4904 time_stamp.
4905 (Fx_get_selection_internal): Ditto, pass time_stamp to
4906 x_get_foreign_selection.
4907
4908 * data.c (Fbyteorder): New function.
4909
c2d12b5d
JD
49102004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4911
4912 * atimer.c: Move include stdio.h to same place as in other files.
4913
4914 * region-cache.c: Ditto.
4915
4916 * sysdep.c: Ditto.
4917
4918 * xfaces.c: Ditto.
4919
4c1947b9
SS
49202004-02-09 Sam Steingold <sds@gnu.org>
4921
89458937 4922 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4923
82722af3
KS
49242004-02-09 Kim F. Storm <storm@cua.dk>
4925
4926 * fringe.c: New file. Move original fringe related declarations
4927 and code from dispextern.h and xdisp.c here.
4928 Rework code to support user defined fringe bitmaps, redefining
4929 standard bitmaps, ability to overlay user defined bitmap with
4930 overlay arrow bitmap, and add faces to bitmaps.
4931 (Voverflow_newline_into_fringe): Declare here.
4932 (enum fringe_bitmap_align): New enum.
4933 (..._bits): All bitmaps are now defined without bitswapping; that
4934 is now done in init_fringe_once (if necessary).
4935 (standard_bitmaps): New array with specifications for the
4936 standard fringe bitmaps.
4937 (fringe_faces): New array.
4938 (valid_fringe_bitmap_id_p): New function.
4939 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4940 (draw_fringe_bitmap): New function which draws fringe bitmap,
4941 possibly overlaying bitmap with cursor in right fringe or the
4942 overlay arrow in the left fringe.
4943 (update_window_fringes): Do not handle overlay arrow here.
4944 Compare and copy fringe bitmap faces.
4945 (init_fringe_bitmap): New function.
4946 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4947 define and destroy user defined fringe bitmaps.
4948 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4949 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4950 (syms_of_fringe): New function. Defsubr new DEFUNs.
4951 DEFVAR_LISP Voverflow_newline_into_fringe.
4952 (init_fringe_once, init_fringe): New functions.
4953 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4954
82722af3
KS
4955 * Makefile.in (obj): Add fringe.o.
4956 (fringe.o): New dependencies.
4957
4958 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4959 bits allocated to hold a fringe number. Increase number of bits
4960 from 4 to 8 to allow user defined fringe bitmaps.
4961 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4962 left_user_fringe_face_id, right_user_fringe_bitmap,
4963 right_user_fringe_face_id.
4964 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4965 Move to new file fringe.c.
4966 (MAX_FRINGE_BITMAPS): Define here.
4967 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4968 and overlay_p. Change member which to int.
4969 (struct redisplay_interface): New members define_fringe_bitmap
4970 and destroy_fringe_bitmap.
4971 (valid_fringe_bitmap_id_p): Add prototype.
4972 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4973
4974 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4975 arrows.
4976 (update_frame): Do flush_display if force_flush_display_p to
4977 ensure display (specifically fringes) are updated in a timely
4978 manner when resizing the frame by dragging the mouse.
4979 (update_window_line): Update row if overlay arrow changed.
4980 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4981 or overlay arrow changed.
4982
4983 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4984 syms_of_fringe, and init_fringe.
4985
4986 * frame.h (struct frame): New member force_flush_display_p.
4987
4988 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4989 Add prototypes.
4990
a3993cc8 4991 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4992 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4993 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4994 Use cursor color for displaying cursor in fringe.
82722af3
KS
4995 (x_redisplay_interface): Add null handlers for
4996 define_fringe_bitmap and destroy_fringe_bitmap functions.
4997
4998 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4999 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5000 for displaying cursor in fringe.
5001 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5002 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5003 (w32_redisplay_interface): Add them to redisplay_interface.
5004 (w32_term_init): Call w32_init_fringe instead of explicitly
5005 defining fringe bitmaps in fringe_bmp array.
5006 (x_delete_display): Call w32_reset_fringes instead of explicitly
5007 destroying fringe bitmaps in fringe_bmp array.
5008
5009 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5010 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5011 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5012 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5013 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5014 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5015 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5016 Move fringe handling vars and code to new file fringe.c.
5017 (handle_display_prop): Handle left-fringe and right-fringe
5018 display properties; store user fringe bitmaps in iterator.
5019 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5020 (clear_garbaged_frames): Set force_flush_display_p if resized.
5021 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5022 (display_line): Handle cursor in fringe at eob.
5023 (display_line): Set row user fringe bitmaps from iterator.
5024
5025 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5026 Use cursor color for displaying cursor in fringe.
5027 (x_redisplay_interface): Add null handlers for
5028 define_fringe_bitmap and destroy_fringe_bitmap functions.
5029
030400eb
JD
50302004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5031
5032 * macfns.c (Fx_change_window_property): Make doc string and
5033 parameters same as for X version.
5034
5035 * w32fns.c (Fx_change_window_property): Ditto.
5036
3af55251
KS
50372004-02-07 Kim F. Storm <storm@cua.dk>
5038
ec110e9e
KS
5039 * xdisp.c (hscroll_window_tree): Position cursor near to right
5040 margin in hscrolled window when jumping to end of line (rather
5041 than centering cursor).
5042
3af55251
KS
5043 * process.c (wait_reading_process_input): Don't do adaptive read
5044 buffering if waiting for a specific process.
5045
b0c138ce
LT
50462004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5047
5048 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5049 (Fread_minibuffer, Feval_minibuffer)
5050 (Fread_string, Fread_no_blanks_input)
5051 (Fcompleting_read): Doc fixes.
5052 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5053 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5054 (read_minibuf): Fix initial comment.
5055 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5056 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5057 checking completion-regexp-list.
5058 (Fdisplay_completion_list): Make it handle arguments that are
5059 symbols. Doc fix.
5060
9676f5ad 50612004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5062
9676f5ad 5063 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5064
9676f5ad
JD
5065 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5066 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5067 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5068 format. Remove unused variable cons.
5b698285
JD
5069
5070 * xselect.c: Include stdio,h.
5071
fc1d15f6
KH
50722004-02-05 Kenichi Handa <handa@m17n.org>
5073
ebaff4af
KH
5074 * fns.c (Fset_char_table_range): Fix previous change.
5075
fc1d15f6
KH
5076 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5077
9676f5ad
JD
50782004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5079
5080 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5081
da75761f
SM
50822004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5083
5084 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5085 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5086
13c5d120
KH
50872004-02-04 Kenichi Handa <handa@m17n.org>
5088
5089 * fns.c (Fset_char_table_range): Handle charsets ascii,
5090 eight-bit-control, and eight-bit-graphic correctly.
5091
2883d842
JR
50922004-02-03 Jason Rumney <jasonr@gnu.org>
5093
5094 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5095
5096 * w32fns.c (x_to_w32_font): Likewise.
5097
69eff41f
JD
50982004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5099
5100 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5101 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5102
5103 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5104 ClientMessages.
5105
5106 * xselect.c: Include termhooks.h and X11/Xproto.h
5107 (x_check_property_data, x_fill_property_data)
5108 (x_property_data_to_lisp, mouse_position_for_drop)
5109 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5110 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5111 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5112
da75761f 5113 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5114 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5115 OUTER_P.
5116 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5117 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5118 if vector_ret_p is true.
5119 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5120
a6eeaa81 51212004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5122
5123 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5124 basename of FILE relative to it, not FILE itself.
5125
09721b31
KH
51262004-02-02 Kenichi Handa <handa@m17n.org>
5127
5128 * coding.c (coding_restore_composition): Check invalid
5129 composition data more rigidly.
5130
eb996101
LT
51312004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5132
5133 * fileio.c (Fread_file_name_internal): Correctly handle the case
5134 where insert-default-directory is nil.
5135 (Fread_file_name): Always return an empty string if the user exits
5136 with an empty minibuffer. Adapt the docstring accordingly.
5137 (syms_of_fileio): Adapt the docstring of insert-default-directory
5138 to the change in Fread_file_name.
5139
a6eeaa81 51402004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5141
5142 * alloca.c [!alloca]: Fix the prototype for xfree.
5143
13f52ed8
KH
51442004-01-29 Kenichi Handa <handa@m17n.org>
5145
5146 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5147 (string_byte_to_char): Likewise.
5148
d57625a0
JR
51492004-01-28 Peter Runestig <peter@runestig.com>
5150
5151 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5152
a64387ee 51532004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5154
5155 * unexmacosx.c (unexec_copy): Do not copy more than was
5156 requested to prevent overwriting during unexec.
5157
eb37b8fd
JD
51582004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5159
ce38070a
JD
5160 * process.c (sigchld_handler): Add comment about not calling malloc.
5161
eb37b8fd
JD
5162 * process.h: Add extern to synch_process_termsig.
5163
a64387ee 51642004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5165
da75761f
SM
5166 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5167 Move setting of scroll bars from make_mac_frame to
5168 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5169
d62a265d
RS
51702004-01-26 Richard M. Stallman <rms@gnu.org>
5171
5172 * search.c (Freplace_match): Handle nonexistent
5173 back-references properly.
5174
51752004-01-03 Richard M. Stallman <rms@gnu.org>
5176
5177 * window.c (decode_any_window): New function.
5178 (Fwindow_height, Fwindow_width, Fwindow_edges)
5179 (Fwindow_pixel_edges, Fwindow_inside_edges)
5180 (Fwindow_inside_pixel_edges): Use decode_any_window.
5181
ff236419
JD
51822004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5183
5184 * process.h: synch_process_termsig new variable.
5185
5186 * callproc.c: Define synch_process_termsig.
5187 (Fcall_process): Initiate synch_process_termsig to zero and
5188 check if non-zero and get signal name after subprocess has ended.
5189
5190 * process.c (sigchld_handler): Set synch_process_termsig
5191 if terminated by a signal. synch_process_death setting removed.
5192
5193 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5194
41b867ea
AS
51952004-01-26 Andreas Schwab <schwab@suse.de>
5196
5197 * print.c (print_preprocess): Declare size as EMACS_INT to not
5198 lose bits.
5199 (print_object): Likewise.
5200 * alloc.c (Fpurecopy): Likewise.
5201
a08084ff
LT
52022004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5203
5204 * window.c (Fwindow_minibuffer_p): Doc fix.
5205
b19ac475
JY
52062004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5207
5208 * editfns.c (Fformat): Make both passes accept the same set of flags.
5209
fe905025
KH
52102004-01-23 Kenichi Handa <handa@m17n.org>
5211
5212 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5213 one, set buffer to OBJECT temporarily.
5214
438fc6c0
SM
52152004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5216
455316e2
SM
5217 * keyboard.c (kbd_buffer_gcpro): Remove.
5218 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5219 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5220 Don't initialize and/or maintain the variable any more. It was made
5221 redundant by my commit of 2003-06-15.
5222
438fc6c0
SM
5223 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5224
5335a4ee
JD
52252004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5226
5227 * lisp.h: Add undef DECL_ALIGN.
5228
dcdaeebc
SM
52292004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5230
5231 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5232 Check interrupt_input_pending explicitly.
5233
5234 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5235
5236 * keyboard.c (handle_async_input): New fun,
5237 extracted from input_available_signal.
5238 (input_available_signal, reinvoke_input_signal): Use it.
5239
9076a823
SM
52402004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5241
d7107586
SM
5242 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5243
5244 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5245 manipulation macros for when tags are in the lower bits.
5246 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5247 (DECL_ALIGN): New macro.
5248 (DEFUN): Use it.
5249
5250 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5251
5252 * s/darwin.h (__attribute__): Remove outdated workaround.
5253
5254 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5255
5256 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5257 Don't check range of malloc address.
5258 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5259
9076a823
SM
5260 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5261
5262 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5263
ba029065
KH
52642004-01-19 Kenichi Handa <handa@m17n.org>
5265
5266 * fontset.c (fontset_font_pattern): Fix previous change.
5267
7af0e8d7
MB
52682004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5269
5270 * xdisp.c (Voverflow_newline_into_fringe)
5271 (move_it_in_display_line_to, redisplay_internal)
5272 (update_window_fringes, redisplay_window, display_line, window):
5273 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5274 that it compiles without a window-system.
5275 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5276
77a9cf69
KS
52772004-01-16 Kim F. Storm <storm@cua.dk>
5278
5279 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5280
a64387ee 5281 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5282 buffer_local_flags for indicate_buffer_boundaries.
5283 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5284 default- variable for it.
5285
5286 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5287 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5288 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5289 overflowing newlines into right fringe.
5290 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5291 and indicate_bottom_line_p for buffer boundaries and scrolling.
5292 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5293 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5294 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5295 and HOLLOW_SQUARE_BITMAP.
5296 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5297 Add prototypes.
5298
5299 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5300 instead of related indicator fields.
5301 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5302 (direct_output_for_insert): Handle exact width lines like
5303 contined lines. Call update_window_fringes.
5304 (update_window): Call update_window_fringes.
5305 (scrolling_window): Don't skip desired rows with changed bitmaps.
5306 Check if fringe bitmaps changes when assigning scrolled rows.
5307
5308 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5309 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5310 (move_it_in_display_line_to): Overflow newline into fringe for
5311 rows that are exactly as wide as the window.
5312 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5313 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5314 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5315 (fringe_bitmaps): Add new bitmaps.
5316 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5317 Select proper bitmap for cursor in fringe when appropriate.
5318 Handle alignment of bitmap to top or bottom of row.
5319 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5320 done by update_window_fringes.
5321 (update_window_fringes, draw_window_fringes): New functions.
5322 (redisplay_internal): Call update_window_fringes in case only
5323 cursor row is updated.
5324 (redisplay_window): Call update_window_fringes.
5325 Explicitly call draw_window_fringes if redisplay was done using
5326 the current matrix or the overlay arrow is in the window.
5327 (try_window_reusing_current_matrix): Mark scrolled rows for
5328 fringe update (to update buffer-boundaries / scrolling icons).
5329 (find_last_unchanged_at_beg_row): Handle exact width lines line
5330 continued lines.
5331 (display_line): Overflow newline into fringe for rows that are
5332 exactly as wide as the window. Don't append space for newline
d7107586 5333 in this case.
77a9cf69
KS
5334 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5335 in fringe as if it had been overwritten.
5336 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5337 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5338 void-text-area-pointer as user options.
5339 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5340
77a9cf69
KS
5341 * xterm.c (x_update_window_end): Call draw_window_fringes.
5342 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5343 in row instead of actually drawing fringe bitmaps.
5344 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5345 (x_draw_window_cursor): Draw cursor in fringe.
5346
5347 * w32term.c (x_update_window_end): Call draw_window_fringes.
5348 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5349 in row instead of actually drawing fringe bitmaps.
5350 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5351 (w32_draw_window_cursor): Draw cursor in fringe.
5352
5353 * macterm.c (x_update_window_end): Call draw_window_fringes.
5354 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5355 in row instead of actually drawing fringe bitmaps.
5356 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5357 (mac_draw_window_cursor): Draw cursor in fringe.
5358
a633a954
JD
53592004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5360
5361 * xterm.c (handle_one_xevent): Don't handle characters that are part
5362 of an old style (XLookupString) compose sequence.
5363
80460525
KH
53642004-01-15 Kenichi Handa <handa@m17n.org>
5365
5366 * search.c (Freplace_match): Use make_multibyte_string or
5367 make_unibyte_string according to the buffer multibyteness.
5368
7fc34f85
SM
53692004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5370
5371 * alloc.c (struct interval_block, struct string_block)
5372 (struct symbol_block, struct marker_block, live_string_p)
5373 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5374 Better preserve alignment for objects in blocks.
5375 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5376
5377 * lread.c (defvar_per_buffer): Remove dead declaration.
5378
5379 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5380 space size.
5381
66070bd1
JD
53822004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5383
5384 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5385 if a key press should pop down. Only pop down if a key is pressed
5386 outside the menu/dialog.
5387 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5388 popup_get_selection.
5389 (create_and_show_dialog): Pass 1 for down_on_keypress to
5390 popup_get_selection.
5391
de7515d6
JD
53922004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5393
5394 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5395 BLOCK/UNBLOCK_INPUT.
5396
160b1b50
JD
53972004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5398
5399 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5400 specified.
5401
3a9f36e6
KH
54022004-01-08 Kenichi Handa <handa@m17n.org>
5403
5404 * editfns.c (Fformat): Fix '&' to '&&'.
5405
3803eb32
AS
54062004-01-08 Andreas Schwab <schwab@suse.de>
5407
5408 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5409 size if PSEUDOVECTOR_FLAG is set.
5410
9da88f37
KH
54112004-01-07 Kenichi Handa <handa@m17n.org>
5412
74ac5074
KH
5413 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5414
9da88f37
KH
5415 * fontset.c (fontset_ref_via_base): Fix previous change.
5416
05faee07
KS
54172004-01-07 Kim F. Storm <storm@cua.dk>
5418
5419 * process.c (read_process_output): Only activate adaptive
5420 buffering if we read less than 256 bytes at a time.
5421
634910c8
KS
54222004-01-06 Kim F. Storm <storm@cua.dk>
5423
5424 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5425 object and image object. Return glyph width and height.
5426 (mode_line_string, marginal_area_string): Ditto.
5427
5428 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5429 (marginal_area_string): Fix prototypes.
5430
5431 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5432 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5433 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5434
5435 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5436 buffer_posn_from_coords, and marginal_area_string functions to
5437 include both string object and image object in the lispy position.
5438 Also add actual glyph width and height to position.
5439 (read_key_sequence): Use real buffer position from mouse
5440 event to find keymap property even when click is in marginal area.
5441
5442 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5443 mode_line_string and marginal_area_string functions to handle
5444 both string object and image object properties.
d7107586 5445
57951c2e
AS
54462004-01-06 Andreas Schwab <schwab@suse.de>
5447
5448 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5449 character.
5450
181e6a61
AS
54512004-01-02 Andreas Schwab <schwab@suse.de>
5452
d7107586
SM
5453 * macterm.c (emacs_options, x_initialized, same_x_server):
5454 Remove unused (and duplicated) definitions.
181e6a61 5455
31e0fbdd
KS
54562004-01-02 Kim F. Storm <storm@cua.dk>
5457
5458 * process.h (struct Lisp_Process): New members for adaptive read
5459 buffering: adaptive_read_buffering, read_output_delay, and
5460 read_output_skip.
5461
5462 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5463 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5464 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5465 (process_output_delay_count, process_output_skip): New vars.
5466 (Vprocess_adaptive_read_buffering): New variable.
5467 (make_process): Initialize adaptive read buffering members.
5468 (Fstart_process): Set adaptive_read_buffering member.
5469 (deactivate_process): Cleanup adaptive read buffering.
5470 (wait_reading_process_input): Temporarily omit delayed
5471 subprocesses from the set of file descriptors to read from;
5472 adjust the select timeout if we skipped any subprocesses.
5473 (read_process_output): Increase adaptive read buffering delay if
5474 we read less than a full buffer; reduce delay when we read a
5475 full buffer.
5476 (send_process): Simplify using local Lisp_Process var.
5477 Reset adaptive read buffering delay after write.
5478 (init_process): Initialize process_output_delay_count and
5479 process_output_skip.
5480 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5481
68c6a789
JR
54822004-01-01 Jason Rumney <jasonr@gnu.org>
5483
d7107586 5484 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5485
3f70fe82
LT
54862003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5487
5488 * print.c (Ferror_message_string): Add hyperlink in the docstring
5489 to the definition of `signal' in the Elisp manual.
5490 * eval.c (Fsignal): Ditto.
5491
b6189c3b 54922003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5493
5494 * fns.c (internal_equal): Return t for two NaN arguments.
5495
7abd90ea
RS
54962003-12-29 Richard M. Stallman <rms@gnu.org>
5497
5498 * data.c (store_symval_forwarding): Handle setting
5499 default-fill-column, etc., by changing the value in
5500 buffers that use the default.
5501
5502 * minibuf.c (Fset_minibuffer_window): Doc fix.
5503
5504 * fileio.c (choose_write_coding_system): Ignore auto_saving
5505 if using the visited file for auto saves.
5506 (Fwrite_region): Don't update SAVE_MODIFF
5507 if auto-saving in visited file.
5508
3e7cfcdc
KH
55092003-12-29 Kenichi Handa <handa@m17n.org>
5510
5511 * dispextern.h (face_font_available_p): Extern it.
5512
5513 * fontset.c (Voverriding_fontspec_alist): New variable.
5514 (lookup_overriding_fontspec): New function.
d7107586 5515 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5516 (fontset_font_pattern): Likewise.
5517 (regulalize_fontname): New function.
5518 (Fset_fontset_font): Call regulalize_fontname.
5519 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5520 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5521 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5522
5523 * xfaces.c (face_font_available_p): New function.
5524
7abd90ea
RS
55252003-12-28 Richard M. Stallman <rms@gnu.org>
5526
5527 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5528 or if its name is nil.
5529
5530 * buffer.c (Fkill_buffer): Don't delete auto-save file
5531 if it's the same as the visited file.
5532
de1d1a40
LT
55332003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5534
5535 * coding.c (Fcheck_coding_system): Doc fix.
5536
204fb75e
KS
55372003-12-28 Kim F. Storm <storm@cua.dk>
5538
5539 * Makefile.in (eval.o): Depend on dispextern.h.
5540
5541 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5542 image glyph using image's ascent.
5543 (mode_line_string): Return image glyph as object clicked on.
5544 Adjust y0 for image glyph using image's ascent.
5545
5546 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5547 (struct glyph): New members, ascent and descent. Used to save
5548 this glyph's ascent and descent, instead of having.
5549 (struct glyph): Declare member face_id using FACE_ID_BITS.
5550 (find_hot_spot): Add prototype.
5551
5552 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5553 (QCmap): Declare extern.
5554 (make_lispy_position): When position is inside image hot-spot,
5555 use hot-spot element's id as posn element.
5556
5557 * lisp.h (IMAGEP): New macro to test for image object type.
5558 (Qimage): Declare extern.
5559
5560 * macfns.c (Qimage): Remove extern (now in lisp.h).
5561 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5562
5563 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5564
5565 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5566 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5567
5568 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5569
5570 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5571
5572 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5573 pointer types.
5574 (Qrelative_width, Qalign_to): Remove unused variables.
5575 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5576 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5577 image maps.
d7107586 5578 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5579 new dx and dy args.
5580 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5581 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5582 than row's ascent and height, to get sensible height on tall rows.
5583 (build_desired_tool_bar_string): Remove Qimage extern.
5584 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5585 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5586 image glyph is alone on the last line.
5587 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5588 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5589 (on_hot_spot_p): New function to check if position is inside an
d7107586 5590 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5591 (find_hot_spot): New function to search for image hot-spot.
5592 (Flookup_image_map): New defun to search for image hot-spot.
5593 (define_frame_cursor1): New aux function to determine frame pointer.
5594 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5595 Handle `pointer' text property and :pointer image property to
5596 control frame pointer shape. Detect image hot-spots for pointer
5597 and help_echo properties. Use define_frame_cursor1.
5598 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5599 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5600 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5601
5602 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5603
5604 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5605 (Qimage): Remove extern (now in lisp.h).
5606 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5607
5608 * xmenu.c (show_help_event): Remove unused code.
5609
5610 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5611 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5612 row's ascent and descent, to get a sensible height on tall rows.
5613
fc052137
LT
56142003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5615
5616 * minibuf.c (Fcompleting_read): Undo previous change.
5617
a64387ee 56182003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5619
5620 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5621 Arguments GCPRO'ed in call to file name handler.
5622
56ffd194
TTN
56232003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5624
5625 * termcap.c (tgetst1): Scan for "%pN"; if all
5626 N are continuous in [1,9], remove all "%pN".
5627
5202d23d
JD
56282003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5629
f26fab36
JD
5630 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5631
5202d23d
JD
5632 * xfaces.c (lface_fully_specified_p): Take into account that
5633 MAC OS always have unspecified stipple.
5634
8babaa59
TTN
56352003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5636
5637 * tparam.c (tparam1): Add handling for `%pN', which
5638 means use param N for the next substitution.
5639
2d176448
TTN
56402003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5641
5642 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5643 In case `frame' is nil, consult the selected frame.
5644 (Fcolor_supported_p): Likewise.
5645
adb0708c
LT
56462003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5647
000eeb15
LT
5648 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5649 Doc fixes.
0dc72b11
LT
5650
5651 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5652 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5653 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5654 Doc fix.
5655 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5656 read_minibuf.
5657 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5658 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5659
2e4d132b
KH
56602003-12-03 Kenichi Handa <handa@m17n.org>
5661
5662 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5663 encoding sequence.
5664
3999c705
KH
56652003-12-01 Kenichi Handa <handa@m17n.org>
5666
5667 * composite.c (syms_of_composite): Don't make the compostion hash
5668 table week.
5669
d344ecbb
LT
56702003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5671
5672 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5673 * textprop.c (Fget_char_property_and_overlay): New function.
5674 (syms_of_textprop): Defsubr it.
5675
03d6484e
JD
56762003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5677
019b1f0e
JD
5678 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5679 to compile on terminal configuration.
5680
03d6484e
JD
5681 * fileio.c (Fread_file_name): Check use_file_dialog also before
5682 calling Fx_file_dialog.
5683
5684 * fns.c: use_file_dialog: New variable.
5685 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5686
442d3fd0
KS
56872003-11-29 Kim F. Storm <storm@cua.dk>
5688
5689 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5690 (syms_of_msdos): Don't intern and staticpro them.
5691
0f6a07a8
KS
56922003-11-27 Kim F. Storm <storm@cua.dk>
5693
5694 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5695 coordinates relative to glyph at posn. If glyph is an image,
5696 return that as object at posn. Callers changed.
5697 (mode_line_string, marginal_area_string): Calculate and return
5698 pixel coordinates relative to glyph. Callers changed.
5699
5700 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5701 (marginal_area_string): Fix prototypes.
5702 (window_box_left_offset, window_box_right_offset): Add prototypes.
5703
5704 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5705 Remove prototypes.
5706
5707 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5708
5709 * keyboard.c (make_lispy_position): Add x and y coordinates
5710 relative to the current glyph as 7th element of position.
5711 If glyph is an image, return it in the object element.
5712 (read_key_sequence): Skip checks for keymap property in cases
5713 where POSN_STRING is not a string (e.g. an image).
5714
5715 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5716 (Vshow_text_cursor_in_void): New variable.
5717 (glyph_to_pixel_coords): Don't use negative hpos.
5718 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5719 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5720 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5721 (calc_pixel_width_or_height): New aux function, implementing
5722 pixel based artihmetic for glyph widths and heights.
5723 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5724 :width, :height, :align-to, and :ascent, thus allowing these to
5725 be specified in pixels as well as multiples of characters.
5726 Don't produce stretch glyphs with zero width or height.
5727 (get_specified_cursor_type): Declare static.
5728 (get_window_cursor_type): Declare static. Add glyph arg to be
5729 able to know when cursor is on an image; always substitute
5730 hollow-box cursor for filled-box cursor on images, to avoid
5731 negative images and flicker when blinking the cursor.
5732 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5733 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5734 than vertical scroll-bar cursor in display margins.
5735 (note_mouse_highlight): Use non-text cursor rather than text
5736 cursor in fringes and over images in the text area.
5737 Use non-text cursor when mouse pointer is outside editable text,
5738 i.e. in the void after end-of-line or end-of-buffer; this was
5739 already done for W32, but is now standard for all systems --
5740 user can toggle show-text-cursor-in-void to get old behaviour.
5741 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5742 Vdisplay_pixels_per_inch.
5743
00498bfc
AS
57442003-11-25 Andreas Schwab <schwab@suse.de>
5745
5746 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5747 EMACS_INT to not lose bits.
5748 (Ffillarray): Don't set bits beyond the size of a bool vector.
5749
edaa824d
KS
57502003-11-25 Kim F. Storm <storm@cua.dk>
5751
5752 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5753 define this defun on systems that cannot use stderr as lvalue.
5754
74d6f539
GM
57552003-11-24 Gerd Moellmann <gerd@gnu.org>
5756
5757 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5758 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5759 ld's default is incompatible with unexec.
5760
6a1ff3ba
KS
57612003-11-23 Kim F. Storm <storm@cua.dk>
5762
63dc7c6b
KS
5763 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5764 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5765 (Fforce_window_update): New defun.
5766 (syms_of_window): Defsubr it.
5767 (Fset_window_margins, Fset_window_fringes): Doc fix.
5768
6a1ff3ba
KS
5769 * print.c (Fredirect_debugging_output): New defun.
5770 (syms_of_print): Defsubr it.
5771
aef109b7
LT
57722003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5773
5774 * fns.c (Fset_char_table_parent): Doc fix.
5775
6a1ff3ba 57762003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5777
5778 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5779 for glyph clicked on, rather than (unused) pixel positions.
5780 (mode_line_string, marginal_area_string): Change X and Y args to
5781 pointers for returning actual row/column for glyph clicked on.
5782 Simplify and optimize loops.
5783
aef109b7
LT
5784 * dispextern.h (mode_line_string, marginal_area_string):
5785 Update prototypes.
63ccbe21
KS
5786
5787 * keyboard.c (make_lispy_position): New function for generating
5788 mouse click positions from frame and pixel coordinates.
5789 Enhanced to return buffer position and actual row/column for
5790 events outside the text area using updated mode_line_string and
5791 marginal_area_string functions.
5792 Return left-fringe and right-fringe clicks as such, rather than
5793 clicks in text area.
5794 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5795 pixel_to_glyph_coords, as we never use the results.
5796 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5797 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5798 Eliminate unused code in WHEEL_EVENT handling.
5799 (make_lispy_movement): Use make_lispy_position.
5800
5801 * window.c (coordinates_in_window): Remove redundant tests.
5802 Fix returned X pixel value for left-margin.
5803
5804 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5805 mode_line_string and marginal_area_string parameters.
5806
a64387ee 58072003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5808
d7107586
SM
5809 * w32.c (struct the_group, getgrgid): Add.
5810 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5811
3dbf3426
LT
58122003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5813
5814 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5815
cae8ddbb 58162003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5817
d7107586
SM
5818 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5819 include in call to file name handler. Optionally translate numeric
5820 UID and GID to strings. Update docstring.
5821 (directory_files_internal): Add parameter ID-FORMAT.
5822 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5823 include in call to file name handler and call to
5824 directory_files_internal. Update Docstring.
5825 (Fdirectory_files): Add dummy parameter in call to
5826 directory_files_internal.
5827 * lisp.h (Qinteger): Add.
5828 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5829 (Ffile_attributes): Add parameter.
5830 * data.c (Qinteger): Export.
cae8ddbb 5831
2550b848
LT
58322003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5833
3dbf3426 5834 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5835
88380018
KS
58362003-11-19 Kim F. Storm <storm@cua.dk>
5837
5838 * xdisp.c (init_iterator): Initialize it->start to position
5839 before reseating (in case start position is invisible).
5840 (init_to_row_start): Set it->start to row-start.
5841 (redisplay_window): Accept optional_new_start if start position
5842 is invisible (in which case IT_CHARPOS overshoots PT).
5843 (display_line): Setup row->start from it->start (rather than
5844 it->current which is wrong if first char on line is invisible).
5845 When done, reseat it->start to it->current (= start of next row).
5846 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5847 is only partially visible.
5848
5849 * dispextern.h (struct it): New member start.
5850
854c1a59
SM
58512003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5852
455316e2
SM
5853 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5854 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5855 of block_index outside of the macro call.
5856 (Fgarbage_collect): Remove null code.
5857
5858 * m/amdx86-64.h: Don't redefine XPNTR.
5859
854c1a59
SM
5860 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5861 of VALMASK.
5862
5863 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5864 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5865 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5866
5867 * lisp.h (VALMASK): Only define for non-union type.
5868 (MARKBIT): Remove.
5869 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5870 (XTYPE): Define unconditionally.
5871 (XSETTYPE): Remove one more remnant.
5872 (EQ): Define differently for the union and non-union cases.
5873 (INTMASK): New bit mask.
5874 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5875 (GC_EQ): Delegate to EQ.
5876
5877 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5878
a0c6ef2d
JD
58792003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5880
5881 * xterm.c (x_window_to_scroll_bar): Move check of display to
5882 where window_id is compared.
5883
859492c4
KS
58842003-11-17 Kim F. Storm <storm@cua.dk>
5885
5886 * dispextern.h (struct it): New member first_vpos.
5887
5888 * xdisp.c (start_display): Set it->first_vpos.
5889 (try_window_id): Use first_vpos to start display in first _text_
5890 line if no reusable lines at start of window with header line.
5891
810f2256
JD
58922003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5893
7c402969 5894 * w32fns.c (XPutPixel):
854c1a59
SM
5895 * w32bdf.c (w32_init_bdf_font):
5896 * sunfns.c (sel_read):
5897 * process.c (Fmake_network_process):
5898 * frame.c (store_frame_param):
5899 * fontset.c (Fset_fontset_font):
5900 * emacs.c (shut_down_emacs):
a64387ee 5901 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5902
a32e9bfd
JD
5903 * config.in: Regenerate.
5904
810f2256
JD
5905 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5906 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5907 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5908 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5909 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5910
5911 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5912
5913 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5914 (XTmouse_position, handle_one_xevent): Pass Display* to
5915 x_window_to_scroll_bar.
5916 (x_window_to_scroll_bar): Take a Display* argument.
5917 Check that display for frame is equal to Display* argument.
854c1a59 5918 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5919 x_display_info_for_display instead. Use Display in xev instead
5920 of GDK_DISPLAY.
5921 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5922 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5923 (x_connection_closed): Call xg_display_close for GTK.
5924 (x_term_init): Call xg_display_open for additional displays.
5925 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5926 for GTK.
5927
5928 * xmenu.c (single_menu_item, mouse_position_for_popup)
5929 (x_activate_menubar): Formatting adjustments.
5930
5931 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5932 adjustments.
5933
5934 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5935 (xg_display_close, xg_create_default_cursor)
5936 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5937 handling.
854c1a59
SM
5938 (xg_left_ptr_cursor): Remove.
5939 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5940 cursor here.
5941 (xg_win_to_widget): Take Display* argument, call
5942 gdk_xid_table_lookup_for_display.
5943 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5944 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5945 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5946 in FRAME_X_DISPLAY_INFO.
5947 (xg_get_scroll_id_for_window): Take Display* argument.
5948 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5949 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5950
78819ebb
KS
5951 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5952 Display* argument.
5953 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5954
0b03cc78
JD
59552003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5956
5957 * xterm.c (x_detect_focus_change): Do not change focus frame for
5958 Enter/LeaveNotify if the current focus frame has explicit focus.
5959
77e688fa
KS
59602003-11-14 Kim F. Storm <storm@cua.dk>
5961
5962 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5963 is active and first glyph is only partially visible.
854c1a59 5964
dd429b03
KH
59652003-11-13 Kenichi Handa <handa@m17n.org>
5966
5967 * xdisp.c (select_frame_for_redisplay): New function.
5968 (redisplay_internal): Record also selected_frame for
5969 unwind_redisplay. Call select_frame_for_redisplay before
5970 redrawing each frame.
5971 (unwind_redisplay): Argument changed to a cons.
5972
6d9266f4
LT
59732003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5974
5975 * fns.c (Fstring_to_multibyte): Doc fix.
5976
80060eb3
KH
59772003-11-11 Kenichi Handa <handa@m17n.org>
5978
5979 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5980
74305183
JD
59812003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5982
5983 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5984 program specified positions.
5985
cfda993e
JD
59862003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5987
5988 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5989
df211069
KH
59902003-11-08 Kenichi Handa <handa@m17n.org>
5991
5992 * Makefile.in (lisp): Add kannada.el.
5993 (shortlisp): Likewise.
5994
4307d534
KH
59952003-11-07 Kenichi Handa <handa@m17n.org>
5996
854c1a59
SM
5997 * coding.c (coding_allocate_composition_data):
5998 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5999 (coding_restore_composition): Detect invalid composition data.
6000 Give Fstring and Fvector a Lispy integer, not C int.
6001
854c1a59
SM
60022003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6003
6004 * floatfns.c (Flogb): Don't use VALMASK.
6005
6006 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6007 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6008
6009 * lisp.h (XINT): Move the cast to clarify what is going on.
6010 (GCTYPEMASK, XSETTYPE): Remove.
6011 (XGCTYPE): Make it an alias of XTYPE.
6012
d04103a1
JD
60132003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6014
6015 * xterm.c (x_term_init): Fix formatting.
6016
da18b5ac
JD
60172003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6018
78819ebb
KS
6019 * gtkutil.h (xg_have_tear_offs): Declare.
6020 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6021
6022 * gtkutil.c: Remove variable xg_did_tearoff.
6023 (xg_have_tear_offs): New function.
6024 (tearoff_remove): Just decrease xg_detached_menus.
6025 (tearoff_activate): Increase xg_detached_menus and call
6026 tearoff_remove when tearoff is removed.
854c1a59 6027 (xg_keep_popup): Remove function.
da18b5ac
JD
6028 (create_menus): Give add_tearoff_p as argument to recursive
6029 call to create_menus.
6030 (xg_create_widget): Use variables instead of multiple
6031 strcmp. Tell create_menus to create tear off only for
6032 menu bar menus.
6033 (xg_update_menubar): Change title for a detached menu also.
6034 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6035 of deep_p.
6036 (xg_initialize): Initialize xg_detached_menus, remove
6037 initialization of xg_did_tearoff.
6038
6039 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6040 xg_have_tear_offs returns non-zero.
6041 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6042 call to xg_keep_popup.
6043
64d4923e
AC
60442003-11-01 Andrew Choi <akochoi@shaw.ca>
6045
6046 * macterm.c (XTread_socket): Handle menubar selection and grow
6047 window only for mouseDown events.
854c1a59 6048
6cc8bc07
JD
60492003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6050
6051 * xterm.c (x_term_init): For GTK part, increase x_initialized
6052 to check for more than one display. Use error instead of return 0.
6053
043131c4
AC
60542003-10-31 Andrew Choi <akochoi@shaw.ca>
6055
854c1a59 6056 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6057 (copy_dysymtab): Call it.
6058
bdda99a1
LT
60592003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6060
6061 * eval.c (Fdefvaralias): Doc fix.
6062
800f42ff 60632003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6064
6065 * data.c (Fsetplist): Doc fix.
6066
ef35b389
LK
60672003-10-14 Lute Kamstra <lute@gnu.org>
6068
6069 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6070
ef35b389 60712003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6072
07107abc
KS
6073 * window.c (Fset_window_margins): Simplify arg checking.
6074
f7005886
RS
60752003-10-13 Richard M. Stallman <rms@gnu.org>
6076
6077 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6078 (print_partial_compiled_pattern): Replace assert with a printout.
6079 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6080
6081 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6082
6083 * window.c (Fset_window_margins): Allow only integers as args.
6084 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6085 Doc fixes.
6086
9c0c2af5
LK
60872003-10-13 Lute Kamstra <lute@gnu.org>
6088
6089 * window.c (Fset_window_fringes): Elaborate docstring.
6090
3f080e4e
AC
60912003-10-12 Andrew Choi <akochoi@shaw.ca>
6092
854c1a59 6093 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6094
3f080e4e
AC
6095 * s/darwin.h (GC_MARK_STACK): Define.
6096
0aa513ed
JD
60972003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6098
6099 * window.c (shrink_windows): New function.
6100 (size_window): Call shrink_windows to calculate window sizes when
6101 shrinking frame with more than one window.
6102
6aa8858a
KS
61032003-10-12 Kim F. Storm <storm@cua.dk>
6104
6105 * xdisp.c (compute_fringe_widths): Doc fix.
6106
c2164d91
KH
61072003-10-08 Kenichi Handa <handa@m17n.org>
6108
854c1a59 6109 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6110
f82ac129
KH
61112003-10-07 Kenichi Handa <handa@m17n.org>
6112
6113 * coding.c (Qcoding_system_define_form): New variable.
6114 (syms_of_coding): Intern and staticpro it.
6115 (Fcheck_coding_system): Try to autoload the definition of
6116 CODING-SYSTEM.
6117
9296c947
LT
61182003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6119
6120 * fns.c (Frequire): Doc fix.
6121
c1f0671a
JD
61222003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6123
3d8c3826
JD
6124 * xfns.c (Fx_send_client_event): New function as a base for
6125 manipulating extended window manager hints.
6dc15d98 6126 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6127
068ae0fd
JD
6128 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6129 that function is removed.
6130
6131 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6132 x/y_pixels_outer_diff.
6133 (x_check_expected_move): Calculate move_offset_left/top.
6134
6135 * xterm.h (struct x_output): New members: move_offset_top/left.
6136
854c1a59 6137 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6138 call x_set_offset directly.
6139
6140 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6141
96f09305
JD
6142 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6143
6144 * xterm.c (x_delete_display): Free font names and font_encoder
6145 in dpyinfo->font_table.
6146
854c1a59
SM
6147 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6148 Move xfree of font names to x_delete_display.
96f09305 6149
c1f0671a
JD
6150 * xterm.h (struct x_display_info): New member, wm_type.
6151 (struct x_output): New members, expected_top/left and
6152 check_expected_move.
6153
6154 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6155 is received.
854c1a59
SM
6156 (handle_one_xevent): Rename x_check_expected_move from
6157 x_check_fullscreen_move.
c1f0671a
JD
6158 (x_set_offset): Only add WM decoration sizes to modified_top/left
6159 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6160 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6161 Removed fullscreen specific code. Use check_expected_move,
6162 expected_left/top instead. Also, set wm_type.
6163 (x_term_init): Initialize wm_type to unknown.
6164
6165 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6166 sizes to move_x/y.
6167
be2fdba9
KH
61682003-10-03 Kenichi Handa <handa@m17n.org>
6169
6170 * macterm.c (x_load_font): Clear all members of FONTP before start
6171 filling them.
6172
61732003-10-02 Kenichi Handa <handa@m17n.org>
6174
6175 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6176 before calling find_ccl_program_func. Call find_ccl_program_func
6177 only when fontp->font_encoder is not NULL.
6178
6179 * xterm.c (x_load_font): Clear all members of FONTP before start
6180 filling them.
6181
26a6e439
JPW
61822003-10-03 John Paul Wallington <jpw@gnu.org>
6183
6184 * keymap.c (map_keymap): Don't abort when binding is a vector.
6185
0d4c2dc2
JR
61862003-10-02 Jason Rumney <jasonr@gnu.org>
6187
854c1a59
SM
6188 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6189 Sync dependencies with Makefile.in.
a63cf46f
JR
6190 (alloca.o): Remove.
6191
0d4c2dc2
JR
6192 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6193 filling them.
6194
6195 * w32bdf.c (w32_load_bdf_font): Likewise.
6196
ab8f7d5c
RS
61972003-09-30 Richard M. Stallman <rms@gnu.org>
6198
6199 * term.c (set_tty_color_mode): Calculate current_mode_spec
6200 regardless of value of VAL.
6201
854c1a59 6202 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6203 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6204 Handle over_used when splitting UNDER.
6205
a64387ee 62062003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6207
6208 * regex.c (regex_compile): Free the stack when returning from function.
6209
3413f972
KH
62102003-09-28 Kenichi Handa <handa@m17n.org>
6211
6212 * fontset.c (Finternal_char_font): Change return value to
6213 cons (FONT-NAME . GLYPH-CODE).
6214
a6eeaa81 62152003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6216
6217 * term.c (tty_setup_colors): Treat any negative argument as -1.
6218
f98ddc99
KH
62192003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6220
6221 * process.c (send_process): Delete unused temp_buf.
6222
66c8f1a8
DL
62232003-09-26 Dave Love <fx@gnu.org>
6224
6225 * xterm.c (x_bitmap_mask): Declare.
6226
ca716c26
DL
62272003-09-25 Dave Love <fx@gnu.org>
6228
6229 * Makefile.in (fns.o): Depend on md5.h.
6230
fbe57420
KS
62312003-09-25 Kim F. Storm <storm@cua.dk>
6232
6233 * window.c (set_window_buffer): Fix redisplay problems when
6234 switching between buffers with different display margin widths.
6235
ef6ae4ff
KS
62362003-09-23 Kim F. Storm <storm@cua.dk>
6237
6238 * process.c (set_socket_option): Fix :bindtodevice option.
6239 (Fset_network_process_option): Update process contact list when
6240 setting option succeeds.
6241 (Fmake_network_process): Doc fix.
6242
68e03c1c
DL
62432003-09-23 Dave Love <fx@gnu.org>
6244
7146d1c1 6245 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6246
a6eeaa81 62472003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6248
6249 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6250 color mode is an integer number (it could be -1).
6251
8fe7d8c8
RS
62522003-09-22 Richard M. Stallman <rms@gnu.org>
6253
6254 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6255 in the case where OVER is longer than UNDER.
6256
2f71b5ea
MY
62572003-09-22 Masatake YAMATO <jet@gyve.org>
6258
7146d1c1 6259 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6260 `vertical_type'.
7146d1c1 6261
0c4da023
KS
62622003-09-21 Kim F. Storm <storm@cua.dk>
6263
6264 * frame.c (Vdefault_frame_scroll_bars): New variable.
6265 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6266 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6267 window-system default scroll bar position.
6268
b648413b
KS
6269 * window.c (Fwindow_scroll_bars): Doc fix.
6270
8f5b9e34
JD
62712003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6272
854c1a59 6273 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6274
b0f23edf
RS
62752003-09-19 Richard M. Stallman <rms@gnu.org>
6276
6277 * atimer.h: Don't include lisp.h.
6278 (P_): Define it here (as well as elsewhere).
6279
6280 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6281 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6282
6283 * data.c (Fvariable_binding_locus): New function.
6284 (syms_of_data): defsubr it.
6285 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6286
e1283999
DL
62872003-09-18 Dave Love <fx@gnu.org>
6288
ad5f3636
DL
6289 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6290
e1283999
DL
6291 * process.c (Fnetwork_interface_info): Fix type error.
6292 (Fnetwork_interface_list): Doc fix.
6293 (read_process_output, read_process_output): Delete unused var.
6294
b8c7fd71
KS
62952003-09-17 Kim F. Storm <storm@cua.dk>
6296
6297 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6298 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6299 (Fnetwork_interface_info): Check that ifreq struct has required
6300 fields before accessing them; this requires that those fields are
6301 defined as macros, which may be too restrictive on some platforms,
6302 but it is better than failing on other platforms.
6303 (syms_of_process): Only defsubr above fns when included.
6304
11e0a411
DL
63052003-09-17 Dave Love <fx@gnu.org>
6306
6307 * unexalpha.c: Don't include varargs.h.
6308
e9c50801
KS
63092003-09-17 Kim F. Storm <storm@cua.dk>
6310
6311 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6312 for network process.
6313 (socket_options): Add `:' prefix to option names. Add optbit field.
6314 (set_socket_option): Remove no_error arg and special handling of s < 0.
6315 Return 1<<optbit for known option, 0 for unknown.
6316 Do not interpret 0 as false for boolean option (only nil).
6317 Pass failed option and value to report_file_error.
7146d1c1 6318 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6319 (Fset_network_process_option): New function to set just one option.
6320 (Fmake_network_process): Allow :coding arg to be a cons.
6321 Allow :server arg to be an integer specifying backlog size.
6322 Remove :options arg, and allow options to be specified directly
6323 as :KEY, VALUE pairs. Parse these options before binding socket.
6324 As before, :reuseaddr t is default for a server process, but this
6325 can now be disabled by specifying :reuseaddr nil.
6326 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6327 (init_process): Availability of network options is now checked with
6328 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6329 setup features.
6330 (syms_of_process): Fix defsubr's for the replaced functions.
6331
a0fc3644
DL
63322003-09-16 Dave Love <fx@gnu.org>
6333
6334 * Makefile.in: Depend on coding.h.
6335
6df2a645
KS
63362003-09-14 Kim F. Storm <storm@cua.dk>
6337
6338 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6339 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6340 (syms_of_process): Defsubr them.
6341
6342 * config.in: Regenerate.
7146d1c1
SM
6343
63442003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6345
6346 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6347 * m/news-r6.h (XUNMARK): Remove.
6348 * m/mips.h (XUNMARK): Remove.
6349 * m/mips-siemens.h (XUNMARK): Remove.
6350 * m/iris4d.h (XUNMARK): Remove.
6351 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6352
0930c1a1
SM
63532003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6354
31003b9e
SM
6355 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6356 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6357 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6358 (XTYPE): Use unsigned right-shift.
6359 (XMARKBIT, XMARK, XUNMARK): Remove.
6360
0930c1a1
SM
6361 * alloc.c (init_intervals, init_symbol, init_marker):
6362 Don't preallocate anything.
6363 (Fgarbage_collect, mark_object): Ignore the markbit.
6364
6365 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6366
19bb0fcd 63672003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6368
6369 * xdisp.c (pint2hrstr): New function.
6370 (decode_mode_spec): Add `%i' and `%I' specs.
6371 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6372 for `mode-line-format'.
6373
03bb6a06
AS
63742003-09-07 Andreas Schwab <schwab@suse.de>
6375
6376 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6377 avoid warning.
6378
a6eeaa81 63792003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6380
0930c1a1 6381 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6382
ed159bbf
KS
63832003-09-03 Kim F. Storm <storm@cua.dk>
6384
6385 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6386 change (superseded by 2002-08-30 change); the default blink-off
6387 cursor is now again "no cursor".
6388
fe64a394
JR
63892003-09-01 Jason Rumney <jasonr@gnu.org>
6390
6391 * makefile.w32-in (alloca.o): Remove.
6392 (coding.o): Depend on intervals.h
6393 (emacs.o, bytecode.o): Depend on window.h
6394
c0175e24
DL
63952003-09-01 Dave Love <fx@gnu.org>
6396
6397 * Makefile.in (alloca.o): Remove commands.
6398 (coding.o): Depend on intervals.h composite.h window.h.
6399 (emacs.o): Depend on window.h keyboard.h keymap.h.
6400 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6401 (bytecode.o): Depend on window.h.
6402
a24d4cb2
JR
64032003-08-31 Jason Rumney <jasonr@gnu.org>
6404
4bc2315e
JR
6405 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6406 returned even when font_type is unknown.
6407
a24d4cb2
JR
6408 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6409
9d35adc7
JD
64102003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6411
6412 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6413
6414 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6415 *_offset.
6416
6417 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6418 calculate pixel value.
6419
6f68b035
GM
64202003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6421
0930c1a1
SM
6422 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6423 Don't tell redisplay display is accurate when it's actually been
6424 paused for pending input.
6f68b035 6425
4828b4d7
RS
64262003-08-29 Richard M. Stallman <rms@gnu.org>
6427
6428 * dispnew.c (adjust_glyph_matrix): Call window_box
6429 whenever W is nonzero.
6430
6431 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6432 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6433 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6434 Use indirect_variable to trace thru variable aliases.
6435
6436 * config.in: Updated.
6437
6438 * callint.c (Fcall_interactively): Save and restore
6439 Vthis_command, Vthis_original_command, real_this_command,
6440 and current_kboard->Vlast_command.
6441
6442 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6443
e019878d
GM
64442003-08-29 Gerd Moellmann <gerd@gnu.org>
6445
6446 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6447
85478bc6
KH
64482003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6449
0930c1a1 6450 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6451 (decode_coding_sjis_big5): Likewise.
6452
07ce82d3
JR
64532003-08-27 Jason Rumney <jasonr@gnu.org>
6454
d3703de3
JR
6455 * w32.c (sys_pipe): Protect against file descriptor overflow.
6456
ee4a01d1
JR
6457 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6458
07ce82d3
JR
6459 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6460
a64387ee 64612003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6462
6463 * xfns.c (Vgtk_version_string): New variable.
6464 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6465
a6eeaa81 64662003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6467
0930c1a1 6468 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6469
5459e42a
EZ
6470 * Makefile.in (msdos.o): Depend on intervals.h.
6471
0930c1a1 6472 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6473
231d6cfb
JD
64742003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6475
6476 * xterm.h (struct x_display_info): New fields: client_leader_window
6477 and Xatom_wm_client_leader.
6478
6479 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6480 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6481
6482 * xsmfns.c (create_client_leader_window): New function.
6483 (x_session_initialize): Call create_client_leader_window, take
6484 dpyinfo as argument.
6485
6486 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6487
6488 * Makefile.in (xsmfns.o): Add more depenedencies.
6489
afa88464
DL
64902003-08-21 Dave Love <fx@gnu.org>
6491
6492 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6493
f730033e
KH
64942003-08-21 Kenichi Handa <handa@m17n.org>
6495
6496 * term.c (term_init): Fix previous change; don't rely on the
6497 length of `buffer' if TERMINFO is defined.
6498
6dca786c
DL
64992003-08-20 Dave Love <fx@gnu.org>
6500
6501 * atimer.h: Include lisp.h.
6502
6503 * lisp.h (EMACS_LISP_H): New.
6504 (popup_activated_flag): Don't declare.
6505
6506 * alloca.c: Some merging with gnulib. Change logic and doc
6507 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6508 [DO_BLOCK_INPUT]: Don't include lisp.h.
6509 (xmalloc, xfree): Declare.
6510 (malloc): Don't declare.
6511
0930c1a1 6512 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6513 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6514 atimer.h, blockinput.h.
6515
6516 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6517
78819ebb 6518 * alloca.s: Remove.
6dca786c 6519
3a06a6d9
RS
65202003-08-19 Gerd Moellmann <gerd@gnu.org>
6521
6522 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6523 use -lncurses.
6524
6525 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6526 FreeBSD returns something longer than 2044. Abort if the end of
6527 the buffer is overwritten.
6528
27eeee55
MB
65292003-08-19 Miles Bader <miles@gnu.org>
6530
6531 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6532
2f297815
GM
65332003-08-19 Gerd Moellmann <gerd@gnu.org>
6534
f4446bbf
GM
6535 * alloc.c (lisp_align_malloc): Check for memory full when
6536 allocating ablocks, which also avoids freeing a pointer into an
6537 ablocks structure.
6538
6539 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6540
0930c1a1 6541 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6542
0e7d7aae
RS
65432003-08-16 Richard M. Stallman <rms@gnu.org>
6544
6545 * editfns.c (Fencode_time): Doc fix.
6546
65472003-08-16 David Ponce <david@dponce.com>
6548
6549 * fileio.c (Fwrite_region): Fix conditional expression to issue
6550 the right message.
6551
b6189c3b 65522003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6553
6554 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6555 Set default value to 1.
0e7d7aae 6556
5d551295
KH
65572003-08-15 Kenichi Handa <handa@m17n.org>
6558
6559 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6560 what autoscaled.
6561 (best_matching_font): Once we find a better scalable font, set
6562 non_scalable_has_exact_height_p to 1.
6563 (try_font_list): Call try_alternative_families to try any family
6564 with the given registry.
6565
1661e56b
AS
65662003-08-09 Andreas Schwab <schwab@suse.de>
6567
f29181dc
AS
6568 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6569
1661e56b
AS
6570 * print.c (print_string): Fix printing of multibyte string with
6571 nontrivial printcharfun.
6572
465aa50a
JD
65732003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6574
6575 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6576
6577 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6578
e430e5ba
KH
65792003-07-31 Kenichi Handa <handa@m17n.org>
6580
6581 * process.c (read_process_output): Return the actually read bytes
6582 instead of the result of decoding.
6583
97e7188e
KH
65842003-07-31 Kenichi Handa <handa@m17n.org>
6585
6586 * xterm.h (struct x_bitmap_record): New member have_mask.
6587
6588 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6589 to 0.
6590 (x_create_bitmap_from_file): Likewise.
6591 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6592 (x_destroy_all_bitmaps): Likewise.
6593 (x_create_bitmap_mask): Set have_mask member to 1.
6594
b53094d6
RS
65952003-07-30 Richard M. Stallman <rms@gnu.org>
6596
6597 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6598
631f2082
JD
65992003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6600
6601 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6602
c855f2ca
RS
66032003-07-29 Richard M. Stallman <rms@gnu.org>
6604
6605 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6606 Conditionalize XIM code on HAVE_XIM.
6607
6608 * fns.c (Fclear_string): New function.
6609 (syms_of_fns): defsubr it.
6610
b6189c3b 66112003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6612
0930c1a1 6613 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6614
29ea8ae9
SM
66152003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6616
6617 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6618
6619 * buffer.c (delete_all_overlays): New function.
6620 * buffer.h (delete_all_overlays): Declare.
6621 * coding.c (run_pre_post_conversion_on_str):
6622 * print.c (temp_output_buffer_setup):
6623 * fileio.c (Finsert_file_contents):
6624 * minibuf.c (get_minibuffer): Use it.
6625
1dd7ccf2
AC
66262003-07-22 Andrew Choi <akochoi@shaw.ca>
6627
6628 * unexmacosx.c (unexec_regions_sort_compare):
6629 (unexec_regions_merge): New functions. Sort and merge unexec
6630 regions before dumping them.
6631
f57bd967
DL
66322003-07-22 Dave Love <fx@gnu.org>
6633
6634 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6635
7cdee936
SM
66362003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6637
6638 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6639 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6640 MARKBIT as the gcmarkbit for strings.
6641
e50886d3
RS
66422003-07-21 Richard M. Stallman <rms@gnu.org>
6643
6644 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6645
29ea8ae9 6646 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6647 (syms_of_fns): Corresponding change.
6648
6649 * alloc.c (syms_of_alloc): Doc fixes.
6650
66512003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6652
6653 * s/netbsd.h: Use -Wl syntax.
6654
fdc39b59
RS
66552003-07-17 Richard M. Stallman <rms@gnu.org>
6656
6657 * xterm.c (xim_initialize): Redo 6/24 change.
6658
9c53385f
SM
66592003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6660
6661 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6662 (Fswitch_to_buffer): Don't signal an error when switching to the same
6663 buffer in a dedicated window.
6664
6665 * alloc.c: Use bitmaps for cons, as was done for floats.
6666 (init_float, init_cons): Let the normal code allocate the first block.
6667 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6668 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6669 New macros.
6670 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6671 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6672 (live_cons_p): Check the pointer is not past the `conses' array.
6673 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6674 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6675 (survives_gc_p): Use CONS_MARKED_P and simplify.
6676 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6677
dde13196
PE
66782003-07-13 Paul Eggert <eggert@twinsun.com>
6679
6680 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6681 puts it into BSS instead, at least on Solaris 8 and 9.
6682 This is a valid optimization, and it may occur on other platforms,
6683 so Emacs should not assume that initializing a static variable to
6684 zero puts it into data.
6685 * alloc.c (pure, staticvec):
6686 Initialize these arrays to nonzero, so that they're not
6687 put into BSS by that optimization.
6688
a801bc34
SM
66892003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6690
6691 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6692 (lisp_align_malloc): Use posix_memalign is available.
6693 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6694 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6695 for consistency. Update users.
6696
0c8b2afa
RS
66972003-07-13 Richard M. Stallman <rms@gnu.org>
6698
6699 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6700
668c2ab0
JB
67012003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6702
6703 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6704 and use the Gtk+ function gtk_window_icon_from_file if available.
6705
6706 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6707 handle mask of bitmaps.
6708 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6709 mask property.
6710 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6711
6712 * xterm.h (xg_set_icon): New function.
6713
800bebe3
RS
67142003-07-12 Paul Eggert <eggert@twinsun.com>
6715
6716 * unexelf.c (unexec): Consider a section to precede the .bss
6717 section if its addresses overlap that of .bss.
6718
69e38995
RS
67192003-07-12 Richard M. Stallman <rms@gnu.org>
6720
6721 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6722
6723 * config.in (HAVE_CRTIN): Add #undef.
6724 (INLINE): Really inline only if OPTIMIZE is defined.
6725
6726 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6727 END_FILES_1.
6728 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6729 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6730
6731 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6732 (TERMINFO): Define.
6733 (LIBS_TERMCAP): Define.
6734 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6735
6736 * xfns.c: Include libpng/png.h instead of png.h.
6737
f1d0c238
AS
67382003-07-11 Andreas Schwab <schwab@suse.de>
6739
6740 * buffer.c (modify_overlay): Update prototype.
6741 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6742 Likewise.
6743
5f6bf5fe
SM
67442003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6745
6746 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6747 (struct interval): Move to intervals.h.
6748 (struct Lisp_Marker): Use EMACS_INT for position info.
6749 (forward_point): Remove prototype of defunct function.
6750 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6751 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6752 (syms_of_textprop, set_text_properties): Remove prototypes that are
6753 already in intervals.h.
6754
6755 * intervals.h (struct interval): Move from lisp.h.
6756 Use EMACS_INT for position and size info.
6757
6758 * coding.c: Include intervals.h for Fset_text_properties.
6759
6760 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6761 position and length information.
6762
2765b457
SM
67632003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6764
6765 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6766 position and length information.
6767
2410d73a
SM
67682003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6769
6770 Change overlays_after and overlays_before so the overlays themselves
6771 are linked into lists, rather than using cons cells. After all each
6772 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6773 Lisp_Overlay for free and save up one cons cell per overlay (not
6774 to mention one indirection when traversing the list of overlay).
6775
6776 * lisp.h (struct Lisp_Overlay): New field `next'.
6777
6778 * buffer.h (struct buffer): Change overlays_before and overlays_after
6779 from Lisp lists of overlays to pointers to overlays.
6780
6781 * buffer.c (overlay_strings, recenter_overlay_lists):
6782 Fix typo in eassert in last commit.
6783 (unchain_overlay): New function.
6784 (add_overlay_mod_hooklist): Use AREF.
6785 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6786 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6787 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6788 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6789 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6790 Adjust to new type of overlays_(before|after).
6791
6792 * alloc.c (mark_object): Mark the new `next' field of overlays.
6793 (mark_buffer): Manually mark the overlays_(after|before) fields.
6794
6795 * coding.c (run_pre_post_conversion_on_str):
6796 * editfns.c (overlays_around):
6797 * xdisp.c (load_overlay_strings):
6798 * fileio.c (Finsert_file_contents):
6799 * indent.c (current_column):
6800 * insdel.c (signal_before_change, signal_after_change):
6801 * intervals.c (set_point_both):
6802 * print.c (temp_output_buffer_setup): Use new type for
6803 overlays_(before|after).
6804
04812929
SM
68052003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6806
6807 * buffer.c (report_overlay_modification): Don't run hooks while
6808 traversing the list of overlays.
6809
6810 * buffer.h (struct buffer): Use an int for overlay_center.
6811 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6812 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6813
6814 * buffer.c (reset_buffer, recenter_overlay_lists)
6815 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6816 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6817 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6818 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6819 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6820
6821 * xdisp.c (fast_find_position): Remove unused var.
6822
6823 * cmds.c (Qexpand_abbrev): New sym.
6824 (syms_of_cmds): Initialize it.
6825 (internal_self_insert): Use it to call expand-abbrev.
6826
2e7ecf15
KS
68272003-07-09 Kim F. Storm <storm@cua.dk>
6828
f9711de4 6829 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6830 was configured with --without-xim.
42f81f64 6831 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6832
c6de56a0
RS
68332003-07-07 Richard M. Stallman <rms@gnu.org>
6834
6835 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6836
6837 * alloc.c (Fgarbage_collect): Doc fix.
6838
b6189c3b 68392003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6840
6841 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6842
bfe1a3f7
SM
68432003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6844
04812929
SM
6845 * minibuf.c (read_minibuf): UNGCPRO before returning.
6846 (Ftry_completion, Fall_completions): Doc fix.
6847
bfe1a3f7
SM
6848 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6849 now that `floats' is not the last element of the struct any more.
6850
ee79d1aa
JR
68512003-07-06 Jason Rumney <jasonr@gnu.org>
6852
6853 * w32term.h (ClipboardSequence_Proc): New type.
6854
6855 * w32fns.c (clipboard_sequence_fn): New variable.
6856 (globals_of_w32fns): Initialize it.
6857
6858 * w32select.c (last_clipboard_sequence_number): New variable.
6859 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6860 number if possible.
6861
49723c04
SM
68622003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6863
4698665f
SM
6864 * m/amdx86-64.h (MARKBIT):
6865 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6866 MARKBIT and ARRAY_MARK_FLAG any more.
6867
6868 * m/hp800.h (XSETMARKBIT):
6869 * m/sr2k.h (XSETMARKBIT):
6870 * lisp.h (XSETMARKBIT): Remove unused macro.
6871
49723c04
SM
6872 * lisp.h (mark_object): Change prototype.
6873
6874 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6875 (last_marked): Change accordingly.
6876 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6877 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6878 (mark_buffer): Update calls to mark_object.
6879
6880 * bytecode.c (mark_byte_stack):
6881 * fns.c (sweep_weak_table):
6882 * keyboard.c (mark_kboards): Update calls to mark_object.
6883
1d660eca
JR
68842003-07-06 Jason Rumney <jasonr@gnu.org>
6885
6886 * alloc.c (struct ablock): Only include padding when there is some.
6887
618b5ae4
SM
68882003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6889
6890 * alloc.c (ALIGN): Add casts to simplify usage.
6891 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6892 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6893 (struct ablock, struct ablocks): New types.
6894 (free_ablock): New global var.
6895 (lisp_align_malloc, lisp_align_free): New functions.
6896 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6897 (struct float_block): Reorder and add gcmarkbits.
6898 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6899 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6900 (init_float, make_float): Use lisp_align_malloc.
6901 (free_float, live_float_p): Don't use `type' any more.
6902 (make_float): Use FLOAT_UNMARK to access to mark bit.
6903 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6904 Use FLOAT_MARKED_P to access the mark bit.
6905 (pure_alloc): Simplify use of ALIGN.
6906 (mark_object): Use FLOAT_MARK to access the mark bit.
6907 (gc_sweep): Use new macros to access the float's mark bit.
6908 (init_alloc_once): Init free_ablock.
6909
6910 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6911
3ef06d12
SM
69122003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6913
6914 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6915 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6916 (allocate_buffer): Move.
6917 (string_bytes): Don't mask markbit of `size_byte'.
6918 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6919 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6920 Use the `size' field of buffers (rather than the `name' field) for
6921 the mark bit, as is done for all other vectorlike objects.
6922 Use the new macros to access the mark bit of vectorlike objects.
6923
e81043aa
RS
69242003-06-26 Richard M. Stallman <rms@gnu.org>
6925
6926 * puresize.h (BASE_PURESIZE): Increment base size.
6927
6928 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6929
6930 * xterm.c (xim_initialize): Undo previous change.
6931
2d0834cc
SM
69322003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6933
6934 * alloc.c (survives_gc_p): Simplify.
6935
6936 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6937
6938 * window.c (Fset_window_dedicated_p): Simplify.
6939 (display_buffer_1): Don't raise the win from which minibuf was entered.
6940 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6941 (Fminibuffer_selected_window): Simplify.
6942
6943 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6944
6945 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6946 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6947
6948 * insdel.c (check_markers, adjust_markers_for_delete)
6949 (adjust_markers_for_insert, adjust_markers_for_replace)
6950 (prepare_to_modify_buffer, RESTORE_VALUE):
6951 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6952 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6953 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6954 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6955 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6956 * editfns.c (save_excursion_restore, transpose_markers):
6957 * window.c (delete_window):
6958 * xdisp.c (message_dolog): Update for new types.
6959
d54ae3d8
JD
69602003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6961
a5f696ac
JD
6962 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6963 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6964 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6965
6966 * frame.c (make_frame): Initialize default_face_done_p.
6967
6968 * frame.h (struct frame): Add default_face_done_p.
6969
d54ae3d8
JD
6970 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6971 will be defined.
6972
2336fe58
SM
69732003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6974
6975 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6976 Initialize the new field `gcmarkbit'.
6977 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6978 (mark_interval_tree): Don't mark the tree separately from the nodes.
6979 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6980 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6981 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6982
6983 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6984 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6985 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6986 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6987 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6988
bcea31c2
DL
69892003-06-24 Dave Love <fx@gnu.org>
6990
6991 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6992
6993 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6994 from gnulib.
6995
2601f59e
RS
69962003-06-21 Richard M. Stallman <rms@gnu.org>
6997
6998 * fileio.c (Fwrite_region): Alternate messages
6999 for append and partial write.
7000
7001 * keyboard.c (read_key_sequence): When converting upcase fn key to
7002 downcase, update fkey and keytran so `backspace' gets translated.
7003
7004 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7005
7006 * process.c (wait_reading_process_input): Don't signal SIGIO
7007 in batch mode.
7008
b5d2c621
KH
70092003-06-17 Kenichi Handa <handa@m17n.org>
7010
7011 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7012 composite.h.
7013
7014 * xselect.c: Don't include charset.h, coding.h, composite.h.
7015 (Qforeign_selection): New variable.
7016 (syms_of_xselect): Intern and static it.
7017 (selection_data_to_lisp_data): Return a unibyte string made from
7018 data with `foreign-selection' text property.
7019
6793bc63
SM
70202003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7021
7022 * termhooks.h (EVENT_INIT): New macro.
7023
7024 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7025
7026 * alloc.c (mark_kboards): Move to keyboard.c.
7027
7028 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7029 * xterm.c (x_dispatch_event):
7030 * xmenu.c (find_and_call_menu_selection):
7031 * xdisp.c (handle_tool_bar_click):
7032 * w32menu.c (menubar_selection_callback):
7033 * sysdep.c (kbd_input_ast, read_input_waiting):
7034 * msdos.c (dos_rawgetc):
7035 * macterm.c (mac_check_for_quit_char):
7036 * macmenu.c (menubar_selection_callback):
7037 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7038 data to kbd_buffer_store_event.
7039
b3ea810c
KS
70402003-06-15 Kim F. Storm <storm@cua.dk>
7041
7042 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7043 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7044
b8f75eda
KG
70452003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7046
7047 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7048
ba92ce48
KH
70492003-06-12 Kenichi Handa <handa@m17n.org>
7050
7051 * fileio.c (Fwrite_region): Save and restore restriction.
7052
b80263be
DL
70532003-06-12 Dave Love <fx@gnu.org>
7054
7055 * alloca.c (alloca): Declare arg as size_t.
7056
6793bc63
SM
7057 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7058 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7059
b23c0a83
DL
70602003-06-11 Dave Love <fx@gnu.org>
7061
7062 * search.c (shrink_regexp_cache): Use xrealloc.
7063 (syms_of_search): Use xmalloc.
7064
700e47c2
KS
70652003-06-10 Kim F. Storm <storm@cua.dk>
7066
7067 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7068 Adjust phys_cursor.x to be relative to window box, rather than
7069 text area before checking -- to ensure cursor is redrawn when
7070 exposing window.
7071 Note: This also fixes a similar (older) bug if display margins
7072 are present.
7073
f11aa0b2
KH
70742003-06-06 Kenichi Handa <handa@m17n.org>
7075
7076 * coding.c (encoding_buffer_size): If coding->type is
7077 coding_type_ccl, double magnification on CRLF encoding.
7078
3d143690
JR
70792003-06-06 Jason Rumney <jasonr@gnu.org>
7080
7081 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7082 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7083
7084 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7085 Mac too.
7086
f16205ca
DL
70872003-06-05 Dave Love <fx@gnu.org>
7088
b23c0a83
DL
7089 * strftime.c: Merge changes from gnulib.
7090
f16205ca
DL
7091 * mktime.c (__mktime_internal): Merge changes from gnulib
7092 involving year 69 and dst2.
7093
7094 Changes to merge with gnulib version and be consistent with the
7095 autoconf test:
7096
6793bc63
SM
7097 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7098 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7099 [HAVE_LOCALE_H]: Include locale.h.
7100 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7101
9b87a0bc
KS
71022003-06-05 Kim F. Storm <storm@cua.dk>
7103
7104 * window.c (coordinates_in_window): Convert X and Y to window
7105 relative coordinates inside mode-line and header-line parts.
7106 Convert X and Y to margin area relative coordinates inside left
7107 and right display margin parts.
7108
5a8a15ec
JR
71092003-06-05 Jason Rumney <jasonr@gnu.org>
7110
7111 * w32fns.c (add_system_logical_colors_to_map): New function.
7112 (Fx_open_connection): Use it.
7113
01ed8ff1
SM
71142003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7115
7116 * process.c (allocate_pty): Revert part of the previous patch.
7117 (Faccept_process_output): Simplify.
7118
b427b65d
JR
71192003-06-04 Jason Rumney <jasonr@gnu.org>
7120
7121 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7122
7123 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7124 (lispy_mouse_wheel_names): Remove.
7125 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7126 Always define drag_and_drop_syms.
7127
7128 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7129 WHEEL_EVENT events.
7130
914a8c47
SM
71312003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7132
01ed8ff1
SM
7133 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7134
914a8c47
SM
7135 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7136
adcb132c
JD
71372003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7138
7139 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7140 menu item label.
7141
be781fa7
RS
71422003-06-03 Richard M. Stallman <rms@gnu.org>
7143
7144 * window.c (Fwindow_edges): Doc fix.
7145 (Fwindow_pixel_edges, Fwindow_inside_edges)
7146 (Fwindow_inside_pixel_edges): New functions.
7147 (syms_of_window): defsubr them.
7148
7149 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7150 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7151
914a8c47
SM
71522003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7153
7154 * dispnew.c (Fsit_for): Don't lie about the number of args.
7155
5b07197a
DL
71562003-06-02 Dave Love <fx@gnu.org>
7157
7158 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7159 (syms_of_callproc) <process-environment>: Doc fix.
7160
7161 * doc.c: Use HAVE_FCNTL_H, not USG5.
7162
7163 * xfaces.c (font_rescale_ratio): Fix for K&R.
7164
7165 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7166
7167 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7168
7169 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7170
7171 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7172 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7173
d7107586 7174 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7175
7176 * xmenu.c (ENCODE_MENU_STRING): New.
7177 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7178 Use it.
7179
7180 * coding.h (ENCODE_UTF_8): New.
7181 (Qutf_8): Declare.
7182
7183 * coding.c (Qutf_8): New.
7184 (syms_of_coding): Intern it.
7185
7186 * fns.c: Doc fixes.
7187
7335b336
KH
71882003-06-02 Kenichi Handa <handa@m17n.org>
7189
7190 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7191
914a8c47
SM
71922003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7193
7194 * lread.c (openp): Make sure STR is a string.
7195
9862c135
JR
71962003-06-01 David Ponce <david@dponce.com>
7197
cab27d04 7198 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7199 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7200
7201 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7202 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7203 (discard_mouse_events): Discard WHEEL_EVENT events too.
7204 (lispy_wheel_names, wheel_syms): New.
7205 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7206 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7207 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7208
7209 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7210 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7211 WHEEL_EVENT events.
7212
f984e73e
JPW
72132003-05-31 John Paul Wallington <jpw@gnu.org>
7214
7215 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7216 timer are in lisp/emacs-lisp.
7217
1efcd78f
KH
72182003-05-31 Kenichi Handa <handa@m17n.org>
7219
458c8af4
KH
7220 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7221 region when a buffer is changed to unibyte.
7222
1efcd78f
KH
7223 * charset.h (VALID_LEADING_CODE_P): New macro.
7224 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7225
778e2804
KH
7226 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7227 is nonzero, accept multibyte form of eight-bit-control chars.
7228 (decode_composition_emacs_mule): Likewise.
7229 (decode_coding_emacs_mule): Likewise.
7230 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7231 multibyte form of eight-bit-control chars.
7232
7233 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7234 (Finsert_file_contents): If coding-system-for-read is bound to
7235 Qauto_save_coding, use the coding system emacs-mule with special
7236 setting for recovering a file.
7237 (choose_write_coding_system): On auto saving, use the coding
7238 system emacs-mule with special setting for auto saving.
7239 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7240
034060e4
KH
72412003-05-30 Kenichi Handa <handa@m17n.org>
7242
7243 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7244 properly before calling ccl_driver.
7245
778e2804 7246 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7247
cab27d04 7248 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7249 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7250 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7251
595f5aa5
GM
72522003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7253
7254 * xfaces.c (realize_default_face): Do not abort if lface is
7255 non-existent - reverts change from 2003-05-19.
7256
103e0180
KH
72572003-05-29 Kenichi Handa <handa@m17n.org>
7258
7259 * coding.c (decode_coding_iso2022): Pay attention to the byte
7260 sequence of CTEXT extended segment, and retain those bytes as is.
7261
72622003-05-28 Kenichi Handa <handa@m17n.org>
7263
cab27d04 7264 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7265 of CODING_REPLACEMENT_CHARACTER.
7266 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7267 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7268 check this flag on encoding.
cab27d04
SM
7269 (encode_coding_sjis_big5):
7270 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7271 (Fset_terminal_coding_system_internal):
7272 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7273 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7274
7275 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7276 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7277 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7278
ff6a3bfb 72792003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7280
ff6a3bfb
RS
7281 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7282
7283 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7284
1963c428
KS
72852003-05-28 Kim F. Storm <storm@cua.dk>
7286
7287 * xdisp.c (expose_window): Fix error in calculation of
7288 window relative coordinates of area to redisplay.
7289
2b5d4601
JR
72902003-05-27 Jason Rumney <jasonr@gnu.org>
7291
7292 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7293
1c64a4a2
JB
72942003-05-27 David Ponce <david@dponce.com>
7295
7296 Handle W32 mouse wheel events as mouse click events, like in X.
7297
7298 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7299 MOUSE_WHEEL_EVENT anymore.
7300
7301 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7302 Scrolling down/up the mouse wheel is respectively mapped to mouse
7303 button 4 and 5.
7304 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7305 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7306 WM_MOUSEWHEEL events.
7307
2d031b89
AS
73082003-05-27 Andreas Schwab <schwab@suse.de>
7309
20464fdf
AS
7310 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7311
2d031b89
AS
7312 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7313 partially visible line.
7314
7315 * alloc.c (Fgarbage_collect): Fix last change.
7316
97bc76d4
JPW
73172003-05-26 John Paul Wallington <jpw@gnu.org>
7318
7319 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7320
56613f06
SM
73212003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7322
7323 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7324 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7325
7326 * window.h (window_box_text_cols): Declare.
7327
7328 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7329 (x_draw_vertical_border): Remove unused var `f'.
7330
7331 * xfaces.c (build_scalable_font_name): Remove `unused var
7332 pixel_size' warning.
7333
7334 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7335
7336 * unexelf.c (unexec): Remove `unused var n' warning.
7337
7338 * strftime.c (my_strftime_localtime_r): Remove `defined but
7339 unused' warning.
7340
7341 * process.c (allocate_pty): Remove `unused var stb' and
7342 `cp might be used uninitialized' warnings.
7343
7344 * dispnew.c (mode_line_string): Remove unused var `f'.
7345
7346 * coding.c (find_safe_codings): Remove unused var `i'.
7347
7348 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7349
7350 * buffer.c (Fkill_buffer): Remove unused var `list'.
7351
7352 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7353
93421a1f
JD
73542003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7355
7356 * frame.c (make_frame): Condition want_fullscreen with
7357 HAVE_WINDOW_SYSTEM.
7358
c4b8aebc
JB
73592003-05-25 Juanma Barranquero <lektu@terra.es>
7360
7361 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7362 (Fwindow_scroll_bars): Fix typo in docstring.
7363
0416870b
KS
73642003-05-24 Kim F. Storm <storm@cua.dk>
7365
7366 The following changes serve several purposes:
7367
7368 1) Swap the position of fringes and display margins in windows, i.e.
7369 the fringes are now displayed between the margins and the text area
7370 (by default).
7371
7372 2) Allow fringe and scroll bar parameters to be set per-buffer and
7373 per-window (like display margins). Such settings are now stored
7374 in window configurations, preserved when frames are resized, and
9018a88e 7375 copied when windows are split vertically or horizontally.
0416870b
KS
7376 Several bugs related to display margins have been fixed.
7377
7378 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7379
0416870b
KS
7380 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7381 rather than FRAME_WIDTH (FRAME_FONT (f)).
7382
7383 5) Introduce a consistent naming of variables, members and macros
7384 depending on whether their value is measured in pixels or in
7385 canonical columns/lines. Pixel dimensions are named *_width and
7386 *_height, while canonical columns/lines are named *_cols and
7387 *_lines. Pixel positions are named *_x and *_y, while column/line
7388 positions are named *_col and *_line.
7389
7390 6) Consolidate more of the X, W32, and MAC gui code by moving
7391 common data into struct frame, and generalize it for the non-gui
7392 case by using suitable defaults.
7393
7394 7) Cleanup and consolidate the macros controlling frame and window
7395 layout into frame.h and window.h, and generalize the use of the
7396 various window_box_* functions (enhanced to handle the new fringe
7397 position and the per-window fringe and scroll bar settings).
7398
7399 * frame.h (struct frame): Rename members height to text_lines,
7400 width to text_cols, window_height to total_lines, window_width to
7401 total_cols, new_height to new_text_lines, new_width to
7402 new_text_cols. All uses changed.
7403 (struct frame): New members which consolidate common members of
7404 x_output, w32_output, and mac_output structures: left_pos,
7405 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7406 win_gravity, size_hint_flags, border_width, internal_border_width,
7407 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7408 want_fullscreen. All uses changed.
7409 (struct frame): New member column_width contaning the canonical
7410 column width, analogue to line_height. All uses changed.
7411 (struct frame): Rename members scroll_bar_pixel_width to
7412 config_scroll_bar_width, and scroll_bar_cols to
7413 config_scroll_bar_cols. All uses changed.
7414 (struct frame): New member scroll_bar_actual_width which
7415 consolidates and renames the vertical_scroll_bar_extra member of
7416 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7417 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7418 from x/w32/macterm.h files. All uses changed. Also change code
7419 which referred to f->output_data...->pixel_height.
cab27d04 7420 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7421 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7422 which referred to f->output_data...->pixel_width.
cab27d04 7423 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7424 Also change code which referred to f->height.
cab27d04 7425 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7426 Also change code which referred to f->width.
7427 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7428 to update new_text_lines and new_text_cols members directly.
cab27d04 7429 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7430 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7431 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7432 FRAME_SCROLL_BAR_COLS. All uses changed.
7433 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7434 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7435 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7436 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7437 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7438 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7439 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7440 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7441 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7442 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7443 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7444 Unconditionally return line_height member (it now has proper value
7445 also for non-window frames).
7446 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7447 return new column_width member (rather than the default font width).
7448 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7449 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7450 from x/w32/macterm.h files. Unconditionally return corresponding
7451 member of frame structure (they now have proper values also for
7452 non-window frames).
cab27d04 7453 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7454 Calculate return value from left and right widths.
7455 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7456 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7457 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7458 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7459 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7460 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7461 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7462 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7463 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7464 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7465 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7466 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7467 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7468 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7469 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7470 consolidated from x/mac/w32term.h.
cab27d04 7471 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7472 consolidated from x/mac/w32term.h.
cab27d04 7473 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7474 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7475 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7476 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7477
7478 * window.h (struct window): Rename members left to left_col,
7479 top to top_line, height to total_lines, width to total_cols,
7480 left_margin_width to left_margin_cols, right_margin_width to
7481 right_margin_cols, orig_height to orig_total_lines, orig_top to
7482 orig_top_line. All uses changed.
7483 (struct window): New members left_fringe_width, right_fringe_width,
7484 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7485 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7486 New macros primarily used to simplify other macros.
7487 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7488 referred to XINT (w->width).
7489 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7490 referred to XINT (w->height).
7491 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7492 referred to XINT (w->width) * canon_x_unit.
7493 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7494 referred to XINT (w->height) * canon_y_unit.
7495 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7496 referred to XINT (w->left).
cab27d04 7497 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7498 all uses and code that referred to XINT (w->left) + XINT (w->width).
7499 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7500 referred to XINT (w->top).
7501 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7502 referred to XINT (w->top) + XINT (w->height).
7503 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7504 referred to XINT (w->left) * canon_x_unit.
7505 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7506 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7507 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7508 referred to XINT (w->top) * canon_y_unit.
7509 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7510 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7511 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7512 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7513 All uses changed.
cab27d04 7514 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7515 All uses changed.
cab27d04 7516 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7517 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7518 Do not exclude left fringe width.
cab27d04 7519 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7520 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7521 Do not exclude fringe widths.
7522 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7523 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7524 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7525 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7526 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7527 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7528 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7529 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7530 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7531 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7532 New macros. Change code which referenced corresponding
7533 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7534 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7535 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7536 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7537 allow per-window scroll-bar settings.
7538 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7539 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7540 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7541 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7542 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7543 FRAME_SCROLL_BAR_WIDTH.
7544 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7545 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7546 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7547 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7548 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7549 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7550 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7551 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7552 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7553 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7554 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7555 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7556 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7557 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7558 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7559 (window_from_coordinates): Update prototype.
7560 (Fset_window_buffer): Update EXFUN.
7561 (set_window_buffer): Update prototype.
9018a88e 7562
0416870b 7563 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7564 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7565 changed.
7566 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7567 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7568 internal_border_width is now set to 0 for non-window frames.
7569 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7570 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7571 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7572 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7573 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7574 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7575 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7576 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7577 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7578 Move to window.h and renamed [see window.h changes].
0416870b
KS
7579 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7580 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7581 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7582 Use WINDOW_TOTAL_LINES.
0416870b
KS
7583 (frame_update_line_height): Remove prototype.
7584
7585 * buffer.h (struct buffer): Rename members measured in columns:
7586 left_margin_width to left_margin_cols, right_margin_width to
7587 right_margin_cols. All uses changed.
7588 New members left_fringe_width, right_fringe_width,
7589 fringes_outside_margins for per-buffer fringe settings.
7590 New members scroll_bar_width and vertical_scroll_bar_type for
7591 per-buffer scroll bar settings.
7592
7593 * buffer.c (init_buffer_once): Set buffer_defaults and
7594 buffer_local_flags for new buffer-local variables
7595 left_fringe_width, right_fringe_width, fringes_outside_margins,
7596 scroll_bar_width, and vertical_scroll_bar_type.
7597 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7598 default-* variables for them.
7599
7600 * dispnew.c: Make (many) trivial substitutions for renamed and
7601 new macros in dispextern.h, frame.h and window.h.
7602 (mode_line_string): No need to adjust width for mode lines, as it
7603 is already adjusted by the caller.
7604 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7605
0416870b
KS
7606 * frame.c: Make (many) trivial substitutions for renamed and
7607 new macros in dispextern.h, frame.h and window.h.
7608 (make_frame): Initialize left_fringe_width, right_fringe_width,
7609 fringe_cols, scroll_bar_actual_width, border_width,
7610 internal_border_width, column_width, line_height, x_pixels_diff,
7611 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7612 members with values suitable for a non-window frames.
7613
7614 * gtkutil.c: Make (many) trivial substitutions for renamed and
7615 new macros in dispextern.h, frame.h and window.h.
9018a88e 7616
0416870b
KS
7617 * indent.c: Make (few) trivial substitutions for renamed and
7618 new macros in dispextern.h, frame.h and window.h.
7619
7620 * keyboard.c: Make (many) trivial substitutions for renamed and
7621 new macros in dispextern.h, frame.h and window.h.
7622 (make_lispy_event): Use window positions returned from
7623 window_from_coordinates when constructing the lisp event for
7624 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7625 (incorrect) values locally.
7626 (make_lispy_movement): Use window positions returned from
7627 window_from_coordinates when constructing the lisp event, rather
7628 than calculating (incorrect) values locally.
7629
7630 * scroll.c: Make (some) trivial substitutions for renamed and
7631 new macros in dispextern.h, frame.h and window.h.
7632
7633 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7634 scroll-bars.
7635
7636 * sysdep.c: Make (few) trivial substitutions for renamed and
7637 new macros in dispextern.h, frame.h and window.h.
7638
7639 * term.c: Make (some) trivial substitutions for renamed and
7640 new macros in dispextern.h, frame.h and window.h.
7641
7642 * widget.c: Make (few) trivial substitutions for renamed and
7643 new macros in dispextern.h, frame.h and window.h.
7644
7645 * window.c: Make (many) trivial substitutions for renamed and
7646 new macros in dispextern.h, frame.h and window.h.
7647 (make_window): Initialize new members
7648 left_margin_cols, right_margin_cols, left_fringe_width,
7649 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7650 and vertical_scroll_bar_type.
cab27d04 7651 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7652 and per-window fringes and scroll-bars.
0416870b 7653 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7654 frame's internal_border_width (the effect normally negible since
0416870b
KS
7655 the internal_border_width is typically 0 or 1 pixel, but very
7656 noticeable for an internal_border_width of e.g. 25 pixels).
7657 Upon successful return (other than ON_NOTHING), the coordinates
7658 are now always properly converted to window relative for the
7659 given display element.
7660 (window_from_coordinates): Add new parameters wx and wy to
7661 return the window relative x and y position in the returned
7662 window and part. A null arg means, don't return the position.
7663 All callers changed.
7664 (adjust_window_margins): New function which may reduce the width
7665 of the display margins if a window's text area is too small after
7666 resizing or splitting windows.
7667 (size_window): Fix bug that did not account for display margin
7668 widths when checking the minimum width of a window; use
7669 adjust_window_margins.
7670 (set_window_buffer): Call Fset_window_fringes and
7671 Fset_window_scroll_bars to setup per-window elements.
7672 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7673 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7674 (e.g. after splitting a window or resizing the frame).
7675 All callers changed.
0416870b
KS
7676 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7677 (Fsplit_window): Duplicate original window's display margin,
7678 fringe, and scroll-bar settings; then call Fset_window_buffer with
7679 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7680 window to only preserve the display margins in one of the windows.
c4b8aebc 7681 When splitting horizontally, call adjust_window_margins on both
0416870b 7682 windows to ensure that the text area of the new windows is non too
f9711de4 7683 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7684 width of the split window was less than the width of the display
7685 margins.
cab27d04 7686 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7687 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7688 Fix bug that caused vertical separator to be subtracted also on
7689 window frames. Fix another bug that did not reduce the returned
7690 value by the columns used for display margins.
7691 (window_scroll_line_based): Fix bug related to scrolling too much
7692 when display margins are present (implicitly fixed by the fix to
7693 window_box_text_cols).
7694 (scroll_left, scroll_right): Fix bug related to scrolling too far
7695 by default when display margins are present (implicitly fixed by
7696 the fix to window_box_text_cols).
7697 (struct saved_window): Rename members left to left_col, top to
7698 top_line, width to total_cols, height to total_lines, orig_top to
7699 orig_top_line, orig_height to orig_total_lines. All uses changed.
7700 New members left_margin_cols, right_margin_cols,
7701 left_fringe_width, right_fringe_width, fringes_outside_margins,
7702 scroll_bar_width, and vertical_scroll_bar_type for saving
7703 per-window display elements.
7704 (Fset_window_configuration): Restore display margins, fringes,
7705 and scroll bar settings. This fixes a bug which caused display
7706 margins to be discarded when saving and restoring a window
7707 configuration.
7708 (save_window_save): Save display margins, fringes, and scroll bar
7709 settings. This fixes a bug which caused display margins to be
7710 discarded when saving and restoring a window configuration.
7711 (Fset_window_margins): Do nothing if display margins are not
7712 really changed. Otherwise, call adjust_window_margins to ensure
7713 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7714 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7715 the width of the window.
7716 (Fset_window_fringes): New defun to allow user to specifically set
7717 this window's fringe widths and position vs. display margins.
cab27d04 7718 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7719 (Fset_window_scroll_bars): New defun to allow user to specifically
7720 set this window's scroll bar width and position.
7721 (Fwindow_scroll_bars): New defun to return window's actual scroll
7722 bar settings.
7723 (compare_window_configurations): Also compare display margins,
7724 fringes, and scroll bar settings.
7725 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7726
7727 * xdisp.c: Make (many) trivial substitutions for renamed and
7728 new macros in dispextern.h, frame.h and window.h.
7729 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7730 and new fringe vs. display margin position. Note that returned
0416870b
KS
7731 value is no longer guaranteed to be a whole multiple of the frame
7732 column width, since per-window fringes may now be any width.
7733 (window_box_left_offset): New function like window_box_left, but
7734 value is relative to left border of window (rather than frame).
7735 (window_box_right_offset): New function like window_box_right,
7736 but value is relative to left border of window.
7737 (window_box_left): Adapt to per-window fringes and scroll bars,
7738 and new fringe vs. display margin position. Simplify by using
7739 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7740 (window_box): Allow null args for unnecessary return values;
7741 change/simplify relevant callers.
7742 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7743 and new fringe vs. display margin position.
7744 Use window_box_left_offset and window_box_right_offset
0416870b 7745 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7746 scroll bars, and new fringe vs. display margin position.
7747 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7748 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7749 fringe vs. display margin position.
7750 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7751 (redisplay_window): Adapt to per-window scroll bars.
7752 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7753 bars, and new fringe vs. display margin position.
7754 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7755 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7756 bars, and new fringe vs. display margin position. Fix bug which
7757 increased total width of full_width rows by width of scroll bars
7758 although window's total width already includes that.
7759 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7760 (expose_area): Simplify using window_box_left_offset.
7761 (x_draw_vertical_border): Handle per-window scroll bar settings,
7762 mixing windows with left, right and no scroll bars.
7763
7764 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7765 where it's used in x_list_fonts (for clarity).
7766 (frame_update_line_height): Remove unused function; functionality
7767 is now done directly when setting the default font in x_set_font.
7768
7769 * xfns.c: Make (many) trivial substitutions for renamed and
7770 new macros in dispextern.h, frame.h and window.h.
7771
7772 * xmenu.c: Make (some) trivial substitutions for renamed and
7773 new macros in dispextern.h, frame.h and window.h.
7774
7775 * xterm.h (struct x_output): Move members left_pos, top_pos,
7776 border_width, pixel_height, pixel_width, line_height,
7777 internal_border_width, vertical_scroll_bar_extra,
7778 left_fringe_width, right_fringe_width, fringe_cols,
7779 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7780 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7781 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7782 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7783 (PIXEL_WIDTH, PIXEL_HEIGHT)
7784 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7785 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7786 frame.h and renamed [see frame.h changes].
7787 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7788 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7789 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7790 and renamed [see frame.h changes].
9018a88e 7791
0416870b
KS
7792 * xterm.c: Make (several) trivial substitutions for renamed and
7793 new macros in dispextern.h, frame.h and window.h.
cab27d04 7794 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7795 (scroll_run): Adapt to new fringe position.
7796 (glyph_rect): Use window coordinates returned from
7797 window_from_coordinates rather than frame_to_window_pixel_xy.
7798 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7799 scroll-bars.
7800 (handle_one_xevent): Simplify a USE_GTK conditional.
7801 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7802 (fringes are now inside margins, i.e. always in the clipping area).
7803 All callers changed.
7804 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7805 directly, then call compute_fringe_widths. Don't call
7806 frame_update_line_height.
7807
7808 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7809 border_width, pixel_height, pixel_width, line_height,
7810 internal_border_width, vertical_scroll_bar_extra,
7811 left_fringe_width, right_fringe_width, fringe_cols,
7812 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7813 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7814 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7815 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7816 (PIXEL_WIDTH, PIXEL_HEIGHT)
7817 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7818 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7819 frame.h and renamed [see frame.h changes].
7820 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7821 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7822 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7823 and renamed [see frame.h changes].
9018a88e 7824
0416870b
KS
7825 * w32term.c: Make (several) trivial substitutions for renamed and
7826 new macros in dispextern.h, frame.h and window.h.
cab27d04 7827 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7828 (glyph_rect): Use window coordinates returned from
7829 window_from_coordinates rather than frame_to_window_pixel_xy.
7830 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7831 scroll-bars.
7832 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7833 (fringes are now inside margins, i.e. always in the clipping area).
7834 All callers changed.
7835 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7836 directly, then call compute_fringe_widths. Don't call
7837 frame_update_line_height.
7838
7839 * w32console.c: Make (few) trivial substitutions for renamed and
7840 new macros in dispextern.h, frame.h and window.h.
7841
7842 * w32fns.c: Make (many) trivial substitutions for renamed and
7843 new macros in dispextern.h, frame.h and window.h.
7844
7845 * w32menu.c: Make (few) trivial substitutions for renamed and
7846 new macros in dispextern.h, frame.h and window.h.
7847
7848 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7849 border_width, pixel_height, pixel_width, line_height,
7850 internal_border_width, vertical_scroll_bar_extra,
7851 left_fringe_width, right_fringe_width, fringe_cols,
7852 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7853 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7854 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7855 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7856 (PIXEL_WIDTH, PIXEL_HEIGHT)
7857 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7858 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7859 frame.h and renamed [see frame.h changes].
7860 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7861 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7862 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7863 and renamed [see frame.h changes].
9018a88e 7864
0416870b
KS
7865 * macterm.c: Make (several) trivial substitutions for renamed and
7866 new macros in dispextern.h, frame.h and window.h.
cab27d04 7867 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7868 (glyph_rect): Use window coordinates returned from
7869 window_from_coordinates rather than frame_to_window_pixel_xy.
7870 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7871 scroll-bars.
7872 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7873 (fringes are now inside margins, i.e. always in the clipping area).
7874 All callers changed.
7875 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7876 directly, then call compute_fringe_widths. Don't call
7877 frame_update_line_height.
7878
7879 * macfns.c: Make (several) trivial substitutions for renamed and
7880 new macros in dispextern.h, frame.h and window.h.
9018a88e 7881 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7882
7883 * macmenu.c: Make (few) trivial substitutions for renamed and
7884 new macros in dispextern.h, frame.h and window.h.
7885
7886 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7887 and line_height, and use corresponding new members in struct
7888 frame. All uses changed.
7889 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7890 superseeded by corresponding macros in frame.h.
7891
7892 * msdos.c: Make (several) trivial substitutions for renamed and
7893 new macros in dispextern.h, frame.h and window.h.
7894 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7895 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7896 (internal_terminal_init): No need to initialize line_height here;
7897 it now defaults to 1.
7898
9018a88e
SM
78992003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7900
7901 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7902 dropping `down' events.
7903
016bd3c0
AS
79042003-05-24 Andreas Schwab <schwab@suse.de>
7905
7906 * coding.c (find_safe_codings): Fix last change.
7907
4dacadcc
TTN
79082003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7909
7910 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7911
319830ce
SM
79122003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7913
9018a88e
SM
7914 * xdisp.c (display_mode_element): Increase max depth.
7915 Simplify the error handling code. Use a different error string
7916 for the case where we hit the depth limit.
7917
319830ce
SM
7918 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7919
7920 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7921
79222003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7923
7924 * intervals.c (get_local_map): Don't get char-property of previous
7925 point any more: get_pos_property already does it and better.
7926
c67de8ba
DL
79272003-05-21 Dave Love <fx@gnu.org>
7928
7929 [Merged from unicode branch.]
7930
7931 * xfns.c (x_window, x_window): Use use_xim.
7932
7933 * xterm.c (use_xim): Initialize.
7934 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7935 (x_term_init): Maybe set use_xim.
7936
7937 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7938
edd3ff1d
JR
79392003-05-21 Jason Rumney <jasonr@gnu.org>
7940
7941 * unexw32.c (_start): Remove _fmode initialization.
7942
7943 * emacs.c (main) [WINDOWSNT]: Move it here.
7944
463f55ee
DL
79452003-05-20 Dave Love <fx@gnu.org>
7946
7947 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7948
af253914
RS
79492003-05-19 Richard M. Stallman <rms@gnu.org>
7950
7951 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7952 as value for QCfont attribute.
7953 (realize_default_face): lface should already exist; crash if not.
7954 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7955
7956 * frame.c (Fignore_event): Doc fix.
7957
1d211019
KH
79582003-05-19 Kenichi Handa <handa@m17n.org>
7959
7960 * coding.c (decode_coding_string): Handle post-read-conversion
7961 even if the coding doesn't require decoding.
7962
4dd68254
RS
79632003-05-18 Richard M. Stallman <rms@gnu.org>
7964
7965 * callproc.c (Fcall_process_region): Doc fix.
7966
14d87dc9
SM
79672003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7968
deca5d96
SM
7969 * lread.c (Fload): Print a message if package is obsolete.
7970
14d87dc9
SM
7971 * window.c (Fselect_window): Add optional `norecord' arg.
7972 (select_window_1): Fold into Fselect_window.
7973 (select_window_norecord): New function.
7974 (temp_output_buffer_show): Use it. Preserve current buffer.
7975
7976 * window.h (Fselect_window): Update declaration.
7977
7978 * window.c (delete_window, Fother_window, Fset_window_configuration):
7979 * minibuf.c (read_minibuf):
7980 * macterm.c (x_new_focus_frame):
7981 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7982 * callint.c (Fcall_interactively):
7983 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7984
7985 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7986
78f52183
DK
79872003-05-17 David Kastrup <dak@gnu.org>
7988
7989 * process.c (read_process_output): Back out change from 2003-03-09.
7990
14d87dc9
SM
79912003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7992
7993 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7994
7995 * textprop.c (text_property_stickiness): New arg `buffer'.
7996
7997 * intervals.h (text_property_stickiness): New arg `buffer'.
7998 (get_pos_property): Declare.
7999
8000 * intervals.c (get_local_map): Use get_pos_property, to obey
8001 stickiness and empty overlays.
8002 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8003 (merge_properties, intervals_equal, merge_properties_sticky):
8004 Use XCAR, XCDR.
8005 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8006
1fd1cc2f
RS
80072003-05-17 Richard M. Stallman <rms@gnu.org>
8008
4f9f637a
RS
8009 * minibuf.c (read_minibuf): If buffer is empty, record the default
8010 in the history.
8011 (Fminibuffer_complete_word): When deleting the overlap, take account
8012 of its real position.
8013
8014 * fns.c (map_char_table): Fix previous change.
8015
1fd1cc2f
RS
8016 * syntax.c (find_defun_start):
8017 When open_paren_in_column_0_is_defun_start,
8018 return beginning of buffer.
8019
8020 * lisp.h (map_char_table): Declare added arg.
8021
8022 * fns.c (map_char_table): New arg TABLE gets the master table.
8023 All calls changed.
8024 Process default and inheritance, resorting to Faref if necessary.
8025
8026 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8027 (Faccessible_keymaps): Pass new arg to map_char_table.
8028
8029 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8030
8031 * casetab.c (set_case_table): Pass new arg to map_char_table.
8032
8033 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8034
8035 * lisp.h (specbinding_func): New typedef.
8036 (struct specbinding): Use specbinding_func, to put the `volatile'
8037 in the right place.
8038
8039 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8040 to avoid GCC warning.
14d87dc9 8041
b6189c3b 80422003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8043
14d87dc9 8044 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8045
35fb885d
SM
80462003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8047
8048 * keyboard.c (apply_modifiers): Don't fill the other cache.
8049
9a274fbd
SM
80502003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8051
c55b5fad
SM
8052 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8053
9a274fbd
SM
8054 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8055 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8056 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8057 (Fset_window_configuration, Fcurrent_window_configuration)
8058 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8059 (Fpos_visible_in_window_p, mark_window_cursors_off)
8060 (window_internal_height, window_internal_width, Frecenter)
8061 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8062 (replace_buffer_in_all_windows, init_window_once, init_window)
8063 (syms_of_window, keys_of_window): Move from lisp.h.
8064 * lisp.h: Move window.c declarations to window.h.
8065
8066 * bytecode.c: Include window.h.
8067 * emacs.c: Include window.h.
8068
14d87dc9 8069 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8070 (keyremap): Add `parent' field.
8071 (keyremap_step): Use it. Remove `parent' argument.
8072 (read_key_sequence): Setup and use the new `parent' field.
8073
fd93e331
SM
80742003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8075
8076 * keyboard.c (adjust_point_for_property): Ensure termination.
8077
1c4001a1
SM
80782003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8079
8080 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8081 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8082 duplicated handling of function-key-map and key-translation-map
8083 in read_key_sequence.
8084 (read_key_sequence): Use them.
8085
8086 * keyboard.c (adjust_point_for_property): Try harder to move point
8087 to the non-sticky end of an invisible property.
8088
8089 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8090 property intangible as well.
8091
780379b1
AS
80922003-05-10 Andreas Schwab <schwab@suse.de>
8093
8094 * xmenu.c (single_menu_item): Change last parameter to void* to
8095 avoid warning.
8096
ca2de342
RS
80972003-05-09 Richard M. Stallman <rms@gnu.org>
8098
8099 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8100 Bind Qinhibit_modification_hooks to t so there will be no GC.
8101 Rename local `tem' to `save_deactivate_mark'.
8102
8103 * eval.c (specpdl_ptr): Declare volatile.
8104 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8105 before doing the work of unbinding it.
8106
8107 * lisp.h (struct specbinding): Declare elements volatile.
8108 (specpdl_ptr): Declare volatile.
8109
8110 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8111
8112 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8113 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8114
347003be
DL
81152003-05-08 Dave Love <fx@gnu.org>
8116
8117 * coding.c (Vlast_coding_system_used): Doc fix.
8118
5adcec23
JR
81192003-05-07 Jason Rumney <jasonr@gnu.org>
8120
8121 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8122 when system does not support them.
8123
5fe3b8a4
SM
81242003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8125
8126 * fileio.c (Qwrite_region_annotate_functions): New var.
8127 (build_annotations): Use it to process the global part of the hook.
8128 (syms_of_fileio): Init and staticpro it.
8129
8130 * keyboard.c (safe_run_hooks_error): Display a message instead of
8131 silently ignoring the error.
8132
81332003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8134
8135 * keyboard.c (input_available_signal): Mark static.
8136 (menu_bar_items): Use map_keymap.
8137 (menu_bar_one_keymap): Remove.
8138 (menu_bar_item): Adjust arglist (for use in map_keymap).
8139 Properly hide a second binding when not both are keymaps.
8140
8141 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8142 (single_keymap_panes): Use it and map_keymap.
8143 (single_menu_item): Use skp as well.
8144
8145 * keymap.h (map_keymap_function_t): New type.
8146 (map_keymap): Declare.
8147
8148 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8149 (map_keymap_call, Fmap_keymap): New functions.
8150 (syms_of_keymap): Defsubr map-keymap.
8151
4b1b4443
JD
81522003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8153
8154 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8155 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8156 ..._with_mnemonic functions for menu items.
8157
1f816871
KH
81582003-05-01 Kenichi Handa <handa@m17n.org>
8159
8160 * coding.c (coding_system_accept_latin_extra_p): Delete this
8161 function.
8162 (find_safe_codings): Pay attention to
8163 the property tranlsation-table-for-encode of each codings.
8164 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8165
5ed6ba5b
SM
81662003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8167
8168 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8169
32c06229
SM
81702003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8171
8172 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8173
8174 * lisp.h (CHECK): Wrap args in parenthesis.
8175 (specbind): Fix doc: symbol = Qnil is not supported any more.
8176
8177 * bytecode.c (Fbyte_code) <unwind-protect>:
8178 Use Fprogn rather than 0 and Qnil.
8179
8180 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8181 `double', and `triple' modifiers as well.
8182
ed3c3314
RS
81832003-04-30 Richard M. Stallman <rms@gnu.org>
8184
8185 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8186
8187 * alloc.c (abort_on_gc): New variable.
8188 (Fgarbage_collect): Abort if abort_on_gc is set.
8189
8190 * lisp.h (abort_on_gc): Add decl.
8191
8192 * eval.c (Fsignal): Clear abort_on_gc.
8193
8194 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8195 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8196
8197 * xdisp.c (move_it_vertically_backward): Do the final big else
8198 even if nlines is 0.
8199
8200 * xdisp.c (redisplay_internal): Finish the per-frame loop
8201 even if redisplay is suspended by input.
8202
0b325c12
AC
82032003-04-24 Andrew Choi <akochoi@shaw.ca>
8204
8205 * macterm.c (x_list_fonts): Return all fonts that match if
8206 maxnames = -1.
8207
4e837cd0
KH
82082003-04-25 Kenichi Handa <handa@m17n.org>
8209
8210 * syntax.c (skip_chars): Fix previous change.
8211
9af7511a
KH
82122003-04-24 Kenichi Handa <handa@m17n.org>
8213
8214 * syntax.c (skip_chars): Make the code faster by using the common
8215 technique of *p, *stop, and *endp.
8216
e3b2c21f
JD
82172003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8218
8219 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8220 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8221 being updated.
8222
32c06229
SM
82232003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8224
8225 * eval.c (Fapply): Undo last change and add a comment about why.
8226
c6464167
MB
82272003-04-18 Miles Bader <miles@gnu.org>
8228
8229 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8230 pickier PARSE_MULTIBYTE_SEQ.
8231
e509f168
SM
82322003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8233
8234 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8235 Use XCDR, XCAR, CONSP.
8236 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8237 (Fapply): Remove unnecessary GCPRO.
8238
8239 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8240
8241 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8242
8243 * buffer.h: Don't hardcode BEG==1.
8244
8245 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8246
5ceea398
RS
82472003-04-16 Richard M. Stallman <rms@gnu.org>
8248
8249 * xdisp.c (try_window, try_window_reusing_current_matrix):
8250 When at end of window, set window_end_pos to Z-ZV.
8251
8252 * buffer.c (Foverlay_recenter): Doc fix.
8253
e509f168
SM
82542003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8255
8256 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8257
d243e605
AC
82582003-04-14 Andrew Choi <akochoi@shaw.ca>
8259
8260 * macterm.c (mac_check_for_quit_char): Don't check more often than
8261 once a second.
8262
6901b111
SM
82632003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8264
8265 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8266 specially, so that they can't hide an implicit switch-frame event.
8267 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8268 (head_table): Use switch-frame as event_kind for select-window.
8269 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8270
8271 * editfns.c (Fformat): Lisp_Object/int mixup.
8272 (format2): Remove unused var numargs.
8273
e301806f 82742003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8275
6901b111 8276 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8277 (Qafter_insert_file_set_coding): New variable.
8278 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8279 for after-insert-file-adjust-coding-function.
8280 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8281 instead of Vafter_insert_file_adjust_coding_function.
8282
38914424
KH
82832003-04-11 Kenichi Handa <handa@m17n.org>
8284
8285 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8286
8287 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8288 string. Callers changed.
8289
82902003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8291
6901b111 8292 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8293 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8294 (Finsert_file_contents):
8295 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8296 decode-format.
8297
f979dc05
JD
82982003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8299
8300 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8301 get GtkAdjustment as widget now is a GtkRange.
8302
8303 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8304 GtkRange to avoid memory leak.
8305
f8c6b4c2 83062003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8307
50ebc53d
KH
8308 * xfaces.c (Vface_font_rescale_alist): New variable.
8309 (struct font_name): New member rescale_ratio.
8310 (font_rescale_ratio): New function.
6901b111 8311 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8312 (better_font_p): On comparing point sized, pay attention to
8313 recale_ratio member of fonts.
8314 (build_scalable_font_name): Reflect font->rescale_ratio in the
8315 font name.
6901b111 8316 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8317
cb98871c
KH
8318 * lread.c (read1): Before calling index, check if the 2nd
8319 arguemnt is in ASCII range.
8320
4773b8ca
RS
83212003-04-08 Richard M. Stallman <rms@gnu.org>
8322
b0ada147
RS
8323 * fileio.c (Ffile_symlink_p): Doc fix.
8324
8325 * editfns.c (Fformat): Translate positions of text properties
8326 in the format string to apply them to the result.
8327
4773b8ca
RS
8328 * fileio.c (Finsert_file_contents): Doc fix.
8329 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8330
83312003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8332
4773b8ca
RS
8333 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8334
e8f25745 83352003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8336
e8f25745
ST
8337 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8338 that self-contained application finds libexec files.
8339
f8c6b4c2 83402003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8341
6901b111
SM
8342 * coding.c (code_convert_region_unwind):
8343 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8344 (code_convert_region): If post-read-conversion function changed
8345 the value of last-coding-sytem, keep the new value in
8346 coding->symbol so that it won't be overridden.
8347 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8348 (coding_system_accept_latin_extra_p): New function.
8349 (find_safe_codings): Pay attention to characters registered in
8350 latin-extra-code-table.
2310d84c 8351
39c9a034
TTN
83522003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8353
8354 * Makefile.in (md5.o): Add missing dependency info.
8355
eb67c5d6
RS
83562003-04-06 Richard M. Stallman <rms@gnu.org>
8357
8358 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8359
8360 * marker.c (verify_bytepos): New function.
8361
8362 * intervals.c (set_intervals_multibyte_1): When becoming
8363 multibyte, adjust right and left child sizes to a whole set of
8364 characters. If an interval gets zero total-length, delete it.
8365 If an interval consists of just its children, delete one of them.
8366
8367 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8368 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8369
eb67c5d6
RS
8370 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8371 All calls deleted.
8372 (lisp_malloc): Do the work here directly.
8373
b1f81fc5
JB
83742003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8375
8376 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8377 char tables.
8378
83792003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8380
8381 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8382 destructively change "%S" to "%s".
8383
774666fb
MB
83842003-04-03 Miles Bader <miles@gnu.org>
8385
8386 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8387 always set.
8388
19c37f01
DL
83892003-04-01 Dave Love <fx@gnu.org>
8390
8391 * xfns.c (xpm_lookup_color): Grok "opaque".
8392
2f4b24c3
AC
83932003-03-31 Andrew Choi <akochoi@shaw.ca>
8394
8395 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8396 parent window ID.
8397
8398 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8399
8400 * macterm.h (struct mac_output): Define x_pixels_diff and
8401 y_pixels_diff.
b1f81fc5 8402
9443fcf6
JB
84032003-03-31 Juanma Barranquero <lektu@terra.es>
8404
8405 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8406 blockinput.h and files included from it.
8407
e072891b
KS
84082003-03-31 Kim F. Storm <storm@cua.dk>
8409
8410 The following changes consolidates the common code related to
8411 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8412 files into frame.c.
9443fcf6 8413
e072891b
KS
8414 * frame.c: Include blockinput.h.
8415 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8416 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8417 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8418 related vars here.
8419 (struct frame_parm_table, frame_parms): New table for describing
8420 frame parameters and their associated Q-variable.
8421 The order of the parameters corresponds to the sequence of the
8422 frame_parm_handlers table in redisplay_interface.
8423 (x_fullscreen_move, x_set_frame_parameters)
8424 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8425 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8426 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8427 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8428 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8429 Generic functions for processing of frame parameters.
8430 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8431 (display_x_get_resource, x_get_resource_string): Functions for
8432 generic access to X resources.
8433 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8434 (x_default_parameter, Fx_parse_geometry): Functions for generic
8435 access to frame parameters.
6901b111
SM
8436 (x_figure_window_size): Generic calculation of frame size.
8437 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8438 (syms_of_frame): Intern and staticpro frame parameter variables.
8439 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8440 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8441
e072891b
KS
8442 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8443 parameter related vars defined in frame.c.
8444 (EMACS_CLASS): Define here.
8445 (enum FULLSCREEN_*): Define here.
8446 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8447 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8448 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8449 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8450 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8451 (x_set_visibility, x_set_autoraise, x_set_autolower)
8452 (x_set_unsplittable, x_set_vertical_scroll_bars)
8453 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8454 (x_figure_window_size): Add prototypes.
8455
8456 * dispextern.h (frame_parm_handler): New typedef.
8457 (struct redisplay_interface): New member frame_parm_handlers.
8458 (enum resource_types): Move declaration here.
8459 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8460 (x_default_parameter): Add prototypes.
8461
8462 * window.c: Remove extern decl for frame parameter vars.
8463 (change_window_heights): New generic function;
8464 replaces x_change_window_heights. All users changed.
8465
8466 * window.h (change_window_heights): Add prototype.
8467
8468 * xfaces.c: Remove extern decl for frame parameter vars.
8469
8470 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8471 (struct w32_display_info): Fix type of xrdb member.
8472 (enum FULLSCREEN_*): Remove.
8473 Remove prototypes for generic functions (in frame.h).
8474
8475 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8476 parameters now defined in frame.h and frame.c.
f63fd14e 8477 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8478 (enum x_frame_parms): Remove (bogus, unused enum).
8479 (check_x_display_info): Make non-static (for frame.c).
8480 (struct x_frame_parm_table, x_frame_parms): Remove.
8481 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8482 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8483 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8484 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8485 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8486 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8487 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8488 Remove. Use generic functions instead.
8489 (enum resource_types): Remove.
8490 (x_set_scroll_bar_default_width): New global function (for frame.c).
8491 (Fx_create_frame): Depend on x_figure_window_size to add space for
8492 toolbar and setup size_hint_flags.
8493 (x_frame_parm_handlers): New table for redisplay_interface.
8494 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8495
e072891b 8496 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8497 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8498 (x_redisplay_interface): Add x_frame_parm_handlers member.
8499
8500 * w32gui.h (XrmDatabase): New (dummy) typedef.
8501
8502 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8503 (struct w32_display_info): Fix type of xrdb member.
8504 (enum FULLSCREEN_*): Remove.
8505 (x_fullscreen_adjust): Remove prototype.
8506
8507 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8508 parameters now defined in frame.h and frame.c.
f63fd14e 8509 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8510 (enum x_frame_parms): Remove (bogus, unused enum).
8511 (check_x_display_info): Make non-static (for frame.c).
8512 (struct x_frame_parm_table, x_frame_parms): Remove.
8513 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8514 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8515 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8516 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8517 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8518 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8519 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8520 Remove. Use generic functions instead.
8521 (enum resource_types): Remove.
8522 (x_set_scroll_bar_default_width): New global function (for frame.c).
8523 (Fx_create_frame): Depend on x_figure_window_size to add space for
8524 toolbar and setup size_hint_flags.
8525 (w32_frame_parm_handlers): New table for redisplay_interface.
8526 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8527
e072891b
KS
8528 * w32term.c: Remove unnecessary extern declarations.
8529 (x_fullscreen_adjust): Remove. Use generic instead.
8530 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8531
8532 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8533
8534 * macgui.h (XrmDatabase): New (dummy) typedef.
8535
8536 * macterm.h (EMACS_CLASS): Remove.
8537 (struct mac_display_info): Add xrdb member.
8538 (struct mac_output): Add want_fullscreen member.
8539
8540 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8541 parameters now defined in frame.h and frame.c.
f63fd14e 8542 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8543 (check_x_display_info): Make non-static (for frame.c).
8544 (struct x_frame_parm_table, x_frame_parms): Remove.
8545 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8546 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8547 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8548 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8549 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8550 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8551 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8552 Remove. Use generic functions instead.
8553 (enum resource_types): Remove.
8554 (x_set_scroll_bar_default_width): New global function (for frame.c).
8555 (mac_frame_parm_handlers): New table for redisplay_interface.
8556 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8557
e072891b
KS
8558 * macterm.c: Remove unnecessary extern declarations.
8559 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8560
3e6a560b
KS
8561 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8562 included from it (atimer.h and systime.h).
8563
7b7b454e
AS
85642003-03-30 Andreas Schwab <schwab@suse.de>
8565
8566 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8567 parameters for shift_glyphs_for_insert.
8568
8569 * macterm.c (x_redisplay_interface): Add missing entry for
8570 draw_vertical_window_border.
8571
beb402de
KG
85722003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8573
8574 * fileio.c (Fexpand_file_name): In the no-handler case, after
8575 expanding, look again for a handler and invoke it. This is needed
8576 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8577 expansion produces "/user@host:/bar/../baz" which needs to be
8578 expanded again for the finame result "/user@host:/baz".
8579
b676f356
JD
85802003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8581
8582 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8583 of area to be redrawn for better performance.
8584
3c671a56
SM
85852003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8586
8587 * xterm.c (take_vertical_position_into_account): Remove.
8588 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8589 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8590 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8591 (x_set_toolkit_scroll_bar_thumb): Simplify.
8592 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8593 (XTread_socket): Remove unused var.
8594 (x_make_frame_invisible): Replace goto with else.
8595
8596 * xdisp.c (set_vertical_scroll_bar): New fun.
8597 (redisplay_window): Use it.
8598
84f2e615
RS
85992003-03-26 Richard M. Stallman <rms@gnu.org>
8600
8601 * xdisp.c (update_tool_bar): Recompute tool bar if
8602 update_mode_lines is set. Set w->update_mode_line
8603 only if the tool bar contents actually change.
8604 (update_menu_bar): Undo previous change.
8605
70b6104c
JD
86062003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8607
5fd6f727
JD
8608 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8609 (xg_frame_set_char_size): Calculate scroll bar width before frame
8610 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8611 (xg_separator_p): Check for all documented separator types.
8612 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8613 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8614
70b6104c
JD
8615 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8616 so tool bar gets updated.
8617
d9b36d19
SM
86182003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8619
8620 * data.c (store_symval_forwarding): Re-instate part of the code
8621 that was deleted with too much enthusiasm.
8622
86232003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8624
8625 * data.c (store_symval_forwarding): Delete special read-only
8626 hack for type == -1, since we now use ->constant instead.
8627 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8628
8629 * buffer.c (overlays_in): Declare static.
8630 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8631 `constant' field rather than the variable's `type' field.
8632
365fa1b3
AC
86332003-03-24 Andrew Choi <akochoi@shaw.ca>
8634
8635 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8636
8637 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8638
8639 * fns.c [MAC_OSX]: Do not redefine vector.
8640
8641 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8642
8643 * macgui.h: Remove definition of No_Cursor.
8644
d9b36d19 8645 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8646
8647 * xdisp.c: Define No_Cursor.
8648 (x_write_glyphs, notice_overwritten_cursor)
8649 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8650 (note_mouse_highlight): Remove Mac-specific code.
8651 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8652
c0bcce6f
JPW
86532003-03-24 John Paul Wallington <jpw@gnu.org>
8654
8655 * xdisp.c (redisplay_window): If mini window's buffer is not
8656 empty, then redisplay it like other windows.
8657
a526b96c
KS
86582003-03-23 Kim F. Storm <storm@cua.dk>
8659
8660 * w32term.c (w32_draw_window_cursor): Fix last change.
8661
37ab321e
KH
86622003-03-23 Kenichi Handa <handa@m17n.org>
8663
a526b96c
KS
8664 * alloc.c (make_string_from_bytes, make_specified_string):
8665 Add `const' for the arg CONTENTS.
37ab321e
KH
8666
8667 * lisp.h (make_string_from_bytes, make_specified_string):
8668 Prototypes adjusted.
8669
7863d625
JD
86702003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8671
a526b96c 8672 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8673
7863d625
JD
8674 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8675 (XG_SB_RANGE): New define.
8676
8677 * gtkutil.c (xg_fixed_handle_expose): New function.
8678 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8679 expose events.
8680 (xg_update_scrollbar_pos): Take two more arguments, left and width
8681 of scroll bar including borders.
8682 Clear left and right part outside scroll bar separately as some
8683 themes have bars that are not an even number of pixels.
d9b36d19 8684 Don't set reallocate_redraws, don't call
7863d625
JD
8685 gdk_window_process_all_updates.
8686 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8687 so no need to change it. Calculate size and value with XG_SB_RANGE.
8688
d9b36d19
SM
8689 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8690 Pass left and width of scroll bar including borders to
7863d625
JD
8691 xg_update_scrollbar_pos.
8692
af0ad939
TTN
86932003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8694
8695 * Makefile.in: Make sure space precedes end-of-line backslashes.
8696
b22139fd
KS
86972003-03-22 Kim F. Storm <storm@cua.dk>
8698
8699 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8700 Add generic versions here. Remove system specific versions
8701 defined elsewhere.
8702
8703 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8704 Add prototypes.
8705
6e6410cf
KS
8706 * xterm.h (STORE_NATIVE_RECT): New macro.
8707
5c9cc435
KS
87082003-03-21 Kim F. Storm <storm@cua.dk>
8709
00c64fab
SM
8710 * xdisp.c (get_glyph_string_clip_rect):
8711 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8712
8713 * dispextern.h (struct redisplay_interface): Add active_p
8714 argument to draw_window_cursor member. All uses changed.
8715
acd37560
KS
87162003-03-21 Kim F. Storm <storm@cua.dk>
8717
8718 The following changes consolidate code related to writing and
8719 inserting glyphs, exposing frame, the tool bar, the mouse face,
8720 the output cursor, and help echo from xterm.c, w32term.c and
8721 macterm.c into xdisp.c. It also generalizes the use of the
8722 window_part enum instead of using numeric values throughout.
af0ad939 8723
acd37560
KS
8724 * xdisp.c: Consolidate gui-independent code here.
8725 Include keymap.h.
8726 (Qhelp_echo): Import.
8727 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8728 (help_echo_string, help_echo_window, help_echo_object)
8729 (previous_help_echo_string, help_echo_pos): Declare here.
8730 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8731 (estimate_mode_line_height): Define here. Handle windowing
8732 systems directly (without using estimate_mode_line_height_hook).
8733 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8734 (update_window_cursor, update_cursor_in_window_tree)
8735 (fast_find_position, fast_find_string_pos)
8736 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8737 (expose_area, expose_line, expose_overlaps, expose_window)
8738 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8739 declared static as they are only used locally in xdisp.c.
8740 (draw_glyphs): Rename from x_draw_glyphs and make static.
8741 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8742 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8743 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8744 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8745 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8746 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8747 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8748 (note_mouse_highlight, x_clear_window_mouse_face)
8749 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8750 (x_intersect_rectangles): New generic functions for use by xdisp.c
8751 and GUI front-ends.
8752 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8753 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8754
8755 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8756 (NativeRectangle): Generic typedef for rectangle type.
8757 (enum window_part): Move here from window.c.
8758 (struct redisplay_interface): New members flush_display_optional,
8759 define_frame_cursor, clear_frame_area, draw_window_cursor,
8760 draw_vertical_window_border, shift_glyphs_for_insert.
8761 Rename member clear_mouse_face to clear_window_mouse_face.
8762 (estimate_mode_line_height_hook): Remove hook.
8763 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8764 (tool_bar_item_info): Remove prototype.
8765 (help_echo_string, help_echo_window, help_echo_object)
8766 (previous_help_echo_string, help_echo_pos)
8767 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8768 (x_stretch_cursor_p, output_cursor): Declare extern.
8769 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8770 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8771 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8772 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8773 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8774 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8775 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8776 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8777 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8778 Add prototypes.
8779 (mode_line_string, marginal_area_string): Fix prototypes.
8780
8781 * window.c (enum window_part): Move to dispextern.h.
8782 (coordinates_in_window): Use enum window_part member names
8783 instead of numbers to describe return value.
8784 (struct check_window_data): Change part member to window_part.
8785 (check_window_containing): Return window_part unaltered.
8786 (window_from_coordinates): Change part arg from int to enum
8787 window_part. Allow part arg to be null. All users changed.
8788
8789 * window.h (window_from_coordinates): Fix prototype.
8790
8791 * term.c (estimate_mode_line_height): Move to xdisp.c.
8792
8793 * keyboard.c (make_lispy_event): Use enum window_part.
8794
8795 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8796 window_part instead of int in arg list. Users changed.
8797
8798 * xterm.h (No_Cursor): Declare as None for X.
8799 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8800
acd37560
KS
8801 * xterm.c: Remove consolidated defines and code.
8802 (BETWEEN): Remove unused macro.
8803 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8804 (x_define_frame_cursor, x_clear_frame_area)
8805 (x_draw_window_cursor): New X-specific functions for RIF.
8806 (x_redisplay_interface): Add new members.
8807
8808 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8809
8810 * w32term.h (struct w32_output): Remove cross_cursor member.
8811
8812 * w32term.c: Remove consolidated defines and code.
8813 (BETWEEN): Remove unused macro.
8814 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8815 (w32_define_frame_cursor, w32_clear_frame_area)
8816 (w32_draw_window_cursor): New W32-specific functions for RIF.
8817 (w32_redisplay_interface): Add new members.
8818
a64387ee 8819 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8820 (XRectangle): Add X compatible rectangle type.
8821 (NativeRectangle): Declare as RECT for W32.
8822 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8823
8824 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8825
8826 * w32console.c: Remove consolidated defines and code.
af0ad939 8827
acd37560
KS
8828 * msdos.h (Display_Info): Add generic typedef.
8829
8830 * msdos.c: Remove consolidated defines and code.
8831 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8832
8833 * macterm.h (struct mac_output): Replace member cross_cursor by
8834 hand_cursor.
8835 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8836
8837 * macterm.c: Remove consolidated defines and code.
8838 (BETWEEN): Remove unused macro.
8839 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8840 (mac_define_frame_cursor, mac_clear_frame_area)
8841 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8842 (x_redisplay_interface): Add new members.
8843
8844 * macgui.h (No_Cursor): Define as 0 for Mac.
8845 (XRectangle): Add X compatible rectangle type.
8846 (NativeRectangle): Declare as Rect for Mac.
8847 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8848
204ccab1
KS
8849 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8850 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8851
9443fcf6 8852 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8853 included from it. Add dependency on keymap.h.
8854
8855 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8856
8ba01a70 88572003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8858
8859 * fileio.c (Fexpand_file_name): Fix previous change.
8860
8ba01a70 88612003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8862
8863 * fileio.c (Ffile_name_directory): Reconstruct file name by
8864 make_specified_string.
8865 (Ffile_name_nondirectory, Ffile_name_as_directory)
8866 (Fdirectory_file_name, Fexpand_file_name)
8867 (Fsubstitute_in_file_name): Likewise.
8868 (Fread_file_name): Compare decoded homedir with DIR and
8869 DEFAULT_FILENAME.
8870
8871 * alloc.c (make_specified_string): If NCHARS is negative, count
8872 the number of characters.
8873
19536747
JD
88742003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8875
de38ae5a
JD
8876 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8877 all widgets.
8878
19536747
JD
8879 * gtkutil.h: Removed xg_ignore_next_thumb.
8880
37ab321e 88812003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8882
8883 * coding.c (Vchar_coding_system_table): Remove this variable.
8884 (Vcoding_system_safe_chars): New variable.
8885 (intersection): Remove this function.
8886 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8887 all codings in SAFE_CODINGS.
00c64fab 8888 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8889 find_safe_codings. Get generic coding systems from
8890 Vcoding_system_safe_chars.
8891 (Fdefine_coding_system_internal): New function.
8892 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8893 Initialize and staticpro Vcoding_system_safe_chars.
8894
17097258
JD
88952003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8896
2a2071c3
JD
8897 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8898 equal old values before updating.
8899
17097258
JD
8900 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8901
8902 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8903
89042003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8905
8906 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8907 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8908 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8909 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8910 (xg_create_scroll_bar): Pass bar to button event callback.
8911 (xg_find_top_left_in_fixed): New function.
8912 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8913 whole scroll bar area. Get old position with
8914 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8915 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8916 dragging is in progress. Calculate whole as for Motif.
8917 Remove code that saved last values. Call gtk_range functions to
8918 set scroll bar sizes.
8919
8920 * gtkutil.h: Removed xg_ignore_next_thumb.
8921
8cb9dfbf
JB
89222003-03-17 Juanma Barranquero <lektu@terra.es>
8923
8924 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8925 and files included from it.
8926
00c64fab
SM
89272003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8928
8929 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8930 multiple occurrences of the same keymap under different prefixes.
8931 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8932
c45bb3b2
JR
89332003-03-16 Jason Rumney <jasonr@gnu.org>
8934
8935 * w32gui.h: Use HDC for Display.
8936
8937 * w32term.c (w32_encode_char): Prevent double-byte chars from
8938 crashing Emacs.
8939
8940 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8941 as binary.
8942
2a6d0874
JB
89432003-03-16 Juanma Barranquero <lektu@terra.es>
8944
8945 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8946
03eb5fab
KS
89472003-03-16 Kim F. Storm <storm@cua.dk>
8948
8949 The following changes consolidate some of the gui-independent
8950 parts of the processing and drawing of "glyph strings" from
8951 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8952
03eb5fab
KS
8953 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8954 21 bits (this reduces number of faces from 4M to 2M).
8955 Replace W32 specific w32_font_type member (2 bits) by generic
8956 font_type member (3 bits) for portability.
8957 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8958 (enum draw_glyphs_face): Define here.
8959 (struct glyph_string): Define here. Merge W32 and X versions.
8960 (struct redisplay_interface): New members per_char_metric,
8961 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8962 (VCENTER_BASELINE_OFFSET): Define here.
8963 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8964 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8965
8966 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8967 (dump_glyph_string): Moved here.
8968 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8969 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8970 (fill_composite_glyph_string, fill_glyph_string)
8971 (fill_image_glyph_string, fill_stretch_glyph_string)
8972 (left_overwritten, left_overwriting, right_overwritten)
8973 (right_overwriting, get_char_face_and_encoding)
8974 (set_glyph_string_background_width, compute_overhangs_and_x)
8975 (append_glyph, append_composite_glyph, produce_image_glyph)
8976 (take_vertical_position_into_account, append_stretch_glyph)
8977 (produce_stretch_glyph): New generic functions (based on X version).
8978 Call platform specific functions through rif.
8979 (INIT_GLYPH_STRING): New macro, hides W32 details.
8980 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8981 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8982 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8983 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8984 (notice_overwritten_cursor):
8985 Generic functions exported to platform modules. Users changed.
8986
8987 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8988 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8989 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8990 New macros for consolidated code.
2a6d0874 8991
03eb5fab
KS
8992 * xterm.c: Remove consolidated defines and code.
8993 (x_per_char_metric, x_encode_char)
8994 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8995 (x_redisplay_interface): Add new members.
8996
8997 * w32gui.h (Display): Add dummy typedef for consolidation.
8998 (XChar2b): Define alias for wchar_t for consolidation.
8999 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9000
9001 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9002 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9003 New macros for consolidation.
9004
fad49844 9005 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9006 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9007 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9008 (w32_per_char_metric): Change font_type arg to int for RIF.
9009 (w32_encode_char): Return int according to RIF requirements.
9010 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9011 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9012 x_get_glyph_overhangs.
9013 (w32_redisplay_interface): Add new members.
9014
9015 * macgui.h (XChar2b): Move typedef here for consolidation.
9016 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9017
9018 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9019 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9020 consolidation.
9021
9022 * macterm.c: Remove consolidated defines and code.
9023 (mac_per_char_metric): New function for RIF.
00c64fab 9024 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9025 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9026 (x_redisplay_interface): Add new members.
9027
00c64fab
SM
90282003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9029
9030 * keymap.c (Vmenu_events): New var.
9031 (syms_of_keymap): Initialize it.
9032 (where_is_internal): Check more carefully what is a menu event.
9033
225c7a07
RS
90342003-03-14 Richard M. Stallman <rms@gnu.org>
9035
9036 * lread.c (read1): After #!, exit loop on eof.
9037
cea9be54
JD
90382003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9039
9ea0e54d
JD
9040 * gtkutil.h: Add declaration for xg_frame_cleared.
9041
0cb35f4e
JD
9042 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9043
cea9be54
JD
9044 * gtkutil.c (struct xg_last_sb_pos): New structure.
9045 (handle_fixed_child): New function.
9046 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9047 and force a redraw on them.
9048 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9049 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9050 so we can avoid unneeded redraws.
9051 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9052 and force a redraw on the scroll bar.
9053 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9054 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9055 (xg_frame_cleared): New function.
cea9be54 9056
20b853f3
KH
90572003-03-13 Kenichi Handa <handa@m17n.org>
9058
9059 * coding.c (Fdetect_coding_region): Fix docstring.
9060 (Fdetect_coding_string): Fix docstring.
9061
7a555aff
AS
90622003-03-13 Andreas Schwab <schwab@suse.de>
9063
25cc0080
AS
9064 * gtkutil.c: Add prototype for create_menus.
9065
30225431
AS
9066 * data.c (long_to_cons): Fix type of top.
9067
9068 * xselect.c (selection_data_to_lisp_data): Use int instead of
9069 long for an integer of size 4.
9070
7a555aff 9071 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9072 (xg_tool_bar_help_callback): Likewise.
7a555aff 9073
a3e4741f
AS
90742003-03-12 Andreas Schwab <schwab@suse.de>
9075
9076 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9077
9668be7c
KS
90782003-03-12 Kim F. Storm <storm@cua.dk>
9079
03eb5fab 9080 The following changes consolidate the fringe handling from
9668be7c 9081 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9082
9668be7c
KS
9083 * xdisp.c: Consolidate fringe handling code here.
9084 (left_bits, right_bits, continued_bits, continuation_bits)
9085 (ov_bits, zv_bits): Define fringe bitmaps.
9086 (fringe_bitmaps): New array holding fringe bitmaps.
9087 (draw_fringe_bitmap): Draw a specific bitmap; call display
9088 specific drawing routine via rif->draw_fringe_bitmap.
9089 (draw_row_fringe_bitmaps): Generic replacement for
9090 x_draw_row_fringe_bitmaps; all callers changed.
9091 (compute_fringe_widths): Generic replacement for
9092 x_compute_fringe_widths; all callers changed.
9093
9094 * dispextern.h (enum fringe_bitmap_type): Define here.
9095 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9096 (fringe_bitmaps): Declare extern.
9097 (struct redisplay_interface): New member draw_fringe_bitmap.
9098 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9099
9100 * xterm.c: Remove generic fringe code.
9101 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9102 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9103
9104 * w32term.c: Remove generic fringe code.
9105 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9106 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9107
9668be7c
KS
9108 * macterm.c: Remove generic fringe code.
9109 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9110 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9111
00a88f32
SM
91122003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9113
9114 * print.c (Fprin1_to_string): Return unibyte string if possible.
9115
1d1de695
DK
91162003-03-09 David Kastrup <dak@gnu.org>
9117
9118 * process.c (read_process_output): We have allocated enough space
9119 for readmax and carryover, so actually use the alloted space.
9120
257f40f2
JD
91212003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9122
9123 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9124 toolkit scrollbar click.
9125
9126 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9127 for USE_GTK.
9128 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9129 also.
9130 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9131 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9132
78819ebb 9133 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9134
9135 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9136 (xg_tool_bar_item_expose_callback): New function.
9137 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9138 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9139 on the tool bar widget.
9140 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9141 to expose on the tool bar item widgets.
9142
15213141
JD
91432003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9144
26b74a0b 9145 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9146 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9147 deleted from the image cache).
9148
15213141
JD
9149 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9150 the event isn't for a frame (i.e. for dialogs).
9151
20b853f3 91522003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9153
9154 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9155 composition components reaches the limit, terminate composing.
9156 (COMPOSITION_OK): New macro.
00a88f32 9157 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9158 composition is found.
9159 (coding_restore_composition): Adjust the number of composition
9160 components if it is not sane.
9161
c9029fe5
JB
91622003-03-06 Juanma Barranquero <lektu@terra.es>
9163
9164 * w32term.h (struct w32_display_info): Add xrdb member to support
9165 passing resources via -xrm on Windows.
9166
9167 * w32term.c (w32_make_rdb): New function.
9168 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9169 struct. Delete leftover code.
9170
9171 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9172 for resources passed on the command line.
9173
9174 * w32reg.c (w32_get_rdb_resource): New function.
9175 (x_get_string_resource): Use it, so resources passed with -xrm
9176 supercede the ones in the registry.
9177
9d00001f
JD
91782003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9179
9180 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9181 instead of x_top_window_to_frame.
9182
ca2417b9
JD
91832003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9184
9185 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9186 when restarting Emacs.
9187
5b20caf0
RS
91882003-03-03 Richard M. Stallman <rms@gnu.org>
9189
9190 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9191 to run kill-buffer-query-functions.
9192 (Qkill_buffer_query_functions): New var.
9193 (syms_of_buffer): Init and staticpro it.
9194
58e91b77
JD
91952003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9196
9197 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9198
932357b4
KS
91992003-02-25 Kim F. Storm <storm@cua.dk>
9200
9201 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9202 If centering point failed to make whole line visible and vscroll
9203 is non-zero, disable vscroll and try centering point again.
9204
9205 * lread.c (read1): Accept `single space' syntax like (? x).
9206
bb8db7e1
JD
92072003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9208
9209 * keyboard.c (cancel_hourglass_unwind): Surround with
9210 #ifdef HAVE_X_WINDOWS
9211
47d77aab
KH
92122003-02-25 Kenichi Handa <handa@m17n.org>
9213
9214 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9215 process only when "subprocesses" is defined.
9216
6a097c0c
SM
92172003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9218
9219 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9220
0b063c27
JB
92212003-02-24 Juanma Barranquero <lektu@terra.es>
9222
d1135afc
JB
9223 * callint.c (fix_command): Declare as static void and move before
9224 Fcall_interactively.
9225
0b063c27
JB
9226 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9227 (syms_of_xdisp): Don't initialize Qwhen.
9228
0af912f0
JD
92292003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9230
9231 * keyboard.c (cancel_hourglass_unwind): New function.
9232 (command_loop_1): Cancel hourglass with unwind-protect.
9233
120d0a23
RS
92342003-02-23 Richard M. Stallman <rms@gnu.org>
9235
9236 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9237 Detect (when ... (region-beginning)) etc.
9238 (Fcall_interactively): Call fix_command.
9239 (Qif, Qwhen): New variables.
9240 (syms_of_callint): Init and staticpro them.
0b063c27 9241
120d0a23
RS
9242 * regex.c (print_partial_compiled_pattern): Output to stderr.
9243
4ece81a6
KG
92442003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9245
9246 * dired.c (directory_files_internal): Don't expand directory.
9247 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9248 instead. From Lars Hansen <larsh@math.ku.dk>.
9249
e52bd6b7
SM
92502003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9251
9252 * fns.c (string_to_multibyte): Remove unused var i.
9253 (Flanginfo): Fix int/Lisp_Object mixup.
9254 (void_call2): New fun.
9255 (Fmap_char_table): Use it in place of call2.
9256
9257 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9258
9259 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9260
9261 * keymap.c (copy_keymap_1): Make it static.
9262
9263 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9264
c33ef7c4
JB
92652003-02-22 David Ponce <david@dponce.com>
9266
9267 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9268
16782258
JD
92692003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9270
9271 * process.h: Removed subtty field from struct Lisp_Process.
9272
9273 * process.c (create_process): Remove setting of subtty.
9274 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9275 (Fprocess_running_child_p, process_send_signal):
9276 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9277 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9278
3abeca61
KG
92792003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9280
9281 * keymap.c (Fdefine_key): Doc fix.
9282
92a8ce63
JB
92832003-02-21 Juanma Barranquero <lektu@terra.es>
9284
9285 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9286
9287 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9288 POLLING_PROBLEM_IN_SELECT.
9289
9290 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9291 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9292
9293 * s/hpux10-20.h: New file.
9294
e52bd6b7
SM
9295 * process.c (wait_reading_process_input):
9296 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9297
20f1ef2e
KH
92982003-02-20 Kenichi Handa <handa@m17n.org>
9299
32d0a9dc
KH
9300 * fontset.c (check_fontset_name): If NAME is nil, return the
9301 default fontset.
9302 (override_font_info): New function.
e52bd6b7 9303 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9304 (Ffontset_info): If FONTSET is not the default fontset, merge
9305 FONTSET onto the copy of the default fontset, and work on that
9306 copy. Document that NAME nil means the default fontset.
9307 (Ffontset_font): Document that NAME nil means the default fontset.
9308
20f1ef2e
KH
9309 * process.c (setup_process_coding_systems): If the process's
9310 in/out descriptor is -1, do nothing.
9311
77d1daf2
AS
93122003-02-19 Andreas Schwab <schwab@suse.de>
9313
e52bd6b7
SM
9314 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9315 Add prototypes.
77d1daf2 9316
f9a45bb3
KH
93172003-02-19 Kenichi Handa <handa@m17n.org>
9318
9319 * xfaces.c (try_alternative_families): Try all scalable fonts if
9320 Vscalable_fonts_allowed is not Qt.
9321
72ecb43c
JD
93222003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9323
9324 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9325
ee5be7c3
JD
93262003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9327
9328 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9329 names.
9330
9331 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9332 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9333 x_face_list_fonts.
9334 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9335 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9336
4cd519a7
KS
93372003-02-18 Kim F. Storm <storm@cua.dk>
9338
068f9882
KS
9339 * lread.c (read1): Fix last change.
9340 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9341
7290a344
AC
93422003-02-18 Andrew Choi <akochoi@shaw.ca>
9343
9344 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9345
1f7fa69b
AS
93462003-02-18 Andreas Schwab <schwab@suse.de>
9347
9348 * window.c (window_scroll_pixel_based): Move outside a
9349 multi-glyph character before setting new window start.
9350
9351 * xdisp.c (in_display_vector_p): New function.
9352 * dispextern.h (in_display_vector_p): Declare.
9353
23e21195
KS
93542003-02-18 Kim F. Storm <storm@cua.dk>
9355
9356 * lread.c (read1): Fix and relax read syntax.
9357 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9358 Only recognize "," after dotted-pair dot if inside backquote.
9359 Never include "`" or "," (inside backquote) in a symbol.
9360 Allow dotted-pair dot after a character constant.
9361 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9362
f098b121
JD
93632003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9364
9365 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9366 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9367 icons. Set name of tool bar to emacs-toolbar.
9368 (update_frame_tool_bar): Connect expose event to
9369 xg_tool_bar_expose_callback.
9370
63020c46
RS
93712003-02-17 Richard M. Stallman <rms@gnu.org>
9372
9373 * keyboard.c (this_command_key_count_reset): New variable.
9374 Initiatize to 0 where this_command_key_count is set.
9375 (read_char): Save and restore this_command_key_count_reset
9376 around input method code.
9377 (read_char): If this_command_key_count_reset, echo reread commands.
9378 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9379
fb4452cc
KH
93802003-02-17 Kenichi Handa <handa@m17n.org>
9381
9382 * fns.c (string_to_multibyte): Always return a multibyte string.
9383
bd11cc09
JR
93842003-02-16 Jason Rumney <jasonr@gnu.org>
9385
e52bd6b7
SM
9386 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9387 Negative max_fonts parameter means list all.
bd11cc09 9388
4cdf4bde
DL
93892003-02-14 Dave Love <fx@gnu.org>
9390
9391 * fns.c (Flanginfo): Doc fix.
9392
023b93f6
KS
93932003-02-13 Kim F. Storm <storm@cua.dk>
9394
37cd4238
KS
9395 * lread.c (read_escape): Interpret \s as a SPACE character, except
9396 for \s-X in a character constant which still is the super modifier.
9397 (read1): Signal an `invalid read syntax' error if a character
9398 constant is immediately followed by a digit or symbol character.
9399
140a6b7e
KS
9400 * search.c (Fmatch_data): Doc fix. Explicitly state that
9401 match-data is undefined if last search failed.
9402
023b93f6
KS
9403 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9404 All uses changed.
9405
7d5c86e5
JB
94062003-02-12 Juanma Barranquero <lektu@terra.es>
9407
9408 * eval.c (Fdefmacro): Fix typo.
9409
295fff2c
KS
94102003-02-12 Kim F. Storm <storm@cua.dk>
9411
9412 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9413 macro is a string, convert meta modifiers in string when copying
9414 the string into a vector.
9415
60f3202d
KS
94162003-02-11 Kim F. Storm <storm@cua.dk>
9417
9418 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9419
61cb0b53
KH
94202003-02-11 Kenichi Handa <handa@m17n.org>
9421
9422 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9423
7392e23c
KS
94242003-02-10 Kim F. Storm <storm@cua.dk>
9425
9426 * process.c: Doc fixes.
9427 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9428
ce4254bd
KH
94292003-02-10 Kenichi Handa <handa@m17n.org>
9430
9c7a329a
KH
9431 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9432
ce4254bd
KH
9433 * process.c (QCfilter_multibyte): New variable.
9434 (setup_process_coding_systems): New function.
e52bd6b7
SM
9435 (Fset_process_buffer, Fset_process_filter):
9436 Call setup_process_coding_systems.
ce4254bd
KH
9437 (Fstart_process): Initialize the member `filter_multibyte' of
9438 struct Lisp_Process.
9439 (create_process): Call setup_process_coding_systems.
9440 (Fmake_network_process): New keyward `:filter-multibyte'.
9441 Initialize the member `filter_multibyte' of struct Lisp_Process.
9442 Call setup_process_coding_systems.
9443 (server_accept_connection): Call setup_process_coding_systems.
9444 (read_process_output): If the process has a filter, decide the
9445 multibyteness of a string to given to the filter by
9446 `filter_multibyte' member of the process. If the process doesn't
9447 have a filter and the result of conversion is unibyte, use
9448 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9449 multibyte form.
9450 (Fset_process_coding_system): Call setup_process_coding_systems.
9451 (Fset_process_filter_multibyte): New function.
9452 (Fprocess_filter_multibyte_p): New function.
9453 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9454 Defsubr Sset_process_filter_multibyte and
9455 Sprocess_filter_multibyte_p.
9456
9457 * process.h (struct Lisp_Process): New member filter_multibyte.
9458
9459 * lisp.h (setup_process_coding_systems): Add prototype.
9460
9461 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9462 process, update coding systems for the process.
9463
b08d5f59
KH
94642003-02-09 Kenichi Handa <handa@m17n.org>
9465
9466 * fns.c (string_to_multibyte): New function.
9467 (Fstring_to_multibyte): New function.
9468 (syms_of_fns): Defsubr it.
9469
0dfd93c0
AS
94702003-02-08 Andreas Schwab <schwab@suse.de>
9471
9472 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9473 instead of the substitution.
9474
7b76ca1c
JD
94752003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9476
9477 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9478
9479 * xmenu.c (menu_position_func): Adjust menu popup position so that
9480 the menu is fully visible.
7b76ca1c 9481
2436a4e4
JD
94822003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9483
9484 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9485 (x_make_frame_invisible, x_wm_set_icon_position):
9486 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9487
9488 * xfns.c (x_set_name, x_set_title): Ditto.
9489
37d1e680
RS
94902003-02-04 Richard M. Stallman <rms@gnu.org>
9491
9492 * keyboard.c (echo_now): Update before_command_echo_length.
9493 (Freset_this_command_lengths): Reset this_command_key_count etc.
9494 immediately rather than arranging to do it later.
9495 (before_command_key_count_1, before_command_echo_length_1)
9496 (before_command_restore_flag): Vars deleted.
9497 (add_command_key): Don't handle before_command_restore_flag.
9498 (read_char, record_menu_key): Don't update before_command_key_count or
9499 before_command_echo_length.
9500 (read_char): Don't handle before_command_restore_flag.
9501
9502 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9503 in direct-output clauses if it wouldn't be called in the ordinary case.
9504
578846a3
KS
95052003-02-04 Kim F. Storm <storm@cua.dk>
9506
9507 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9508
49853a4d
JD
95092003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9510
9511 * gtkutil.c (remove_from_container): Copying list is not needed.
9512 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9513 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9514 on list returned from gtk_container_get_children to avoid memory leak.
9515
8b53dc06
JR
95162003-02-01 Jason Rumney <jasonr@gnu.org>
9517
5d54d177
JR
9518 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9519 local malloc.
9520 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9521 definitions in xpm.h.
9522 (init_xpm_functions): New function.
f63fd14e 9523 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9524 (init_external_image_libraries): Try to load libXpm.dll.
9525
8b53dc06
JR
9526 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9527 timestamp.
9528
b222e415
DL
95292003-01-31 Dave Love <fx@gnu.org>
9530
9531 * syntax.c (Fskip_chars_forward)
9532 (open-paren-in-column-0-is-defun-start): Doc fix.
9533
c60ee5e7
JB
95342003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9535
9536 * fileio.c: Support // at start of name for Cygwin (just added proper
9537 preprocessor tests).
9538
9539 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9540
9541 * Makefile.in: Use @EXEEXT@ for Cygwin.
9542
9543 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9544
9545 * s/cygwin.h: Added for Cygwin port.
9546
53b37591
JB
95472003-01-31 Juanma Barranquero <lektu@terra.es>
9548
9549 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9550 when including gif_lib.h.
fe929957 9551 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9552 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9553 Windows. Disable color table lookups. Call library functions
53b37591 9554 through pointers determined at runtime.
fe929957
JB
9555 (init_external_image_libraries): Try to load libungif.dll and
9556 libtiff.dll.
53b37591 9557
45415a8f
KH
95582003-01-31 Kenichi Handa <handa@m17n.org>
9559
9560 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9561 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9562
a97e4138
JD
95632003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9564
e52bd6b7 9565 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9566
6eed9bed
DL
95672003-01-30 Dave Love <fx@gnu.org>
9568
9569 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9570 (Fgarbage_collect): Use them.
9571 (init_alloc, syms_of_alloc): Set them up.
9572
100dcd40
JB
95732003-01-30 Juanma Barranquero <lektu@terra.es>
9574
9575 * w32fns.c (init_external_image_libraries): Add missing operator.
9576
fbd852af
JR
95772003-01-29 Jason Rumney <jasonr@gnu.org>
9578
9579 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9580 an alternative name for jpeg.dll.
9581
8a2d8020
KH
95822003-01-29 Kenichi Handa <handa@m17n.org>
9583
9584 * xdisp.c (set_cursor_from_row): Pay attention to string display
9585 properties.
9586
058c18c7
AC
95872003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9588
9589 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9590 <escape>.
9591 (keycode_to_xkeysym_table): Reformat and add more comments.
9592 (XTread_socket): Drop special case for backspace.
9593
385f11cf
AC
95942003-01-28 Andrew Choi <akochoi@shaw.ca>
9595
9596 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9597 values in old-style RGB specs.
9598
c922a224
JB
95992003-01-27 Juanma Barranquero <lektu@terra.es>
9600
9601 * w32fns.c (init_external_image_libraries): Try alternate names for the
9602 jpeg dll.
9603
0a1d6de0
JD
96042003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9605
9606 * gtkutil.c (create_dialog, xg_separator_p)
9607 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9608 before calling strcmp or strlen.
9609
a97e4138 96102003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9611
9612 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9613 and handle image load failure.
9614
28908312
JR
96152003-01-26 Jason Rumney <jasonr@gnu.org>
9616
9617 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9618 New functions.
f63fd14e
JB
9619 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9620 Disable color table lookups. Call jpeg library functions
28908312
JR
9621 through pointers determined at runtime.
9622 (init_external_image_libraries): Try to load jpeg.dll.
9623
84e47416
RS
96242003-01-25 Richard M. Stallman <rms@gnu.org>
9625
9626 * lisp.h: Declare format2 instead of format1.
9627
9628 * fileio.c (barf_or_query_if_file_exists):
9629 Call format2 instead of format1.
9630
9631 * editfns.c (format2): New function, replaces format1
9632 but takes exactly two Lisp Objects as format args.
9633
9634 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9635
a97e4138 96362003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9637
9638 * xterm.h: Change to return value of x_dispatch_event to int.
9639
9640 * xterm.c (x_filter_event): New function.
9641 (event_handler_gdk, XTread_socket): Call x_filter_event.
9642 (x_dispatch_event): Change to return value of finish.
9643 (event_handler_gdk): Use return value from x_dispatch_event.
9644
9645 * xfns.c (x_window): Call create_frame_xic for GTK version to
9646 initialize input methods.
9647
9648 * gtkutil.h: Add (void) prototypes.
9649
9650 * gtkutil.c (create_menus): Remove code that puts the help menu to
9651 the right.
9652
54eefef1
JR
96532003-01-25 Jason Rumney <jasonr@gnu.org>
9654
9655 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9656 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9657 (png_load): Adjust colors for Windows. Use Windows
9658 bitmaps. Disable color table lookups.
c262430d
JR
9659 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9660 (init_png_functions): New function.
9661 (png_read_from_memory, png_load): Call png library functions
9662 through pointers determined at runtime.
9663 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9664 (init_external_image_libraries): New function.
9665 (init_xfns): Call it.
54eefef1 9666
1a9e275b
AS
96672003-01-24 Andreas Schwab <schwab@suse.de>
9668
9669 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9670
a97e4138 96712003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9672
9673 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9674 of static initializer.
9675
422eec7e
DL
96762003-01-24 Dave Love <fx@gnu.org>
9677
9678 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9679 architectures.
9680
9681 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9682 Use __alignof__.
9683
2a026b04
KH
96842003-01-24 Kenichi Handa <handa@m17n.org>
9685
9686 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9687 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9688 (command_loop_1): Call adjust_point_for_property with proper
9689 second arg.
9690
a18bb28d
JR
96912003-01-22 Jason Rumney <jasonr@gnu.org>
9692
9693 Sync changes with xterm.c and xfns.c.
9694
9695 * w32term.c (x_draw_glyph_string_foreground)
9696 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9697
9698 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9699 phys_cursor's hpos is overwritten. This is still not completely
9700 correct, as it doesn't really make sense to use hpos at all to
9701 get the cursor glyph (as that is relative to the width of the
9702 characters on the line, which may have changed during the update).
9703
9704 * w32term.c (notice_overwritten_cursor): Handle the special case
9705 of the cursor being in the first blank non-text line at the
9706 end of a window.
9707
9708 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9709 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9710 Compute from the x position returned by x_draw_glyphs.
9711
9712 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9713 except for NO_CURSOR and system caret, to make phys_cursor_width
9714 contain what its name suggests.
9715 (notice_overwritten_cursor): Consider the cursor image erased if
9716 the output area intersects the cursor image in y-direction.
9717
6a097c0c
SM
9718 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9719 note_mode_line_highlight and extend.
a18bb28d
JR
9720
9721 * w32term.c (last_window): New variable.
9722 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9723 (note_mouse_movement): Remove reimplemented code in #if 0.
9724
9725 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9726 not update_mode_lines, and always set it to 1.
9727
ac6e47ef
JR
97282003-01-21 Jason Rumney <jasonr@gnu.org>
9729
9730 * w32fns.c (IDC_HAND): Define it if system headers don't.
9731
97322003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9733
9734 * w32term.h (struct w32_output): New member hand_cursor.
9735 (WM_EMACS_SETCURSOR): New message definition.
9736
9737 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9738 function w32_define_cursor.
9739 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9740 position, change member name output_data.x to output_data.w32 and
9741 add function w32_define_cursor.
9742 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9743 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9744 (w32_initialize_display_info):
9745 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9746
9747 * w32fns.c (Vx_hand_shape): New variable.
9748 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9749 WM_EMACS_SETCURSOR.
9750 (x-create-frame): Setup Cursor types.
9751
ceb39a17
JB
97522003-01-21 David Ponce <david@dponce.com>
9753
ac6e47ef 9754 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9755 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9756 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9757 2002-09-30.)
ac6e47ef
JR
9758 (w32_draw_relief_rect): Declare all args.
9759 (w32_define_cursor): New.
9760
9761 * w32fns.c (w32_load_cursor): New function.
9762 (w32_init_class): Use it.
9763 (x_put_x_image): Declare all args.
9764
b6189c3b 97652003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9766
9767 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9768
a97e4138 97692003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9770
9771 * gtkutil.c: Must include stdio.h before termhooks.h
9772
83fc9c63
DL
97732003-01-21 Dave Love <fx@gnu.org>
9774
9775 * alloc.c (Fgc_status): Print zombie list.
9776 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9777 Fix assignment of zombies.
9778 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9779 Don't take car of non-cons.
9780
9781 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9782
9783 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9784
fe04b8c8
JR
97852003-01-20 David Ponce <david@dponce.com>
9786
9787 * w32menu.c (digest_single_submenu): Declare all args.
9788
9789 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9790 changes in xmenu.c:
9791
9792 (parse_single_submenu): Use individual keymap's prompt
9793 string as pane name, if there is one.
9794 (set_frame_menubar): Save menu_items_n_panes from each call to
9795 parse_single_submenu and use it when calling digest_single_submenu.
9796
539e69a9
ST
97972003-01-20 Steven Tamm <steventamm@mac.com>
9798
9799 * macterm.c (XTread_socket): Checks for valid, visible window
9800 before sending a scroll-wheel event.
9801
675d000f
RS
98022003-01-20 Richard M. Stallman <rms@gnu.org>
9803
9804 * xdisp.c (redisplay_window): If mini window's buffer is not
9805 a minibuffer, then redisplay it like other windows.
9806
a97e4138 98072003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9808
9809 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9810 external tool bar before setting tool bar height.
9811
048addec
JD
98122003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9813
9814 * xterm.c (handle_one_xevent): Surround popup_activated
9815 with #ifdef:s for non-toolkit version.
9816
9817 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9818 (gtkutil.o): New file.
9819 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9820 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9821
9822 * gtkutil.c: New file for GTK version.
9823
9824 * gtkutil.h: New file for GTK version.
9825
9826 * xterm.h: Add xt_or_gtk_widget.
9827 Include gtk files for USE_GTK.
9828 (struct x_output): Add toolbar_height.
9829 (struct x_output): Add GTK widgets and Gdk size_hints.
9830 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9831 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9832 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9833
9834 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9835 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9836 (note_mouse_highlight): Check popup_activated for USE_GTK.
9837 (xt_action_hook): Don't compile if USE_GTK.
9838 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9839 (xg_scroll_callback): New function.
9840 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9841 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9842 for USE_GTK.
9843 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9844 xg_show_scroll_bar for USE_GTK.
9845 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9846 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9847 (event_handler_gdk): New function for USE_GTK.
9848 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9849 (handle_one_xevent): Make sure widget is mapped before
9850 calling x_real_positions for USE_GTK.
9851 (XTread_socket): Add GTK event loop for USE_GTK.
9852 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9853 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9854 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9855 (x_iconify_frame): Add code for USE_GTK.
9856 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9857 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9858 is in gtkutil.c.
9859 (x_term_init): Add initialization for GTK.
9860 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9861
9862 * xmenu.c: Include gtkutil.h for USE_GTK.
9863 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9864 (single_menu_item, single_menu_item, Fx_popup_dialog):
9865 Check for USE_GTK.
048addec
JD
9866 (popup_widget_loop): New function for USE_GTK.
9867 (x_activate_menubar): Add code for USE_GTK.
9868 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9869 (menu_highlight_callback, menubar_selection_callback):
9870 Add USE_GTK versions.
048addec
JD
9871 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9872 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9873 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9874 is in gtkutil.c.
9875 (popup_selection_callback): New version for USE_GTK.
9876 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9877 one USE_X_TOOLKIT version.
048addec
JD
9878 (xmenu_show): Call create_and_show_popup_menu.
9879 (dialog_selection_callback): New version for USE_GTK.
9880 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9881 one USE_X_TOOLKIT version.
048addec
JD
9882 (xdialog_show): Call create_and_show_dialog.
9883
9884 * xfns.c: Include gtkutil for USE_GTK.
9885 (x_window_to_frame, x_any_window_to_frame)
9886 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9887 (x_top_window_to_frame): Add code for USE_GTK.
9888 (x_set_background_color): Call xg_set_background_color for GTK.
9889 (x_set_menu_bar_lines): Check for USE_GTK.
9890 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9891 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9892 (x_window): Call xg_create_frame_widgets for USE_GTK.
9893 (Fx_create_frame): Check for USE_GTK
9894 (Fx_file_dialog): New implementation for USE_GTK.
9895
9896 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9897 (update_menu_bar): Add check for USE_GTK.
9898 (update_tool_bar): Add check for USE_GTK and external tool bar.
9899 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9900 (redisplay_internal): Add check for USE_GTK and popup_activated.
9901 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9902 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9903 (display_menu_bar): Add check for USE_GTK
9904
78819ebb 9905 * lisp.h (Vx_resource_name): Declare extern.
048addec 9906
a64387ee 9907 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9908 for USE_GTK.
9909 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9910
9911 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9912 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9913 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9914
9915 * fileio.c (Fread_file_name): Add check for USE_GTK.
9916
6bdb309a
SM
9917 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9918 Add check for USE_GTK.
048addec
JD
9919
9920 * config.in: Added HAVE_GTK
9921
9922 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9923
99242003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9925
9926 * charset.h (Funibyte_char_to_multibyte): Export.
9927
99282003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9929
9930 * xmenu.c (mouse_position_for_popup): New function.
9931 (Fx_popup_menu): Call mouse_position_for_popup for X and
9932 mouse_position_hook for others.
9933
99342003-01-17 Kim F. Storm <storm@cua.dk>
9935
9936 * editfns.c (Finsert): Mention `string-make-multibyte' and
9937 `string-as-multibyte' in doc string.
9938
99392003-01-17 Kenichi Handa <handa@m17n.org>
9940
9941 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9942
048addec
JD
9943 * editfns.c (Fformat): Convert an unibyte char argument that is
9944 formatted by "%c" to multibyte if the total result must be a
9945 multibyte string.
cd7df9c0 9946
048addec 99472003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9948
048addec
JD
9949 * process.c (set-process-filter): Document unibyte/multibyte-ness
9950 of string argument.
56210ecd 9951
048addec 99522003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9953
048addec 9954 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9955
048addec
JD
9956 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9957 (re_search_2): Likewise.
6df8b9fe 9958
048addec 99592003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9960
048addec
JD
9961 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9962 buffer is unibyte.
292ddc31 9963
048addec 99642003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9965
048addec 9966 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9967
048addec
JD
9968 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9969 (Fprevious_char_property_change)
9970 (Fnext_single_char_property_change)
9971 (Fprevious_single_char_property_change, Fnext_property_change)
9972 (Fnext_single_property_change, Fprevious_property_change)
9973 (Fprevious_single_property_change, Fadd_text_properties)
9974 (Fput_text_property, Fset_text_properties)
9975 (Fremove_text_properties, Fremove_list_of_text_properties)
9976 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9977
048addec 99782003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9979
048addec
JD
9980 * process.h (struct Lisp_Process): New member plist replaces old
9981 member private_vars. All uses changed.
63e4e4c6 9982
048addec 9983 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9984 (QCplist): Rename from QCvars. Change all uses.
048addec 9985 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9986 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9987 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9988 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9989
048addec 99902003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9991
6bdb309a 9992 * m/delta.h: Remove (obsolete).
e833850f 9993
048addec 99942003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9995
048addec
JD
9996 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9997 behaviour in front of symlinks.
9998 (Fdelete_file): Raise an error on directories.
817cb127 9999
048addec 100002003-01-13 Dave Love <fx@gnu.org>
817cb127 10001
048addec 10002 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10003
048addec 100042003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10005
048addec
JD
10006 * minibuf.c (minibuffer_completion_contents):
10007 Error if point is inside prompt.
3e8cf2ea 10008
048addec
JD
10009 * keyboard.c (command_loop_1): Don't redisplay directly
10010 if there's a post-command-hook.
3e8cf2ea 10011
048addec
JD
10012 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10013 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10014
048addec 100152003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10016
048addec 10017 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10018
048addec
JD
10019 * process.c (QCvars): New variable.
10020 (syms_of_process): Intern and staticpro it.
10021 (Fset_process_contact): Removed function.
10022 (Fprocess_variable, Fset_process_variable): New functions.
10023 (syms_of_process): Defsubr them.
10024 (Fstart_process): Initialize private_vars plist to nil.
10025 (Fmake_network_process): New arg :vars to setup the private
10026 variables for new network process.
10027 (server_accept_connection): Copy server's private variables to
10028 client process.
2c10f029 10029
048addec
JD
10030 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10031 crashes). Code rewritten and simplified. Now directly aligns the
10032 pointer and recalculates pure_bytes_used, rather than aligning the
10033 size and adjusting the pointer.
b8a76c6c 10034
048addec 100352003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10036
048addec
JD
10037 * process.c (Fset_process_contact): New function.
10038 (syms_of_process): defsubr it.
10039 (make-network-process): Update doc.
3a8d0899 10040
048addec 100412003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10042
048addec
JD
10043 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10044 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10045
048addec 100462003-01-10 Dave Love <fx@gnu.org>
4abc7470 10047
048addec 10048 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10049
048addec 100502003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10051
048addec
JD
10052 * process.c (Fmake_network_process): Convert new port number
10053 to host byte order for `:service t' case. From Mario Lang.
bf338245 10054
048addec 100552003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10056
048addec
JD
10057 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10058 instead of XtAppProcessEvent.
bf338245 10059
048addec
JD
10060 * xterm.c (handle_one_xevent): New function.
10061 (x_dispatch_event): New function.
10062 (XTread_socket): Call handle_one_xevent.
bf338245 10063
048addec 10064 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10065
048addec
JD
10066 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10067 call XQueryPointer to get coordinates.
10068 (popup_get_selection): Do not set popup_activated_flag to zero,
10069 let popup_deactivate_callback do that. Needed for Motif.
10070 Call x_dispatch_event instead of XtDispatchEvent.
10071 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10072
048addec 100732003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10074
6bdb309a 10075 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10076 connection's local address in :local property of contact info.
10077 (Fmake_network_process): Record local network address for new
10078 client processes in :local property of contact info.
6bdb309a 10079 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10080
048addec 100812003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10082
048addec 10083 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10084
048addec 100852003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10086
048addec 10087 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10088
048addec
JD
10089 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10090 use the same test as for custom-variable-p.
8c6d74c6 10091
048addec 100922003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10093
048addec
JD
10094 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10095 Count LAST_LINE_MISFIT in scroll margin for end of window.
10096 Move label too_near_end before setting SCROLL_MARGIN_POS.
10097 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10098
048addec
JD
10099 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10100 scroll_conservatively case. If scrolling that much doesn't change
10101 STARTP, move it down one line.
e833850f 10102
048addec
JD
10103 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10104 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10105
048addec
JD
10106 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10107 selected frame.
8c6d74c6 10108
048addec
JD
10109 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10110 (syms_of_keymap): staticpro them.
10111 (Fapropos_internal): Initialize them and clear them out.
10112 Don't GCPRO them.
8c6d74c6 10113
048addec
JD
10114 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10115 Doc fixes.
8c6d74c6 10116
048addec
JD
10117 * lisp.h: New misc type Lisp_Save_Value.
10118 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10119 (XSAVE_VALUE): New macro.
10120 (struct Lisp_Save_Value): New data type.
10121 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10122 (make_save_value): Declare.
8c6d74c6 10123
048addec 10124 * alloc.c (make_save_value): New function.
8c6d74c6 10125
048addec
JD
10126 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10127 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10128
048addec 101292003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10130
048addec 10131 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10132
048addec
JD
10133 * keyboard.c (command_loop_1): Call adjust_point_for_property
10134 in direct action cases for Qforward_char and Qbackward_char.
10135 Set already_adjusted so it won't be done twice.
8c6d74c6 10136
b6189c3b 101372002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10138
048addec
JD
10139 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10140 type definition of size_t.
8c609cff 10141
048addec 101422003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10143
048addec
JD
10144 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10145 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10146
048addec 101472002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10148
048addec
JD
10149 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10150 to default to t.
fa634a5e 10151
048addec 101522002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10153
048addec 10154 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10155
048addec 101562002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10157
048addec
JD
10158 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10159 allow building in a different directory than source. Uses some
10160 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10161
048addec 101622002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10163
048addec
JD
10164 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10165 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10166 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10167 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10168
048addec 101692002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10170
048addec
JD
10171 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10172 <scroll-down-aggressively>: Doc fix.
2155ecf3 10173
048addec
JD
10174 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10175 string as pane name, if there is one.
10176 (set_frame_menubar): Save menu_items_n_panes from each call to
10177 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10178
048addec
JD
10179 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10180 Don't try to make last line fully visible if it is past end of window.
61f1d295 10181
048addec 101822002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10183
048addec
JD
10184 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10185 (mac_menu_show): Add support for hierarchical popup menus.
10186 (add_menu_item): Remove indentation support.
10187 (fill_submenu, fill_menu): Create hierarchical menus
10188 instead of using indentation.
0b17a217 10189
048addec 101902002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10191
048addec
JD
10192 * xdisp.c (try_cursor_movement): Don't call try_window here.
10193 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10194
048addec 10195 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10196
048addec 101972002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10198
048addec
JD
10199 * macterm.c (XTread_socket): Call KeyTranslate for control and
10200 meta to deal correctly shifted non-alpha characters, like C-S-5
10201 being treated like C-%. Does not look for shift key to deal
10202 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10203
048addec 102042002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10205
048addec
JD
10206 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10207 If it is non-nil, run timers. Use an unwind-protect to requeue
10208 the events that were read ahead.
10209 (popup_get_selection_unwind): New subroutine.
10210 (popup_get_selection_queue): File-scope variable now holds that queue.
10211 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10212 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10213 Use an unwind-protect to pop down the dialog box.
10214 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10215
048addec
JD
10216 * xdisp.c (row_containing_pos): Change exit test using last_y.
10217 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10218
048addec
JD
10219 * lread.c (load_error_handler): New function.
10220 (Fload): Handle errors in Fsubstitute_in_file_name.
10221 Don't expect Fsignal to return.
f02cac82 10222
048addec
JD
10223 * eval.c: Errors and throws work right with interrupt blocking.
10224 (struct catchtag): New elt interrupt_input_blocked.
10225 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10226 (internal_catch, Fcondition_case, internal_condition_case)
10227 (internal_condition_case_1, internal_condition_case_2): Save it.
10228 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10229
048addec 10230 * editfns.c (Fformat): Add parens.
f02cac82 10231
048addec
JD
10232 * dired.c (file_name_completion): Fix that change.
10233 Delete special quit-handling code; just use QUIT.
f02cac82 10234
b6189c3b 102352002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10236
048addec
JD
10237 * dired.c (file_name_completion): Close directory on error
10238 just as in directory_files_internal.
1a590729 10239
048addec 102402002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10241
048addec
JD
10242 * window.c (Fset_window_configuration): Set old_point to correct
10243 value when new_current_buffer == current_buffer.
f02cac82 10244
048addec 102452002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10246
048addec
JD
10247 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10248 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10249 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10250
048addec
JD
10251 These changes were in part based upon suggestions made by Peter
10252 'Luna' Runestig [peter@runestig.com].
9785d95b 10253
048addec
JD
10254 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10255 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10256 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10257 global variables.
9785d95b 10258
048addec
JD
10259 * w32.c (globals_of_w32): New function. Used to initialize those
10260 global variables that must always be initialized on startup even
10261 when the global variable initialized is non zero. Its primary
10262 purpose at this time is to set the global variables
10263 g_b_init_is_windows_9x, g_b_init_open_process_token,
10264 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10265 g_b_init_get_sid_identifier_authority to 0 on startup.
10266 Called from main.
9785d95b 10267
048addec
JD
10268 * w32.c (is_windows_9x): Perform initialization only if
10269 g_b_init_is_windows_9x is equal to 0. On initialization set
10270 g_b_init_is_windows_9x equal to 1.
2308af15 10271
048addec
JD
10272 * w32.c (open_process_token): Perform initialization only if
10273 g_b_init_open_process_token is equal to 0. On initialization set
10274 g_b_init_open_process_token equal to 1.
2308af15 10275
048addec
JD
10276 * w32.c (get_token_information): Perform initialization only if
10277 g_b_init_get_token_information is equal to 0. On initialization
10278 set g_b_init_get_token_information equal to 1.
9785d95b 10279
048addec
JD
10280 * w32.c (lookup_account_sid): Perform initialization only if
10281 g_b_init_lookup_account_sid is equal to 0. On initialization
10282 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10283
048addec
JD
10284 * w32.c (get_sid_identifier_authority): Perform initialization
10285 only if g_b_init_get_sid_identifier_authority is equal to 0.
10286 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10287
f63fd14e 10288 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10289 those global variables that must always be initialized on startup
10290 even when the global variable initialized is non zero.
10291 Its primary purpose at this time is to initialize the global variable
10292 track_mouse_event_fn.
9785d95b 10293
a64387ee 10294 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10295 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10296
048addec 10297 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10298
f63fd14e 10299 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10300 initialize those global variables that must always be initialized
10301 on startup even when the global variable initialized is non zero.
10302 Its primary purpose at this time is to initialize the global
10303 variables get_menu_item_info and set_menu_item_info.
9785d95b 10304
048addec
JD
10305 * w32menu.c (initialize_frame_menubar): Remove initialization of
10306 get_menu_item_info and set_menu_item_info.
9785d95b 10307
048addec 10308 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10309
048addec
JD
10310 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10311 Declare them.
9785d95b 10312
048addec
JD
10313 * emacs.c (main): Call globals_of_w32 prior to calling
10314 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10315 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10316 is defined.
9785d95b 10317
048addec
JD
10318 * w32term.c (x_update_window_begin): Fix Windows API error
10319 detected by BoundsChecker. Test to determine if
10320 w32_system_caret_hwnd is NULL prior to attempting to use
10321 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10322
048addec
JD
10323 * w32term.c (x_update_window_end): Fix Windows API error
10324 detected by BoundsChecker. Test to determine if
10325 w32_system_caret_hwnd is NULL prior to attempting to use
10326 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10327
048addec 103282002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10329
048addec
JD
10330 * coding.c (coding_system_require_warning): New variable.
10331 (syms_of_coding): DEFVAR it.
b6da19ef 10332
048addec 10333 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10334
048addec
JD
10335 * fileio.c (choose_write_coding_system): Even if
10336 Vcoding_system_for_write is non-nil, if
10337 coding_system_require_warning is nonzero, call
10338 Vselect_safe_coding_system_function.
bfcf6dbe 10339
048addec 103402002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10341
048addec
JD
10342 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10343 (lisp): Add font-core.
2c568af5 10344
048addec 103452002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10346
048addec
JD
10347 * textprop.c (text_read_only): New arg `propval'.
10348 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10349 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10350
048addec 103512002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10352
048addec 10353 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10354
048addec 103552002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10356
048addec
JD
10357 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10358 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10359 Be more careful about when help_events are generated.
96720f09 10360
048addec 103612002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10362
048addec
JD
10363 * macterm.c (mac_check_for_quit_char): Correctly set the
10364 modifiers of the event to 0.
10365 * mac.c (sys_select): Duplicate rfds before calling select to
10366 ensure that rfds survive the while loop.
e5ae1c49 10367
048addec 103682002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10369
048addec
JD
10370 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10371 row_containing_pos returned NULL.
2eb46b2d 10372
048addec 103732002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10374
6bdb309a 10375 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10376 non-blocking.
6bdb309a 10377 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10378 the one given.
b11f1d8a 10379
048addec 103802002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10381
048addec 10382 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10383
048addec 103842002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10385
048addec
JD
10386 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10387 as the last thing.
a4ac5b17 10388
048addec 103892002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10390
048addec 10391 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10392
048addec 103932002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10394
048addec
JD
10395 * editfns.c (Fformat): Handle precision in string conversion
10396 specifiers like libc functions do (ie, print at most that many
10397 characters).
85cce843 10398
048addec 103992002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10400
048addec
JD
10401 * xdisp.c (row_containing_pos): Check more carefully
10402 whether charpos is really in the row before returning it.
0d4d26a7 10403
048addec 104042002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10405
048addec 10406 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10407
048addec
JD
10408 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10409 each stack frame. This may change as it could be time consuming.
0d4d26a7 10410
048addec
JD
10411 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10412 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10413 (mac_initialize): Add code to check for pressing of quit_char
048addec 10414 in the OS event queue.
b11f1d8a 10415
048addec
JD
10416 * mac.c (sys_select): Call mac_check_for_quit_char every second
10417 while blocking on select.
0d4d26a7 10418
048addec
JD
10419 * mac.c (sys_read): Use sys_select to test for input first
10420 before calling read, to allow C-g to break.
9252f7bc 10421
048addec 104222002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10423
048addec 10424 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10425
048addec 10426 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10427
048addec 10428 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10429
048addec
JD
10430 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10431 autoload.
9252f7bc 10432
048addec 10433 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10434
048addec 10435 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10436
048addec 104372002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10438
048addec 10439 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10440
048addec 104412002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10442
048addec 10443 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10444
048addec 10445 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10446
048addec 10447 * alloca.c: Don't use #error.
02d588e2 10448
048addec 104492002-12-03 Dave Love <fx@gnu.org>
02d588e2 10450
048addec
JD
10451 * buffer.c (Qucs_set_table_for_input): New.
10452 (Fget_buffer_create): Use it.
10453 (Qset_buffer_major_mode_hook): Deleted.
10454 (Fset_buffer_major_mode): Revert previous change.
10455 (init_buffer_once): Intern ucs-set-table-for-input.
10456 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10457 Add &Qucs_set_table_for_input.
451e2697 10458
048addec 104592002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10460
048addec
JD
10461 * callint.c (Fcall_interactively): Use next_event only if less
10462 than key_count.
72742a99 10463
048addec 104642002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10465
048addec
JD
10466 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10467 names to 255 characters.
72742a99 10468
048addec
JD
10469 * macterm.c (XTread_socket): If all frames have been collapsed,
10470 expand the first one before handling drag-and-drop events.
72742a99 10471
048addec
JD
10472 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10473 which is detected by autoconf.
40e6ff95 10474
048addec 104752002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10476
048addec
JD
10477 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10478 offset in two hints table to allow prebinding to be redone and
10479 allow the executable to be stripped.
c02138c6 10480
048addec 104812002-11-29 Dave Love <fx@gnu.org>
c02138c6 10482
048addec
JD
10483 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10484 already provided.
0e47bbf7 10485
048addec 104862002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10487
048addec
JD
10488 * xdisp.c (start_display): Check more intelligently for
10489 whether the line is continued.
10490 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10491
048addec 104922002-11-28 Dave Love <fx@gnu.org>
44129dcb 10493
048addec
JD
10494 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10495 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10496
048addec 104972002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10498
048addec
JD
10499 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10500 more descriptive error output from lread.c:Fload upon most require
10501 cycles during boostrapping.
1637fd2c 10502
048addec 105032002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10504
048addec
JD
10505 * fileio.c (Finsert_file_contents): Give a more appropriate error
10506 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10507
048addec
JD
10508 * dired.c (Ffile_attributes): Don't return negative file sizes for
10509 files bigger than 2Gb when off_t is 32 bit.
540c2788 10510
048addec 105112002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10512
048addec 10513 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10514
048addec
JD
10515 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10516 Test GETPGRP_VOID instead.
10517 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10518
048addec
JD
10519 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10520 Don't define.
10521 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10522
048addec 10523 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10524
048addec 105252002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10526
048addec
JD
10527 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10528 supported.
4042a81a 10529
048addec 105302002-11-25 Dave Love <fx@gnu.org>
4042a81a 10531
048addec 10532 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10533
048addec 10534 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10535
048addec 105362002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10537
048addec 10538 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10539
048addec 105402002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10541
048addec
JD
10542 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10543 determine the size of pointers alloced in unexed space instead
10544 of using possibly invalid emacs_zone pointers. This fixes the
10545 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10546
048addec 105472002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10548
048addec 10549 * search.c (Fstring_match): Doc fix.
c1ee53bc 10550
048addec
JD
10551 * callint.c (Fcall_interactively): If a command fails because
10552 `*' detects a read-only buffer, but RECORD_FLAG is set,
10553 record it anyway if the args don't actually do tty input.
5598c32e 10554
048addec 105552002-11-22 Dave Love <fx@gnu.org>
5598c32e 10556
048addec 10557 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10558
048addec
JD
10559 * keyboard.c (interrupt_signal): Provide forward declaration.
10560 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10561
048addec 10562 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10563
048addec 105642002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10565
048addec
JD
10566 * eval.c (interactive_p): Skip any number of bytecode
10567 and special form frames, in any order.
516eea8e 10568
048addec 105692002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10570
048addec
JD
10571 * w32fns.c (convert_mono_to_color_image): New function.
10572 (xbm_load, xbm_load_image): Use it when foreground or background
10573 is explicitly set.
04dbfa08 10574
048addec 105752002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10576
048addec 10577 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10578
048addec 105792002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10580
048addec
JD
10581 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10582 (XPutPixel): Swap blue and red.
10583 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10584 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10585 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10586 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10587
048addec 105882002-11-18 Dave Love <fx@gnu.org>
d824beee 10589
048addec 10590 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10591
048addec 10592 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10593
048addec 10594 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10595
048addec
JD
10596 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10597 malloc, realloc, calloc.
d824beee 10598
048addec
JD
10599 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10600 (bcmp): Don't define.
d824beee 10601
048addec 10602 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10603
048addec 10604 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10605
048addec 10606 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10607
048addec 10608 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10609
048addec
JD
10610 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10611 Don't include alloca.h.
d824beee 10612
048addec 10613 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10614
048addec 10615 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10616
048addec 10617 * process.c (_GNU_SOURCE): Don't define.
1998560a 10618
048addec 10619 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10620
048addec 106212002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10622
048addec 10623 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10624
048addec 106252002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10626
048addec
JD
10627 * dispextern.h (struct face): Add `overstrike' field.
10628 * xterm.c (x_draw_glyph_string_foreground)
10629 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10630 * xfaces.c (load_face_font): Set `face->overstrike' based on
10631 result from choose_face_font.
10632 (best_matching_font, choose_face_font): Add `needs_overstrike'
10633 argument, and use it to return whether overstriking is desirable
10634 for this face/font combo.
10635 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10636
048addec 106372002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10638
048addec
JD
10639 This change is my fix for the following entry in etc/PROBLEMS:
10640 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10641 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10642
048addec
JD
10643 * w32.c: Added wrapper functions around the win32 API functions
10644 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10645 GetSidIdentifierAuthority. These wrapper functions serve two
10646 purposes:
10647 1. They ensure that the wrapped function can never be called
10648 when Emacs is running on an operating system on which they are
10649 not supported (Microsoft Windows 95 / 98 / ME).
10650 2. They call the wrapped functions via function pointers rather
10651 than calling them directly. This avoids taking advantage of the
10652 undocumented fact that although these functions are not supported
10653 in the 9x branch of Microsoft Windows, the functions do exist in
10654 the version of advapi32.dll that is found in the 9x branch of
10655 Microsoft Windows.
f60ae425 10656
6bdb309a 10657 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10658 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10659 and GetSidIdentifierAuthority with calls to the newly added
10660 wrapper functions.
f60ae425 10661
048addec
JD
10662 * w32.h: Added extern declarations for the following functions:
10663 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10664 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10665
6bdb309a 10666 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10667 function pointer track_mouse_event_fn in the handler for the
10668 WM_SETFOCUS message.
3582b6a3 10669
6bdb309a 10670 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10671 reinitialize the function pointers set_menu_item_info and
10672 get_menu_item_info.
f60ae425 10673
048addec 106742002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10675
048addec
JD
10676 * sound.c: Added a partial implementation of play-sound-internal
10677 for Microsoft Windows. Added various #ifdef / #else / #endif
10678 code blocks to separate the code that will compile under
10679 Microsoft Windows from the code that is specific to Gnu/Linux.
10680 Moved several blocks of code around to make this separation of code
10681 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10682
048addec 10683 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10684
048addec
JD
10685 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10686 added support for play-sound-internal under Windows would be
10687 included in the build of Emacs.
517f42a0 10688
048addec 106892002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10690
048addec 10691 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10692
048addec 10693 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10694
048addec 106952002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10696
048addec
JD
10697 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10698 (adjust_point_for_property): Move out of display and invisible even if
10699 we were already inside before (in case a property was added while
10700 we weren't looking). Be more careful when handling invisible props.
10701 Skip invisible text as if it really wasn't there at all.
aab83f91 10702
048addec 107032002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10704
048addec
JD
10705 * w32term.c (x_draw_image_foreground)
10706 (w32_draw_image_foreground_1): Use standard copy and invert
10707 operations to draw images.
aab83f91 10708
048addec
JD
10709 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10710 depth of 1.
10711 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10712 (XPutPixel): Don't invert bits here.
a4478a76 10713
048addec 107142002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10715
048addec
JD
10716 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10717 (w32_draw_image_foreground_1): Handle image masks.
10718 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10719
048addec
JD
10720 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10721 (x_from_xcolors): Adjust RGB values for W32.
10722 (image_background, image_background_transparent)
10723 (postprocess_image, x_to_xcolors, x_disable_image)
10724 (x_build_heuristic_mask): Adapt for W32 and enable.
10725 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10726 (xbm_load): Remove unused variable.
03670a65 10727
048addec 107282002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10729
048addec 10730 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10731
048addec 107322002-11-14 Dave Love <fx@gnu.org>
59daa29a 10733
048addec 10734 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10735
048addec
JD
10736 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10737 * xmenu.c (unuse_menu_items, digest_single_submenu):
10738 * xfns.c (x_put_x_image):
10739 * xdisp.c (message2_nolog, set_message):
10740 * undo.c (record_point):
10741 * terminfo.c (tparam):
10742 * syntax.c (scan_sexps_forward):
10743 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10744 * composite.c (update_compositions):
10745 * cm.c (calccost, cmgoto):
10746 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10747
048addec 10748 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10749
048addec
JD
10750 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10751 Don't declare.
59daa29a 10752
048addec 10753 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10754
048addec
JD
10755 * fns.c (Fcopy_sequence): Doc fix.
10756 (Fmap_char_table): Cast `call2'.
3947677c 10757
048addec
JD
107582002-11-14 Francesco Potorti` <pot@gnu.org>
10759
10760 * s/sol2-8.h: New file.
10761
107622002-11-14 Kim F. Storm <storm@cua.dk>
10763
10764 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10765 dependency on `risky-local-variable' and the :propertize form.
10766
107672002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10768
10769 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10770
10771 * syntax.c (scan_sexps_forward): Undo last patch.
10772 Use a more obvious fix: check eob before updating the syntax table.
10773
107742002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10775
10776 * syntax.c (scan_sexps_forward): Update syntax table before reading
10777 a char rather than after so we don't update the table past eob.
10778
107792002-11-09 Dave Love <fx@gnu.org>
10780
10781 * buffer.c (Fset_buffer_major_mode): Fix last change.
10782
10783 * regex.c (regexec): Fix pmatch declaration.
10784
10785 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10786
10787 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10788 to self-inserting characters.
10789 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10790
10791 * coding.c (Vtranslation_table_for_input): New.
10792 (syms_of_coding): DEFVAR it.
10793
107942002-11-08 Juanma Barranquero <lektu@terra.es>
10795
10796 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10797 window.
10798
107992002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10800
6bdb309a 10801 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10802 cp, and i.
10803
108042002-11-06 Dave Love <fx@gnu.org>
10805
10806 * buffer.c (Qset_buffer_major_mode_hook): New.
10807 (Fset_buffer_major_mode): Use it.
10808
108092002-11-06 Richard M. Stallman <rms@gnu.org>
10810
10811 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10812 and stop_polling.
10813
10814 * process.c (wait_reading_process_input):
10815 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10816 Avoid initialization for auto Lisp_Object var.
10817
10818 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10819
10820 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10821
108222002-11-05 Richard M. Stallman <rms@gnu.org>
10823
10824 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10825
10826 * callint.c (Fcall_interactively): New local filter_specs.
10827 (Fcall_interactively): Check for progn as well as let.
10828 Add a gcpro.
10829 (Qprogn): New variable.
10830 (syms_of_callint): Staticpro and init Qprogn.
10831
108322002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10833
10834 * lread.c (Feval_buffer): Doc fix.
10835
108362002-11-04 Dave Love <fx@gnu.org>
10837
10838 * keyboard.c (read_char): Always translate iff
10839 Vkeyboard_translate_table is a char table and c is valid.
10840
10841 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10842 and fix C types.
10843
108442002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10845
10846 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10847
10848 * editfns.c (get_pos_property): Don't hardcode Qfield.
10849
10850 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10851 overlays. Also handle `invisible' prop.
10852
108532002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10854
10855 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10856 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10857
108582002-11-01 Andreas Schwab <schwab@suse.de>
10859
10860 * editfns.c (Fmessage): Revert last change to properly handle %%.
10861
108622002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10863
10864 * xmenu.c (unuse_menu_items): New fun.
10865 (menu_items_inuse): New var.
10866 (syms_of_xmenu): Initialize it.
10867 (init_menu_items): Use it to detect re-entrance.
10868 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10869 (Fx_popup_menu): Remove spurious XSETFRAME.
10870
10871 * editfns.c (find_field): Make an exception for nil fields.
10872
108732002-11-01 Dave Love <fx@gnu.org>
10874
10875 * m/gec63.h: Deleted.
10876
108772002-10-31 Dave Love <fx@gnu.org>
10878
10879 * xterm.c (XTread_socket): Fix last change.
10880 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10881
108822002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10883
10884 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10885
108862002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10887
10888 * editfns.c (overlays_around, get_pos_property): New funs.
10889 (find_field): Use them.
10890 Also be careful not to modify POS before its last use.
10891 (Fmessage): Don't Fformat if there's nothing to format.
10892
108932002-10-30 Dave Love <fx@gnu.org>
10894
10895 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10896 [HAVE_PTY_H]; Include pty.h.
10897
10898 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10899
10900 * xterm.c (Qeql): Declare.
10901 (Vx_keysym_table): New.
10902 (syms_of_xterm): Initialize it.
10903 (XTread_socket): Use it. Deal with ASCII keysyms.
10904 (XSetIMValues) [HAVE_X11R6]: Prototype.
10905
10906 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10907 (lispy_kana_keys): Comment out.
10908 (make_lispy_event) [XK_kana_A]: Comment out.
10909 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10910 Fix sprintf call.
10911
10912 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10913 regexp.h change).
10914 (TERMINFO, LIBS_TERMCAP): Define.
10915
10916 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10917 (bcmp): Define conditional on HAVE_BCMP.
10918 (NO_SIOCTL_H): Don't define.
10919 (TIOCSIGSEND): Don't make conditional on IRIX6.
10920
10921 * s/sol2-5.h: Don't include strings.h.
10922 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10923
10924 * s/irix6-0.h (IRIX6): Don't define.
10925 (bcopy, bcmp, bzero): Don't undef.
10926
10927 * s/irix6-5.h: Don't include strings.h.
10928 (IRIX6): Don't define.
10929 (bcopy, bcmp, bzero): Don't undef.
10930
10931 * syntax.c (Fforward_comment): Doc fix.
10932
109332002-10-29 Kim F. Storm <storm@cua.dk>
10934
10935 * process.c (Fsignal_process): Allow PROCESS to be specified by
10936 name in addition to pid (as integer or string).
10937
109382002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10939
10940 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10941 environments.
10942
109432002-10-27 Kim F. Storm <storm@cua.dk>
10944
10945 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10946
10947 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10948
10949 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10950
10951 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10952
109532002-10-26 Richard M. Stallman <rms@gnu.org>
10954
10955 * editfns.c (Fformat): Detect invalid format letters for floats.
10956
109572002-10-25 Kenichi Handa <handa@m17n.org>
10958
10959 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10960 (x_set_title): Likewise.
10961
109622002-10-25 Juanma Barranquero <lektu@terra.es>
10963
10964 * macgui.h:
10965 * w32gui.h: Remove definition of XColor.
10966
10967 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10968
109692002-10-24 Kim F. Storm <storm@cua.dk>
10970
10971 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10972 Callers changed (supply dummy arg).
10973
10974 * lisp.h (get_window_cursor_type): Update prototype.
10975
10976 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10977 get_window_cursor_type to track system caret.
10978
109792002-10-24 Kim F. Storm <storm@cua.dk>
10980
10981 * process.c (Fformat_network_address): New function.
10982 (syms_of_process): Defsubr it.
10983 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10984 service/host is not set; before Emacs would crash in that case.
048addec
JD
10985 (Fmake_network_process): Don't use Ffind_operation_coding_system
10986 to setup coding system if host or service is not set.
10987
109882002-10-23 Juanma Barranquero <lektu@terra.es>
10989
10990 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10991
10992 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10993 COLORREF.
10994
10995 * macgui.h:
10996 * w32gui.h: Add definition of XColor.
10997
10998 * macfns.c:
10999 * w32fns.c:
11000 * xfaces.c: Remove definition of XColor.
11001
110022002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11003
11004 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11005
11006 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11007 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11008 window if it is dedicated.
11009 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11010 (Vspecial_display_function): Update docstring.
11011
11012 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11013 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11014 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11015
110162002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11017
11018 * casefiddle.c (casify_region): Don't treat a prefix char as part
11019 of a word when at the beginning.
11020
110212002-10-17 Juanma Barranquero <lektu@terra.es>
11022
11023 * lread.c (syms_of_lread): Fix typos.
11024
110252002-10-17 Dave Love <fx@gnu.org>
11026
11027 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11028
110292002-10-16 Richard M. Stallman <rms@gnu.org>
11030
11031 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11032
110332002-10-14 Juanma Barranquero <lektu@terra.es>
11034
11035 * w16select.c (syms_of_win16select): Fix docstring for
11036 `selection-coding-system'.
11037
11038 * w32select.c (syms_of_w32select): Likewise.
11039
110402002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11041
11042 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11043 a backslash-quoted char.
11044 (scan_lists, scan_sexps_forward): Pacify the compiler.
11045
110462002-10-13 Richard M. Stallman <rms@gnu.org>
11047
11048 * window.c (window_scroll): Set immediate_quit.
11049
11050 * print.c (print): When backquote form is the car of a list,
11051 output in old style. Use old_backquote_output to output all
11052 comma forms inside it in old style too.
11053
11054 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11055
110562002-10-11 Markus Rost <rost@math.ohio-state.edu>
11057
11058 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11059 batch mode).
11060
11061 * lread.c (Fload): Doc fix (load-suffixes).
11062
110632002-10-10 Steven Tamm <steventamm@mac.com>
11064
11065 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11066 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11067 Also switch the default to Qnil from Qt.
11068
110692002-10-08 Kenichi Handa <handa@m17n.org>
11070
11071 * coding.c (code_convert_region): When we need more GAP for
11072 conversion, pay attention to the case that coding->produced is not
11073 greater than coding->consumed.
11074
110752002-10-07 Richard M. Stallman <rms@gnu.org>
11076
11077 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11078
110792002-10-06 Andrew Choi <akochoi@shaw.ca>
11080
11081 * macmenu.c (mac_menu_show): Add j to count menu items; match
11082 menu_item_selection to it to find selected item.
11083
110842002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11085
11086 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11087 cases. The correct fix is to pass ReparentNotify to Xt.
11088 The shell widget interprets ConfigureNotify differently depending
11089 on if it has been reparented or not.
11090
110912002-10-05 Markus Rost <rost@math.ohio-state.edu>
11092
11093 * editfns.c (Fformat_time_string): Doc fix.
11094
110952002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11096
11097 * fns.c (Flength): Doc fix.
11098
110992002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11100
11101 * keyboard.c (keyremap): New struct.
11102 (read_key_sequence): Use it: globally replace keytran_foo with
11103 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11104 keytran_next and fkey_next to just `next'.
11105
111062002-10-04 Steven Tamm <steventamm@mac.com>
11107
11108 * macterm.c (keycode_to_xkeysym_table): Change return to be
11109 treated like an X keysym.
11110
111112002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11112
11113 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11114 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11115 This is to also handle x/y changes that occur because of a resize.
11116
111172002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11118
11119 * frame.c (Vdelete_frame_functions): New variable.
11120 (syms_of_frame): Initialize and defvar it.
11121 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11122 it when frame's `tooltip' parameter is non-nil.
11123
11124 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11125
11126 * w32fns.c (x_create_tip_frame): Likewise.
11127
11128 * macfns.c (x_create_tip_frame): Likewise.
11129
111302002-09-30 Kenichi Handa <handa@m17n.org>
11131
11132 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11133 -1 before calling ccl_driver.
11134
11135 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11136 Only when it is non-nil, handle composition sequence.
11137 (setup_coding_system) <0>: Don't force composition handling.
11138
11139 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11140
111412002-09-29 Richard M. Stallman <rms@gnu.org>
11142
11143 * search.c (Freplace_match): Adjust match data for the substitution
11144 just made in the buffer.
11145
11146 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11147 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11148
111492002-09-27 Richard M. Stallman <rms@gnu.org>
11150
11151 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11152 (read_char): Use them. Do all exits thru the end of the function.
11153
111542002-09-27 Kenichi Handa <handa@etl.go.jp>
11155
11156 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11157 is nil.
11158
111592002-09-26 Richard M. Stallman <rms@gnu.org>
11160
11161 * regex.h (__restrict_arr): Don't define if already defined.
11162
11163 * coding.c (run_pre_post_conversion_on_str):
11164 Save and restore Vdeactivate_mark.
11165
111662002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11167
11168 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11169
111702002-09-26 Kenichi Handa <handa@etl.go.jp>
11171
11172 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11173 nonzero, try face's family at first. Otherwise try FAMILY at first.
11174 (choose_face_font): If C is a single byte char or latin-1, call
11175 try_font_list with PREFER_FACE_FAMILY 1.
11176
111772002-09-21 Richard M. Stallman <rms@gnu.org>
11178
11179 * window.c (select_window_1): Don't select frame.
11180 Set frame's selected window only when frame itself is selected.
11181 (Fselect_window): Doc fix.
11182
111832002-09-18 Kim F. Storm <storm@cua.dk>
11184
11185 * process.c (make-network-process): Doc fix (there is no
11186 network-server-log-function hook).
11187
111882002-09-18 Richard M. Stallman <rms@gnu.org>
11189
11190 * print.c (print): Clear out the unused parts of Vprint_number_table.
11191 (syms_of_print): Doc fix for `print-number-table'.
11192
11193 * unexelf.c (unexec): Undo previous change.
11194
111952002-09-17 Andreas Schwab <schwab@suse.de>
11196
11197 * m/alpha.h [LINUX]: Don't define DATA_START.
11198
111992002-09-16 Dave Love <fx@gnu.org>
11200
11201 * unexelf.c (unexec): Deal with .got, reinstating change from
11202 25-08-1999.
11203
112042002-09-13 Richard M. Stallman <rms@gnu.org>
11205
11206 * s/sol2-6.h (UNEXEC): Comment out definition.
11207
11208 * unexsol.c (unexec): Don't downcase first letter of error msg.
11209
11210 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11211
112122002-09-12 Markus Rost <rost@math.ohio-state.edu>
11213
11214 * unexsol.c: Include buffer.h, charset.h, coding.h.
11215
112162002-09-11 Richard M. Stallman <rms@gnu.org>
11217
11218 * unexsol.c: Don't use report_file_error; do it by hand
11219 using dlerror.
11220
11221 * process.c (wait_reading_process_input, both versions):
11222 Before calling turn_on_atimers, call stop_polling.
11223
11224 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11225
11226 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11227 we go to too_near_end, call clear_glyph_matrix.
11228 (redisplay_window): After make_cursor_line_fully_visible,
11229 call clear_glyph_matrix and bypass `goto done'.
11230
11231 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11232 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11233
112342002-09-10 Richard M. Stallman <rms@gnu.org>
11235
11236 * fileio.c (Fdo_auto_save): Catch error making directory.
11237 Only call push_message if we need to.
11238 At the same time, make an unwind-protect to pop it.
11239 Rename local message_p to old_message_p.
11240 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11241 (do_auto_save_unwind): Don't call pop_message.
11242
11243 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11244
11245 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11246
11247 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11248
11249 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11250
112512002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11252
11253 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11254 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11255 (re_match_2_internal): Be more careful with infinite loops.
11256
112572002-09-10 Kim F. Storm <storm@cua.dk>
11258
11259 * macros.c (end_kbd_macro): New function.
11260 (Fend_kbd_macro): Use it.
11261
11262 * macros.h (end_kbd_macro): Declare extern.
11263
11264 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11265 end and save it instead of discarding it.
11266
112672002-09-09 Markus Rost <rost@math.ohio-state.edu>
11268
11269 * s/sol2-6.h: Fix typo. Add comment.
11270
112712002-09-09 Richard M. Stallman <rms@gnu.org>
11272
11273 * regex.c (regnum_t): Use signed int, not unsigned int.
11274
11275 * s/sol2-6.h: New file.
11276
11277 * s/sol2-5.h (UNEXEC): Definition deleted.
11278
112792002-09-08 Kim F. Storm <storm@cua.dk>
11280
11281 * macros.c (executing_macro_index): Change type to EMACS_INT.
11282 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11283
11284 * macros.h (executing_macro_index): Change type to EMACS_INT.
11285
112862002-09-06 Richard M. Stallman <rms@gnu.org>
11287
11288 * casetab.c (set_case_table): Make canon table point to eqv table.
11289
112902002-09-06 Juanma Barranquero <lektu@terra.es>
11291
11292 * coding.c (syms_of_coding): Fix spacing.
11293
11294 * composite.c (Fcompose_region_internal)
11295 (Fcompose_string_internal): Likewise.
11296
11297 * data.c (Flsh): Likewise.
11298
11299 * fontset.c (Fset_fontset_font): Likewise.
11300
11301 * macfns.c (Fx_server_max_request_size): Likewise.
11302
11303 * w16select.c (syms_of_win16select): Likewise.
11304
11305 * w32select.c (syms_of_w32select): Likewise.
11306
11307 * xselect.c (syms_of_xselect): Likewise.
11308
113092002-09-05 Richard M. Stallman <rms@gnu.org>
11310
11311 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11312 call EXTEND_RANGE_TABLE and return a proper value.
11313 (set_image_of_range): Don't call set_image_of_range_1
11314 if no TRANSLATE or if range includes all of Latin-1.
11315 Only call it for the Latin-1 part of the range.
11316 For other cases, make two separate ranges,
11317 one for the original specified characters and one for
11318 their case-conversions.
11319
113202002-09-04 Richard M. Stallman <rms@gnu.org>
11321
11322 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11323
11324 * window.c (displayed_window_lines): Correct for one-off bug
11325 in HEIGHT on non-window displays.
11326
11327 * regex.c (set_image_of_range_1): New function.
11328 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11329 Return a value to indicate running out of memory.
11330 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11331 (extend_range_table_work_area): New subroutine.
11332 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11333 Different calling conventions, and used from set_image_of_range{,_1}.
11334 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11335
113362002-09-04 Juanma Barranquero <lektu@terra.es>
11337
11338 * makefile.w32-in: All dependencies updated.
11339
113402002-09-01 Richard M. Stallman <rms@gnu.org>
11341
11342 * unexsol.c: New file.
11343
11344 * xfns.c (Qbox): Declare external, don't define.
11345
11346 * xdisp.c (redisplay_window) <force-start case>:
11347 If point is on semi-visible last line, reposition
11348 it at previous line.
11349
11350 * alloc.c (display_malloc_warning): Use display-warning.
11351 (malloc_warning_1): Function deleted.
11352
11353 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11354
11355 * lread.c (read1): Handle #! by skipping the line.
11356
113572002-08-31 Richard M. Stallman <rms@gnu.org>
11358
11359 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11360 Don't include LDFLAGS.
11361 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11362
113632002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11364
11365 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11366 member of x_display_info unless we compile for some window system.
11367
113682002-08-31 Kim F. Storm <storm@cua.dk>
11369
11370 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11371 (get_window_cursor_type): Don't use them.
11372 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11373
113742002-08-30 Kenichi Handa <handa@etl.go.jp>
11375
11376 * xdisp.c (get_next_display_element): Fix previous change.
11377
113782002-08-30 Andrew Choi <akochoi@shaw.ca>
11379
11380 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11381 (expose_window): Use it to fix the display of overlapping
11382 rows (merge code from xterm.c).
11383
11384 * macfns.c (Qbox): Add extern declaration.
11385
113862002-08-30 Juanma Barranquero <lektu@terra.es>
11387
11388 * w32fns.c (Qbox): Make extern.
11389 (syms_of_w32fns): Remove initialization of Qbox.
11390
113912002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11392
11393 * xfns.c (Fx_open_connection): Fix error message.
11394
113952002-08-30 Kim F. Storm <storm@cua.dk>
11396
11397 The following changes consolidates the handling of the cursor
11398 type in xdisp.c, moving duplicate code and functionality from
11399 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11400
11401 * frame.h (enum text_cursor_kinds): Consolidated here.
11402 Added DEFAULT_CURSOR value.
11403 (struct frame) <desired_cursor, cursor_width>
11404 <blink_off_cursor, blink_off_cursor_width>: New fields.
11405 Consolidated from output_x, output_w32 and output_mac structs.
11406 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11407 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11408
11409 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11410 Variables consolidated here.
11411 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11412 (Vcursor_in_non_selected_windows): Renamed from
11413 cursor_in_non_selected_windows and changed to Lisp_Object.
11414 (syms_of_xdisp): Define and staticpro new and moved variables.
11415 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11416 consolidated here. Recognize Qhollow setting.
11417 (set_frame_cursor_types): New function to set frame cursor types
11418 based on the frame parameters.
11419 (get_window_cursor_type): New function to calculate new cursor
11420 type and width for the specified window. Based on duplicated
11421 code consolidated here.
11422 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11423 check buffer-local alternate-cursor-type and blink-cursor-alist
11424 before using built-in blink off methods.
11425
11426 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11427
11428 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11429 (get_specified_cursor_type, get_window_cursor_type)
11430 (set_frame_cursor_types): Added prototypes.
11431
11432 * macfns.c (x_specified_cursor_type): Removed.
11433 (x_set_cursor_type): Use set_frame_cursor_types.
11434 (Qbar, Qbox): Removed.
11435 (syms_of_macfns): Don't intern or staticpro them.
11436
11437 * macterm.c (x_specified_cursor_type): Remove prototype.
11438 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11439 (x_display_and_set_cursor): Use get_window_cursor_type.
11440 Remove unused local variables cursor_non_selected, active_cursor.
11441 Redraw cursor if hbar cursor width changes.
11442 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11443
11444 * macterm.h (enum text_cursor_kinds): Removed.
11445 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11446 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11447 (FRAME_DESIRED_CURSOR): Macro removed.
11448
11449 * w32fns.c (Vblink_cursor_alist): Removed.
11450 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11451 (syms_of_w32fns): Don't intern, staticpro, or define them.
11452 (x_specified_cursor_type): Removed.
11453 (x_set_cursor_type): Use set_frame_cursor_types.
11454
11455 * w32term.c (x_specified_cursor_type): Remove prototype.
11456 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11457 (x_display_and_set_cursor): Use get_window_cursor_type.
11458 Remove unused local variables cursor_off_state.
11459 Redraw cursor if hbar cursor width changes.
11460 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11461
11462 * w32term.h (enum text_cursor_kinds): Removed.
11463 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11464 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11465 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11466 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11467 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11468 w32_highlight_frame.
11469
11470 * xfns.c (Vblink_cursor_alist): Removed.
11471 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11472 (syms_of_xfns): Don't intern, staticpro, or define them.
11473 (x_specified_cursor_type): Removed.
11474 (x_set_cursor_type): Use set_frame_cursor_types.
11475
11476 * xterm.c (x_specified_cursor_type): Remove prototype.
11477 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11478 (x_display_and_set_cursor): Use get_window_cursor_type.
11479 Remove unused local variables cursor_off_state.
11480 Redraw cursor if hbar cursor width changes.
11481
11482 * xterm.h (enum text_cursor_kinds): Removed.
11483 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11484 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11485 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11486 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11487 (x_specified_cursor_type): Remove prototype.
11488
114892002-08-28 Richard M. Stallman <rms@gnu.org>
11490
11491 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11492 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11493 (Vblink_cursor_alist): New variable.
11494 (syms_of_w32fns): Initialize and defvar it.
11495 (x_specified_cursor_type): Recognize Qbox for filled box.
11496 Exceptions are hollow boxes.
11497 (Qbox, Qhollow): New variables.
11498 (syms_of_w32fns): Initialize and staticpro them.
11499
11500 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11501 New macros.
11502 (struct w32_output): New fields blink_off_cursor,
11503 blink_off_cursor_width.
11504 (FRAME_CURSOR_WIDTH): New macro.
11505
11506 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11507 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11508
11509 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11510 for bar cursor.
11511
11512 * w32term.c (expose_overlaps): New function.
11513 (expose_window): Use it to fix the display of overlapping rows.
11514
115152002-08-28 Simon Josefsson <jas@extundo.com>
11516
11517 * xfns.c (Fx_open_connection): Improve help when X connection
11518 fails, xhost is insecure and xauth is better.
11519
115202002-08-28 Juanma Barranquero <lektu@terra.es>
11521
11522 * makefile.w32-in: Add missing dependencies on w32term.h and
11523 composite.h.
11524
11525 * emacs.c (USAGE1): Add missing newline.
11526
115272002-08-27 Andrew Choi <akochoi@shaw.ca>
11528
11529 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11530
115312002-08-27 Richard M. Stallman <rms@gnu.org>
11532
11533 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11534 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11535 (Vblink_cursor_alist): New variable.
11536 (syms_of_xfns): Initialize and defvar it.
11537 (x_specified_cursor_type): Recognize Qbox for filled box.
11538 Exceptions are hollow boxes.
11539 (Qbox, Qhollow): New variables.
11540 (syms_of_xfns): Initialize and staticpro them.
11541
11542 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11543 New macros.
11544 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11545
11546 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11547 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11548
11549 * emacs.c (main): Handle --script.
11550 (USAGE1): Mention --script.
11551 (standard_args): Define sort order for --script.
11552
115532002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11554
11555 * xdisp.c (redisplay_updating_p): Variable removed.
11556 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11557 New variables.
11558 (init_iterator): Don't free realized faces if
11559 inhibit_free_realized_faces is set.
11560 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11561 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11562 initialize Qinhibit_free_realized_faces.
11563
11564 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11565 when iterator is adding glyphs to a glyph matrix.
11566
115672002-08-27 Kenichi Handa <handa@etl.go.jp>
11568
11569 * xdisp.c (get_next_display_element): In unibyte case, don't use
11570 octal form for such eight-bit characters that can be converted to
11571 multibyte char.
11572
115732002-08-26 Kim F. Storm <storm@cua.dk>
11574
b6189c3b
KS
11575 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11576 foreground and background colors. From Joe Buehler.
048addec
JD
11577
115782002-08-26 Miles Bader <miles@gnu.org>
11579
11580 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11581
115822002-08-25 Andrew Choi <akochoi@shaw.ca>
11583
11584 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11585 defined instead of MAC_OSX.
11586
11587 * s/darwin.h (select): Define select to sys_select only if
11588 HAVE_CARBON is defined.
11589 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11590 (DONT_REOPEN_PTY): #def it.
11591
11592 * macterm.c (XTread_socket): Remove code to call
11593 SendEventToEventTarget for keys with command modifiers when
11594 mac_command_key_is_meta is nil.
11595
115962002-08-24 Andreas Schwab <schwab@suse.de>
11597
11598 * eval.c (Fdefvar): Fix last change.
11599
116002002-08-23 Richard M. Stallman <rms@gnu.org>
11601
11602 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11603 Record variables in load history as (defvar . VAR).
11604 (Fdefvar): Don't record in load history if no initial value.
11605 (Qdefvar): New variable.
11606 (syms_of_eval): Init and staticpro it.
11607
11608 * lread.c (syms_of_lread): Doc fix.
11609 (build_load_history): Use Fmember to see if a definition
11610 is already in the Vload_history element.
11611
11612 * process.c (Fstart_process): Remove /: from program name.
11613
11614 * emacs.c (decode_env_path): Don't add /: if file name handler
11615 has a `safe-magic' property.
11616
11617 * callproc.c (Fcall_process): Remove /: from program name.
11618
116192002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11620
11621 * regex.c (PATFETCH): Remove the translating fetch.
11622 (PATFETCH_RAW): Rename to PATFETCH.
11623 (set_image_of_range): New fun.
11624 (SET_RANGE_TABLE_WORK_AREA): Use it.
11625 (regex_compile): Don't translate the pattern chars so eagerly.
11626 Only do it when inserting an `exactn' bytecode or when handling
11627 a char-range.
11628 (mutually_exclusive_p): Avoid empty statement.
11629
116302002-08-22 Kim F. Storm <storm@cua.dk>
11631
11632 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11633 end up on a partially visible line; this reverts a specific part
11634 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11635 display error which has been reported several times now.
11636 However it introduces the problem that changes was supposed to fix.
11637 See my comments in the source if you want to debug this further.
11638
116392002-08-20 Kenichi Handa <handa@etl.go.jp>
11640
11641 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11642
116432002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11644
11645 * msdos.c (croak): Add `void' to definition.
11646
c1380aa6 11647 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11648 Don't define them, they are defined in msdos.c.
11649
11650 * mem-limits.h [MSDOS]: Declare etext.
11651
11652 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11653 `const' since CORRECT_DIR_SEPS modifies its target.
11654
116552002-08-19 Kim F. Storm <storm@cua.dk>
11656
2fb0ce67 11657 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11658 KEEP-RECORD to avoid clearing lossage when we just want to clear
11659 the current key sequence (kmacro needs this).
11660
116612002-08-19 Kenichi Handa <handa@localhost>
11662
11663 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11664
11665 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11666 cons, return Qnil.
11667
116682002-08-17 Richard M. Stallman <rms@gnu.org>
11669
11670 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11671
11672 * sysdep.c [!VMS]: Include sys/files.h.
11673
11674 * editfns.c (save_restriction_restore): Defend from unchained marker.
11675
11676 * buffer.c (overlays_at): Handle extending vec uniformly.
11677 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11678
116792002-08-15 Andrew Choi <akochoi@shaw.ca>
11680
11681 * mac.c (init_mac_osx_environment): New function.
11682
11683 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11684
116852002-08-14 Kim F. Storm <storm@cua.dk>
11686
11687 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11688 executing macro before appending to it (when used from Lisp).
11689 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11690 which is called prior to each iteration of macro (for kmacro.el).
11691 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11692
11693 * lisp.h (Fexecute_kbd_macro): Update prototype.
11694
11695 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11696
116972002-08-14 Kenichi Handa <handa@etl.go.jp>
11698
11699 * xselect.c (QUTF8_STRING): New variable.
11700 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11701 (x_atom_to_symbol): Likewise.
11702 (x_get_local_selection): New argument local_request. If it is
11703 nonzero, call handler_fn with the second arg nil.
11704 (x_handle_selection_request): Call x_get_local_selection with
11705 local_request 0.
11706 (lisp_data_to_selection_data): Don't encode the string here.
11707 (Fx_get_selection_internal): Call x_get_local_selection with
11708 local_request 1.
11709 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11710
11711 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11712
11713 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11714
117152002-08-13 Richard M. Stallman <rms@gnu.org>
11716
11717 * minibuf.c (Fminibufferp): New function.
11718 (syms_of_minibuf): Defsubr it.
11719 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11720
117212002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11722
11723 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11724
117252002-08-12 Richard M. Stallman <rms@gnu.org>
11726
11727 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11728 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11729 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11730 already.
11731
11732 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11733
117342002-08-11 Andrew Choi <akochoi@shaw.ca>
11735
11736 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11737 (Vmac_pass_command_to_system): New variable.
11738 (Vmac_pass_control_to_system): New variable.
11739 (do_mouse_moved): Check wp with is_emacs_window.
11740 (XTread_socket): Check window_ptr with is_emacs_window.
11741 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11742 events back to Mac Toolbox for processing, depending on values of
11743 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11744 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11745 Vmac_pass_control_to_system.
11746
117472002-08-10 Kenichi Handa <handa@etl.go.jp>
11748
11749 * coding.c (unencodable_char_position): New function.
11750 (Funencodable_char_position): New function.
11751 (syms_of_coding): Defsubr Funencodable_char_position.
11752
117532002-08-10 Andrew Choi <akochoi@shaw.ca>
11754
11755 * mac.c (sys_select) [MAC_OSX]: New function.
11756
11757 * macterm.c (MakeMeTheFrontProcess): New function.
11758 (mac_initialize): Call MakeMeTheFrontProcess.
11759
11760 * s/darwin.h: Define select to sys_select.
11761
117622002-08-09 Richard M. Stallman <rms@gnu.org>
11763
11764 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11765
117662002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11767
11768 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11769 end of the buffer.
11770
117712002-08-08 Ken Raeburn <raeburn@mit.edu>
11772
11773 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11774
11775 * puresize.h (BASE_PURESIZE): Increase to 910000.
11776
117772002-08-08 Kenichi Handa <handa@etl.go.jp>
11778
11779 * coding.c (Ffind_operation_coding_system): For write-region, if
11780 VISIT is a filename, make it the target.
11781
117822002-08-07 Richard M. Stallman <rms@gnu.org>
11783
11784 * alloc.c (mark_object): Detect long lists for debugging.
11785 (mark_object_loop_halt): New variable.
11786
11787 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11788
11789 * data.c (Fmake_variable_frame_local): Doc fix.
11790
117912002-08-01 David Ponce <david@dponce.com>
11792
11793 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11794 (malloc_widget_value, free_widget_value)
11795 (w32_free_submenu_strings): Use them.
11796
11797 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11798 (push_menu_pane, push_menu_item, single_keymap_panes)
11799 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11800 (single_submenu, set_frame_menubar)
11801 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11802
11803 (Fx_popup_menu): Don't show pop up menu until preceding one is
11804 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11805
11806 * w32menu.c: Changes adapted from xmenu.c
11807 (set_frame_menubar): First parse all submenus,
11808 then make widget_value trees from them.
11809 Don't allocate any widget_value objects
11810 until we are done with the parsing.
11811 (parse_single_submenu): New function.
11812 (digest_single_submenu): New function.
11813 (single_submenu): Function deleted, replaced by those two.
11814
118152002-08-04 Andrew Choi <akochoi@shaw.ca>
11816
11817 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11818 returns a valid window pointer before proceeding for keyDown and
11819 autoKey events.
11820
118212002-08-03 Andrew Choi <akochoi@shaw.ca>
11822
11823 * macterm.c (USE_CARBON_EVENTS): New macro.
11824 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11825 (x_iconify_frame): Call CollapseWindow.
11826 (Vmac_reverse_ctrl_meta): New variable.
11827 (Vmac_wheel_button_is_mouse_2): New variable.
11828 (init_mac_drag_n_drop): New function.
11829 (mac_do_receive_drag): New function.
11830 (mac_handle_service_event): New function.
11831 (init_service_handler): New function.
11832 (mac_to_emacs_modifiers): New function.
11833 (mac_event_to_emacs_modifiers): New function.
11834 (mac_get_mouse_btn): New function.
11835 (mac_convert_event_ref): New function.
11836 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11837 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11838 mac_get_mouse_btn.
11839 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11840
11841 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11842 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11843 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11844 TOOL_BAR_EVENT for MAC_OS as well.
11845 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11846 as for WINDOWS_NT.
11847 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11848
11849 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11850
118512002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11852
11853 * xdisp.c (forward_to_next_line_start): Fix a condition that
11854 lead to a newline being skipped.
11855
118562002-08-02 Andrew Choi <akochoi@shaw.ca>
11857
11858 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11859
118602002-08-01 Richard M. Stallman <rms@gnu.org>
11861
11862 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11863
118642002-07-31 Andrew Choi <akochoi@shaw.ca>
11865
11866 * macfns.c: #undef init_process before #define-ing it.
11867
11868 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11869 HAVE_CARBON is defined.
11870
118712002-07-31 Richard M. Stallman <rms@gnu.org>
11872
11873 * xmenu.c (set_frame_menubar): First parse all submenus,
11874 then make widget_value trees from them.
11875 Don't allocate any widget_value objects
11876 until we are done with the parsing.
11877 (parse_single_submenu): New function.
11878 (digest_single_submenu): New function.
11879 (single_submenu): Function deleted, replaced by those two.
11880
118812002-07-30 Juanma Barranquero <lektu@terra.es>
11882
11883 * w32proc.c (syms_of_ntproc): Fix docstring of
11884 `w32-get-true-file-attributes'.
11885
118862002-07-28 Richard M. Stallman <rms@gnu.org>
11887
11888 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11889 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11890
11891 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11892
11893 * keyboard.c (make_lispy_event):
11894 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11895 Explicitly clear up_modifier in event->modifiers.
11896
118972002-07-27 Richard M. Stallman <rms@gnu.org>
11898
11899 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11900
11901 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11902 for bar cursor.
11903
119042002-07-26 Kenichi Handa <handa@etl.go.jp>
11905
11906 * coding.c (detect_coding_iso2022): While checking a byte sequence
11907 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11908 it in the normal loop.
11909
119102002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11911
11912 * xterm.c (expose_overlaps): New function.
11913 (expose_window): Use it to fix the display of overlapping rows.
11914
11915 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11916
119172002-07-23 Ken Raeburn <raeburn@gnu.org>
11918
11919 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11920 since it only depends on XUINT.
11921
11922 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11923 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11924 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11925 Macros deleted.
3947677c 11926
77d1daf2
AS
11927 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11928 its value over other approaches.
11929 * sysdep.c (start_of_data): Don't define the function if a macro
11930 form has been defined.
8a8e19a3 11931
048addec
JD
119322002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11933
11934 * xdisp.c (redisplay_updating_p): New variable.
11935 (init_iterator): Don't free realized faces when
11936 redisplay_updating_p is set.
11937 (redisplay_internal): Set redisplay_updating_p while updating
11938 the display.
11939
119402002-07-23 Richard M. Stallman <rms@gnu.org>
11941
11942 * editfns.c (Fmessage): Treat "" like nil.
11943
119442002-07-23 Kenichi Handa <handa@etl.go.jp>
11945
11946 * xdisp.c (face_before_or_after_it_pos):
11947 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11948
119492002-07-22 Juanma Barranquero <lektu@terra.es>
11950
11951 * callproc.c (init_callproc) [DOS_NT]:
11952 Initialize Vshared_game_score_directory to nil.
11953 (syms_of_callproc) [DOS_NT]: Likewise.
11954
119552002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11956
11957 * xdisp.c (display_line): Replace an abort with xassert.
11958
119592002-07-21 Richard M. Stallman <rms@gnu.org>
11960
11961 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11962 and END_UNCHANGED when setting buffer_unchanged_p.
11963 Use current_matrix_up_to_date_p to decide whether to use
11964 try_cursor_movement.
11965
11966 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11967
11968 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11969
11970 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11971 Set to nil if dir does not exist.
11972 (syms_of_callproc): Init unconditionally and simply.
11973
11974 * buffer.c (Fbuffer_list): Doc fix.
11975
119762002-07-21 Ken Raeburn <raeburn@gnu.org>
11977
11978 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11979
11980 * buffer.c (mmap_realloc): When shrinking, make sure number of
11981 pages to unmap is rounded towards zero.
11982
11983 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11984 (XSETINT): Deleted.
11985
11986 * m/att3b.h (XINT): Don't define.
11987 (VALBITS, VALMASK, XTYPE): Deleted.
11988 (DATA_SEG_BITS): Define.
11989 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11990 ARRAY_MARK_FLAG): Deleted.
11991 (DATA_SEG_BITS): Define.
11992 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11993 (DATA_SEG_BITS): Define.
11994
119952002-07-20 Richard M. Stallman <rms@gnu.org>
11996
11997 * print.c (print_error_message): New args CONTEXT and CALLER.
11998 Calls changed.
11999
12000 * lisp.h (print_error_message): Declare new args.
12001
12002 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12003 and CONTEXT to print_error_message, don't print them here.
12004 For a Quit, don't use Vsignaling_function.
12005 Call message_log_maybe_newline.
12006
12007 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12008
120092002-07-20 Kim F. Storm <storm@cua.dk>
12010
12011 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12012
120132002-07-19 Ken Raeburn <raeburn@gnu.org>
12014
12015 * bytecode.c (struct byte_stack): Pointers into byte string now
12016 point to const.
12017 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12018 const.
12019 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12020 * coding.c (encode_eol, detect_coding, detect_eol):
12021 (decode_coding, encode_coding, detect_coding_system):
12022 Source strings now treated as const.
12023 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12024 modify Lisp string contents.
12025 * coding.h (decode_coding, encode_coding, detect_coding,
12026 detect_eol): Declarations updated.
12027 * composite.c (compose_chars_in_text): Treat Lisp string contents
12028 as const.
12029 * dispnew.c (safe_bcopy): Source pointer now points to const.
12030 * lisp.h (STRING_COPYIN): New macro.
12031 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12032 (internal_with_output_to_temp_buffer): Declarations updated.
12033 * print.c (temp_output_buffer_setup):
12034 (internal_with_output_to_temp_buffer): Buffer name argument is now
12035 pointer to const.
12036 * sound.c (struct sound_device): Function pointer field "write"
12037 buffer argument now points to const.
12038 (vox_write): Buffer argument points to const.
12039 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12040 contents as const.
12041 * sysdep.c (emacs_write): Buffer pointer now const.
12042 * term.c (encode_terminal_code): Buffer pointer now const.
12043 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12044 (x_face_list_fonts, x_update_menu_appearance):
12045 (hash_string_case_insensitive): Treat Lisp string contents as const.
12046
120472002-07-19 Juanma Barranquero <lektu@terra.es>
12048
048addec
JD
12049 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12050
12051 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12052 (Ffile_name_as_directory): Fix argument name in docstring.
12053 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12054
120552002-07-18 Richard M. Stallman <rms@gnu.org>
12056
12057 * data.c (Fdefalias): Doc fix.
12058
120592002-07-17 Dave Love <fx@gnu.org>
12060
12061 * intervals.h (text_property_stickiness): Use P_.
12062
12063 * ccl.c: Remove `emacs' conditionals.
12064 (ccl_backtrace_table): Fix size spec.
12065 (ccl_driver): Fix type errors.
12066
120672002-07-16 Ken Raeburn <raeburn@gnu.org>
12068
12069 * alloc.c (xstrdup, make_string, make_unibyte_string)
12070 (make_multibyte_string, build_string): String pointer args now
12071 point to const.
12072 * charset.c (find_charset_in_text, c_string_width):
12073 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12074 * fileio.c (report_file_error):
12075 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12076 (count_combining_before, count_combining_after, insert_1_both):
12077 (insert, insert_and_inherit, insert_string):
12078 (insert_before_markers, insert_before_markers_and_inherit):
12079 * lread.c (intern, oblookup, hash_string):
12080 * minibuf.c (temp_echo_area_glyphs):
12081 * search.c (fast_c_string_match_ignore_case):
12082 * sysdep.c (emacs_open, set_file_times):
12083 * xfaces.c (xstricmp):
12084 * xdisp.c (store_frame_title, string_char_and_length):
12085 (message_dolog, message2, message2_nolog, set_message): Likewise.
12086 (set_message_1): Cast message string argument to const pointer.
12087 * editfns.c (general_insert_function): Insertion function now
12088 takes pointer to const for input data.
12089 * charset.h (find_charset_in_text, c_string_width):
12090 (parse_str_as_multibyte): Declarations updated.
12091 * dispextern.h (xstricmp): Declaration updated.
12092 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12093 (count_size_as_multibyte, count_combining_before):
12094 (count_combining_after, insert_1, insert_1_both, message_dolog):
12095 (insert, insert_and_inherit, insert_before_markers)
12096 (insert_before_markers_and_inherit, set_message, message2):
12097 (message2_dolog, build_string, make_string, make_unibyte_string):
12098 (make_multibyte_string, intern, oblookup, report_file_error):
12099 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12100 (emacs_open, xstrdup): Declarations updated.
12101 * systime.h (set_file_times): Declaration updated.
12102
12103 * charset.c (find_charset_in_text, lisp_string_width): Use const
12104 for pointer to lisp string data.
12105 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12106 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12107 * coding.c (Ffind_coding_systems_region_interval):
12108 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12109 (Fmake_directory_internal, Fdelete_directory):
12110 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12111 * fontset.c (font_family_registry, fs_query_fontset):
12112 (list_fontsets):
12113 * frame.c (Fframe_parameter):
12114 * keyboard.c (cmd_error_internal):
12115 * keymap.c (Fdescribe_buffer_bindings):
12116 * lread.c (complete_filename_p, openp):
12117 * minibuf.c (Fminibuffer_complete_word):
12118 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12119 (face_before_or_after_it_pos, next_element_from_string):
12120 (get_overlay_arrow_glyph_row, display_mode_element):
12121 (decode_mode_spec_coding):
12122 * xterm.c (same_x_server): Likewise.
12123
12124 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12125 settings of non-existent fields.
12126
12127 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12128 copy a lisp value.
12129
12130 * lread.c (Fintern_soft): Use string macros instead of
12131 Lisp_String fields.
12132 * keyboard.c (echo_char, parse_modifiers_uncached):
12133 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12134 * textprop.c (validate_interval_range, interval_of): Likewise.
12135
12136 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12137
12138 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12139 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12140 XSTRING()->size_byte.
12141
12142 * lisp.h (SDATA, SREF): Produce rvalue.
12143 (SSET): New macro.
12144 * alloc.c (make_event_array): Use SSET for storing into a string.
12145 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12146 a string.
12147 * casefiddle.c (casify_object): Use SSET.
12148 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12149 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12150 address of string contents.
12151 * data.c (Faref): Use SDATA.
12152 (Faset): Use SDATA, SSET.
12153 * dired.c (directory_files_internal): Use SSET.
12154 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12155 (Fread_file_name): Use SREF, SSET.
12156 * fns.c (concat): Use SSET.
12157 (concat, Fdelete): Use SDATA.
12158 * insdel.c (insert_from_string_1): Use SDATA.
12159 * keyboard.c (Fevent_convert_list): Use SREF.
12160 * lread.c (Fload): Use SDATA, SSET.
12161 * macfns.c (validate_x_resource_name): Use SSET.
12162 * process.c (status_message): Use SSET.
12163 * search.c (wordify): Use SDATA.
12164 (Freplace_match): Use SREF.
12165 * w32fns.c (validate_x_resource_name): Use SSET.
12166 * xfns.c (validate_x_resource_name): Use SSET.
12167 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12168
121692002-07-16 Richard M. Stallman <rms@gnu.org>
12170
12171 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12172
12173 * xdisp.c (reconsider_clip_changes):
12174 Don't test prevent_redisplay_optimizations_p.
12175 (redisplay_internal): Test prevent_redisplay_optimizations_p
12176 along with clip_changed in some cases.
12177 (try_window_id): Likewise.
12178 (redisplay_window): New local var buffer_unchanged_p.
12179
12180 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12181
12182 * process.c (create_process): Test USG_SUBTTY_WORKS.
12183 (process_send_signal): Clean up handling of GID.
12184 Detect errors in ioctls meant to set GID.
12185
12186 * window.c (temp_output_buffer_show):
12187 Don't set prevent_redisplay_optimizations_p.
12188
121892002-07-15 Juanma Barranquero <lektu@terra.es>
12190
12191 * eval.c (Fdefvaralias): Add docstring argument.
12192
121932002-07-15 Ken Raeburn <raeburn@gnu.org>
12194
12195 * lisp.h (STRING_INTERVALS): Produce rvalue.
12196 (STRING_SET_INTERVALS): New macro.
12197 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12198 * fns.c (Fstring_as_multibyte): Likewise.
12199 * intervals.c (balance_possible_root_interval, delete_interval)
12200 (create_root_interval, copy_intervals_to_string): Likewise.
12201 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12202 instead of 0.
12203
122042002-07-14 Ken Raeburn <raeburn@gnu.org>
12205
12206 * lisp.h (STRING_SET_CHARS): New macro.
12207 (SCHARS, SBYTES): Produce rvalues.
12208 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12209 * fns.c (concat): Likewise.
12210 * lread.c (read_vector): Likewise.
12211
12212 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12213 (STRING_SET_UNIBYTE): New macro.
12214 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12215 length of -1) changed to use STRING_SET_UNIBYTE.
12216 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12217 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12218 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12219 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12220 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12221 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12222 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12223 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12224 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12225 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12226 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12227 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12228 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12229 unchanged for now.
12230
122312002-07-13 Kim F. Storm <storm@cua.dk>
12232
12233 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12234
122352002-07-12 Richard M. Stallman <rms@gnu.org>
12236
12237 * fileio.c (Fwrite_region): Doc fix.
12238
12239 * print.c (print_error_message): Don't handle Vsignaling_function here.
12240
12241 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12242 (command_loop_1): Avoid certain actions after memory-full error.
12243
12244 * eval.c (Fsignal): Don't call cancel_hourglass.
12245 For a memory-full error, don't call Vsignal_hook_function
12246 and don't set Vsignaling_function.
12247
12248 * process.c (process_send_signal): Add abort call.
12249
122502002-07-11 Markus Rost <rost@math.ohio-state.edu>
12251
12252 * keymap.c (Fkey_binding): Fix typo.
12253
122542002-07-11 Richard M. Stallman <rms@gnu.org>
12255
12256 * alloc.c (Vmemory_full): New variable.
12257 (Vmemory_signal_data): Renamed from memory_signal_data.
12258 Uses changed.
12259 (syms_of_alloc): Defvar them.
12260 (memory_full, buffer_memory_full): Set Vmemory_full.
12261
12262 * lisp.h (Vmemory_full): Add declaration.
12263 (current_column, indented_beyond_p): Change declaration.
12264
12265 * indent.c (last_known_column): Declare as double, not float.
12266 (current_column, current_column_1, string_display_width)
12267 (position_indentation): Return `double'.
12268 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12269
12270 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12271 (back_to_previous_visible_line_start)
12272 (reseat_at_next_visible_line_start, next_element_from_buffer):
12273 Use `double', not `float', when calling indented_beyond_p.
12274
12275 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12276
12277 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12278
122792002-07-11 Juanma Barranquero <lektu@terra.es>
12280
12281 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12282 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12283 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12284 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12285 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12286 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12287
122882002-07-10 Juanma Barranquero <lektu@terra.es>
12289
d814862a
JB
12290 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12291 All callers changed.
048addec
JD
12292
122932002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12294
12295 * data.c (Fdefalias): Add an optional `docstring' argument.
12296 (set_internal, Fsetq_default): Use XCAR/XCDR.
12297
12298 * composite.c (HASH_VALUE, HASH_KEY):
12299 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12300
123012002-07-09 Kenichi Handa <handa@etl.go.jp>
12302
12303 * callproc.c (Fcall_process): Fix previous change.
12304
123052002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12306
12307 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12308 Add support for hash-tables.
12309 (Ftry_completion): Return t even if the string appears multiple times.
12310
12311 * fns.c (Fnconc): Use XCDR.
12312 (Fprovide): Use CONSP and XCDR.
12313 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12314 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12315 (Fmake_hash_table): Accept `:size nil'.
12316 (Fmakehash): Delete: moved to subr.el.
12317 (syms_of_fns): Don't defsubr makehash.
12318
12319 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12320 (HASH_TABLE_SIZE): Move from fns.c.
12321
123222002-07-07 Richard M. Stallman <rms@gnu.org>
12323
12324 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12325 Instead just return 0 when there is something to be done.
12326 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12327 retry scrolling as if cursor were off the bottom.
12328 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12329 return CURSOR_MOVEMENT_MUST_SCROLL.
12330 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12331 go to try_to_scroll.
12332
12333 * buffer.c (Fbuffer_local_value): Store current value into its binding
12334 so we get the up-to-date value for the binding that is loaded.
12335
12336 * eval.c (Fdefmacro): Doc fix.
12337
123382002-07-05 Dave Love <fx@gnu.org>
12339
12340 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12341 correctly.
12342
12343 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12344 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12345 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12346 CCL_LookupCharConstTbl.
12347 (syms_of_ccl): Defvar translation-hash-table-vector.
12348
123492002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12350
12351 * xdisp.c: Remove unused variable `face'.
12352
123532002-07-04 Juanma Barranquero <lektu@terra.es>
12354
12355 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12356 obsolescence information.
12357
123582002-07-03 Andrew Choi <akochoi@shaw.ca>
12359
12360 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12361 pattern. Search cache first.
12362 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12363 for Japanese font.
12364 (XLoadQueryFont): Use it.
12365
123662002-07-02 Richard M. Stallman <rms@gnu.org>
12367
12368 * keymap.c (Fdefine_key): Doc fix.
12369
12370 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12371
123722002-07-02 Juanma Barranquero <lektu@terra.es>
12373
12374 * keymap.c (syms_of_keymap): Fix typo.
12375
123762002-07-01 Andrew Choi <akochoi@shaw.ca>
12377
12378 * s/darwin.h: Define POSIX_SIGNALS.
12379
12380 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12381 and FSRefMakePath to convert FSSpec returned with Apple Event to
12382 Posix pathname.
12383 (mac_initialize) [TARGET_API_MAC_CARBON]:
12384 Call init_required_apple_events and disable the `Quit' menu item
12385 provided automatically by the Carbon Toolbox.
12386
123872002-07-01 Dave Love <fx@gnu.org>
12388
12389 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12390 for K&R.
12391
12392 * xterm.c: Fix prototype for K&R.
12393
12394 * term.c (costs_set): Declare static, non-initialized for pcc.
12395
123962002-07-01 Richard M. Stallman <rms@gnu.org>
12397
12398 * keyboard.c (timer_last_idleness_start_time): New variable.
12399 (timer_start_idle): Set that.
12400 (read_key_sequence): Use that to reset timer_idleness_start_time
12401 to previous value.
12402
12403 * window.c (Frecenter): With arg, set optional_new_start.
12404
12405 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12406
12407 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12408 buffer for completion.
12409
124102002-06-29 Ken Raeburn <raeburn@gnu.org>
12411
12412 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12413
124142002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12415
12416 * keyboard.c (readable_filtered_events): New function that filters
12417 FOCUS_IN_EVENT depending on parameter.
12418 (readable_events): Calls readable_filtered_events, not filtering
12419 FOCUS_IN_EVENT.
12420 (get_filtered_input_pending): New function, filtering parameter passed
12421 to readable_filtered_events.
12422 (get_input_pending): Calls get_filtered_input_pending, not filtering
12423 FOCUS_IN_EVENT.
12424 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12425 FOCUS_IN_EVENT.
12426
12427 * xterm.h (struct x_output): Add focus_state.
12428
12429 * xterm.c (x_focus_changed): New function.
12430 (x_detect_focus_change): New function.
12431 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12432 EnterNotify and LeaveNotify to track X focus changes.
12433
124342002-06-28 Andreas Schwab <schwab@suse.de>
12435
12436 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12437
124382002-06-27 Kim F. Storm <storm@cua.dk>
12439
12440 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12441 (mode_line_string_face_prop): New variables.
12442 (store_mode_line_string): New function.
12443 (display_mode_element): Use store_mode_line_string to
12444 add mode-line string elements to mode_line_string_list
12445 when mode_line_string_list is non-nil.
12446 (Fformat_mode_line): Now returns propertized string by
12447 default. New arg NO-PROPS to ignore properties.
12448 (decode_mode_spec): Only add two dashes for %- in propertized
12449 mode-line string.
12450 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12451
124522002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12453
12454 * minibuf.c (minibuffer_completion_contents): Add return type.
12455
124562002-06-27 Juanma Barranquero <lektu@terra.es>
12457
12458 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12459
124602002-06-26 Juanma Barranquero <lektu@terra.es>
12461
12462 * fileio.c (read_file_name_cleanup): Add missing return.
12463
124642002-06-26 Richard M. Stallman <rms@gnu.org>
12465
12466 * window.c (Frecenter): Don't set force_start flag.
12467
12468 * minibuf.c (do_completion, Fminibuffer_complete_word)
12469 (Fminibuffer_completion_help): Complete just the text before point.
12470 (minibuffer_completion_contents): New function.
12471
12472 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12473
12474 * frame.c (frames_bury_buffer): Function deleted.
12475
124762002-06-25 Miles Bader <miles@gnu.org>
12477
12478 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12479 the end of callint_message, allow for a terminating '\0'.
12480
124812002-06-24 Juanma Barranquero <lektu@terra.es>
12482
12483 * w32select.c: Include composite.h
12484
12485 * w16select.c: Likewise.
12486
124872002-06-24 Kenichi Handa <handa@etl.go.jp>
12488
12489 * callproc.c (Fcall_process): If code detection is necessary,
12490 call detect_coding directly here.
12491
12492 * coding.c (detect_eol): Preserve coding->cmp_data.
12493
12494 * w16select.c (Fw16_get_clipboard_data):
12495 * w32fns.c (w32_to_x_font):
12496 * w32select.c (Fw32_get_clipboard_data):
12497 * xselect.c (selection_data_to_lisp_data):
12498 * xterm.c (XTread_socket): Disable composition handling.
12499
125002002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12501
12502 * print.c (temp_output_buffer_setup): Kill all local variables.
12503
125042002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12505
12506 * lread.c (Fread): Remove redundant and imprecise declaration.
12507
12508 * xfns.c (check_x_display_info): Use check_x_frame.
12509
12510 * .gdbinit (xprintsym): Use the new `xname' field.
12511 (xsymbol): Use it.
12512
125132002-06-22 Jason Rumney <jasonr@gnu.org>
12514
12515 * w32fns.c (file_dialog_callback): New function.
12516 (Fx_file_dialog): Allow selecting directories as well as files.
12517
125182002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12519
12520 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12521 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12522
125232002-06-17 Andrew Choi <akochoi@shaw.ca>
12524
12525 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12526 black and white before scrolling. Restore frame background and
12527 foreground color after scrolling.
12528 (do_window_update): Call XClearWindow before calling expose_frame.
12529 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12530 FRAME_FOREGROUND_PIXEL of frame.
12531
12532 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12533 test Mac command key as <ALT> key.
12534
125352002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12536
12537 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12538
12539 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12540 Lookup keys in function-key-map immediately so that key-translation-map
12541 can be applied earlier.
12542 Remove function_key_possible and key_translation_possible, replaced
12543 by checking `keytran_start < t'.
12544
12545 * .gdbinit (xsymbol): Use the new `xname' field.
12546
125472002-06-17 Andrew Choi <akochoi@shaw.ca>
12548
12549 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12550 test Mac command key as <ALT> key.
12551
12552 * mac.c (do_applescript): Call initialize_applescript if necessary
12553 when first called. Dispose of result_desc only when there is no error.
12554 (Fdo_applescript): Use %d format specifier instead of %ld.
12555
125562002-06-16 Andrew Choi <akochoi@shaw.ca>
12557
12558 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12559 of FrontWindow for cases keyDown and autoKey.
12560
12561 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12562 Vdefault_fontset to Monaco with mac-roman coding.
12563
12564 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12565 init_process before and after inclusion of Carbon/Carbon.h, resp.
12566
12567 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12568 cursor_gc.
12569 (add_font_name_table_entry): New function.
12570 (init_font_name_table): Use add_font_name_table_entry; add italic,
12571 bold, and bold-italic entries for truetype fonts.
12572
12573 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12574 for Mac too.
12575 (try_font_list) [MAC_OS]: If no font matches given registry, try
12576 fonts with any registry matching face_family.
12577 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12578
12579 * s/darwin.h: If autoconf detects the Ncurses library, define
12580 LIBS_TERMCAP to -lncurses to use it.
12581
125822002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12583
12584 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12585
125862002-06-15 Richard M. Stallman <rms@gnu.org>
12587
12588 * window.c (Fset_window_configuration): Explicitly preserve
12589 the point value that new_current_buffer had at the start.
12590
125912002-06-14 Juanma Barranquero <lektu@terra.es>
12592
12593 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12594 Fix typos.
12595
125962002-06-14 Kim F. Storm <storm@cua.dk>
12597
12598 * insdel.c (insert_1_both, insert_from_string_1)
12599 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12600 insert happened in the end_unchanged region. Otherwise, the
12601 redisplay may be confused and duplicate the last line in the
12602 buffer [seen after save-buffer when require-final-newline==t].
12603
126042002-06-13 Jason Rumney <jasonr@gnu.org>
12605
12606 * w32.c (init_environment): Remove EMACSLOCKDIR.
12607 (stat): Swap _S_IFDIR and _S_IFREG.
12608
126092002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12610
12611 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12612 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12613 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12614 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12615 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12616 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12617 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12618 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12619 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12620 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12621 SELECTION_REQUEST_EVENT, selection_clear_event to
12622 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12623 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12624 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12625 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12626 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12627 no_event to NO_EVENT.
12628
126292002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12630
12631 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12632
126332002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12634
12635 * intervals.c (textget): Don't forget to `return'.
12636 (lookup_char_property): Use XCAR/XCDR.
12637
126382002-06-12 Juanma Barranquero <lektu@terra.es>
12639
12640 * xdisp.c (Fformat_mode_line): Fix typo.
12641
126422002-06-12 Kim F. Storm <storm@cua.dk>
12643
12644 * xdisp.c (Fformat_mode_line): New function.
12645 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12646 (store_frame_title_char, store_frame_title): Use unconditionally.
12647 (init_xdisp): Defsubr Fformat_mode_line.
12648 Initialize frame_title_buf etc. unconditionally.
12649
126502002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12651
12652 * keyboard.c (read_key_sequence):
12653 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12654 things through those maps after downcasing events.
12655 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12656 applies after function-key-map.
12657 Make sure that keytran can be done in the middle in the sequence.
12658 Be careful not to throw away events past the one we downcase.
12659
12660 * lread.c (read_integer): Remove unused var `tem'.
12661 (read1): Fix int/Lisp_Object mixup.
12662
12663 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12664
126652002-06-11 Richard M. Stallman <rms@gnu.org>
12666
12667 * keyboard.c (readable_events): Ignore any number of
12668 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12669
126702002-06-09 Miles Bader <miles@gnu.org>
12671
12672 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12673 (parse_rgb_list, tty_lookup_color): New functions.
12674 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12675 (color_distance, Fcolor_distance): New functions.
12676 (TTY_SAME_COLOR_THRESHOLD): New macro.
12677 (Qtty_color_standard_values): New variable.
12678 (syms_of_xfaces): Initialize new vars & functions.
12679
126802002-06-08 Colin Walters <walters@verbum.org>
12681
12682 * textprop.c (Vchar_property_alias_alist): New variable.
12683 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12684
12685 * intervals.c (lookup_char_property): New function for looking up
12686 overlay and text properties, created from textget.
12687 (textget): Use it.
12688
12689 * intervals.h (lookup_char_property): Declare.
12690 (Vchar_property_alias_alist): Declare.
12691
12692 * buffer.c (Foverlay_get): Use lookup_char_property.
12693
126942002-06-07 Sam Steingold <sds@gnu.org>
12695
12696 * xselect.c (lisp_data_to_selection_data): Fix last change:
12697 *data_ret is not a Lisp string, while unibyte_string is.
12698
126992002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12700
12701 * xselect.c (lisp_data_to_selection_data): Fix last change:
12702 set size_ret.
12703
127042002-06-07 Andreas Schwab <schwab@suse.de>
12705
12706 * m/amdx86-64.h: New file.
12707
127082002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12709
12710 * fns.c (Fstring_make_unibyte): Doc fix.
12711
12712 * xselect.c (lisp_data_to_selection_data): If the requested type
12713 is STRING, call string_make_unibyte to encode the selected text
12714 as a string.
12715
12716 * window.c (Fset_window_hscroll): Doc fix.
12717
127182002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12719
12720 * fileio.c (choose_write_coding_system):
12721 Call select-safe-coding-system properly.
12722
127232002-06-03 Richard M. Stallman <rms@gnu.org>
12724
12725 * xdisp.c (message_with_string): Error if STRING is not a string.
12726
12727 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12728
12729 * fileio.c (choose_write_coding_system): Pass FILE arg to
12730 Vselect_safe_coding_system_function.
12731
127322002-06-03 Ken Raeburn <raeburn@gnu.org>
12733
12734 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12735
127362002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12737
12738 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12739 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12740 * keymap.c (describe_command): Likewise.
12741 * minibuf.c (read_minibuf): Likewise.
12742
12743 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12744 Cast `current_column' return value to int.
12745 (back_to_previous_visible_line_start)
12746 (reseat_at_next_visible_line_start, next_element_from_buffer):
12747 Cast `indented_beyond_p' 3rd arg to float.
12748
12749 * indent.c (last_known_column): Now a float.
12750 (current_column_1, position_indentation, current_column)
12751 (string_display_width): Return float.
12752 (Fcurrent_column): Cast `current_column' return value to int.
12753 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12754 (indented_beyond_p): Third arg now a float.
12755 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12756
12757 * lisp.h (current_column): Now returns float.
12758 (indented_beyond_p): 3rd arg now a float.
12759
127602002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12761
12762 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12763 is Qcompound_text_with_extensions.
12764
12765 * xselect.c (lisp_data_to_selection_data): Always set selection
12766 type as string if x_encode_text returns streingp non-NULL.
12767
12768 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12769
127702002-05-30 Richard M. Stallman <rms@gnu.org>
12771
12772 * window.c (Fset_window_configuration): Correct the handling
12773 of point in current buffer, to work with multiple windows.
12774
127752002-05-29 Colin Walters <walters@verbum.org>
12776
12777 * lread.c (Fread_from_string): Don't depend on order of evaluation
12778 for C function parameters.
12779
127802002-05-28 Richard M. Stallman <rms@gnu.org>
12781
12782 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12783 way for blinked-off state and for a nonselected window.
12784
12785 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12786 instead, see if the new start pos is at beginning of line.
12787
12788 * fileio.c (Fwrite_region): If START is a string, don't
12789 make any annotations.
12790
12791 * eval.c (syms_of_eval): Doc fix.
12792
127932002-05-28 Colin Walters <walters@debian.org>
12794
12795 * emacs.c (USAGE1): Add --no-splash.
12796 (standard_args): Ditto.
12797
127982002-05-28 Colin Walters <walters@gnu.org>
12799
12800 * lread.c (readchar_count): New variable.
12801 (readchar): Increment it.
12802 (unreadchar): Decrement it.
12803 (read_multibyte): Decrement it.
12804 (Vread_with_symbol_positions): New variable.
12805 (Vread_symbol_positions_list): New variable.
12806 (read_internal_start): New function, created from Fread and
12807 Fread_from_string. Handle Vread_symbol_positions_list and
12808 Vread_with_symbol_positions.
12809 (readevalloop, Fread, Fread_from_string): Use it.
12810 (read1): Use readchar_count to add symbol positions to
12811 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12812 (syms_of_lread): DEFVAR_LISP and initialize them.
12813
12814 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12815 (substitute_object_recurse, substitute_object_in_subtree)
12816 (substitute_in_interval): Prototype.
12817 (read_multibyte): Return c if it's less than zero.
12818
128192002-05-28 Kim F. Storm <storm@cua.dk>
12820
12821 * fileio.c (Fread_file_name_internal): Added brute-force
12822 speed up for using predicate file-directory-p.
12823
128242002-05-28 Kim F. Storm <storm@cua.dk>
12825
12826 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12827 New variables.
12828 (syms_of_fileio): DEFVAR_LISP them.
12829 (read_file_name_cleanup): New unwind function.
12830 (Fread_file_name_internal): Only return completions satifying
12831 Vread_file_name_predicate. Temporarily unwind protect and rebind
12832 default-directory while checking completions against the predicate.
12833 (Fread_file_name): Added PREDICATE argument. Specbind it to
12834 Vread_file_name_predicate during completion.
12835 Call Vread_file_name_function to read the file name if non-nil.
12836
12837 * lisp.h (Fread_file_name): Now has 6 args.
12838
12839 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12840 predicate for Fread_file_name when reading directory name.
12841 Supply Qnil for predicate in other calls to Fread_file_name.
12842
128432002-05-26 Miles Bader <miles@gnu.org>
12844
12845 * term.c (tty_capable_p): New function.
12846 * dispextern.h (tty_capable_p): New function declaration.
12847 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12848 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12849
128502002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12851
12852 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12853 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12854 (Vwrite_region_annotate_functions): Docstring fix.
12855
128562002-05-23 Kim F. Storm <storm@cua.dk>
12857
12858 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12859 phys_cursor's hpos is overwritten. This is still not completely
12860 correct, as it doesn't really make sense to use hpos at all to
12861 get the cursor glyph (as that is relative to the width of the
12862 characters on the line, which may have changed during the update).
12863
128642002-05-22 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12867 Lisp_Object.
12868 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12869 Use modified enumfont_t struct.
12870
12871 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12872
12873 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12874 Handle the `hbar' cursor type.
12875 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12876
12877 * w32fns.c (Qhbar): New variable.
12878 (x_specified_cursor_type): Use it.
12879
128802002-05-21 Ken Raeburn <raeburn@gnu.org>
12881
12882 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12883 now, when the address is needed.
12884
128852002-05-21 Colin Walters <walters@gnu.org>
12886
12887 * Makefile.in (shortlisp): Add font-core.el.
12888
128892002-05-20 Richard M. Stallman <rms@gnu.org>
12890
12891 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12892
12893 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12894 equivalent key bindings here.
12895
128962002-05-20 Ken Raeburn <raeburn@gnu.org>
12897
12898 Change symbol structure to contain a lisp object for the symbol
12899 name:
12900 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12901 object field named "xname".
12902 (SYMBOL_NAME): New macro.
12903 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12904 name field.
12905 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12906 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12907 instead of name field.
12908 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12909 SYMBOL_NAME instead of XSYMBOL and name field.
12910 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12911 instead of XSYMBOL and name field.
12912 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12913 and SYMBOL_NAME instead of XSYMBOL and name field.
12914 * coding.c (Fread_coding_system, code_convert_region1)
12915 (code_convert_string1, code_convert_string_norecord)
12916 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12917 XSYMBOL and name field.
12918 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12919 (Fmake_variable_buffer_local, Fmake_local_variable)
12920 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12921 of XSYMBOL and name field.
12922 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12923 XSYMBOL and name field.
12924 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12925 instead of XSYMBOL and name field.
12926 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12927 XSYMBOL and name field.
12928 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12929 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12930 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12931 instead of XSYMBOL and name field.
12932 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12933 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12934 (parse_solitary_modifier, Fexecute_extended_command):
12935 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12936 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12937 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12938 of XSYMBOL and name field.
12939 (describe_command, describe_translation): Use SYMBOL_NAME and
12940 assignment instead of XSYMBOL and name field and XSETSTRING.
12941 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12942 instead of XSYMBOL and name field.
12943 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12944 name field and XSETSTRING.
12945 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12946 of XSYMBOL and name field.
12947 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12948 assignment instead of XSYMBOL and name field and XSETSTRING.
12949 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12950 XSTRING instead of XSYMBOL and name field.
12951 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12952 and XSTRING instead of XSYMBOL and name field.
12953 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12954 and XSTRING instead of XSYMBOL and name field.
12955 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12956 XSTRING instead of XSYMBOL and name field.
12957 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12958 of XSYMBOL and name field.
12959 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12960 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12961
129622002-05-19 Ken Raeburn <raeburn@gnu.org>
12963
12964 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12965 and XCDR real rvalues in most configurations.
12966
12967 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12968 Don't take the address of the cdr part of a cons cell; instead, track
12969 the parent cell and call XSETCDR, or set the variable for the head
12970 of the list if we haven't started down the list yet.
12971
129722002-05-19 Richard M. Stallman <rms@gnu.org>
12973
12974 * doc.c (reread_doc_file): Don't ask for confirmation.
12975
129762002-05-18 Jason Rumney <jasonr@gnu.org>
12977
12978 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12979 (xbm_load_image): Use it.
12980 (xbm_load): Ditto.
12981 (xbm_read_bitmap_data): Reverted to xfns.c version.
12982 From David Ponce <david@dponce.com>.
12983
129842002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12985
12986 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12987 2.02 and later.
12988
129892002-05-16 Juanma Barranquero <lektu@terra.es>
12990
12991 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12992
129932002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12994
12995 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12996 meaningful test.
12997 (read_char_minibuf_menu_prompt): Fix typo.
12998
129992002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13000
13001 * eval.c (Fcommandp): Doc fix.
13002
130032002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13004
13005 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13006 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13007 (Fset_keymap_parent): Gcpro a bit more.
13008 (access_keymap): Gcpro around meta_map call and around the main loop.
13009 (get_keyelt): Gcpro when following indirect references.
13010 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13011 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13012 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13013 Remove useless ad-hoc remap code.
13014
130152002-05-13 Richard M. Stallman <rms@gnu.org>
13016
13017 * search.c (search_buffer): Give up boyer moore search if inverse
13018 translation change charset_base.
13019
130202002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13021
13022 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13023 characters is carried over from the previous block of text, adjust
13024 coding->produced to account for the extra character.
13025
130262002-05-11 Andreas Schwab <schwab@suse.de>
13027
13028 * coding.c (intersection): Keep the elements of the returned list
13029 in the same order as in the first list.
13030
130312002-05-11 Kim F. Storm <storm@cua.dk>
13032
13033 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
13034 only update cmm_size if realloc actually succeeds.
13035 Testing with initial size of 2 elements revealed that using
13036 realloc on GNU/Linux would cause a random trap in xmalloc
13037 later on, so I rewrote the code to use malloc/bcopy/free instead
13038 of realloc.
13039
130402002-05-10 Jason Rumney <jasonr@gnu.org>
13041
13042 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13043
130442002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13045
13046 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13047 parens, to ensure correct evaluation order.
13048
130492002-05-10 Kim F. Storm <storm@cua.dk>
13050
13051 * keymap.c (Vemulation_mode_map_alists): New variable.
13052 (syms_of_keymap): DEFVAR_LISP it.
13053 (current_minor_maps): Process keymap alists in that list before
13054 minor-mode-overriding-map-alist and minor-mode-map-alist.
13055
130562002-05-09 Richard M. Stallman <rms@gnu.org>
13057
13058 * search.c (Freplace_match): Doc fix.
13059
130602002-05-09 Kim F. Storm <storm@cua.dk>
13061
13062 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13063 Enlarge cursor rectangle drawn around image with non-zero relief.
13064
13065 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13066 Enlarge cursor rectangle drawn around image with non-zero relief.
13067
13068 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13069 Enlarge cursor rectangle drawn around image with non-zero relief.
13070
130712002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13072
13073 * xselect.c (lisp_data_to_selection_data): Don't set selection
13074 type if comes from the Lisp object's car. If the selection
13075 contains a pure ASCII text, always return QSTRING as its type.
13076
130772002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13078
13079 * mac.c (mac-cut-function): Doc fix.
13080
130812002-05-05 Richard M. Stallman <rms@gnu.org>
13082
13083 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13084
130852002-05-04 Jason Rumney <jasonr@gnu.org>
13086
13087 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13088 for event-click-count.
13089
13090 * process.c (init_process): Only add server subfeature if we can
13091 use non-blocking I/O.
13092
130932002-05-04 Andrew Choi <akochoi@shaw.ca>
13094
13095 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13096 repeatedly.
13097
130982002-05-03 Jason Rumney <jasonr@gnu.org>
13099
13100 * process.c (Fmake_network_process): Only support server sockets
13101 when we can make them non-blocking.
13102
13103 * s/ms-w32.h (HAVE_SELECT): Define.
13104
13105 * w32.h (FILE_NDELAY): New flag.
13106
13107 * w32.c (sys_getpeername, fcntl): New functions.
13108 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13109
13110 * w32proc.c: include sys/file.h.
13111
131122002-05-03 Colin Walters <walters@verbum.org>
13113
13114 * callproc.c (Vgame_score_directory): Renamed to
13115 Vshared_game_score_directory.
13116
131172002-04-30 Richard M. Stallman <rms@gnu.org>
13118
13119 * s/gnu.h [emacs]: Include stdio.h.
13120 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13121
13122 * eval.c (do_autoload): Error if called while preparing to dump.
13123
13124 * fns.c (Frequire): Error if need to load while preparing to dump.
13125
131262002-04-28 Colin Walters <walters@verbum.org>
13127
13128 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13129 Default to "~/.emacs.d/games".
13130
131312002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13132
13133 * lread.c (openp): Change arg exec_only to predicate.
13134 (build_load_history): Use XCAR/XCDR.
13135 (Flocate_file_internal): New fun.
13136 (syms_of_lread): Defsubr it.
13137 (Fload): Update call to openp.
13138
13139 * lisp.h (openp): Update prototype.
13140
13141 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13142 * w32proc.c (sys_spawnve):
13143 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13144 * w32.c (check_windows_init_file):
13145 * sound.c (Fplay_sound_internal):
13146 * process.c (Fstart_process):
13147 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13148 * mac.c (run_mac_command):
13149 * emacs.c (init_cmdargs):
13150 * callproc.c (Fcall_process): Update call to openp.
13151
13152 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13153
13154 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13155
131562002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13157
13158 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13159 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13160
131612002-04-28 Richard M. Stallman <rms@gnu.org>
13162
13163 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13164
13165 * eval.c (Fcommandp): New arg for_call_interactively.
13166 * lisp.h (Fcommandp): Declare new arg.
13167
131682002-04-28 Jason Rumney <jasonr@gnu.org>
13169
13170 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13171
13172 * w32.c (stat, fstat): Use file index information to generate
13173 inodes for directories where available.
13174
131752002-04-26 Andrew Choi <akochoi@shaw.ca>
13176
13177 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13178 [HAVE_CARBON]: Include Mac object files.
13179
13180 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13181 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13182 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13183 MAC_OSX, and MAC_OS instead of macintosh.
13184
13185 * editfns.c [MAC_OS8]: Include stdio.h.
13186
13187 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13188
13189 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13190 Apple Monaco.
13191
78819ebb 13192 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13193 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13194 calling select.
13195
13196 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13197
13198 * tparam.c [MAC_OSX]: Don't define BC and UP.
13199
13200 * config.in [HAVE_CARBON]: Add.
13201
13202 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13203 Move here from mac/src and mac/inc.
13204
13205 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13206
132072002-04-26 Gerd Moellmann <gerd@gnu.org>
13208
13209 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13210 Compute phys_cursor_width from the x position returned
13211 by x_draw_glyhs, which is cheaper.
13212 (x_display_and_set_cursor): Compute the buffer-local value
13213 of `cursor-in-non-selected-windows' only when needed.
13214
132152002-04-25 Gerd Moellmann <gerd@gnu.org>
13216
13217 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13218 cursor on a stretch glyph has a width that depends on
13219 x_stretch_cursor_p.
13220
132212002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13222
13223 * abbrev.c (abbrev-start-location): Doc fix.
13224
13225 * indent.c (Fvertical_motion): Fix last change.
13226
132272002-04-25 Gerd Moellmann <gerd@gnu.org>
13228
13229 * indent.c (Fvertical_motion): Move to the start of the line
13230 containing PT before moving up or down.
13231
132322002-04-24 Gerd Moellmann <gerd@gnu.org>
13233
13234 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13235 case of writing a whole row, more or less analogous to the case of
13236 writing only parts of a row.
13237
13238 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13239 0 for NO_CURSOR.
13240
13241 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13242
132432002-04-23 Colin Walters <walters@verbum.org>
13244
13245 * buffer.c (syms_of_buffer): Doc fix.
13246
132472002-04-23 Gerd Moellmann <gerd@gnu.org>
13248
13249 * xterm.c (notice_overwritten_cursor): Handle the special case
13250 of the cursor being in the first blank non-text line at the
13251 end of a window.
13252
13253 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13254 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13255 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13256 bar cursors only, to make phys_cursor_width contain what its name
13257 suggests.
13258 (notice_overwritten_cursor): Consider the cursor image erased if
13259 the output area intersects the cursor image in y-direction.
13260
132612002-04-23 Simon Marshall <simon@gnu.org>
13262
13263 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13264 to XC_hand2.
13265
132662002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13267
13268 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13269
132702002-04-22 Kim F. Storm <storm@cua.dk>
13271
13272 * textprop.c (remove_properties): Fixed trap for malformed plist.
13273
132742002-04-22 Richard M. Stallman <rms@gnu.org>
13275
13276 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13277
13278 * window.c (make_window): Initialize height_fixed_p,
13279 last_cursor_off_p, and p->cursor_off_p slots.
13280
132812002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13282
13283 * fns.c (use-dialog-box): Doc fix.
13284
132852002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13286
13287 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13288 variables `row', `i' and `area'.
13289 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13290 toolkit library.
13291
132922002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13293
13294 * xfaces.c (clear_font_table): Don't free the default font of
13295 a frame even if it's on another display.
13296 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13297 that could be Qt.
13298
132992002-04-19 Juanma Barranquero <lektu@terra.es>
13300
13301 * indent.c (Fmove_to_column): Remove unused local variable
13302 `next_boundary_byte'.
13303 (current_column_1): Likewise.
13304
133052002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13306
13307 * msdos.c (Qhbar): New variable.
13308 (syms_of_msdos): Intern and staticpro it.
13309 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13310 cursor type.
13311
133122002-04-19 Dave Lambert <dlambert@acm.org>
13313
13314 Theses change implement an underscore-like (`hbar') cursor.
13315
13316 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13317
13318 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13319 Handle the `hbar' cursor type.
13320 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13321
13322 * xfns.c (Qhbar): New variable.
13323 (syms_of_xfns): Intern and staticpro it.
13324 (x_specified_cursor_type): Handle `hbar' cursor.
13325
13326 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13327 not defined.
13328
133292002-04-18 Richard M. Stallman <rms@gnu.org>
13330
13331 * textprop.c (remove_properties): New arg LIST allows scanning
13332 either a list or a plist.
13333 (interval_has_some_properties_list): New function, like
13334 interval_has_some_properties using list instead of plist.
13335 All callers changed.
13336 (Fremove_list_of_text_properties): New function.
13337 (syms_of_textprop): Defsubr it.
13338
133392002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13340
13341 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13342
133432002-04-17 Juanma Barranquero <lektu@terra.es>
13344
13345 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13346
133472002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13348
13349 * window.c (coordinates_in_window): Don't report on margin area
13350 if its width is zero.
13351
133522002-04-16 Jason Rumney <jasonr@gnu.org>
13353
13354 * w32fns.c (Fx_file_dialog): Decode file name before using.
13355
13356 * w32term.c (construct_drag_n_drop): Likewise.
13357
133582002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13359
13360 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13361 store load-history in pure space.
13362
13363 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13364
133652002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13366
13367 * xterm.c (Qlatin_1, Qutf_8): New vars.
13368 (syms_of_xterm): Initialize them.
13369 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13370 decoding the output of X*LookupString.
13371 Always use latin-1 to decode the output of XLookupString.
13372 Try Xutf8LookupString if XmbLookupString failed.
13373
13374 * region-cache.c (new_region_cache): Use BEG.
13375
133762002-04-16 Gerd Moellmann <gerd@gnu.org>
13377
13378 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13379 configuration files.
13380 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13381 returns 0.
13382
133832002-04-15 Andreas Schwab <schwab@suse.de>
13384
13385 * config.in: Regenerated using autoheader.
13386
13387 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13388 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13389 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13390 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13391 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13392 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13393 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13394 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13395 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13396 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13397 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13398 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13399 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13400 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13401 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13402 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13403 STACK_DIRECTION, now set by autoconf.
13404
134052002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13406
13407 * dispnew.c (marginal_area_string): Sort arguments.
13408
13409 * dispextern.h (marginal_area_string): Add prototype.
13410
134112002-04-13 Richard M. Stallman <rms@gnu.org>
13412
13413 * fileio.c (Finsert_file_contents):
13414 Don't call temp_output_buffer_setup--do just part, by hand.
13415
13416 * coding.c (run_pre_post_conversion_on_str):
13417 Don't call temp_output_buffer_setup--do just part, by hand.
13418
13419 * keyboard.c (command_loop_1): Don't call start_hourglass
13420 or cancel_hourglass when executing a macro.
13421
13422 * marker.c (count_markers): New function.
13423
13424 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13425 grow without limit. Move recently used elements to the front.
13426
134272002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13428
13429 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13430
134312002-04-12 Gerd Moellmann <gerd@gnu.org>
13432
13433 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13434 rows marginal areas.
13435 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13436 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13437
13438 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13439
134402002-04-12 Dave Love <fx@gnu.org>
13441
13442 * dispnew.c (marginal_area_string): New.
13443
13444 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13445 (Qleft_margin, Qright_margin): Declare.
13446 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13447
13448 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13449 note_mode_line_highlight and extended.
13450
13451 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13452 (make_lispy_event): Deal with mouse events in margins.
13453
134542002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13455
13456 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13457
13458 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13459 than deactivating the mark if tmm is set to `lambda'.
13460 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13461 Use a single event for HELP_EVENT.
13462 (Fexecute_extended_command): Save last_point_position.
13463
134642002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13465
13466 * lisp.h (Fpropertize): Add prototype.
13467
13468 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13469
134702002-04-10 Colin Walters <walters@verbum.org>
13471
13472 * config.in: Add HAVE_SHARED_GAME_DIR.
13473
13474 * callproc.c: (Vgame_score_directory): New variable.
13475 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13476
134772002-04-10 Richard M. Stallman <rms@gnu.org>
13478
13479 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13480
134812002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13482
13483 * minibuf.c (read_minibuf): Use empty_string.
13484 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13485 Short-circuit the search as soon as it "failed".
13486 (Fall_completions): Allow lambda forms and lists of strings for alist.
13487 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13488 when require_match is nil.
13489 (Ftest_completion): Rename from `test_completion' and export to elisp.
13490 Call the predicate also when alist is a list.
13491 Obey Vcompletion_regexp_list.
13492 (do_completion, Fminibuffer_complete_and_exit): Use it.
13493 (Fassoc_string): Rename from `assoc_for_completion'.
13494 Allow list of strings as well and export to elisp.
13495
134962002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13497
13498 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13499
135002002-04-08 Juanma Barranquero <lektu@terra.es>
13501
13502 * w32.c (sys_accept): Don't hide variable `s'.
13503
135042002-04-05 Gerd Moellmann <gerd@gnu.org>
13505
13506 * callint.c (Fcall_interactively): Use INTEGERP instead of
13507 NUMBERP for checking Vhistory_length.
13508
135092002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13510
13511 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13512 Doc fix to reflect it.
13513
135142002-04-04 Richard M. Stallman <rms@gnu.org>
13515
13516 * xdisp.c (display_mode_element): New arg RISKY.
13517 Disregard text props found or specified within a variable
13518 that isn't marked risky-local-variable.
13519 (Qrisky_local_variable): New variable.
13520 (syms_of_xdisp): Init and staticpro it.
13521
135222002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13523
13524 * undo.c (record_point): New fun.
13525 (record_delete, record_insert): Use it.
13526
135272002-04-03 Juanma Barranquero <lektu@terra.es>
13528
13529 * doc.c (Fdocumentation): Add missing parentheses.
13530 (Fdocumentation_property): Likewise.
13531
135322002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13533
13534 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13535 data is 0, just return nil.
13536
135372002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13538
13539 * msdos.c (syms_of_msdos): Fix last change with
13540 mouse_autoselect_window.
13541
135422002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13543
13544 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13545 mouse_autoselect_window.
13546
135472002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13548
13549 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13550 with system-specific keysyms. Use it also for unknown function keys.
13551
13552 * doc.c (reread_doc_file): Return whether reload was attempted.
13553 (Fdocumentation, Fdocumentation_property): Don't try to reload
13554 if the doc is 0 and only ask once.
13555
13556 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13557
135582002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13559
13560 * keyboard.c (read_char): If the event was Qselect_window,
13561 restore timer_idleness_start_time to its previous value.
13562
13563 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13564
135652002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13566
13567 * region-cache.c (new_region_cache): Use BEG.
13568
13569 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13570 Use BEG and BEG_BYTE.
13571
13572 * doc.c (get_doc_string): Return nil if the location is wrong.
13573 (reread_doc_file): New fun.
13574 (Fdocumentation, Fdocumentation_property):
13575 Call it if get_doc_string fails.
13576 (Fsnarf_documentation): Make it work for a dumped Emacs.
13577
13578 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13579 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13580
13581 * charset.c (Fstring): Allow 0 arguments.
13582
13583 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13584
13585 * process.c (DATAGRAM_CONN_P, list_processes_1)
13586 (Fprocess_datagram_address, Fset_process_datagram_address)
13587 (Fset_network_process_options, server_accept_connection):
13588 Fix some int/Lisp_Object confusions (thank you union types).
13589
135902002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13591
13592 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13593
13594 * w32term.c: Likewise.
13595 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13596
13597 * keyboard.c (Qselect_window): New symbol.
13598 (head_table): Use it.
13599 (keys_of_keyboard): Bound select-window event to handle-select-window.
13600 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13601
13602 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13603 (last_window): New variable.
13604 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13605 (note_mouse_movement): Remove reimplemented code in #if 0.
13606 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13607 Emacs windows.
13608
13609 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13610
136112002-03-31 Gerd Moellmann <gerd@gnu.org>
13612
13613 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13614 Callers changed.
13615
136162002-03-30 Richard M. Stallman <rms@gnu.org>
13617
13618 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13619 loop whenever it stops making progress.
13620
13621 * widget.c (set_frame_size): Don't call change_frame_size.
13622
136232002-03-30 Gerd Moellmann <gerd@gnu.org>
13624
13625 * dispnew.c (direct_output_for_insert):
13626 Call mark_window_display_accurate.
13627
136282002-03-29 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13631
136322002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13633
13634 * Makefile.in (lread.o): Depend on coding.h.
13635
13636 * lread.c (openp, Fload): Encode the file name before passing it
13637 to `stat', `access', and `emacs_open'.
13638 (openp): GCPRO the encoded file name. Don't recompute Lisp
13639 strings unnecessarily.
13640
136412002-03-29 Kim F. Storm <storm@cua.dk>
13642
13643 * fns.c (Flax_plist_put): Doc fix.
13644
136452002-03-28 Miles Bader <miles@gnu.org>
13646
13647 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13648
136492002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13650
13651 * process.c (set-network-process-options): Add usage.
13652 (make-network-process): Doc fix.
13653
136542002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13655
13656 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13657
136582002-03-26 Richard M. Stallman <rms@gnu.org>
13659
13660 * fns.c (Fsubstring_no_properties): New function.
13661 (Flax_plist_get, Flax_plist_put): New functions.
13662 (syms_of_fns): defsubr them.
13663
13664 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13665 don't test or alter w->update_mode_line.
13666
13667 * window.c (Fdisplay_buffer): Doc fix.
13668
136692002-03-24 Richard M. Stallman <rms@gnu.org>
13670
13671 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13672
136732002-03-24 Gerd Moellmann <gerd@gnu.org>
13674
13675 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13676 (Fdefmacro): Handle `(declare ...)'.
13677 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13678 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13679
136802002-03-24 Jason Rumney <jasonr@gnu.org>
13681
13682 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13683 (xbm_file_p): Add prototypes.
13684 (xbm_format, xbm_image_p): Sync with xfns.c.
13685 (reflect_byte): New function.
13686 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13687 (xbm_load_image): Create bitmaps with a depth of 1.
13688 (init_xfns): Enable XBM images.
13689
136902002-03-23 Jason Rumney <jasonr@gnu.org>
13691
13692 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13693 correctly. Do not pass up_modifier to keyboard buffer.
13694
13695 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13696
136972002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13698
13699 * Makefile.in (bootstrapclean): New target.
13700 (bootstrap-temacs, bootstrap-doc): Remove.
13701 (bootstrap-emacs): Use a bog-standard `temacs'.
13702 Don't bother to build a DOC file.
13703
13704 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13705
13706 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13707 in temacs even if !CANNOT_DUMP.
13708 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13709
13710 * alloc.c (check_pure_size): Only output a warning.
13711
137122002-03-22 Jason Rumney <jasonr@gnu.org>
13713
13714 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13715 supported.
13716
13717 * w32term.c (zv_bits): Declare as short, for word alignment.
13718 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13719 (syms_of_w32term): Define x-use-underline-position-properties.
13720
13721 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13722 (clear_image_cache): Block input, fix logic, clear matrices in
13723 all frames that share this cache.
13724
137252002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13726
13727 * emacs.c (main): Update the Copyright year in the blurb printed
13728 by "emacs --version".
13729
13730 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13731
13732 * xterm.c (XTread_socket): If XK_ISO_Lock and
13733 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13734 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13735
137362002-03-21 Kim F. Storm <storm@cua.dk>
13737
13738 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13739 menu-bar bindings in keymap and local-map properties _are_ used.
13740 But try keymap property first in accordance with 2002-01-03 patch.
13741 Added comment describing why this is not always reliable.
13742 (tool_bar_items): Ditto for tool-bar.
13743
137442002-03-21 Jason Rumney <jasonr@gnu.org>
13745
13746 * w32fns.c (x_clear_image_1): Disable color table code.
13747
137482002-03-21 Kim F. Storm <storm@cua.dk>
13749
13750 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13751 removed the wrong version of the DEFUN macro; fixed it.
13752
13753 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13754 Fmember rather than Fmemq).
13755 (Fprovide): Check that subfeatures is a list.
13756
13757 * process.c (QCfeature, QCdatagram): Removed variables.
13758 (QCtype, Qdatagram): New variables.
13759 (network_process_featurep): Removed function.
13760 (Fmake_network_process): Removed :feature check.
13761 Use :type 'datagram instead of :datagram t to create a datagram
13762 socket. This allows us to add other connection types (e.g. raw
13763 sockets) later in a consistent manner.
13764 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13765 supported subfeatures for feature make-network-process.
13766 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13767 Intern and staticpro QCtype and Qdatagram.
13768 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13769
13770 * xfns.c: (QCtype): Remove duplicate declaration and
13771 initialization (is now declared in process.c).
13772
13773 * w32fns.c: (QCtype): Remove duplicate declaration and
13774 initialization (is now declared in process.c).
13775
137762002-03-21 Richard M. Stallman <rms@gnu.org>
13777
13778 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13779 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13780 when jumping to `fail' to avoid undoing reg changes in the
13781 last iteration of the loop.
13782 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13783
13784 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13785 Depend on process.h.
13786
137872002-03-20 Jason Rumney <jasonr@gnu.org>
13788
13789 Most of the following changes are still conditional on HAVE_IMAGES
13790 which is not set by default on Windows.
13791
13792 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13793
13794 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13795 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13796 (four_corners_best, x_clear_image_1, x_clear_image)
13797 (x_alloc_image_color, postprocess_image)
13798 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13799 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13800 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13801
13802 * w32gui.h (struct XImage): Define.
13803
13804 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13805 extract mouse co-ordinates.
13806
138072002-03-20 Jason Rumney <jasonr@gnu.org>
13808
13809 * w32.c (init_winsock): Dynamically load new server and UDP
13810 socket functions.
13811 (socket_to_fd): New function.
13812 (sys_socket): Use it.
13813 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13814 (sys_recvfrom, sys_sendto): New wrapper functions.
13815
13816 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13817 and initialization.
13818
13819 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13820
138212002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13822
13823 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13824 Don't use "sun" as a variable, it's a predefined constant on Sun
13825 machines.
13826
138272002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13828
13829 * bytecode.c (Fbyte_code): Revert last change.
13830
138312002-03-19 Kim F. Storm <storm@cua.dk>
13832
13833 * makefile.w32-in (LIBS): Add $(WSOCK32).
13834 From David Ponce <dponce@voila.fr>.
13835
138362002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13837
13838 * process.c (wait_reading_process_input): Move variables `pname'
13839 and `pnamelen' down where they are used.
13840
13841 * bytecode.c (Fbyte_code): Discard unused computed value to
13842 prevent gcc warning.
13843
13844 * lisp.h (Fplist_member): Add prototype.
13845
138462002-03-18 Kim F. Storm <storm@cua.dk>
13847
13848 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13849 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13850
13851 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13852 Remove explicit GNU_LINUX settings for datagram support.
13853
138542002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13855
13856 * process.c (Fmake_network_process): Remove unused variable `sa'.
13857 Doc fix. Add usage:.
13858 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13859
138602002-03-17 Richard M. Stallman <rms@gnu.org>
13861
13862 * xdisp.c (cursor_type_changed): New variable.
13863 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13864 Clear it when clearing windows_or_buffers_changed.
13865 (try_cursor_movement, redisplay_window, try_window_id)
13866 (try_window_reusing_current_matrix): Test cursor_type_changed
13867 along with windows_or_buffers_changed.
13868
13869 * window.h (cursor_type_changed): New variable.
13870
13871 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13872 not update_mode_lines, and always set it to 1.
13873
13874 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13875 if no frames needed redrawing.
13876
138772002-03-17 Kim F. Storm <storm@cua.dk>
13878
13879 The following changes add support for network server processes,
13880 datagram connections, and local (unix) sockets.
13881
13882 * process.h (struct Lisp_Process): New member log.
13883 Doc fix: Member command used to indicate stopped network process.
13884 Doc fix: Member childp contains plist for network process.
13885 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13886
13887 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13888 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13889 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13890 New variables.
13891 (NETCONN1_P): New macro.
13892 (DATAGRAM_SOCKETS): New conditional symbol.
13893 (datagram_address): New array.
13894 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13895 (status_message): Use concat3.
13896 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13897 for a stopped network process.
13898 (Fset_process_buffer): Update contact plist for network process.
13899 (Fset_process_filter): Ditto. Don't enable input for stopped
13900 network processes. Server must listen, even if filter is t.
13901 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13902 New functions.
13903 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13904 (Fprocess_contact): Added KEY argument. Handle datagrams.
13905 (list_processes_1): Optionally show only processes with the query
13906 on exit flag set. Dynamically adjust column widths. Omit tty
13907 column if not needed. Report stopped network processes.
13908 Identify server and datagram network processes.
13909 (Flist_processes): New optional arg `query-only'.
13910 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13911 (conv_lisp_to_sockaddr, set_socket_options)
13912 (network_process_featurep, unwind_request_sigio): New helper functions.
13913 (Fprocess_datagram_address, Fset_process_datagram_address):
13914 (Fset_network_process_options): New lisp functions.
13915 (Fopen_network_stream): Removed. Now defined in simple.el.
13916 (Fmake_network_process): New lisp function. Code is based on previous
13917 Fopen_network_stream, but heavily reworked with new property list based
13918 argument list, support for datagrams, server processes, and local
13919 sockets in addition to old client-only functionality.
13920 (server_accept_connection): New function.
13921 (wait_reading_process_input): Use it to handle incoming connects.
13922 Do not enable input on a new connection if process is stopped.
f63fd14e 13923 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13924 (send_process): Handle datagram sockets.
13925 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13926 network process is indicated by setting command field to t .
13927 (Fprocess_send_eof): No-op if datagram connection.
13928 (Fstatus_notify): Don't read input for a stream server socket or a
13929 stopped network process.
13930 (init_process): Initialize datagram_address array.
13931 (syms_of_process): Intern and staticpro new variables, defsubr new
13932 functions.
13933
139342002-03-16 Jason Rumney <jasonr@gnu.org>
13935
13936 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13937 startup case.
13938
139392002-03-16 Richard M. Stallman <rms@gnu.org>
13940
13941 * xdisp.c (redisplay_internal, redisplay_windows):
13942 Use list_of_error to call internal_condition_case_1.
13943 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13944 so as to catch all errors with no possibility of debugger redisplay.
13945 (list_of_error): New variable.
13946 (syms_of_xdisp): Init and staticpro it.
13947
13948 * print.c (print_object): Delete `\ ' from printed rep of frame.
13949
139502002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13951
13952 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13953 until its implementation is fixed.
13954
139552002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13956
13957 * xfns.c (png_load): Remove unused variable `gamma_str'.
13958
139592002-03-14 Richard M. Stallman <rms@gnu.org>
13960
13961 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13962
139632002-03-14 Miles Bader <miles@gnu.org>
13964
13965 * intervals.c (adjust_for_invis_intang): New function.
13966 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13967 work for dealing with invisible+intangible regions. Do so before
13968 and after both forward and backward movements, to handle both
13969 front-sticky and rear-sticky cases.
13970 * textprop.c (text_property_stickiness): Function moved here from
13971 `editfns.c'.
13972 * intervals.h (text_property_stickiness): New declaration.
13973 * editfns.c (char_property_eq): Function removed.
13974 (text_property_stickiness): Function moved to `textprop.c'.
13975
139762002-03-13 Jason Rumney <jasonr@gnu.org>
13977
13978 * config.in: Add STRFTIME_NO_POSIX2.
13979
13980 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13981 and %OX when underlying strftime does not.
13982
139832002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13984
13985 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13986 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13987 line) to avoid annoying flicker.
13988 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13989 (XTread_socket): Mark it static.
13990
13991 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13992
139932002-03-13 Kim F. Storm <storm@cua.dk>
13994
13995 * puresize.h (BASE_PURESIZE): Increase to 775000.
13996
139972002-03-12 Juanma Barranquero <lektu@terra.es>
13998
13999 * editfns.c (syms_of_editfns): Fix typo.
14000
140012002-03-12 Gerd Moellmann <gerd@gnu.org>
14002
14003 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14004 Include termopt.h for interrupt_input.
14005
140062002-03-11 Andreas Schwab <schwab@suse.de>
14007
14008 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14009
140102002-03-11 Gerd Moellmann <gerd@gnu.org>
14011
14012 * xterm.c (note_mouse_movement): Put code for
14013 x_autoselect_window_p in #if 0.
14014
14015 * lread.c (Fload): Don't assume that message_with_string uses the
14016 string it is given like a C string.
14017
140182002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14019
78819ebb 14020 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14021
14022 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14023 x_session_have_connection.
14024 (x_initialize): Add call to x_session_initialize.
14025
14026 * termhooks.h (enum event_kind): Add save_session_event.
14027
14028 * keyboard.c: Add Emacs event save_session_event.
14029
14030 * emacs.c (main): Add call to syms_of_xsmfns.
14031
78819ebb 14032 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14033
14034 * config.in: Add HAVE_X_SM.
14035
14036 * Makefile.in (LIBXT): Add -lSM -lICE
14037 if HAVE_X_SM and not USE_X_TOOLKIT.
14038 (XOBJ): New file xsmfns.c added.
14039
14040 * xsmfns.c: New file for X session management.
14041
140422002-03-09 Jason Rumney <jasonr@gnu.org>
14043
14044 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14045 read-only when setting modified time.
14046
140472002-03-08 Gerd Moellmann <gerd@gnu.org>
14048
14049 * xdisp.c (move_it_vertically_backward): At the end of the function,
14050 when moving forward by lines, treat terminal frames specially.
14051
14052 * keyboard.c (echo_char): Make sure to add a separator between
14053 keys even if echo_dash hasn't been called.
14054
14055 * xdisp.c: Use new string macros.
14056 (update_echo_area): Pass number of bytes to message3 instead of
14057 number of chars.
14058 (set_message_1): Don't access a string's size_byte directly.
14059 (decode_mode_spec_coding): Use number of bytes of eoltype string
14060 instead number of chars.
14061
14062 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14063
140642002-03-08 Juanma Barranquero <lektu@terra.es>
14065
14066 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14067 24-bit.
14068
140692002-03-06 Jason Rumney <jasonr@gnu.org>
14070
14071 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14072
140732002-03-06 Gerd Moellmann <gerd@gnu.org>
14074
14075 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14076 (cancel_echoing, echo_length, echo_truncate): Changed to
14077 work with new kboard definition.
14078 (echo_now): Use message3_nolog instead of message2_nolog.
14079
14080 * alloc.c (mark_kboards): Mark echo_string.
14081
14082 * keyboard.h (ECHOBUFSIZE): Removed.
14083 (struct kboard): Member echoptr removed, member echobuf renamed
14084 to echo_string.
14085
14086 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14087 message3 instead of message2 to display the message using STRING's
14088 text properties.
14089
140902002-03-05 Andreas Schwab <schwab@suse.de>
14091
14092 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14093
140942002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14095
14096 * frame.c (default-frame-alist): Explain that setting it doesn't
14097 affect existing frames.
14098
140992002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14100
14101 * indent.c (skip_invisible): Fix my brain fart.
14102
14103 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14104
141052002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14106
14107 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14108 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14109 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14110 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14111 and variables to use EMACS_INT instead of just int.
14112
14113 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14114
141152002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14116
14117 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14118 environment, pass it down with corrected value.
14119
141202002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14121
14122 * lread.c (read_filtered_event): Do not call start_hourglass
14123 before returning.
14124
141252002-03-04 Juanma Barranquero <lektu@terra.es>
14126
14127 * w32term.c (x_display_and_set_cursor): Fix typo.
14128
141292002-03-03 Richard M. Stallman <rms@gnu.org>
14130
14131 * fileio.c (Fmake_temp_name): Doc fix.
14132
141332002-03-03 Gary Wong <gtw@gnu.org>
14134
14135 * termcap.c [!emacs]: Replace ospeed for building standalone
14136 libtermcap, for binary compatibility.
14137
14138 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14139
141402002-03-03 Richard M. Stallman <rms@gnu.org>
14141
14142 * xrdb.c (file_p): Rename arg `path' to `filename'.
14143
14144 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14145 only if it is an integer.
14146
14147 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14148 If png_get_sRGB gives an answer, call png_set_gamma
14149 using the default image gamma value.
14150
14151 * lread.c (read1): When reading from a file, default string to
14152 multibyte only if it has some multibyte characters.
14153
14154 * print.c (print_object): Output multibyte chars 128...255
14155 using \x even if ! print_escape_multibyte.
14156
14157 * xdisp.c (display_mode_element): Move the places where
14158 bytepos, charpos, this, and lisp_string are set.
14159 Use lisp_string to set bytepos.
14160
14161 * xdisp.c (redisplay_internal):
14162 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14163
14164 * xdisp.c (display_mode_element): Merge properties specified with
14165 :propertize onto those that come with the string.
14166
141672002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14168
14169 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14170 automatic-hscrolling. Users changed.
14171 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14172 Users changed.
14173 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14174
141752002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14176
14177 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14178
141792002-03-02 Kim F. Storm <storm@cua.dk>
14180
14181 * window.c (Fminibuffer_selected_window): New function.
14182 (syms_of_window): Defsubr it.
14183
141842002-03-01 Kim F. Storm <storm@cua.dk>
14185
14186 * window.h (struct window): New member phys_cursor_width.
14187
14188 * window.c (make_window, replace_window): Init phys_cursor_width.
14189
14190 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14191 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14192
14193 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14194 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14195
14196 * lisp.h (GCPRO6): New macro.
14197
14198 * process.c (Fopen_network_stream): Use GCPRO6.
14199
142002002-03-01 Kim F. Storm <storm@cua.dk>
14201
14202 * process.c (Qconnect, Qfailed): New variables.
14203 (syms_of_process): Intern and staticpro them.
14204 (Fprocess_status): Document connect and failed return values.
14205 [NON_BLOCKING_CONNECT]: New conditional.
14206 (connect_wait_mask, num_pending_connects): New variables.
14207 (status_message): Convert Qfailed status.
14208 (Fopen_network_stream): Added support for non-blocking connect.
14209 New optional args: filter, sentinel, non_blocking. Doc updated.
14210 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14211 (deactivate_process): Handle pending non-blocking connect.
14212 (wait_reading_process_input): Poll for status of non-blocking
14213 connects. Exec sentinel directly when connect succeeds.
14214 (status_notify): Don't read process output if not yet connected.
14215
142162002-02-28 Kim F. Storm <storm@cua.dk>
14217
14218 * window.c: (minibuf_selected_window): Renamed from
14219 Vminibuf_selected_window. Users changed.
14220 (syms_of_window): Staticpro it.
14221
142222002-02-26 Kim F. Storm <storm@cua.dk>
14223
14224 The following changes add a new Vminibuf_selected_window variable
14225 which is similar to Vminibuf_scroll_window, but which is only set
14226 on entry to the minibuffer (from a non-minibuffer window):
14227
14228 * window.c: (Vminibuf_selected_window): New variable.
14229 (struct save_window_data): New member minibuf_selected_window.
14230 (Fset_window_configuration): Restore Vminibuf_selected_window.
14231 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14232 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14233 (compare_window_configurations): Compare minibuf_selected_window.
14234
14235 * window.h: (Vminibuf_selected_window): Declare extern.
14236
14237 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14238 entry to minibuffer or on entry from a non-minibuffer window.
14239
14240 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14241 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14242
14243 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14244 instead of Vminibuf_scroll_window when deciding in which window
14245 the region should be highlighted. Consequently, the region remains
14246 highlighteded even when a completion buffer is also displayed.
14247
142482002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14249
14250 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14251
14252 * xselect.c (Qcompound_text_with_extensions): Renamed from
14253 Qcompound_text_no_extensions.
14254 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14255
142562002-02-26 Juanma Barranquero <lektu@terra.es>
14257
14258 * w32proc.c (syms_of_ntproc): Doc fix.
14259
142602002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14261
14262 * intervals.h: Include "dispextern.h" unconditionally.
14263
142642002-02-24 Jason Rumney <jasonr@gnu.org>
14265
14266 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14267 and disp-table.elc.
14268 (lisp): Add emacs-lisp/backquote.elc.
14269
142702002-02-24 Kim F. Storm <storm@cua.dk>
14271
14272 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14273 The validation of the event type was too strict as it didn't
14274 allow string events; buffer names are used in bindings for
14275 menu-bar-select-buffer (see `menu-bar-update-buffers').
14276
142772002-02-23 Kim F. Storm <storm@cua.dk>
14278
14279 The following changes rework my patch of 2002-02-06 which
14280 added command remapping by entering the commands directly into
14281 the keymaps. Now, command remapping uses an explicit `remap'
14282 prefix in the keymaps, i.e. [remap COMMAND].
14283
14284 * keymap.c (Qremap, remap_command_vector): New variables.
14285 (is_command_symbol): Removed function.
14286 (Fdefine_key): No longer accept a symbol for KEY.
14287 Added validation of [remap COMMAND] argument for KEY.
14288 The DEF is no longer required to be a symbol when remapping a command.
14289 (Fremap_command): New function to remap command through keymaps.
14290 (Flookup_key): Perform command remapping initiated by
14291 Fremap_command directly for speed.
14292 (Fkey_binding): Use Fremap_command for command remapping.
14293 (where_is_internal): Handle new command remapping representation.
14294 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14295 staticpro them. Defsubr Fremap_command.
14296
14297 * keymap.h (Fremap_command): Declare extern.
14298 (is_command_symbol): Remove extern.
14299
14300 * keyboard.c (command_loop_1): Use Fremap_command for command
14301 remapping; now try command remapping for all symbols.
14302
143032002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14304
14305 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14306
143072002-02-23 Jason Rumney <jasonr@gnu.org>
14308
14309 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14310 on the string before encoding it.
14311 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14312 after decoding it.
14313
14314 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14315
143162002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14317
14318 * w32term.c (enter_timestamp): Remove unused static variable to
14319 prevent warning.
14320
14321 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14322
143232002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14324
14325 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14326
14327 * xselect.c (selection_data_to_lisp_data): Fix last change.
14328
143292002-02-22 Jason Rumney <jasonr@gnu.org>
14330
14331 * w32term.h (struct w32_output): New member menu_command_in_progress.
14332
14333 * w32menu.c (menubar_selection_callback): Free the menu and
14334 clear the menu_command_in_progress flag.
14335
14336 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14337 (menu_free_timer): New variable.
14338 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14339 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14340 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14341 menu command is in progress.
14342 <WM_COMMAND>: Set the menu_command_in_progress flag.
14343 Kill any menu_free_timer that is running.
14344
14345 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14346 Call ExtTextOutA rather than ExtTextOut.
14347
143482002-02-22 Eli Zaretskii <eliz@gnu.org>
14349
14350 * puresize.h (BASE_PURESIZE): Increase to 755000.
14351
143522002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14353
14354 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14355 on the string before encoding it.
14356 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14357 after decoding it.
14358
143592002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14360
14361 Support for ICCCM Extended Segments in X selections:
14362
14363 * xselect.c <Qcompound_text_no_extensions>: New variable.
14364 (syms_of_xselect): Intern and staticpro it.
14365 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14366 selection text.
14367 (lisp_data_to_selection_data): If next-selection-coding-system is
14368 compound-text-no-extensions, set the type of selection to be
14369 compound-text.
14370
14371 * xterm.h (x_encode_text): Update prototype.
14372
14373 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14374 callers changed. If SELECTIONP is non-zero, run the
14375 pre-write-conversion function before encoding the selection text.
14376
143772002-02-21 Kim F. Storm <storm@cua.dk>
14378
14379 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14380
14381 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14382 Correct composing of language-change event.
14383
143842002-02-20 Kim F. Storm <storm@cua.dk>
14385
14386 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14387 bindings at PT when building menu (the menu is not updated often
14388 enough for this to work reliable).
14389 (tool_bar_items): Likewise.
14390 (current_active_maps): Removed unused (and buggy) function.
14391
143922002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14393
14394 * xfns.c (gif_load): Use correct width and height for GIF images.
14395
143962002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14397
14398 * floatfns.c (Fatan): Accept an optional second arg and call
14399 atan2 if passed 2 args.
14400
144012002-02-18 Jason Rumney <jasonr@gnu.org>
14402
14403 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14404
144052002-02-17 Jason Rumney <jasonr@gnu.org>
14406
14407 * w32term.c (x_autoselect_window_p): New variable.
14408 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14409 (note_mouse_movement): Use it.
14410
14411 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14412
14413 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14414
14415 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14416 New variables.
14417 (syms_of_w32fns): Intern and staticpro them.
14418 (x_frame_parms) <"fullscreen">: New parameter.
14419 (x_fullscreen_move, x_set_fullscreen): New functions.
14420 (x_set_frame_parameters): Support Qfullscreen.
14421 (x_real_positions): Save x/y_pixels_diff frame params.
14422 (x_figure_window_size): Support full-screen frames.
14423 (Fx_create_frame): Default the fullscreen parameter.
14424
14425 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14426 (x_fullscreen_adjust): New functions.
14427 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14428 fullscreen. Call x_check_fullscreen_move, and set the
14429 want_fullscreen member of output_data.w32
14430 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14431
14432 * w32term.h: New enum for FULLSCREEN_* constants.
14433 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14434 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14435 (x-fullscreen-adjust): New prototype.
14436
144372002-02-17 Kim F. Storm <storm@cua.dk>
14438
14439 * frame.c: (Vmouse_highlight): New variable.
14440 (syms_of_frame): DEFVAR_LISP it.
14441
14442 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14443
048addec 14444 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14445
048addec
JD
14446 * xterm.c (disable_mouse_highlight): Removed variable.
14447 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14448 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14449 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14450 and on after keyboard input.
14451 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14452
048addec 14453 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14454
048addec
JD
14455 * msdos.c (disable_mouse_highlight): Removed variable.
14456 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14457 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14458 (internal_terminal_init): Initialize mouse_face_hidden.
14459 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14460 and on after keyboard input.
4f1b1854 14461
048addec 14462 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14463
048addec
JD
14464 * w32term.c (disable_mouse_highlight): Removed variable.
14465 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14466 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14467 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14468 and on after keyboard input.
14469 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14470
048addec 144712002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14472
048addec
JD
14473 * msdos.c (last_mouse_window): New variable.
14474 (dos_rawgetc): Fix last change--if the mouse is in the same window
14475 as recorded in last_mouse_window, don't select this window.
5cb6905d 14476
048addec 14477 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14478
048addec
JD
14479 * msdos.c (x_autoselect_window_p): New variable.
14480 (syms_of_msdos): Defvar it.
14481 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14482 which the last mouse movement occured, unless it is already selected.
437dfb9f 14483
048addec
JD
14484 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14485 New variables.
14486 (syms_of_xdisp): DEVFAR them.
14487 (hscroll_window_tree): Use automatic_hscroll_margin and
14488 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14489
048addec 144902002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14491
048addec
JD
14492 * xterm.c (x-autoselect-window): New variable.
14493 (note_mouse_movement): Use it.
9f696a00 14494
048addec 14495 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14496
048addec 144972002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14498
bfa02563 14499 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14500
048addec 14501 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14502
048addec 145032002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14504
048addec 14505 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14506
048addec
JD
14507 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14508 (Vx_super_keysym): New variables.
14509 (syms_of_xterm): DEFVAR_LISP them.
14510 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14511 variables to determine which keys to use for the various modifiers.
a474d59c 14512
048addec 145132002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14514
048addec
JD
14515 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14516 (mode_line_in_non_selected_windows): New variable.
14517 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14518
048addec
JD
14519 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14520 Use mode_line_in_non_selected_windows.
14521 (mode_line_in_non_selected_windows): Declare extern.
14522 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14523
048addec 145242002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14525
048addec
JD
14526 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14527 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14528 (Fclear_this_command_keys): Doc fixes.
2d10309f 14529
048addec
JD
14530 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14531 (update_face_from_frame_parameter): Increment face_change_count
14532 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14533
048addec
JD
14534 * xdisp.c (QCpropertize): New variable.
14535 (mode_line_proptrans_alist): New variable.
14536 (display_mode_element): New arg PROPS; all calls changed.
14537 Implement this, for strings.
14538 Handle literal output of strings by sharing the
14539 main-line code for strings, using local var `literal'.
14540 Handle :propertize feature.
14541 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14542 mode_line_proptrans_alist.
0b1e6b54 14543
048addec 145442002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14545
048addec
JD
14546 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14547 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14548
048addec
JD
14549 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14550 (CURRENT_MODE_LINE_FACE_ID): Use it.
14551 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14552
048addec
JD
14553 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14554 to get mode line face.
e17144de 14555
048addec 145562002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14557
048addec
JD
14558 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14559 variables; cus-start.el doesn't need them anymore.
44368f8f 14560
048addec 145612002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14562
048addec
JD
14563 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14564 reduction. This fixes a display problem where stray newlines were
14565 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14566
048addec 145672002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14568
048addec 14569 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14570
048addec 14571 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14572
048addec 145732002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14574
048addec
JD
14575 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14576 match each other.
14577 (w32_load_system_font): Prevent Cleartype fonts from loading.
14578 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14579
048addec 145802002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14581
048addec
JD
14582 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14583 (CURRENT_MODE_LINE_HEIGHT): Use it.
14584 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14585
048addec
JD
14586 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14587 (pos_visible_p, handle_face_prop): Likewise.
14588 (display_mode_lines): Likewise, but for the real selected window.
14589 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14590
048addec
JD
14591 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14592 in non-selected windows.
14593 (realize_basic_faces): Realize it.
14594 (syms_of_term): Intern and staticpro it.
308dd672 14595
048addec 145962002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14597
048addec
JD
14598 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14599 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14600
048addec 146012002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14602
048addec
JD
14603 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14604 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14605
048addec 14606 * floatfns.c (Fround): Doc fix.
3c1e6b46 14607
048addec 146082002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14609
048addec 14610 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14611
048addec 146122002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14613
048addec 14614 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14615
048addec 146162002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14617
048addec
JD
14618 * keymap.c (where_is_internal): Only check whether definition is
14619 remapped if it fulfills is_command_symbol.
0065bb74 14620
048addec 146212002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14622
048addec 14623 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14624
048addec 14625 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14626
048addec 146272002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14628
048addec
JD
14629 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14630 defining command remapping. Doc updated.
14631 (Flookup_key): Remap command through keymap if KEY is a symbol.
14632 (is_command_symbol): New function.
14633 (Fkey_binding): Use it. New optional argument NO-REMAP.
14634 Doc updated. Callers changed. Perform command remapping via
14635 recursive call unless that arg is non-nil.
14636 (where_is_internal): New argument no_remap. Callers changed.
14637 Call recursively to find original key bindings for a remapped
14638 comand unless that arg is non-nil.
14639 (Fwhere_is_internal): New optional argument NO-REMAP.
14640 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14641
048addec
JD
14642 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14643 (is_command_symbol): Added prototype.
0d8466cc 14644
048addec
JD
14645 * keyboard.c (Vthis_original_command): New variable.
14646 (syms_of_keyboard): DEFVAR_LISP it.
14647 (command_loop_1): Set it, and perform command remapping.
15fff01d 14648
048addec 146492002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14650
048addec 14651 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14652
048addec 146532002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14654
048addec 14655 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14656
048addec 146572002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14658
048addec 14659 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14660
048addec 146612002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14662
048addec 14663 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14664
048addec 146652002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14666
048addec 14667 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14668
048addec
JD
14669 * lread.c (read1): Redesign strategy for force_multibyte and
14670 force_singlebyte. Now is_multibyte records whether read_buffer
14671 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14672
048addec 146732002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14674
048addec
JD
14675 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14676 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14677
048addec 146782002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14679
048addec
JD
14680 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14681 latter never being defined on GNU/Linux.
749f499f 14682
048addec 146832002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14684
048addec
JD
14685 * xfaces.c (realize_default_face): Don't set the weight and slant of
14686 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14687
048addec 146882002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14689
048addec
JD
14690 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14691 Call cancel_hourglass unconditionally.
d0fd26dd 14692
048addec
JD
14693 * eval.c (Fsignal): Remove duplicated declaration of
14694 the variable `display_hourglass_p'.
b4c45162 14695
048addec 146962002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14697
048addec 14698 * editfns.c (region_limit): Nicer error message.
c95eaa61 14699
048addec
JD
14700 * coding.c (decode_composition_emacs_mule):
14701 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14702
048addec
JD
14703 * callint.c (check_mark): New arg to specify clearer error message.
14704 Callers changed.
c95eaa61 14705
048addec 147062002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14707
048addec 14708 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14709
048addec 147102002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14711
048addec
JD
14712 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14713 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14714 Fix doc-strings.
c95eaa61 14715
048addec 147162002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14717
048addec 14718 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14719
048addec
JD
14720 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14721 and scroll_up_aggressively.
c95eaa61 14722
048addec 147232002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14724
048addec 14725 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14726
048addec 147272002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14728
048addec
JD
14729 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14730 (Fprevious_property_change, Fprevious_single_property_change):
14731 Stay within the narrowed-buffer boundaries.
e2c3786a 14732
048addec 147332002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14734
048addec
JD
14735 * term.c (Ftty_display_color_cells): New function.
14736 (syms_of_term): Defsubr it.
14737 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14738 argument name to DISPLAY. Doc fix.
bf794306 14739
048addec
JD
14740 * dispextern.h: Add prototype for set_tty_color_mode and
14741 tty_setup_colors.
bf794306 14742
048addec 147432002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14744
048addec
JD
14745 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14746 If region left to draw is not what was expected, mark the frame as
14747 garbaged.
62582985 14748
048addec
JD
14749 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14750 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14751
048addec 147522002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14753
048addec
JD
14754 * w32term.c (x_update_window_begin): Only hide caret if
14755 w32_use_visible_system_caret is set.
14756 (x_update_window_end): Only show caret if
14757 w32_use_visible_system_caret is set.
14758 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14759
048addec 14760 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14761
048addec 147622002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14763
048addec
JD
14764 * unexelf.c (unexec): Define n so as to cause compilation error
14765 for the code where people have often written n instead of nn.
1e9a6186 14766
048addec 14767 * .gdbinit (hookpost-run): Defined.
1e9a6186 14768
048addec 147692002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14770
048addec 14771 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14772
048addec 147732002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14774
048addec
JD
14775 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14776 if fullscreen is being set.
7c75be36 14777
048addec 147782002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14779
048addec
JD
14780 * minibuf.c (Fminibuffer_contents)
14781 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14782 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14783
048addec 147842002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14785
048addec 14786 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14787
048addec 147882002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14789
048addec
JD
14790 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14791 height before comparison.
14792 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14793
048addec 147942002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14795
048addec
JD
14796 * w32term.c (w32_system_caret_width): Remove.
14797 (w32_use_visible_system_caret): New user flag.
14798 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14799 Windows reports a screen reader running.
14800 (x_update_window_begin): Hide the system caret.
14801 (x_update_window_end): Show the system caret.
14802 (x_display_and_set_cursor): Don't draw a cursor when
14803 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14804
048addec
JD
14805 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14806 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14807 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14808 the user requests it. Use system default width when creating.
14809 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14810
048addec
JD
14811 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14812 New window messages.
905cc05a 14813
048addec 148142002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14815
048addec 14816 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14817
048addec 148182002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14819
048addec 14820 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14821
048addec 148222002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14823
048addec 14824 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14825
048addec 148262002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14827
048addec
JD
14828 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14829 that Windows returns. If a double check fails, try to guess how
14830 ExtTextOut is going to act.
4d0fa4f3 14831
048addec
JD
14832 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14833 in place of stricmp.
14834 (w32_list_synthesized_fonts): Removed.
14835 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14836 (struct enumfont_t): New element; list.
14837 (enum_font_cb2): List all style and charset variations of a font.
14838 (Fw32_select_font): New optional argument; include_proportional.
14839 Exclude vertical fonts. Exclude proportional fonts unless
14840 include_proportional is non-nil.
14841 (w32_enable_synthesized_fonts): Change to a boolean.
14842 (Fw32_send_sys_command): Doc fix.
493faf20 14843
048addec 148442002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14845
048addec
JD
14846 * dispnew.c (update_frame): Move the variable `tem' to the block
14847 where it is used.
4971e491 14848
048addec 148492002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14850
048addec
JD
14851 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14852 call to face-set-after-frame-default.
4971e491 14853
048addec 148542002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14855
048addec
JD
14856 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14857 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14858
048addec 148592002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14860
048addec
JD
14861 * window.c (enlarge_window): When exceeding size of parent,
14862 directly delete all the siblings instead of trying to resize it.
201c831a 14863
048addec 148642002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14865
048addec 14866 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14867
048addec 148682002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14869
048addec 14870 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14871
048addec 148722002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14873
048addec
JD
14874 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14875 is invisible. This can happen if cursor is on top line of a
14876 window, and we switch to a buffer with a header line.
d77fbc16 14877
048addec 14878 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14879
048addec 148802002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14881
048addec
JD
14882 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14883 `dont_resize' only when used.
61e3b944 14884
048addec 14885 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14886
048addec 148872002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14888
048addec
JD
14889 * xdisp.c (display_mode_element): When computing charpos, depend
14890 on multibyteness of elt, not the text in field.
8af01033 14891
048addec 148922002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14893
048addec
JD
14894 * buffer.c (Fkill_all_local_variables):
14895 Increment `update_mode_lines' only once.
7363986a 14896
048addec 148972002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14898
048addec
JD
14899 * lisp.h (adjust_after_replace_noundo)
14900 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14901
048addec 14902 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14903
048addec 149042002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14905
048addec
JD
14906 Support for the --color command-line argument and tty-color-mode
14907 frame parameter:
f1a85b89 14908
048addec
JD
14909 * term.c (tty_default_color_capabilities, tty_setup_colors)
14910 (set_tty_color_mode): New functions.
14911 (term_init): Call tty_default_color_capabilities.
14912 (Qtty_color_mode_alist): New variable.
14913 (syms_of_term): Intern and staticpro it.
f1a85b89 14914
048addec
JD
14915 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14916 frames.
14917 (do_switch_frame): For termcap frames, switch the tty
14918 color mode as specified by the frame's parameters.
14919 (Qtty_color_mode): New variable.
14920 (syms_of_frame): Intern and staticpro it.
3a62677f 14921
048addec
JD
14922 * emacs.c (USAGE2): Add the --color option.
14923 (standard_args): Ditto.
72244db2 14924
048addec
JD
149252002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14926
14927 * xterm.h (struct x_output): New members want_fullscreen,
14928 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14929 y_pixels_outer_diff.
14930 New enum for FULLSCREEN_* constants.
14931 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14932 is NULL.
14933 (x_fullscreen_adjust): Add prototype.
3a62677f 14934
048addec
JD
14935 * emacs.c (USAGE2): Add the new full-screen arguments.
14936 (standard_args): Ditto.
3a62677f 14937
048addec
JD
14938 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14939 New variables.
14940 (syms_of_xfns): Intern and staticpro them.
14941 (x_frame_parms) <"fullscreen">: New parameter.
14942 (x_fullscreen_move, x_set_fullscreen): New functions.
14943 (x_set_frame_parameters): Support for Qfullscreen.
14944 (x_real_positions): More accurate computation of the frame position.
14945 (x_figure_window_size): Support full-screen frames.
14946 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14947
048addec
JD
14948 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14949 (XTread_socket) <Expose>: Call x_check_fullscreen.
14950 <ConfigureNotify>: Don't resize to fullscreen.
14951 Call x_check_fullscreen_move, and set the want_fullscreen member of
14952 output_data.x.
3a62677f 14953
048addec 149542002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14955
048addec
JD
14956 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14957 for mice with more than 3 buttons.
b8523839 14958
048addec
JD
14959 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14960 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14961
048addec
JD
14962 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14963 (syms_of_w32fns): DEFVAR_BOOL it.
14964 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14965
048addec 149662002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14967
048addec 14968 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14969
048addec 149702002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14971
048addec 14972 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14973
048addec 149742002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14975
048addec
JD
14976 * .gdbinit (xbuffer): Remove address operator since data is now a
14977 pointer.
c93674bb 14978
048addec 149792002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14980
048addec 14981 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14982
048addec 14983 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14984
048addec 149852002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14986
048addec
JD
14987 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14988 when checking for multiple frames.
91175673 14989
048addec 149902002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14991
048addec
JD
14992 * window.c (delete_window): Rewrite the code for changing the
14993 selected window to handle the case where WINDOW is not a leaf.
91175673 14994
048addec 149952002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14996
048addec
JD
14997 * process.c (send_process): Set src_multibyte to 1 after the call
14998 top setup_coding_system, not before the call.
e0fead5d 14999
048addec 150002002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15001
048addec
JD
15002 * xmenu.c (set_frame_menubar, xmenu_show):
15003 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15004
048addec
JD
15005 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15006 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15007
048addec 150082002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15009
048addec 15010 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15011
048addec 15012 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15013
048addec 15014 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15015
048addec 150162002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15017
048addec
JD
15018 * insdel.c (make_gap_larger): Make sure buffer size does not
15019 overflow range of int.
62854fe2 15020
048addec 150212002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15022
048addec
JD
15023 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15024 OVERLAPS_P.
656f46bb 15025
048addec 15026 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15027
048addec
JD
15028 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15029 to the left or to the right of the pointer, put it against
15030 the left screen edge.
15031 (x_frame_parms): Add missing braces around initializer.
036e218d 15032
048addec
JD
15033 * w32term.c (x_setup_relief_colors): Don't compute an image's
15034 background color if it doesn't have a Pixmap.
15035 (notice_overwritten_cursor): Don't depend on
15036 output_cursor and updated_area. Compare pixel coordinates with
15037 window's cursor pixel coordinates.
15038 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15039 Call notice_overwritten_cursor with new arg list.
15040 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15041 unconditionally.
15042 (x_draw_image_relief): Use predefined macro instead of
15043 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15044
048addec 15045 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15046
048addec 150472002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15048
048addec 15049 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15050
048addec 150512002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15052
048addec
JD
15053 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15054 (Fkey_binding): Try the `keymap' property map first.
15055 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15056 minor mode bindings.
90647b07 15057
048addec 150582002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15059
048addec 15060 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15061
048addec 150622002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15063
048addec
JD
15064 * keyboard.c (read_key_sequence): Handle the keymap property
15065 before minor mode maps.
9fbc32aa 15066
048addec
JD
15067 * editfns.c (Fformat): Update thissize from field_width
15068 based on the actual width, in the string case.
036e218d 15069
048addec 150702002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15071
048addec
JD
15072 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15073 when used as truth value to prevent gcc warnings.
9fbc32aa 15074
048addec
JD
15075 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15076 * w32proc.c: Include <config.h>.
9fbc32aa 15077
048addec 150782002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15079
048addec
JD
15080 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15081 not EMACS_INT, to make them compatible with DEFVAR_INT.
15082 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15083
048addec 150842002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15085
048addec
JD
15086 * print.c (print_object): Test print_escape_nonascii only for
15087 unibyte strings.
15088 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15089 when outputting to a multibyte buffer.
9fbc32aa 15090
048addec 150912001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15092
048addec
JD
15093 * print.c (print_object): In multibyte string, use hex escapes.
15094 Use octal only for unibyte strings.
15095 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15096
048addec
JD
15097 * lread.c (read_escape): New arg BYTEREP for reporting whether
15098 escape forces unibyte or multibyte.
15099 (read1): When reading a string, take note of that info.
0142178a 15100
048addec 151012001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15102
048addec
JD
15103 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15104 comparison to test lisp value returned by Fget.
d4824a5d 15105
048addec 151062001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15107
048addec 15108 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15109
048addec 15110 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15111
048addec
JD
15112 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15113 Handle modifier bits. Correct typo in error message.
99e380ee 15114
048addec 151152001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15116
048addec
JD
15117 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15118 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15119 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15120 Update calls to Fdefine_abbrev.
15121 (write_abbrev): Update for changed data format.
15122 Don't list "system" abbrevs.
15123 (Fexpand_abbrev): Update use count with new data format.
15124 (describe_abbrev): Update for changed data format.
15125 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15126
048addec 15127 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15128
048addec 15129 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15130
048addec
JD
15131 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15132 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15133
048addec
JD
15134 * keymap.c (Flookup_key): Error message if key has wrong data type.
15135 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15136 (exclude_key): New variable.
59a86c99 15137
048addec 151382001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15139
048addec
JD
15140 * xterm.c (x_setup_relief_colors): Don't compute an image's
15141 background color if it doesn't have a Pixmap.
eb77a5f4 15142
048addec
JD
15143 * xterm.c (notice_overwritten_cursor): Don't depend on
15144 output_cursor and updated_area. Compare pixel coordinates with
15145 window's cursor pixel coordinates.
15146 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15147 Call notice_overwritten_cursor with new arg list.
15148 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15149 unconditionally.
eb77a5f4 15150
048addec
JD
15151 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15152 height of the cursor line to the amount to scroll.
eb77a5f4 15153
048addec 151542001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15155
048addec
JD
15156 * intervals.c (set_point_both): The position after an invisible,
15157 intangible character is not an acceptable stopping point.
bb313871 15158
048addec 151592001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15160
048addec
JD
15161 * window.c (enlarge_window): In new preserve_before code, convert
15162 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15163
048addec 151642001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15165
048addec 15166 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15167
048addec 151682001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15169
048addec
JD
15170 * keyboard.c (record_char): Ignore duplicate help-echo events only
15171 separated by mouse-movement. When tracking mouse, only record
15172 first and last mouse-movement event in same window.
15173 Don't record mouse-movement events in keyboard macros.
3ce081f5 15174
048addec 151752001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15176
048addec
JD
15177 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15178 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15179
048addec
JD
15180 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15181 instead of Fstring_as_unibyte.
9fabb2f5 15182
048addec 151832001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15184
048addec 15185 The following changes remove mocklisp support:
9fabb2f5 15186
048addec 15187 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15188
048addec
JD
15189 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15190 `Qmocklisp' and `Qmocklisp_arguments'.
15191 Remove prototype of syms_of_mocklisp.
2fa0eedf 15192
048addec 15193 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15194
048addec
JD
15195 * callint.c: Do not include mocklisp.h.
15196 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15197
048addec
JD
15198 * eval.c: Remove variables `Qmocklisp_arguments',
15199 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15200 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15201 Do not test for mocklisp case.
15202 (Fwhile): Remove unused variable `tem'.
15203 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15204
048addec 15205 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15206
048addec 15207 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15208
048addec 15209 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15210
048addec 152112001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15212
048addec
JD
15213 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15214 to the left or to the right of the pointer, put it against
15215 the left screen edge.
6108b49c 15216
048addec 152172001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15218
048addec
JD
15219 * Makefile.in (distclean): Remove .gdbinit if we are building
15220 outside the source tree.
5eea19a4 15221
048addec 152222001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15223
048addec 15224 * w32.c (emacs_root_dir): New function.
5eea19a4 15225
048addec 15226 * msdos.c (emacs_root_dir): New function.
5eea19a4 15227
048addec
JD
15228 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15229 of the current drive as the fallback for default_directory.
438e57dd 15230
048addec
JD
15231 * dired.c (file_name_completion): Run the elements of
15232 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15233
048addec
JD
15234 * lisp.h (scmp): Remove prototype, since it's now a static
15235 function private to dired.c.
c88e5347 15236
048addec 152372001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15238
048addec
JD
15239 * dired.c (scmp): Function moved from minibuf.c.
15240 Delete multibyte handling--used only on encoded strings.
59ce1461 15241
048addec 15242 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15243
048addec 15244 * fns.c (merge): Add QUIT call.
59ce1461 15245
048addec 152462001-12-18 Dave Love <fx@gnu.org>
8727d588 15247
048addec
JD
15248 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15249 language/georgian.el.
8727d588 15250
048addec 152512001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15252
048addec
JD
15253 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15254 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15255
048addec 152562001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15257
048addec
JD
15258 * xdisp.c (window_box_height): Do not return negative values.
15259 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15260
048addec 15261 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15262
048addec 15263 * term.c (keys): Likewise.
deece6f5 15264
048addec 15265 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15266
048addec 152672001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15268
048addec
JD
15269 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15270 patch (COMPOSING_P, not COMPOSING).
28ff4293 15271
048addec 152722001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15273
048addec 15274 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15275
048addec
JD
15276 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15277 before calling decode_coding.
9b46de40 15278
048addec 15279 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15280
048addec
JD
15281 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15282 instead of only for COMPOSITION_DISABLED.
9b46de40 15283
048addec 152842001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15285
048addec 15286 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15287
048addec 15288 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15289
048addec
JD
15290 * buffer.h (struct buffer): New field `display_error_modiff'.
15291 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15292
048addec 15293 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15294
048addec
JD
15295 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15296 Call redisplay_window, but not if display_error_modiff field says no.
15297 (redisplay_window_error): New function.
15298 (displayed_buffer): New variable.
15299 (redisplay_internal, redisplay_windows): Call the new functions
15300 instead of redisplay_window directly.
2cd23960 15301
048addec 153022001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15303
048addec 15304 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15305
048addec 153062001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15307
048addec 15308 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15309 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15310 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15311
048addec 153122001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15313
048addec
JD
15314 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15315 parameter have a numeric value all the time.
f6fa0866 15316
048addec 15317 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15318
048addec 153192001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15320
048addec 15321 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15322
048addec
JD
15323 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15324 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15325
048addec 153262001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15327
048addec
JD
15328 * xdisp.c (move_it_vertically_backward): Change heuristic
15329 for the case that we didn't move far enough initially.
91c153e2 15330
048addec
JD
15331 * window.c (Frecenter): Simplify computation in the case of window
15332 system frames and ARG < 0; use window_box_height.
65b7d3e7 15333
048addec 153342001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15335
048addec
JD
15336 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15337 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15338
048addec 153392001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15340
048addec
JD
15341 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15342 arg is negative.
be676094 15343
048addec 153442001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15345
048addec
JD
15346 * m/hp800.h: Split the __hpux conditional into the parts
15347 that are right for GNU/Linux too and the parts that are not.
15348 Use the former if GNU_LINUX.
15349 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15350
048addec 15351 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15352
048addec 153532001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15354
048addec
JD
15355 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15356 `new style' [w/`doc:' keyword].
032a857d 15357
048addec 153582001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15359
048addec
JD
15360 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15361 before using.
b6270150 15362
048addec 153632001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15364
048addec
JD
15365 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15366 keyword].
98cbb9fa 15367
048addec 153682001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15369
048addec 15370 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15371
048addec 15372 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15373
048addec 153742001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15375
048addec 15376 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15377 Add comment to explain where the struct came from.
048addec
JD
15378 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15379 (add_menu_item): Process pop-up menus first to avoid memory leak.
15380 (add_menu_item, w32_menu_display_help): Use `help' field as
15381 Lisp_Object.
15382 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15383
048addec 153842001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15385
048addec 15386 * COPYING: Moved back.
fa336b91 15387
048addec
JD
15388 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15389 Add parentheses around && within ||.
077907d4 15390
048addec 15391 * indent.c (compute_motion): Likewise.
aa2af83a 15392
048addec 15393 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15394
048addec
JD
15395 * coding.c (setup_coding_system, shrink_encoding_region)
15396 (Fdecode_sjis_char): Likewise.
60a653f1 15397
048addec 153982001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15399
048addec
JD
15400 * xdisp.c (display_mode_element): Don't read past end of string if
15401 it ends with '%'.
60a653f1 15402
048addec
JD
15403 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15404 can hold.
60a653f1 15405
048addec
JD
15406 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15407 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15408 type changed to Lisp_Object.
15409 (syms_of_data): DEFVAR_LISP them.
60a653f1 15410
048addec 154112001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15412
048addec
JD
15413 * callproc.c (init_callproc): Set Vdata_directory based on the source
15414 location whenever Emacs was run uninstalled.
60a653f1 15415
048addec 154162001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15417
048addec
JD
15418 * config.in (HAVE_WORKING_VFORK): New #undefs.
15419 * process.c (create_process):
15420 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15421 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15422 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15423 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15424 * m/intel386.h (HAVE_VFORK): Likewise.
15425 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15426 * m/mips.h (HAVE_VFORK): Likewise.
15427 * s/freebsd.h (vfork): Remove #define.
15428 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15429 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15430
048addec 154312001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15432
048addec
JD
15433 * s/hpux10.h (random): Add undef.
15434 (HAVE_RANDOM): Define it just once.
60a653f1 15435
048addec 154362001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15437
048addec 15438 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15439
048addec 154402001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15441
048addec
JD
15442 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15443 scroll bars of the frame before deleting the frame itself. If the
15444 frame has a widget, delete the frame with XtDestroyWidget, and do
15445 not call XDestroyWindow before that.
60a653f1 15446
048addec 154472001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15448
048addec 15449 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15450
048addec 15451 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15452
048addec 154532001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15454
048addec
JD
15455 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15456 excessively large.
60a653f1 15457
048addec
JD
15458 * insdel.c (make_gap_larger): New function.
15459 (make_gap_smaller): New function.
15460 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15461 Call make_gap_smaller if arg is negative.
60a653f1 15462
048addec 154632001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15464
048addec
JD
15465 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15466 Pass a dummy argument when calling interrupt_signal.
15467 (parse_menu_item): Mark disabled items before checking for empty def.
15468 (read_char_minibuf_menu_prompt): Make safety more visible.
15469 (read_key_sequence): Add a `first_unbound' variable.
15470 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15471 unbound prefix as soon as we can detect it.
60a653f1 15472
048addec
JD
15473 * doc.c (Fsnarf_documentation): Add prototype.
15474 (get_doc_string): Handle negative arguments.
15475 (Fdocumentation): Use AREF and ASIZE.
15476 Move the calls to get_doc_string to a single place.
15477 Don't confuse an interactive-spec for a docstring reference.
15478 (Fdocumentation_property): Take advantage of the fact that
15479 get_doc_string now ignores the sign of the docstring position.
60a653f1 15480
048addec 15481 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15482
048addec 154832001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15484
a64387ee 15485 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15486
048addec 154872001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15488
048addec
JD
15489 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15490 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15491
048addec 154922001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15493
048addec
JD
15494 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15495 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15496
048addec 15497 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15498
048addec 154992001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15500
048addec 15501 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15502
048addec 155032001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15504
048addec 15505 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15506
048addec 155072001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15508
f63fd14e 15509 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15510
048addec
JD
15511 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15512 [!WM_MOUSELEAVE]: Define.
60a653f1 15513
048addec
JD
15514 * w32menu.c (current_popup_menu, get_menu_item_info):
15515 (set_menu_item_info): New vars.
15516 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15517 (w32_menu_show): Set current_popup_menu.
15518 (add_menu_item): Allocate new strings for owner-drawn menu items
15519 and help strings.
15520 Use owner-draw for disabled menu items again.
15521 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15522 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15523
048addec
JD
15524 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15525 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15526 <WM_EXITMENULOOP>: Free menu strings.
15527 <WM_MOUSELEAVE>: Stop tracking mouse.
15528 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15529
048addec
JD
15530 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15531 and mouse face.
60a653f1 15532
048addec 155332001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15534
048addec
JD
15535 The following changes add left-fringe and right-fringe
15536 frame parameters to adjust fringe widths, or remove one or
15537 both fringes.
60a653f1 15538
048addec
JD
15539 * frame.h (struct frame): Remove trunc_area_pixel_width and
15540 trunc_area_cols fields.
15541 (Qleft_fringe, Qright_fringe): Declare.
15542 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15543
048addec
JD
15544 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15545 (syms_of_frame): Initialize them.
60a653f1 15546
048addec
JD
15547 * window.c (coordinates_in_window): Handle separate left and right
15548 fringe widths.
60a653f1 15549
048addec
JD
15550 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15551 and fringe_cols fields.
15552 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15553 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15554 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15555 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15556 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15557 (x_compute_fringe_widths): Add prototype.
60a653f1 15558
048addec
JD
15559 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15560 fill fringe evenly with small dashes.
f63fd14e 15561 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15562 clip the new ZV bitmap to avoid jitter between rows.
15563 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15564 background. Don't draw fringe bitmaps if fringe width is zero.
15565 (x_compute_fringe_widths): New function.
15566 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15567
048addec
JD
15568 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15569 (x_set_frame_parameters): Process `font' parameter before other
15570 parameters as fringe widths depend on it.
15571 (x_set_fringe_width): New function.
15572 (x_figure_window_size): Use x_compute_fringe_widths.
15573 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15574 parameters.
60a653f1 15575
048addec
JD
15576 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15577 (EmacsFrameSetCharSize): Ditto.
60a653f1 15578
048addec
JD
15579 * w32term.h: Merged changes from xterm.h.
15580 * w32term.c: Merged changes from xterm.c.
15581 * w32fns.c: Merged changes from xfns.c.
60a653f1 15582
048addec 155832001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15584
048addec 15585 * COPYING: Removed.
60a653f1 15586
048addec 155872001-11-29 Dave Love <fx@gnu.org>
60a653f1 15588
048addec
JD
15589 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15590 extra extra slot.
15591 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15592
048addec 155932001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15594
048addec
JD
15595 * fileio.c (file-name-coding-system)
15596 (default-file-name-coding-system): Doc fix (links to referenced
15597 variables added).
60a653f1 15598
048addec 155992001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15600
048addec
JD
15601 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15602 Add dummy uses of gcproN variables.
60a653f1 15603
048addec
JD
15604 * category.c (describe_category, describe_category_1)
15605 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15606 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15607
048addec 156082001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15609
048addec 15610 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15611
048addec
JD
15612 * Makefile.in (lispdir): New variable, referring to build dir.
15613 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15614
048addec 156152001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15616
048addec
JD
15617 * w32menu.c (w32_menu_display_help): Actually add the new argument
15618 OWNER.
60a653f1 15619
048addec 156202001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15621
048addec
JD
15622 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15623 menu items. From David Ponce <dponce@wanadoo.fr>.
15624 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15625 conditionally.
f63fd14e 15626 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15627 help event in the owner frame's keyboard buffer.
60a653f1 15628
048addec
JD
15629 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15630 (Fx_show_tip): Don't subtract last width from row width.
15631
15632 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15633 (w32_read_socket): Use EQ to compare frames.
60a653f1 15634
048addec 156352001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15636
048addec
JD
15637 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15638 OVERLAPS_P.
60a653f1 15639
048addec 156402001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15641
048addec
JD
15642 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15643 `gcpro3' and `gcpro4'.
60a653f1 15644
048addec 15645 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15646
048addec 156472001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15648
048addec 15649 * ccl.c: Use AREF and ASIZE.
60a653f1 15650
048addec 156512001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15652
048addec
JD
15653 * lisp.h (run_hook_list_with_args): Remove.
15654 (LIST_END_P): Fix call to wrong_type_argument.
15655 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15656
048addec 156572001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15658
048addec
JD
15659 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15660 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15661
048addec
JD
15662 * eval.c: Use AREF and ASIZE.
15663 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15664
048addec
JD
15665 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15666 which match the end of the file-name.
15667 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15668 is not a valid env var, but leave it as is instead.
60a653f1 15669
048addec
JD
15670 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15671 Make nil bindings in char-tables transparent.
15672 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15673
048addec 156742001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15675
048addec
JD
15676 * textprop.c (set_text_properties_1): Allow START, END in either order.
15677 Do nothing if range is empty.
60a653f1 15678
048addec 15679 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15680
048addec
JD
15681 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15682 (clean): Not here.
60a653f1 15683
048addec 156842001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15685
048addec
JD
15686 * textprop.c (set_text_properties_1): Clearly mark that the
15687 interval should not be empty.
60a653f1 15688
048addec
JD
15689 * intervals.c (graft_intervals_into_buffer):
15690 Don't call set_text_properties_1 on an empty interval.
60a653f1 15691
048addec 156922001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15693
048addec 15694 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15695
048addec
JD
15696 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15697 don't lose the data in it.
60a653f1 15698
048addec 156992001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15700
048addec 15701 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15702
c62aec78 15703 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15704
c62aec78 15705 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15706
048addec 157072001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15708
048addec 15709 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15710
048addec 157112001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15712
048addec
JD
15713 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15714 Niemitalo <kon@iki.fi>.
60a653f1 15715
048addec 157162001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15717
048addec 15718 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15719
048addec
JD
15720 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15721 (Fx_show_tip): Block input during frame creation.
15722 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15723
048addec 157242001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15725
048addec
JD
15726 * lread.c (Fload): Detect recursive load error for more than 3
15727 nestings of the same file.
15728 (Vrecursive_load_depth_limit): Variable deleted.
15729 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15730
048addec 157312001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15732
048addec
JD
15733 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15734 mouse position if either left or top is not specified.
60a653f1 15735
048addec
JD
15736 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15737 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15738 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15739 (my_create_tip_window): Assign tip_window.
15740 (x_create_tip_frame): Use same defaults as X.
15741 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15742 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15743
048addec
JD
15744 * w32term.c (x_after_update_window_line): Doc fix.
15745 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15746 frames.
15747 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15748
048addec
JD
15749 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15750 for all Windowed systems.
60a653f1 15751
048addec 157522001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15753
048addec
JD
15754 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15755 realized, use the initial screen colors to clear the screen.
60a653f1 15756
048addec 157572001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15758
048addec
JD
15759 * textprop.c (Fset_text_properties): Remove unused variables
15760 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15761
048addec
JD
15762 * search.c (Freplace_match): Remove unused variable `inslen'.
15763
15764 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15765
157662001-11-22 Jason Rumney <jasonr@gnu.org>
15767
15768 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15769 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15770 (my_create_tip_window): New function.
15771 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15772 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15773
157742001-11-20 Jason Rumney <jasonr@gnu.org>
15775
15776 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15777 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15778
15779 * w32fns.c (Vw32_system_coding_system): Remove.
15780 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15781
157822001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15783
15784 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15785 after build_annotations.
15786
15787 * syntax.c (describe_syntax): Add dummy arg.
15788 (describe_syntax_1): Update call to describe_vector.
15789
15790 * category.c (describe_category): Add dummy arg.
15791 (describe_category_1): Update call to describe_vector.
15792
15793 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15794 (describe_command, describe_translation): Add dummy second param.
15795 (describe_map): Call elt_describer with two arguments.
15796 (describe_vector_princ): Add `fun' parameter.
15797 Call it instead of the hardcoded `princ'.
15798 (describe_vector): Add arg `args'.
15799 Pass it as a new second argument to elt_describer.
60a653f1 15800
048addec 15801 * keymap.h (describe_vector): Update prototype.
60a653f1 15802
048addec
JD
15803 * frame.c: Don't include keymap.h any more.
15804 (keys_of_frame): Remove.
60a653f1 15805
048addec 15806 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15807
048addec 15808 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15809
048addec 158102001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15811
048addec
JD
15812 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15813 if defined, 0 otherwise.
15814 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15815 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15816
048addec 158172001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15818
048addec 15819 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15820
048addec 158212001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15822
048addec
JD
15823 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15824 (x_draw_bar_cursor): If the background color of the glyph under
15825 the cursor equals the frame's cursor color, use the glyph's
15826 foreground color for drawing the bar cursor.
15827 (x_after_update_window_line): Clear internal border in different
15828 circumstances.
15829 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15830 (w32_draw_relief_rect): Correct relief by 1 pixel.
15831 (x_set_glyph_string_background_width):
15832 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15833 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15834 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15835 if cursor_in_non_selected_windows is false.
15836 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15837 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15838 Notice if cursor gets overwritten.
15839 (notice_overwritten_cursor): Renamed from
15840 note_overwritten_text_cursor. Rewritten to take glyph widths
15841 into account, and to take X positions as parameters.
15842 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15843 around call to x_draw_glyphs.
15844 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15845 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15846 color to use for image glyph reliefs.
15847 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15848 (glyph_rect): Remove unused variable `area'.
60a653f1 15849
048addec
JD
15850 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15851 some items.
15852 (x_set_internal_border_width): Set frame garbaged when window
15853 doesn't exist yet.
15854 (Fx_create_frame): Accept zero tool_bar_button_relief.
15855 (x_clear_image_1, four_corners_best, image_background)
15856 (image_background_transparent): New functions.
15857 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15858 (gs_format): Add `:background' entry.
15859 (lookup_image): Set IMG's background color if specified.
15860 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15861 when appropriate.
15862 (x_clear_image_1): Reset `background_valid' and
15863 `background_transparent_valid' fields.
15864 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15865 calculating it here. Set IMG's background_transparent field.
15866 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15867 (enum png_keyword_index): Add PNG_BACKGROUND.
15868 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15869 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15870 (enum gif_keyword_index): Add GIF_BACKGROUND.
15871 (enum gs_keyword_index): Add GS_BACKGROUND.
15872 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15873 Pre-calculate image background color where necessary.
15874 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15875 Use display info's n_cbits entry for screen depth.
15876 (Fx_show_tip): Remove unused variables `buffer', `top',
15877 `left', `max_width' and `max_height'.
60a653f1 15878
048addec 15879 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15880
048addec 158812001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15882
048addec 15883 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15884
048addec 158852001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15886
048addec 15887 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15888
048addec 158892001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15890
048addec
JD
15891 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15892 (message_dolog_marker3): New static variables hold three markers.
15893 (syms_of_xdisp): Initialize and staticpro them.
15894 (message_dolog): Use message_dolog_marker1..3 instead of
15895 allocating markers each time. Unchain them when done.
60a653f1 15896
048addec 158972001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15898
048addec 15899 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15900
048addec 159012001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15902
048addec 15903 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15904
048addec 159052001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15906
048addec 15907 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15908
048addec 159092001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15910
048addec 15911 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15912
048addec 159132001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15914
048addec
JD
15915 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15916 with invalid position.
60a653f1 15917
048addec 159182001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15919
048addec 15920 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15921
048addec
JD
15922 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15923 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15924 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15925
048addec 15926 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15927
048addec 159282001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15929
048addec
JD
15930 * fileio.c (build_annotations): Split off the tail.
15931 (build_annotations_2): New fun. Extracted from build_annotations.
15932 (Fwrite_region): Split the call to build_annotations into two
15933 calls to build_annotations and build_annotations_2.
077907d4 15934
048addec 159352001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15936
048addec
JD
15937 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15938 clear_waiting_for_input with argument.
1756e2fb 15939
048addec 15940 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15941
048addec 15942 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15943
048addec 15944 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15945
048addec 15946 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15947
048addec 159482001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15949
048addec
JD
15950 * fileio.c (choose_write_coding_system): New fun, extracted
15951 from Fwrite_region.
15952 (Fwrite_region): Use it.
fa336b91 15953
048addec
JD
15954 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15955 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15956 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15957
048addec 159582001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15959
048addec 15960 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15961
048addec
JD
15962 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15963 Required for ISC 4.1.
fa336b91 15964
048addec 159652001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15966
048addec
JD
15967 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15968 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15969
048addec 159702001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15971
048addec
JD
15972 The following changes are made to clean up the various internal
15973 references to the fringes to actually use the term `fringe' for
15974 them. Previously, they were called `flags areas', `bitmap areas',
15975 `left/right side of windows', or implicitly as `flags' or
15976 `bitmaps':
fa336b91 15977
048addec 15978 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15979 Comments fixed. Use renamed symbols.
06e8f738 15980
f63fd14e 15981 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15982
048addec
JD
15983 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15984 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15985 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15986
048addec 15987 * msdos.c: Comment fix.
9ce647f4 15988
048addec 15989 * w32fns.c: Use renamed symbols.
9b784ab8 15990
f63fd14e 15991 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15992 (fringe_bitmap_type): Renamed from bitmap_type.
15993 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15994 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15995 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15996
f63fd14e 15997 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15998 (fringes_extra): Renamed from flags_areas_extra.
15999 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16000 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16001 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16002 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16003 (FRAME_X_LEFT_FRINGE_WIDTH):
16004 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16005 (FRAME_X_RIGHT_FRINGE_WIDTH):
16006 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16007
048addec 16008 * widget.c: Use renamed symbols.
9f7e52b4 16009
f63fd14e 16010 * window.c: Comment fixes. Use renamed symbols.
048addec 16011 (coordinates-in-window-p): Doc fix.
fa336b91 16012
f63fd14e 16013 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16014
048addec 16015 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16016
048addec 16017 * xfns.c: Use renamed symbols.
89512fcd 16018
f63fd14e 16019 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16020 (fringe_bitmap_type): Renamed from bitmap_type.
16021 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16022 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16023 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16024
f63fd14e 16025 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16026 (fringes_extra): Renamed from flags_areas_extra.
16027 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16028 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16029 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16030 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16031 (FRAME_X_LEFT_FRINGE_WIDTH):
16032 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16033 (FRAME_X_RIGHT_FRINGE_WIDTH):
16034 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16035
160362001-11-15 Jason Rumney <jasonr@gnu.org>
16037
16038 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16039 work for most menu items. From David Ponce
16040 <david.ponce@wanadoo.fr>.
16041
160422001-11-15 Gerd Moellmann <gerd@gnu.org>
16043
16044 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16045 Some x_set_* function expect to be called even if old and new
16046 value are equal.
16047
16048 * xdisp.c (build_desired_tool_bar_string): Accept zero
16049 tool_bar_button_relief.
16050
16051 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16052
16053 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16054
16055 * xterm.c (x_draw_bar_cursor): If the background color of the
16056 glyph under the cursor equals the frame's cursor color, use
16057 the glyph's foreground color for drawing the bar cursor.
16058
16059 * dispnew.c (direct_output_forward_char): Fix character/byte
16060 position comparison.
7d18891d 16061
048addec 160622001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16063
048addec
JD
16064 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16065 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16066 Update arguments to find_field.
16067 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16068 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16069 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16070 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16071
048addec 160722001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16073
048addec 16074 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16075
048addec
JD
16076 * dispextern.h (image_background, image_background_transparent):
16077 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16078
048addec 160792001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16080
048addec 16081 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16082
048addec 16083 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16084
048addec 16085 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16086
048addec 16087 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16088
048addec 16089 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16090
048addec 16091 * eval.c (syms_of_eval): Doc fix.
7d18891d 16092
048addec 16093 * coding.c (syms_of_coding): Doc fix.
7d18891d 16094
048addec 16095 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16096
048addec 16097 * dispnew.c (syms_of_display): Doc fix.
9474c847 16098
048addec 16099 * category.c (Fget_unused_category): Doc fix.
9474c847 16100
048addec 16101 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16102
048addec 161032001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16104
048addec 16105 * print.c (prin1, print): Doc fix.
e3059a5d 16106
048addec 161072001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16108
048addec
JD
16109 * fontset.h: Remove declarations of variables
16110 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16111
048addec
JD
16112 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16113 `Vclip_large_size_font'.
eae936e2 16114
048addec 161152001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16116
048addec 16117 * w32fns.c: Doc fix.
ddb67bdc 16118
048addec 161192001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16120
048addec 16121 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16122
048addec 16123 * fns.c: Doc fix.
6e1b91d7 16124
048addec 16125 * emacs.c: Doc fix.
1c1d3d69 16126
048addec 16127 * coding.c: Doc fix.
1c1d3d69 16128
048addec
JD
16129 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16130 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16131 `new style' [w/`doc:' keyword].
b6f4c7ba 16132
048addec 161332001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16134
048addec
JD
16135 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16136 LeaveNotify events. Only FocusIn and FocusOut do that now.
16137 (x_display_and_set_cursor): Do display hollow cursors in active
16138 minibuffer windows when they are not selected.
b6f4c7ba 16139
048addec 161402001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16141
048addec 16142 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16143 * w32term.c: Change doc-string comments to `new style'
16144 [w/`doc:' keyword]. Doc fixes.
a89f435d 16145
048addec
JD
16146 * w32fns.c: Don't define max.
16147 (Fx_open_connection): Only execute once.
a4cd0cd7 16148
048addec 161492001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16150
048addec
JD
16151 * ccl.c: Change macros to use do-while block instead of if-else.
16152 Use braces to follow GNU Coding Standards.
eafb659a 16153
048addec 161542001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16155
048addec 16156 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16157
048addec 16158 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16159
048addec
JD
16160 * insdel.c (replace_range): Use adjust_markers_for_replace
16161 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16162
78819ebb 16163 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16164
048addec
JD
16165 * textprop.c (set_text_properties_1): New subroutine
16166 broken out of set_text_properties.
16167 (set_text_properties): Use set_text_properties_1.
91823618 16168
048addec
JD
16169 * intervals.c (graft_intervals_into_buffer):
16170 Use set_text_properties_1 to clear out properties.
91823618 16171
048addec
JD
16172 * search.c (Freplace_match): Use replace_range to insert
16173 and delete. Don't request property inheritance from
16174 surrounding text.
86928dfb 16175
048addec 161762001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16177
048addec 16178 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16179 vertical fonts. Allow them if face name is explicitly specified.
048addec 16180 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16181
048addec 161822001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16183
048addec
JD
16184 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16185 instead of malloc/free.
a78e0303 16186
048addec 161872001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16188
048addec
JD
16189 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16190 Coding Standards.
16191 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16192
048addec 16193 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16194
048addec 16195 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16196
048addec
JD
16197 * coding.c (encode_coding): Use precomputed value of `src'.
16198 (encode_coding): Remove unused variable `src_end'.
16199 (code_convert_region): Remove unused variables `count'.
830ddd77 16200
048addec 162012001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16202
048addec
JD
16203 * w32term.c (x_display_and_set_cursor): Do not move system caret
16204 if cursor_glyph is NULL.
55c6d645 16205
048addec 162062001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16207
048addec 16208 * keymap.c (access_keymap): Fix compilation error.
5de38842 16209
048addec 162102001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16211
048addec 16212 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16213
048addec 162142001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16215
048addec
JD
16216 * intervals.c (graft_intervals_into_buffer):
16217 Remove #ifdef'd-out code.
16218 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16219
048addec
JD
16220 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16221 code (eval-current-buffer).
16222 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16223
048addec 162242001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16225
048addec 16226 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16227
048addec 162282001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16229
048addec 16230 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16231
048addec
JD
16232 * keyboard.c (make_lispy_event): Check integerness and fix
16233 Lisp_Object/int mixup.
17893c65 16234
048addec 162352001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16236
048addec 16237 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16238
048addec
JD
16239 * fontset.c (fontset_font_pattern): Remove unused variable
16240 `family_registry'.
d5360cc7 16241
048addec 16242 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16243
048addec 162442001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16245
048addec 16246 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16247
048addec
JD
16248 * buffer.c (Fkill_buffer): Don't delete auto save file
16249 if buffer is modified.
d9d54213 16250
048addec 162512001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16252
048addec
JD
16253 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16254 CHECK_NUMBER_CDR.
b116830b 16255
048addec 162562001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16257
048addec 16258 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16259
048addec 162602001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16261
048addec 16262 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16263
048addec 162642001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16265
048addec 16266 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16267
048addec 162682001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16269
048addec
JD
16270 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16271 the program image directly.
982f6c7e 16272
048addec 162732001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16274
048addec 16275 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16276
048addec 162772001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16278
048addec
JD
16279 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16280 and CHECK_BUFFER.
d31053f9 16281
048addec
JD
16282 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16283 (record_char): Likewise.
d31053f9 16284
048addec
JD
16285 * keyboard.c (make_lispy_event): Don't insist a drag event must
16286 move to a different buffer position. Instead, check for moving at
16287 least double_click_fuzz.
982f6c7e 16288
048addec 16289 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16290
048addec 16291 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16292
048addec
JD
16293 * indent.c (current_column_1, Fmove_to_column): Separate the code
16294 for display-table glyphs from the code for buffer text, to fix
16295 bugs in the former.
830047fd 16296
048addec 162972001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16298
048addec
JD
16299 * buffer.c (Fbuffer_local_value): New function.
16300 (syms_of_buffer): Defsubr it.
2df5238c 16301
048addec
JD
16302 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16303 value of `cursor-in-non-selected-windows'.
4e397688 16304
048addec
JD
16305 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16306 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16307 (syms_of_xdisp): Initialize it.
48b0f3ae 16308
048addec 163092001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16310
048addec 16311 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16312
048addec
JD
16313 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16314 keyword].
3ecaf7e5 16315
048addec
JD
16316 * eval.c (top_level_value, top_level_set): Remove commented and
16317 #ifdef'd-out code.
16318 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16319
048addec 163202001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16321
048addec 16322 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16323
048addec 16324 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16325
048addec 16326 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16327
048addec 163282001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16329
048addec
JD
16330 * lisp.h (CHECK_STRING_CAR): New macro.
16331 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16332 treating XCAR and XCDR as lvalues.
16333 (openp): Use CHECK_STRING_CAR.
16334 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16335
048addec 163362001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16337
048addec
JD
16338 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16339 (SIGMASKTYPE): Define.
1b1acc13 16340
048addec 16341 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16342
048addec 163432001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16344
048addec
JD
16345 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16346 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16347 Fix typos in comments.
6cb16f95 16348
048addec
JD
16349 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16350 and #ifdef'd-out code.
16351 Fix and reindent comments.
6cb16f95 16352
048addec 16353 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16354
048addec
JD
16355 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16356 argument `i' in macros.
6cb16f95 16357
048addec
JD
16358 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16359 `i' in macros.
7e9d3c2f 16360
048addec
JD
16361 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16362 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16363 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16364 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16365 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16366 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16367 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16368 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16369 in macros.
7e9d3c2f 16370
048addec
JD
16371 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16372 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16373 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16374 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16375 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16376 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16377 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16378 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16379 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16380 (remove unused second argument).
7e9d3c2f 16381
048addec 163822001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16383
048addec
JD
16384 * syntax.c (describe_syntax): New wrapper.
16385 (Finternal_describe_syntax_value): Rename from describe_syntax.
16386 Don't insert space at front and \n at the end.
16387 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16388
048addec
JD
16389 * regex.c (re_wctype): Try to fix some warnings.
16390 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16391
048addec 163922001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16393
048addec 16394 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16395
048addec 163962001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16397
048addec 16398 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16399
048addec 16400 * data.c (Fsetq_default): Ditto.
c22e59e1 16401
048addec 16402 * callint.c (Finteractive): Ditto.
9271ed2c 16403
048addec 164042001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16405
048addec
JD
16406 * macros.c: Don't include keymap.h any more.
16407
164082001-11-01 Richard M. Stallman <rms@gnu.org>
16409
16410 * data.c (Fmake_local_variable): Doc fix.
16411
16412 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16413 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16414
048addec 16415 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16416 bindings along with or instead of the buffer local map.
16417 Make the overriding maps override what they should.
16418
f00691a3 164192001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16420
16421 * window.c (grow_mini_window): Fix typo in comment.
16422
27188d11
GM
164232001-11-01 Gerd Moellmann <gerd@gnu.org>
16424
7b49b9d2
GM
16425 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16426 (XTset_vertical_scroll_bar): Likewise.
16427
43f7c3ea
GM
16428 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16429 instead of IMAGE_BACKGROUND.
c22e59e1 16430
b350c2e5
GM
16431 * xfns.c (four_corners_best): Reindent.
16432
c22e59e1 16433 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16434 Handle :box so that it is possible to specify sexprs.
16435
bf00d461
EZ
164362001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16437
16438 * s/hpux11.h: New file.
16439
f00691a3 164402001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16441
2b209b97
PJ
16442 * emacs.c (USAGE1): Show command line option --no-window-system
16443 instead of --no-windows in usage.
16444 (standard_args): Rename --no-windows to --no-window-system.
16445 (bug_reporting_address): Follow Emacs coding conventions.
16446
9dbc9081
PJ
16447 * eval.c (Fcommandp): Doc fix.
16448 Change doc-string comments to `new style' [w/`doc:' keyword].
16449
4e10df59
PJ
16450 * frame.c (Fframe_live_p): Doc fix.
16451
16452 * buffer.c (selective-display-ellipses): Doc fix.
16453
dd387b25
GM
164542001-10-31 Gerd Moellmann <gerd@gnu.org>
16455
fe957e65
GM
16456 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16457
dd387b25
GM
16458 * xfaces.c (realize_x_face): If C is not a single-byte character,
16459 set the face's colors_copied_bitwise_p instead of the defaulted_p
16460 members which have a different meaning.
16461 (free_face_colors): Do nothing for a face whose colors have been
16462 copied bitwise.
16463
c22e59e1 16464 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16465
f00691a3 164662001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16467
687784e8
PJ
16468 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16469 [w/`doc:' keyword].
2e1280f8 16470
b9d9a9b9
GM
164712001-10-31 Gerd Moellmann <gerd@gnu.org>
16472
16473 * fns.c (require_unwind): Return Lisp_Object.
16474
f00691a3 164752001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16476
fa1361cb
PJ
16477 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16478 (last-input-char): Revert doc-string to be the same as the
16479 doc-string of `last-input-event'.
16480
6c465a15 16481 * xdisp.c: Fix typos in comments.
48400103 16482
eafa3196
GM
164832001-10-31 Gerd Moellmann <gerd@gnu.org>
16484
16485 * window.c (grow_mini_window): Handle case that the root
16486 window is already smaller than the nominal mininum height.
16487
747d3f2a
SM
164882001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16489
bf9bb76f
SM
16490 * emacs.c (main): Don't call keys_of_macros any more.
16491
16492 * lisp.h (keys_of_macros): Remove.
16493
16494 * macros.c (keys_of_macros): Remove.
16495
747d3f2a
SM
16496 * xfaces.c (Fface_attribute_relative_p): Declare args.
16497
5e905a57
JR
164982001-10-30 Jason Rumney <jasonr@gnu.org>
16499
16500 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16501 (enum_font_cb2): Ignore fonts with vertical orientation.
16502
3a426197
RS
165032001-10-30 Richard M. Stallman <rms@gnu.org>
16504
16505 * keyboard.c (Finput_pending_p): Doc fix.
16506
a742d646
GM
165072001-10-30 Gerd Moellmann <gerd@gnu.org>
16508
259cf6bc
GM
16509 * xterm.c (x_after_update_window_line): Don't run the code
16510 clearing in borders for rows whose visible height is 0.
16511
3f99f948
GM
16512 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16513 resized_p flag is set. If not set, use the much less flickering
16514 method previously used.
16515
16516 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16517
16518 * frame.h (struct frame) <resized_p>: New member.
16519
b4a3be43
GM
16520 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16521 as large as the number of bytes to convert.
747d3f2a 16522
a742d646
GM
16523 * lread.c (to_multibyte): New function.
16524 (read1): Use it.
16525
cacbb9e9
EZ
165262001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16527
16528 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16529
99cb6b2f
GM
165302001-10-30 Gerd Moellmann <gerd@gnu.org>
16531
327f42ee 16532 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16533 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16534 if the row's fill_line_p is set and drawing the last glyph with
16535 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16536
99cb6b2f
GM
16537 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16538
8e8223e2
SM
165392001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16540
16541 * xmenu.c: Include coding.h and charset.h.
16542 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16543 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16544 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16545 Explicitly set wv->help. Use `TRUE' rather than `True'.
16546 (menu_help_callback): Use empty_string.
16547
16548 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16549 (Fx_popup_dialog): Explicitly init f.
16550 (w32_menu_display_help): Use empty_string.
16551
4d083a8f
RS
165522001-10-29 Richard M. Stallman <rms@gnu.org>
16553
b2304472
RS
16554 * fns.c (Frequire): Detect recursive try to require the same
16555 feature 3 or more levels deep, and get error.
16556 (require_unwind): New subroutine.
16557 (require_nesting_list): New variable.
16558 (syms_of_fns): Init and staticpro it.
16559
4d083a8f
RS
16560 * print.c (print_object): Clarify indication of insertion type.
16561
2fe41216
EZ
165622001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16563
90480000
EZ
16564 * coding.c (syms_of_coding): Document that locale-coding-system is
16565 used for decoding input on X.
16566
2fe41216
EZ
16567 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16568
f00691a3 165692001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16570
16571 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16572 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16573
60ebcfe8
GM
165742001-10-29 Gerd Moellmann <gerd@gnu.org>
16575
9a7bdceb
GM
16576 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16577 use NO_CURSOR if cursor_in_non_selected_windows is false.
16578
3f08fcd2
GM
16579 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16580 the slant attribute if FRAME is t.
16581
0ccfdad2
GM
16582 * xfns.c (x_set_internal_border_width): Set frame garbaged
16583 when X window doesn't exist yet.
16584
ef253080
GM
16585 * xterm.c (x_after_update_window_line): Clear internal border
16586 in different circumstances.
b116830b 16587
60ebcfe8
GM
16588 * xterm.c (XTread_socket) <KeyPress>: Don't use
16589 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16590 <handa@etl.go.jp>.
16591
73d25f9c
EZ
165922001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16593
16594 * m/ibms390.h: New file. From Adam Thornton
16595 <athornton@sinenomine.net>.
16596
cac1daf0
GM
165972001-10-28 Gerd Moellmann <gerd@gnu.org>
16598
053b3256 16599 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16600
cac1daf0
GM
16601 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16602 a loop counter.
16603
f00691a3 166042001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16605
f9711de4 16606 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16607
4707d2d0
PJ
16608 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16609 keyword].
16610 Fix typos in comments.
b116830b 16611
d883731c
PJ
16612 * emacs.c (bug_reporting_address): New function.
16613 Use it when displaying usage message.
16614
04012254
PJ
16615 * minibuf.c (read_minibuf): Remove unused external declaration of
16616 variable `Qread_only'.
16617
13b1a09c
PJ
16618 * keymap.c (access_keymap): Remove unused variable `charset'.
16619
5bbf4378
MB
166202001-10-28 Miles Bader <miles@gnu.org>
16621
16622 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16623 Remove #ifdef'd-out code.
16624 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16625 (syms_of_xfaces): Initialize them.
16626
1ce1e4ee
JR
166272001-10-27 Jason Rumney <jasonr@gnu.org>
16628
16629 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16630 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16631 position using the system caret.
16632
16633 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16634 (w32_system_caret_height, w32_system_caret_x)
16635 (w32_system_caret_y): New variables for tracking system caret.
16636 (w32_initialize): Initialize them.
c2d53558 16637 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16638
c2d53558
SM
16639 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16640 New messages types.
1ce1e4ee
JR
16641
16642 * w32term.c (note_mouse_highlight): Clear old help_echo.
16643
f00691a3 166442001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16645
bb4600a4
PJ
16646 * xterm.c: Fix typo in a comment.
16647
7db35a48
PJ
16648 * emacs.c: Fix typos in comments.
16649 Remove unnecessary spaces.
16650 Change doc-string comments to `new style' [w/`doc:' keyword].
16651 (USAGE2): Fix typos in usage string.
16652
a7248e4f
PJ
16653 * xterm.c: Fix typo in a comment.
16654
4e30ce42
PJ
16655 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16656 emacs.c.
16657
62725a92
GM
166582001-10-27 Gerd Moellmann <gerd@gnu.org>
16659
798dbe1f 16660 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16661 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16662 farther backward when target_y was not reached.
16663
62725a92
GM
16664 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16665 Display errno only if non-zero.
16666 (sound_warning): New function.
16667 (vox_configure): Don't treat failing to set sample rate as error.
16668 (various places): Improve error messages.
16669
d4e34d24
EZ
166702001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16671
944e6f60
EZ
16672 * fileio.c (Faccess_file): Run the argument filename through
16673 Fexpand_file_name, before using it.
16674
d4e34d24
EZ
16675 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16676 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16677
38d2af0c
GM
166782001-10-26 Gerd Moellmann <gerd@gnu.org>
16679
da80a8d5
GM
16680 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16681
38d2af0c
GM
16682 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16683 Fix clearing in the case of scroll bars on the right.
c2d53558 16684
45de4a6f 166852001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16686
16687 * w32gui.h (XImage): Add a dummy typedef.
16688
fbd5ceb2
GM
166892001-10-26 Gerd Moellmann <gerd@gnu.org>
16690
c2d53558 16691 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16692
b23236fb
EZ
166932001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16694
16695 * frame.c (Fframe_parameter): Fix last change.
16696
5d991fc4
EZ
16697 * fileio.c: Revert last change (which removed old commented-out
16698 version of expand-file-name). Add a comment that explains why
16699 this old version should not be removed.
16700
879eadc3
GM
167012001-10-25 Gerd Moellmann <gerd@gnu.org>
16702
75700ff2
GM
16703 * frame.c (Fframe_parameter): Fix a bug whereby some
16704 ``artificial'' frame parameters, like `minibuffer' were not
16705 obtained by calling Fframe_parameters.
16706
dfe92a6a
GM
16707 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16708 cursor differently.
16709
879eadc3
GM
16710 * xdisp.c (move_it_vertically_backward): Compute line height
16711 differently. Add heuristic to try to be more compatible to 20.x.
16712
e1010ebe
SM
167132001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16714
d73a471b
SM
16715 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16716
d6da5a06
GM
16717 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16718 boolean.
e1010ebe 16719
f66bd220
MB
167202001-10-25 Miles Bader <miles@gnu.org>
16721
16722 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16723 BG is a pointer to a structure, not a structure.
16724 (gif_format, png_format): Add missing commas.
16725
d436d538
RS
167262001-10-24 Richard M. Stallman <rms@gnu.org>
16727
16728 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16729 (syms_of_xfaces): Defsubr it.
d436d538 16730
f00691a3 167312001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16732
16733 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16734 variable `area'.
16735
f00691a3 167362001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16737
c2d53558 16738 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16739
e2a57b34
MB
167402001-10-25 Miles Bader <miles@gnu.org>
16741
16742 * dispextern.h (struct image): Add `background',
16743 `background_valid', and `background_transparent' fields.
16744 (image_background, image_background_transparent): New declarations.
16745 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16746 * xfns.c (image_background, image_background_transparent)
16747 (four_corners_best): New functions.
c2d53558 16748 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16749 (gs_format): Add `:background' entry.
16750 (lookup_image): Set IMG's background color if specified.
16751 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16752 when appropriate.
16753 (x_clear_image_1): Reset `background_valid' and
16754 `background_transparent_valid' fields.
16755 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16756 calculating it here. Set IMG's background_transparent field.
16757 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16758 (enum png_keyword_index): Add PNG_BACKGROUND.
16759 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16760 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16761 (enum gif_keyword_index): Add GIF_BACKGROUND.
16762 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16763 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16764 Pre-calculate image background color where necessary.
16765 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16766 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16767 color to use for image glyph reliefs.
16768
b547b6e8
GM
167692001-10-24 Gerd Moellmann <gerd@gnu.org>
16770
d9e3b8c6
GM
16771 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16772 in full-width rows.
c2d53558 16773
b547b6e8
GM
16774 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16775 Fix clearing of area not covered by scroll bar.
16776
f00691a3 167772001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16778
16779 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16780 and `real_start'.
c2d53558 16781 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16782 (glyph_rect): Remove unused variable `area'.
16783
76cb5e06
GM
167842001-10-24 Gerd Moellmann <gerd@gnu.org>
16785
bdbdebff 16786 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16787
16788 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16789 (row_containing_pos): Take additional argument DY.
16790 Treat rows ending in middle of char differently.
62e33982
GM
16791 (display_line): Handle tabs on window systems differently.
16792
16793 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16794 with additional argument.
16795
16796 * dispextern.h (row_containing_pos): Adjust prototype.
16797
76cb5e06
GM
16798 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16799 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16800 (try_window_id, try_window_reusing_current_matrix)
16801 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16802 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16803
f00691a3 168042001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16805
c9e60620
PJ
16806 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16807 gnuemacs).
16808 (HAVE_BOXES): Fix typo in comment.
16809 (push_menu_pane): Fix typo in comment.
16810
3b552d56
PJ
16811 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16812 of `Qwhen'.
16813 (single_display_prop_string_p): Remove unused local declarations
16814 of `Qwhen' and `Qmargin'.
16815 (string_buffer_position): Remove unused variable `around'.
16816 (store_frame_title): Remove unused variable `width'.
16817
15c565ac
PJ
16818 * window.c: Don't define max.
16819 (coordinates_in_window): Remove unused variable `uy'.
16820
a8818eb9
PJ
16821 * widget.c: Don't define max.
16822
996fee11
PJ
16823 * process.c: Don't define max.
16824 (create_process): Remove unused variable `buffer'.
16825
496e1a5b
GM
168262001-10-23 Gerd Moellmann <gerd@gnu.org>
16827
c2d53558 16828 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16829
5905ae8b
EZ
168302001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16831
16832 * xfaces.c (Finternal_set_lisp_face_attribute)
16833 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16834 frame is on a windowed display.
16835
24db49fb
GM
168362001-10-23 Gerd Moellmann <gerd@gnu.org>
16837
c2d53558
SM
16838 * dispnew.c (sync_window_with_frame_matrix_rows):
16839 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16840 of marginal areas.
16841
c2d53558 16842 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16843
f0487f05
EZ
168442001-10-23 Andreas Schwab <schwab@suse.de>
16845
16846 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16847 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16848
f0a48a01
GM
168492001-10-23 Gerd Moellmann <gerd@gnu.org>
16850
c2d53558 16851 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16852 REAL_END. Notice if cursor gets overwritten.
16853 (notice_overwritten_cursor): Take X positions as parameters.
16854 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16855 around call to x_draw_glyphs.
16856
f00691a3 168572001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16858
fc11dff0
PJ
16859 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16860 instead of C) and usage.
a50a10a0 16861
fc11dff0
PJ
16862 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16863 of C) and usage.
a50a10a0
PJ
16864
16865 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16866 `left', `max_width' and `max_height'.
16867
8738febd
GM
168682001-10-23 Gerd Moellmann <gerd@gnu.org>
16869
16870 * xdisp.c (display_line): For a tab continued to the next line,
16871 set row's ends_in_middle_of_char_p.
16872
653c329b
GM
168732001-10-22 Gerd Moellmann <gerd@gnu.org>
16874
16875 * xdisp.c (display_line): Fix computation of continuation lines
16876 width for TABs.
16877
f00691a3 168782001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16879
7ba51063
PJ
16880 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16881 `Qlaplace'.
16882
f958c5ac
PJ
16883 * fileio.c: Remove unused code.
16884
eb360291
MB
168852001-10-22 Miles Bader <miles@gnu.org>
16886
16887 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16888 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16889 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16890
98515cf0
JR
168912001-10-21 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16894
93026d88
EZ
168952001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16896
16897 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16898 (Finsert_string): Avoid the multi-line string literals warning.
16899
c9a95b79
MB
169002001-10-22 Miles Bader <miles@gnu.org>
16901
16902 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16903 (Fdocumentation): Don't use it.
16904 (syms_of_doc): Don't initialize it.
16905
16906 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16907 * print.c (Fwith_output_to_temp_buffer): Likewise.
16908 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16909 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16910 (Fsave_restriction): Likewise.
c2d53558
SM
16911 * eval.c (Frun_hooks, Frun_hook_with_args)
16912 (Frun_hook_with_args_until_failure)
16913 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16914 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16915 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16916 (Funwind_protect, Fcondition_case): Likewise.
16917 * coding.c (Ffind_operation_coding_system): Likewise.
16918 * keyboard.c (Ftrack_mouse): Likewise.
16919
a3b10252
MB
169202001-10-21 Miles Bader <miles@gnu.org>
16921
c2d53558 16922 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16923 (Fmake_hash_table): Add usage: string to doc string.
16924 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16925 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16926 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16927 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16928 (Fml_prefix_argument_loop): Likewise.
16929
f00691a3 169302001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16931
c2d53558 16932 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16933
c6f73eec
PJ
16934 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16935 style' [w/`doc:' keyword].
16936
16937 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16938 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16939 comments to `new style' [w/`doc:' keyword].
16940
3cf3436e
JR
169412001-10-21 Jason Rumney <jasonr@gnu.org>
16942
16943 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16944
c169b8f1
JR
16945 * w32term.c (remember_mouse_glyph): New function.
16946 (w32_mouse_position): Use it.
16947 (note_mouse_movement): If the mouse moved off the glyph, remember
16948 its new position.
c2d53558 16949
4fdd691b
JR
16950 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16951 (w32_display_info): Add mouse_face_overlay.
16952
c169b8f1
JR
16953 * w32term.c (notice_overwritten_cursor): Renamed from
16954 note_overwritten_text_cursor. Rewritten to take glyph widths into
16955 account.
16956 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16957 (fast_find_string_pos): New function.
16958 (fast_find_position): Return the correct vpos. Add parameter
16959 STOP. In the final row, stop before glyphs having STOP as object.
16960 Don't consider glyphs that are not from a buffer.
16961 (fast_find_position) [0]: Add a presumably more correct version
16962 for after 21.1.
16963 (expose_window_tree, expose_frame): Don't compute intersections here.
16964 (expose_window): Do it here instead.
16965 (expose_window_tree, expose_window, expose_line): Return 1 when
16966 overwriting mouse-face.
16967 (expose_window): If W is the window currently being updated, mark
16968 the frame garbaged.
16969 (expose_frame): If mouse-face was overwritten, redo it.
16970 (x_use_underline_position_properties): New variable.
16971 (syms_of_xterm): DEFVAR_BOOL it.
16972 (x_draw_glyph_string): Add comment to use it in future.
16973 (x_draw_glyph_string): Restore clipping after drawing box.
16974 Fix a computation of the underline position.
16975 (w32_get_glyph_string_clip_rect): Minor cleanup.
16976 (x_fill_stretch_glyph_string): Remove an assertion.
16977 (x_produce_glyphs): Don't convert multibyte characters
16978 to unibyte characters in unibyte buffers.
16979 (cursor_in_mouse_face_p): New function.
16980 (x_draw_stretch_glyph_string): Use it to choose a different GC
16981 when drawing a cursor within highlighted text. Don't draw
16982 background again if it has already been drawn.
16983 (x_draw_glyph_string_box): Don't draw a full-width
16984 box just because the glyph row's full_width_p flag is set.
16985 (x_draw_glyphs): Fix computation of rightmost x for
16986 full-width rows.
16987 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16988 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16989 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16990 (x_update_window_end): Handle overwritten mouse face
16991 also for tool bar windows.
16992 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16993 DRAW is DRAW_IMAGE_RAISED.
16994 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16995 actually redrawn. Make the function static.
16996 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16997 optimize away highlighting if we pass over that same overlay again.
16998 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16999 to detect a case where we have to highlight a different region
17000 despite not having left the currently highlighted region.
17001 Set mouse_face_overlay in the x_display_info. Avoid changing the
17002 mouse pointer shape when show_mouse_face has already done it, or
17003 there is no need. Handle mouse-face and help-echo in strings.
17004 (glyph_rect): New function.
17005 (w32_mouse_position): Use it to raise the threshold for mouse
17006 movement event generation.
17007 (w32_initialize_display_info): Initialize the x_display_info's
17008 mouse_face_overlay.
17009 (w32_set_vertical_scroll_bar): Don't clear a zero height
17010 or width area.
17011 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17012 a widget to zero height.
17013
3cf3436e 17014 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17015 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17016 equivalents in menu_items.
17017 (w32_menu_show): Don't overwrite an item's name with its key
17018 description in case the description is a multibyte string.
17019 (single_submenu): Some cleanup.
17020
17021 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17022 (postprocess_image): New function.
17023 (lookup_image): Call it for all image types except PostScript.
17024 (x_kill_gs_process): Call postprocess_image.
17025 (tiff_error_handler, tiff_warning_handler): New functions.
17026 (tiff_load): Install them as handlers.
17027 (x_kill_gs_process): Recognize if someone has cleared the image
17028 cache under us.
17029 (valid_image_p): Protect better against invalid image
17030 specifications. Previous code could signal an error.
17031 (Fx_hide_tip, Fshow_tip): Doc fix.
17032 (Fv_max_tooltip_size): New variable.
17033 (syns_of_xfns): DEFVAR_LISP it.
17034 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17035 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17036 window_width. Use a maximum tooltip size specified by
17037 Vx_max_tooltip_size, if that has valid contents.
17038 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17039 Make sure the tooltip is completely visible.
17040 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17041 (Fx_create_frame): Adjust the frame's height for presence
17042 of the tool bar before calling x_figure_window_size.
17043 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17044 when the window gets smaller.
17045 (x_set_foreground_color): Set frame's cursor_pixel.
17046 (x_set_foreground_color, x_set_background_color): Cleaned up.
17047 (x_set_font): Handle case of x_new_fontset returning the same name
17048 as before, although there was a change in fontsets.
17049
386ca361
MB
170502001-10-21 Miles Bader <miles@gnu.org>
17051
c2d53558 17052 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17053 (Flogxor): Add usage: string to doc string.
17054 * charset.c (Fstring): Likewise.
17055 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17056 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17057
f00691a3 170582001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17059
03be2694
PJ
17060 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17061
17062 * alloc.c: Reindent DEFUNs with doc: keywords.
17063
17064 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17065
14ff1ee0
PJ
17066 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17067 keyword].
17068
2f147815 17069See ChangeLog.9 for earlier changes.
6922b018
KH
17070
17071;; Local Variables:
49b3bd82 17072;; coding: iso-2022-7bit
6922b018 17073;; End:
2a34a036 17074
2f147815 17075 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17076 Copying and distribution of this file, with or without modification,
17077 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17078
17079;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4