(setup_for_ellipsis, get_next_display_element):
[bpt/emacs.git] / src / ChangeLog
CommitLineData
42d02da0
JD
12004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4
1db7dd46
RS
52004-12-31 Richard M. Stallman <rms@gnu.org>
6
7 * window.c (window_scroll_pixel_based): Only look at
8 Vscroll_preserve_screen_position if the old PT can't be kept.
9 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10
1225f637
KS
112004-12-30 Kim F. Storm <storm@cua.dk>
12
13 * xdisp.c (get_line_height_property): New function extracted from
14 original calc_line_height_property.
15 (calc_line_height_property): Rework. Handle t and (nil . ratio).
16 (x_produce_glyphs): Use them to handle line-height and
17 line-spacing according to new height spec.
18 (Qtotal): Remove.
33b2f4ea 19 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 20
c243063e
KH
212004-12-30 Kenichi Handa <handa@m17n.org>
22
23 * fileio.c (Finsert_file_contents): Don't use
24 current_buffer->buffer_file_coding_system even if REPLACE is
25 non-nil. Call Qafter_insert_file_set_coding with the second arg
26 VISIT.
27
28 * fontset.h (struct font_info): New members space_width and
29 average_width.
30
31 * frame.h (struct frame): New member space_width.
32 (FRAME_SPACE_WIDTH): New macro.
33
34 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
35
36 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
37 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
38 fontp-?space_width..
39 (x_load_font): Calculate fontp->space_width and
40 fontp->average_width.
41 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
42
43 * xdisp.c (x_produce_glyphs): Calculate tab width by
44 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
45
456e761b
ST
462004-12-29 Sanghyuk Suh <han9kin@mac.com>
47
48 * macterm.c (SelectionRange): Add Xcode position apple event struct.
49 (do_ae_open_documents): Handle Xcode-style file position open
50 events.
51
188577ce
LT
522004-12-29 Luc Teirlinck <teirllm@auburn.edu>
53
54 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
55
99ec74b9
RS
562004-12-29 Richard M. Stallman <rms@gnu.org>
57
58 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
59
30c92fab
ST
602004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
61
62 * macfns.c (install_window_handler): Modify extern to return OSErr
63 value.
64 (mac_window): Handle return value of install_window_handler.
65
66 * macterm.c (reflect_byte): Remove function.
67 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
68 Lookup table instead.
69 (mac_do_font_lists): Simplify calculation of the longest
70 nonspecial string.
71 (init_mac_drag_n_drop): Remove function and declaration.
72 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
73 init_mac_drag_n_drop.
74 (mac_do_track_drag): New function and declaration.
75 (install_window_handler): Return OSErr value.
76 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
77 handlers for tracking/receiving drag-and-drop items.
78 (do_ae_open_documents): Generate unibyte strings for filenames.
79 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
80 only non-filename items. Set event modifiers. Set return value.
81
4b982924
DN
822004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
83
84 * coding.c (decode_coding): Fix previous change.
85
93fdf45f
RS
862004-12-28 Richard M. Stallman <rms@gnu.org>
87
88 * xdisp.c (back_to_previous_visible_line_start):
89 Don't call handle_display_prop.
90
5bdca8af
DN
912004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
92
93 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
94 (decode_coding_emacs_mule, encode_coding_emacs_mule)
95 (decode_coding_iso2022, encode_designation_at_bol)
96 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
97 (decode_coding): Constify arguments and local vars.
98
33385c6f
JD
992004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
100
101 * xmenu.c (popup_get_selection): Only pop down dialogs
102 on C-g and Escape.
95bdef2e 103 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 104 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 105 parameter down_on_keypress to popup_get_selection.
33385c6f 106
b15325b2
ST
1072004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
108
109 * dispextern.h: Change HAVE_CARBON to MAC_OS.
110 (struct glyph_string): Likewise.
a2c7e69a 111
b15325b2
ST
112 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
113 mac_initialize.
a2c7e69a 114
b15325b2
ST
115 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
116 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 117
b15325b2 118 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 119
b15325b2
ST
120 * frame.c (x_set_frame_parameters, x_report_frame_params)
121 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
122 (x_set_border_width, Vdefault_frame_scroll_bars): Change
123 HAVE_CARBON to MAC_OS.
a2c7e69a 124
b15325b2
ST
125 * image.c [MAC_OS]: Include sys/stat.h.
126 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
127 QuickTimeComponents.h.
a2c7e69a 128
b15325b2
ST
129 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
130 [!MAC_OSX] (select): Use mac_wait_next_event.
131 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
132 Vexec_suffixes.
133 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
134 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
135 (mac_clear_font_name_table): Add extern.
136 (Fmac_clear_font_name_table): New defun.
137 (syms_of_mac): Defsubr it.
138 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
139 [MAC_OSX] (select_and_poll_event): New function.
140 [MAC_OSX] (sys_select): Use it.
141 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
142 [MAC_OSX && SELECT_USE_CFSOCKET]
143 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
144 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
145 RunLoop for simultaneously monitoring two kinds of inputs, window
146 events and process outputs, without periodically polling.
a2c7e69a 147
b15325b2
ST
148 * macfns.c (mac_initialized): Remove extern.
149 (stricmp): Put in #if 0. All callers changed to use xstricmp in
150 xfaces.c.
151 (strnicmp): Decrement `n' at the end of each loop, not the
152 beginning.
153 (check_mac): Use the term "Mac native windows" instead of "Mac
154 OS".
155 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
156 (mac_get_rdb_resource): New function (from w32reg.c).
157 (x_get_string_resource): Use it.
158 (install_window_handler): Add extern.
159 (mac_window): New function.
160 (Fx_create_frame): Use it instead of make_mac_frame. Set
161 parameter for Qfullscreen. Call x_wm_set_size_hint.
162 (Fx_open_connection, Fx_close_connection): New defuns.
163 (syms_of_macfns): Defsubr them.
164 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
165 kWindowNoUpdatesAttribute to the window attribute.
166 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
167 (x_create_tip_frame): Don't call ShowWindow.
168 (Fx_show_tip): Call ShowWindow.
169 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
170 TARGET_API_MAC_CARBON'.
171 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
172 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 173
b15325b2
ST
174 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
175 Windows.h.
176 (Window): Typedef to WindowPtr and move outside `#if
177 TARGET_API_MAC_CARBON'.
178 (XSizeHints): New struct.
a2c7e69a 179
b15325b2
ST
180 * macterm.c (x_update_begin, x_update_end)
181 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
182 frame.
183 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
184 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
185 (construct_mouse_click): Put in #if 0.
186 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
187 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
188 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
189 (activate_scroll_bars, deactivate_scroll_bars)
190 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
191 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
192 if the position is neither user-specified nor program-specified.
193 (x_free_frame_resources): Free size_hints.
194 (x_wm_set_size_hint): Allocate size_hints if needed. Set
195 size_hints.
196 (mac_clear_font_name_table): New function.
197 (mac_do_list_fonts): Initialize font_name_table if needed.
198 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
199 around mac_do_list_fonts.
200 (mac_unload_font): New function.
201 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
202 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
203 and definitions with #if TARGET_API_MAC_CARBON.
204 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
205 (install_window_handler): Add decl.
206 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
207 window. Use UpdateControls. Get the rectangle that should be
208 updated and restrict the target of expose_frame to it.
209 (do_grow_window): Set minimum height/width according to
210 size_hints.
211 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
212 (do_zoom_window): Don't use x_set_window_size.
213 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
214 (install_window_handler): New function.
215 [!USE_CARBON_EVENTS] (mouse_region): New variable.
216 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
217 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
218 GetEventDispatcherTarget inside BLOCK_INPUT.
219 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
220 Update mouse_region when mouse is moved.
221 (make_mac_frame): Remove.
222 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
223 mouse pointer shapes. Change values of f->left_pos and
224 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
225 call ShowWindow.
226 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
227 Vinvocation_name and Vsystem_name.
228 (mac_make_rdb): New function (from w32term.c).
229 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
230 already been opened. Don't pass argument to
231 mac_initialize_display_info. Don't set dpyinfo->height/width.
232 Add entries to x_display_list and x_display_name_list.
233 (x_delete_display): New function.
234 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
235 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
236
b15325b2
ST
237 * macterm.h (check_mac): Add extern.
238 (struct mac_output): New member size_hints.
239 (FRAME_SIZE_HINTS): New macro.
240 (mac_unload_font): Add extern.
a2c7e69a 241
b15325b2 242 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 243
b15325b2
ST
244 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
245
92d2947b
RS
2462004-12-27 Richard M. Stallman <rms@gnu.org>
247
ebbd14f1
RS
248 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
249 (syms_of_buffer): Don't defsubr it.
250
251 * process.c (list_processes_1): Set undo_list instead
252 of calling Fbuffer_disable_undo.
253
92d2947b
RS
254 * xdisp.c (single_display_spec_string_p): Renamed from
255 single_display_prop_string_p.
256 (single_display_spec_intangible_p): Renamed from
257 single_display_prop_intangible_p.
258 (handle_single_display_spec): Renamed from handle_single_display_prop.
259 Rewritten to be easier to understand.
260
a2c7e69a 261 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
262 and variables get just NAME.
263
264 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
265
266 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
267 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
268 (Qdefvar): Var deleted.
269 (syms_of_eval): Don't initialze it.
270
271 * lread.c (syms_of_lread) <load-history>: Doc fix.
272
9f6fcdc5
JD
2732004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
274
275 * xmenu.c (popup_get_selection): Pop down on C-g.
276 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
277 pops down menu on C-g.
278 (xdialog_show): If dialog popped down and no button in the dialog was
279 pushed, call Fsignal to quit.
280 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
281 Fsignal to quit.
282
283 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
284
285 * gtkutil.c (xg_initialize): Install bindings for C-g so that
286 dialogs and menus pop down.
287
857ae68b
JD
2882004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
289
133c0116
JD
290 * gtkutil.c (update_frame_tool_bar): Make the value of
291 tool-bar-button-margin control margins of images in tool bar.
292
857ae68b
JD
293 * alloc.c (check_depth): New variable.
294 (overrun_check_malloc, overrun_check_realloc): Only add
295 overhead and write check pattern if check_depth is 1 (to handle
296 recursive calls). Increase/decrease check_depth in entry/exit.
297 (overrun_check_free): Only check for overhead if check_depth is 1.
298 Increase/decrease check_depth in entry/exit.
299
bd55c35c
JD
3002004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
301
302 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
303 before touching input_available_clear_time, to avoid accessing it
304 from multiple threads.
305
66354420
JR
3062004-12-23 Jason Rumney <jasonr@gnu.org>
307
308 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
309 of JPEG library.
310
55f4edbc
RS
3112004-12-22 Richard M. Stallman <rms@gnu.org>
312
313 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
314
315 * lisp.h (Vundo_outer_limit): Fix decl.
316
317 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
318 Uses changed.
319 (syms_of_undo): Initialize appropriately.
320 (truncate_undo_list): If it's nil, there's no limit.
321
7a0ea9e3
KH
3222004-12-22 Kenichi Handa <handa@m17n.org>
323
324 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
325
fda2922a
RS
3262004-12-21 Richard M. Stallman <rms@gnu.org>
327
328 * eval.c (unwind_to_catch): Clear immediate_quit.
329
330 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
331 specially as `\ ' and `\-'.
332
333 * keyboard.c (kbd_buffer_store_event_hold):
334 In the code for while-no-input, handle immediate_quit.
335
336 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
337 Call that at the very start.
338 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
339 (syms_of_alloc): Don't define undo-limit,
340 undo-strong-limit and undo-outer-limit here.
341
342 * undo.c (truncate_undo_list): Return void.
343 Take just one argument, the buffer.
344 Make it current, and inhibit recursive GC.
345 Access and update the undo list directly; return void.
346 Refer to the undo...limit variables directly.
347 Test undo_outer_limit only after counting the whole current command.
348 When it's exceeded, call the function in undo-outer-limit-function.
349 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
350 (Vundo_outer_limit_function): New variable.
351 (syms_of_undo): Define undo-limit, undo-strong-limit
352 and undo-outer-limit here, and undo-outer-limit-function.
353 Doc fixes.
354
355 * lisp.h (truncate_undo_list): Update decl.
356
3572004-12-21 Piet van Oostrum <piet@cs.uu.nl>
358
359 * fileio.c (Fread_file_name): Delete duplicates in
360 file-name-history when history_delete_duplicates is true.
361
68c69027
ST
3622004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
363
364 * macterm.c (mac_do_list_fonts): Fix memory leak
365
134579f2
RS
3662004-12-20 Richard M. Stallman <rms@gnu.org>
367
368 * regex.c (re_match_2_internal) <symend, wordend>:
369 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
370
fbe6152f
ST
3712004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
372
373 * macterm.c (endif, x_font_name_to_mac_font_name): Use
374 maccentraleurroman instead of maccentraleuropean
375 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
376 quickly finding a specific font without needing regexps.
377
fecad3f6
JD
3782004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
379
333f1b6f
JD
380 * syssignal.h: Declare main_thread.
381 (SIGNAL_THREAD_CHECK): New macro.
382
383 * keyboard.c (input_available_signal): Move thread checking code
384 to macro SIGNAL_THREAD_CHECK and call that macro.
385 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
386
387 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
388
389 * emacs.c: Define main_thread.
390 (main): Initialize main_thread.
391 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
392 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
393
394 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
395
396 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
397
398 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
399
a2c7e69a 400 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
401 SIGNAL_THREAD_CHECK.
402
403 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
404
405 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
406
fecad3f6
JD
407 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
408 returning when xg_ignore_gtk_scrollbar is true.
409
2a84c6da
KS
4102004-12-14 Kim F. Storm <storm@cua.dk>
411
412 * keyboard.c (read_char): Save and restore echo_string when
413 handling input method.
414
d9c1ce9d
RS
4152004-12-13 Richard M. Stallman <rms@gnu.org>
416
417 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
418
419 * keyboard.c (Vthrow_on_input): New variable.
420 (syms_of_keyboard): Defvar and initialize it.
421 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
422
423 * lisp.h (QUIT): Check for Vthrow_on_input.
424 (Vthrow_on_input): Declare it.
425
a6495ed5
KS
4262004-12-13 Kim F. Storm <storm@cua.dk>
427
428 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
429 vector.
430
24a0e22f
RS
4312004-12-12 Richard M. Stallman <rms@gnu.org>
432
433 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
434
435 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
436 (Ftry_completion): Really use outer `zero'; eliminate inner one.
437
d6d31e57
KH
4382004-12-12 Kenichi Handa <handa@m17n.org>
439
440 * term.c (encode_terminal_code): Fix previous change.
441
6f8ffb88
SM
4422004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
443
fb6f5cbf
SM
444 * keyboard.c (handle_async_input): Remove pthread mutex handling.
445 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
446
6f8ffb88
SM
447 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
448 in macro arguments.
449
450 * minibuf.c (Ftry_completion, Fall_completions): Don't use
451 XFASTINT blindly.
452
453 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
454
c83c9f9d
JD
4552004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
456
2f25767f
JD
457 * w32term.c (x_calc_absolute_position): Remove calculation of
458 difference between inner and outer window. Don't subtract difference
459 for left and top calculations.
460
c83c9f9d
JD
461 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
462 for left and top calculations. Remove call to x_real_positions.
24a0e22f 463 [Bug report by Drew Adams in November]
c83c9f9d
JD
464 (x_check_expected_move): Do not set change_gravity to 1 when calling
465 x_set_offset.
466
cc1caa4e
RS
4672004-12-08 Richard M. Stallman <rms@gnu.org>
468
469 * xdisp.c (get_next_display_element): Use `escape-glyph' for
470 control chars and escaped octal codes.
471 (Qescape_glyph): New variable.
472 (syms_of_xdisp): Initialize it.
473 (escape_glyph_face): New variable.
474 (redisplay_window): Initialize it.
475
e0e30823
RS
4762004-12-07 Paul Eggert <eggert@cs.ucla.edu>
477
478 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
479 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
480
f415cacd
JD
4812004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
482
cf435f39
JD
483 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
484 reset_malloc_hooks.
485
6f8ffb88
SM
486 * keyboard.c (handle_async_input, input_available_signal):
487 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 488
f415cacd
JD
489 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
490
19b1f29a
SM
4912004-12-07 Stefan <monnier@iro.umontreal.ca>
492
493 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
494
495 * config.in: Regenerate.
496
ded997c1
JD
4972004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
498
453a4f1b
JD
499 * xmenu.c (Fx_popup_menu): Correct documentation about position.
500 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
501 if not given by a mouse click to correspond with x-popup-menu
502 documentation.
503
9a38524c
JD
504 * config.in: Regenerate.
505
aa477689
JD
506 * gtkutil.c: Include signal.h and syssignal.h.
507 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
508
509 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
510 new variables main_thread and alloc_mutex,
511 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
512 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
513 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
514 (UN)BLOCK_INPUT.
515 (emacs_blocked_free, emacs_blocked_malloc)
516 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
517 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
518 (reset_malloc_hooks): New function.
519
520 * lisp.h: Declare reset_malloc_hooks.
521
522 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
523
524 * keyboard.c: Conditionally include pthread.h
6f8ffb88 525 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
526 thread, block signal, send signal to main thread and return.
527
ded997c1 528 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 529 Set current folder in file chooser if default_filename is a directory.
ded997c1 530
c72b0edd
SM
5312004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
532
533 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
534 Remove redundant correctness checks.
535 (regex_compile): Fix up error codes for \{..\} expressions.
536
c721eee5
RS
5372004-12-05 Richard M. Stallman <rms@gnu.org>
538
539 * regex.c (regex_compile): Fix end-of-pattern case for space.
540
d8f96db8
ST
5412004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
542
6108209e
KS
543 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
544 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 545 crashes with invalid characters.
6108209e
KS
546 * macmenu.c (add_menu_item): Use it.
547 * image.c (image_load_quartz2d): Likewise.
548 * macfns.c (x_set_name, x_set_title): Likewise.
549 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
550 creating them each time for labels.
d8f96db8 551
ab67e8b6
RS
5522004-12-02 Richard M. Stallman <rms@gnu.org>
553
554 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
555 don't use it here.
556
557 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
558 (interactive_p): Skip Scalled_interactively_p frames
559 like Sinteractive_p frames.
b8217ea6 560 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
561
562 * data.c (Fmake_variable_buffer_local): Doc fix.
563 (Fmake_local_variable): Doc fix.
564
565 * insdel.c (insert_from_string_before_markers)
566 (insert_from_string): Don't modify buffer on empty insertion.
567
568 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
569
f86bdc80
ST
5702004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
571
572 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
573 menu text as UTF8 fails.
574
1cae6d39
KS
5752004-12-01 Kim F. Storm <storm@cua.dk>
576
577 * alloc.c: Add commentary for last change.
578 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
579 sizeof(size_t) != 4.
580 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
581 Use them. Also clear header and trailer of freed memory.
582 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
583 (string_overrun_cookie): Rename from string_overrun_pattern.
584 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
585
77ea0764
AS
5862004-12-01 Andreas Schwab <schwab@suse.de>
587
588 * lisp.h: Declare string_to_multibyte.
589
2d5cd4e6
KH
5902004-12-01 Kenichi Handa <handa@m17n.org>
591
592 * w32console.c (w32con_write_glyphs): Decide coding here.
593 Adjusted for the change of encode_terminal_code.
594
595 * term.c (encode_terminal_code): Don't make it "static".
596
25a0994a
KH
5972004-11-30 Kenichi Handa <handa@m17n.org>
598
19b1f29a 599 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 600 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
601 characters at once, and return a pointer to the result of encoding.
602 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
603 (insert_glyphs): Likewise.
604 (term_init): Initialize encode_terminal_bufsize to 0.
605
606 * coding.c (Vcode_conversion_workbuf_name): New variable.
607 (syms_of_coding): Initialize and staticpro it.
608 (set_conversion_work_buffer): New function.
609 (run_pre_post_conversion_on_str): Use it.
610 (run_pre_write_conversin_on_c_str): New function.
611
612 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
613
fc7a70cc
ST
6142004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
615
616 * keyboard.c: Don't undef SIGIO
617 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
618 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
619 (macfns.o): Don't depend on ccl.h.
620 * macfns.c (mac_frame_parm_handlers): Set handlers for
621 Qleft_fringe and Qright_fringe.
622 * macterm.c (mac_fill_rectangle_to_pixmap)
623 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
624 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
625 Put in #if 0.
626 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
627 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
628 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
629 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
630 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
631 XDrawImageString. Always draw background and foreground separately.
632 (x_draw_image_foreground): Use clipping instead of computing the
633 intersection rectangle.
634 (x_draw_image_glyph_string): Don't draw an image with mask to a
635 pixmap.
636 (x_redisplay_interface): Set flush_display_optional member to 0.
637 (XTread_socket): Correctly reset the TEConverter
638 object.
639
fc368889
KS
6402004-11-30 Kim F. Storm <storm@cua.dk>
641
642 * lisp.h: New defines to enable buffer overrun checking.
643 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
644 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
645
646 * alloc.c: Add more checks for buffer overruns.
647 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
648 xmalloc_overrun_check_trailer, overrun_check_malloc)
649 overrun_check_realloc, overrun_check_free): Add.
650 (GC_STRING_EXTRA, string_overrun_pattern): Add.
651 (check_sblock, allocate_string_data, compact_small_strings):
652 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
653 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
654 (check_string_free_list): Add.
655 (allocate_string, sweep_strings): Call check_string_free_list.
656
657 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
658 XMALLOC_OVERRUN_CHECK to avoid crash during load.
659
0af8cfe1
KS
6602004-11-29 Kim F. Storm <storm@cua.dk>
661
662 * fns.c (concat): Use SAFE_ALLOCA.
663
77220eeb
SM
6642004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
665
666 * sysdep.c (emacs_write): Don't use QUIT.
667
a778cf63
KH
6682004-11-29 Kenichi Handa <handa@m17n.org>
669
670 * buffer.c (init_buffer): Set current_buffer->directory to a
671 multibyte string made by string_to_multibyte.
672
77220eeb 673 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 674
e3177e43
AS
6752004-11-27 Andreas Schwab <schwab@suse.de>
676
677 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
678
679 * s/gnu-linux.h: Enable no-op gcpros on ia64.
680 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
681
77220eeb
SM
682 * filelock.c (lock_file_1): Call get_boot_time early.
683 Increase buffer size.
e3177e43 684
ca5e6fef
EZ
6852004-11-27 Eli Zaretskii <eliz@gnu.org>
686
687 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
688 is not defined.
689
e2811828
KS
6902004-11-27 Kim F. Storm <storm@cua.dk>
691
692 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
693 marker out of doc string.
694
7a262394
SM
6952004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
696
697 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
698 which was not mentioned in the log.
699
f33cc5a9
KS
7002004-11-26 Kim F. Storm <storm@cua.dk>
701
048bb03f
KS
702 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
703 angle bitmaps at top/bottom line.
704
f33cc5a9
KS
705 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
706 set it when it->method is set to next_element_from_display_vector.
707 (setup_for_ellipsis): Add LEN argument. Callers changed.
708 Set it->saved_face_id.
709 (get_next_display_element): Use loop instead of recursion.
710 Set it->saved_face_id. Combine duplicate code for ctr chars.
711 (next_element_from_display_vector): Do not set it->saved_face_id.
712 (next_element_from_ellipsis): Use setup_for_ellipsis.
713
670e8906
EZ
7142004-11-26 Eli Zaretskii <eliz@gnu.org>
715
716 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
717 prevent compiler warnings.
718
275464e7
SM
7192004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
720
1bf0e604
SM
721 * keyboard.c (command_loop_1): Print a message describing the key
722 the user just pressed when this key has no binding.
723
275464e7
SM
724 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
725 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
726
727 * lread.c (readchar): Check QUIT when `getc' is interrupted.
728
261b01c6
RS
7292004-11-24 Richard M. Stallman <rms@gnu.org>
730
731 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
732
733 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
734
a5bd504e
KS
7352004-11-24 Kim F. Storm <storm@cua.dk>
736
737 * xdisp.c (move_it_in_display_line_to, display_line):
738 Restore saved_face_id also when truncate-lines or hscrolled.
739
255e4140
JD
7402004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
741
742 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
743 x-use-old-gtk-file-dialog.
744
745 * xfns.c: Define x_use_old_gtk_file_dialog.
746 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
747 outside ifdef USE_GTK.
748
cab27d04
SM
7492004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
750
751 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
752 Don't use XFASTINT blindly.
753
754 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
755
756 * indent.c (skip_invisible): Avoid non-idempotent side-effects
757 in macro arguments.
758
759 * keymap.c (Flookup_key): Check INTEGERP before XINT.
760
761 * lread.c (oblookup): Don't use XFASTINT blindly.
762
763 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
764 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
765
11e0be49
KS
7662004-11-23 Kim F. Storm <storm@cua.dk>
767
4d721114
KS
768 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
769 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
770
11e0be49
KS
771 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
772 signal_p is zero and face name is unknown.
773 (Fx_list_fonts): Don't signal error in lookup_named_face.
774 (Fface_font): Signal error in lookup_named_face.
775 (ascii_face_of_lisp_face): Likewise.
776
777 * dispextern.h (lookup_named_face): Fix prototype.
778
779 * xdisp.c (handle_single_display_prop): Don't signal error in
780 lookup_named_face for unknown fringe face name.
781 (highlight_trailing_whitespace): Don't signal error in
782 lookup_named_face if trailing-whitespace face unknown.
783 (calc_line_height_property): Don't signal error in
784 lookup_named_face if specified face name is unknown.
785
786 * fringe.c (update_window_fringes): Show top row indicator if
787 window has header-line. Don't show arrow at bob and eob
788 if the boundary indicators are not used.
789 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
790
791 * window.c (set_window_buffer): Clear display_error_modiff.
792
0960a582
KS
7932004-11-22 Kim F. Storm <storm@cua.dk>
794
795 * fringe.c (update_window_fringes): Provide sensible fall-back
796 value for non-nil indicate-buffer-boundaries setting.
797
b0e9bb28
MR
7982004-11-22 Markus Rost <rost@ias.edu>
799
800 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
801
d0bce91e
SM
8022004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
803
804 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
805
e1814672
KS
8062004-11-21 Kim F. Storm <storm@cua.dk>
807
b7fd3518
KS
808 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
809
810 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
811 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
812
813 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
814 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
815
816 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
817 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
818
d0bce91e
SM
819 * xdisp.c (move_it_in_display_line_to, display_line):
820 Restore saved_face_id if overflow-newline-into-fringe is enabled and
821 line is continued before or in middle of element from display vector.
f01d4d05 822
f1a61389
KS
823 * indent.c (Fvertical_motion): Fix last change. Use another
824 method to detect if iterator moved too far ahead after reseat.
825
e1814672
KS
826 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
827 expand matrix width for overflow in zero-width area.
828 (append_glyph, append_composite_glyph, produce_image_glyph)
829 (append_stretch_glyph): Use it to avoid loop in redisplay.
830 (note_mode_line_or_margin_highlight): Don't let help-echo from
831 string override help-echo from image map.
832
2dafe1c9
LT
8332004-11-20 Luc Teirlinck <teirllm@auburn.edu>
834
d0bce91e 835 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
836 * callint.c (Fcall_interactively): Ditto.
837
fd6866c8 8382004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
839
840 * minibuf.c (Fminibuffer_complete_and_exit):
841 Fixup the case of the completed value, for case-indep completion.
842
dedbac89
RS
8432004-11-20 Richard M. Stallman <rms@gnu.org>
844
fd6866c8
RS
845 * lisp.h (Fread_from_minibuffer): Add arg in decl.
846
9d00469f 847 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 848 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 849
dedbac89 850 * search.c (Vsearch_spaces_regexp):
d0bce91e 851 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 852
2f672bb5
TTN
8532004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
854
855 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
856
f31a9a68
RS
8572004-11-19 Richard M. Stallman <rms@gnu.org>
858
859 * search.c (Vsearch_whitespace_regexp): New variable.
860 (syms_of_search): Defvar it.
861 (compile_pattern_1): Call re_set_whitespace_regexp with it.
862 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
863 is non-nil.
6de891db
RS
864 (struct regexp_cache): New element whitespace_regexp.
865 (syms_of_search): Initialize whitespace_regexp elements.
866 (compile_pattern): Compare whitespace_regexp elements.
867 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
868
869 * regex.c (regex_compile): Substitute whitespace_regexp
870 for spaces, if it is nonzero.
871 (whitespace_regexp): New variable.
872 (re_set_whitespace_regexp): New function.
873
cbc34cb3
KS
8742004-11-19 Kim F. Storm <storm@cua.dk>
875
876 * indent.c (Fvertical_motion): Fix last change.
877
b54a7539
KS
8782004-11-18 Kim F. Storm <storm@cua.dk>
879
880 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
881 Instead, move back again if reseating moves too far ahead.
882
8832004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
884
885 * xdisp.c (message3): Call clear_message.
886
5ff504fe
KS
8872004-11-17 Kim F. Storm <storm@cua.dk>
888
889 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
890
5ae53dcf
JD
8912004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
892
d0bce91e 893 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 894
6abf3a27 895 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
896 (x_menu_set_in_use): Also set popup_activated_flag.
897
5ff504fe 898 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
899 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
900
6abf3a27 901 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 902
ee31cd78
RS
9032004-11-16 Richard M. Stallman <rms@gnu.org>
904
6abf3a27
SM
905 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
906 Use map-keymap-internal to implement that.
ee31cd78
RS
907
908 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
909
6abf3a27
SM
9102004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
911
912 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
913 a window before using XWINDOW.
914
915 * window.c (make_window, Fselect_window, make_dummy_parent)
916 (save_window_save):
917 * frame.c (make_frame):
918 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
919
920 * lisp.h (NILP): Use EQ rather than XFASTINT.
921
b4d61105
KS
9222004-11-16 Kim F. Storm <storm@cua.dk>
923
6abf3a27 924 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 925
b4d61105
KS
926 * indent.c (Fvertical_motion): Fix last change. Only reseat when
927 moving backwards.
928
9292004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
930
931 * dispextern.h: Extern reseat_at_previous_visible_line_start.
932
ab5b02b0
KH
9332004-11-16 Kenichi Handa <handa@m17n.org>
934
935 * xdisp.c (display_mode_element): Fix previous change (calculate
936 end position of substring to display correctly).
937
c482cf97
KS
9382004-11-16 Kim F. Storm <storm@cua.dk>
939
940 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
941 Reported by Andrew M. Scott.
942
9f89426b
KS
9432004-11-15 Kim F. Storm <storm@cua.dk>
944
945 * fns.c (Fsafe_plist_get): New defun.
946 (syms_of_fns): Defsubr it.
947
948 * lisp.h (Fsafe_plist_get): Add EXFUN.
949
950 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
951 Use Fsafe_plist_get.
952 (note_mode_line_or_margin_highlight, note_mouse_highlight):
953 Fix image map element parsing. Use Fsafe_plist_get.
954
27418463
RS
9552004-11-15 Richard M. Stallman <rms@gnu.org>
956
957 * xdisp.c (get_next_display_element): Fix previous change.
958
a130b901
JD
9592004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
960
ef614e04
JD
961 * window.c (shrink_windows): Handle special case of one window left
962 when trying to shrink the final reminder. Grow windows if
963 total_removed is less than total_shrink.
964
a130b901
JD
965 * xmenu.c (pop_down_menu): Remove global variable current_menu,
966 extract pointer from arg with XSAVE_VALUE.
46303896
KS
967 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
968 Construct arg to record_unwind_protect with make_save_value.
a130b901 969
d9a03ad2
RS
9702004-11-13 Richard M. Stallman <rms@gnu.org>
971
972 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
973 (get_next_display_element): Fix previous change to apply only to \n.
974
975 * indent.c (Fvertical_motion): Scan to PT from start of line to
976 make iterator consistent.
977
978 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
979
b3935289
JD
9802004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
981
982 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
983
984 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
985 Record unwind with clean_up_file_dialog.
986
78819ebb
KS
987 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
988 Declare.
b3935289
JD
989
990 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
991
af89e871
JD
9922004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
993
457a8155 994 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 995 (xg_file_sel_destroy): Remove.
46303896
KS
996 (xg_file_response_cb, pop_down_file_dialog)
997 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 998 New functions.
6abf3a27
SM
999 (xg_get_file_with_chooser, xg_get_file_with_selection):
1000 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1001 Move common code to xg_get_file_name. Return widget created.
1002 (xg_get_file_name): Set name, transient for, modal and destroy
1003 with parent here. Connect response signal to xg_file_response_cb,
1004 connect delete-event to gtk_true. Record pop_down_file_dialog
1005 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1006 (xg_create_widget): Make dialogs modal.
1007
af89e871
JD
1008 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1009 Lisp_Object.
1010 (popup_get_selection): Move unwind protect ...
1011 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1012 Move destroy of widget to pop_down_menu.
1013 (popup_widget_loop): Move unwind protect ...
1014 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1015 Move destroy of widget to pop_down_menu.
1016 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1017 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1018 x_mouse_leave and grabbed = 0 to pop_down_menu.
1019
5596fbf1
KS
10202004-11-13 Kim F. Storm <storm@cua.dk>
1021
1022 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1023 (syms_of_xdisp): DEFVAR_BOOL it.
1024 (make_cursor_line_fully_visible, try_cursor_movement)
1025 (try_window_id): Use it.
1026
b9de078a
KS
10272004-11-12 Kim F. Storm <storm@cua.dk>
1028
381f7091
KS
1029 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1030 (struct it): New member max_extra_line_spacing.
1031 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1032 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1033 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1034 part of last line is only extra line spacing (so the text on the
1035 line is fully visible). Use helper macros.
1036 Add W arg (to use them). All callers changed.
1037 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1038 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1039
6abf3a27
SM
1040 * window.c (window_scroll_pixel_based, Frecenter):
1041 Use move_it_vertically_backward directly.
381f7091
KS
1042 (Frecenter): Fix calculation of new start pos for negative arg.
1043 Before, the new start pos was sometimes chosen too far back, so
1044 the last line became only partially visible, and thus would be
1045 either only semi-visible or automatically scrolled to the middle
1046 of the window by redisplay.
1047
1048 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1049 (move_it_vertically_backward): Don't recure to move further back.
1050 (move_it_vertically): Remove superfluous condition.
1051 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1052 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1053 (display_tool_bar_line): Clear row->extra_line_spacing.
1054 (try_scrolling): Use move_it_vertically_backward directly.
1055 (redisplay_window): Likewise.
1056 (compute_line_metrics): Set row->extra_line_spacing.
1057 (display_line, display_string): Likewise.
1058 (x_produce_glyphs): Update it->max_extra_line_spacing.
1059
b9de078a
KS
1060 * xmenu.c (pop_down_menu): Return nil.
1061
c3438661
JD
10622004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1063
1064 * xmenu.c (x_menu_wait_for_event): New function.
1065 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1066 to handle timers.
df00f436
JD
1067 (popup_widget_loop): Add argument do_timers.
1068 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1069 do_timers to popup_widget_loop.
c3438661
JD
1070 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1071 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1072 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1073 popup_get_selection.
f1d1cd24
JD
1074 (pop_down_menu): New function.
1075 (popup_get_selection, popup_widget_loop): Unwind protect to
1076 pop_down_menu.
1077 (popup_widget_loop): Add argument widget.
1078 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1079 argument widget to popup_widget_loop.
c3438661 1080
32e2fb04
SM
10812004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1082
1083 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1084
0faf6806
KS
10852004-11-09 Kim F. Storm <storm@cua.dk>
1086
1087 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1088 Fix various comments referring to XEvents instead of input events.
1089 (x_queue_event): Fix format strings.
1090 (x_stop_queuing_selection_requests): Likewise.
1091
1092 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1093 (pint2hrstr): Add extra braces to silence compiler.
1094
1095 * print.c (print_object): Fix format string.
1096
1097 * lread.c (read1): Fix next_char matching.
1098
1099 * lisp.h (Fdelete): Add EXFUN.
1100 (replace_range_2): Add prototype.
1101
1102 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1103
1104 * intervals.h (NULL_INTERVAL_P): Add separate version when
1105 ENABLE_CHECKING is not defined to silence compiler.
1106 (compare_string_intervals): Add prototype.
1107
1108 * fringe.c (destroy_fringe_bitmap): Fix return type.
1109 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1110
1111 * emacs.c (Fdump_emacs): Fix format string.
1112
1113 * doc.c: Include <ctype.h>.
1114 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1115
1116 * data.c (store_symval_forwarding): Remove unused variables.
1117
1118 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1119
16bf4e32
JD
11202004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1121
1122 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1123 to ${OLDXMENU}.
1124
cdb805a9
KS
11252004-11-09 Kim F. Storm <storm@cua.dk>
1126
1127 * process.c (Fmake_network_process): Remove kludge for interrupted
1128 connects on BSD. If connect is interrupted, just close socket and
1129 start over rather than sleeping and retry with same socket.
1130
d87a9ab8 11312004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1132
a8b16c80
JD
1133 * .cvsignore: Add buildobj.lst.
1134
d87a9ab8
JD
1135 * doc.c: New variable Vbuild_files.
1136 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1137 file names from buildobh.lst. Only attach docstrings from files
1138 that are in Vbuild_files.
1139 (syms_of_doc): Defvar Vbuild_files.
1140
1141 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1142 and w32*.o.
1143 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1144 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1145
1146 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1147 is linked.
1148
b6709e77
KS
11492004-11-09 Kim F. Storm <storm@cua.dk>
1150
1151 * fringe.c (update_window_fringes): Update fringe bitmaps if
1152 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1153 also update previous row to get rid of misc. artifacts.
1154
bae9677d
KS
11552004-11-08 Kim F. Storm <storm@cua.dk>
1156
1157 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1158 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1159
3f8ea68c
EZ
11602004-11-08 Eli Zaretskii <eliz@gnu.org>
1161
1162 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1163 Don't include <sys/time.h> explicitly.
1164 Include <stdio.h> unconditionally, not just on MacOS.
1165
a653f812
KH
11662004-11-08 Kenichi Handa <handa@m17n.org>
1167
1168 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1169 don't pay attention to '\' before '*'.
1170 (fontset_pattern_regexp): Change the meaning of the second arg.
1171 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1172 (check_fontset_name): Try NAME as literal at first, and if it
1173 failes, try NAME as pattern.
1174
c37caf9d
JD
11752004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1176
1177 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1178
b72915a7
AS
11792004-11-07 Andreas Schwab <schwab@suse.de>
1180
78819ebb
KS
1181 * lisp.h (Fmsdos_downcase_filename): Declare.
1182 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1183 * fileio.c: Likewise.
1184
238a44a8
JD
11852004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1186
1187 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1188 comparisons with integers instead of Lisp_Object address.
1189 (Fmsdos_set_keyboard): Declare argument allkeys.
1190
1191 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1192
78819ebb 1193 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1194 int/Lisp_Object mixup.
1195
1196 * fileio.c: Ditto.
1197
31141c13
ST
11982004-11-06 Steven Tamm <steventamm@mac.com>
1199
1200 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1201
f28c1bd9
RS
12022004-11-06 Richard M. Stallman <rms@gnu.org>
1203
1204 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1205
1206 * xfaces.c (merge_named_face): GCPRO the face_name in the
1207 named_merge_point struct that we make.
1208 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1209
1210 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1211 before deciding whether to inactivate mark.
1212
59dede22
EZ
12132004-11-06 Lars Brinkhoff <lars@nocrew.org>
1214
1215 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1216 * editfns.c (Fget_internal_run_time): New function.
1217 (syms_of_data): Defsubr it.
1218 * fns.c (sxhash): As far as possible, merge calculation of
1219 hash code for symbols and strings.
59dede22 1220
27540e81
EZ
12212004-11-06 Eli Zaretskii <eliz@gnu.org>
1222
1223 * frame.c (syms_of_frame): Fix the example in the doc string.
1224
df470e3b
JD
12252004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1226
1227 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1228
1229 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1230 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1231
4cc8522c
LT
12322004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1233
1234 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1235
d4a42098
KS
12362004-11-05 Kim F. Storm <storm@cua.dk>
1237
a8490886
KS
1238 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1239
d4a42098
KS
1240 * fileio.c (Ffile_modes): Doc fix.
1241 (auto_save_1): Check for Ffile_modes nil value.
1242
36a2b04c
KS
12432004-11-05 Kim F. Storm <storm@cua.dk>
1244
1245 * xselect.c (struct selection_event_queue, selection_queue)
1246 (x_queue_selection_requests, x_queue_event)
1247 (x_start_queuing_selection_requests)
1248 (x_stop_queuing_selection_requests): Add new queue for selection
1249 input events to replace previous XEvent queue in xterm.c.
1250 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1251 (x_reply_selection_request): Adapt to new queue.
1252 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1253 (x_handle_selection_request, x_handle_selection_clear): Make static.
1254 (x_handle_selection_event): New function. May queue selection events.
1255 (wait_for_property_change_unwind): Use save_value instead of cons.
1256 Clear property_change_reply_object.
1257 (wait_for_property_change): Abort if already waiting.
1258 Use save_value instead of cons for unwind data.
1259 (x_handle_property_notify): Skip events already arrived, but don't
1260 free them, as "arrived" field is checked by wait_for_property_change,
1261 and it will be freed by unwind or explicit unexpect_property_change.
1262 (x_get_foreign_selection): Add to new queue.
1263 (receive_incremental_selection): Don't unexpect wait_object when done
1264 as it has already been freed by previous wait_for_property_change.
1265
1266 * xterm.h (x_start_queuing_selection_requests)
1267 (x_stop_queuing_selection_requests, x_handle_selection_request)
1268 (x_handle_selection_clear): Remove prototypes.
1269 (x_handle_selection_event): Add prototype.
1270
1271 * xterm.c (handle_one_xevent): Don't queue X selection events
1272 here, it may be too late if we start queuing after we have already
1273 stored some selection events into the kbd buffer.
1274 (struct selection_event_queue, queue, x_queue_selection_requests)
1275 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1276 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1277 (x_catch_errors_unwind): Block input around final XSync.
1278
1279 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1280
1281 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1282 (kbd_buffer_unget_event): New function.
1283 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1284 and use x_handle_selection_event.
1285 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1286
9c3ad9e1
JD
12872004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1288
1289 * xselect.c (TRACE3): New debug macro.
1290 (x_reply_selection_request): Use it.
1291 (receive_incremental_selection): In call to TRACE0, the name of
1292 a symbol is in xname.
1293
a33b89de
KS
12942004-11-05 Kim F. Storm <storm@cua.dk>
1295
1296 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1297
a872928c
JD
12982004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1299
88208bb8
JD
1300 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1301
78819ebb 1302 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1303
1304 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1305 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1306 * xfns.c (syms_of_xfns): ... to here.
1307
a872928c
JD
1308 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1309 it doesn't start with /.
1310
b912921c
KH
13112004-11-04 Kenichi Handa <handa@m17n.org>
1312
1313 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1314 treat it as a literal character.
1315
c524d9a6
KS
13162004-11-03 Kim F. Storm <storm@cua.dk>
1317
1318 * .gdbinit (ppt): New function.
1319
8cfd0f36
JD
13202004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1321
a11e1dce
JD
1322 * xterm.c (x_window_to_scroll_bar): Only call
1323 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1324
8cfd0f36
JD
1325 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1326 of save.
1327
a93563fd
AS
13282004-11-02 Andreas Schwab <schwab@suse.de>
1329
1330 * window.c (Fscroll_right): Fix last change.
1331
2b2d59d8
KS
13322004-11-02 Kim F. Storm <storm@cua.dk>
1333
1334 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1335
13362004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1337
1338 * callproc.c (Fcall_process): Block input around vfork.
1339
ca28104d
KS
13402004-11-02 Kim F. Storm <storm@cua.dk>
1341
1342 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1343 (syms_of_eval): Defsubr it.
1344
29bb7127
RS
13452004-11-02 Richard M. Stallman <rms@gnu.org>
1346
1347 * insdel.c (replace_range_2): New function.
1348
1349 * casefiddle.c (casify_region): Handle changes in byte-length
1350 using replace_range_2.
1351
1352 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1353
b6189c3b 1354 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1355 Subtract 1 from pos when checking previous newline for invisibility.
1356
1357 * window.c (window_scroll_pixel_based): Update preserve_y
1358 for header line if any.
1359 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1360 use a new second argument instead.
1361
1362 * eval.c (Fcall_interactive_p): New function.
1363 (interactive_p): Don't test INTERACTIVE here.
1364 (Finteractive_p): Doc fix.
1365
1366 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1367
b6189c3b 13682004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1369
1370 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1371 comparing font names.
a3fe4aaf 1372
2a00cdb4
JD
13732004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1374
f9d64bb3
JD
1375 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1376 Fx_file_dialog if only directories should be read.
1377
1378 * lisp.h: Fx_file_dialog takes 5 parameters.
1379
32e2fb04
SM
1380 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1381 Add parameter only_dir_p.
f9d64bb3
JD
1382 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1383 dialog, just text field part. Do not add DEFAULT_FILENAME
1384 to list of files if it isn't there.
1385 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1386
32e2fb04
SM
1387 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1388 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1389 a save dialog, add option kNavDontConfirmReplacement, change title
1390 to "Enter name", change text for save button to "Ok".
1391
32e2fb04
SM
1392 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1393 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1394
1395 * gtkutil.c (xg_get_file_with_chooser)
1396 (xg_get_file_with_selection): New functions, only defined ifdef
1397 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1398 respectively.
1399 (xg_get_file_name): Add parameter only_dir_p.
1400 Call xg_get_file_with_chooser or xg_get_file_with_selection
1401 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1402 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1403
1404 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1405
2a00cdb4
JD
1406 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1407
f6749d5d
KS
14082004-11-01 Kim F. Storm <storm@cua.dk>
1409
32e2fb04
SM
1410 * process.c (connect_wait_mask, num_pending_connects):
1411 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1412 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1413 (IF_NON_BLOCKING_CONNECT): New helper macro.
1414 (wait_reading_process_output): Only declare and use local vars
1415 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1416
1a99fe1a
JR
14172004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1418
1419 * w32term.c (x_scroll_run): Delete region objects after use.
1420
fcdb28b4
JD
14212004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1422
495ef86b
JD
1423 * xmenu.c: Add prototypes for forward function declarations.
1424 (popup_get_selection): Remove parameter do_timers, remove call to
1425 timer_check.
32e2fb04
SM
1426 (create_and_show_popup_menu, create_and_show_dialog):
1427 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1428
12e6566a
JD
1429 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1430 tool_bar_items and assign the result to f->tool_bar_items if
1431 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1432 tool_bar_items to assignment of result.
1433
fcdb28b4
JD
1434 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1435 pending_atmers is non-zero.
1436
1a1a0c4c
KS
14372004-10-31 Kim F. Storm <storm@cua.dk>
1438
1439 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1440
a36f1680
JW
14412004-10-28 Will <will@glozer.net>
1442
1443 * macterm.c: allow user to assign key modifiers to the Mac Option
1444 key via a 'mac-option-modifier' variable.
1445
32e2fb04 14462004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1447
1448 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1449 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1450 (x_handle_selection_request, x_handle_selection_clear)
1451 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1452
4f71c13f
RS
14532004-10-28 Richard M. Stallman <rms@gnu.org>
1454
1455 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1456
1457 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1458
068f3848
SM
14592004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1460
1461 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1462 comment-starter over a 1-char one.
1463
4660a9e3
RS
14642004-10-27 Richard M. Stallman <rms@gnu.org>
1465
1466 * xdisp.c (get_next_display_element): In mode lines,
1467 treat newline and tab like other control characters.
1468
1469 * editfns.c (Fmessage): Doc fix.
1470
1471 * indent.c (vmotion): When moving up, check the newline before.
1472 Make prevline an int, not a Lisp_Object.
1473
233f3db6
KS
14742004-10-27 Kim F. Storm <storm@cua.dk>
1475
1476 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1477 Only allocate info and discarded tables once.
1478
1479 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1480 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1481 (SAFE_FREE): Test it to determine if we need to unwind to free.
1482 Remove size arg. All users changed.
1483 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1484
1442465d
JD
14852004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1486
1487 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1488 (xg_destroy_widgets): Rename from remove_from_container.
1489 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1490 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1491 instead of remove_from_container.
1492 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1493 (free_frame_tool_bar): Add comment.
1494
1495 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1496 is not NULL before strcmp.
1497
c8636435
KS
14982004-10-26 Kim F. Storm <storm@cua.dk>
1499
1500 * callint.c (Fcall_interactively): Add 'U' code to get the
1501 up-event discarded by a previous 'k' or 'K' argument.
1502
5629f29b
DK
15032004-10-26 David Kastrup <dak@gnu.org>
1504
1505 * buffer.c (syms_of_buffer): Fix a few typos.
1506
4f2f546e
JD
15072004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1508
1509 * xsmfns.c: Put empty line between comment and function body.
1510 Use two spaces before comment end.
1511
fc1062f5
KH
15122004-10-25 Kenichi Handa <handa@m17n.org>
1513
1514 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1515 PATTERN is full XLFD.
1516
be13f5e5
KH
15172004-10-24 Kenichi Handa <handa@m17n.org>
1518
1519 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1520
1521 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1522 (regex_compile): Return REG_ERANGEX if appropriate.
1523
d0ee2ed3
KH
15242004-10-22 Kenichi Handa <handa@m17n.org>
1525
1526 * editfns.c (Ftranslate_region_internal): New function.
1527 (syms_of_editfns): Defsubr it.
1528
63ea8ea5
JD
15292004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1530
1531 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1532
c27ed90a
JD
15332004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1534
068f3848
SM
1535 * xterm.h (x_output): New member `xic_base_fontname'.
1536 (FRAME_XIC_BASE_FONTNAME): New macro.
1537 (xic_free_xfontset): Declare.
c27ed90a 1538
068f3848
SM
1539 * xfns.c (xic_create_xfontset): Share fontsets between frames
1540 based on base_fontname.
1541 (xic_free_xfontset): New function.
1542 (free_frame_xic): Use it.
1543 (xic_set_xfontset): Ditto.
c27ed90a 1544
068f3848 1545 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1546
1547
59508699
JR
15482004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1549
1550 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1551
dede2792
JD
15522004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1553
3aca2078
JD
1554 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1555 XSync.
1556
dede2792
JD
1557 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1558 New variables and constant.
1559 (main): Calculate heap_bss_diff. If we are dumping and the
1560 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1561 and exec ourself again.
1562 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1563 print a warning.
1564
1565 * lastfile.c: Make my_endbss and my_endbss_static available on all
1566 platforms.
1567
1568 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1569 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1570
1dc5ba01
LT
15712004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1572
1573 * data.c (Flocal_variable_if_set_p): Doc fix.
1574
950090be
JR
15752004-10-19 Jason Rumney <jasonr@gnu.org>
1576
1577 * w32.c (init_environment): Set emacs_dir correctly when running
1578 emacs from the build directory.
1579
8550b998
RS
15802004-10-19 Richard M. Stallman <rms@gnu.org>
1581
1582 * editfns.c (Fdelete_and_extract_region):
1583 If region is empty, return null string.
1584
08dedea6
JD
15852004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1586
1dc5ba01 1587 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1588 and canon_width.
068f3848 1589 (xg_frame_cleared): Remove.
08dedea6 1590
068f3848
SM
1591 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1592 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1593 (xg_create_scroll_bar): Put an event box widget between
1594 the scroll bar widget and the edit widget.
1595 (xg_show_scroll_bar): Show the parent widget (the event box).
1596 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1597 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1598 Move the parent (the event box) widget inside the fixed widget.
1599 Move window clear to xterm.c.
1600
068f3848 1601 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1602
08dedea6 1603 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1604 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1605 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1606 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1607
8550b998 16082004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1609
1610 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1611
84338890
JD
16122004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1613
1614 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1615 gdk_window_clear and move gdk_window_process_all_updates after
1616 clear so events are sent to the X server in correct order.
1617
6e1b0d8c
KH
16182004-10-18 Kenichi Handa <handa@m17n.org>
1619
1620 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1621 comparing font names.
8550b998 1622 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1623 (list_fontsets): Likewise.
1624
1625 * search.c (fast_string_match_ignore_case): New function.
1626
1627 * lisp.h (fast_string_match_ignore_case): Extern it.
1628
345e75a8
KS
16292004-10-17 Kim F. Storm <storm@cua.dk>
1630
1631 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1632 than bitmap if there is not left fringe.
1633 (get_overlay_arrow_glyph_row): Also used on windows system.
1634 (display_line): Display overlay string if no left fringe.
1635
be13cbb7
JR
16362004-10-16 Jason Rumney <jasonr@gnu.org>
1637
1638 * w32fns.c (w32_font_match): Encode font name being matched.
1639
c2e2ede7
RS
16402004-10-16 Richard M. Stallman <rms@gnu.org>
1641
1642 * window.c (Fspecial_display_p): Doc fix.
1643
3584d95d
SM
16442004-10-15 Stefan <monnier@iro.umontreal.ca>
1645
1646 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1647 Don't ignore menus, because where-is-internal already does it for us.
1648
699a0392
KS
16492004-10-15 Kim F. Storm <storm@cua.dk>
1650
b3c7a89b
KS
1651 * xdisp.c (redisplay_window): Only update fringes and vertical
1652 border on window frames.
699a0392 1653
4e382b0f
AS
16542004-10-14 Andreas Schwab <schwab@suse.de>
1655
1656 * m/ia64.h (DATA_SEG_BITS): Don't define.
1657
329a7be2
KS
16582004-10-14 Kim F. Storm <storm@cua.dk>
1659
1660 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1661 in some X versions.
329a7be2 1662
982241b1
SM
16632004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1664
1665 * fns.c (map_char_table): Add missing gcpros.
1666
9238467d
SM
16672004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1668
1669 * keymap.c (get_keymap): An autoload form is not a keymap.
1670
1671 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1672
4440e3ca
KS
16732004-10-13 Kim F. Storm <storm@cua.dk>
1674
7cfdabde
KS
1675 * callproc.c (Fcall_process): Simplify handling of display arg.
1676 Resume `display_on_the_fly' once a coding system is determined.
1677
4440e3ca
KS
1678 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1679
1c8dec6a
KS
16802004-10-12 Kim F. Storm <storm@cua.dk>
1681
1682 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1683 caller, such as call-process, is not going to poll for input.
1684 (calc_line_height_property): Handle case where it->object is nil.
1685
1686 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1687
170b174c
KH
16882004-10-12 Kenichi Handa <handa@m17n.org>
1689
9238467d
SM
1690 * xdisp.c (get_next_display_element):
1691 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1692 chars in octal in unibyte buffer.
1693
b583964c
KS
16942004-10-12 Kim F. Storm <storm@cua.dk>
1695
1696 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1697 are no ordinary bindings.
1698
29fabd8c
JD
16992004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1700
9238467d 1701 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1702
c3f4c690
ST
17032004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1704
9238467d
SM
1705 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1706 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1707 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1708 terminal frame.
1709 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1710 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1711 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1712 Make a cancel file-open dialog be like C-g.
9238467d
SM
1713 * mac.c (mktime): Use emacs_mktime.
1714 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1715 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1716
9688f9eb
KS
17172004-10-10 Kim F. Storm <storm@cua.dk>
1718
1719 * keyboard.c (timer_resume_idle): New function to resume idle
1720 timer without resetting timers on the idle list.
1721 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1722 (timer_start_idle, timer_stop_idle): Declare static.
1723 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1724
1725 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1726
f7f3a65f
ST
17272004-10-08 Steven Tamm <steventamm@mac.com>
1728
9238467d 1729 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1730 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1731 NULL where 0 should be used.
f7f3a65f
ST
1732 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1733 objc/malloc.h
9238467d 1734 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1735
3c7d999a
KS
17362004-10-07 Kim F. Storm <storm@cua.dk>
1737
1738 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1739 windows. Update vertical line after drawing window fringes, but
1740 only if actually drawing any bitmaps--or there is no fringe.
1741
1742 * xterm.c (x_update_window_end): Likewise.
1743 * macterm.c (x_update_window_end): Likewise.
1744 * w32term.c (x_update_window_end): Likewise.
1745
1746 * fringe.c (draw_window_fringes): Return value now indicates if
1747 any fringe bitmaps were redrawn (or there are no fringes).
1748
1749 * dispextern.h (draw_window_fringes): Update prototype.
1750
bf06c82f
ST
17512004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1752
1753 * macfns.c (mac_get_window_bounds): Add extern.
1754 (x_real_positions): Use mac_get_window_bounds.
1755
1756 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1757 xmenu.c (YAILOM).
3c7d999a 1758
bf06c82f
ST
1759 * macterm.c [!MAC_OSX]: Include Windows.h.
1760 (front_emacs_window): Rename from mac_front_window. All uses
1761 changed. Return the frontmost non-tooltip emacs window.
1762 (mac_get_window_bounds): New function.
1763 (x_calc_absolute_position): Use the difference of width and height
1764 between the inner and outer window.
1765 (x_set_offset): Specify window position by the coordinae of the
1766 outer window. Adjust the position if the title bar is completely
1767 outside the screen.
1768 (app_is_suspended, app_sleep_time): Remove unused variables.
1769 (do_app_resume, do_app_suspend): Remove their contents because
1770 window-activate/deactivate events will do the job.
1771 (do_zoom_window): Remove unused variables. Make compliant to the
1772 standard way of zooming. Set f->left_pos and f->top_pos.
1773 (XTread_socket): Don't use argument `expected'. Don't use
1774 FrontWindow to determine the clicked window. Exclude unprocessed
1775 mouseUp cases in the early stage. Add parentheses to fix operator
1776 precedence.
1777 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1778
4cbbf6b7 17792004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1780
1781 * config.in: Regenerate.
1782
1783 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1784 HAVE_EXECSHIELD.
1785
b90ee8b5
JD
17862004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1787
1788 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1789 a row if Alt or Meta has been found for that row. Also stop scanning
1790 for Keysyms for that row.
1791
904db1a2
KS
17922004-10-04 Kim F. Storm <storm@cua.dk>
1793
0207b8ad
KS
1794 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1795 to list. Include overlay arrow bitmap in return value.
1796
25f7220c
KS
1797 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1798 bars with fractional column width. If scroll bar separates two
1799 windows, move it towards the window it belongs to. Only update
1800 the padding area below the scroll bar widget when necessary,
1801 i.e. when scroll bar widget is created, moved, or resized.
1802
562020fe
KS
1803 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1804 while tracking/dragging mouse.
1805 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1806
37e34af7
KS
1807 * window.c (coordinates_in_window): Relax check for cursor
1808 on vertial border between mode lines.
1809 (Fset_window_fringes): Do not allow negative widths.
1810 (Fset_window_scroll_bars): Likewise.
1811
904db1a2
KS
1812 * .gdbinit (pp): Shorthand for p ARG + pr.
1813 (ff): New command: flush frame updates (X only).
1814
38fe4f64
MA
18152004-10-03 Michael Albinus <michael.albinus@gmx.de>
1816
1817 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1818
9de36315
KH
18192004-09-30 Kenichi Handa <handa@m17n.org>
1820
07c381ad 1821 * process.c (send_process): Free composition data.
9de36315 1822
07c381ad 1823 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1824
1825 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1826 compositions to encode.
1827 (encode_coding_string): Likewise. Free composition data.
1828
b6189c3b 18292004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1830
1831 * coding.c (code_convert_region): Free composition data.
9de36315 1832
f2a54fbc
KS
18332004-09-29 Kim F. Storm <storm@cua.dk>
1834
dc5d6435
KS
1835 * fringe.c: Remove limit on number of bitmaps.
1836 (fringe_bitmaps, fringe_faces): Change to pointers.
1837 (max_fringe_bitmaps): New var.
1838 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1839 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1840
1841 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1842 (struct glyph_row): Reorder fringe_bitmap related fields.
1843 (struct it): Likewise.
1844
1845 * w32term.c (fringe_bmp): Change to pointer.
1846 (max_fringe_bmp): New var.
1847 (w32_define_fringe_bitmap): Expand fringe_bmp.
1848 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1849 (w32_destroy_fringe_bitmap): Likewise.
1850
18512004-09-29 Kim F. Storm <storm@cua.dk>
1852
1853 * fringe.c: Simplify last change.
f2a54fbc
KS
1854 (lookup_fringe_bitmap): New function.
1855 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1856 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1857 Keep standard bitmaps in Vfringe_bitmaps.
1858 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1859 (Fset_fringe_bitmap_face): Likewise.
1860
1861 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1862 (valid_fringe_bitmap_p): Remove prototype.
1863
1864 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1865
841a8bca
KS
18662004-09-29 Kim F. Storm <storm@cua.dk>
1867
1f2da365
KS
1868 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1869 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1870
841a8bca
KS
1871 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1872
1873 * fringe.c (Vfringe_bitmaps): New variable.
1874 (syms_of_fringe): DEFVAR_LISP it.
1875 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1876 Change arg to Lisp_Object and fail if not an integer.
1877 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1878 (destroy_fringe_bitmap): New functions.
9238467d
SM
1879 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1880 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1881 clear its fringe property.
1882 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1883 Fdestroy_fringe_bitmap.
1884 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1885 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1886 and set fringe property. Signal error if no free slots.
1887 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1888 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1889
1890 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1891 symbols with a fringe property.
1892
4d965590
KS
18932004-09-27 Kim F. Storm <storm@cua.dk>
1894
1895 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1896 Doc fix. Format may now be a symbol or alist, not a cons.
1897
1898 * fringe.c (update_window_fringes): Handle new formats of
1899 indicate-buffer-boundaries (symbol or alist). No longer
1900 allow a simple cons.
1901 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1902
e888c2b3
JD
19032004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1904
9238467d 1905 * config.in: Rebuild.
e888c2b3 1906
83f1cb94
JD
19072004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1908
1909 * config.in: Rebuild.
1910
dd3b1d60 1911 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1912
2c51754c
SM
19132004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1914
1915 * xterm.c (x_term_init): Work around a bug in some X servers.
1916
3df5f8aa
RS
19172004-09-18 Richard M. Stallman <rms@gnu.org>
1918
557ca2c1
RS
1919 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1920
3df5f8aa
RS
1921 * xdisp.c (try_window_reusing_current_matrix):
1922 Handle the case where we reach the old displayed text,
1923 out of sync with the old line boundary.
1924
9238467d 19252004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1926
1927 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1928 narrowed buffer.
1929
bfa02563
KS
19302004-09-14 Kim F. Storm <storm@cua.dk>
1931
a25fe164
KS
1932 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1933
bfa02563
KS
1934 * xfaces.c (Qface_no_inherit): New var.
1935 (syms_of_xfaces): Intern and staticpro it.
1936 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1937 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1938 Don't increment face_change_count when face has non-nil
1939 face-no-inherit property.
1940
126f9c02
SM
19412004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1942
892a8eb5
SM
1943 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1944 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1945
126f9c02 1946 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1947 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1948
c0ad3b38
KS
19492004-09-12 Kim F. Storm <storm@cua.dk>
1950
1951 * editfns.c (Fformat): Handle format strings with multiple text
1952 properties. Reverse text property list from the format string,
1953 so the positions are in increasing order.
1954
844fc085
JD
19552004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1956
1957 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1958 x_uncatch_errors so that possible protocol errors are delivered.
1959
b106731c
EZ
19602004-09-10 Eli Zaretskii <eliz@gnu.org>
1961
21065c92
EZ
1962 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1963 blockinput.h.
1964 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1965 charset.h, and coding.h
9238467d 1966 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1967 (term.o): Depend on window.h and keymap.h.
1968 (abbrev.o): Depend on syntax.h.
1969 (callint.o): Depend on keymap.h.
1970 (casefiddle.o): Depend on charset.h and keymap.h.
1971 (category.o): Depend on keymap.h.
1972 (coding.o): Depend on dispextern.h.
1973 (cmds.o): Depend on keyboard.h and keymap.h.
1974 (dispnew.o): Depend on indent.h and intervals.h.
1975 (doc.o): Depend on keymap.h.
1976 (editfns.o): Depend on frame.h.
1977 (emacs.o): Depend on dispextern.h.
1978 (fileio.o): Don't depend on ccl.h.
1979 (filelock.o): Depend on charset.h and coding.h.
1980 (frame.o): Depend on w32term.h and macterm.h.
1981 (insdel.o): Depend on region-cache.h.
1982 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1983 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1984 (search.o): Depend on $(INTERVALS_SRC).
1985 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1986 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1987 xterm.h, w32term.h, and macterm.h.
1988 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1989 w32term.h, and macterm.h.
1990 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1991 region-cache.h, xterm.h, w32term.h, and macterm.h.
1992 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1993 (data.o): Depend on frame.h.
1994 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1995 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1996 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1997 (intervals.o): Depend on keymap.h.
1998
9238467d
SM
1999 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2000 Add debugging print-out to termscript.
b106731c 2001
64b7122d
RS
20022004-09-09 Richard M. Stallman <rms@gnu.org>
2003
2004 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2005
5670531e
RS
20062004-09-08 Richard M. Stallman <rms@gnu.org>
2007
6cb4a892
RS
2008 * window.c (Fset_window_buffer): Doc fix.
2009
5670531e
RS
2010 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2011
7e388eb7
JL
20122004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2013
2014 * minibuf.c (history_delete_duplicates): New variable.
2015 (read_minibuf): Use it.
2016 (syms_of_minibuf): Create the corresponding lisp variable.
2017
370e3587
KS
20182004-09-08 Kim F. Storm <storm@cua.dk>
2019
2020 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2021 overlay just before point.
2022
f844ba4e
LT
20232004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2024
2025 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2026 * buffer.c (reset_buffer, init_buffer_once):
2027 Handle auto_save_file_format field.
f844ba4e
LT
2028 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2029 `buffer-auto-save-file-format'.
f844ba4e
LT
2030 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2031 (build_annotations): Adapt to replacement of
2032 `auto-save-file-format' with the new buffer-local variable
2033 `buffer-auto-save-file-format'.
2034 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2035
f0f90717
JR
20362004-09-07 Jason Rumney <jasonr@gnu.org>
2037
2038 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2039
9238467d
SM
2040 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2041 Handle Unicode menu titles.
f0f90717 2042
4e14f66c
KS
20432004-09-07 Kim F. Storm <storm@cua.dk>
2044
2045 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2046 property from text property or overlay strings at point.
2047
9238467d 20482004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2049
2050 * xmenu.c (update_submenu_strings): YAILOM.
2051 (set_frame_menubar): Make sure last_i is initialized.
2052
1f06d367
JR
20532004-09-03 Jason Rumney <jasonr@gnu.org>
2054
1806714a 2055 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2056 (digest_single_submenu): Set lname and lkey in widget_value
2057 instead of name and key.
2058 (update_submenu_strings): New function.
2059 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2060 call update_submenu_strings.
2061
2062 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2063 (digest_single_submenu, w32_menu_show): Encode menu strings as
2064 UTF-8 if Unicode API is available.
2065 (utf8to16): New function.
2066 (add_menu_item): Use it when calling Unicode API.
1806714a 2067
46540080
KS
20682004-09-03 Kim F. Storm <storm@cua.dk>
2069
2070 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2071 in overlay or text-property strings; set cursor on corresponding
2072 glyph rather than at end of the string.
2073
9277ba61 20742004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2075
9277ba61 2076 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2077 set a new one before obtaining the global coordinate.
2078 Use FRAME_MAC_WINDOW.
2079 (x_set_name, x_set_title): Encode title to UTF8.
2080 Use SetWindowTitleWithCFString.
9277ba61
ST
2081 (Fx_server_version): Get correct OS version.
2082
1806714a
SM
2083 * macmenu.c (add_menu_item): Remove unused variable `i'.
2084 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2085
2086 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2087 BLOCK_INPUT.
2088 (x_set_offset): Use FRAME_MAC_WINDOW.
2089
2090 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2091 nontext_cursor if it is on a scroll bar.
2092
2093 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2094 Carbon support.
1806714a
SM
2095 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2096 Use LIBS_CARBON.
9277ba61 2097
b10daec7
JD
20982004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2099
2100 * xfns.c (x_set_name_internal): New function. Check if we shall call
2101 xfree before ENCODE_UTF_8.
2102 (x_set_name, x_set_title): Call x_set_name_internal.
2103
f7e22385
JR
21042004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2105
2106 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2107 reload it.
2108
2bf436c3
JD
21092004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2110
1806714a 2111 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2112 (single_submenu): Set lname and lkey in widget_value
2113 instead of name and key.
2114 (update_submenu_strings): New function.
2115 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2116 call update_submenu_strings.
2117
2bf436c3
JD
2118 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2119 instead of name and key.
2120 (update_submenu_strings): New function.
2121 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2122 call update_submenu_strings.
2bf436c3
JD
2123
2124 * gtkutil.h (_widget_value): Added lname and lkey.
2125
11715f92
ST
21262004-08-30 Steven Tamm <steventamm@mac.com>
2127
2128 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2129 by using different names for inner loop variables.
2130
5500be54
JD
21312004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2132
059cd329
JD
2133 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2134 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2135
5500be54
JD
2136 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2137 tool bar items is 0.
2138
383418e5
ST
21392004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2140
2141 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2142 strings in menu items.
2143 (single_submenu): Use ENCODE_MENU_STRING
2144 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2145 button release isn't passed to event loop
2146 (add_menu_item): Use SetMenuItemWithCFString
2147
6eb3ee72
ST
21482004-08-26 Steven Tamm <steventamm@mac.com>
2149
2150 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2151 tool-bar/menu click
2152 * macfns.c (Fx_file_dialog): Implemented using NavServices
2153
10b43ac3
JD
21542004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2155
2728b5d0
JD
2156 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2157
10b43ac3
JD
2158 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2159 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2160 (x_top_window_to_frame): Return 0 if wdesc is None.
2161
2ee3b79e
RS
21622004-08-22 Richard M. Stallman <rms@gnu.org>
2163
2164 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2165 HAVE_TERMIOS]: If there's no char for this signal, drop through
2166 and use system calls.
2167
2168 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2169
9a1ba2ea
KS
21702004-08-20 Kim F. Storm <storm@cua.dk>
2171
2172 * process.c (wait_reading_process_output): Rename from
2173 wait_reading_process_input. All uses changed.
2174 (wait_reading_process_output_1): Rename from
2175 wait_reading_process_input_1. All uses changed.
2176
2177 * dispnew.c (Fsleep_for): Remove obsolete code.
2178
295f3b30
KH
21792004-08-20 Kenichi Handa <handa@m17n.org>
2180
2181 * syntax.c (skip_chars): Fix for unibyte case.
2182
27615979
SM
21832004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2184
2185 * syntax.c (char_quoted): Mixup byte/char pos.
2186 (back_comment): Fixup globals in all cases.
2187
00267f94
JD
21882004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2189
2190 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2191 passing it to gtk_window_set_title.
2192
2439909e
KS
21932004-08-19 Kim F. Storm <storm@cua.dk>
2194
6ba0f14c
KS
2195 * process.c (wait_reading_process_input): Clean up.
2196 Add wait_for_cell, wait_proc, and just_wait_proc args
2197 to avoid overloading `read_kbd' and `do_display' args.
2198 Change read_kbd arg to int. All callers changed.
2199
2439909e
KS
2200 * process.c (process_send_signal): Use CDISABLE.
2201
2202 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2203
101c421e
KS
22042004-08-18 Kim F. Storm <storm@cua.dk>
2205
2206 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2207 forward to wait_reading_process_input via DO_DISPLAY arg.
2208 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2209 object, only process output from that process; also inhibit
2210 running timers if DO_DISPLAY==-2.
2211
c438dc33
KS
22122004-08-17 Kim F. Storm <storm@cua.dk>
2213
2214 * process.c (process_send_signal): Fix last change--use
2215 _POSIX_VDISABLE instead of CVDISABLE when available.
2216
8afc13c6
RS
22172004-08-16 Richard M. Stallman <rms@gnu.org>
2218
2219 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2220 Set VQUIT and VINTR chars to the standard ones if they are unset.
2221 [AIX]: Don't do that here. And don't force VINTR to standard
2222 when SIGNALS_VIA_CHARACTERS.
2223
c438dc33 2224 * process.c (process_send_signal)
8afc13c6
RS
2225 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2226 Do nothing if the character is CVDISABLE.
2227
2228 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2229
c438dc33 2230 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2231 Force POSITION to be between BEGV and ZV.
2232
6dad1714
JPW
22332004-08-14 John Paul Wallington <jpw@gnu.org>
2234
2235 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2236
2237 * fileio.c (Fread_file_name): Doc fix.
2238
2239 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2240
2bd77330
LT
22412004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2242
2243 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2244
c90e7e43
LT
22452004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2246
2247 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2248 Qdisabled_command_hook.
c90e7e43 2249 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2250 Qdisabled_command_hook.
c90e7e43
LT
2251 (syms_of_keyboard): Ditto.
2252
81909a1a
LT
22532004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2254
2255 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2256 (syms_of_keymap) <key-translation-map>: Doc fixes.
2257
0cedd530
SM
22582004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2259
1725a7c9
SM
2260 * window.c (window_list_1): YAILOM.
2261
0cedd530
SM
2262 * fileio.c (make_temp_name): Handle multibyte prefixes.
2263
2515a131
LT
22642004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2265
2266 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2267 Doc fix.
2268
c8b20fb7
KH
22692004-08-03 Kenichi Handa <handa@m17n.org>
2270
2271 * coding.c (decode_coding_string): Adjust coding->consumed, and
2272 etc. with shrinked_bytes.
2273
fb8b092b
KS
22742004-08-03 Kim F. Storm <storm@cua.dk>
2275
2276 * indent.c (compute_motion): Fix check for full width window
2277 in non-window case. Do not count left truncation glyph on
2278 window systems.
2279
df133612
LT
22802004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2281
2282 * data.c (Finteractive_form): Doc fix.
2283
0f7a93c1
KS
22842004-08-02 Kim F. Storm <storm@cua.dk>
2285
2286 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2287 properly accounting for continuation glyph on non-window systems.
2288 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2289 actual window width/height if TOPOS is nil, properly accounting for
2290 continuation glyphs on non-window systems, and optional header lines.
2291 (vmotion): Let compute_motion calculate actual window width.
2292
2293 * window.c (window_scroll_line_based): Let compute_motion
2294 calculate actual window width.
2295
f491e1ed
KS
22962004-08-02 Kim F. Storm <storm@cua.dk>
2297
2298 * process.c (read_process_output): Use whole read buffer.
2299 Don't trigger adaptive read buffering on errors.
2300
83f64226
LT
23012004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2302
2303 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2304
2305 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2306
2307 * callint.c (Fcall_interactively): Doc fix.
2308
8afc13c6
RS
23092004-07-30 Richard M. Stallman <rms@gnu.org>
2310
2311 * abbrev.c (Fexpand_abbrev): Undo previous change.
2312
7c111482
KS
23132004-07-30 Kim F. Storm <storm@cua.dk>
2314
2315 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2316
ee945d08
LT
23172004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2318
2319 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2320
3f911c94
KS
23212004-07-27 Kim F. Storm <storm@cua.dk>
2322
2323 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2324 we have ensured that the glyph fits on the current line (or returned
2325 MOVE_LINE_CONTINUED otherwise).
2326
f29ff8c7
KS
23272004-07-26 Kim F. Storm <storm@cua.dk>
2328
2329 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2330 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2331 if target position is at end of display line but char is not a newline.
2332
81159bb9
RS
23332004-07-25 Richard M. Stallman <rms@gnu.org>
2334
ab431b61
RS
2335 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2336 instead of ON_VERTICAL_BORDER, when on scroll bar.
2337 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2338
2339 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2340
f29ff8c7 2341 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2342 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2343
2344 * alloc.c (check_cons_list): New function (contents commented out).
2345
fc820cc5
LT
23462004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2347
2348 * xfaces.c (Fcolor_supported_p): Doc fix.
2349
2350 * frame.c (Fselect_frame, Fset_frame_selected_window)
2351 (Fframe_visible_p, Fraise_frame): Doc fixes.
2352
289978b5
LT
23532004-07-24 Richard M. Stallman <rms@gnu.org>
2354
78819ebb 2355 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2356
2357 * fileio.c (Fwrite_region): Doc fix.
2358
2359 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2360
2361 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2362 only when a real abbrev is present.
2363
289978b5
LT
2364 * xfns.c (x_icon_verify): New function.
2365 (Fx_create_frame): Use it.
2366
63cc10ae
KS
23672004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2368
2369 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2370
36f826d4
KS
23712004-07-21 Kim F. Storm <storm@cua.dk>
2372
2373 * window.h (struct glyph_matrix): New members nrows_scale_factor
2374 and ncols_scale_factor.
2375
2376 * window.c (make_window): Initialize nrows_scale_factor and
2377 ncols_scale_factor members.
2378
2379 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2380 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2381 (required_matrix_height): Apply nrows_scale_factor.
2382 (required_matrix_width): Apply ncols_scale_factor.
2383
2384 * xdisp.c (display_line): Increment nrows_scale_factor and set
2385 fonts_changed_p if past last allocated row.
2386 (append_glyph, append_composite_glyph, produce_image_glyph)
2387 (append_stretch_glyph): Increment ncols_scale_factor and set
2388 fonts_changed_p if current area is full.
2389
5fc1c546
JD
23902004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2391
2392 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2393
cb7516e5
LT
23942004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2395
2396 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2397 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2398 (Fset_window_start, Fscroll_up, Fscroll_down)
2399 (Fother_window_for_scrolling, Fscroll_other_window)
2400 (Fsave_window_excursion, Fset_window_vscroll)
2401 (syms_of_window) <window-size-fixed>: Doc fixes.
2402
b6189c3b 24032004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2404
2405 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2406 ENCODE_SYSTEM for filenames.
2407
bfcf6608
ST
24082004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2409
2410 * mac.c (sys_select): Block input around call to
2411 ReceiveNextEvent to prevent breakage. Correctly handle
2412 blocking on event queue only by calling ReceiveNextEvent
2413 instead of select (since GUI events aren't on an fd).
2414 (sys_read): Remove function
2415 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2416
e082ac9d
ST
24172004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2418
2419 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2420 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2421
cb7516e5 2422 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2423 frame creation.
2424
2425 * keyboard.c: Undef SIGIO on Carbon
2426
2427 * atimer.c (alarm_signal_handler): Call alarm handlers after
2428 scheduling.
2429
2430 * eval.c (Feval): Remove quit_char test
2431
2432 * process.c (wait_reading_process_input): Remove clearing
2433 stdin for select call on process input.
2434
4b9da0fb
LT
24352004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2436
1204e81c
LT
2437 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2438 capitalization error in docstring.
4b9da0fb 2439
26503ad2
JB
24402004-07-17 Juanma Barranquero <lektu@terra.es>
2441
2442 * keyboard.c (not_single_kboard_state): Do nothing unless
2443 MULTI_KBOARD is defined.
2444
3751eb00
RS
24452004-07-17 Richard M. Stallman <rms@gnu.org>
2446
2447 * window.c (coordinates_in_window): Inside the window but outside
2448 its box to the L or R, return ON_VERTICAL_BORDER.
2449 (window_list_1): Rotate the list to start with WINDOW.
2450
2451 * print.c (print_preprocess): Test for print_depth at limit
2452 before entering in being_printed.
2453
2454 * keyboard.c (not_single_kboard_state): New function.
2455 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2456
2457 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2458 this kboard, and we delete its last frame, go to any_kboard_state.
2459
2460 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2461
b6189c3b 24622004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2463
2464 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2465 system before passing them to OS functions for display.
2466
0f6af254
DK
24672004-07-15 David Kastrup <dak@gnu.org>
2468
f9253326
KS
2469 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2470 Apparently fixes an abort condition.
0f6af254 2471
386c8f42
LT
24722004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2473
2474 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2475 instead of a cons.
2476
366511da
MB
24772004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2478
2479 * keyboard.c (echo_dash): Do nothing if there already is a dash
2480 at the end of the echo string.
2481
f85409d3
KS
24822004-07-12 Kim F. Storm <storm@cua.dk>
2483
2484 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2485 if GC_MARK_STACK.
2486
0ba2e87b
LT
24872004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2488
da38045d
LT
2489 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2490
0ba2e87b
LT
2491 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2492 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2493 (Freplace_buffer_in_windows, Fset_window_buffer)
2494 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2495 (syms_of_window): Expand docstring of `display-buffer-function'.
2496
5668fbb8
LT
24972004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2498
2499 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2500 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2501 that time values of the type (HIGH . LOW) are considered obsolete.
2502
a085bf9d
LT
25032004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2504
669de2fb
LT
2505 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2506 docstring.
2507
bac66325 2508 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2509
8e975df9
JPW
25102004-07-06 John Paul Wallington <jpw@gnu.org>
2511
2512 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2513
fa164e6a
JPW
2514 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2515
2bac9bb1
JD
25162004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2517
2518 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2519 instead of CGMainDisplayID (only in OSX 10.2 and later).
2520
316ef0dc
JPW
25212004-07-04 John Paul Wallington <jpw@gnu.org>
2522
2523 * fileio.c (read_file_name_completion_ignore_case): New variable.
2524 (syms_of_fileio): Declare and initialise it.
2525 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2526
2a1a35c6
EZ
25272004-07-03 Eli Zaretskii <eliz@gnu.org>
2528
2529 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2530 for event.x and event.y.
2531
33a72331
KH
25322004-07-01 Kenichi Handa <handa@m17n.org>
2533
2534 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2535 after getting a new string by pre-write-conversion.
2536
9238467d 25372004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2538
2539 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2540 (x_calc_absolute_position): Remove unused var `child'.
2541
2542 * xfaces.c (x_supports_face_attributes_p)
2543 (Fdisplay_supports_face_attributes_p): YAILOM.
2544 (tty_supports_face_attributes_p): Remove unused var `i'.
2545
2546 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2547 back_unibyte_ok.
2548
2549 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2550
2551 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2552
2553 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2554
f96ec754
AS
25552004-06-30 Andreas Schwab <schwab@suse.de>
2556
2557 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2558 (Finit_image_library): Pass LIBRARIES through to
2559 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2560 (lookup_image_type): Pass Qnil as second argument to
2561 Finit_image_library.
2562
78819ebb 2563 * lisp.h (Finit_image_library): Declare.
f96ec754 2564
59feca74 25652004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2566
31983645
AS
2567 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2568 (XTread_socket): Send mouse button events to the toolbox
2569 dispatcher even when the mouse is grabbed. Don't process window
2570 activate events for non-Emacs windows. Replace function calls to
2571 do_window_activate and do_window_deactivate with their contents.
2572 Reset mouse grabbing status when a window is deactivated.
59feca74 2573
c61278bb
ST
25742004-06-29 Steven Tamm <steventamm@mac.com>
2575
2576 * macterm.c (mac_get_emulated_btn)
2577 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2578 support to correctly mask out modifiers.
2579
c3762cbd
DK
25802004-06-29 David Kastrup <dak@gnu.org>
2581
2582 * search.c (Fset_match_data): Allow buffer before end of list
2583 which can happen if set-match-data is using a pre-consed list.
2584
c61278bb 25852004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2586
2587 * macterm.c (XTread_socket): Correctly set the frame position
2588 after the window is moved.
2589
74cdfe05
JD
25902004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2591
2592 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2593 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2594 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2595 so insensitive and activated icons look ok.
74cdfe05 2596
ef544dc8
JR
25972004-06-27 Jason Rumney <jasonr@gnu.org>
2598
2599 * w32fns.c (file_dialog_callback): Disable edit control if set
2600 to directories only on CDN_INITDONE message.
2601 (Fx_file_dialog): Default to directories only when prompt starts
2602 with "Dired".
2603
7b7990cc
KS
26042004-06-25 Kim F. Storm <storm@cua.dk>
2605
2606 * alloc.c (allocate_misc): Update total_free_markers.
2607 (free_misc): New function.
2608 (safe_alloca_unwind, free_marker): Use it.
2609
2610 * lisp.h (free_misc): Add prototype.
2611
2612 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2613
d8c379f8
RS
26142004-06-24 Richard M. Stallman <rms@gnu.org>
2615
2616 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2617 (syms_of_emacs): Lisp variables deleted.
2618
559cdd07
DK
26192004-06-23 David Kastrup <dak@gnu.org>
2620
94939b84
DK
2621 * search.c (Freplace_match): Adjust the match-data more thoroughly
2622 when replacing strings in the buffer.
2623 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2624 a buffer, add the buffer as last element to the match data.
2625 (Fset_match_data): If an additional element of the match-data is a
2626 buffer, restore it to last_thing_searched.
c8d09ad8 2627 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2628 (restore_match_data): Restore it again.
2629
dce417e7
LT
26302004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2631
2632 * keymap.c (Ftext_char_description): Doc fix.
2633 * doc.c (Fsnarf_documentation): Doc fix.
2634
ef54b2d0
KS
26352004-06-22 Kim F. Storm <storm@cua.dk>
2636
b5bc4d05
KS
2637 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2638
ef54b2d0
KS
2639 * lisp.h (struct Lisp_Save_Value): New member dogc.
2640 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2641 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2642 (SAFE_FREE_LISP): New macro.
2643
2644 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2645 (make_save_value): Init new dogc member.
2646 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2647
2648 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2649 SAFE_FREE_LISP macros.
2650
3d33d993
KS
26512004-06-22 Kim F. Storm <storm@cua.dk>
2652
2653 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2654 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2655 in that memory area are unknown to GC. Add comments.
2656
2657 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2658
5c917f98
KS
26592004-06-21 Kim F. Storm <storm@cua.dk>
2660
2661 * lisp.h (MAX_ALLOCA): Define here.
2662 (safe_alloca_unwind): Add prototype.
2663 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2664
2665 * alloc.c (safe_alloca_unwind): New function.
2666
2667 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2668
2669 * charset.c (Fstring): Use SAFE_ALLOCA.
2670
2671 * coding.c (MAX_ALLOCA): Remove define.
2672
2673 * data.c (MAX_ALLOCA): Remove define.
2674 (Faset): Use SAFE_ALLOCA.
2675
2676 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2677
2678 * fns.c (string_make_multibyte, string_to_multibyte)
2679 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2680 (MAX_ALLOCA): Remove define.
2681 (Fbase64_encode_region, Fbase64_encode_string)
2682 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2683 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2684 memory leak if encoding fails.
2685
2686 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2687
9a09408e
EZ
26882004-06-21 Eli Zaretskii <eliz@gnu.org>
2689
2690 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2691
376de739
RS
26922004-06-20 Richard M. Stallman <rms@gnu.org>
2693
2694 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2695
2696 * search.c (match_limit): Cleaner err msg when no match data available.
2697
2698 * window.c (syms_of_window): Doc fix.
2699
2700 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2701 for Vtransient_mark_mode.
2702
2703 * buffer.c (syms_of_buffer): Doc fix.
2704
acd81db9
DK
27052004-06-21 David Kastrup <dak@gnu.org>
2706
2707 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2708 and unbinding of `case-fold-search' according to
2709 `completion-ignore-case' around calls of string-match and
2710 predicates, respectively. Should give satisfactory performance
2711 in all relevant cases.
2712
f303762d
JD
27132004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2714
95911c74
JD
2715 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2716 clip_x/y_origin.
2717
a6cb6b78
JD
2718 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2719
f303762d
JD
2720 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2721
2722 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2723 on Mac OSX.
2724
bbdb2684
LT
27252004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2726
2727 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2728
5ea48b1c
KS
27292004-06-16 Kim F. Storm <storm@cua.dk>
2730
2731 * dispextern.h (Vimage_types): Remove extern.
2732
803aac3e
MB
27332004-06-16 Miles Bader <miles@gnu.org>
2734
2735 * image.c (lookup_image_type): Initialize image type if necessary.
2736
cdc97764
KS
27372004-06-15 Kim F. Storm <storm@cua.dk>
2738
c4a5739c
KS
2739 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2740 margin at top of window.
2741 (try_window_reusing_current_matrix): Calculate proper cursor position
2742 after scrolling up with non-zero scroll margin, as the old cursor
2743 position corresponds to value of PT before executing this command.
2744 (try_window_id): Consider scroll margin at bottom of window too;
2745 otherwise we fail to scroll when hl-line-mode is enabled.
2746
cdc97764
KS
2747 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2748 proper format and class is a lower-case word.
2749
5b166323
JD
27502004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2751
2752 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2753 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2754 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2755 xg_get_gdk_pixmap_and_mask.
cdc97764 2756
5b166323
JD
2757 * xterm.h (struct x_display_info): Typo in comment fixed.
2758
1ebd4f78
JB
27592004-06-14 Juanma Barranquero <lektu@terra.es>
2760
2761 * dispextern.h (Vimage_types): Make it conditional on
2762 HAVE_WINDOW_SYSTEM.
2763
2764 * image.c (Vimage_types): Move from xdisp.c.
2765 (Vimage_type_cache): New variable.
2766 (define_image_type): New argument indicating whether an image
2767 library was loaded; cache loaded status and return t on success,
2768 nil otherwise.
2769 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2770 (w32_delayed_load): New function to load an image library from a
2771 list of possible filenames.
2772 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2773 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2774 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2775 (Finit_image_library): New function, extracted from `init_image'.
2776 Try to initialize an image library on demand and cache whether we
2777 were successful or not.
2778 (syms_of_image): Initialize `Vimage_types' and
2779 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2780 Export `init-image-library'.
2781 (init_image): Remove initialization of all image types, except xbm
2782 and pbm.
2783
2784 * xdisp.c (Vimage_types): Delete (moved to image.c).
2785
904ee128
AS
27862004-06-14 Andreas Schwab <schwab@suse.de>
2787
2788 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2789 Avoid calling specbind when completion-regexp-list is empty.
2790
092de21d
RS
27912004-06-13 Richard M. Stallman <rms@gnu.org>
2792
2793 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2794 (re_wctype, re_iswctype, re_wctype_to_bit):
2795 Non-function definitions moved here from regex.c.
1ebd4f78 2796
092de21d
RS
2797 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2798 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2799 (re_wctype, re_iswctype, re_wctype_to_bit):
2800 Non-function definitions moved to regex.h.
2801
2802 * window.c (Fselect_window): Doc fix.
2803
2804 * syntax.c: Include regex.h.
2805 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2806 If requested, make a list of classes, then check the scanned
2807 chars for membership in them.
2808 (in_classes): New function.
2809 Doc fix.
2810
2811 * keyboard.c (cmd_error): Don't call any_kboard_state
2812 if inside a recursive edit level.
2813
28142004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2815
2816 * keyboard.c (command_loop): Call any_kboard_state before
2817 command_loop_2 when at top level.
2818
3ebc0939
AS
28192004-06-13 Andreas Schwab <schwab@suse.de>
2820
cea5d0d4
AS
2821 * print.c (print_object): Always use %ld for printing EMACS_INT.
2822
2823 * keyboard.c (cancel_hourglass_unwind): Return a value.
2824 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2825 (Fexecute_extended_command): Likewise.
2826
2827 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2828 avoid clashes.
2829 (SYNTAX): Likewise.
2830 (SYNTAX_WITH_FLAGS): Likewise.
2831 (SYNTAX_MATCH): Likewise.
2832
2833 * syntax.c (char_quoted): Avoid warning about undefined operation.
2834 (find_defun_start): Likewise.
2835 (scan_lists): Likewise.
2836 (INC_FROM): Likewise.
2837 (scan_sexps_forward): Likewise.
2838
be8c4ce4
AS
2839 * image.c: Include <ctype.h>.
2840
3ebc0939
AS
2841 * xfaces.c (face_attr_equal_p): Declare parameters.
2842
6fb41b5b
KH
28432004-06-13 Kenichi Handa <handa@m17n.org>
2844
2845 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2846
fc3095ce
EZ
28472004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2848
2849 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2850
66189a40
KH
28512004-06-12 Kenichi Handa <handa@m17n.org>
2852
2853 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2854 ccl_prog_stack_struct and update it.
2855 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2856 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2857 ccl->eof_ic on EOF.
2858 (ccl_debug_hook): New function.
2859 (struct ccl_prog_stack): New member eof_ic.
2860 (ccl_driver): Handle EOF in subrountine call correctly.
2861
28622004-06-11 Kenichi Handa <handa@m17n.org>
2863
2864 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2865
1da71023
KS
28662004-06-11 Kim F. Storm <storm@cua.dk>
2867
2868 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2869
e9efcef4
JB
28702004-06-11 Juanma Barranquero <lektu@terra.es>
2871
2872 * keyboard.c (Fposn_at_point): Doc fix.
2873
9b9ceb61
DK
28742004-06-11 David Kastrup <dak@gnu.org>
2875
2876 * search.c (match_limit): Don't flag an error if match-data
2877 exceeding the allocated search_regs.num_regs gets requested, just
2878 return Qnil.
2879
6e87ac8f
MB
28802004-06-08 Miles Bader <miles@gnu.org>
2881
2882 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2883
0b0dea7b
JB
28842004-06-07 Juanma Barranquero <lektu@terra.es>
2885
2886 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2887 (Fcurrent_time_string, Fcurrent_time_zone)
2888 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2889
a0a23346
MB
28902004-06-07 Miles Bader <miles@gnu.org>
2891
08384afd 2892 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2893 (push_named_merge_point): New function.
2894 (merge_named_face): New function.
2895 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2896 Use `merge_named_face'.
2897 (merge_face_inheritance): Function removed.
c8d09ad8 2898 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2899 Add new `err_msgs' and `named_merge_points' args. Return error
2900 status. Only print error messages if ERR_MSGS is true. Don't try to
2901 do :inherit attribute validation.
2902 (merge_face_heights): Handle `unspecified' in both directions.
2903 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2904 Call `merge_face_ref' instead of `merge_face_inheritance'.
2905 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2906 (compute_char_face, face_at_buffer_position)
2907 (face_at_string_position): Call `merge_face_ref' instead of
2908 `merge_face_vector_with_property'.
2909
12d5b185
KH
29102004-06-07 Kenichi Handa <handa@m17n.org>
2911
2912 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2913 the necessary places.
2914
2e2d7ee6
KS
29152004-06-07 Kim F. Storm <storm@cua.dk>
2916
2917 * process.c (Fdelete_process): Undo 2004-05-28 change.
2918 Instead, call status_notify also for network process.
2919 (status_message): Use process instead of status as arg.
2920 Give messages "deleted" or "connection broken by remote peer" for
2921 an exited network process.
2922 (status_notify): Change call to status_message.
2923 (read_process_output): Increase readmax to 4096. Do not increase
2924 buffer size for datagram channels (default is now large enough).
2925
fcf0d299
ST
29262004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2927
2928 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2929 problem due to newly defined variable.
2930
0722292b
MB
29312004-06-06 Miles Bader <miles@gnu.org>
2932
2933 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2934 immediately if non-interactive or not initialized.
2935
ddfb8369
RS
29362004-06-05 Richard M. Stallman <rms@gnu.org>
2937
2938 * minibuf.c (Fcompleting_read): Doc fix.
2939
57015754
AS
29402004-06-05 Andreas Schwab <schwab@suse.de>
2941
2942 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2943
23715ea6
JB
29442004-06-05 Juanma Barranquero <lektu@terra.es>
2945
2946 * keymap.c (Fdescribe_vector): Fix docstring.
2947 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2948
8e330b22
MB
29492004-06-05 Miles Bader <miles@gnu.org>
2950
2951 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2952 attributes have different values than the default face.
2953
9742a3a6
EZ
29542004-06-04 Eli Zaretskii <eliz@gnu.org>
2955
2956 * xfaces.c (x_supports_face_attributes_p): Make this function
2957 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2958 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2959 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2960
9717e36c
MB
29612004-06-04 Miles Bader <miles@gnu.org>
2962
2963 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2964 from Ftty_supports_face_attributes_p.
2965 (x_supports_face_attributes_p): New function.
2966 (Ftty_supports_face_attributes_p): Function deleted.
2967 (Fdisplay_supports_face_attributes_p): New function.
2968 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2969 (face_attr_equal_p): New function.
9717e36c
MB
2970 (lface_equal_p): Use it.
2971
52deb19f
JB
29722004-06-03 Juanma Barranquero <lektu@terra.es>
2973
2974 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2975 (Vw32_color_map): Fix typo in docstring.
2976 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2977 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2978 Make argument names match their use in docstring.
2979
86d373e6
JB
29802004-06-02 Juanma Barranquero <lektu@terra.es>
2981
2982 Work around bugs/problems with MinGW builds of graphics libraries
2983 called from MSVC builds of Emacs.
2984
2985 * image.c (lookup_image): Make pointer to img static.
2986 (png_read_from_memory): Disable "global" optimization.
2987
2fb0ce67
SM
29882004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2989
c8d09ad8
SM
2990 * eval.c (Fcondition_case): Fix usage. Simplify.
2991
2fb0ce67
SM
2992 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2993
50bf7673
ST
29942004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2995
2996 * macfns.c: Don't include ccl.h.
2997 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2998 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2999 TextUtils.h.
c8d09ad8 3000 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3001 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3002 display height/width.
3003 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3004 (unwind_create_tip_frame, compute_tip_xy): New functions.
3005 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3006 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3007 and last_show_tip_args.
2fb0ce67 3008
50bf7673
ST
3009 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3010 (Cursor, No_Cursor): New defines.
c8d09ad8 3011 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3012 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3013
3014 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3015
3016 * macterm.c: Don't include Gestalt.h.
3017 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3018 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3019 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3020 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3021 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3022 (construct_mouse_click, XTmouse_position)
3023 (x_scroll_bar_report_motion, x_calc_absolute_position)
3024 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3025 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3026 (note_mouse_movement): Clear the mouse face and reset the pointer
3027 shape when the pointer goes outside the frame without grabbing.
3028 (mac_front_window): New function.
3029 (mac_window_to_frame): New macro.
3030 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3031 (do_window_activate, do_window_deactivate, do_app_resume)
3032 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3033 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3034 (mac_check_for_quit_char): Use mac_front_window and/or
3035 mac_window_to_frame.
3036 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3037 scroll-bar click event.
3038 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3039 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3040 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3041 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3042 (do_window_update): Don't do anything if the updated window is the
3043 tooltip window.
3044 (do_mouse_moved): Handle mouse movement events here (previously in
3045 XTread_socket). Clear the mouse face if
3046 dpyinfo->mouse_face_hidden is set.
3047 (do_os_event, do_events): Remove (now in XTread_socket).
3048 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3049 Loop until all the events in the queue are processed.
3050 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3051 contents of do_os_event and do_events. Remove mouse movement
3052 handling (now in do_mouse_moved). Add the case where
3053 Vmouse_highlight has an integer value.
3054 (NewMacWindow): Remove.
3055 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3056 excess initializations.
3057 (make_mac_terminal_frame): Previous initializations in
3058 make_mac_frame are moved here.
c8d09ad8
SM
3059 (mac_initialize_display_info):
3060 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3061
3062 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3063 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3064
08fd1251
RS
30652004-05-29 Richard M. Stallman <rms@gnu.org>
3066
3067 * lisp.h (truncate_undo_list): Update decl.
3068
3069 * alloc.c (undo_outer_limit): New variable.
3070 (syms_of_alloc): Defvar it.
3071 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3072
3073 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3074
3075 * alloc.c (lisp_align_malloc): Check for base == 0
3076 regardless of HAVE_POSIX_MEMALIGN.
3077 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3078
227ef0ff
SM
30792004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3080
3081 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3082 (marker_blocks_pending_free): Remove.
3083 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3084 Mark the undo lists after claning them up.
3085 Don't free block in marker_blocks_pending_free.
3086 (mark_buffer): Don't mark undo_list.
3087 (gc_sweep): Sweep hash-tables and strings first.
3088 Do free marker blocks that are empty.
3089
034a6113
SM
30902004-05-28 Jim Blandy <jimb@redhat.com>
3091
3092 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3093 after 'case wordend'. For symbeg and symend, print to stderr,
3094 like the other cases.
3095
33594a8d
NF
30962004-05-28 Noah Friedman <friedman@splode.com>
3097
3098 * process.c (Fdelete_process): Do not call remove_process.
3099
ce50a847
SM
31002004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3101
3102 * alloc.c (struct backtrace): Remove.
3103 (Fgarbage_collect): Use the new mark_backtrace.
3104
3105 * eval.c (mark_backtrace): New function.
3106
3107 * minibuf.c (run_exit_minibuf_hook): New function.
3108 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3109 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3110
1e8dae36
KS
31112004-05-27 Kim F. Storm <storm@cua.dk>
3112
3113 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3114 over display properties, e.g. images, that replace buffer text.
3115
846faa3b
KS
31162004-05-25 Kim F. Storm <storm@cua.dk>
3117
3118 * alloc.c (marker_blocks_pending_free): New var.
3119 (gc_sweep): Store free marker blocks on that list.
3120 (Fgarbage_collect): Free them after undo-list cleanup.
3121
3122 * process.c (wait_reading_process_input): Check connect_wait_mask
3123 before actually accepting connection in case it has already been
3124 accepted due to recursion.
3125
b6189c3b 31262004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3127
ce50a847
SM
3128 * coding.c (Fset_safe_terminal_coding_system_internal):
3129 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3130
71d5a208
RS
31312004-05-22 Richard M. Stallman <rms@gnu.org>
3132
3133 * alloc.c (Fmake_string): Doc fix.
3134
3135 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3136 and the alist pairs too.
3137
3138 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3139
3140 * emacs.c (main): Update copyright year.
3141
3142 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3143
3144 * insdel.c (del_range_2, replace_range): Don't write an anchor
3145 if the gap is empty.
3146
3147 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3148 scroll-down-aggressively is small but positive, put point
3149 near the screen edge.
3150
f63fd14e
JB
31512004-05-22 Juanma Barranquero <lektu@terra.es>
3152
3153 * keymap.c (Fdefine_key): Doc fix.
3154
4d12067c
KS
31552004-05-22 Kim F. Storm <storm@cua.dk>
3156
3157 * alloc.c (struct backtrace): Add debug_on_exit member.
3158 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3159 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3160 the removed cons cells.
3161 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3162 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3163 any cons cells pointing to unallocated stings.
3164 Do not lisp_free any marker blocks, as there may still be pointers
3165 to them from buffer undo lists at this stage of GC.
3166
3167 * keyboard.c (struct backtrace): Add debug_on_exit member.
3168 (Fcommand_execute): Clear it.
3169
931285e2
LT
31702004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3171
3172 * intervals.c (lookup_char_property): Do not prematurely return nil.
3173
669fa600
SM
31742004-05-19 Jim Blandy <jimb@redhat.com>
3175
3176 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3177 beginning and end of symbols.
4d12067c 3178
669fa600
SM
3179 * regex.c (enum syntaxcode): Add Ssymbol.
3180 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3181 (re_opcode_t): New opcodes `symbeg' and `symend'.
3182 (print_partial_compiled_pattern): Print the new opcodes properly.
3183 (regex_compile): Parse the new operators.
ce50a847 3184 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3185 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3186 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3187 (re_match_2_internal): Match symbeg and symend.
3188
3189 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3190
0d8c2e5c
KS
31912004-05-19 Kim F. Storm <storm@cua.dk>
3192
3193 * .gdbinit (xsymbol): Fix last change.
3194
669fa600
SM
31952004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3196
3197 * .gdbinit (xprintstr): New fun.
3198 (xstring, xprintsym): Use it.
3199
3200 * w32proc.c (create_child): Use INTMASK.
3201
3202 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3203 unmarked elements of the undo list.
3204
9a6a4c40
DP
32052004-05-18 David Ponce <david@dponce.com>
3206
3207 * print.c (print): Reset print_depth before to call print_object.
3208
f3c4ec74
JR
32092004-05-18 Jason Rumney <jasonr@gnu.org>
3210
3211 * w32console.c: Prefix RIF functions with w32con_ to avoid
3212 namespace clash with functions in term.c and w32term.c.
3213
3214 * w32menu.c (add_menu_item, w32_menu_display_help)
3215 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3216
0d8c2e5c 3217 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3218
6be49c3a
EZ
32192004-05-18 Eli Zaretskii <eliz@gnu.org>
3220
4d0b9a0a
EZ
3221 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3222
6be49c3a
EZ
3223 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3224 with make_number.
3225 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3226 with XINT.
3227
0bc90bba
KS
32282004-05-18 Kim F. Storm <storm@cua.dk>
3229
89d19988
KS
3230 * blockinput.h (INPUT_BLOCKED_P): New macros.
3231
3232 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3233 (Ftop_level): Unblock input if blocked.
3234
0bc90bba
KS
3235 * buffer.h (GET_OVERLAYS_AT): New macro.
3236 * msdos.c (IT_note_mouse_highlight): Use it.
3237 * textprop.c (get_char_property_and_overlay): Use it.
3238 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3239 * xfaces.c (face_at_buffer_position): Use it.
3240
3241 * print.c (print_object): Increase buf size.
3242
653bd0f6
JR
32432004-05-17 Jason Rumney <jasonr@gnu.org>
3244
3245 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3246 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3247 Lisp_Object using i member.
3248 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3249 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3250 consistently.
3251
3252 * w32proc.c (create_child): Use make_number instead of masking pid.
3253
3254 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3255 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3256 Use EQ to compare Lisp_Objects.
3257 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3258
3259 * w32term.c (w32_num_mouse_buttons): Rename from
3260 Vw32_num_mouse_buttons and make it an int.
3261
3262 * w32.c (init_environment): Use it.
3263
3264 * w32fns.c (w32_wnd_proc): Likewise.
3265
3266 * w32proc.c (w32_pipe_read_delay): Rename from
3267 Vw32_pipe_read_delay and make it an int.
3268
3269 * w32.c (_sys_read_ahead): Use it.
3270
3271 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3272
3273 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3274
3275 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3276 (key_event): Don't mix Lisp_Object and int.
3277
3278 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3279
3280 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3281 modifiers in language change event.
3282
54b53ba7
KS
32832004-05-17 Kim F. Storm <storm@cua.dk>
3284
3285 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3286 Such objects may be freed markers which still exist on an undo list.
3287
6e86a75d
JB
32882004-05-16 Juanma Barranquero <lektu@terra.es>
3289
3290 * data.c (Fset_default): Make argument names match their use in
3291 docstring.
3292
fc80da24
AS
32932004-05-15 Andreas Schwab <schwab@suse.de>
3294
3295 * emacs.c (gdb_array_mark_flag): Define.
3296 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3297
c1380aa6
EZ
32982004-05-15 Eli Zaretskii <eliz@gnu.org>
3299
3300 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3301 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3302 defined for the MS-DOS build.
3303
89458937
SM
33042004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3305
3306 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3307
08020f9a
KH
33082004-05-14 Kenichi Handa <handa@m17n.org>
3309
3310 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3311
a433994a
ST
33122004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3313
3314 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3315 section to frame.c section.
3316 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3317 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3318
a433994a 3319 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3320
a433994a 3321 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3322
a433994a
ST
3323 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3324 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3325 (XTread_socket): Fix int/Lisp_Object mixup.
3326 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3327
a433994a
ST
3328 * macterm.h (struct frame, struct face, struct image)
3329 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3330 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3331 Add prototypes.
a433994a 3332
b51a51b9
KS
33332004-05-14 Kim F. Storm <storm@cua.dk>
3334
3335 * process.c (wait_reading_process_input): Make reentrant.
3336 Make Available and Connecting non-static. Save and restore value
3337 of waiting_for_user_input_p.
3338
2bde1dd8
KS
33392004-05-13 Kim F. Storm <storm@cua.dk>
3340
3341 * keyboard.c (mark_kboards): Don't mark x and y members
3342 that are overloaded in selection request events.
3343
a267ab4d
SM
33442004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3345
3346 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3347
eb15ce9e
GM
33482004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3349
3350 * window.c (Fdisplay_buffer, Fsplit_window)
3351 (split-height-threshold): Doc fix.
3352
7fc92635
JB
33532004-05-13 Juanma Barranquero <lektu@terra.es>
3354
3355 * xfaces.c (Ftty_supports_face_attributes_p)
3356 (Finternal_copy_lisp_face): Fix typo in docstring.
3357 (Finternal_get_lisp_face_attribute): Fix docstring.
3358
1ec2a572
JD
33592004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3360
3361 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3362
ae9292e0
ST
33632004-05-11 Steven Tamm <steventamm@mac.com>
3364
3365 * macfns.c (Fx_create_frame): Default to using tool-bar by
3366 setting tool-bar-lines to 1 in default-frame-alist.
3367
33682004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3369
3370 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3371 (xpm_get_color_table_v, xpm_make_color_table_h)
3372 (xpm_put_color_table_h, xpm_get_color_table_h)
3373 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3374 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3375 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3376
fe97e8df
ST
33772004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3378
a267ab4d 3379 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3380 instead of FRAME_X_P
3381
b47e779e
KS
33822004-05-11 Kim F. Storm <storm@cua.dk>
3383
3384 * process.c (read_process_output): Grow decoding_buf when needed;
3385 this could cause a crash in allocate_string and compact_small_strings.
3386
cdc9b845
EZ
33872004-04-29 Jim Blandy <jimb@redhat.com>
3388
3389 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3390 against proper opcode.
3391
aa7094ba
JB
33922004-05-10 Juanma Barranquero <lektu@terra.es>
3393
3394 * process.c (Fstart_process): Fix docstring.
3395
3396 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3397 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3398 (Fsplit_char, Fchar_charset): Make argument names match their use
3399 in docstring.
3400
e109331a
RS
34012004-05-10 Richard M. Stallman <rms@gnu.org>
3402
3403 * print.c (print_preprocess): Use being_printed, loop_count and
3404 halftail to detect overdeep nesting and cyclic cdr chains.
3405
9a28b921
AS
34062004-05-10 Andreas Schwab <schwab@suse.de>
3407
78819ebb 3408 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3409
3410 * fileio.c (Frename_file): Remove extra argument in call to
3411 Fmake_symbolic_link.
3412
e2c02c1a
KS
34132004-05-10 Kim F. Storm <storm@cua.dk>
3414
3415 * xdisp.c (calc_line_height_property): Use string position when
3416 object is a string.
3417
cfe9d13e
KH
34182004-05-10 Kenichi Handa <handa@m17n.org>
3419
a57e8159
KH
3420 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3421 inhibit-modification-hooks to t temporarily before calling
3422 Ferase_buffer.
3423
3424 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3425 inhibit-modification-hooks to t temporarily before calling
3426 Ferase_buffer.
3427
3428 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3429 inhibit-modification-hooks to t temporarily before calling
3430 Ferase_buffer.
3431
cfe9d13e
KH
3432 * fns.c (count_combining): Delete it.
3433 (concat): Don't check combining bytes.
3434
ceb96489
JR
34352004-05-09 Jason Rumney <jasonr@gnu.org>
3436
3437 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3438 (globals_of_w32fns): Set it.
3439
b6189c3b 34402004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3441
3442 * data.c (Fquo): Simplify.
3443
28712a21
JB
34442004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3445
3446 * data.c (Fquo): If any argument is float, do the computation in
3447 floating point.
3448
0f0af7a8
JB
34492004-05-08 Juanma Barranquero <lektu@terra.es>
3450
88214ef6
JB
3451 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3452 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3453 Fix spelling of Emacs on docstring.
3454 (Fset_process_coding_system, Fprocess_coding_system)
3455 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3456 Make argument names match their use in docstring.
3457 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3458 Fix docstring.
3459
0f0af7a8
JB
3460 * editfns.c (Finsert_buffer_substring): Make argument names match their
3461 use in docstring.
3462
3463 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3464
2a316a84
ST
34652004-05-07 Steven Tamm <steventamm@mac.com>
3466
3467 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3468 around call to ReceiveEvent to avoid certain crashes.
3469
34702004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3471
2a316a84
ST
3472 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3473 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3474 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3475 Save/restore the current graphics port and device handle when
3476 drawing into an offscreen graphics world.
3477
3478 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3479 (gif_load): Likewise.
3480
ab80314b
JB
34812004-05-07 Juanma Barranquero <lektu@terra.es>
3482
3483 * window.c (Fset_window_buffer): Fix docstring.
3484
70646bb5
TTN
34852004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3486
3487 * emacs.c (main) [VMS]: Fix var ref.
3488
b6189c3b 34892004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3490
3491 * data.c (Fsetq_default): Fix docstring.
3492
279d3293
JR
34932004-05-06 Jason Rumney <jasonr@gnu.org>
3494
3495 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3496 to avoid name clash.
3497
f72b5416
JD
34982004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3499
3500 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3501 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3502 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3503
6ab66799
KS
35042004-05-04 Kim F. Storm <storm@cua.dk>
3505
3506 * xdisp.c (Qtotal): New var.
3507 (syms_of_xdisp): Intern and staticpro it.
3508 (calc_line_height_property): New arg total. Set it if
3509 line-spacing property has format (total . VALUE).
3510 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3511 Handle total line-spacing property.
3512
ab2d724b
JD
35132004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3514
3515 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3516 "under" scroll bar when size/position changes.
3517
238add5e
JR
35182004-05-03 Jason Rumney <jasonr@gnu.org>
3519
3520 * makefile.nt: Remove.
3521
1644f4e4
EZ
35222004-05-02 Eli Zaretskii <eliz@gnu.org>
3523
a267ab4d
SM
3524 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3525 Avoid compiler warnings.
05fdbeb8 3526
1644f4e4
EZ
3527 * Makefile.in (region-cache.o): Depend on config.h.
3528
b6189c3b 35292004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3530
3531 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3532 with continuation lines, too.
3533
2b98b088
TTN
35342004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3535
3536 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3537
d9bf7950
SM
35382004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 * xdisp.c (calc_line_height_property): YAILOM (yet another
3541 int/Lisp_Object mixup).
3542
affa509c
EZ
35432004-05-01 Eli Zaretskii <eliz@gnu.org>
3544
3545 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3546 undo bad effect of pack(4) in some versions of system headers.
3547
07c07cfe
JR
35482004-05-01 Jason Rumney <jasonr@gnu.org>
3549
3550 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3551
e71caa4e
KS
35522004-04-30 Kim F. Storm <storm@cua.dk>
3553
3554 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3555 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3556
3557 * dispextern.h (struct it): Remove member use_default_face.
3558 Add members override_ascent, override_descent, override_boff.
3559
3560 * xdisp.c (init_iterator): Handle line-spacing float value.
3561 Initialize override_ascent member.
3562 (append_space_for_newline): Reset override_ascent.
3563 Remove use_default_face.
3564 (calc_line_height_property): New function to calculate value of
3565 line-height and line-spacing properties. Look at overlays, too.
3566 Set override_ascent, override_descent, override_boff members when
3567 using another face than the current face. Float values are now
3568 relative to the frame default font, by default; accept a cons
3569 of ratio and face name to specify value relative to a specific face.
3570 (x_produce_glyphs): Use calc_line_height_property.
3571 Use override_ascent etc. when set to handle different face heights.
3572 A negative line-spacing property value is interpreted as a total
3573 line height, rather than inter-line spacing.
3574 (note_mouse_highlight): Allocate room for 40 overlays initially.
3575
0fddae66
SM
35762004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3577
3578 * data.c (Fsubr_name): New fun.
3579 (syms_of_data): Defsubr it.
3580
712d23dc
KS
35812004-04-29 Kim F. Storm <storm@cua.dk>
3582
3583 * xdisp.c (null_glyph_slice): New var.
3584 (append_glyph, append_composite_glyph, append_stretch_glyph):
3585 Use it to initialize glyph slice.
3586
033ad8c6
SM
35872004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3588
3589 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3590 (on_hot_spot_p): Make sure we always return a value.
3591 (Flookup_image_map): Remove unused var ix and iy.
3592 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3593
93397360
EZ
35942004-04-27 Eli Zaretskii <eliz@gnu.org>
3595
3596 * msdos.c (init_environment): If one of the TMP... environment
3597 variables is set to a drive letter without a trailing slash,
3598 append a slash.
3599
0c54865e
EZ
36002004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3601
3602 * editfns.c (lisp_time_argument): Provide externally.
3603
3604 * fileio.c (Fset_file_times): New function.
3605 (syms_of_fileio): Intern and staticpro it.
3606
d3b111bd
KS
36072004-04-27 Kim F. Storm <storm@cua.dk>
3608
07dc1231
KS
3609 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3610 header line strings.
3611
360fe9d2
KS
3612 * dispextern.h (struct it): New member use_default_face.
3613
d3b111bd
KS
3614 * xdisp.c (Qline_height): New variable.
3615 (syms_of_xdisp): Intern and staticpro it.
3616 (append_space_for_newline): Partially undo 2004-04-25 change;
3617 add default_face_p arg, and restore callers.
3618 Clear it->use_default_face after use.
3619 (x_produce_glyphs): Set default font for ascii char if
3620 it->use_default_font is set. Change line-spacing property to set
3621 just extra line spacing. Handle new line-height property.
3622
0448588b
AS
36232004-04-26 Andreas Schwab <schwab@suse.de>
3624
3625 * print.c (print_object): Print non-ascii characters in bool
3626 vector representation as octal escapes.
3627
3628 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3629 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3630 bool vectors.
3631 * lread.c (read1): Likewise.
3632 * alloc.c (Fmake_bool_vector): Likewise.
3633 * data.c (Faref, Faset): Likewise.
3634 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3635 (mapcar1): Likewise.
d3b111bd 3636
536d6baa
ST
36372004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3638
3639 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3640
ae11577a
MB
36412004-04-26 Miles Bader <miles@gnu.org>
3642
3643 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3644
e198ba87
JB
36452004-04-26 Juanma Barranquero <lektu@terra.es>
3646
3647 * buffer.c (Fpop_to_buffer): Fix docstring.
3648
f3d5f92d 36492004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3650
f3d5f92d
ST
3651 * lread.c (init_lread): Don't display missing lisp directory
3652 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3653 may be built without correct installation path.
f3d5f92d 3654
03e35edc
KS
36552004-04-25 Kim F. Storm <storm@cua.dk>
3656
9ff3aa31
KS
3657 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3658
3659 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3660
03e35edc
KS
3661 * xdisp.c (append_space_for_newline): Rename from append_space.
3662 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3663 (x_produce_glyphs): Handle line-spacing property on newline char.
3664 If value is t, adjust ascent and descent to fit current row height.
3665 If value is an integer or float, set extra_line_spacing to integer
3666 value, or to float value x current line height.
3667
f24814e0
KH
36682004-04-23 Kenichi Handa <handa@m17n.org>
3669
3670 * fontset.c (Finternal_char_font): If POSITION is nil, return
3671 font for displaying CH with the default face.
3672
d814862a
JB
36732004-04-23 Juanma Barranquero <lektu@terra.es>
3674
3675 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3676
063a45c5
SM
36772004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3678
3679 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3680 Don't make assumptions about the relative place of i and val.
3681 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3682
ae7ab2d3
KS
36832004-04-21 Kim F. Storm <storm@cua.dk>
3684
3685 * dispextern.h (struct glyph_slice): New struct.
3686 (struct glyph): New member slice.
3687 (GLYPH_SLICE_EQUAL_P): New macro.
3688 (GLYPH_EQUAL_P): Use it.
3689 (struct glyph_string): New member slice.
3690 (struct it_slice): New struct.
3691 (struct it): New member slice, add member to stack too.
3692 New member constrain_row_ascent_descent_p.
3693 (image_ascent): Add prototype.
3694
3695 * dispnew.c (buffer_posn_from_coords): Return full image width
3696 and height even for image slices (posn is relative to full image).
3697 (marginal_area_string): Adjust x0,y0 for image slice.
3698
3699 * image.c (image_ascent): Add slice arg; calculate ascent for
3700 image slice (or full image).
3701
3702 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3703 (syms_of_keyboard): Defsubr them.
3704
3705 * lisp.h (pos_visible_p): Fix prototype.
3706
c62aec78 3707 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3708 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3709 (x_draw_image_foreground, x_draw_image_relief)
3710 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3711 Draw sliced images.
3712
3713 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3714 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3715 (x_draw_image_foreground, x_draw_image_relief)
3716 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3717 Draw sliced images.
3718
3719 * w32term.h (image_ascent): Remove prototype.
3720
3721 * window.c (Fpos_visible_in_window_p): Return pixel position if
3722 PARTIALLY arg is non-nil. Simplify. Doc fix.
3723 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3724 to return/set vscroll in pixels.
3725
3726 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3727
3728 * xdisp.c (Qslice): New variable.
3729 (syms_of_xdisp): Intern and staticpro it.
3730 (pos_visible_p): Return pixel position in new x and y args.
3731 (init_iterator): Reset it->slice info.
3732 (handle_display_prop): Parse (slice ...) property.
3733 (push_it, pop_it): Save/restore slice info.
3734 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3735 force repositioning of tall row if window is vscrolled, as that
3736 would reset vscroll.
3737 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3738 increasing row height if row is non-empty.
3739 (fill_image_glyph_string): Copy slice info.
3740 (take_vertical_position_into_account): Simplify.
3741 (produce_image_glyph): Handle iterator slice info, setup glyph
3742 slice info. Do not force minimum line height.
3743 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3744 do not increase height (ascent/descent) of non-empty row when
3745 adding normal character glyph; instead reduce glyph ascent/descent
3746 appropriately; if row is higher than current glyph, adjust glyph
3747 descent/ascent to reposition glyph within the existing row.
3748 Likewise, when char is newline, only set ascent/descent if row is
3749 currently empty.
3750 (note_mouse_highlight): Handle hotspots with sliced image.
3751
3752 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3753 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3754 (x_draw_image_foreground, x_draw_image_relief)
3755 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3756 Draw sliced images.
3757
3758 * xterm.h (image_ascent): Remove prototype.
3759
d58f8753
SM
37602004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3761
3762 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3763
4ce2719d
JPW
37642004-04-20 John Paul Wallington <jpw@gnu.org>
3765
3766 * fns.c (Fassoc, Feql): Fix indentation.
3767
d58f8753 3768 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3769
95f8c3b9
JPW
37702004-04-19 John Paul Wallington <jpw@gnu.org>
3771
3772 * fns.c (Feql): New function.
d58f8753 3773 (syms_of_fns): Defsubr it.
95f8c3b9 3774
b7e85537
JR
37752004-04-18 Jason Rumney <jasonr@gnu.org>
3776
3777 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3778 after closing the clipboard.
3779
5a72efd4
LT
37802004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3781
3782 * buffer.c (Fbuffer_base_buffer): Doc fix.
3783
20dc8583
KS
37842004-04-17 Kim F. Storm <storm@cua.dk>
3785
60962ec4
KS
3786 * keymap.c (Fkey_description): Add optional PREFIX arg.
3787 Combine prefix with KEYS to make up the full key sequence to describe.
3788 Correlate meta_prefix_char and following (simple) key to describe
3789 as meta modifier. All callers changed.
3790 (describe_map): Rename arg `keys' to `prefix'. Remove local
3791 `elt_prefix' var. Use Fkey_description with prefix instead of
3792 elt_prefix combined with Fsingle_key_description.
3793 (describe_vector): Declare static. Replace arg `elt_prefix' with
3794 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3795 if !KEYMAP_P. Use Fkey_description with prefix instead of
3796 Fsingle_key_description.
3797
3798 * keymap.h (Fkey_description): Fix prototype.
3799 (describe_vector): Remove prototype.
3800
409368b9
KS
3801 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3802
20dc8583
KS
3803 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3804 (png_load): Fix calculation of transparent background color on X
3805 and W32 platforms.
3806
75c5501b
JB
38072004-04-16 Juanma Barranquero <lektu@terra.es>
3808
3809 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3810 not too large before computing how much to scroll.
3811
da879ae8
SM
38122004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3813
3814 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3815
d01ca4a8
LT
38162004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3817
3818 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3819 Add hyperlink to Elisp manual to the docstring.
3820
572943b3
SM
38212004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3822
3823 * callint.c (fix_command): Use XDCR.
3824
5e30a0fb
NR
38252004-04-14 Nick Roberts <nick@nick.uklinux.net>
3826
3827 * window.c (Fget_lru_window): Doc fix.
3828
a27ddfaf
KS
38292004-04-14 Kim F. Storm <storm@cua.dk>
3830
3831 * editfns.c (Fformat): Fix allocation size of precision array.
3832
3833 * dispnew.c (update_window): Only set changed_p if
3834 scrolling_window actually did scroll.
3835 (scrolling_window): Only return 1 if we actually did scroll.
3836
3837 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3838 height to glyph height when cursor row is not fully visible.
3839 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3840 failure in case row is higher than window. Callers changed.
3841 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3842 Try to scroll partially visible, higher-than-window cursor row.
3843 (redisplay_window): Always try to scroll partially visible,
3844 higher-than-window cursor row - both initially and again with
3845 centering_position = 0.
3846 Clear desired matrix before retrying with centering_position = 0.
3847
da879ae8
SM
38482004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3849
3850 * syntax.c (scan_lists): Simplify backward string scan.
3851 Fix off-by-one boundary check for string and comment fences.
3852
5fc16e8e
SM
38532004-04-13 Joe Buehler <jbuehler@hekimian.com>
3854
3855 * sheap.c, unexcw.c: New files.
3856
c9aac8e6
LT
38572004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3858
3859 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3860 base buffer has been killed. Correct the error message if the
3861 base buffer does not exist.
3862
1e88a355
SM
38632004-04-12 Joe Buehler <jbuehler@hekimian.com>
3864
3865 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3866 Cygwin itself. Add support for Xaw3d scrollbars.
3867
3868 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3869
3870 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3871
3872 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3873 before Cygwin unexec.
3874
3875 * Makefile.in: Link changes for Cygwin unexec() support.
3876
8dbff9a0
AS
38772004-04-12 Andreas Schwab <schwab@suse.de>
3878
3879 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3880
54dffe35
LT
38812004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3882
3883 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3884 IGNORE argument equals NAME. Doc fix.
3885
99a72bdf
MY
38862004-04-11 Masatake YAMATO <jet@gyve.org>
3887
1e88a355 3888 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3889 empty if they are backwards.
3890
40899d7b
SM
38912004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3894
f8f853de
SM
38952004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3896
3897 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3898
c953fe1b
KS
38992004-04-06 Kim F. Storm <storm@cua.dk>
3900
661e85c1
KS
3901 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3902 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3903
3904 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3905 clearing highlight.
3906
3907 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3908
3909 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3910 clearing highlight.
3911
c953fe1b
KS
3912 * indent.c (vmotion): Do not reserve one column for continuation
3913 marks on window frames.
3914
c1994268
EZ
39152004-04-04 Eli Zaretskii <eliz@gnu.org>
3916
3917 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3918 from GCC.
3919
9f691b0d
SM
39202004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * .gdbinit-union: Remove.
3923
3924 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3925 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3926 ($nonvalbits): Remove.
3927 ($valmask): Set it by calling xreload to avoid redundancy.
3928
3929 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3930 (gdb_emacs_intbits): Remove.
3931
7a8560d7
JD
39322004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3933
9f691b0d 3934 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3935
3c8111fc
KH
39362004-03-30 Kenichi Handa <handa@m17n.org>
3937
3938 * editfns.c (Fformat): Fix initialization of the array info.
3939
48a0bce4
KS
39402004-03-30 Kim F. Storm <storm@cua.dk>
3941
3942 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3943 (syms_of_xterm): DEFVAR_BOOL it.
3944 (ignore_next_mouse_click_timeout): New var.
3945 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3946 Use it to filter mouse clicks following focus event.
3947
1cd0066c
KS
39482004-03-29 David Ponce <david@dponce.com>
3949
3950 * callint.c (Fcall_interactively): Fix last change.
3951
adb3b353
SM
39522004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3953
3954 * eval.c (Fcommandp): Simplify.
3955
3956 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3957 Extend to handle all kinds of functions.
3958
3959 * lisp.h (Finteractive_form): Declare.
3960
3961 * callint.c (Fcall_interactively): Use it.
3962
6fc4c9c9
KS
39632004-03-26 Kim F. Storm <storm@cua.dk>
3964
3965 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3966 to catch errors in calc_pixel_width_or_height during redisplay.
3967
abdb9b83
MY
39682004-03-26 Masatake YAMATO <jet@gyve.org>
3969
b17856dd 3970 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3971
b17856dd 3972 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3973
b17856dd 3974 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3975
b17856dd 3976 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3977
e8a84b6c
JD
39782004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3979
b17856dd 3980 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3981
36a3fd05
RS
39822004-03-19 Richard M. Stallman <rms@gnu.org>
3983
3984 * s/sol2-6.h: Delete previous change.
3985
ab24c127
KS
39862004-03-19 Kim F. Storm <storm@cua.dk>
3987
3988 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3989 to_charpos corresponds to newline in right fringe. Use local
3990 BUFFER_POS_REACHED_P macro.
3991
992126de
JD
39922004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3993
3994 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3995 to compile on non-window system.
3996
45dbfc84
KS
39972004-03-19 Kim F. Storm <storm@cua.dk>
3998
3999 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4000
4001 * image.c (Qcenter): Move to xdisp.c.
4002
4003 * xdisp.c (Qcenter): Declare here.
adb3b353 4004 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4005 (handle_single_display_prop): Allow space display property on all
4006 platforms.
4007 (display_mode_line): Set mode_line_p before displaying line.
4008 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4009 handling. Remove complex cases for fringes and scroll-bars.
4010 Add left, right, and center alignment positions. Add text (area)
4011 width/height. Return width or height for image specs.
4012 (produce_stretch_glyph): Improve handling of :align-to. Is now
4013 relative to left of text area by default, but other base offsets
4014 can be specified -- also for text lines.
4015
4016 * term.c (produce_glyphs): Handle IT_STRETCH.
4017 (produce_stretch_glyph): New function to handle space width and
4018 align-to display properties on non-window systems.
4019
37264101
SM
40202004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4021
4022 * fileio.c (Fread_file_name): Set completion-ignore-case for
4023 case-insensitive systems.
4024
73bc43da
MY
40252004-03-14 Masatake YAMATO <jet@gyve.org>
4026
4027 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4028 when keymap and cursor are setup.
4029
9062aa89
ST
40302004-03-14 Steven Tamm <steventamm@mac.com>
4031
b17856dd 4032 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4033
e4b1b5ab
KS
40342004-03-14 Kim F. Storm <storm@cua.dk>
4035
4036 * dispextern.h (x_find_image_file): Add prototype.
4037
4038 * image.c (x_find_image_file): Make extern.
4039
4040 * xfns.c (x_find_image_file): Remove prototype.
4041
a6eeaa81 40422004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4043
37264101 4044 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4045
37264101 4046 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4047
e69cfac2
RS
40482004-03-12 Richard M. Stallman <rms@gnu.org>
4049
4050 * fns.c (internal_equal): New arg PROPS controls comparing
4051 text properties. All callers changed.
4052 (Fequal_including_properties): New function.
4053 (syms_of_fns): defsubr it.
4054
45034953
KS
40552004-03-12 Kim F. Storm <storm@cua.dk>
4056
4057 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4058
45034953
KS
4059 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4060 (image_background, image_background_transparent): Fix prototypes.
4061
37264101 4062 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4063
4064 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4065 (x_query_font, x_find_ccl_program, x_set_window_size)
4066 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4067 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4068 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4069
4070 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4071 (x_query_font, x_find_ccl_program, x_set_window_size)
4072 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4073 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4074 (mac_draw_line_to_pixmap): Add prototypes.
4075
40762004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4077
4078 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4079
a12d3d87
KS
40802004-03-11 Kim F. Storm <storm@cua.dk>
4081
d3ab1cf1
KS
4082 * dispextern.h: Move image related prototypes from xfns.c section
4083 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4084 HAVE_X_WINDOWS.
37264101 4085
37de9f51 4086 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4087 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4088 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4089 (GTK_OBJ) [USE_GTK]: New declaration.
4090 (obj): Add $(GTK_OBJ) to list.
4091
5243c06a 40922004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4093
5243c06a
ST
4094 * image.c [MAC_OSX]: Include sys/stat.h
4095
4096 * macfns.c (syms_of_macfns): Remove definitions of things now
4097 defined in image.c
4098
c0f97789
KS
40992004-03-11 Kim F. Storm <storm@cua.dk>
4100
4101 The following changes consolidates the identical/similar image
4102 support code previously found in xfns.c, w32fns.c, and macfns.c
4103 into a new file image.c.
4104
4105 * makefile.w32-in (OBJ1): Add image.o.
4106 ($(BLD)/image.$(O)): Add dependencies.
4107
4108 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4109 (image.o): Add dependencies.
37264101 4110
c0f97789
KS
4111 * image.c: New file with consolidated image support code.
4112 (COLOR_TABLE_SUPPORT): New define to control whether
4113 color table support is available (X only).
4114 (Bitmap_Record): Common name for x_bitmap_record,
4115 w32_bitmap_record, and mac_bitmap_record.
4116 (XImagePtr): Common name for pointer to XImage or equivalent.
4117 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4118 to XImagePtr on X+MAC, and to HDC on W32.
4119 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4120 (NO_PIXMAP): Common name for "None" or equivalent.
4121 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4122 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4123 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4124 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4125 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4126 (XDrawLine): Define on MAC for code sharing.
4127 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4128 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4129 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4130 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4131 (x_reference_bitmap, x_create_bitmap_from_data)
4132 (x_create_bitmap_from_file, x_destroy_bitmap)
4133 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4134 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4135 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4136 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4137 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4138 (define_image_type, lookup_image_type, valid_image_p)
4139 (image_error, enum image_value_type, struct image_keyword)
4140 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4141 (make_image, free_image, prepare_image_for_display, image_ascent)
4142 (four_corners_best, image_background, image_background_transparent)
4143 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4144 (make_image_cache, free_image_cache, clear_image_cache)
4145 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4146 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4147 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4148 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4149 (init_image_func_pointer, image_load_quartz2d)
4150 (struct ct_color, init_color_table, free_color_table)
4151 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4152 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4153 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4154 (x_disable_image, x_build_heuristic_mask)
4155 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4156 (TIFF support, GIF support, Ghostscript support): Consolidate image
4157 code from xfns.c, w32fns.c, and macfns.c.
4158 (syms_of_image): Consolidate image related symbol setup here.
4159 (init_image): Consolidate image related initializations here.
37264101 4160
c0f97789
KS
4161 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4162 and init_image. Remove call to init_xfns.
4163
37264101
SM
4164 * macterm.h (struct mac_bitmap_record): Add file member.
4165 Not currently used, but simplifies code sharing.
c0f97789
KS
4166
4167 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4168 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4169 (x_reference_bitmap, x_create_bitmap_from_data)
4170 (x_create_bitmap_from_file, x_destroy_bitmap)
4171 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4172 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4173 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4174 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4175 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4176 (define_image_type, lookup_image_type, valid_image_p)
4177 (image_error, enum image_value_type, struct image_keyword)
4178 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4179 (make_image, free_image, prepare_image_for_display, image_ascent)
4180 (four_corners_best, image_background, image_background_transparent)
4181 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4182 (make_image_cache, free_image_cache, clear_image_cache)
4183 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4184 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4185 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4186 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4187 (init_image_func_pointer, image_load_quartz2d)
4188 (struct ct_color, init_color_table, free_color_table)
4189 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4190 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4191 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4192 (x_disable_image, x_build_heuristic_mask)
4193 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4194 (TIFF support, GIF support, Ghostscript support): Merge with image
4195 code from xfns.c and macfns.c into image.c.
4196 (syms_of_xfns): Move image related symbols to image.c.
4197 (init_external_image_libraries, init_xfns): Remove; initialization
4198 moved to init_image in image.c.
4199
4200 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4201 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4202 (x_reference_bitmap, x_create_bitmap_from_data)
4203 (x_create_bitmap_from_file, x_destroy_bitmap)
4204 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4205 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4206 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4207 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4208 (define_image_type, lookup_image_type, valid_image_p)
4209 (image_error, enum image_value_type, struct image_keyword)
4210 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4211 (make_image, free_image, prepare_image_for_display, image_ascent)
4212 (four_corners_best, image_background, image_background_transparent)
4213 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4214 (make_image_cache, free_image_cache, clear_image_cache)
4215 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4216 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4217 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4218 (struct ct_color, init_color_table, free_color_table)
4219 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4220 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4221 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4222 (x_disable_image, x_build_heuristic_mask)
4223 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4224 (TIFF support, GIF support, Ghostscript support): Merge with image
4225 code from xfns.c and macfns.c into image.c.
4226 (syms_of_xfns): Move image related symbols to image.c.
4227 (init_external_image_libraries, init_xfns): Remove; initialization
4228 moved to init_image in image.c.
4229
4230 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4231 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4232 (x_reference_bitmap, x_create_bitmap_from_data)
4233 (x_create_bitmap_from_file, x_destroy_bitmap)
4234 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4235 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4236 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4237 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4238 (define_image_type, lookup_image_type, valid_image_p)
4239 (image_error, enum image_value_type, struct image_keyword)
4240 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4241 (make_image, free_image, prepare_image_for_display, image_ascent)
4242 (four_corners_best, image_background, image_background_transparent)
4243 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4244 (make_image_cache, free_image_cache, clear_image_cache)
4245 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4246 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4247 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4248 (struct ct_color, init_color_table, free_color_table)
4249 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4250 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4251 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4252 (x_disable_image, x_build_heuristic_mask)
4253 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4254 (TIFF support, GIF support, Ghostscript support): Merge with
4255 w32fns.c and macfns.c image code into image.c.
4256 (syms_of_xfns): Move image related symbols to image.c.
4257 (init_xfns): Remove; initialization moved to init_image in image.c.
4258
4259 * lisp.h (syms_of_image, init_image): Add protoypes.
4260 (init_xfns): Remove prototype.
4261
4262 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4263 (x_reference_bitmap, x_create_bitmap_from_data)
4264 (x_create_bitmap_from_file, x_destroy_bitmap)
4265 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4266 (gamma_correct) [MAC_OS]: Add prototype.
4267
4268 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4269 (x_reference_bitmap, x_create_bitmap_from_data)
4270 (x_create_bitmap_from_file, x_destroy_bitmap)
4271 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4272
6eced09c
KH
42732004-03-09 Kenichi Handa <handa@etlken2>
4274
4275 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4276 correctly.
4277
9a7e95f3
RS
42782004-03-04 Richard M. Stallman <rms@gnu.org>
4279
04a6e76b
RS
4280 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4281
9a7e95f3
RS
4282 * window.c (Fdisplay_buffer): Doc fix.
4283
4284 * buffer.c (Fpop_to_buffer): Doc fix.
4285
6c2488df
KS
42862004-03-03 Kim F. Storm <storm@cua.dk>
4287
4288 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4289
d8d95bc7
SM
42902004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4291
4292 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4293
357589bf
RS
42942004-03-02 Richard M. Stallman <rms@gnu.org>
4295
4296 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4297
409949b5
KH
42982004-03-02 Kenichi Handa <handa@m17n.org>
4299
4300 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4301
d24bc50f
KS
43022004-03-02 Kim F. Storm <storm@cua.dk>
4303
4304 * window.h (struct window): New member overlay_arrow_bitmap.
4305
4306 * window.c (make_window): Initialize overlay_arrow_bitmap.
4307
4308 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4309 implement and integrate multiple overlay arrows with redisplay.
4310 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4311 (last_arrow_position, last_arrow_string): Replace by properties.
4312 (Qlast_arrow_position, Qlast_arrow_string)
4313 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4314 (syms_of_xdisp): Intern and staticpro them.
4315 (overlay_arrow_string_or_property, update_overlay_arrows)
4316 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4317 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4318 (redisplay_internal): Use them instead of directly accessing
4319 Voverlay_arrow_position etc. for multiple overlay arrows.
4320 (mark_window_display_accurate): Use update_overlay_arrows.
4321 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4322 (try_window_id): Use overlay_arrows_changed_p.
4323 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4324 (display_line): Use overlay_arrow_at_row to check multiple
4325 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4326 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4327 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4328 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4329
4330 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4331 (update_window_fringes): Remove unused code.
4332
c1464661
JR
43332004-03-01 Jason Rumney <jasonr@gnu.org>
4334
4335 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4336
a64387ee
JB
43372004-03-01 Juanma Barranquero <lektu@terra.es>
4338
4339 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4340
4341 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4342
334faa08
JD
43432004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4344
4345 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4346 how many colors can be displayed.
4347
bb62616f
KH
43482004-03-01 Kenichi Handa <handa@m17n.org>
4349
4350 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4351 correctly.
4352
0fd16104
KS
43532004-02-28 Kim F. Storm <storm@cua.dk>
4354
4355 * dispnew.c (update_window): Update header line also if there are
4356 no other changes in window (move code after set_cursor label).
4357
4358 * lisp.h (mark_window_display_accurate): Remove prototype.
4359
4360 * window.c (window_loop, Fforce_window_update): Force mode line
4361 updates by setting prevent_redisplay_optimizations_p and
4362 update_mode_lines.
4363
b59dd9c8
JD
43642004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4365
d8d95bc7 4366 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4367
4368 * xterm.c (x_calc_absolute_position): Call x_real_positions
4369 to get WM window sizes and use those to calculate position.
d8d95bc7 4370 (x_set_offset): Remove code commented out.
b59dd9c8 4371
a874691c
MB
43722004-02-28 Miles Bader <miles@gnu.org>
4373
4374 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4375
3e0c6482
KS
43762004-02-28 Kim F. Storm <storm@cua.dk>
4377
4378 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4379 an event into kbd fifo, but with special handling of quit event;
4380 a quit event is saved for later, and further events are discarded
4381 until the saved quit event has been processed.
4382 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4383 (gen_help_event): Store help event in kbd fifo.
4384 (NREAD_INPUT_EVENTS): Remove.
4385 (read_avail_input): Adapt to new read_socket_hook interface.
4386 Remove allocation and initialization of local input_event buffer,
4387 as read_socket_hook stores events directly in fifo. Allocate and
4388 initialize local hold_quit event to handle postponed quit event
4389 (and store it if set by kbd_buffer_store_event_hold).
4390
4391 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4392 (gen_help_event): Fix prototype.
4393
a64387ee 4394 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4395 numcharsp args. Add hold_quit arg.
f63fd14e 4396 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4397 directly in fifo using kbd_buffer_store_event_hold.
4398
4399 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4400 (read_input_waiting): Adapt to new read_socket_hook interface.
4401 Remove allocation and initialization of local input_event buffer,
4402 as read_socket_hook stores events directly in fifo. Allocate and
4403 initialize local hold_quit event to handle postponed quit event
4404 (and store it if set by kbd_buffer_store_event_hold).
4405
a64387ee 4406 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4407
4408 * termhooks.h (read_socket_hook): Fix prototype.
4409
4410 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4411 numcharsp args. Add hold_quit arg.
f63fd14e 4412 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4413 directly in fifo using kbd_buffer_store_event_hold.
4414
4415 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4416
4417 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4418 Add hold_quit arg. Rework to use just one, local, inev
4419 input_event. Store inev directly in fifo using
3e0c6482
KS
4420 kbd_buffer_store_event_hold. Update count in one place.
4421 Postpone call to gen_help_event until inev is stored; use new
4422 local do_help for this.
4423 Remove local emacs_event in handing of ButtonPress event; just use
4424 inev instead (so no reason to copy it later).
4425
4426 * xsmfns.c (x_session_check_input): Remove numchars arg.
4427
d8d95bc7
SM
4428 * xterm.c (x_focus_changed, x_detect_focus_change):
4429 Remove numchars arg. Always store event into bufp arg.
4430 Return nothing. Callers changed accordingly.
3e0c6482
KS
4431 (glyph_rect): Simplify.
4432 (STORE_KEYSYM_FOR_DEBUG): New macro.
4433 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4434 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4435 (current_hold_quit) [USE_GTK]: Add.
4436 (event_handler_gdk): Adapt to new handle_one_xevent.
4437 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4438 Add hold_quit arg. Rework to use just one, local, inev
4439 input_event. Store inev directly in fifo using
3e0c6482
KS
4440 kbd_buffer_store_event_hold. Update count in one place.
4441 Postpone call to gen_help_event until inev is stored; use new
4442 local do_help for this.
4443 Simplify handling of keysyms (consolidate common code). Fix bug
4444 where count was updated with nchars instead of nbytes.
4445 Remove local emacs_event in handing of ButtonPress event; just use
4446 inev instead (so no reason to copy it later).
4447 Remove `out' label. Rename label `ret' to `done'; add various
4448 `goto done' to clarify code flow in deeply nested blocks.
4449 (x_dispatch_event): Simplify as handle_one_xevent now calls
4450 kbd_buffer_store_event itself.
f63fd14e 4451 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4452 arg. Call handle_one_xevent with new arglist. Store event from
4453 x_session_check_input in fifo.
4454 [USE_GTK]: Setup current_hold_quit.
4455 Decrement handling_signal before unblocking input.
4456 (x_initialize) [USE_GTK]: Initialize current_count.
4457
4458 * xterm.h (x_session_check_input): Fix prototype.
4459
e3564461 44602004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4461
d8d95bc7 4462 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4463
e3564461
ST
4464 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4465 macgui.h).
a64387ee 4466
e3564461 4467 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4468
e3564461
ST
4469 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4470 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4471 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4472 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4473 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4474 (Bitmap): Remove typedef.
4475 (Pixmap): Change int to GWorldPtr.
4476
d8d95bc7 4477 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4478
d8d95bc7
SM
4479 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4480 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4481 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4482 long representation.
4483 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4484 colors used for masks.
4485 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4486
e3564461
ST
4487 * macfns.c: Include sys/types.h and sys/stat.h.
4488 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4489 Include QuickTime/QuickTime.h.
4490 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4491 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4492 functions defined in macterm.c.
4493 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4494 (ZPixmap): New #define for compatibility with xfns.c.
4495 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4496 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4497 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4498 New functions.
e3564461 4499 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4500 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4501 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4502 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4503 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4504 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4505 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4506 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4507 long mixup.
4508 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4509 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4510 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4511 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4512 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4513 (x_alloc_image_color, clear_image_cache, lookup_image)
4514 (x_find_image_file, xbm_read_bitmap_file_data)
4515 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4516 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4517 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4518 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4519 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4520 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4521 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4522 #if 0.
4523 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4524 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4525 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4526 New functions (from xfns.c).
e3564461
ST
4527 (Fx_create_frame): Record unwind_create_frame.
4528 (Fxw_display_color_p): Use dpyinfo->color_p.
4529 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4530 dpyinfo->n_cbits.
4531 (Fx_display_color_cells): Use dpyinfo->n_planes;
4532 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4533 (Qheuristic, cross_disabled_images, emboss_matrix)
4534 (laplace_matrix): New variables (from xfns.c).
4535 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4536 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4537 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4538 (image_background_transparent): New function (from xfns.c).
4539 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4540 (image_load_quicktime): Add declaration.
4541 [MAC_OSX] (image_load_quartz2d): Likewise.
4542 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4543 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4544 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4545 (xbm_load_image_from_file, x_laplace_read_row)
4546 (x_laplace_write_row, pbm_read_file): Remove functions.
4547 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4548 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4549 (colors_in_color_table): Sync with xfns.c (although not used).
4550 (lookup_rgb_color): Don't lookup color table. Just do gamma
4551 correction.
4552 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4553 (x_disable_image): New function (from xfns.c).
4554 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4555 (x_build_heuristic_mask): Sync with xfns.c.
4556 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4557 (HAVE_PBM): Remove #ifdef.
4558 (pbm_load): Sync with xfns.c. Set img->width and img->height
4559 before IMAGE_BACKGROUND.
d8d95bc7 4560 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4561 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4562 Don't enclose with #if HAVE_PNG.
4563 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4564 symbol _CGImageCreateWithPNGDataProvider is defined.
4565 Otherwise use image_load_quicktime.
e3564461 4566 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4567 [HAVE_PNG] (png_load): Sync with xfns.c.
4568 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4569 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4570 HAVE_JPEG.
4571 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4572 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4573 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4574 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4575 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4576 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4577 HAVE_TIFF.
4578 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4579 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4580 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4581 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4582 New functions (from xfns.c).
e3564461 4583 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4584 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4585 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4586 Don't enclose with #if HAVE_GIF.
4587 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4588 animated gif. Otherwise use image_load_quicktime.
4589 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4590 gif_DrawText to avoid conflict with QuickdrawText.h.
4591 [HAVE_GIF] (gif_load): Sync with xfns.c.
4592 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4593 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4594 Ghostscript is not supported yet).
4595 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4596 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4597 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4598 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4599 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4600 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4601 HAVE_PNG. Call EnterMovies to support animated gifs.
4602 Call init_image_func_pointer to bind a symbol
e3564461 4603 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4604
d8d95bc7 4605 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4606 (x_draw_bar_cursor): Sync declaration with xterm.c.
4607 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4608 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4609 graphics).
4610 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4611 (mac_draw_line_to_pixmap, XCreatePixmap)
4612 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4613 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4614 New functions.
4615 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4616 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4617 Cast bits to char *.
e3564461
ST
4618 (reflect_byte): New function (from w32fns.c).
4619 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4620 due to byte alignment.
d8d95bc7
SM
4621 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4622 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4623 (XSetForeground): Remove static (now used in macfns.c).
4624 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4625 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4626 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4627 (x_draw_glyph_string_box, x_draw_image_foreground)
4628 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4629 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4630 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4631 Sync with xterm.c.
4632 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4633 than the xterm.c version when a strictly horizontal or vertical
4634 line is drawn.
4635 (XTset_terminal_window): Add static.
4636 (x_make_frame_visible): Add UNBLOCK_INPUT.
4637 (x_free_frame_resources): New funcion (from xterm.c).
4638 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4639 occurs in tool bar area.
d8d95bc7
SM
4640 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4641 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4642 Initialize image cache.
4643 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4644 Enclose unused functions with #if 0.
4645 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4646 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4647 from a mac font name to an XLFD font name according to its script code.
e3564461 4648 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4649 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4650 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4651 whose name starts with `.'.
4652 (init_font_name_table): Use decode_mac_font_name. Add both
4653 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4654 of a font is smJapanese.
4655 (mac_do_list_fonts): New function to list fonts that match a given
4656 pattern.
4657 (x_list_fonts, XLoadQueryFont): Use it.
4658 (XLoadQueryFont): Set rbearing field for each variable width
4659 character to avoid needless redraw.
4660 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4661
446f5f3d
KS
46622004-02-26 Kim F. Storm <storm@cua.dk>
4663
af617d0f
KS
4664 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4665 as read_socket_hook handler on X aborts if buffer is too small
4666 and W32 handler doesn't always check buffer limit.
4667
446f5f3d
KS
4668 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4669 right-fringe similar to a display margin image. Specifically,
4670 the characters having the fringe prop are no longer shown, and
4671 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4672 do this. Set fringe bitmap face_id in it->face_id.
4673 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4674 still realize it->face (i.e. the fringe bitmap face).
4675
7d8a0b55
MB
46762004-02-25 Miles Bader <miles@gnu.org>
4677
4678 * xdisp.c (check_it): Check string/string_pos consistency.
4679 (init_iterator): Initialize string-related fields properly.
4680
46812004-02-11 Miles Bader <miles@gnu.org>
4682
4683 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4684
46852004-02-10 Miles Bader <miles@gnu.org>
4686
4687 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4688 BLOCK_INPUT can be nested, so it doesn't make much sense.
4689
a64387ee 46902004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4691
4692 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4693 (xbm_read_bitmap_data): Use unsigned char for image data.
4694
92f5fba2
LT
46952004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4696
4697 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4698
8565fb3d
JR
46992004-02-22 Jason Rumney <jasonr@gnu.org>
4700
4701 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4702 correctly over other bitmaps.
4703
a6eeaa81 47042004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4705
4706 * emacs.c (USAGE1): Split into two halves.
4707 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4708 (USAGE3): Rename from USAGE2.
4709 (USAGE4): Rename from USAGE3.
f8125c39 4710
4effffca
EZ
47112004-02-21 Juri Linkov <juri@jurta.org>
4712
4713 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4714 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4715 --file. Fix -f, -l. Sort options. Untabify.
4716 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4717
923c1e6f
LT
47182004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4719
4720 * category.c (Fdefine_category, Fcategory_docstring)
4721 (Fget_unused_category, Fset_category_table)
4722 (Fcategory_set_mnemonics): Doc fixes.
4723
b0e225fd
KS
47242004-02-20 Kim F. Storm <storm@cua.dk>
4725
4726 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4727 The following changes are relative to the 2004-01-21 revision.
4728 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4729 in one call to read_socket_hook. Value is 8.
4730 (read_avail_input): Separate and rework handling of read_socket_hook
4731 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4732 in read_socket_hook case, and repeat if full buffer is read.
4733 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4734 In non-read_socket_hook case, just use a single input_event, and
4735 call kbd_buffer_store_event on the fly for each character.
4736
b15aa9f9
SM
47372004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4738
4739 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4740 Remove unused `gu' alternative.
4741
83c9aa95
AS
47422004-02-19 Andreas Schwab <schwab@suse.de>
4743
4744 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4745 warning.
4746
cc808173
KS
47472004-02-18 Kim F. Storm <storm@cua.dk>
4748
4749 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4750 Fix last change.
4751
ab90a54d
KS
47522004-02-17 Kim F. Storm <storm@cua.dk>
4753
b26f249f
KS
4754 * xdisp.c (fast_find_position): Fix return value of new version;
4755 it was inverted compared to the 21.1 version.
4756 (get_window_cursor_type): Don't look at glyph if NULL.
4757 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4758
ab90a54d
KS
4759 * keyboard.c: Rework previous change; it didn't consider that the
4760 buf array was allocated on the stack.
4761 (prev_read): Remove variable.
4762 (read_avail_input_buf): New static event buffer array.
b9568dfc 4763 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4764 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4765 Use in_read_avail_input to handle re-entrance; when re-entered,
4766 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4767 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4768 is always cleared on entry. To ensure that, we clear (just) the
4769 entries that were used before we return.
4770 (init_keyboard): Initialize read_avail_input_buf here.
4771
b6189c3b 47722004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4773
4774 * cmds.c (Fend_of_line): Doc fix.
4775
7b5368c1
EZ
47762004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4777
4778 * keyboard.c (prev_read): New static variable.
4779 (read_avail_input): Use it to zero out only those slots in buf[]
4780 that were used last time we were called.
4781
a6eeaa81 47822004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4783
4784 * Makefile.in (obj): Move fringe.o from here...
4785 (XOBJ, MAC_OBJ): ...to here.
4786
159c348e
SE
47872004-02-16 Stephen Eglen <stephen@gnu.org>
4788
4789 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4790
d2f14999
SM
47912004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4792
b15aa9f9
SM
4793 * data.c (Fbyteorder):
4794 * fringe.c (Fdefine_fringe_bitmap):
4795 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4796 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4797
8d50508a
JR
47982004-02-16 Jason Rumney <jasonr@gnu.org>
4799
4800 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4801
dd4497dc
ST
48022004-02-15 Steven Tamm <steventamm@mac.com>
4803
4804 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4805 controlling emulation of a three button mouse with option and
4806 command keys.
4807 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4808 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4809
c9159cb3
KS
48102004-02-15 Kim F. Storm <storm@cua.dk>
4811
2cc52658
KS
4812 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4813
c9159cb3
KS
4814 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4815 Perform byte-swapping.
4816
12fde2dc
KS
48172004-02-14 Kim F. Storm <storm@cua.dk>
4818
4819 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4820 bits from char to short to facilitate wider bitmaps.
4821 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4822 member.
4823
4824 * fringe.c (struct fringe_bitmap): Change member bits from char to
4825 short to facilitate 16 bits wide bitmaps. Modify all standard
4826 bitmaps accordingly.
4827 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4828 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4829 (draw_fringe_bitmap): Ditto.
4830 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4831 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4832 handle up to 16 bits wide bitmaps.
4833 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4834 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4835
4836 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4837 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4838 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4839
4840 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4841 so it is no longer necessary to expand them here.
4842
4843 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4844
9d7271e8
KS
48452004-02-12 Kim F. Storm <storm@cua.dk>
4846
4847 * window.c (Fwindow_fringes): Doc fix.
4848
706c1e4f
JD
48492004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4850
4851 * xselect.c (x_get_foreign_selection): Add new optional parameter
4852 time_stamp.
4853 (Fx_get_selection_internal): Ditto, pass time_stamp to
4854 x_get_foreign_selection.
4855
4856 * data.c (Fbyteorder): New function.
4857
c2d12b5d
JD
48582004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4859
4860 * atimer.c: Move include stdio.h to same place as in other files.
4861
4862 * region-cache.c: Ditto.
4863
4864 * sysdep.c: Ditto.
4865
4866 * xfaces.c: Ditto.
4867
4c1947b9
SS
48682004-02-09 Sam Steingold <sds@gnu.org>
4869
89458937 4870 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4871
82722af3
KS
48722004-02-09 Kim F. Storm <storm@cua.dk>
4873
4874 * fringe.c: New file. Move original fringe related declarations
4875 and code from dispextern.h and xdisp.c here.
4876 Rework code to support user defined fringe bitmaps, redefining
4877 standard bitmaps, ability to overlay user defined bitmap with
4878 overlay arrow bitmap, and add faces to bitmaps.
4879 (Voverflow_newline_into_fringe): Declare here.
4880 (enum fringe_bitmap_align): New enum.
4881 (..._bits): All bitmaps are now defined without bitswapping; that
4882 is now done in init_fringe_once (if necessary).
4883 (standard_bitmaps): New array with specifications for the
4884 standard fringe bitmaps.
4885 (fringe_faces): New array.
4886 (valid_fringe_bitmap_id_p): New function.
4887 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4888 (draw_fringe_bitmap): New function which draws fringe bitmap,
4889 possibly overlaying bitmap with cursor in right fringe or the
4890 overlay arrow in the left fringe.
4891 (update_window_fringes): Do not handle overlay arrow here.
4892 Compare and copy fringe bitmap faces.
4893 (init_fringe_bitmap): New function.
4894 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4895 define and destroy user defined fringe bitmaps.
4896 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4897 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4898 (syms_of_fringe): New function. Defsubr new DEFUNs.
4899 DEFVAR_LISP Voverflow_newline_into_fringe.
4900 (init_fringe_once, init_fringe): New functions.
4901 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4902
82722af3
KS
4903 * Makefile.in (obj): Add fringe.o.
4904 (fringe.o): New dependencies.
4905
4906 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4907 bits allocated to hold a fringe number. Increase number of bits
4908 from 4 to 8 to allow user defined fringe bitmaps.
4909 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4910 left_user_fringe_face_id, right_user_fringe_bitmap,
4911 right_user_fringe_face_id.
4912 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4913 Move to new file fringe.c.
4914 (MAX_FRINGE_BITMAPS): Define here.
4915 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4916 and overlay_p. Change member which to int.
4917 (struct redisplay_interface): New members define_fringe_bitmap
4918 and destroy_fringe_bitmap.
4919 (valid_fringe_bitmap_id_p): Add prototype.
4920 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4921
4922 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4923 arrows.
4924 (update_frame): Do flush_display if force_flush_display_p to
4925 ensure display (specifically fringes) are updated in a timely
4926 manner when resizing the frame by dragging the mouse.
4927 (update_window_line): Update row if overlay arrow changed.
4928 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4929 or overlay arrow changed.
4930
4931 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4932 syms_of_fringe, and init_fringe.
4933
4934 * frame.h (struct frame): New member force_flush_display_p.
4935
4936 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4937 Add prototypes.
4938
a3993cc8 4939 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4940 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4941 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4942 Use cursor color for displaying cursor in fringe.
82722af3
KS
4943 (x_redisplay_interface): Add null handlers for
4944 define_fringe_bitmap and destroy_fringe_bitmap functions.
4945
4946 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4947 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4948 for displaying cursor in fringe.
4949 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4950 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4951 (w32_redisplay_interface): Add them to redisplay_interface.
4952 (w32_term_init): Call w32_init_fringe instead of explicitly
4953 defining fringe bitmaps in fringe_bmp array.
4954 (x_delete_display): Call w32_reset_fringes instead of explicitly
4955 destroying fringe bitmaps in fringe_bmp array.
4956
4957 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4958 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4959 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4960 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4961 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4962 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4963 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4964 Move fringe handling vars and code to new file fringe.c.
4965 (handle_display_prop): Handle left-fringe and right-fringe
4966 display properties; store user fringe bitmaps in iterator.
4967 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4968 (clear_garbaged_frames): Set force_flush_display_p if resized.
4969 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4970 (display_line): Handle cursor in fringe at eob.
4971 (display_line): Set row user fringe bitmaps from iterator.
4972
4973 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4974 Use cursor color for displaying cursor in fringe.
4975 (x_redisplay_interface): Add null handlers for
4976 define_fringe_bitmap and destroy_fringe_bitmap functions.
4977
030400eb
JD
49782004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4979
4980 * macfns.c (Fx_change_window_property): Make doc string and
4981 parameters same as for X version.
4982
4983 * w32fns.c (Fx_change_window_property): Ditto.
4984
3af55251
KS
49852004-02-07 Kim F. Storm <storm@cua.dk>
4986
ec110e9e
KS
4987 * xdisp.c (hscroll_window_tree): Position cursor near to right
4988 margin in hscrolled window when jumping to end of line (rather
4989 than centering cursor).
4990
3af55251
KS
4991 * process.c (wait_reading_process_input): Don't do adaptive read
4992 buffering if waiting for a specific process.
4993
b0c138ce
LT
49942004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4995
4996 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4997 (Fread_minibuffer, Feval_minibuffer)
4998 (Fread_string, Fread_no_blanks_input)
4999 (Fcompleting_read): Doc fixes.
5000 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5001 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5002 (read_minibuf): Fix initial comment.
5003 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5004 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5005 checking completion-regexp-list.
5006 (Fdisplay_completion_list): Make it handle arguments that are
5007 symbols. Doc fix.
5008
9676f5ad 50092004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5010
9676f5ad 5011 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5012
9676f5ad
JD
5013 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5014 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5015 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5016 format. Remove unused variable cons.
5b698285
JD
5017
5018 * xselect.c: Include stdio,h.
5019
fc1d15f6
KH
50202004-02-05 Kenichi Handa <handa@m17n.org>
5021
ebaff4af
KH
5022 * fns.c (Fset_char_table_range): Fix previous change.
5023
fc1d15f6
KH
5024 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5025
9676f5ad
JD
50262004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5027
5028 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5029
da75761f
SM
50302004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5031
5032 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5033 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5034
13c5d120
KH
50352004-02-04 Kenichi Handa <handa@m17n.org>
5036
5037 * fns.c (Fset_char_table_range): Handle charsets ascii,
5038 eight-bit-control, and eight-bit-graphic correctly.
5039
2883d842
JR
50402004-02-03 Jason Rumney <jasonr@gnu.org>
5041
5042 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5043
5044 * w32fns.c (x_to_w32_font): Likewise.
5045
69eff41f
JD
50462004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5047
5048 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5049 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5050
5051 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5052 ClientMessages.
5053
5054 * xselect.c: Include termhooks.h and X11/Xproto.h
5055 (x_check_property_data, x_fill_property_data)
5056 (x_property_data_to_lisp, mouse_position_for_drop)
5057 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5058 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5059 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5060
da75761f 5061 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5062 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5063 OUTER_P.
5064 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5065 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5066 if vector_ret_p is true.
5067 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5068
a6eeaa81 50692004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5070
5071 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5072 basename of FILE relative to it, not FILE itself.
5073
09721b31
KH
50742004-02-02 Kenichi Handa <handa@m17n.org>
5075
5076 * coding.c (coding_restore_composition): Check invalid
5077 composition data more rigidly.
5078
eb996101
LT
50792004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5080
5081 * fileio.c (Fread_file_name_internal): Correctly handle the case
5082 where insert-default-directory is nil.
5083 (Fread_file_name): Always return an empty string if the user exits
5084 with an empty minibuffer. Adapt the docstring accordingly.
5085 (syms_of_fileio): Adapt the docstring of insert-default-directory
5086 to the change in Fread_file_name.
5087
a6eeaa81 50882004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5089
5090 * alloca.c [!alloca]: Fix the prototype for xfree.
5091
13f52ed8
KH
50922004-01-29 Kenichi Handa <handa@m17n.org>
5093
5094 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5095 (string_byte_to_char): Likewise.
5096
d57625a0
JR
50972004-01-28 Peter Runestig <peter@runestig.com>
5098
5099 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5100
a64387ee 51012004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5102
5103 * unexmacosx.c (unexec_copy): Do not copy more than was
5104 requested to prevent overwriting during unexec.
5105
eb37b8fd
JD
51062004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5107
ce38070a
JD
5108 * process.c (sigchld_handler): Add comment about not calling malloc.
5109
eb37b8fd
JD
5110 * process.h: Add extern to synch_process_termsig.
5111
a64387ee 51122004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5113
da75761f
SM
5114 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5115 Move setting of scroll bars from make_mac_frame to
5116 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5117
d62a265d
RS
51182004-01-26 Richard M. Stallman <rms@gnu.org>
5119
5120 * search.c (Freplace_match): Handle nonexistent
5121 back-references properly.
5122
51232004-01-03 Richard M. Stallman <rms@gnu.org>
5124
5125 * window.c (decode_any_window): New function.
5126 (Fwindow_height, Fwindow_width, Fwindow_edges)
5127 (Fwindow_pixel_edges, Fwindow_inside_edges)
5128 (Fwindow_inside_pixel_edges): Use decode_any_window.
5129
ff236419
JD
51302004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5131
5132 * process.h: synch_process_termsig new variable.
5133
5134 * callproc.c: Define synch_process_termsig.
5135 (Fcall_process): Initiate synch_process_termsig to zero and
5136 check if non-zero and get signal name after subprocess has ended.
5137
5138 * process.c (sigchld_handler): Set synch_process_termsig
5139 if terminated by a signal. synch_process_death setting removed.
5140
5141 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5142
41b867ea
AS
51432004-01-26 Andreas Schwab <schwab@suse.de>
5144
5145 * print.c (print_preprocess): Declare size as EMACS_INT to not
5146 lose bits.
5147 (print_object): Likewise.
5148 * alloc.c (Fpurecopy): Likewise.
5149
a08084ff
LT
51502004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5151
5152 * window.c (Fwindow_minibuffer_p): Doc fix.
5153
b19ac475
JY
51542004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5155
5156 * editfns.c (Fformat): Make both passes accept the same set of flags.
5157
fe905025
KH
51582004-01-23 Kenichi Handa <handa@m17n.org>
5159
5160 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5161 one, set buffer to OBJECT temporarily.
5162
438fc6c0
SM
51632004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5164
455316e2
SM
5165 * keyboard.c (kbd_buffer_gcpro): Remove.
5166 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5167 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5168 Don't initialize and/or maintain the variable any more. It was made
5169 redundant by my commit of 2003-06-15.
5170
438fc6c0
SM
5171 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5172
5335a4ee
JD
51732004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5174
5175 * lisp.h: Add undef DECL_ALIGN.
5176
dcdaeebc
SM
51772004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5178
5179 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5180 Check interrupt_input_pending explicitly.
5181
5182 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5183
5184 * keyboard.c (handle_async_input): New fun,
5185 extracted from input_available_signal.
5186 (input_available_signal, reinvoke_input_signal): Use it.
5187
9076a823
SM
51882004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5189
d7107586
SM
5190 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5191
5192 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5193 manipulation macros for when tags are in the lower bits.
5194 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5195 (DECL_ALIGN): New macro.
5196 (DEFUN): Use it.
5197
5198 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5199
5200 * s/darwin.h (__attribute__): Remove outdated workaround.
5201
5202 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5203
5204 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5205 Don't check range of malloc address.
5206 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5207
9076a823
SM
5208 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5209
5210 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5211
ba029065
KH
52122004-01-19 Kenichi Handa <handa@m17n.org>
5213
5214 * fontset.c (fontset_font_pattern): Fix previous change.
5215
7af0e8d7
MB
52162004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5217
5218 * xdisp.c (Voverflow_newline_into_fringe)
5219 (move_it_in_display_line_to, redisplay_internal)
5220 (update_window_fringes, redisplay_window, display_line, window):
5221 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5222 that it compiles without a window-system.
5223 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5224
77a9cf69
KS
52252004-01-16 Kim F. Storm <storm@cua.dk>
5226
5227 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5228
a64387ee 5229 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5230 buffer_local_flags for indicate_buffer_boundaries.
5231 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5232 default- variable for it.
5233
5234 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5235 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5236 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5237 overflowing newlines into right fringe.
5238 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5239 and indicate_bottom_line_p for buffer boundaries and scrolling.
5240 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5241 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5242 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5243 and HOLLOW_SQUARE_BITMAP.
5244 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5245 Add prototypes.
5246
5247 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5248 instead of related indicator fields.
5249 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5250 (direct_output_for_insert): Handle exact width lines like
5251 contined lines. Call update_window_fringes.
5252 (update_window): Call update_window_fringes.
5253 (scrolling_window): Don't skip desired rows with changed bitmaps.
5254 Check if fringe bitmaps changes when assigning scrolled rows.
5255
5256 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5257 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5258 (move_it_in_display_line_to): Overflow newline into fringe for
5259 rows that are exactly as wide as the window.
5260 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5261 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5262 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5263 (fringe_bitmaps): Add new bitmaps.
5264 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5265 Select proper bitmap for cursor in fringe when appropriate.
5266 Handle alignment of bitmap to top or bottom of row.
5267 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5268 done by update_window_fringes.
5269 (update_window_fringes, draw_window_fringes): New functions.
5270 (redisplay_internal): Call update_window_fringes in case only
5271 cursor row is updated.
5272 (redisplay_window): Call update_window_fringes.
5273 Explicitly call draw_window_fringes if redisplay was done using
5274 the current matrix or the overlay arrow is in the window.
5275 (try_window_reusing_current_matrix): Mark scrolled rows for
5276 fringe update (to update buffer-boundaries / scrolling icons).
5277 (find_last_unchanged_at_beg_row): Handle exact width lines line
5278 continued lines.
5279 (display_line): Overflow newline into fringe for rows that are
5280 exactly as wide as the window. Don't append space for newline
d7107586 5281 in this case.
77a9cf69
KS
5282 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5283 in fringe as if it had been overwritten.
5284 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5285 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5286 void-text-area-pointer as user options.
5287 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5288
77a9cf69
KS
5289 * xterm.c (x_update_window_end): Call draw_window_fringes.
5290 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5291 in row instead of actually drawing fringe bitmaps.
5292 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5293 (x_draw_window_cursor): Draw cursor in fringe.
5294
5295 * w32term.c (x_update_window_end): Call draw_window_fringes.
5296 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5297 in row instead of actually drawing fringe bitmaps.
5298 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5299 (w32_draw_window_cursor): Draw cursor in fringe.
5300
5301 * macterm.c (x_update_window_end): Call draw_window_fringes.
5302 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5303 in row instead of actually drawing fringe bitmaps.
5304 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5305 (mac_draw_window_cursor): Draw cursor in fringe.
5306
a633a954
JD
53072004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5308
5309 * xterm.c (handle_one_xevent): Don't handle characters that are part
5310 of an old style (XLookupString) compose sequence.
5311
80460525
KH
53122004-01-15 Kenichi Handa <handa@m17n.org>
5313
5314 * search.c (Freplace_match): Use make_multibyte_string or
5315 make_unibyte_string according to the buffer multibyteness.
5316
7fc34f85
SM
53172004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5318
5319 * alloc.c (struct interval_block, struct string_block)
5320 (struct symbol_block, struct marker_block, live_string_p)
5321 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5322 Better preserve alignment for objects in blocks.
5323 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5324
5325 * lread.c (defvar_per_buffer): Remove dead declaration.
5326
5327 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5328 space size.
5329
66070bd1
JD
53302004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5331
5332 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5333 if a key press should pop down. Only pop down if a key is pressed
5334 outside the menu/dialog.
5335 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5336 popup_get_selection.
5337 (create_and_show_dialog): Pass 1 for down_on_keypress to
5338 popup_get_selection.
5339
de7515d6
JD
53402004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5341
5342 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5343 BLOCK/UNBLOCK_INPUT.
5344
160b1b50
JD
53452004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5346
5347 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5348 specified.
5349
3a9f36e6
KH
53502004-01-08 Kenichi Handa <handa@m17n.org>
5351
5352 * editfns.c (Fformat): Fix '&' to '&&'.
5353
3803eb32
AS
53542004-01-08 Andreas Schwab <schwab@suse.de>
5355
5356 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5357 size if PSEUDOVECTOR_FLAG is set.
5358
9da88f37
KH
53592004-01-07 Kenichi Handa <handa@m17n.org>
5360
74ac5074
KH
5361 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5362
9da88f37
KH
5363 * fontset.c (fontset_ref_via_base): Fix previous change.
5364
05faee07
KS
53652004-01-07 Kim F. Storm <storm@cua.dk>
5366
5367 * process.c (read_process_output): Only activate adaptive
5368 buffering if we read less than 256 bytes at a time.
5369
634910c8
KS
53702004-01-06 Kim F. Storm <storm@cua.dk>
5371
5372 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5373 object and image object. Return glyph width and height.
5374 (mode_line_string, marginal_area_string): Ditto.
5375
5376 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5377 (marginal_area_string): Fix prototypes.
5378
5379 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5380 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5381 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5382
5383 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5384 buffer_posn_from_coords, and marginal_area_string functions to
5385 include both string object and image object in the lispy position.
5386 Also add actual glyph width and height to position.
5387 (read_key_sequence): Use real buffer position from mouse
5388 event to find keymap property even when click is in marginal area.
5389
5390 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5391 mode_line_string and marginal_area_string functions to handle
5392 both string object and image object properties.
d7107586 5393
57951c2e
AS
53942004-01-06 Andreas Schwab <schwab@suse.de>
5395
5396 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5397 character.
5398
181e6a61
AS
53992004-01-02 Andreas Schwab <schwab@suse.de>
5400
d7107586
SM
5401 * macterm.c (emacs_options, x_initialized, same_x_server):
5402 Remove unused (and duplicated) definitions.
181e6a61 5403
31e0fbdd
KS
54042004-01-02 Kim F. Storm <storm@cua.dk>
5405
5406 * process.h (struct Lisp_Process): New members for adaptive read
5407 buffering: adaptive_read_buffering, read_output_delay, and
5408 read_output_skip.
5409
5410 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5411 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5412 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5413 (process_output_delay_count, process_output_skip): New vars.
5414 (Vprocess_adaptive_read_buffering): New variable.
5415 (make_process): Initialize adaptive read buffering members.
5416 (Fstart_process): Set adaptive_read_buffering member.
5417 (deactivate_process): Cleanup adaptive read buffering.
5418 (wait_reading_process_input): Temporarily omit delayed
5419 subprocesses from the set of file descriptors to read from;
5420 adjust the select timeout if we skipped any subprocesses.
5421 (read_process_output): Increase adaptive read buffering delay if
5422 we read less than a full buffer; reduce delay when we read a
5423 full buffer.
5424 (send_process): Simplify using local Lisp_Process var.
5425 Reset adaptive read buffering delay after write.
5426 (init_process): Initialize process_output_delay_count and
5427 process_output_skip.
5428 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5429
68c6a789
JR
54302004-01-01 Jason Rumney <jasonr@gnu.org>
5431
d7107586 5432 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5433
3f70fe82
LT
54342003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5435
5436 * print.c (Ferror_message_string): Add hyperlink in the docstring
5437 to the definition of `signal' in the Elisp manual.
5438 * eval.c (Fsignal): Ditto.
5439
b6189c3b 54402003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5441
5442 * fns.c (internal_equal): Return t for two NaN arguments.
5443
7abd90ea
RS
54442003-12-29 Richard M. Stallman <rms@gnu.org>
5445
5446 * data.c (store_symval_forwarding): Handle setting
5447 default-fill-column, etc., by changing the value in
5448 buffers that use the default.
5449
5450 * minibuf.c (Fset_minibuffer_window): Doc fix.
5451
5452 * fileio.c (choose_write_coding_system): Ignore auto_saving
5453 if using the visited file for auto saves.
5454 (Fwrite_region): Don't update SAVE_MODIFF
5455 if auto-saving in visited file.
5456
3e7cfcdc
KH
54572003-12-29 Kenichi Handa <handa@m17n.org>
5458
5459 * dispextern.h (face_font_available_p): Extern it.
5460
5461 * fontset.c (Voverriding_fontspec_alist): New variable.
5462 (lookup_overriding_fontspec): New function.
d7107586 5463 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5464 (fontset_font_pattern): Likewise.
5465 (regulalize_fontname): New function.
5466 (Fset_fontset_font): Call regulalize_fontname.
5467 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5468 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5469 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5470
5471 * xfaces.c (face_font_available_p): New function.
5472
7abd90ea
RS
54732003-12-28 Richard M. Stallman <rms@gnu.org>
5474
5475 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5476 or if its name is nil.
5477
5478 * buffer.c (Fkill_buffer): Don't delete auto-save file
5479 if it's the same as the visited file.
5480
de1d1a40
LT
54812003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5482
5483 * coding.c (Fcheck_coding_system): Doc fix.
5484
204fb75e
KS
54852003-12-28 Kim F. Storm <storm@cua.dk>
5486
5487 * Makefile.in (eval.o): Depend on dispextern.h.
5488
5489 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5490 image glyph using image's ascent.
5491 (mode_line_string): Return image glyph as object clicked on.
5492 Adjust y0 for image glyph using image's ascent.
5493
5494 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5495 (struct glyph): New members, ascent and descent. Used to save
5496 this glyph's ascent and descent, instead of having.
5497 (struct glyph): Declare member face_id using FACE_ID_BITS.
5498 (find_hot_spot): Add prototype.
5499
5500 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5501 (QCmap): Declare extern.
5502 (make_lispy_position): When position is inside image hot-spot,
5503 use hot-spot element's id as posn element.
5504
5505 * lisp.h (IMAGEP): New macro to test for image object type.
5506 (Qimage): Declare extern.
5507
5508 * macfns.c (Qimage): Remove extern (now in lisp.h).
5509 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5510
5511 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5512
5513 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5514 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5515
5516 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5517
5518 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5519
5520 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5521 pointer types.
5522 (Qrelative_width, Qalign_to): Remove unused variables.
5523 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5524 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5525 image maps.
d7107586 5526 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5527 new dx and dy args.
5528 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5529 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5530 than row's ascent and height, to get sensible height on tall rows.
5531 (build_desired_tool_bar_string): Remove Qimage extern.
5532 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5533 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5534 image glyph is alone on the last line.
5535 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5536 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5537 (on_hot_spot_p): New function to check if position is inside an
d7107586 5538 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5539 (find_hot_spot): New function to search for image hot-spot.
5540 (Flookup_image_map): New defun to search for image hot-spot.
5541 (define_frame_cursor1): New aux function to determine frame pointer.
5542 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5543 Handle `pointer' text property and :pointer image property to
5544 control frame pointer shape. Detect image hot-spots for pointer
5545 and help_echo properties. Use define_frame_cursor1.
5546 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5547 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5548 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5549
5550 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5551
5552 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5553 (Qimage): Remove extern (now in lisp.h).
5554 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5555
5556 * xmenu.c (show_help_event): Remove unused code.
5557
5558 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5559 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5560 row's ascent and descent, to get a sensible height on tall rows.
5561
fc052137
LT
55622003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5563
5564 * minibuf.c (Fcompleting_read): Undo previous change.
5565
a64387ee 55662003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5567
5568 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5569 Arguments GCPRO'ed in call to file name handler.
5570
56ffd194
TTN
55712003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5572
5573 * termcap.c (tgetst1): Scan for "%pN"; if all
5574 N are continuous in [1,9], remove all "%pN".
5575
5202d23d
JD
55762003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5577
f26fab36
JD
5578 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5579
5202d23d
JD
5580 * xfaces.c (lface_fully_specified_p): Take into account that
5581 MAC OS always have unspecified stipple.
5582
8babaa59
TTN
55832003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5584
5585 * tparam.c (tparam1): Add handling for `%pN', which
5586 means use param N for the next substitution.
5587
2d176448
TTN
55882003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5589
5590 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5591 In case `frame' is nil, consult the selected frame.
5592 (Fcolor_supported_p): Likewise.
5593
adb0708c
LT
55942003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5595
000eeb15
LT
5596 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5597 Doc fixes.
0dc72b11
LT
5598
5599 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5600 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5601 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5602 Doc fix.
5603 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5604 read_minibuf.
5605 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5606 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5607
2e4d132b
KH
56082003-12-03 Kenichi Handa <handa@m17n.org>
5609
5610 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5611 encoding sequence.
5612
3999c705
KH
56132003-12-01 Kenichi Handa <handa@m17n.org>
5614
5615 * composite.c (syms_of_composite): Don't make the compostion hash
5616 table week.
5617
d344ecbb
LT
56182003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5619
5620 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5621 * textprop.c (Fget_char_property_and_overlay): New function.
5622 (syms_of_textprop): Defsubr it.
5623
03d6484e
JD
56242003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5625
019b1f0e
JD
5626 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5627 to compile on terminal configuration.
5628
03d6484e
JD
5629 * fileio.c (Fread_file_name): Check use_file_dialog also before
5630 calling Fx_file_dialog.
5631
5632 * fns.c: use_file_dialog: New variable.
5633 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5634
442d3fd0
KS
56352003-11-29 Kim F. Storm <storm@cua.dk>
5636
5637 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5638 (syms_of_msdos): Don't intern and staticpro them.
5639
0f6a07a8
KS
56402003-11-27 Kim F. Storm <storm@cua.dk>
5641
5642 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5643 coordinates relative to glyph at posn. If glyph is an image,
5644 return that as object at posn. Callers changed.
5645 (mode_line_string, marginal_area_string): Calculate and return
5646 pixel coordinates relative to glyph. Callers changed.
5647
5648 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5649 (marginal_area_string): Fix prototypes.
5650 (window_box_left_offset, window_box_right_offset): Add prototypes.
5651
5652 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5653 Remove prototypes.
5654
5655 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5656
5657 * keyboard.c (make_lispy_position): Add x and y coordinates
5658 relative to the current glyph as 7th element of position.
5659 If glyph is an image, return it in the object element.
5660 (read_key_sequence): Skip checks for keymap property in cases
5661 where POSN_STRING is not a string (e.g. an image).
5662
5663 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5664 (Vshow_text_cursor_in_void): New variable.
5665 (glyph_to_pixel_coords): Don't use negative hpos.
5666 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5667 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5668 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5669 (calc_pixel_width_or_height): New aux function, implementing
5670 pixel based artihmetic for glyph widths and heights.
5671 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5672 :width, :height, :align-to, and :ascent, thus allowing these to
5673 be specified in pixels as well as multiples of characters.
5674 Don't produce stretch glyphs with zero width or height.
5675 (get_specified_cursor_type): Declare static.
5676 (get_window_cursor_type): Declare static. Add glyph arg to be
5677 able to know when cursor is on an image; always substitute
5678 hollow-box cursor for filled-box cursor on images, to avoid
5679 negative images and flicker when blinking the cursor.
5680 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5681 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5682 than vertical scroll-bar cursor in display margins.
5683 (note_mouse_highlight): Use non-text cursor rather than text
5684 cursor in fringes and over images in the text area.
5685 Use non-text cursor when mouse pointer is outside editable text,
5686 i.e. in the void after end-of-line or end-of-buffer; this was
5687 already done for W32, but is now standard for all systems --
5688 user can toggle show-text-cursor-in-void to get old behaviour.
5689 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5690 Vdisplay_pixels_per_inch.
5691
00498bfc
AS
56922003-11-25 Andreas Schwab <schwab@suse.de>
5693
5694 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5695 EMACS_INT to not lose bits.
5696 (Ffillarray): Don't set bits beyond the size of a bool vector.
5697
edaa824d
KS
56982003-11-25 Kim F. Storm <storm@cua.dk>
5699
5700 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5701 define this defun on systems that cannot use stderr as lvalue.
5702
74d6f539
GM
57032003-11-24 Gerd Moellmann <gerd@gnu.org>
5704
5705 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5706 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5707 ld's default is incompatible with unexec.
5708
6a1ff3ba
KS
57092003-11-23 Kim F. Storm <storm@cua.dk>
5710
63dc7c6b
KS
5711 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5712 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5713 (Fforce_window_update): New defun.
5714 (syms_of_window): Defsubr it.
5715 (Fset_window_margins, Fset_window_fringes): Doc fix.
5716
6a1ff3ba
KS
5717 * print.c (Fredirect_debugging_output): New defun.
5718 (syms_of_print): Defsubr it.
5719
aef109b7
LT
57202003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5721
5722 * fns.c (Fset_char_table_parent): Doc fix.
5723
6a1ff3ba 57242003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5725
5726 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5727 for glyph clicked on, rather than (unused) pixel positions.
5728 (mode_line_string, marginal_area_string): Change X and Y args to
5729 pointers for returning actual row/column for glyph clicked on.
5730 Simplify and optimize loops.
5731
aef109b7
LT
5732 * dispextern.h (mode_line_string, marginal_area_string):
5733 Update prototypes.
63ccbe21
KS
5734
5735 * keyboard.c (make_lispy_position): New function for generating
5736 mouse click positions from frame and pixel coordinates.
5737 Enhanced to return buffer position and actual row/column for
5738 events outside the text area using updated mode_line_string and
5739 marginal_area_string functions.
5740 Return left-fringe and right-fringe clicks as such, rather than
5741 clicks in text area.
5742 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5743 pixel_to_glyph_coords, as we never use the results.
5744 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5745 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5746 Eliminate unused code in WHEEL_EVENT handling.
5747 (make_lispy_movement): Use make_lispy_position.
5748
5749 * window.c (coordinates_in_window): Remove redundant tests.
5750 Fix returned X pixel value for left-margin.
5751
5752 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5753 mode_line_string and marginal_area_string parameters.
5754
a64387ee 57552003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5756
d7107586
SM
5757 * w32.c (struct the_group, getgrgid): Add.
5758 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5759
3dbf3426
LT
57602003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5761
5762 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5763
cae8ddbb 57642003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5765
d7107586
SM
5766 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5767 include in call to file name handler. Optionally translate numeric
5768 UID and GID to strings. Update docstring.
5769 (directory_files_internal): Add parameter ID-FORMAT.
5770 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5771 include in call to file name handler and call to
5772 directory_files_internal. Update Docstring.
5773 (Fdirectory_files): Add dummy parameter in call to
5774 directory_files_internal.
5775 * lisp.h (Qinteger): Add.
5776 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5777 (Ffile_attributes): Add parameter.
5778 * data.c (Qinteger): Export.
cae8ddbb 5779
2550b848
LT
57802003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5781
3dbf3426 5782 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5783
88380018
KS
57842003-11-19 Kim F. Storm <storm@cua.dk>
5785
5786 * xdisp.c (init_iterator): Initialize it->start to position
5787 before reseating (in case start position is invisible).
5788 (init_to_row_start): Set it->start to row-start.
5789 (redisplay_window): Accept optional_new_start if start position
5790 is invisible (in which case IT_CHARPOS overshoots PT).
5791 (display_line): Setup row->start from it->start (rather than
5792 it->current which is wrong if first char on line is invisible).
5793 When done, reseat it->start to it->current (= start of next row).
5794 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5795 is only partially visible.
5796
5797 * dispextern.h (struct it): New member start.
5798
854c1a59
SM
57992003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5800
455316e2
SM
5801 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5802 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5803 of block_index outside of the macro call.
5804 (Fgarbage_collect): Remove null code.
5805
5806 * m/amdx86-64.h: Don't redefine XPNTR.
5807
854c1a59
SM
5808 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5809 of VALMASK.
5810
5811 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5812 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5813 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5814
5815 * lisp.h (VALMASK): Only define for non-union type.
5816 (MARKBIT): Remove.
5817 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5818 (XTYPE): Define unconditionally.
5819 (XSETTYPE): Remove one more remnant.
5820 (EQ): Define differently for the union and non-union cases.
5821 (INTMASK): New bit mask.
5822 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5823 (GC_EQ): Delegate to EQ.
5824
5825 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5826
a0c6ef2d
JD
58272003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5828
5829 * xterm.c (x_window_to_scroll_bar): Move check of display to
5830 where window_id is compared.
5831
859492c4
KS
58322003-11-17 Kim F. Storm <storm@cua.dk>
5833
5834 * dispextern.h (struct it): New member first_vpos.
5835
5836 * xdisp.c (start_display): Set it->first_vpos.
5837 (try_window_id): Use first_vpos to start display in first _text_
5838 line if no reusable lines at start of window with header line.
5839
810f2256
JD
58402003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5841
7c402969 5842 * w32fns.c (XPutPixel):
854c1a59
SM
5843 * w32bdf.c (w32_init_bdf_font):
5844 * sunfns.c (sel_read):
5845 * process.c (Fmake_network_process):
5846 * frame.c (store_frame_param):
5847 * fontset.c (Fset_fontset_font):
5848 * emacs.c (shut_down_emacs):
a64387ee 5849 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5850
a32e9bfd
JD
5851 * config.in: Regenerate.
5852
810f2256
JD
5853 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5854 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5855 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5856 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5857 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5858
5859 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5860
5861 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5862 (XTmouse_position, handle_one_xevent): Pass Display* to
5863 x_window_to_scroll_bar.
5864 (x_window_to_scroll_bar): Take a Display* argument.
5865 Check that display for frame is equal to Display* argument.
854c1a59 5866 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5867 x_display_info_for_display instead. Use Display in xev instead
5868 of GDK_DISPLAY.
5869 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5870 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5871 (x_connection_closed): Call xg_display_close for GTK.
5872 (x_term_init): Call xg_display_open for additional displays.
5873 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5874 for GTK.
5875
5876 * xmenu.c (single_menu_item, mouse_position_for_popup)
5877 (x_activate_menubar): Formatting adjustments.
5878
5879 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5880 adjustments.
5881
5882 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5883 (xg_display_close, xg_create_default_cursor)
5884 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5885 handling.
854c1a59
SM
5886 (xg_left_ptr_cursor): Remove.
5887 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5888 cursor here.
5889 (xg_win_to_widget): Take Display* argument, call
5890 gdk_xid_table_lookup_for_display.
5891 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5892 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5893 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5894 in FRAME_X_DISPLAY_INFO.
5895 (xg_get_scroll_id_for_window): Take Display* argument.
5896 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5897 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5898
78819ebb
KS
5899 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5900 Display* argument.
5901 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5902
0b03cc78
JD
59032003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5904
5905 * xterm.c (x_detect_focus_change): Do not change focus frame for
5906 Enter/LeaveNotify if the current focus frame has explicit focus.
5907
77e688fa
KS
59082003-11-14 Kim F. Storm <storm@cua.dk>
5909
5910 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5911 is active and first glyph is only partially visible.
854c1a59 5912
dd429b03
KH
59132003-11-13 Kenichi Handa <handa@m17n.org>
5914
5915 * xdisp.c (select_frame_for_redisplay): New function.
5916 (redisplay_internal): Record also selected_frame for
5917 unwind_redisplay. Call select_frame_for_redisplay before
5918 redrawing each frame.
5919 (unwind_redisplay): Argument changed to a cons.
5920
6d9266f4
LT
59212003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5922
5923 * fns.c (Fstring_to_multibyte): Doc fix.
5924
80060eb3
KH
59252003-11-11 Kenichi Handa <handa@m17n.org>
5926
5927 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5928
74305183
JD
59292003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5930
5931 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5932 program specified positions.
5933
cfda993e
JD
59342003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5935
5936 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5937
df211069
KH
59382003-11-08 Kenichi Handa <handa@m17n.org>
5939
5940 * Makefile.in (lisp): Add kannada.el.
5941 (shortlisp): Likewise.
5942
4307d534
KH
59432003-11-07 Kenichi Handa <handa@m17n.org>
5944
854c1a59
SM
5945 * coding.c (coding_allocate_composition_data):
5946 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5947 (coding_restore_composition): Detect invalid composition data.
5948 Give Fstring and Fvector a Lispy integer, not C int.
5949
854c1a59
SM
59502003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5951
5952 * floatfns.c (Flogb): Don't use VALMASK.
5953
5954 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5955 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5956
5957 * lisp.h (XINT): Move the cast to clarify what is going on.
5958 (GCTYPEMASK, XSETTYPE): Remove.
5959 (XGCTYPE): Make it an alias of XTYPE.
5960
d04103a1
JD
59612003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5962
5963 * xterm.c (x_term_init): Fix formatting.
5964
da18b5ac
JD
59652003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5966
78819ebb
KS
5967 * gtkutil.h (xg_have_tear_offs): Declare.
5968 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5969
5970 * gtkutil.c: Remove variable xg_did_tearoff.
5971 (xg_have_tear_offs): New function.
5972 (tearoff_remove): Just decrease xg_detached_menus.
5973 (tearoff_activate): Increase xg_detached_menus and call
5974 tearoff_remove when tearoff is removed.
854c1a59 5975 (xg_keep_popup): Remove function.
da18b5ac
JD
5976 (create_menus): Give add_tearoff_p as argument to recursive
5977 call to create_menus.
5978 (xg_create_widget): Use variables instead of multiple
5979 strcmp. Tell create_menus to create tear off only for
5980 menu bar menus.
5981 (xg_update_menubar): Change title for a detached menu also.
5982 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5983 of deep_p.
5984 (xg_initialize): Initialize xg_detached_menus, remove
5985 initialization of xg_did_tearoff.
5986
5987 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5988 xg_have_tear_offs returns non-zero.
5989 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5990 call to xg_keep_popup.
5991
64d4923e
AC
59922003-11-01 Andrew Choi <akochoi@shaw.ca>
5993
5994 * macterm.c (XTread_socket): Handle menubar selection and grow
5995 window only for mouseDown events.
854c1a59 5996
6cc8bc07
JD
59972003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5998
5999 * xterm.c (x_term_init): For GTK part, increase x_initialized
6000 to check for more than one display. Use error instead of return 0.
6001
043131c4
AC
60022003-10-31 Andrew Choi <akochoi@shaw.ca>
6003
854c1a59 6004 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6005 (copy_dysymtab): Call it.
6006
bdda99a1
LT
60072003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6008
6009 * eval.c (Fdefvaralias): Doc fix.
6010
800f42ff 60112003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6012
6013 * data.c (Fsetplist): Doc fix.
6014
ef35b389
LK
60152003-10-14 Lute Kamstra <lute@gnu.org>
6016
6017 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6018
ef35b389 60192003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6020
07107abc
KS
6021 * window.c (Fset_window_margins): Simplify arg checking.
6022
f7005886
RS
60232003-10-13 Richard M. Stallman <rms@gnu.org>
6024
6025 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6026 (print_partial_compiled_pattern): Replace assert with a printout.
6027 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6028
6029 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6030
6031 * window.c (Fset_window_margins): Allow only integers as args.
6032 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6033 Doc fixes.
6034
9c0c2af5
LK
60352003-10-13 Lute Kamstra <lute@gnu.org>
6036
6037 * window.c (Fset_window_fringes): Elaborate docstring.
6038
3f080e4e
AC
60392003-10-12 Andrew Choi <akochoi@shaw.ca>
6040
854c1a59 6041 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6042
3f080e4e
AC
6043 * s/darwin.h (GC_MARK_STACK): Define.
6044
0aa513ed
JD
60452003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6046
6047 * window.c (shrink_windows): New function.
6048 (size_window): Call shrink_windows to calculate window sizes when
6049 shrinking frame with more than one window.
6050
6aa8858a
KS
60512003-10-12 Kim F. Storm <storm@cua.dk>
6052
6053 * xdisp.c (compute_fringe_widths): Doc fix.
6054
c2164d91
KH
60552003-10-08 Kenichi Handa <handa@m17n.org>
6056
854c1a59 6057 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6058
f82ac129
KH
60592003-10-07 Kenichi Handa <handa@m17n.org>
6060
6061 * coding.c (Qcoding_system_define_form): New variable.
6062 (syms_of_coding): Intern and staticpro it.
6063 (Fcheck_coding_system): Try to autoload the definition of
6064 CODING-SYSTEM.
6065
9296c947
LT
60662003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6067
6068 * fns.c (Frequire): Doc fix.
6069
c1f0671a
JD
60702003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6071
3d8c3826
JD
6072 * xfns.c (Fx_send_client_event): New function as a base for
6073 manipulating extended window manager hints.
6dc15d98 6074 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6075
068ae0fd
JD
6076 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6077 that function is removed.
6078
6079 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6080 x/y_pixels_outer_diff.
6081 (x_check_expected_move): Calculate move_offset_left/top.
6082
6083 * xterm.h (struct x_output): New members: move_offset_top/left.
6084
854c1a59 6085 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6086 call x_set_offset directly.
6087
6088 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6089
96f09305
JD
6090 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6091
6092 * xterm.c (x_delete_display): Free font names and font_encoder
6093 in dpyinfo->font_table.
6094
854c1a59
SM
6095 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6096 Move xfree of font names to x_delete_display.
96f09305 6097
c1f0671a
JD
6098 * xterm.h (struct x_display_info): New member, wm_type.
6099 (struct x_output): New members, expected_top/left and
6100 check_expected_move.
6101
6102 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6103 is received.
854c1a59
SM
6104 (handle_one_xevent): Rename x_check_expected_move from
6105 x_check_fullscreen_move.
c1f0671a
JD
6106 (x_set_offset): Only add WM decoration sizes to modified_top/left
6107 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6108 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6109 Removed fullscreen specific code. Use check_expected_move,
6110 expected_left/top instead. Also, set wm_type.
6111 (x_term_init): Initialize wm_type to unknown.
6112
6113 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6114 sizes to move_x/y.
6115
be2fdba9
KH
61162003-10-03 Kenichi Handa <handa@m17n.org>
6117
6118 * macterm.c (x_load_font): Clear all members of FONTP before start
6119 filling them.
6120
61212003-10-02 Kenichi Handa <handa@m17n.org>
6122
6123 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6124 before calling find_ccl_program_func. Call find_ccl_program_func
6125 only when fontp->font_encoder is not NULL.
6126
6127 * xterm.c (x_load_font): Clear all members of FONTP before start
6128 filling them.
6129
26a6e439
JPW
61302003-10-03 John Paul Wallington <jpw@gnu.org>
6131
6132 * keymap.c (map_keymap): Don't abort when binding is a vector.
6133
0d4c2dc2
JR
61342003-10-02 Jason Rumney <jasonr@gnu.org>
6135
854c1a59
SM
6136 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6137 Sync dependencies with Makefile.in.
a63cf46f
JR
6138 (alloca.o): Remove.
6139
0d4c2dc2
JR
6140 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6141 filling them.
6142
6143 * w32bdf.c (w32_load_bdf_font): Likewise.
6144
ab8f7d5c
RS
61452003-09-30 Richard M. Stallman <rms@gnu.org>
6146
6147 * term.c (set_tty_color_mode): Calculate current_mode_spec
6148 regardless of value of VAL.
6149
854c1a59 6150 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6151 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6152 Handle over_used when splitting UNDER.
6153
a64387ee 61542003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6155
6156 * regex.c (regex_compile): Free the stack when returning from function.
6157
3413f972
KH
61582003-09-28 Kenichi Handa <handa@m17n.org>
6159
6160 * fontset.c (Finternal_char_font): Change return value to
6161 cons (FONT-NAME . GLYPH-CODE).
6162
a6eeaa81 61632003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6164
6165 * term.c (tty_setup_colors): Treat any negative argument as -1.
6166
f98ddc99
KH
61672003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6168
6169 * process.c (send_process): Delete unused temp_buf.
6170
66c8f1a8
DL
61712003-09-26 Dave Love <fx@gnu.org>
6172
6173 * xterm.c (x_bitmap_mask): Declare.
6174
ca716c26
DL
61752003-09-25 Dave Love <fx@gnu.org>
6176
6177 * Makefile.in (fns.o): Depend on md5.h.
6178
fbe57420
KS
61792003-09-25 Kim F. Storm <storm@cua.dk>
6180
6181 * window.c (set_window_buffer): Fix redisplay problems when
6182 switching between buffers with different display margin widths.
6183
ef6ae4ff
KS
61842003-09-23 Kim F. Storm <storm@cua.dk>
6185
6186 * process.c (set_socket_option): Fix :bindtodevice option.
6187 (Fset_network_process_option): Update process contact list when
6188 setting option succeeds.
6189 (Fmake_network_process): Doc fix.
6190
68e03c1c
DL
61912003-09-23 Dave Love <fx@gnu.org>
6192
7146d1c1 6193 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6194
a6eeaa81 61952003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6196
6197 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6198 color mode is an integer number (it could be -1).
6199
8fe7d8c8
RS
62002003-09-22 Richard M. Stallman <rms@gnu.org>
6201
6202 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6203 in the case where OVER is longer than UNDER.
6204
2f71b5ea
MY
62052003-09-22 Masatake YAMATO <jet@gyve.org>
6206
7146d1c1 6207 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6208 `vertical_type'.
7146d1c1 6209
0c4da023
KS
62102003-09-21 Kim F. Storm <storm@cua.dk>
6211
6212 * frame.c (Vdefault_frame_scroll_bars): New variable.
6213 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6214 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6215 window-system default scroll bar position.
6216
b648413b
KS
6217 * window.c (Fwindow_scroll_bars): Doc fix.
6218
8f5b9e34
JD
62192003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6220
854c1a59 6221 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6222
b0f23edf
RS
62232003-09-19 Richard M. Stallman <rms@gnu.org>
6224
6225 * atimer.h: Don't include lisp.h.
6226 (P_): Define it here (as well as elsewhere).
6227
6228 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6229 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6230
6231 * data.c (Fvariable_binding_locus): New function.
6232 (syms_of_data): defsubr it.
6233 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6234
e1283999
DL
62352003-09-18 Dave Love <fx@gnu.org>
6236
ad5f3636
DL
6237 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6238
e1283999
DL
6239 * process.c (Fnetwork_interface_info): Fix type error.
6240 (Fnetwork_interface_list): Doc fix.
6241 (read_process_output, read_process_output): Delete unused var.
6242
b8c7fd71
KS
62432003-09-17 Kim F. Storm <storm@cua.dk>
6244
6245 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6246 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6247 (Fnetwork_interface_info): Check that ifreq struct has required
6248 fields before accessing them; this requires that those fields are
6249 defined as macros, which may be too restrictive on some platforms,
6250 but it is better than failing on other platforms.
6251 (syms_of_process): Only defsubr above fns when included.
6252
11e0a411
DL
62532003-09-17 Dave Love <fx@gnu.org>
6254
6255 * unexalpha.c: Don't include varargs.h.
6256
e9c50801
KS
62572003-09-17 Kim F. Storm <storm@cua.dk>
6258
6259 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6260 for network process.
6261 (socket_options): Add `:' prefix to option names. Add optbit field.
6262 (set_socket_option): Remove no_error arg and special handling of s < 0.
6263 Return 1<<optbit for known option, 0 for unknown.
6264 Do not interpret 0 as false for boolean option (only nil).
6265 Pass failed option and value to report_file_error.
7146d1c1 6266 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6267 (Fset_network_process_option): New function to set just one option.
6268 (Fmake_network_process): Allow :coding arg to be a cons.
6269 Allow :server arg to be an integer specifying backlog size.
6270 Remove :options arg, and allow options to be specified directly
6271 as :KEY, VALUE pairs. Parse these options before binding socket.
6272 As before, :reuseaddr t is default for a server process, but this
6273 can now be disabled by specifying :reuseaddr nil.
6274 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6275 (init_process): Availability of network options is now checked with
6276 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6277 setup features.
6278 (syms_of_process): Fix defsubr's for the replaced functions.
6279
a0fc3644
DL
62802003-09-16 Dave Love <fx@gnu.org>
6281
6282 * Makefile.in: Depend on coding.h.
6283
6df2a645
KS
62842003-09-14 Kim F. Storm <storm@cua.dk>
6285
6286 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6287 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6288 (syms_of_process): Defsubr them.
6289
6290 * config.in: Regenerate.
7146d1c1
SM
6291
62922003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6293
6294 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6295 * m/news-r6.h (XUNMARK): Remove.
6296 * m/mips.h (XUNMARK): Remove.
6297 * m/mips-siemens.h (XUNMARK): Remove.
6298 * m/iris4d.h (XUNMARK): Remove.
6299 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6300
0930c1a1
SM
63012003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6302
31003b9e
SM
6303 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6304 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6305 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6306 (XTYPE): Use unsigned right-shift.
6307 (XMARKBIT, XMARK, XUNMARK): Remove.
6308
0930c1a1
SM
6309 * alloc.c (init_intervals, init_symbol, init_marker):
6310 Don't preallocate anything.
6311 (Fgarbage_collect, mark_object): Ignore the markbit.
6312
6313 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6314
19bb0fcd 63152003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6316
6317 * xdisp.c (pint2hrstr): New function.
6318 (decode_mode_spec): Add `%i' and `%I' specs.
6319 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6320 for `mode-line-format'.
6321
03bb6a06
AS
63222003-09-07 Andreas Schwab <schwab@suse.de>
6323
6324 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6325 avoid warning.
6326
a6eeaa81 63272003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6328
0930c1a1 6329 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6330
ed159bbf
KS
63312003-09-03 Kim F. Storm <storm@cua.dk>
6332
6333 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6334 change (superseded by 2002-08-30 change); the default blink-off
6335 cursor is now again "no cursor".
6336
fe64a394
JR
63372003-09-01 Jason Rumney <jasonr@gnu.org>
6338
6339 * makefile.w32-in (alloca.o): Remove.
6340 (coding.o): Depend on intervals.h
6341 (emacs.o, bytecode.o): Depend on window.h
6342
c0175e24
DL
63432003-09-01 Dave Love <fx@gnu.org>
6344
6345 * Makefile.in (alloca.o): Remove commands.
6346 (coding.o): Depend on intervals.h composite.h window.h.
6347 (emacs.o): Depend on window.h keyboard.h keymap.h.
6348 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6349 (bytecode.o): Depend on window.h.
6350
a24d4cb2
JR
63512003-08-31 Jason Rumney <jasonr@gnu.org>
6352
4bc2315e
JR
6353 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6354 returned even when font_type is unknown.
6355
a24d4cb2
JR
6356 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6357
9d35adc7
JD
63582003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6359
6360 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6361
6362 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6363 *_offset.
6364
6365 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6366 calculate pixel value.
6367
6f68b035
GM
63682003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6369
0930c1a1
SM
6370 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6371 Don't tell redisplay display is accurate when it's actually been
6372 paused for pending input.
6f68b035 6373
4828b4d7
RS
63742003-08-29 Richard M. Stallman <rms@gnu.org>
6375
6376 * dispnew.c (adjust_glyph_matrix): Call window_box
6377 whenever W is nonzero.
6378
6379 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6380 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6381 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6382 Use indirect_variable to trace thru variable aliases.
6383
6384 * config.in: Updated.
6385
6386 * callint.c (Fcall_interactively): Save and restore
6387 Vthis_command, Vthis_original_command, real_this_command,
6388 and current_kboard->Vlast_command.
6389
6390 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6391
e019878d
GM
63922003-08-29 Gerd Moellmann <gerd@gnu.org>
6393
6394 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6395
85478bc6
KH
63962003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6397
0930c1a1 6398 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6399 (decode_coding_sjis_big5): Likewise.
6400
07ce82d3
JR
64012003-08-27 Jason Rumney <jasonr@gnu.org>
6402
d3703de3
JR
6403 * w32.c (sys_pipe): Protect against file descriptor overflow.
6404
ee4a01d1
JR
6405 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6406
07ce82d3
JR
6407 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6408
a64387ee 64092003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6410
6411 * xfns.c (Vgtk_version_string): New variable.
6412 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6413
a6eeaa81 64142003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6415
0930c1a1 6416 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6417
5459e42a
EZ
6418 * Makefile.in (msdos.o): Depend on intervals.h.
6419
0930c1a1 6420 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6421
231d6cfb
JD
64222003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6423
6424 * xterm.h (struct x_display_info): New fields: client_leader_window
6425 and Xatom_wm_client_leader.
6426
6427 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6428 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6429
6430 * xsmfns.c (create_client_leader_window): New function.
6431 (x_session_initialize): Call create_client_leader_window, take
6432 dpyinfo as argument.
6433
6434 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6435
6436 * Makefile.in (xsmfns.o): Add more depenedencies.
6437
afa88464
DL
64382003-08-21 Dave Love <fx@gnu.org>
6439
6440 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6441
f730033e
KH
64422003-08-21 Kenichi Handa <handa@m17n.org>
6443
6444 * term.c (term_init): Fix previous change; don't rely on the
6445 length of `buffer' if TERMINFO is defined.
6446
6dca786c
DL
64472003-08-20 Dave Love <fx@gnu.org>
6448
6449 * atimer.h: Include lisp.h.
6450
6451 * lisp.h (EMACS_LISP_H): New.
6452 (popup_activated_flag): Don't declare.
6453
6454 * alloca.c: Some merging with gnulib. Change logic and doc
6455 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6456 [DO_BLOCK_INPUT]: Don't include lisp.h.
6457 (xmalloc, xfree): Declare.
6458 (malloc): Don't declare.
6459
0930c1a1 6460 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6461 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6462 atimer.h, blockinput.h.
6463
6464 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6465
78819ebb 6466 * alloca.s: Remove.
6dca786c 6467
3a06a6d9
RS
64682003-08-19 Gerd Moellmann <gerd@gnu.org>
6469
6470 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6471 use -lncurses.
6472
6473 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6474 FreeBSD returns something longer than 2044. Abort if the end of
6475 the buffer is overwritten.
6476
27eeee55
MB
64772003-08-19 Miles Bader <miles@gnu.org>
6478
6479 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6480
2f297815
GM
64812003-08-19 Gerd Moellmann <gerd@gnu.org>
6482
f4446bbf
GM
6483 * alloc.c (lisp_align_malloc): Check for memory full when
6484 allocating ablocks, which also avoids freeing a pointer into an
6485 ablocks structure.
6486
6487 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6488
0930c1a1 6489 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6490
0e7d7aae
RS
64912003-08-16 Richard M. Stallman <rms@gnu.org>
6492
6493 * editfns.c (Fencode_time): Doc fix.
6494
64952003-08-16 David Ponce <david@dponce.com>
6496
6497 * fileio.c (Fwrite_region): Fix conditional expression to issue
6498 the right message.
6499
b6189c3b 65002003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6501
6502 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6503 Set default value to 1.
0e7d7aae 6504
5d551295
KH
65052003-08-15 Kenichi Handa <handa@m17n.org>
6506
6507 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6508 what autoscaled.
6509 (best_matching_font): Once we find a better scalable font, set
6510 non_scalable_has_exact_height_p to 1.
6511 (try_font_list): Call try_alternative_families to try any family
6512 with the given registry.
6513
1661e56b
AS
65142003-08-09 Andreas Schwab <schwab@suse.de>
6515
f29181dc
AS
6516 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6517
1661e56b
AS
6518 * print.c (print_string): Fix printing of multibyte string with
6519 nontrivial printcharfun.
6520
465aa50a
JD
65212003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6522
6523 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6524
6525 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6526
e430e5ba
KH
65272003-07-31 Kenichi Handa <handa@m17n.org>
6528
6529 * process.c (read_process_output): Return the actually read bytes
6530 instead of the result of decoding.
6531
97e7188e
KH
65322003-07-31 Kenichi Handa <handa@m17n.org>
6533
6534 * xterm.h (struct x_bitmap_record): New member have_mask.
6535
6536 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6537 to 0.
6538 (x_create_bitmap_from_file): Likewise.
6539 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6540 (x_destroy_all_bitmaps): Likewise.
6541 (x_create_bitmap_mask): Set have_mask member to 1.
6542
b53094d6
RS
65432003-07-30 Richard M. Stallman <rms@gnu.org>
6544
6545 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6546
631f2082
JD
65472003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6548
6549 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6550
c855f2ca
RS
65512003-07-29 Richard M. Stallman <rms@gnu.org>
6552
6553 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6554 Conditionalize XIM code on HAVE_XIM.
6555
6556 * fns.c (Fclear_string): New function.
6557 (syms_of_fns): defsubr it.
6558
b6189c3b 65592003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6560
0930c1a1 6561 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6562
29ea8ae9
SM
65632003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6564
6565 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6566
6567 * buffer.c (delete_all_overlays): New function.
6568 * buffer.h (delete_all_overlays): Declare.
6569 * coding.c (run_pre_post_conversion_on_str):
6570 * print.c (temp_output_buffer_setup):
6571 * fileio.c (Finsert_file_contents):
6572 * minibuf.c (get_minibuffer): Use it.
6573
1dd7ccf2
AC
65742003-07-22 Andrew Choi <akochoi@shaw.ca>
6575
6576 * unexmacosx.c (unexec_regions_sort_compare):
6577 (unexec_regions_merge): New functions. Sort and merge unexec
6578 regions before dumping them.
6579
f57bd967
DL
65802003-07-22 Dave Love <fx@gnu.org>
6581
6582 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6583
7cdee936
SM
65842003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6585
6586 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6587 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6588 MARKBIT as the gcmarkbit for strings.
6589
e50886d3
RS
65902003-07-21 Richard M. Stallman <rms@gnu.org>
6591
6592 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6593
29ea8ae9 6594 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6595 (syms_of_fns): Corresponding change.
6596
6597 * alloc.c (syms_of_alloc): Doc fixes.
6598
65992003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6600
6601 * s/netbsd.h: Use -Wl syntax.
6602
fdc39b59
RS
66032003-07-17 Richard M. Stallman <rms@gnu.org>
6604
6605 * xterm.c (xim_initialize): Redo 6/24 change.
6606
9c53385f
SM
66072003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6608
6609 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6610 (Fswitch_to_buffer): Don't signal an error when switching to the same
6611 buffer in a dedicated window.
6612
6613 * alloc.c: Use bitmaps for cons, as was done for floats.
6614 (init_float, init_cons): Let the normal code allocate the first block.
6615 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6616 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6617 New macros.
6618 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6619 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6620 (live_cons_p): Check the pointer is not past the `conses' array.
6621 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6622 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6623 (survives_gc_p): Use CONS_MARKED_P and simplify.
6624 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6625
dde13196
PE
66262003-07-13 Paul Eggert <eggert@twinsun.com>
6627
6628 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6629 puts it into BSS instead, at least on Solaris 8 and 9.
6630 This is a valid optimization, and it may occur on other platforms,
6631 so Emacs should not assume that initializing a static variable to
6632 zero puts it into data.
6633 * alloc.c (pure, staticvec):
6634 Initialize these arrays to nonzero, so that they're not
6635 put into BSS by that optimization.
6636
a801bc34
SM
66372003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6638
6639 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6640 (lisp_align_malloc): Use posix_memalign is available.
6641 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6642 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6643 for consistency. Update users.
6644
0c8b2afa
RS
66452003-07-13 Richard M. Stallman <rms@gnu.org>
6646
6647 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6648
668c2ab0
JB
66492003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6650
6651 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6652 and use the Gtk+ function gtk_window_icon_from_file if available.
6653
6654 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6655 handle mask of bitmaps.
6656 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6657 mask property.
6658 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6659
6660 * xterm.h (xg_set_icon): New function.
6661
800bebe3
RS
66622003-07-12 Paul Eggert <eggert@twinsun.com>
6663
6664 * unexelf.c (unexec): Consider a section to precede the .bss
6665 section if its addresses overlap that of .bss.
6666
69e38995
RS
66672003-07-12 Richard M. Stallman <rms@gnu.org>
6668
6669 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6670
6671 * config.in (HAVE_CRTIN): Add #undef.
6672 (INLINE): Really inline only if OPTIMIZE is defined.
6673
6674 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6675 END_FILES_1.
6676 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6677 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6678
6679 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6680 (TERMINFO): Define.
6681 (LIBS_TERMCAP): Define.
6682 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6683
6684 * xfns.c: Include libpng/png.h instead of png.h.
6685
f1d0c238
AS
66862003-07-11 Andreas Schwab <schwab@suse.de>
6687
6688 * buffer.c (modify_overlay): Update prototype.
6689 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6690 Likewise.
6691
5f6bf5fe
SM
66922003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6693
6694 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6695 (struct interval): Move to intervals.h.
6696 (struct Lisp_Marker): Use EMACS_INT for position info.
6697 (forward_point): Remove prototype of defunct function.
6698 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6699 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6700 (syms_of_textprop, set_text_properties): Remove prototypes that are
6701 already in intervals.h.
6702
6703 * intervals.h (struct interval): Move from lisp.h.
6704 Use EMACS_INT for position and size info.
6705
6706 * coding.c: Include intervals.h for Fset_text_properties.
6707
6708 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6709 position and length information.
6710
2765b457
SM
67112003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6712
6713 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6714 position and length information.
6715
2410d73a
SM
67162003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6717
6718 Change overlays_after and overlays_before so the overlays themselves
6719 are linked into lists, rather than using cons cells. After all each
6720 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6721 Lisp_Overlay for free and save up one cons cell per overlay (not
6722 to mention one indirection when traversing the list of overlay).
6723
6724 * lisp.h (struct Lisp_Overlay): New field `next'.
6725
6726 * buffer.h (struct buffer): Change overlays_before and overlays_after
6727 from Lisp lists of overlays to pointers to overlays.
6728
6729 * buffer.c (overlay_strings, recenter_overlay_lists):
6730 Fix typo in eassert in last commit.
6731 (unchain_overlay): New function.
6732 (add_overlay_mod_hooklist): Use AREF.
6733 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6734 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6735 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6736 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6737 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6738 Adjust to new type of overlays_(before|after).
6739
6740 * alloc.c (mark_object): Mark the new `next' field of overlays.
6741 (mark_buffer): Manually mark the overlays_(after|before) fields.
6742
6743 * coding.c (run_pre_post_conversion_on_str):
6744 * editfns.c (overlays_around):
6745 * xdisp.c (load_overlay_strings):
6746 * fileio.c (Finsert_file_contents):
6747 * indent.c (current_column):
6748 * insdel.c (signal_before_change, signal_after_change):
6749 * intervals.c (set_point_both):
6750 * print.c (temp_output_buffer_setup): Use new type for
6751 overlays_(before|after).
6752
04812929
SM
67532003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6754
6755 * buffer.c (report_overlay_modification): Don't run hooks while
6756 traversing the list of overlays.
6757
6758 * buffer.h (struct buffer): Use an int for overlay_center.
6759 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6760 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6761
6762 * buffer.c (reset_buffer, recenter_overlay_lists)
6763 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6764 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6765 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6766 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6767 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6768
6769 * xdisp.c (fast_find_position): Remove unused var.
6770
6771 * cmds.c (Qexpand_abbrev): New sym.
6772 (syms_of_cmds): Initialize it.
6773 (internal_self_insert): Use it to call expand-abbrev.
6774
2e7ecf15
KS
67752003-07-09 Kim F. Storm <storm@cua.dk>
6776
f9711de4 6777 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6778 was configured with --without-xim.
42f81f64 6779 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6780
c6de56a0
RS
67812003-07-07 Richard M. Stallman <rms@gnu.org>
6782
6783 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6784
6785 * alloc.c (Fgarbage_collect): Doc fix.
6786
b6189c3b 67872003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6788
6789 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6790
bfe1a3f7
SM
67912003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6792
04812929
SM
6793 * minibuf.c (read_minibuf): UNGCPRO before returning.
6794 (Ftry_completion, Fall_completions): Doc fix.
6795
bfe1a3f7
SM
6796 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6797 now that `floats' is not the last element of the struct any more.
6798
ee79d1aa
JR
67992003-07-06 Jason Rumney <jasonr@gnu.org>
6800
6801 * w32term.h (ClipboardSequence_Proc): New type.
6802
6803 * w32fns.c (clipboard_sequence_fn): New variable.
6804 (globals_of_w32fns): Initialize it.
6805
6806 * w32select.c (last_clipboard_sequence_number): New variable.
6807 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6808 number if possible.
6809
49723c04
SM
68102003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6811
4698665f
SM
6812 * m/amdx86-64.h (MARKBIT):
6813 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6814 MARKBIT and ARRAY_MARK_FLAG any more.
6815
6816 * m/hp800.h (XSETMARKBIT):
6817 * m/sr2k.h (XSETMARKBIT):
6818 * lisp.h (XSETMARKBIT): Remove unused macro.
6819
49723c04
SM
6820 * lisp.h (mark_object): Change prototype.
6821
6822 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6823 (last_marked): Change accordingly.
6824 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6825 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6826 (mark_buffer): Update calls to mark_object.
6827
6828 * bytecode.c (mark_byte_stack):
6829 * fns.c (sweep_weak_table):
6830 * keyboard.c (mark_kboards): Update calls to mark_object.
6831
1d660eca
JR
68322003-07-06 Jason Rumney <jasonr@gnu.org>
6833
6834 * alloc.c (struct ablock): Only include padding when there is some.
6835
618b5ae4
SM
68362003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6837
6838 * alloc.c (ALIGN): Add casts to simplify usage.
6839 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6840 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6841 (struct ablock, struct ablocks): New types.
6842 (free_ablock): New global var.
6843 (lisp_align_malloc, lisp_align_free): New functions.
6844 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6845 (struct float_block): Reorder and add gcmarkbits.
6846 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6847 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6848 (init_float, make_float): Use lisp_align_malloc.
6849 (free_float, live_float_p): Don't use `type' any more.
6850 (make_float): Use FLOAT_UNMARK to access to mark bit.
6851 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6852 Use FLOAT_MARKED_P to access the mark bit.
6853 (pure_alloc): Simplify use of ALIGN.
6854 (mark_object): Use FLOAT_MARK to access the mark bit.
6855 (gc_sweep): Use new macros to access the float's mark bit.
6856 (init_alloc_once): Init free_ablock.
6857
6858 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6859
3ef06d12
SM
68602003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6861
6862 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6863 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6864 (allocate_buffer): Move.
6865 (string_bytes): Don't mask markbit of `size_byte'.
6866 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6867 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6868 Use the `size' field of buffers (rather than the `name' field) for
6869 the mark bit, as is done for all other vectorlike objects.
6870 Use the new macros to access the mark bit of vectorlike objects.
6871
e81043aa
RS
68722003-06-26 Richard M. Stallman <rms@gnu.org>
6873
6874 * puresize.h (BASE_PURESIZE): Increment base size.
6875
6876 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6877
6878 * xterm.c (xim_initialize): Undo previous change.
6879
2d0834cc
SM
68802003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6881
6882 * alloc.c (survives_gc_p): Simplify.
6883
6884 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6885
6886 * window.c (Fset_window_dedicated_p): Simplify.
6887 (display_buffer_1): Don't raise the win from which minibuf was entered.
6888 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6889 (Fminibuffer_selected_window): Simplify.
6890
6891 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6892
6893 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6894 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6895
6896 * insdel.c (check_markers, adjust_markers_for_delete)
6897 (adjust_markers_for_insert, adjust_markers_for_replace)
6898 (prepare_to_modify_buffer, RESTORE_VALUE):
6899 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6900 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6901 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6902 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6903 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6904 * editfns.c (save_excursion_restore, transpose_markers):
6905 * window.c (delete_window):
6906 * xdisp.c (message_dolog): Update for new types.
6907
d54ae3d8
JD
69082003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6909
a5f696ac
JD
6910 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6911 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6912 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6913
6914 * frame.c (make_frame): Initialize default_face_done_p.
6915
6916 * frame.h (struct frame): Add default_face_done_p.
6917
d54ae3d8
JD
6918 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6919 will be defined.
6920
2336fe58
SM
69212003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6922
6923 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6924 Initialize the new field `gcmarkbit'.
6925 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6926 (mark_interval_tree): Don't mark the tree separately from the nodes.
6927 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6928 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6929 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6930
6931 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6932 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6933 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6934 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6935 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6936
bcea31c2
DL
69372003-06-24 Dave Love <fx@gnu.org>
6938
6939 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6940
6941 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6942 from gnulib.
6943
2601f59e
RS
69442003-06-21 Richard M. Stallman <rms@gnu.org>
6945
6946 * fileio.c (Fwrite_region): Alternate messages
6947 for append and partial write.
6948
6949 * keyboard.c (read_key_sequence): When converting upcase fn key to
6950 downcase, update fkey and keytran so `backspace' gets translated.
6951
6952 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6953
6954 * process.c (wait_reading_process_input): Don't signal SIGIO
6955 in batch mode.
6956
b5d2c621
KH
69572003-06-17 Kenichi Handa <handa@m17n.org>
6958
6959 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6960 composite.h.
6961
6962 * xselect.c: Don't include charset.h, coding.h, composite.h.
6963 (Qforeign_selection): New variable.
6964 (syms_of_xselect): Intern and static it.
6965 (selection_data_to_lisp_data): Return a unibyte string made from
6966 data with `foreign-selection' text property.
6967
6793bc63
SM
69682003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6969
6970 * termhooks.h (EVENT_INIT): New macro.
6971
6972 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6973
6974 * alloc.c (mark_kboards): Move to keyboard.c.
6975
6976 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6977 * xterm.c (x_dispatch_event):
6978 * xmenu.c (find_and_call_menu_selection):
6979 * xdisp.c (handle_tool_bar_click):
6980 * w32menu.c (menubar_selection_callback):
6981 * sysdep.c (kbd_input_ast, read_input_waiting):
6982 * msdos.c (dos_rawgetc):
6983 * macterm.c (mac_check_for_quit_char):
6984 * macmenu.c (menubar_selection_callback):
6985 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6986 data to kbd_buffer_store_event.
6987
b3ea810c
KS
69882003-06-15 Kim F. Storm <storm@cua.dk>
6989
6990 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6991 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6992
b8f75eda
KG
69932003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6994
6995 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6996
ba92ce48
KH
69972003-06-12 Kenichi Handa <handa@m17n.org>
6998
6999 * fileio.c (Fwrite_region): Save and restore restriction.
7000
b80263be
DL
70012003-06-12 Dave Love <fx@gnu.org>
7002
7003 * alloca.c (alloca): Declare arg as size_t.
7004
6793bc63
SM
7005 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7006 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7007
b23c0a83
DL
70082003-06-11 Dave Love <fx@gnu.org>
7009
7010 * search.c (shrink_regexp_cache): Use xrealloc.
7011 (syms_of_search): Use xmalloc.
7012
700e47c2
KS
70132003-06-10 Kim F. Storm <storm@cua.dk>
7014
7015 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7016 Adjust phys_cursor.x to be relative to window box, rather than
7017 text area before checking -- to ensure cursor is redrawn when
7018 exposing window.
7019 Note: This also fixes a similar (older) bug if display margins
7020 are present.
7021
f11aa0b2
KH
70222003-06-06 Kenichi Handa <handa@m17n.org>
7023
7024 * coding.c (encoding_buffer_size): If coding->type is
7025 coding_type_ccl, double magnification on CRLF encoding.
7026
3d143690
JR
70272003-06-06 Jason Rumney <jasonr@gnu.org>
7028
7029 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7030 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7031
7032 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7033 Mac too.
7034
f16205ca
DL
70352003-06-05 Dave Love <fx@gnu.org>
7036
b23c0a83
DL
7037 * strftime.c: Merge changes from gnulib.
7038
f16205ca
DL
7039 * mktime.c (__mktime_internal): Merge changes from gnulib
7040 involving year 69 and dst2.
7041
7042 Changes to merge with gnulib version and be consistent with the
7043 autoconf test:
7044
6793bc63
SM
7045 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7046 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7047 [HAVE_LOCALE_H]: Include locale.h.
7048 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7049
9b87a0bc
KS
70502003-06-05 Kim F. Storm <storm@cua.dk>
7051
7052 * window.c (coordinates_in_window): Convert X and Y to window
7053 relative coordinates inside mode-line and header-line parts.
7054 Convert X and Y to margin area relative coordinates inside left
7055 and right display margin parts.
7056
5a8a15ec
JR
70572003-06-05 Jason Rumney <jasonr@gnu.org>
7058
7059 * w32fns.c (add_system_logical_colors_to_map): New function.
7060 (Fx_open_connection): Use it.
7061
01ed8ff1
SM
70622003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7063
7064 * process.c (allocate_pty): Revert part of the previous patch.
7065 (Faccept_process_output): Simplify.
7066
b427b65d
JR
70672003-06-04 Jason Rumney <jasonr@gnu.org>
7068
7069 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7070
7071 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7072 (lispy_mouse_wheel_names): Remove.
7073 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7074 Always define drag_and_drop_syms.
7075
7076 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7077 WHEEL_EVENT events.
7078
914a8c47
SM
70792003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7080
01ed8ff1
SM
7081 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7082
914a8c47
SM
7083 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7084
adcb132c
JD
70852003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7086
7087 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7088 menu item label.
7089
be781fa7
RS
70902003-06-03 Richard M. Stallman <rms@gnu.org>
7091
7092 * window.c (Fwindow_edges): Doc fix.
7093 (Fwindow_pixel_edges, Fwindow_inside_edges)
7094 (Fwindow_inside_pixel_edges): New functions.
7095 (syms_of_window): defsubr them.
7096
7097 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7098 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7099
914a8c47
SM
71002003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7101
7102 * dispnew.c (Fsit_for): Don't lie about the number of args.
7103
5b07197a
DL
71042003-06-02 Dave Love <fx@gnu.org>
7105
7106 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7107 (syms_of_callproc) <process-environment>: Doc fix.
7108
7109 * doc.c: Use HAVE_FCNTL_H, not USG5.
7110
7111 * xfaces.c (font_rescale_ratio): Fix for K&R.
7112
7113 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7114
7115 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7116
7117 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7118
7119 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7120 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7121
d7107586 7122 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7123
7124 * xmenu.c (ENCODE_MENU_STRING): New.
7125 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7126 Use it.
7127
7128 * coding.h (ENCODE_UTF_8): New.
7129 (Qutf_8): Declare.
7130
7131 * coding.c (Qutf_8): New.
7132 (syms_of_coding): Intern it.
7133
7134 * fns.c: Doc fixes.
7135
7335b336
KH
71362003-06-02 Kenichi Handa <handa@m17n.org>
7137
7138 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7139
914a8c47
SM
71402003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7141
7142 * lread.c (openp): Make sure STR is a string.
7143
9862c135
JR
71442003-06-01 David Ponce <david@dponce.com>
7145
cab27d04 7146 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7147 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7148
7149 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7150 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7151 (discard_mouse_events): Discard WHEEL_EVENT events too.
7152 (lispy_wheel_names, wheel_syms): New.
7153 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7154 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7155 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7156
7157 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7158 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7159 WHEEL_EVENT events.
7160
f984e73e
JPW
71612003-05-31 John Paul Wallington <jpw@gnu.org>
7162
7163 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7164 timer are in lisp/emacs-lisp.
7165
1efcd78f
KH
71662003-05-31 Kenichi Handa <handa@m17n.org>
7167
458c8af4
KH
7168 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7169 region when a buffer is changed to unibyte.
7170
1efcd78f
KH
7171 * charset.h (VALID_LEADING_CODE_P): New macro.
7172 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7173
778e2804
KH
7174 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7175 is nonzero, accept multibyte form of eight-bit-control chars.
7176 (decode_composition_emacs_mule): Likewise.
7177 (decode_coding_emacs_mule): Likewise.
7178 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7179 multibyte form of eight-bit-control chars.
7180
7181 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7182 (Finsert_file_contents): If coding-system-for-read is bound to
7183 Qauto_save_coding, use the coding system emacs-mule with special
7184 setting for recovering a file.
7185 (choose_write_coding_system): On auto saving, use the coding
7186 system emacs-mule with special setting for auto saving.
7187 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7188
034060e4
KH
71892003-05-30 Kenichi Handa <handa@m17n.org>
7190
7191 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7192 properly before calling ccl_driver.
7193
778e2804 7194 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7195
cab27d04 7196 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7197 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7198 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7199
595f5aa5
GM
72002003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7201
7202 * xfaces.c (realize_default_face): Do not abort if lface is
7203 non-existent - reverts change from 2003-05-19.
7204
103e0180
KH
72052003-05-29 Kenichi Handa <handa@m17n.org>
7206
7207 * coding.c (decode_coding_iso2022): Pay attention to the byte
7208 sequence of CTEXT extended segment, and retain those bytes as is.
7209
72102003-05-28 Kenichi Handa <handa@m17n.org>
7211
cab27d04 7212 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7213 of CODING_REPLACEMENT_CHARACTER.
7214 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7215 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7216 check this flag on encoding.
cab27d04
SM
7217 (encode_coding_sjis_big5):
7218 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7219 (Fset_terminal_coding_system_internal):
7220 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7221 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7222
7223 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7224 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7225 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7226
ff6a3bfb 72272003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7228
ff6a3bfb
RS
7229 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7230
7231 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7232
1963c428
KS
72332003-05-28 Kim F. Storm <storm@cua.dk>
7234
7235 * xdisp.c (expose_window): Fix error in calculation of
7236 window relative coordinates of area to redisplay.
7237
2b5d4601
JR
72382003-05-27 Jason Rumney <jasonr@gnu.org>
7239
7240 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7241
1c64a4a2
JB
72422003-05-27 David Ponce <david@dponce.com>
7243
7244 Handle W32 mouse wheel events as mouse click events, like in X.
7245
7246 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7247 MOUSE_WHEEL_EVENT anymore.
7248
7249 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7250 Scrolling down/up the mouse wheel is respectively mapped to mouse
7251 button 4 and 5.
7252 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7253 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7254 WM_MOUSEWHEEL events.
7255
2d031b89
AS
72562003-05-27 Andreas Schwab <schwab@suse.de>
7257
20464fdf
AS
7258 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7259
2d031b89
AS
7260 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7261 partially visible line.
7262
7263 * alloc.c (Fgarbage_collect): Fix last change.
7264
97bc76d4
JPW
72652003-05-26 John Paul Wallington <jpw@gnu.org>
7266
7267 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7268
56613f06
SM
72692003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7270
7271 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7272 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7273
7274 * window.h (window_box_text_cols): Declare.
7275
7276 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7277 (x_draw_vertical_border): Remove unused var `f'.
7278
7279 * xfaces.c (build_scalable_font_name): Remove `unused var
7280 pixel_size' warning.
7281
7282 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7283
7284 * unexelf.c (unexec): Remove `unused var n' warning.
7285
7286 * strftime.c (my_strftime_localtime_r): Remove `defined but
7287 unused' warning.
7288
7289 * process.c (allocate_pty): Remove `unused var stb' and
7290 `cp might be used uninitialized' warnings.
7291
7292 * dispnew.c (mode_line_string): Remove unused var `f'.
7293
7294 * coding.c (find_safe_codings): Remove unused var `i'.
7295
7296 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7297
7298 * buffer.c (Fkill_buffer): Remove unused var `list'.
7299
7300 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7301
93421a1f
JD
73022003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7303
7304 * frame.c (make_frame): Condition want_fullscreen with
7305 HAVE_WINDOW_SYSTEM.
7306
c4b8aebc
JB
73072003-05-25 Juanma Barranquero <lektu@terra.es>
7308
7309 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7310 (Fwindow_scroll_bars): Fix typo in docstring.
7311
0416870b
KS
73122003-05-24 Kim F. Storm <storm@cua.dk>
7313
7314 The following changes serve several purposes:
7315
7316 1) Swap the position of fringes and display margins in windows, i.e.
7317 the fringes are now displayed between the margins and the text area
7318 (by default).
7319
7320 2) Allow fringe and scroll bar parameters to be set per-buffer and
7321 per-window (like display margins). Such settings are now stored
7322 in window configurations, preserved when frames are resized, and
9018a88e 7323 copied when windows are split vertically or horizontally.
0416870b
KS
7324 Several bugs related to display margins have been fixed.
7325
7326 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7327
0416870b
KS
7328 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7329 rather than FRAME_WIDTH (FRAME_FONT (f)).
7330
7331 5) Introduce a consistent naming of variables, members and macros
7332 depending on whether their value is measured in pixels or in
7333 canonical columns/lines. Pixel dimensions are named *_width and
7334 *_height, while canonical columns/lines are named *_cols and
7335 *_lines. Pixel positions are named *_x and *_y, while column/line
7336 positions are named *_col and *_line.
7337
7338 6) Consolidate more of the X, W32, and MAC gui code by moving
7339 common data into struct frame, and generalize it for the non-gui
7340 case by using suitable defaults.
7341
7342 7) Cleanup and consolidate the macros controlling frame and window
7343 layout into frame.h and window.h, and generalize the use of the
7344 various window_box_* functions (enhanced to handle the new fringe
7345 position and the per-window fringe and scroll bar settings).
7346
7347 * frame.h (struct frame): Rename members height to text_lines,
7348 width to text_cols, window_height to total_lines, window_width to
7349 total_cols, new_height to new_text_lines, new_width to
7350 new_text_cols. All uses changed.
7351 (struct frame): New members which consolidate common members of
7352 x_output, w32_output, and mac_output structures: left_pos,
7353 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7354 win_gravity, size_hint_flags, border_width, internal_border_width,
7355 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7356 want_fullscreen. All uses changed.
7357 (struct frame): New member column_width contaning the canonical
7358 column width, analogue to line_height. All uses changed.
7359 (struct frame): Rename members scroll_bar_pixel_width to
7360 config_scroll_bar_width, and scroll_bar_cols to
7361 config_scroll_bar_cols. All uses changed.
7362 (struct frame): New member scroll_bar_actual_width which
7363 consolidates and renames the vertical_scroll_bar_extra member of
7364 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7365 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7366 from x/w32/macterm.h files. All uses changed. Also change code
7367 which referred to f->output_data...->pixel_height.
cab27d04 7368 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7369 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7370 which referred to f->output_data...->pixel_width.
cab27d04 7371 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7372 Also change code which referred to f->height.
cab27d04 7373 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7374 Also change code which referred to f->width.
7375 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7376 to update new_text_lines and new_text_cols members directly.
cab27d04 7377 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7378 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7379 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7380 FRAME_SCROLL_BAR_COLS. All uses changed.
7381 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7382 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7383 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7384 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7385 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7386 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7387 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7388 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7389 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7390 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7391 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7392 Unconditionally return line_height member (it now has proper value
7393 also for non-window frames).
7394 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7395 return new column_width member (rather than the default font width).
7396 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7397 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7398 from x/w32/macterm.h files. Unconditionally return corresponding
7399 member of frame structure (they now have proper values also for
7400 non-window frames).
cab27d04 7401 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7402 Calculate return value from left and right widths.
7403 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7404 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7405 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7406 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7407 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7408 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7409 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7410 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7411 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7412 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7413 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7414 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7415 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7416 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7417 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7418 consolidated from x/mac/w32term.h.
cab27d04 7419 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7420 consolidated from x/mac/w32term.h.
cab27d04 7421 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7422 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7423 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7424 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7425
7426 * window.h (struct window): Rename members left to left_col,
7427 top to top_line, height to total_lines, width to total_cols,
7428 left_margin_width to left_margin_cols, right_margin_width to
7429 right_margin_cols, orig_height to orig_total_lines, orig_top to
7430 orig_top_line. All uses changed.
7431 (struct window): New members left_fringe_width, right_fringe_width,
7432 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7433 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7434 New macros primarily used to simplify other macros.
7435 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7436 referred to XINT (w->width).
7437 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7438 referred to XINT (w->height).
7439 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7440 referred to XINT (w->width) * canon_x_unit.
7441 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7442 referred to XINT (w->height) * canon_y_unit.
7443 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7444 referred to XINT (w->left).
cab27d04 7445 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7446 all uses and code that referred to XINT (w->left) + XINT (w->width).
7447 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7448 referred to XINT (w->top).
7449 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7450 referred to XINT (w->top) + XINT (w->height).
7451 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7452 referred to XINT (w->left) * canon_x_unit.
7453 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7454 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7455 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7456 referred to XINT (w->top) * canon_y_unit.
7457 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7458 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7459 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7460 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7461 All uses changed.
cab27d04 7462 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7463 All uses changed.
cab27d04 7464 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7465 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7466 Do not exclude left fringe width.
cab27d04 7467 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7468 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7469 Do not exclude fringe widths.
7470 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7471 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7472 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7473 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7474 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7475 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7476 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7477 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7478 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7479 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7480 New macros. Change code which referenced corresponding
7481 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7482 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7483 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7484 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7485 allow per-window scroll-bar settings.
7486 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7487 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7488 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7489 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7490 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7491 FRAME_SCROLL_BAR_WIDTH.
7492 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7493 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7494 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7495 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7496 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7497 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7498 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7499 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7500 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7501 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7502 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7503 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7504 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7505 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7506 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7507 (window_from_coordinates): Update prototype.
7508 (Fset_window_buffer): Update EXFUN.
7509 (set_window_buffer): Update prototype.
9018a88e 7510
0416870b 7511 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7512 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7513 changed.
7514 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7515 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7516 internal_border_width is now set to 0 for non-window frames.
7517 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7518 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7519 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7520 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7521 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7522 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7523 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7524 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7525 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7526 Move to window.h and renamed [see window.h changes].
0416870b
KS
7527 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7528 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7529 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7530 Use WINDOW_TOTAL_LINES.
0416870b
KS
7531 (frame_update_line_height): Remove prototype.
7532
7533 * buffer.h (struct buffer): Rename members measured in columns:
7534 left_margin_width to left_margin_cols, right_margin_width to
7535 right_margin_cols. All uses changed.
7536 New members left_fringe_width, right_fringe_width,
7537 fringes_outside_margins for per-buffer fringe settings.
7538 New members scroll_bar_width and vertical_scroll_bar_type for
7539 per-buffer scroll bar settings.
7540
7541 * buffer.c (init_buffer_once): Set buffer_defaults and
7542 buffer_local_flags for new buffer-local variables
7543 left_fringe_width, right_fringe_width, fringes_outside_margins,
7544 scroll_bar_width, and vertical_scroll_bar_type.
7545 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7546 default-* variables for them.
7547
7548 * dispnew.c: Make (many) trivial substitutions for renamed and
7549 new macros in dispextern.h, frame.h and window.h.
7550 (mode_line_string): No need to adjust width for mode lines, as it
7551 is already adjusted by the caller.
7552 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7553
0416870b
KS
7554 * frame.c: Make (many) trivial substitutions for renamed and
7555 new macros in dispextern.h, frame.h and window.h.
7556 (make_frame): Initialize left_fringe_width, right_fringe_width,
7557 fringe_cols, scroll_bar_actual_width, border_width,
7558 internal_border_width, column_width, line_height, x_pixels_diff,
7559 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7560 members with values suitable for a non-window frames.
7561
7562 * gtkutil.c: Make (many) trivial substitutions for renamed and
7563 new macros in dispextern.h, frame.h and window.h.
9018a88e 7564
0416870b
KS
7565 * indent.c: Make (few) trivial substitutions for renamed and
7566 new macros in dispextern.h, frame.h and window.h.
7567
7568 * keyboard.c: Make (many) trivial substitutions for renamed and
7569 new macros in dispextern.h, frame.h and window.h.
7570 (make_lispy_event): Use window positions returned from
7571 window_from_coordinates when constructing the lisp event for
7572 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7573 (incorrect) values locally.
7574 (make_lispy_movement): Use window positions returned from
7575 window_from_coordinates when constructing the lisp event, rather
7576 than calculating (incorrect) values locally.
7577
7578 * scroll.c: Make (some) trivial substitutions for renamed and
7579 new macros in dispextern.h, frame.h and window.h.
7580
7581 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7582 scroll-bars.
7583
7584 * sysdep.c: Make (few) trivial substitutions for renamed and
7585 new macros in dispextern.h, frame.h and window.h.
7586
7587 * term.c: Make (some) trivial substitutions for renamed and
7588 new macros in dispextern.h, frame.h and window.h.
7589
7590 * widget.c: Make (few) trivial substitutions for renamed and
7591 new macros in dispextern.h, frame.h and window.h.
7592
7593 * window.c: Make (many) trivial substitutions for renamed and
7594 new macros in dispextern.h, frame.h and window.h.
7595 (make_window): Initialize new members
7596 left_margin_cols, right_margin_cols, left_fringe_width,
7597 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7598 and vertical_scroll_bar_type.
cab27d04 7599 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7600 and per-window fringes and scroll-bars.
0416870b 7601 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7602 frame's internal_border_width (the effect normally negible since
0416870b
KS
7603 the internal_border_width is typically 0 or 1 pixel, but very
7604 noticeable for an internal_border_width of e.g. 25 pixels).
7605 Upon successful return (other than ON_NOTHING), the coordinates
7606 are now always properly converted to window relative for the
7607 given display element.
7608 (window_from_coordinates): Add new parameters wx and wy to
7609 return the window relative x and y position in the returned
7610 window and part. A null arg means, don't return the position.
7611 All callers changed.
7612 (adjust_window_margins): New function which may reduce the width
7613 of the display margins if a window's text area is too small after
7614 resizing or splitting windows.
7615 (size_window): Fix bug that did not account for display margin
7616 widths when checking the minimum width of a window; use
7617 adjust_window_margins.
7618 (set_window_buffer): Call Fset_window_fringes and
7619 Fset_window_scroll_bars to setup per-window elements.
7620 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7621 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7622 (e.g. after splitting a window or resizing the frame).
7623 All callers changed.
0416870b
KS
7624 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7625 (Fsplit_window): Duplicate original window's display margin,
7626 fringe, and scroll-bar settings; then call Fset_window_buffer with
7627 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7628 window to only preserve the display margins in one of the windows.
c4b8aebc 7629 When splitting horizontally, call adjust_window_margins on both
0416870b 7630 windows to ensure that the text area of the new windows is non too
f9711de4 7631 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7632 width of the split window was less than the width of the display
7633 margins.
cab27d04 7634 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7635 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7636 Fix bug that caused vertical separator to be subtracted also on
7637 window frames. Fix another bug that did not reduce the returned
7638 value by the columns used for display margins.
7639 (window_scroll_line_based): Fix bug related to scrolling too much
7640 when display margins are present (implicitly fixed by the fix to
7641 window_box_text_cols).
7642 (scroll_left, scroll_right): Fix bug related to scrolling too far
7643 by default when display margins are present (implicitly fixed by
7644 the fix to window_box_text_cols).
7645 (struct saved_window): Rename members left to left_col, top to
7646 top_line, width to total_cols, height to total_lines, orig_top to
7647 orig_top_line, orig_height to orig_total_lines. All uses changed.
7648 New members left_margin_cols, right_margin_cols,
7649 left_fringe_width, right_fringe_width, fringes_outside_margins,
7650 scroll_bar_width, and vertical_scroll_bar_type for saving
7651 per-window display elements.
7652 (Fset_window_configuration): Restore display margins, fringes,
7653 and scroll bar settings. This fixes a bug which caused display
7654 margins to be discarded when saving and restoring a window
7655 configuration.
7656 (save_window_save): Save display margins, fringes, and scroll bar
7657 settings. This fixes a bug which caused display margins to be
7658 discarded when saving and restoring a window configuration.
7659 (Fset_window_margins): Do nothing if display margins are not
7660 really changed. Otherwise, call adjust_window_margins to ensure
7661 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7662 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7663 the width of the window.
7664 (Fset_window_fringes): New defun to allow user to specifically set
7665 this window's fringe widths and position vs. display margins.
cab27d04 7666 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7667 (Fset_window_scroll_bars): New defun to allow user to specifically
7668 set this window's scroll bar width and position.
7669 (Fwindow_scroll_bars): New defun to return window's actual scroll
7670 bar settings.
7671 (compare_window_configurations): Also compare display margins,
7672 fringes, and scroll bar settings.
7673 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7674
7675 * xdisp.c: Make (many) trivial substitutions for renamed and
7676 new macros in dispextern.h, frame.h and window.h.
7677 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7678 and new fringe vs. display margin position. Note that returned
0416870b
KS
7679 value is no longer guaranteed to be a whole multiple of the frame
7680 column width, since per-window fringes may now be any width.
7681 (window_box_left_offset): New function like window_box_left, but
7682 value is relative to left border of window (rather than frame).
7683 (window_box_right_offset): New function like window_box_right,
7684 but value is relative to left border of window.
7685 (window_box_left): Adapt to per-window fringes and scroll bars,
7686 and new fringe vs. display margin position. Simplify by using
7687 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7688 (window_box): Allow null args for unnecessary return values;
7689 change/simplify relevant callers.
7690 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7691 and new fringe vs. display margin position.
7692 Use window_box_left_offset and window_box_right_offset
0416870b 7693 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7694 scroll bars, and new fringe vs. display margin position.
7695 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7696 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7697 fringe vs. display margin position.
7698 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7699 (redisplay_window): Adapt to per-window scroll bars.
7700 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7701 bars, and new fringe vs. display margin position.
7702 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7703 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7704 bars, and new fringe vs. display margin position. Fix bug which
7705 increased total width of full_width rows by width of scroll bars
7706 although window's total width already includes that.
7707 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7708 (expose_area): Simplify using window_box_left_offset.
7709 (x_draw_vertical_border): Handle per-window scroll bar settings,
7710 mixing windows with left, right and no scroll bars.
7711
7712 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7713 where it's used in x_list_fonts (for clarity).
7714 (frame_update_line_height): Remove unused function; functionality
7715 is now done directly when setting the default font in x_set_font.
7716
7717 * xfns.c: Make (many) trivial substitutions for renamed and
7718 new macros in dispextern.h, frame.h and window.h.
7719
7720 * xmenu.c: Make (some) trivial substitutions for renamed and
7721 new macros in dispextern.h, frame.h and window.h.
7722
7723 * xterm.h (struct x_output): Move members left_pos, top_pos,
7724 border_width, pixel_height, pixel_width, line_height,
7725 internal_border_width, vertical_scroll_bar_extra,
7726 left_fringe_width, right_fringe_width, fringe_cols,
7727 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7728 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7729 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7730 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7731 (PIXEL_WIDTH, PIXEL_HEIGHT)
7732 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7733 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7734 frame.h and renamed [see frame.h changes].
7735 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7736 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7737 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7738 and renamed [see frame.h changes].
9018a88e 7739
0416870b
KS
7740 * xterm.c: Make (several) trivial substitutions for renamed and
7741 new macros in dispextern.h, frame.h and window.h.
cab27d04 7742 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7743 (scroll_run): Adapt to new fringe position.
7744 (glyph_rect): Use window coordinates returned from
7745 window_from_coordinates rather than frame_to_window_pixel_xy.
7746 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7747 scroll-bars.
7748 (handle_one_xevent): Simplify a USE_GTK conditional.
7749 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7750 (fringes are now inside margins, i.e. always in the clipping area).
7751 All callers changed.
7752 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7753 directly, then call compute_fringe_widths. Don't call
7754 frame_update_line_height.
7755
7756 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7757 border_width, pixel_height, pixel_width, line_height,
7758 internal_border_width, vertical_scroll_bar_extra,
7759 left_fringe_width, right_fringe_width, fringe_cols,
7760 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7761 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7762 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7763 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7764 (PIXEL_WIDTH, PIXEL_HEIGHT)
7765 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7766 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7767 frame.h and renamed [see frame.h changes].
7768 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7769 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7770 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7771 and renamed [see frame.h changes].
9018a88e 7772
0416870b
KS
7773 * w32term.c: Make (several) trivial substitutions for renamed and
7774 new macros in dispextern.h, frame.h and window.h.
cab27d04 7775 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7776 (glyph_rect): Use window coordinates returned from
7777 window_from_coordinates rather than frame_to_window_pixel_xy.
7778 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7779 scroll-bars.
7780 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7781 (fringes are now inside margins, i.e. always in the clipping area).
7782 All callers changed.
7783 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7784 directly, then call compute_fringe_widths. Don't call
7785 frame_update_line_height.
7786
7787 * w32console.c: Make (few) trivial substitutions for renamed and
7788 new macros in dispextern.h, frame.h and window.h.
7789
7790 * w32fns.c: Make (many) trivial substitutions for renamed and
7791 new macros in dispextern.h, frame.h and window.h.
7792
7793 * w32menu.c: Make (few) trivial substitutions for renamed and
7794 new macros in dispextern.h, frame.h and window.h.
7795
7796 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7797 border_width, pixel_height, pixel_width, line_height,
7798 internal_border_width, vertical_scroll_bar_extra,
7799 left_fringe_width, right_fringe_width, fringe_cols,
7800 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7801 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7802 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7803 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7804 (PIXEL_WIDTH, PIXEL_HEIGHT)
7805 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7806 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7807 frame.h and renamed [see frame.h changes].
7808 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7809 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7810 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7811 and renamed [see frame.h changes].
9018a88e 7812
0416870b
KS
7813 * macterm.c: Make (several) trivial substitutions for renamed and
7814 new macros in dispextern.h, frame.h and window.h.
cab27d04 7815 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7816 (glyph_rect): Use window coordinates returned from
7817 window_from_coordinates rather than frame_to_window_pixel_xy.
7818 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7819 scroll-bars.
7820 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7821 (fringes are now inside margins, i.e. always in the clipping area).
7822 All callers changed.
7823 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7824 directly, then call compute_fringe_widths. Don't call
7825 frame_update_line_height.
7826
7827 * macfns.c: Make (several) trivial substitutions for renamed and
7828 new macros in dispextern.h, frame.h and window.h.
9018a88e 7829 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7830
7831 * macmenu.c: Make (few) trivial substitutions for renamed and
7832 new macros in dispextern.h, frame.h and window.h.
7833
7834 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7835 and line_height, and use corresponding new members in struct
7836 frame. All uses changed.
7837 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7838 superseeded by corresponding macros in frame.h.
7839
7840 * msdos.c: Make (several) trivial substitutions for renamed and
7841 new macros in dispextern.h, frame.h and window.h.
7842 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7843 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7844 (internal_terminal_init): No need to initialize line_height here;
7845 it now defaults to 1.
7846
9018a88e
SM
78472003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7848
7849 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7850 dropping `down' events.
7851
016bd3c0
AS
78522003-05-24 Andreas Schwab <schwab@suse.de>
7853
7854 * coding.c (find_safe_codings): Fix last change.
7855
4dacadcc
TTN
78562003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7857
7858 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7859
319830ce
SM
78602003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7861
9018a88e
SM
7862 * xdisp.c (display_mode_element): Increase max depth.
7863 Simplify the error handling code. Use a different error string
7864 for the case where we hit the depth limit.
7865
319830ce
SM
7866 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7867
7868 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7869
78702003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7871
7872 * intervals.c (get_local_map): Don't get char-property of previous
7873 point any more: get_pos_property already does it and better.
7874
c67de8ba
DL
78752003-05-21 Dave Love <fx@gnu.org>
7876
7877 [Merged from unicode branch.]
7878
7879 * xfns.c (x_window, x_window): Use use_xim.
7880
7881 * xterm.c (use_xim): Initialize.
7882 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7883 (x_term_init): Maybe set use_xim.
7884
7885 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7886
edd3ff1d
JR
78872003-05-21 Jason Rumney <jasonr@gnu.org>
7888
7889 * unexw32.c (_start): Remove _fmode initialization.
7890
7891 * emacs.c (main) [WINDOWSNT]: Move it here.
7892
463f55ee
DL
78932003-05-20 Dave Love <fx@gnu.org>
7894
7895 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7896
af253914
RS
78972003-05-19 Richard M. Stallman <rms@gnu.org>
7898
7899 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7900 as value for QCfont attribute.
7901 (realize_default_face): lface should already exist; crash if not.
7902 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7903
7904 * frame.c (Fignore_event): Doc fix.
7905
1d211019
KH
79062003-05-19 Kenichi Handa <handa@m17n.org>
7907
7908 * coding.c (decode_coding_string): Handle post-read-conversion
7909 even if the coding doesn't require decoding.
7910
4dd68254
RS
79112003-05-18 Richard M. Stallman <rms@gnu.org>
7912
7913 * callproc.c (Fcall_process_region): Doc fix.
7914
14d87dc9
SM
79152003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7916
deca5d96
SM
7917 * lread.c (Fload): Print a message if package is obsolete.
7918
14d87dc9
SM
7919 * window.c (Fselect_window): Add optional `norecord' arg.
7920 (select_window_1): Fold into Fselect_window.
7921 (select_window_norecord): New function.
7922 (temp_output_buffer_show): Use it. Preserve current buffer.
7923
7924 * window.h (Fselect_window): Update declaration.
7925
7926 * window.c (delete_window, Fother_window, Fset_window_configuration):
7927 * minibuf.c (read_minibuf):
7928 * macterm.c (x_new_focus_frame):
7929 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7930 * callint.c (Fcall_interactively):
7931 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7932
7933 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7934
78f52183
DK
79352003-05-17 David Kastrup <dak@gnu.org>
7936
7937 * process.c (read_process_output): Back out change from 2003-03-09.
7938
14d87dc9
SM
79392003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7940
7941 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7942
7943 * textprop.c (text_property_stickiness): New arg `buffer'.
7944
7945 * intervals.h (text_property_stickiness): New arg `buffer'.
7946 (get_pos_property): Declare.
7947
7948 * intervals.c (get_local_map): Use get_pos_property, to obey
7949 stickiness and empty overlays.
7950 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7951 (merge_properties, intervals_equal, merge_properties_sticky):
7952 Use XCAR, XCDR.
7953 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7954
1fd1cc2f
RS
79552003-05-17 Richard M. Stallman <rms@gnu.org>
7956
4f9f637a
RS
7957 * minibuf.c (read_minibuf): If buffer is empty, record the default
7958 in the history.
7959 (Fminibuffer_complete_word): When deleting the overlap, take account
7960 of its real position.
7961
7962 * fns.c (map_char_table): Fix previous change.
7963
1fd1cc2f
RS
7964 * syntax.c (find_defun_start):
7965 When open_paren_in_column_0_is_defun_start,
7966 return beginning of buffer.
7967
7968 * lisp.h (map_char_table): Declare added arg.
7969
7970 * fns.c (map_char_table): New arg TABLE gets the master table.
7971 All calls changed.
7972 Process default and inheritance, resorting to Faref if necessary.
7973
7974 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7975 (Faccessible_keymaps): Pass new arg to map_char_table.
7976
7977 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7978
7979 * casetab.c (set_case_table): Pass new arg to map_char_table.
7980
7981 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7982
7983 * lisp.h (specbinding_func): New typedef.
7984 (struct specbinding): Use specbinding_func, to put the `volatile'
7985 in the right place.
7986
7987 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7988 to avoid GCC warning.
14d87dc9 7989
b6189c3b 79902003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7991
14d87dc9 7992 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7993
35fb885d
SM
79942003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7995
7996 * keyboard.c (apply_modifiers): Don't fill the other cache.
7997
9a274fbd
SM
79982003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7999
c55b5fad
SM
8000 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8001
9a274fbd
SM
8002 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8003 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8004 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8005 (Fset_window_configuration, Fcurrent_window_configuration)
8006 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8007 (Fpos_visible_in_window_p, mark_window_cursors_off)
8008 (window_internal_height, window_internal_width, Frecenter)
8009 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8010 (replace_buffer_in_all_windows, init_window_once, init_window)
8011 (syms_of_window, keys_of_window): Move from lisp.h.
8012 * lisp.h: Move window.c declarations to window.h.
8013
8014 * bytecode.c: Include window.h.
8015 * emacs.c: Include window.h.
8016
14d87dc9 8017 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8018 (keyremap): Add `parent' field.
8019 (keyremap_step): Use it. Remove `parent' argument.
8020 (read_key_sequence): Setup and use the new `parent' field.
8021
fd93e331
SM
80222003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8023
8024 * keyboard.c (adjust_point_for_property): Ensure termination.
8025
1c4001a1
SM
80262003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8027
8028 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8029 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8030 duplicated handling of function-key-map and key-translation-map
8031 in read_key_sequence.
8032 (read_key_sequence): Use them.
8033
8034 * keyboard.c (adjust_point_for_property): Try harder to move point
8035 to the non-sticky end of an invisible property.
8036
8037 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8038 property intangible as well.
8039
780379b1
AS
80402003-05-10 Andreas Schwab <schwab@suse.de>
8041
8042 * xmenu.c (single_menu_item): Change last parameter to void* to
8043 avoid warning.
8044
ca2de342
RS
80452003-05-09 Richard M. Stallman <rms@gnu.org>
8046
8047 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8048 Bind Qinhibit_modification_hooks to t so there will be no GC.
8049 Rename local `tem' to `save_deactivate_mark'.
8050
8051 * eval.c (specpdl_ptr): Declare volatile.
8052 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8053 before doing the work of unbinding it.
8054
8055 * lisp.h (struct specbinding): Declare elements volatile.
8056 (specpdl_ptr): Declare volatile.
8057
8058 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8059
8060 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8061 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8062
347003be
DL
80632003-05-08 Dave Love <fx@gnu.org>
8064
8065 * coding.c (Vlast_coding_system_used): Doc fix.
8066
5adcec23
JR
80672003-05-07 Jason Rumney <jasonr@gnu.org>
8068
8069 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8070 when system does not support them.
8071
5fe3b8a4
SM
80722003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8073
8074 * fileio.c (Qwrite_region_annotate_functions): New var.
8075 (build_annotations): Use it to process the global part of the hook.
8076 (syms_of_fileio): Init and staticpro it.
8077
8078 * keyboard.c (safe_run_hooks_error): Display a message instead of
8079 silently ignoring the error.
8080
80812003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8082
8083 * keyboard.c (input_available_signal): Mark static.
8084 (menu_bar_items): Use map_keymap.
8085 (menu_bar_one_keymap): Remove.
8086 (menu_bar_item): Adjust arglist (for use in map_keymap).
8087 Properly hide a second binding when not both are keymaps.
8088
8089 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8090 (single_keymap_panes): Use it and map_keymap.
8091 (single_menu_item): Use skp as well.
8092
8093 * keymap.h (map_keymap_function_t): New type.
8094 (map_keymap): Declare.
8095
8096 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8097 (map_keymap_call, Fmap_keymap): New functions.
8098 (syms_of_keymap): Defsubr map-keymap.
8099
4b1b4443
JD
81002003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8101
8102 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8103 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8104 ..._with_mnemonic functions for menu items.
8105
1f816871
KH
81062003-05-01 Kenichi Handa <handa@m17n.org>
8107
8108 * coding.c (coding_system_accept_latin_extra_p): Delete this
8109 function.
8110 (find_safe_codings): Pay attention to
8111 the property tranlsation-table-for-encode of each codings.
8112 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8113
5ed6ba5b
SM
81142003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8115
8116 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8117
32c06229
SM
81182003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8119
8120 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8121
8122 * lisp.h (CHECK): Wrap args in parenthesis.
8123 (specbind): Fix doc: symbol = Qnil is not supported any more.
8124
8125 * bytecode.c (Fbyte_code) <unwind-protect>:
8126 Use Fprogn rather than 0 and Qnil.
8127
8128 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8129 `double', and `triple' modifiers as well.
8130
ed3c3314
RS
81312003-04-30 Richard M. Stallman <rms@gnu.org>
8132
8133 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8134
8135 * alloc.c (abort_on_gc): New variable.
8136 (Fgarbage_collect): Abort if abort_on_gc is set.
8137
8138 * lisp.h (abort_on_gc): Add decl.
8139
8140 * eval.c (Fsignal): Clear abort_on_gc.
8141
8142 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8143 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8144
8145 * xdisp.c (move_it_vertically_backward): Do the final big else
8146 even if nlines is 0.
8147
8148 * xdisp.c (redisplay_internal): Finish the per-frame loop
8149 even if redisplay is suspended by input.
8150
0b325c12
AC
81512003-04-24 Andrew Choi <akochoi@shaw.ca>
8152
8153 * macterm.c (x_list_fonts): Return all fonts that match if
8154 maxnames = -1.
8155
4e837cd0
KH
81562003-04-25 Kenichi Handa <handa@m17n.org>
8157
8158 * syntax.c (skip_chars): Fix previous change.
8159
9af7511a
KH
81602003-04-24 Kenichi Handa <handa@m17n.org>
8161
8162 * syntax.c (skip_chars): Make the code faster by using the common
8163 technique of *p, *stop, and *endp.
8164
e3b2c21f
JD
81652003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8166
8167 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8168 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8169 being updated.
8170
32c06229
SM
81712003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8172
8173 * eval.c (Fapply): Undo last change and add a comment about why.
8174
c6464167
MB
81752003-04-18 Miles Bader <miles@gnu.org>
8176
8177 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8178 pickier PARSE_MULTIBYTE_SEQ.
8179
e509f168
SM
81802003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8181
8182 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8183 Use XCDR, XCAR, CONSP.
8184 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8185 (Fapply): Remove unnecessary GCPRO.
8186
8187 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8188
8189 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8190
8191 * buffer.h: Don't hardcode BEG==1.
8192
8193 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8194
5ceea398
RS
81952003-04-16 Richard M. Stallman <rms@gnu.org>
8196
8197 * xdisp.c (try_window, try_window_reusing_current_matrix):
8198 When at end of window, set window_end_pos to Z-ZV.
8199
8200 * buffer.c (Foverlay_recenter): Doc fix.
8201
e509f168
SM
82022003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8203
8204 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8205
d243e605
AC
82062003-04-14 Andrew Choi <akochoi@shaw.ca>
8207
8208 * macterm.c (mac_check_for_quit_char): Don't check more often than
8209 once a second.
8210
6901b111
SM
82112003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8212
8213 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8214 specially, so that they can't hide an implicit switch-frame event.
8215 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8216 (head_table): Use switch-frame as event_kind for select-window.
8217 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8218
8219 * editfns.c (Fformat): Lisp_Object/int mixup.
8220 (format2): Remove unused var numargs.
8221
e301806f 82222003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8223
6901b111 8224 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8225 (Qafter_insert_file_set_coding): New variable.
8226 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8227 for after-insert-file-adjust-coding-function.
8228 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8229 instead of Vafter_insert_file_adjust_coding_function.
8230
38914424
KH
82312003-04-11 Kenichi Handa <handa@m17n.org>
8232
8233 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8234
8235 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8236 string. Callers changed.
8237
82382003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8239
6901b111 8240 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8241 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8242 (Finsert_file_contents):
8243 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8244 decode-format.
8245
f979dc05
JD
82462003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8247
8248 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8249 get GtkAdjustment as widget now is a GtkRange.
8250
8251 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8252 GtkRange to avoid memory leak.
8253
f8c6b4c2 82542003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8255
50ebc53d
KH
8256 * xfaces.c (Vface_font_rescale_alist): New variable.
8257 (struct font_name): New member rescale_ratio.
8258 (font_rescale_ratio): New function.
6901b111 8259 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8260 (better_font_p): On comparing point sized, pay attention to
8261 recale_ratio member of fonts.
8262 (build_scalable_font_name): Reflect font->rescale_ratio in the
8263 font name.
6901b111 8264 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8265
cb98871c
KH
8266 * lread.c (read1): Before calling index, check if the 2nd
8267 arguemnt is in ASCII range.
8268
4773b8ca
RS
82692003-04-08 Richard M. Stallman <rms@gnu.org>
8270
b0ada147
RS
8271 * fileio.c (Ffile_symlink_p): Doc fix.
8272
8273 * editfns.c (Fformat): Translate positions of text properties
8274 in the format string to apply them to the result.
8275
4773b8ca
RS
8276 * fileio.c (Finsert_file_contents): Doc fix.
8277 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8278
82792003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8280
4773b8ca
RS
8281 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8282
e8f25745 82832003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8284
e8f25745
ST
8285 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8286 that self-contained application finds libexec files.
8287
f8c6b4c2 82882003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8289
6901b111
SM
8290 * coding.c (code_convert_region_unwind):
8291 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8292 (code_convert_region): If post-read-conversion function changed
8293 the value of last-coding-sytem, keep the new value in
8294 coding->symbol so that it won't be overridden.
8295 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8296 (coding_system_accept_latin_extra_p): New function.
8297 (find_safe_codings): Pay attention to characters registered in
8298 latin-extra-code-table.
2310d84c 8299
39c9a034
TTN
83002003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8301
8302 * Makefile.in (md5.o): Add missing dependency info.
8303
eb67c5d6
RS
83042003-04-06 Richard M. Stallman <rms@gnu.org>
8305
8306 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8307
8308 * marker.c (verify_bytepos): New function.
8309
8310 * intervals.c (set_intervals_multibyte_1): When becoming
8311 multibyte, adjust right and left child sizes to a whole set of
8312 characters. If an interval gets zero total-length, delete it.
8313 If an interval consists of just its children, delete one of them.
8314
8315 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8316 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8317
eb67c5d6
RS
8318 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8319 All calls deleted.
8320 (lisp_malloc): Do the work here directly.
8321
b1f81fc5
JB
83222003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8323
8324 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8325 char tables.
8326
83272003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8328
8329 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8330 destructively change "%S" to "%s".
8331
774666fb
MB
83322003-04-03 Miles Bader <miles@gnu.org>
8333
8334 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8335 always set.
8336
19c37f01
DL
83372003-04-01 Dave Love <fx@gnu.org>
8338
8339 * xfns.c (xpm_lookup_color): Grok "opaque".
8340
2f4b24c3
AC
83412003-03-31 Andrew Choi <akochoi@shaw.ca>
8342
8343 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8344 parent window ID.
8345
8346 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8347
8348 * macterm.h (struct mac_output): Define x_pixels_diff and
8349 y_pixels_diff.
b1f81fc5 8350
9443fcf6
JB
83512003-03-31 Juanma Barranquero <lektu@terra.es>
8352
8353 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8354 blockinput.h and files included from it.
8355
e072891b
KS
83562003-03-31 Kim F. Storm <storm@cua.dk>
8357
8358 The following changes consolidates the common code related to
8359 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8360 files into frame.c.
9443fcf6 8361
e072891b
KS
8362 * frame.c: Include blockinput.h.
8363 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8364 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8365 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8366 related vars here.
8367 (struct frame_parm_table, frame_parms): New table for describing
8368 frame parameters and their associated Q-variable.
8369 The order of the parameters corresponds to the sequence of the
8370 frame_parm_handlers table in redisplay_interface.
8371 (x_fullscreen_move, x_set_frame_parameters)
8372 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8373 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8374 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8375 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8376 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8377 Generic functions for processing of frame parameters.
8378 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8379 (display_x_get_resource, x_get_resource_string): Functions for
8380 generic access to X resources.
8381 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8382 (x_default_parameter, Fx_parse_geometry): Functions for generic
8383 access to frame parameters.
6901b111
SM
8384 (x_figure_window_size): Generic calculation of frame size.
8385 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8386 (syms_of_frame): Intern and staticpro frame parameter variables.
8387 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8388 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8389
e072891b
KS
8390 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8391 parameter related vars defined in frame.c.
8392 (EMACS_CLASS): Define here.
8393 (enum FULLSCREEN_*): Define here.
8394 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8395 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8396 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8397 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8398 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8399 (x_set_visibility, x_set_autoraise, x_set_autolower)
8400 (x_set_unsplittable, x_set_vertical_scroll_bars)
8401 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8402 (x_figure_window_size): Add prototypes.
8403
8404 * dispextern.h (frame_parm_handler): New typedef.
8405 (struct redisplay_interface): New member frame_parm_handlers.
8406 (enum resource_types): Move declaration here.
8407 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8408 (x_default_parameter): Add prototypes.
8409
8410 * window.c: Remove extern decl for frame parameter vars.
8411 (change_window_heights): New generic function;
8412 replaces x_change_window_heights. All users changed.
8413
8414 * window.h (change_window_heights): Add prototype.
8415
8416 * xfaces.c: Remove extern decl for frame parameter vars.
8417
8418 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8419 (struct w32_display_info): Fix type of xrdb member.
8420 (enum FULLSCREEN_*): Remove.
8421 Remove prototypes for generic functions (in frame.h).
8422
8423 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8424 parameters now defined in frame.h and frame.c.
f63fd14e 8425 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8426 (enum x_frame_parms): Remove (bogus, unused enum).
8427 (check_x_display_info): Make non-static (for frame.c).
8428 (struct x_frame_parm_table, x_frame_parms): Remove.
8429 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8430 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8431 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8432 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8433 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8434 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8435 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8436 Remove. Use generic functions instead.
8437 (enum resource_types): Remove.
8438 (x_set_scroll_bar_default_width): New global function (for frame.c).
8439 (Fx_create_frame): Depend on x_figure_window_size to add space for
8440 toolbar and setup size_hint_flags.
8441 (x_frame_parm_handlers): New table for redisplay_interface.
8442 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8443
e072891b 8444 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8445 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8446 (x_redisplay_interface): Add x_frame_parm_handlers member.
8447
8448 * w32gui.h (XrmDatabase): New (dummy) typedef.
8449
8450 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8451 (struct w32_display_info): Fix type of xrdb member.
8452 (enum FULLSCREEN_*): Remove.
8453 (x_fullscreen_adjust): Remove prototype.
8454
8455 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8456 parameters now defined in frame.h and frame.c.
f63fd14e 8457 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8458 (enum x_frame_parms): Remove (bogus, unused enum).
8459 (check_x_display_info): Make non-static (for frame.c).
8460 (struct x_frame_parm_table, x_frame_parms): Remove.
8461 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8462 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8463 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8464 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8465 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8466 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8467 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8468 Remove. Use generic functions instead.
8469 (enum resource_types): Remove.
8470 (x_set_scroll_bar_default_width): New global function (for frame.c).
8471 (Fx_create_frame): Depend on x_figure_window_size to add space for
8472 toolbar and setup size_hint_flags.
8473 (w32_frame_parm_handlers): New table for redisplay_interface.
8474 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8475
e072891b
KS
8476 * w32term.c: Remove unnecessary extern declarations.
8477 (x_fullscreen_adjust): Remove. Use generic instead.
8478 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8479
8480 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8481
8482 * macgui.h (XrmDatabase): New (dummy) typedef.
8483
8484 * macterm.h (EMACS_CLASS): Remove.
8485 (struct mac_display_info): Add xrdb member.
8486 (struct mac_output): Add want_fullscreen member.
8487
8488 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8489 parameters now defined in frame.h and frame.c.
f63fd14e 8490 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8491 (check_x_display_info): Make non-static (for frame.c).
8492 (struct x_frame_parm_table, x_frame_parms): Remove.
8493 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8494 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8495 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8496 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8497 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8498 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8499 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8500 Remove. Use generic functions instead.
8501 (enum resource_types): Remove.
8502 (x_set_scroll_bar_default_width): New global function (for frame.c).
8503 (mac_frame_parm_handlers): New table for redisplay_interface.
8504 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8505
e072891b
KS
8506 * macterm.c: Remove unnecessary extern declarations.
8507 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8508
3e6a560b
KS
8509 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8510 included from it (atimer.h and systime.h).
8511
7b7b454e
AS
85122003-03-30 Andreas Schwab <schwab@suse.de>
8513
8514 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8515 parameters for shift_glyphs_for_insert.
8516
8517 * macterm.c (x_redisplay_interface): Add missing entry for
8518 draw_vertical_window_border.
8519
beb402de
KG
85202003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8521
8522 * fileio.c (Fexpand_file_name): In the no-handler case, after
8523 expanding, look again for a handler and invoke it. This is needed
8524 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8525 expansion produces "/user@host:/bar/../baz" which needs to be
8526 expanded again for the finame result "/user@host:/baz".
8527
b676f356
JD
85282003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8529
8530 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8531 of area to be redrawn for better performance.
8532
3c671a56
SM
85332003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8534
8535 * xterm.c (take_vertical_position_into_account): Remove.
8536 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8537 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8538 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8539 (x_set_toolkit_scroll_bar_thumb): Simplify.
8540 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8541 (XTread_socket): Remove unused var.
8542 (x_make_frame_invisible): Replace goto with else.
8543
8544 * xdisp.c (set_vertical_scroll_bar): New fun.
8545 (redisplay_window): Use it.
8546
84f2e615
RS
85472003-03-26 Richard M. Stallman <rms@gnu.org>
8548
8549 * xdisp.c (update_tool_bar): Recompute tool bar if
8550 update_mode_lines is set. Set w->update_mode_line
8551 only if the tool bar contents actually change.
8552 (update_menu_bar): Undo previous change.
8553
70b6104c
JD
85542003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8555
5fd6f727
JD
8556 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8557 (xg_frame_set_char_size): Calculate scroll bar width before frame
8558 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8559 (xg_separator_p): Check for all documented separator types.
8560 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8561 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8562
70b6104c
JD
8563 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8564 so tool bar gets updated.
8565
d9b36d19
SM
85662003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8567
8568 * data.c (store_symval_forwarding): Re-instate part of the code
8569 that was deleted with too much enthusiasm.
8570
85712003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8572
8573 * data.c (store_symval_forwarding): Delete special read-only
8574 hack for type == -1, since we now use ->constant instead.
8575 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8576
8577 * buffer.c (overlays_in): Declare static.
8578 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8579 `constant' field rather than the variable's `type' field.
8580
365fa1b3
AC
85812003-03-24 Andrew Choi <akochoi@shaw.ca>
8582
8583 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8584
8585 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8586
8587 * fns.c [MAC_OSX]: Do not redefine vector.
8588
8589 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8590
8591 * macgui.h: Remove definition of No_Cursor.
8592
d9b36d19 8593 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8594
8595 * xdisp.c: Define No_Cursor.
8596 (x_write_glyphs, notice_overwritten_cursor)
8597 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8598 (note_mouse_highlight): Remove Mac-specific code.
8599 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8600
c0bcce6f
JPW
86012003-03-24 John Paul Wallington <jpw@gnu.org>
8602
8603 * xdisp.c (redisplay_window): If mini window's buffer is not
8604 empty, then redisplay it like other windows.
8605
a526b96c
KS
86062003-03-23 Kim F. Storm <storm@cua.dk>
8607
8608 * w32term.c (w32_draw_window_cursor): Fix last change.
8609
37ab321e
KH
86102003-03-23 Kenichi Handa <handa@m17n.org>
8611
a526b96c
KS
8612 * alloc.c (make_string_from_bytes, make_specified_string):
8613 Add `const' for the arg CONTENTS.
37ab321e
KH
8614
8615 * lisp.h (make_string_from_bytes, make_specified_string):
8616 Prototypes adjusted.
8617
7863d625
JD
86182003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8619
a526b96c 8620 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8621
7863d625
JD
8622 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8623 (XG_SB_RANGE): New define.
8624
8625 * gtkutil.c (xg_fixed_handle_expose): New function.
8626 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8627 expose events.
8628 (xg_update_scrollbar_pos): Take two more arguments, left and width
8629 of scroll bar including borders.
8630 Clear left and right part outside scroll bar separately as some
8631 themes have bars that are not an even number of pixels.
d9b36d19 8632 Don't set reallocate_redraws, don't call
7863d625
JD
8633 gdk_window_process_all_updates.
8634 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8635 so no need to change it. Calculate size and value with XG_SB_RANGE.
8636
d9b36d19
SM
8637 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8638 Pass left and width of scroll bar including borders to
7863d625
JD
8639 xg_update_scrollbar_pos.
8640
af0ad939
TTN
86412003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8642
8643 * Makefile.in: Make sure space precedes end-of-line backslashes.
8644
b22139fd
KS
86452003-03-22 Kim F. Storm <storm@cua.dk>
8646
8647 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8648 Add generic versions here. Remove system specific versions
8649 defined elsewhere.
8650
8651 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8652 Add prototypes.
8653
6e6410cf
KS
8654 * xterm.h (STORE_NATIVE_RECT): New macro.
8655
5c9cc435
KS
86562003-03-21 Kim F. Storm <storm@cua.dk>
8657
00c64fab
SM
8658 * xdisp.c (get_glyph_string_clip_rect):
8659 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8660
8661 * dispextern.h (struct redisplay_interface): Add active_p
8662 argument to draw_window_cursor member. All uses changed.
8663
acd37560
KS
86642003-03-21 Kim F. Storm <storm@cua.dk>
8665
8666 The following changes consolidate code related to writing and
8667 inserting glyphs, exposing frame, the tool bar, the mouse face,
8668 the output cursor, and help echo from xterm.c, w32term.c and
8669 macterm.c into xdisp.c. It also generalizes the use of the
8670 window_part enum instead of using numeric values throughout.
af0ad939 8671
acd37560
KS
8672 * xdisp.c: Consolidate gui-independent code here.
8673 Include keymap.h.
8674 (Qhelp_echo): Import.
8675 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8676 (help_echo_string, help_echo_window, help_echo_object)
8677 (previous_help_echo_string, help_echo_pos): Declare here.
8678 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8679 (estimate_mode_line_height): Define here. Handle windowing
8680 systems directly (without using estimate_mode_line_height_hook).
8681 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8682 (update_window_cursor, update_cursor_in_window_tree)
8683 (fast_find_position, fast_find_string_pos)
8684 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8685 (expose_area, expose_line, expose_overlaps, expose_window)
8686 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8687 declared static as they are only used locally in xdisp.c.
8688 (draw_glyphs): Rename from x_draw_glyphs and make static.
8689 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8690 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8691 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8692 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8693 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8694 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8695 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8696 (note_mouse_highlight, x_clear_window_mouse_face)
8697 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8698 (x_intersect_rectangles): New generic functions for use by xdisp.c
8699 and GUI front-ends.
8700 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8701 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8702
8703 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8704 (NativeRectangle): Generic typedef for rectangle type.
8705 (enum window_part): Move here from window.c.
8706 (struct redisplay_interface): New members flush_display_optional,
8707 define_frame_cursor, clear_frame_area, draw_window_cursor,
8708 draw_vertical_window_border, shift_glyphs_for_insert.
8709 Rename member clear_mouse_face to clear_window_mouse_face.
8710 (estimate_mode_line_height_hook): Remove hook.
8711 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8712 (tool_bar_item_info): Remove prototype.
8713 (help_echo_string, help_echo_window, help_echo_object)
8714 (previous_help_echo_string, help_echo_pos)
8715 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8716 (x_stretch_cursor_p, output_cursor): Declare extern.
8717 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8718 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8719 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8720 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8721 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8722 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8723 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8724 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8725 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8726 Add prototypes.
8727 (mode_line_string, marginal_area_string): Fix prototypes.
8728
8729 * window.c (enum window_part): Move to dispextern.h.
8730 (coordinates_in_window): Use enum window_part member names
8731 instead of numbers to describe return value.
8732 (struct check_window_data): Change part member to window_part.
8733 (check_window_containing): Return window_part unaltered.
8734 (window_from_coordinates): Change part arg from int to enum
8735 window_part. Allow part arg to be null. All users changed.
8736
8737 * window.h (window_from_coordinates): Fix prototype.
8738
8739 * term.c (estimate_mode_line_height): Move to xdisp.c.
8740
8741 * keyboard.c (make_lispy_event): Use enum window_part.
8742
8743 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8744 window_part instead of int in arg list. Users changed.
8745
8746 * xterm.h (No_Cursor): Declare as None for X.
8747 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8748
acd37560
KS
8749 * xterm.c: Remove consolidated defines and code.
8750 (BETWEEN): Remove unused macro.
8751 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8752 (x_define_frame_cursor, x_clear_frame_area)
8753 (x_draw_window_cursor): New X-specific functions for RIF.
8754 (x_redisplay_interface): Add new members.
8755
8756 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8757
8758 * w32term.h (struct w32_output): Remove cross_cursor member.
8759
8760 * w32term.c: Remove consolidated defines and code.
8761 (BETWEEN): Remove unused macro.
8762 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8763 (w32_define_frame_cursor, w32_clear_frame_area)
8764 (w32_draw_window_cursor): New W32-specific functions for RIF.
8765 (w32_redisplay_interface): Add new members.
8766
a64387ee 8767 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8768 (XRectangle): Add X compatible rectangle type.
8769 (NativeRectangle): Declare as RECT for W32.
8770 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8771
8772 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8773
8774 * w32console.c: Remove consolidated defines and code.
af0ad939 8775
acd37560
KS
8776 * msdos.h (Display_Info): Add generic typedef.
8777
8778 * msdos.c: Remove consolidated defines and code.
8779 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8780
8781 * macterm.h (struct mac_output): Replace member cross_cursor by
8782 hand_cursor.
8783 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8784
8785 * macterm.c: Remove consolidated defines and code.
8786 (BETWEEN): Remove unused macro.
8787 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8788 (mac_define_frame_cursor, mac_clear_frame_area)
8789 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8790 (x_redisplay_interface): Add new members.
8791
8792 * macgui.h (No_Cursor): Define as 0 for Mac.
8793 (XRectangle): Add X compatible rectangle type.
8794 (NativeRectangle): Declare as Rect for Mac.
8795 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8796
204ccab1
KS
8797 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8798 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8799
9443fcf6 8800 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8801 included from it. Add dependency on keymap.h.
8802
8803 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8804
8ba01a70 88052003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8806
8807 * fileio.c (Fexpand_file_name): Fix previous change.
8808
8ba01a70 88092003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8810
8811 * fileio.c (Ffile_name_directory): Reconstruct file name by
8812 make_specified_string.
8813 (Ffile_name_nondirectory, Ffile_name_as_directory)
8814 (Fdirectory_file_name, Fexpand_file_name)
8815 (Fsubstitute_in_file_name): Likewise.
8816 (Fread_file_name): Compare decoded homedir with DIR and
8817 DEFAULT_FILENAME.
8818
8819 * alloc.c (make_specified_string): If NCHARS is negative, count
8820 the number of characters.
8821
19536747
JD
88222003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8823
de38ae5a
JD
8824 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8825 all widgets.
8826
19536747
JD
8827 * gtkutil.h: Removed xg_ignore_next_thumb.
8828
37ab321e 88292003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8830
8831 * coding.c (Vchar_coding_system_table): Remove this variable.
8832 (Vcoding_system_safe_chars): New variable.
8833 (intersection): Remove this function.
8834 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8835 all codings in SAFE_CODINGS.
00c64fab 8836 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8837 find_safe_codings. Get generic coding systems from
8838 Vcoding_system_safe_chars.
8839 (Fdefine_coding_system_internal): New function.
8840 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8841 Initialize and staticpro Vcoding_system_safe_chars.
8842
17097258
JD
88432003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8844
2a2071c3
JD
8845 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8846 equal old values before updating.
8847
17097258
JD
8848 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8849
8850 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8851
88522003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8853
8854 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8855 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8856 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8857 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8858 (xg_create_scroll_bar): Pass bar to button event callback.
8859 (xg_find_top_left_in_fixed): New function.
8860 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8861 whole scroll bar area. Get old position with
8862 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8863 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8864 dragging is in progress. Calculate whole as for Motif.
8865 Remove code that saved last values. Call gtk_range functions to
8866 set scroll bar sizes.
8867
8868 * gtkutil.h: Removed xg_ignore_next_thumb.
8869
8cb9dfbf
JB
88702003-03-17 Juanma Barranquero <lektu@terra.es>
8871
8872 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8873 and files included from it.
8874
00c64fab
SM
88752003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8876
8877 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8878 multiple occurrences of the same keymap under different prefixes.
8879 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8880
c45bb3b2
JR
88812003-03-16 Jason Rumney <jasonr@gnu.org>
8882
8883 * w32gui.h: Use HDC for Display.
8884
8885 * w32term.c (w32_encode_char): Prevent double-byte chars from
8886 crashing Emacs.
8887
8888 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8889 as binary.
8890
2a6d0874
JB
88912003-03-16 Juanma Barranquero <lektu@terra.es>
8892
8893 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8894
03eb5fab
KS
88952003-03-16 Kim F. Storm <storm@cua.dk>
8896
8897 The following changes consolidate some of the gui-independent
8898 parts of the processing and drawing of "glyph strings" from
8899 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8900
03eb5fab
KS
8901 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8902 21 bits (this reduces number of faces from 4M to 2M).
8903 Replace W32 specific w32_font_type member (2 bits) by generic
8904 font_type member (3 bits) for portability.
8905 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8906 (enum draw_glyphs_face): Define here.
8907 (struct glyph_string): Define here. Merge W32 and X versions.
8908 (struct redisplay_interface): New members per_char_metric,
8909 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8910 (VCENTER_BASELINE_OFFSET): Define here.
8911 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8912 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8913
8914 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8915 (dump_glyph_string): Moved here.
8916 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8917 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8918 (fill_composite_glyph_string, fill_glyph_string)
8919 (fill_image_glyph_string, fill_stretch_glyph_string)
8920 (left_overwritten, left_overwriting, right_overwritten)
8921 (right_overwriting, get_char_face_and_encoding)
8922 (set_glyph_string_background_width, compute_overhangs_and_x)
8923 (append_glyph, append_composite_glyph, produce_image_glyph)
8924 (take_vertical_position_into_account, append_stretch_glyph)
8925 (produce_stretch_glyph): New generic functions (based on X version).
8926 Call platform specific functions through rif.
8927 (INIT_GLYPH_STRING): New macro, hides W32 details.
8928 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8929 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8930 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8931 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8932 (notice_overwritten_cursor):
8933 Generic functions exported to platform modules. Users changed.
8934
8935 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8936 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8937 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8938 New macros for consolidated code.
2a6d0874 8939
03eb5fab
KS
8940 * xterm.c: Remove consolidated defines and code.
8941 (x_per_char_metric, x_encode_char)
8942 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8943 (x_redisplay_interface): Add new members.
8944
8945 * w32gui.h (Display): Add dummy typedef for consolidation.
8946 (XChar2b): Define alias for wchar_t for consolidation.
8947 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8948
8949 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8950 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8951 New macros for consolidation.
8952
fad49844 8953 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8954 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8955 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8956 (w32_per_char_metric): Change font_type arg to int for RIF.
8957 (w32_encode_char): Return int according to RIF requirements.
8958 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8959 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8960 x_get_glyph_overhangs.
8961 (w32_redisplay_interface): Add new members.
8962
8963 * macgui.h (XChar2b): Move typedef here for consolidation.
8964 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8965
8966 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8967 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8968 consolidation.
8969
8970 * macterm.c: Remove consolidated defines and code.
8971 (mac_per_char_metric): New function for RIF.
00c64fab 8972 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8973 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8974 (x_redisplay_interface): Add new members.
8975
00c64fab
SM
89762003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8977
8978 * keymap.c (Vmenu_events): New var.
8979 (syms_of_keymap): Initialize it.
8980 (where_is_internal): Check more carefully what is a menu event.
8981
225c7a07
RS
89822003-03-14 Richard M. Stallman <rms@gnu.org>
8983
8984 * lread.c (read1): After #!, exit loop on eof.
8985
cea9be54
JD
89862003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8987
9ea0e54d
JD
8988 * gtkutil.h: Add declaration for xg_frame_cleared.
8989
0cb35f4e
JD
8990 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8991
cea9be54
JD
8992 * gtkutil.c (struct xg_last_sb_pos): New structure.
8993 (handle_fixed_child): New function.
8994 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8995 and force a redraw on them.
8996 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8997 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8998 so we can avoid unneeded redraws.
8999 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9000 and force a redraw on the scroll bar.
9001 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9002 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9003 (xg_frame_cleared): New function.
cea9be54 9004
20b853f3
KH
90052003-03-13 Kenichi Handa <handa@m17n.org>
9006
9007 * coding.c (Fdetect_coding_region): Fix docstring.
9008 (Fdetect_coding_string): Fix docstring.
9009
7a555aff
AS
90102003-03-13 Andreas Schwab <schwab@suse.de>
9011
25cc0080
AS
9012 * gtkutil.c: Add prototype for create_menus.
9013
30225431
AS
9014 * data.c (long_to_cons): Fix type of top.
9015
9016 * xselect.c (selection_data_to_lisp_data): Use int instead of
9017 long for an integer of size 4.
9018
7a555aff 9019 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9020 (xg_tool_bar_help_callback): Likewise.
7a555aff 9021
a3e4741f
AS
90222003-03-12 Andreas Schwab <schwab@suse.de>
9023
9024 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9025
9668be7c
KS
90262003-03-12 Kim F. Storm <storm@cua.dk>
9027
03eb5fab 9028 The following changes consolidate the fringe handling from
9668be7c 9029 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9030
9668be7c
KS
9031 * xdisp.c: Consolidate fringe handling code here.
9032 (left_bits, right_bits, continued_bits, continuation_bits)
9033 (ov_bits, zv_bits): Define fringe bitmaps.
9034 (fringe_bitmaps): New array holding fringe bitmaps.
9035 (draw_fringe_bitmap): Draw a specific bitmap; call display
9036 specific drawing routine via rif->draw_fringe_bitmap.
9037 (draw_row_fringe_bitmaps): Generic replacement for
9038 x_draw_row_fringe_bitmaps; all callers changed.
9039 (compute_fringe_widths): Generic replacement for
9040 x_compute_fringe_widths; all callers changed.
9041
9042 * dispextern.h (enum fringe_bitmap_type): Define here.
9043 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9044 (fringe_bitmaps): Declare extern.
9045 (struct redisplay_interface): New member draw_fringe_bitmap.
9046 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9047
9048 * xterm.c: Remove generic fringe code.
9049 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9050 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9051
9052 * w32term.c: Remove generic fringe code.
9053 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9054 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9055
9668be7c
KS
9056 * macterm.c: Remove generic fringe code.
9057 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9058 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9059
00a88f32
SM
90602003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9061
9062 * print.c (Fprin1_to_string): Return unibyte string if possible.
9063
1d1de695
DK
90642003-03-09 David Kastrup <dak@gnu.org>
9065
9066 * process.c (read_process_output): We have allocated enough space
9067 for readmax and carryover, so actually use the alloted space.
9068
257f40f2
JD
90692003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9070
9071 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9072 toolkit scrollbar click.
9073
9074 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9075 for USE_GTK.
9076 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9077 also.
9078 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9079 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9080
78819ebb 9081 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9082
9083 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9084 (xg_tool_bar_item_expose_callback): New function.
9085 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9086 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9087 on the tool bar widget.
9088 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9089 to expose on the tool bar item widgets.
9090
15213141
JD
90912003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9092
26b74a0b 9093 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9094 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9095 deleted from the image cache).
9096
15213141
JD
9097 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9098 the event isn't for a frame (i.e. for dialogs).
9099
20b853f3 91002003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9101
9102 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9103 composition components reaches the limit, terminate composing.
9104 (COMPOSITION_OK): New macro.
00a88f32 9105 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9106 composition is found.
9107 (coding_restore_composition): Adjust the number of composition
9108 components if it is not sane.
9109
c9029fe5
JB
91102003-03-06 Juanma Barranquero <lektu@terra.es>
9111
9112 * w32term.h (struct w32_display_info): Add xrdb member to support
9113 passing resources via -xrm on Windows.
9114
9115 * w32term.c (w32_make_rdb): New function.
9116 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9117 struct. Delete leftover code.
9118
9119 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9120 for resources passed on the command line.
9121
9122 * w32reg.c (w32_get_rdb_resource): New function.
9123 (x_get_string_resource): Use it, so resources passed with -xrm
9124 supercede the ones in the registry.
9125
9d00001f
JD
91262003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9127
9128 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9129 instead of x_top_window_to_frame.
9130
ca2417b9
JD
91312003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9132
9133 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9134 when restarting Emacs.
9135
5b20caf0
RS
91362003-03-03 Richard M. Stallman <rms@gnu.org>
9137
9138 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9139 to run kill-buffer-query-functions.
9140 (Qkill_buffer_query_functions): New var.
9141 (syms_of_buffer): Init and staticpro it.
9142
58e91b77
JD
91432003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9144
9145 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9146
932357b4
KS
91472003-02-25 Kim F. Storm <storm@cua.dk>
9148
9149 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9150 If centering point failed to make whole line visible and vscroll
9151 is non-zero, disable vscroll and try centering point again.
9152
9153 * lread.c (read1): Accept `single space' syntax like (? x).
9154
bb8db7e1
JD
91552003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9156
9157 * keyboard.c (cancel_hourglass_unwind): Surround with
9158 #ifdef HAVE_X_WINDOWS
9159
47d77aab
KH
91602003-02-25 Kenichi Handa <handa@m17n.org>
9161
9162 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9163 process only when "subprocesses" is defined.
9164
6a097c0c
SM
91652003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9166
9167 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9168
0b063c27
JB
91692003-02-24 Juanma Barranquero <lektu@terra.es>
9170
d1135afc
JB
9171 * callint.c (fix_command): Declare as static void and move before
9172 Fcall_interactively.
9173
0b063c27
JB
9174 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9175 (syms_of_xdisp): Don't initialize Qwhen.
9176
0af912f0
JD
91772003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9178
9179 * keyboard.c (cancel_hourglass_unwind): New function.
9180 (command_loop_1): Cancel hourglass with unwind-protect.
9181
120d0a23
RS
91822003-02-23 Richard M. Stallman <rms@gnu.org>
9183
9184 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9185 Detect (when ... (region-beginning)) etc.
9186 (Fcall_interactively): Call fix_command.
9187 (Qif, Qwhen): New variables.
9188 (syms_of_callint): Init and staticpro them.
0b063c27 9189
120d0a23
RS
9190 * regex.c (print_partial_compiled_pattern): Output to stderr.
9191
4ece81a6
KG
91922003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9193
9194 * dired.c (directory_files_internal): Don't expand directory.
9195 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9196 instead. From Lars Hansen <larsh@math.ku.dk>.
9197
e52bd6b7
SM
91982003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9199
9200 * fns.c (string_to_multibyte): Remove unused var i.
9201 (Flanginfo): Fix int/Lisp_Object mixup.
9202 (void_call2): New fun.
9203 (Fmap_char_table): Use it in place of call2.
9204
9205 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9206
9207 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9208
9209 * keymap.c (copy_keymap_1): Make it static.
9210
9211 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9212
c33ef7c4
JB
92132003-02-22 David Ponce <david@dponce.com>
9214
9215 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9216
16782258
JD
92172003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9218
9219 * process.h: Removed subtty field from struct Lisp_Process.
9220
9221 * process.c (create_process): Remove setting of subtty.
9222 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9223 (Fprocess_running_child_p, process_send_signal):
9224 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9225 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9226
3abeca61
KG
92272003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9228
9229 * keymap.c (Fdefine_key): Doc fix.
9230
92a8ce63
JB
92312003-02-21 Juanma Barranquero <lektu@terra.es>
9232
9233 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9234
9235 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9236 POLLING_PROBLEM_IN_SELECT.
9237
9238 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9239 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9240
9241 * s/hpux10-20.h: New file.
9242
e52bd6b7
SM
9243 * process.c (wait_reading_process_input):
9244 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9245
20f1ef2e
KH
92462003-02-20 Kenichi Handa <handa@m17n.org>
9247
32d0a9dc
KH
9248 * fontset.c (check_fontset_name): If NAME is nil, return the
9249 default fontset.
9250 (override_font_info): New function.
e52bd6b7 9251 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9252 (Ffontset_info): If FONTSET is not the default fontset, merge
9253 FONTSET onto the copy of the default fontset, and work on that
9254 copy. Document that NAME nil means the default fontset.
9255 (Ffontset_font): Document that NAME nil means the default fontset.
9256
20f1ef2e
KH
9257 * process.c (setup_process_coding_systems): If the process's
9258 in/out descriptor is -1, do nothing.
9259
77d1daf2
AS
92602003-02-19 Andreas Schwab <schwab@suse.de>
9261
e52bd6b7
SM
9262 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9263 Add prototypes.
77d1daf2 9264
f9a45bb3
KH
92652003-02-19 Kenichi Handa <handa@m17n.org>
9266
9267 * xfaces.c (try_alternative_families): Try all scalable fonts if
9268 Vscalable_fonts_allowed is not Qt.
9269
72ecb43c
JD
92702003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9271
9272 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9273
ee5be7c3
JD
92742003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9275
9276 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9277 names.
9278
9279 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9280 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9281 x_face_list_fonts.
9282 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9283 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9284
4cd519a7
KS
92852003-02-18 Kim F. Storm <storm@cua.dk>
9286
068f9882
KS
9287 * lread.c (read1): Fix last change.
9288 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9289
7290a344
AC
92902003-02-18 Andrew Choi <akochoi@shaw.ca>
9291
9292 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9293
1f7fa69b
AS
92942003-02-18 Andreas Schwab <schwab@suse.de>
9295
9296 * window.c (window_scroll_pixel_based): Move outside a
9297 multi-glyph character before setting new window start.
9298
9299 * xdisp.c (in_display_vector_p): New function.
9300 * dispextern.h (in_display_vector_p): Declare.
9301
23e21195
KS
93022003-02-18 Kim F. Storm <storm@cua.dk>
9303
9304 * lread.c (read1): Fix and relax read syntax.
9305 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9306 Only recognize "," after dotted-pair dot if inside backquote.
9307 Never include "`" or "," (inside backquote) in a symbol.
9308 Allow dotted-pair dot after a character constant.
9309 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9310
f098b121
JD
93112003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9312
9313 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9314 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9315 icons. Set name of tool bar to emacs-toolbar.
9316 (update_frame_tool_bar): Connect expose event to
9317 xg_tool_bar_expose_callback.
9318
63020c46
RS
93192003-02-17 Richard M. Stallman <rms@gnu.org>
9320
9321 * keyboard.c (this_command_key_count_reset): New variable.
9322 Initiatize to 0 where this_command_key_count is set.
9323 (read_char): Save and restore this_command_key_count_reset
9324 around input method code.
9325 (read_char): If this_command_key_count_reset, echo reread commands.
9326 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9327
fb4452cc
KH
93282003-02-17 Kenichi Handa <handa@m17n.org>
9329
9330 * fns.c (string_to_multibyte): Always return a multibyte string.
9331
bd11cc09
JR
93322003-02-16 Jason Rumney <jasonr@gnu.org>
9333
e52bd6b7
SM
9334 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9335 Negative max_fonts parameter means list all.
bd11cc09 9336
4cdf4bde
DL
93372003-02-14 Dave Love <fx@gnu.org>
9338
9339 * fns.c (Flanginfo): Doc fix.
9340
023b93f6
KS
93412003-02-13 Kim F. Storm <storm@cua.dk>
9342
37cd4238
KS
9343 * lread.c (read_escape): Interpret \s as a SPACE character, except
9344 for \s-X in a character constant which still is the super modifier.
9345 (read1): Signal an `invalid read syntax' error if a character
9346 constant is immediately followed by a digit or symbol character.
9347
140a6b7e
KS
9348 * search.c (Fmatch_data): Doc fix. Explicitly state that
9349 match-data is undefined if last search failed.
9350
023b93f6
KS
9351 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9352 All uses changed.
9353
7d5c86e5
JB
93542003-02-12 Juanma Barranquero <lektu@terra.es>
9355
9356 * eval.c (Fdefmacro): Fix typo.
9357
295fff2c
KS
93582003-02-12 Kim F. Storm <storm@cua.dk>
9359
9360 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9361 macro is a string, convert meta modifiers in string when copying
9362 the string into a vector.
9363
60f3202d
KS
93642003-02-11 Kim F. Storm <storm@cua.dk>
9365
9366 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9367
61cb0b53
KH
93682003-02-11 Kenichi Handa <handa@m17n.org>
9369
9370 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9371
7392e23c
KS
93722003-02-10 Kim F. Storm <storm@cua.dk>
9373
9374 * process.c: Doc fixes.
9375 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9376
ce4254bd
KH
93772003-02-10 Kenichi Handa <handa@m17n.org>
9378
9c7a329a
KH
9379 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9380
ce4254bd
KH
9381 * process.c (QCfilter_multibyte): New variable.
9382 (setup_process_coding_systems): New function.
e52bd6b7
SM
9383 (Fset_process_buffer, Fset_process_filter):
9384 Call setup_process_coding_systems.
ce4254bd
KH
9385 (Fstart_process): Initialize the member `filter_multibyte' of
9386 struct Lisp_Process.
9387 (create_process): Call setup_process_coding_systems.
9388 (Fmake_network_process): New keyward `:filter-multibyte'.
9389 Initialize the member `filter_multibyte' of struct Lisp_Process.
9390 Call setup_process_coding_systems.
9391 (server_accept_connection): Call setup_process_coding_systems.
9392 (read_process_output): If the process has a filter, decide the
9393 multibyteness of a string to given to the filter by
9394 `filter_multibyte' member of the process. If the process doesn't
9395 have a filter and the result of conversion is unibyte, use
9396 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9397 multibyte form.
9398 (Fset_process_coding_system): Call setup_process_coding_systems.
9399 (Fset_process_filter_multibyte): New function.
9400 (Fprocess_filter_multibyte_p): New function.
9401 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9402 Defsubr Sset_process_filter_multibyte and
9403 Sprocess_filter_multibyte_p.
9404
9405 * process.h (struct Lisp_Process): New member filter_multibyte.
9406
9407 * lisp.h (setup_process_coding_systems): Add prototype.
9408
9409 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9410 process, update coding systems for the process.
9411
b08d5f59
KH
94122003-02-09 Kenichi Handa <handa@m17n.org>
9413
9414 * fns.c (string_to_multibyte): New function.
9415 (Fstring_to_multibyte): New function.
9416 (syms_of_fns): Defsubr it.
9417
0dfd93c0
AS
94182003-02-08 Andreas Schwab <schwab@suse.de>
9419
9420 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9421 instead of the substitution.
9422
7b76ca1c
JD
94232003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9424
9425 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9426
9427 * xmenu.c (menu_position_func): Adjust menu popup position so that
9428 the menu is fully visible.
7b76ca1c 9429
2436a4e4
JD
94302003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9431
9432 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9433 (x_make_frame_invisible, x_wm_set_icon_position):
9434 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9435
9436 * xfns.c (x_set_name, x_set_title): Ditto.
9437
37d1e680
RS
94382003-02-04 Richard M. Stallman <rms@gnu.org>
9439
9440 * keyboard.c (echo_now): Update before_command_echo_length.
9441 (Freset_this_command_lengths): Reset this_command_key_count etc.
9442 immediately rather than arranging to do it later.
9443 (before_command_key_count_1, before_command_echo_length_1)
9444 (before_command_restore_flag): Vars deleted.
9445 (add_command_key): Don't handle before_command_restore_flag.
9446 (read_char, record_menu_key): Don't update before_command_key_count or
9447 before_command_echo_length.
9448 (read_char): Don't handle before_command_restore_flag.
9449
9450 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9451 in direct-output clauses if it wouldn't be called in the ordinary case.
9452
578846a3
KS
94532003-02-04 Kim F. Storm <storm@cua.dk>
9454
9455 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9456
49853a4d
JD
94572003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9458
9459 * gtkutil.c (remove_from_container): Copying list is not needed.
9460 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9461 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9462 on list returned from gtk_container_get_children to avoid memory leak.
9463
8b53dc06
JR
94642003-02-01 Jason Rumney <jasonr@gnu.org>
9465
5d54d177
JR
9466 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9467 local malloc.
9468 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9469 definitions in xpm.h.
9470 (init_xpm_functions): New function.
f63fd14e 9471 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9472 (init_external_image_libraries): Try to load libXpm.dll.
9473
8b53dc06
JR
9474 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9475 timestamp.
9476
b222e415
DL
94772003-01-31 Dave Love <fx@gnu.org>
9478
9479 * syntax.c (Fskip_chars_forward)
9480 (open-paren-in-column-0-is-defun-start): Doc fix.
9481
c60ee5e7
JB
94822003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9483
9484 * fileio.c: Support // at start of name for Cygwin (just added proper
9485 preprocessor tests).
9486
9487 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9488
9489 * Makefile.in: Use @EXEEXT@ for Cygwin.
9490
9491 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9492
9493 * s/cygwin.h: Added for Cygwin port.
9494
53b37591
JB
94952003-01-31 Juanma Barranquero <lektu@terra.es>
9496
9497 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9498 when including gif_lib.h.
fe929957 9499 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9500 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9501 Windows. Disable color table lookups. Call library functions
53b37591 9502 through pointers determined at runtime.
fe929957
JB
9503 (init_external_image_libraries): Try to load libungif.dll and
9504 libtiff.dll.
53b37591 9505
45415a8f
KH
95062003-01-31 Kenichi Handa <handa@m17n.org>
9507
9508 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9509 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9510
a97e4138
JD
95112003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9512
e52bd6b7 9513 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9514
6eed9bed
DL
95152003-01-30 Dave Love <fx@gnu.org>
9516
9517 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9518 (Fgarbage_collect): Use them.
9519 (init_alloc, syms_of_alloc): Set them up.
9520
100dcd40
JB
95212003-01-30 Juanma Barranquero <lektu@terra.es>
9522
9523 * w32fns.c (init_external_image_libraries): Add missing operator.
9524
fbd852af
JR
95252003-01-29 Jason Rumney <jasonr@gnu.org>
9526
9527 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9528 an alternative name for jpeg.dll.
9529
8a2d8020
KH
95302003-01-29 Kenichi Handa <handa@m17n.org>
9531
9532 * xdisp.c (set_cursor_from_row): Pay attention to string display
9533 properties.
9534
058c18c7
AC
95352003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9536
9537 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9538 <escape>.
9539 (keycode_to_xkeysym_table): Reformat and add more comments.
9540 (XTread_socket): Drop special case for backspace.
9541
385f11cf
AC
95422003-01-28 Andrew Choi <akochoi@shaw.ca>
9543
9544 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9545 values in old-style RGB specs.
9546
c922a224
JB
95472003-01-27 Juanma Barranquero <lektu@terra.es>
9548
9549 * w32fns.c (init_external_image_libraries): Try alternate names for the
9550 jpeg dll.
9551
0a1d6de0
JD
95522003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9553
9554 * gtkutil.c (create_dialog, xg_separator_p)
9555 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9556 before calling strcmp or strlen.
9557
a97e4138 95582003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9559
9560 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9561 and handle image load failure.
9562
28908312
JR
95632003-01-26 Jason Rumney <jasonr@gnu.org>
9564
9565 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9566 New functions.
f63fd14e
JB
9567 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9568 Disable color table lookups. Call jpeg library functions
28908312
JR
9569 through pointers determined at runtime.
9570 (init_external_image_libraries): Try to load jpeg.dll.
9571
84e47416
RS
95722003-01-25 Richard M. Stallman <rms@gnu.org>
9573
9574 * lisp.h: Declare format2 instead of format1.
9575
9576 * fileio.c (barf_or_query_if_file_exists):
9577 Call format2 instead of format1.
9578
9579 * editfns.c (format2): New function, replaces format1
9580 but takes exactly two Lisp Objects as format args.
9581
9582 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9583
a97e4138 95842003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9585
9586 * xterm.h: Change to return value of x_dispatch_event to int.
9587
9588 * xterm.c (x_filter_event): New function.
9589 (event_handler_gdk, XTread_socket): Call x_filter_event.
9590 (x_dispatch_event): Change to return value of finish.
9591 (event_handler_gdk): Use return value from x_dispatch_event.
9592
9593 * xfns.c (x_window): Call create_frame_xic for GTK version to
9594 initialize input methods.
9595
9596 * gtkutil.h: Add (void) prototypes.
9597
9598 * gtkutil.c (create_menus): Remove code that puts the help menu to
9599 the right.
9600
54eefef1
JR
96012003-01-25 Jason Rumney <jasonr@gnu.org>
9602
9603 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9604 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9605 (png_load): Adjust colors for Windows. Use Windows
9606 bitmaps. Disable color table lookups.
c262430d
JR
9607 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9608 (init_png_functions): New function.
9609 (png_read_from_memory, png_load): Call png library functions
9610 through pointers determined at runtime.
9611 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9612 (init_external_image_libraries): New function.
9613 (init_xfns): Call it.
54eefef1 9614
1a9e275b
AS
96152003-01-24 Andreas Schwab <schwab@suse.de>
9616
9617 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9618
a97e4138 96192003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9620
9621 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9622 of static initializer.
9623
422eec7e
DL
96242003-01-24 Dave Love <fx@gnu.org>
9625
9626 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9627 architectures.
9628
9629 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9630 Use __alignof__.
9631
2a026b04
KH
96322003-01-24 Kenichi Handa <handa@m17n.org>
9633
9634 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9635 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9636 (command_loop_1): Call adjust_point_for_property with proper
9637 second arg.
9638
a18bb28d
JR
96392003-01-22 Jason Rumney <jasonr@gnu.org>
9640
9641 Sync changes with xterm.c and xfns.c.
9642
9643 * w32term.c (x_draw_glyph_string_foreground)
9644 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9645
9646 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9647 phys_cursor's hpos is overwritten. This is still not completely
9648 correct, as it doesn't really make sense to use hpos at all to
9649 get the cursor glyph (as that is relative to the width of the
9650 characters on the line, which may have changed during the update).
9651
9652 * w32term.c (notice_overwritten_cursor): Handle the special case
9653 of the cursor being in the first blank non-text line at the
9654 end of a window.
9655
9656 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9657 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9658 Compute from the x position returned by x_draw_glyphs.
9659
9660 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9661 except for NO_CURSOR and system caret, to make phys_cursor_width
9662 contain what its name suggests.
9663 (notice_overwritten_cursor): Consider the cursor image erased if
9664 the output area intersects the cursor image in y-direction.
9665
6a097c0c
SM
9666 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9667 note_mode_line_highlight and extend.
a18bb28d
JR
9668
9669 * w32term.c (last_window): New variable.
9670 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9671 (note_mouse_movement): Remove reimplemented code in #if 0.
9672
9673 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9674 not update_mode_lines, and always set it to 1.
9675
ac6e47ef
JR
96762003-01-21 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32fns.c (IDC_HAND): Define it if system headers don't.
9679
96802003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9681
9682 * w32term.h (struct w32_output): New member hand_cursor.
9683 (WM_EMACS_SETCURSOR): New message definition.
9684
9685 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9686 function w32_define_cursor.
9687 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9688 position, change member name output_data.x to output_data.w32 and
9689 add function w32_define_cursor.
9690 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9691 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9692 (w32_initialize_display_info):
9693 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9694
9695 * w32fns.c (Vx_hand_shape): New variable.
9696 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9697 WM_EMACS_SETCURSOR.
9698 (x-create-frame): Setup Cursor types.
9699
ceb39a17
JB
97002003-01-21 David Ponce <david@dponce.com>
9701
ac6e47ef 9702 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9703 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9704 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9705 2002-09-30.)
ac6e47ef
JR
9706 (w32_draw_relief_rect): Declare all args.
9707 (w32_define_cursor): New.
9708
9709 * w32fns.c (w32_load_cursor): New function.
9710 (w32_init_class): Use it.
9711 (x_put_x_image): Declare all args.
9712
b6189c3b 97132003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9714
9715 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9716
a97e4138 97172003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9718
9719 * gtkutil.c: Must include stdio.h before termhooks.h
9720
83fc9c63
DL
97212003-01-21 Dave Love <fx@gnu.org>
9722
9723 * alloc.c (Fgc_status): Print zombie list.
9724 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9725 Fix assignment of zombies.
9726 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9727 Don't take car of non-cons.
9728
9729 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9730
9731 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9732
fe04b8c8
JR
97332003-01-20 David Ponce <david@dponce.com>
9734
9735 * w32menu.c (digest_single_submenu): Declare all args.
9736
9737 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9738 changes in xmenu.c:
9739
9740 (parse_single_submenu): Use individual keymap's prompt
9741 string as pane name, if there is one.
9742 (set_frame_menubar): Save menu_items_n_panes from each call to
9743 parse_single_submenu and use it when calling digest_single_submenu.
9744
539e69a9
ST
97452003-01-20 Steven Tamm <steventamm@mac.com>
9746
9747 * macterm.c (XTread_socket): Checks for valid, visible window
9748 before sending a scroll-wheel event.
9749
675d000f
RS
97502003-01-20 Richard M. Stallman <rms@gnu.org>
9751
9752 * xdisp.c (redisplay_window): If mini window's buffer is not
9753 a minibuffer, then redisplay it like other windows.
9754
a97e4138 97552003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9756
9757 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9758 external tool bar before setting tool bar height.
9759
048addec
JD
97602003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9761
9762 * xterm.c (handle_one_xevent): Surround popup_activated
9763 with #ifdef:s for non-toolkit version.
9764
9765 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9766 (gtkutil.o): New file.
9767 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9768 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9769
9770 * gtkutil.c: New file for GTK version.
9771
9772 * gtkutil.h: New file for GTK version.
9773
9774 * xterm.h: Add xt_or_gtk_widget.
9775 Include gtk files for USE_GTK.
9776 (struct x_output): Add toolbar_height.
9777 (struct x_output): Add GTK widgets and Gdk size_hints.
9778 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9779 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9780 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9781
9782 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9783 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9784 (note_mouse_highlight): Check popup_activated for USE_GTK.
9785 (xt_action_hook): Don't compile if USE_GTK.
9786 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9787 (xg_scroll_callback): New function.
9788 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9789 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9790 for USE_GTK.
9791 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9792 xg_show_scroll_bar for USE_GTK.
9793 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9794 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9795 (event_handler_gdk): New function for USE_GTK.
9796 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9797 (handle_one_xevent): Make sure widget is mapped before
9798 calling x_real_positions for USE_GTK.
9799 (XTread_socket): Add GTK event loop for USE_GTK.
9800 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9801 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9802 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9803 (x_iconify_frame): Add code for USE_GTK.
9804 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9805 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9806 is in gtkutil.c.
9807 (x_term_init): Add initialization for GTK.
9808 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9809
9810 * xmenu.c: Include gtkutil.h for USE_GTK.
9811 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9812 (single_menu_item, single_menu_item, Fx_popup_dialog):
9813 Check for USE_GTK.
048addec
JD
9814 (popup_widget_loop): New function for USE_GTK.
9815 (x_activate_menubar): Add code for USE_GTK.
9816 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9817 (menu_highlight_callback, menubar_selection_callback):
9818 Add USE_GTK versions.
048addec
JD
9819 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9820 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9821 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9822 is in gtkutil.c.
9823 (popup_selection_callback): New version for USE_GTK.
9824 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9825 one USE_X_TOOLKIT version.
048addec
JD
9826 (xmenu_show): Call create_and_show_popup_menu.
9827 (dialog_selection_callback): New version for USE_GTK.
9828 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9829 one USE_X_TOOLKIT version.
048addec
JD
9830 (xdialog_show): Call create_and_show_dialog.
9831
9832 * xfns.c: Include gtkutil for USE_GTK.
9833 (x_window_to_frame, x_any_window_to_frame)
9834 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9835 (x_top_window_to_frame): Add code for USE_GTK.
9836 (x_set_background_color): Call xg_set_background_color for GTK.
9837 (x_set_menu_bar_lines): Check for USE_GTK.
9838 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9839 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9840 (x_window): Call xg_create_frame_widgets for USE_GTK.
9841 (Fx_create_frame): Check for USE_GTK
9842 (Fx_file_dialog): New implementation for USE_GTK.
9843
9844 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9845 (update_menu_bar): Add check for USE_GTK.
9846 (update_tool_bar): Add check for USE_GTK and external tool bar.
9847 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9848 (redisplay_internal): Add check for USE_GTK and popup_activated.
9849 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9850 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9851 (display_menu_bar): Add check for USE_GTK
9852
78819ebb 9853 * lisp.h (Vx_resource_name): Declare extern.
048addec 9854
a64387ee 9855 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9856 for USE_GTK.
9857 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9858
9859 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9860 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9861 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9862
9863 * fileio.c (Fread_file_name): Add check for USE_GTK.
9864
6bdb309a
SM
9865 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9866 Add check for USE_GTK.
048addec
JD
9867
9868 * config.in: Added HAVE_GTK
9869
9870 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9871
98722003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9873
9874 * charset.h (Funibyte_char_to_multibyte): Export.
9875
98762003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9877
9878 * xmenu.c (mouse_position_for_popup): New function.
9879 (Fx_popup_menu): Call mouse_position_for_popup for X and
9880 mouse_position_hook for others.
9881
98822003-01-17 Kim F. Storm <storm@cua.dk>
9883
9884 * editfns.c (Finsert): Mention `string-make-multibyte' and
9885 `string-as-multibyte' in doc string.
9886
98872003-01-17 Kenichi Handa <handa@m17n.org>
9888
9889 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9890
048addec
JD
9891 * editfns.c (Fformat): Convert an unibyte char argument that is
9892 formatted by "%c" to multibyte if the total result must be a
9893 multibyte string.
cd7df9c0 9894
048addec 98952003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9896
048addec
JD
9897 * process.c (set-process-filter): Document unibyte/multibyte-ness
9898 of string argument.
56210ecd 9899
048addec 99002003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9901
048addec 9902 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9903
048addec
JD
9904 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9905 (re_search_2): Likewise.
6df8b9fe 9906
048addec 99072003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9908
048addec
JD
9909 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9910 buffer is unibyte.
292ddc31 9911
048addec 99122003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9913
048addec 9914 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9915
048addec
JD
9916 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9917 (Fprevious_char_property_change)
9918 (Fnext_single_char_property_change)
9919 (Fprevious_single_char_property_change, Fnext_property_change)
9920 (Fnext_single_property_change, Fprevious_property_change)
9921 (Fprevious_single_property_change, Fadd_text_properties)
9922 (Fput_text_property, Fset_text_properties)
9923 (Fremove_text_properties, Fremove_list_of_text_properties)
9924 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9925
048addec 99262003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9927
048addec
JD
9928 * process.h (struct Lisp_Process): New member plist replaces old
9929 member private_vars. All uses changed.
63e4e4c6 9930
048addec 9931 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9932 (QCplist): Rename from QCvars. Change all uses.
048addec 9933 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9934 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9935 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9936 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9937
048addec 99382003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9939
6bdb309a 9940 * m/delta.h: Remove (obsolete).
e833850f 9941
048addec 99422003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9943
048addec
JD
9944 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9945 behaviour in front of symlinks.
9946 (Fdelete_file): Raise an error on directories.
817cb127 9947
048addec 99482003-01-13 Dave Love <fx@gnu.org>
817cb127 9949
048addec 9950 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9951
048addec 99522003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9953
048addec
JD
9954 * minibuf.c (minibuffer_completion_contents):
9955 Error if point is inside prompt.
3e8cf2ea 9956
048addec
JD
9957 * keyboard.c (command_loop_1): Don't redisplay directly
9958 if there's a post-command-hook.
3e8cf2ea 9959
048addec
JD
9960 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9961 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9962
048addec 99632003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9964
048addec 9965 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9966
048addec
JD
9967 * process.c (QCvars): New variable.
9968 (syms_of_process): Intern and staticpro it.
9969 (Fset_process_contact): Removed function.
9970 (Fprocess_variable, Fset_process_variable): New functions.
9971 (syms_of_process): Defsubr them.
9972 (Fstart_process): Initialize private_vars plist to nil.
9973 (Fmake_network_process): New arg :vars to setup the private
9974 variables for new network process.
9975 (server_accept_connection): Copy server's private variables to
9976 client process.
2c10f029 9977
048addec
JD
9978 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9979 crashes). Code rewritten and simplified. Now directly aligns the
9980 pointer and recalculates pure_bytes_used, rather than aligning the
9981 size and adjusting the pointer.
b8a76c6c 9982
048addec 99832003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9984
048addec
JD
9985 * process.c (Fset_process_contact): New function.
9986 (syms_of_process): defsubr it.
9987 (make-network-process): Update doc.
3a8d0899 9988
048addec 99892003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9990
048addec
JD
9991 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9992 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9993
048addec 99942003-01-10 Dave Love <fx@gnu.org>
4abc7470 9995
048addec 9996 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9997
048addec 99982003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9999
048addec
JD
10000 * process.c (Fmake_network_process): Convert new port number
10001 to host byte order for `:service t' case. From Mario Lang.
bf338245 10002
048addec 100032003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10004
048addec
JD
10005 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10006 instead of XtAppProcessEvent.
bf338245 10007
048addec
JD
10008 * xterm.c (handle_one_xevent): New function.
10009 (x_dispatch_event): New function.
10010 (XTread_socket): Call handle_one_xevent.
bf338245 10011
048addec 10012 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10013
048addec
JD
10014 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10015 call XQueryPointer to get coordinates.
10016 (popup_get_selection): Do not set popup_activated_flag to zero,
10017 let popup_deactivate_callback do that. Needed for Motif.
10018 Call x_dispatch_event instead of XtDispatchEvent.
10019 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10020
048addec 100212003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10022
6bdb309a 10023 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10024 connection's local address in :local property of contact info.
10025 (Fmake_network_process): Record local network address for new
10026 client processes in :local property of contact info.
6bdb309a 10027 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10028
048addec 100292003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10030
048addec 10031 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10032
048addec 100332003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10034
048addec 10035 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10036
048addec
JD
10037 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10038 use the same test as for custom-variable-p.
8c6d74c6 10039
048addec 100402003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10041
048addec
JD
10042 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10043 Count LAST_LINE_MISFIT in scroll margin for end of window.
10044 Move label too_near_end before setting SCROLL_MARGIN_POS.
10045 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10046
048addec
JD
10047 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10048 scroll_conservatively case. If scrolling that much doesn't change
10049 STARTP, move it down one line.
e833850f 10050
048addec
JD
10051 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10052 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10053
048addec
JD
10054 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10055 selected frame.
8c6d74c6 10056
048addec
JD
10057 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10058 (syms_of_keymap): staticpro them.
10059 (Fapropos_internal): Initialize them and clear them out.
10060 Don't GCPRO them.
8c6d74c6 10061
048addec
JD
10062 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10063 Doc fixes.
8c6d74c6 10064
048addec
JD
10065 * lisp.h: New misc type Lisp_Save_Value.
10066 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10067 (XSAVE_VALUE): New macro.
10068 (struct Lisp_Save_Value): New data type.
10069 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10070 (make_save_value): Declare.
8c6d74c6 10071
048addec 10072 * alloc.c (make_save_value): New function.
8c6d74c6 10073
048addec
JD
10074 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10075 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10076
048addec 100772003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10078
048addec 10079 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10080
048addec
JD
10081 * keyboard.c (command_loop_1): Call adjust_point_for_property
10082 in direct action cases for Qforward_char and Qbackward_char.
10083 Set already_adjusted so it won't be done twice.
8c6d74c6 10084
b6189c3b 100852002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10086
048addec
JD
10087 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10088 type definition of size_t.
8c609cff 10089
048addec 100902003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10091
048addec
JD
10092 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10093 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10094
048addec 100952002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10096
048addec
JD
10097 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10098 to default to t.
fa634a5e 10099
048addec 101002002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10101
048addec 10102 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10103
048addec 101042002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10105
048addec
JD
10106 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10107 allow building in a different directory than source. Uses some
10108 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10109
048addec 101102002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10111
048addec
JD
10112 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10113 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10114 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10115 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10116
048addec 101172002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10118
048addec
JD
10119 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10120 <scroll-down-aggressively>: Doc fix.
2155ecf3 10121
048addec
JD
10122 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10123 string as pane name, if there is one.
10124 (set_frame_menubar): Save menu_items_n_panes from each call to
10125 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10126
048addec
JD
10127 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10128 Don't try to make last line fully visible if it is past end of window.
61f1d295 10129
048addec 101302002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10131
048addec
JD
10132 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10133 (mac_menu_show): Add support for hierarchical popup menus.
10134 (add_menu_item): Remove indentation support.
10135 (fill_submenu, fill_menu): Create hierarchical menus
10136 instead of using indentation.
0b17a217 10137
048addec 101382002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10139
048addec
JD
10140 * xdisp.c (try_cursor_movement): Don't call try_window here.
10141 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10142
048addec 10143 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10144
048addec 101452002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10146
048addec
JD
10147 * macterm.c (XTread_socket): Call KeyTranslate for control and
10148 meta to deal correctly shifted non-alpha characters, like C-S-5
10149 being treated like C-%. Does not look for shift key to deal
10150 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10151
048addec 101522002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10153
048addec
JD
10154 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10155 If it is non-nil, run timers. Use an unwind-protect to requeue
10156 the events that were read ahead.
10157 (popup_get_selection_unwind): New subroutine.
10158 (popup_get_selection_queue): File-scope variable now holds that queue.
10159 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10160 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10161 Use an unwind-protect to pop down the dialog box.
10162 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10163
048addec
JD
10164 * xdisp.c (row_containing_pos): Change exit test using last_y.
10165 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10166
048addec
JD
10167 * lread.c (load_error_handler): New function.
10168 (Fload): Handle errors in Fsubstitute_in_file_name.
10169 Don't expect Fsignal to return.
f02cac82 10170
048addec
JD
10171 * eval.c: Errors and throws work right with interrupt blocking.
10172 (struct catchtag): New elt interrupt_input_blocked.
10173 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10174 (internal_catch, Fcondition_case, internal_condition_case)
10175 (internal_condition_case_1, internal_condition_case_2): Save it.
10176 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10177
048addec 10178 * editfns.c (Fformat): Add parens.
f02cac82 10179
048addec
JD
10180 * dired.c (file_name_completion): Fix that change.
10181 Delete special quit-handling code; just use QUIT.
f02cac82 10182
b6189c3b 101832002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10184
048addec
JD
10185 * dired.c (file_name_completion): Close directory on error
10186 just as in directory_files_internal.
1a590729 10187
048addec 101882002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10189
048addec
JD
10190 * window.c (Fset_window_configuration): Set old_point to correct
10191 value when new_current_buffer == current_buffer.
f02cac82 10192
048addec 101932002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10194
048addec
JD
10195 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10196 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10197 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10198
048addec
JD
10199 These changes were in part based upon suggestions made by Peter
10200 'Luna' Runestig [peter@runestig.com].
9785d95b 10201
048addec
JD
10202 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10203 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10204 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10205 global variables.
9785d95b 10206
048addec
JD
10207 * w32.c (globals_of_w32): New function. Used to initialize those
10208 global variables that must always be initialized on startup even
10209 when the global variable initialized is non zero. Its primary
10210 purpose at this time is to set the global variables
10211 g_b_init_is_windows_9x, g_b_init_open_process_token,
10212 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10213 g_b_init_get_sid_identifier_authority to 0 on startup.
10214 Called from main.
9785d95b 10215
048addec
JD
10216 * w32.c (is_windows_9x): Perform initialization only if
10217 g_b_init_is_windows_9x is equal to 0. On initialization set
10218 g_b_init_is_windows_9x equal to 1.
2308af15 10219
048addec
JD
10220 * w32.c (open_process_token): Perform initialization only if
10221 g_b_init_open_process_token is equal to 0. On initialization set
10222 g_b_init_open_process_token equal to 1.
2308af15 10223
048addec
JD
10224 * w32.c (get_token_information): Perform initialization only if
10225 g_b_init_get_token_information is equal to 0. On initialization
10226 set g_b_init_get_token_information equal to 1.
9785d95b 10227
048addec
JD
10228 * w32.c (lookup_account_sid): Perform initialization only if
10229 g_b_init_lookup_account_sid is equal to 0. On initialization
10230 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10231
048addec
JD
10232 * w32.c (get_sid_identifier_authority): Perform initialization
10233 only if g_b_init_get_sid_identifier_authority is equal to 0.
10234 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10235
f63fd14e 10236 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10237 those global variables that must always be initialized on startup
10238 even when the global variable initialized is non zero.
10239 Its primary purpose at this time is to initialize the global variable
10240 track_mouse_event_fn.
9785d95b 10241
a64387ee 10242 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10243 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10244
048addec 10245 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10246
f63fd14e 10247 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10248 initialize those global variables that must always be initialized
10249 on startup even when the global variable initialized is non zero.
10250 Its primary purpose at this time is to initialize the global
10251 variables get_menu_item_info and set_menu_item_info.
9785d95b 10252
048addec
JD
10253 * w32menu.c (initialize_frame_menubar): Remove initialization of
10254 get_menu_item_info and set_menu_item_info.
9785d95b 10255
048addec 10256 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10257
048addec
JD
10258 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10259 Declare them.
9785d95b 10260
048addec
JD
10261 * emacs.c (main): Call globals_of_w32 prior to calling
10262 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10263 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10264 is defined.
9785d95b 10265
048addec
JD
10266 * w32term.c (x_update_window_begin): Fix Windows API error
10267 detected by BoundsChecker. Test to determine if
10268 w32_system_caret_hwnd is NULL prior to attempting to use
10269 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10270
048addec
JD
10271 * w32term.c (x_update_window_end): Fix Windows API error
10272 detected by BoundsChecker. Test to determine if
10273 w32_system_caret_hwnd is NULL prior to attempting to use
10274 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10275
048addec 102762002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10277
048addec
JD
10278 * coding.c (coding_system_require_warning): New variable.
10279 (syms_of_coding): DEFVAR it.
b6da19ef 10280
048addec 10281 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10282
048addec
JD
10283 * fileio.c (choose_write_coding_system): Even if
10284 Vcoding_system_for_write is non-nil, if
10285 coding_system_require_warning is nonzero, call
10286 Vselect_safe_coding_system_function.
bfcf6dbe 10287
048addec 102882002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10289
048addec
JD
10290 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10291 (lisp): Add font-core.
2c568af5 10292
048addec 102932002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10294
048addec
JD
10295 * textprop.c (text_read_only): New arg `propval'.
10296 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10297 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10298
048addec 102992002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10300
048addec 10301 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10302
048addec 103032002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10304
048addec
JD
10305 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10306 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10307 Be more careful about when help_events are generated.
96720f09 10308
048addec 103092002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10310
048addec
JD
10311 * macterm.c (mac_check_for_quit_char): Correctly set the
10312 modifiers of the event to 0.
10313 * mac.c (sys_select): Duplicate rfds before calling select to
10314 ensure that rfds survive the while loop.
e5ae1c49 10315
048addec 103162002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10317
048addec
JD
10318 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10319 row_containing_pos returned NULL.
2eb46b2d 10320
048addec 103212002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10322
6bdb309a 10323 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10324 non-blocking.
6bdb309a 10325 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10326 the one given.
b11f1d8a 10327
048addec 103282002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10329
048addec 10330 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10331
048addec 103322002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10333
048addec
JD
10334 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10335 as the last thing.
a4ac5b17 10336
048addec 103372002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10338
048addec 10339 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10340
048addec 103412002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10342
048addec
JD
10343 * editfns.c (Fformat): Handle precision in string conversion
10344 specifiers like libc functions do (ie, print at most that many
10345 characters).
85cce843 10346
048addec 103472002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10348
048addec
JD
10349 * xdisp.c (row_containing_pos): Check more carefully
10350 whether charpos is really in the row before returning it.
0d4d26a7 10351
048addec 103522002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10353
048addec 10354 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10355
048addec
JD
10356 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10357 each stack frame. This may change as it could be time consuming.
0d4d26a7 10358
048addec
JD
10359 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10360 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10361 (mac_initialize): Add code to check for pressing of quit_char
048addec 10362 in the OS event queue.
b11f1d8a 10363
048addec
JD
10364 * mac.c (sys_select): Call mac_check_for_quit_char every second
10365 while blocking on select.
0d4d26a7 10366
048addec
JD
10367 * mac.c (sys_read): Use sys_select to test for input first
10368 before calling read, to allow C-g to break.
9252f7bc 10369
048addec 103702002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10371
048addec 10372 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10373
048addec 10374 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10375
048addec 10376 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10377
048addec
JD
10378 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10379 autoload.
9252f7bc 10380
048addec 10381 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10382
048addec 10383 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10384
048addec 103852002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10386
048addec 10387 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10388
048addec 103892002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10390
048addec 10391 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10392
048addec 10393 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10394
048addec 10395 * alloca.c: Don't use #error.
02d588e2 10396
048addec 103972002-12-03 Dave Love <fx@gnu.org>
02d588e2 10398
048addec
JD
10399 * buffer.c (Qucs_set_table_for_input): New.
10400 (Fget_buffer_create): Use it.
10401 (Qset_buffer_major_mode_hook): Deleted.
10402 (Fset_buffer_major_mode): Revert previous change.
10403 (init_buffer_once): Intern ucs-set-table-for-input.
10404 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10405 Add &Qucs_set_table_for_input.
451e2697 10406
048addec 104072002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10408
048addec
JD
10409 * callint.c (Fcall_interactively): Use next_event only if less
10410 than key_count.
72742a99 10411
048addec 104122002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10413
048addec
JD
10414 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10415 names to 255 characters.
72742a99 10416
048addec
JD
10417 * macterm.c (XTread_socket): If all frames have been collapsed,
10418 expand the first one before handling drag-and-drop events.
72742a99 10419
048addec
JD
10420 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10421 which is detected by autoconf.
40e6ff95 10422
048addec 104232002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10424
048addec
JD
10425 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10426 offset in two hints table to allow prebinding to be redone and
10427 allow the executable to be stripped.
c02138c6 10428
048addec 104292002-11-29 Dave Love <fx@gnu.org>
c02138c6 10430
048addec
JD
10431 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10432 already provided.
0e47bbf7 10433
048addec 104342002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10435
048addec
JD
10436 * xdisp.c (start_display): Check more intelligently for
10437 whether the line is continued.
10438 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10439
048addec 104402002-11-28 Dave Love <fx@gnu.org>
44129dcb 10441
048addec
JD
10442 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10443 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10444
048addec 104452002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10446
048addec
JD
10447 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10448 more descriptive error output from lread.c:Fload upon most require
10449 cycles during boostrapping.
1637fd2c 10450
048addec 104512002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10452
048addec
JD
10453 * fileio.c (Finsert_file_contents): Give a more appropriate error
10454 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10455
048addec
JD
10456 * dired.c (Ffile_attributes): Don't return negative file sizes for
10457 files bigger than 2Gb when off_t is 32 bit.
540c2788 10458
048addec 104592002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10460
048addec 10461 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10462
048addec
JD
10463 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10464 Test GETPGRP_VOID instead.
10465 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10466
048addec
JD
10467 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10468 Don't define.
10469 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10470
048addec 10471 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10472
048addec 104732002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10474
048addec
JD
10475 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10476 supported.
4042a81a 10477
048addec 104782002-11-25 Dave Love <fx@gnu.org>
4042a81a 10479
048addec 10480 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10481
048addec 10482 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10483
048addec 104842002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10485
048addec 10486 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10487
048addec 104882002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10489
048addec
JD
10490 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10491 determine the size of pointers alloced in unexed space instead
10492 of using possibly invalid emacs_zone pointers. This fixes the
10493 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10494
048addec 104952002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10496
048addec 10497 * search.c (Fstring_match): Doc fix.
c1ee53bc 10498
048addec
JD
10499 * callint.c (Fcall_interactively): If a command fails because
10500 `*' detects a read-only buffer, but RECORD_FLAG is set,
10501 record it anyway if the args don't actually do tty input.
5598c32e 10502
048addec 105032002-11-22 Dave Love <fx@gnu.org>
5598c32e 10504
048addec 10505 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10506
048addec
JD
10507 * keyboard.c (interrupt_signal): Provide forward declaration.
10508 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10509
048addec 10510 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10511
048addec 105122002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10513
048addec
JD
10514 * eval.c (interactive_p): Skip any number of bytecode
10515 and special form frames, in any order.
516eea8e 10516
048addec 105172002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10518
048addec
JD
10519 * w32fns.c (convert_mono_to_color_image): New function.
10520 (xbm_load, xbm_load_image): Use it when foreground or background
10521 is explicitly set.
04dbfa08 10522
048addec 105232002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10524
048addec 10525 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10526
048addec 105272002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10528
048addec
JD
10529 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10530 (XPutPixel): Swap blue and red.
10531 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10532 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10533 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10534 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10535
048addec 105362002-11-18 Dave Love <fx@gnu.org>
d824beee 10537
048addec 10538 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10539
048addec 10540 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10541
048addec 10542 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10543
048addec
JD
10544 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10545 malloc, realloc, calloc.
d824beee 10546
048addec
JD
10547 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10548 (bcmp): Don't define.
d824beee 10549
048addec 10550 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10551
048addec 10552 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10553
048addec 10554 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10555
048addec 10556 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10557
048addec
JD
10558 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10559 Don't include alloca.h.
d824beee 10560
048addec 10561 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10562
048addec 10563 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10564
048addec 10565 * process.c (_GNU_SOURCE): Don't define.
1998560a 10566
048addec 10567 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10568
048addec 105692002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10570
048addec 10571 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10572
048addec 105732002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10574
048addec
JD
10575 * dispextern.h (struct face): Add `overstrike' field.
10576 * xterm.c (x_draw_glyph_string_foreground)
10577 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10578 * xfaces.c (load_face_font): Set `face->overstrike' based on
10579 result from choose_face_font.
10580 (best_matching_font, choose_face_font): Add `needs_overstrike'
10581 argument, and use it to return whether overstriking is desirable
10582 for this face/font combo.
10583 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10584
048addec 105852002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10586
048addec
JD
10587 This change is my fix for the following entry in etc/PROBLEMS:
10588 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10589 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10590
048addec
JD
10591 * w32.c: Added wrapper functions around the win32 API functions
10592 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10593 GetSidIdentifierAuthority. These wrapper functions serve two
10594 purposes:
10595 1. They ensure that the wrapped function can never be called
10596 when Emacs is running on an operating system on which they are
10597 not supported (Microsoft Windows 95 / 98 / ME).
10598 2. They call the wrapped functions via function pointers rather
10599 than calling them directly. This avoids taking advantage of the
10600 undocumented fact that although these functions are not supported
10601 in the 9x branch of Microsoft Windows, the functions do exist in
10602 the version of advapi32.dll that is found in the 9x branch of
10603 Microsoft Windows.
f60ae425 10604
6bdb309a 10605 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10606 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10607 and GetSidIdentifierAuthority with calls to the newly added
10608 wrapper functions.
f60ae425 10609
048addec
JD
10610 * w32.h: Added extern declarations for the following functions:
10611 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10612 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10613
6bdb309a 10614 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10615 function pointer track_mouse_event_fn in the handler for the
10616 WM_SETFOCUS message.
3582b6a3 10617
6bdb309a 10618 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10619 reinitialize the function pointers set_menu_item_info and
10620 get_menu_item_info.
f60ae425 10621
048addec 106222002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10623
048addec
JD
10624 * sound.c: Added a partial implementation of play-sound-internal
10625 for Microsoft Windows. Added various #ifdef / #else / #endif
10626 code blocks to separate the code that will compile under
10627 Microsoft Windows from the code that is specific to Gnu/Linux.
10628 Moved several blocks of code around to make this separation of code
10629 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10630
048addec 10631 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10632
048addec
JD
10633 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10634 added support for play-sound-internal under Windows would be
10635 included in the build of Emacs.
517f42a0 10636
048addec 106372002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10638
048addec 10639 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10640
048addec 10641 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10642
048addec 106432002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10644
048addec
JD
10645 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10646 (adjust_point_for_property): Move out of display and invisible even if
10647 we were already inside before (in case a property was added while
10648 we weren't looking). Be more careful when handling invisible props.
10649 Skip invisible text as if it really wasn't there at all.
aab83f91 10650
048addec 106512002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10652
048addec
JD
10653 * w32term.c (x_draw_image_foreground)
10654 (w32_draw_image_foreground_1): Use standard copy and invert
10655 operations to draw images.
aab83f91 10656
048addec
JD
10657 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10658 depth of 1.
10659 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10660 (XPutPixel): Don't invert bits here.
a4478a76 10661
048addec 106622002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10663
048addec
JD
10664 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10665 (w32_draw_image_foreground_1): Handle image masks.
10666 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10667
048addec
JD
10668 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10669 (x_from_xcolors): Adjust RGB values for W32.
10670 (image_background, image_background_transparent)
10671 (postprocess_image, x_to_xcolors, x_disable_image)
10672 (x_build_heuristic_mask): Adapt for W32 and enable.
10673 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10674 (xbm_load): Remove unused variable.
03670a65 10675
048addec 106762002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10677
048addec 10678 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10679
048addec 106802002-11-14 Dave Love <fx@gnu.org>
59daa29a 10681
048addec 10682 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10683
048addec
JD
10684 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10685 * xmenu.c (unuse_menu_items, digest_single_submenu):
10686 * xfns.c (x_put_x_image):
10687 * xdisp.c (message2_nolog, set_message):
10688 * undo.c (record_point):
10689 * terminfo.c (tparam):
10690 * syntax.c (scan_sexps_forward):
10691 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10692 * composite.c (update_compositions):
10693 * cm.c (calccost, cmgoto):
10694 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10695
048addec 10696 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10697
048addec
JD
10698 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10699 Don't declare.
59daa29a 10700
048addec 10701 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10702
048addec
JD
10703 * fns.c (Fcopy_sequence): Doc fix.
10704 (Fmap_char_table): Cast `call2'.
3947677c 10705
048addec
JD
107062002-11-14 Francesco Potorti` <pot@gnu.org>
10707
10708 * s/sol2-8.h: New file.
10709
107102002-11-14 Kim F. Storm <storm@cua.dk>
10711
10712 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10713 dependency on `risky-local-variable' and the :propertize form.
10714
107152002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10716
10717 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10718
10719 * syntax.c (scan_sexps_forward): Undo last patch.
10720 Use a more obvious fix: check eob before updating the syntax table.
10721
107222002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10723
10724 * syntax.c (scan_sexps_forward): Update syntax table before reading
10725 a char rather than after so we don't update the table past eob.
10726
107272002-11-09 Dave Love <fx@gnu.org>
10728
10729 * buffer.c (Fset_buffer_major_mode): Fix last change.
10730
10731 * regex.c (regexec): Fix pmatch declaration.
10732
10733 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10734
10735 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10736 to self-inserting characters.
10737 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10738
10739 * coding.c (Vtranslation_table_for_input): New.
10740 (syms_of_coding): DEFVAR it.
10741
107422002-11-08 Juanma Barranquero <lektu@terra.es>
10743
10744 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10745 window.
10746
107472002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10748
6bdb309a 10749 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10750 cp, and i.
10751
107522002-11-06 Dave Love <fx@gnu.org>
10753
10754 * buffer.c (Qset_buffer_major_mode_hook): New.
10755 (Fset_buffer_major_mode): Use it.
10756
107572002-11-06 Richard M. Stallman <rms@gnu.org>
10758
10759 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10760 and stop_polling.
10761
10762 * process.c (wait_reading_process_input):
10763 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10764 Avoid initialization for auto Lisp_Object var.
10765
10766 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10767
10768 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10769
107702002-11-05 Richard M. Stallman <rms@gnu.org>
10771
10772 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10773
10774 * callint.c (Fcall_interactively): New local filter_specs.
10775 (Fcall_interactively): Check for progn as well as let.
10776 Add a gcpro.
10777 (Qprogn): New variable.
10778 (syms_of_callint): Staticpro and init Qprogn.
10779
107802002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10781
10782 * lread.c (Feval_buffer): Doc fix.
10783
107842002-11-04 Dave Love <fx@gnu.org>
10785
10786 * keyboard.c (read_char): Always translate iff
10787 Vkeyboard_translate_table is a char table and c is valid.
10788
10789 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10790 and fix C types.
10791
107922002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10793
10794 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10795
10796 * editfns.c (get_pos_property): Don't hardcode Qfield.
10797
10798 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10799 overlays. Also handle `invisible' prop.
10800
108012002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10802
10803 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10804 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10805
108062002-11-01 Andreas Schwab <schwab@suse.de>
10807
10808 * editfns.c (Fmessage): Revert last change to properly handle %%.
10809
108102002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10811
10812 * xmenu.c (unuse_menu_items): New fun.
10813 (menu_items_inuse): New var.
10814 (syms_of_xmenu): Initialize it.
10815 (init_menu_items): Use it to detect re-entrance.
10816 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10817 (Fx_popup_menu): Remove spurious XSETFRAME.
10818
10819 * editfns.c (find_field): Make an exception for nil fields.
10820
108212002-11-01 Dave Love <fx@gnu.org>
10822
10823 * m/gec63.h: Deleted.
10824
108252002-10-31 Dave Love <fx@gnu.org>
10826
10827 * xterm.c (XTread_socket): Fix last change.
10828 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10829
108302002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10831
10832 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10833
108342002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10835
10836 * editfns.c (overlays_around, get_pos_property): New funs.
10837 (find_field): Use them.
10838 Also be careful not to modify POS before its last use.
10839 (Fmessage): Don't Fformat if there's nothing to format.
10840
108412002-10-30 Dave Love <fx@gnu.org>
10842
10843 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10844 [HAVE_PTY_H]; Include pty.h.
10845
10846 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10847
10848 * xterm.c (Qeql): Declare.
10849 (Vx_keysym_table): New.
10850 (syms_of_xterm): Initialize it.
10851 (XTread_socket): Use it. Deal with ASCII keysyms.
10852 (XSetIMValues) [HAVE_X11R6]: Prototype.
10853
10854 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10855 (lispy_kana_keys): Comment out.
10856 (make_lispy_event) [XK_kana_A]: Comment out.
10857 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10858 Fix sprintf call.
10859
10860 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10861 regexp.h change).
10862 (TERMINFO, LIBS_TERMCAP): Define.
10863
10864 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10865 (bcmp): Define conditional on HAVE_BCMP.
10866 (NO_SIOCTL_H): Don't define.
10867 (TIOCSIGSEND): Don't make conditional on IRIX6.
10868
10869 * s/sol2-5.h: Don't include strings.h.
10870 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10871
10872 * s/irix6-0.h (IRIX6): Don't define.
10873 (bcopy, bcmp, bzero): Don't undef.
10874
10875 * s/irix6-5.h: Don't include strings.h.
10876 (IRIX6): Don't define.
10877 (bcopy, bcmp, bzero): Don't undef.
10878
10879 * syntax.c (Fforward_comment): Doc fix.
10880
108812002-10-29 Kim F. Storm <storm@cua.dk>
10882
10883 * process.c (Fsignal_process): Allow PROCESS to be specified by
10884 name in addition to pid (as integer or string).
10885
108862002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10887
10888 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10889 environments.
10890
108912002-10-27 Kim F. Storm <storm@cua.dk>
10892
10893 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10894
10895 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10896
10897 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10898
10899 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10900
109012002-10-26 Richard M. Stallman <rms@gnu.org>
10902
10903 * editfns.c (Fformat): Detect invalid format letters for floats.
10904
109052002-10-25 Kenichi Handa <handa@m17n.org>
10906
10907 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10908 (x_set_title): Likewise.
10909
109102002-10-25 Juanma Barranquero <lektu@terra.es>
10911
10912 * macgui.h:
10913 * w32gui.h: Remove definition of XColor.
10914
10915 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10916
109172002-10-24 Kim F. Storm <storm@cua.dk>
10918
10919 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10920 Callers changed (supply dummy arg).
10921
10922 * lisp.h (get_window_cursor_type): Update prototype.
10923
10924 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10925 get_window_cursor_type to track system caret.
10926
109272002-10-24 Kim F. Storm <storm@cua.dk>
10928
10929 * process.c (Fformat_network_address): New function.
10930 (syms_of_process): Defsubr it.
10931 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10932 service/host is not set; before Emacs would crash in that case.
048addec
JD
10933 (Fmake_network_process): Don't use Ffind_operation_coding_system
10934 to setup coding system if host or service is not set.
10935
109362002-10-23 Juanma Barranquero <lektu@terra.es>
10937
10938 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10939
10940 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10941 COLORREF.
10942
10943 * macgui.h:
10944 * w32gui.h: Add definition of XColor.
10945
10946 * macfns.c:
10947 * w32fns.c:
10948 * xfaces.c: Remove definition of XColor.
10949
109502002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10951
10952 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10953
10954 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10955 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10956 window if it is dedicated.
10957 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10958 (Vspecial_display_function): Update docstring.
10959
10960 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10961 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10962 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10963
109642002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10965
10966 * casefiddle.c (casify_region): Don't treat a prefix char as part
10967 of a word when at the beginning.
10968
109692002-10-17 Juanma Barranquero <lektu@terra.es>
10970
10971 * lread.c (syms_of_lread): Fix typos.
10972
109732002-10-17 Dave Love <fx@gnu.org>
10974
10975 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10976
109772002-10-16 Richard M. Stallman <rms@gnu.org>
10978
10979 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10980
109812002-10-14 Juanma Barranquero <lektu@terra.es>
10982
10983 * w16select.c (syms_of_win16select): Fix docstring for
10984 `selection-coding-system'.
10985
10986 * w32select.c (syms_of_w32select): Likewise.
10987
109882002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10989
10990 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10991 a backslash-quoted char.
10992 (scan_lists, scan_sexps_forward): Pacify the compiler.
10993
109942002-10-13 Richard M. Stallman <rms@gnu.org>
10995
10996 * window.c (window_scroll): Set immediate_quit.
10997
10998 * print.c (print): When backquote form is the car of a list,
10999 output in old style. Use old_backquote_output to output all
11000 comma forms inside it in old style too.
11001
11002 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11003
110042002-10-11 Markus Rost <rost@math.ohio-state.edu>
11005
11006 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11007 batch mode).
11008
11009 * lread.c (Fload): Doc fix (load-suffixes).
11010
110112002-10-10 Steven Tamm <steventamm@mac.com>
11012
11013 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11014 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11015 Also switch the default to Qnil from Qt.
11016
110172002-10-08 Kenichi Handa <handa@m17n.org>
11018
11019 * coding.c (code_convert_region): When we need more GAP for
11020 conversion, pay attention to the case that coding->produced is not
11021 greater than coding->consumed.
11022
110232002-10-07 Richard M. Stallman <rms@gnu.org>
11024
11025 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11026
110272002-10-06 Andrew Choi <akochoi@shaw.ca>
11028
11029 * macmenu.c (mac_menu_show): Add j to count menu items; match
11030 menu_item_selection to it to find selected item.
11031
110322002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11033
11034 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11035 cases. The correct fix is to pass ReparentNotify to Xt.
11036 The shell widget interprets ConfigureNotify differently depending
11037 on if it has been reparented or not.
11038
110392002-10-05 Markus Rost <rost@math.ohio-state.edu>
11040
11041 * editfns.c (Fformat_time_string): Doc fix.
11042
110432002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11044
11045 * fns.c (Flength): Doc fix.
11046
110472002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11048
11049 * keyboard.c (keyremap): New struct.
11050 (read_key_sequence): Use it: globally replace keytran_foo with
11051 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11052 keytran_next and fkey_next to just `next'.
11053
110542002-10-04 Steven Tamm <steventamm@mac.com>
11055
11056 * macterm.c (keycode_to_xkeysym_table): Change return to be
11057 treated like an X keysym.
11058
110592002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11060
11061 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11062 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11063 This is to also handle x/y changes that occur because of a resize.
11064
110652002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11066
11067 * frame.c (Vdelete_frame_functions): New variable.
11068 (syms_of_frame): Initialize and defvar it.
11069 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11070 it when frame's `tooltip' parameter is non-nil.
11071
11072 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11073
11074 * w32fns.c (x_create_tip_frame): Likewise.
11075
11076 * macfns.c (x_create_tip_frame): Likewise.
11077
110782002-09-30 Kenichi Handa <handa@m17n.org>
11079
11080 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11081 -1 before calling ccl_driver.
11082
11083 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11084 Only when it is non-nil, handle composition sequence.
11085 (setup_coding_system) <0>: Don't force composition handling.
11086
11087 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11088
110892002-09-29 Richard M. Stallman <rms@gnu.org>
11090
11091 * search.c (Freplace_match): Adjust match data for the substitution
11092 just made in the buffer.
11093
11094 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11095 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11096
110972002-09-27 Richard M. Stallman <rms@gnu.org>
11098
11099 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11100 (read_char): Use them. Do all exits thru the end of the function.
11101
111022002-09-27 Kenichi Handa <handa@etl.go.jp>
11103
11104 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11105 is nil.
11106
111072002-09-26 Richard M. Stallman <rms@gnu.org>
11108
11109 * regex.h (__restrict_arr): Don't define if already defined.
11110
11111 * coding.c (run_pre_post_conversion_on_str):
11112 Save and restore Vdeactivate_mark.
11113
111142002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11115
11116 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11117
111182002-09-26 Kenichi Handa <handa@etl.go.jp>
11119
11120 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11121 nonzero, try face's family at first. Otherwise try FAMILY at first.
11122 (choose_face_font): If C is a single byte char or latin-1, call
11123 try_font_list with PREFER_FACE_FAMILY 1.
11124
111252002-09-21 Richard M. Stallman <rms@gnu.org>
11126
11127 * window.c (select_window_1): Don't select frame.
11128 Set frame's selected window only when frame itself is selected.
11129 (Fselect_window): Doc fix.
11130
111312002-09-18 Kim F. Storm <storm@cua.dk>
11132
11133 * process.c (make-network-process): Doc fix (there is no
11134 network-server-log-function hook).
11135
111362002-09-18 Richard M. Stallman <rms@gnu.org>
11137
11138 * print.c (print): Clear out the unused parts of Vprint_number_table.
11139 (syms_of_print): Doc fix for `print-number-table'.
11140
11141 * unexelf.c (unexec): Undo previous change.
11142
111432002-09-17 Andreas Schwab <schwab@suse.de>
11144
11145 * m/alpha.h [LINUX]: Don't define DATA_START.
11146
111472002-09-16 Dave Love <fx@gnu.org>
11148
11149 * unexelf.c (unexec): Deal with .got, reinstating change from
11150 25-08-1999.
11151
111522002-09-13 Richard M. Stallman <rms@gnu.org>
11153
11154 * s/sol2-6.h (UNEXEC): Comment out definition.
11155
11156 * unexsol.c (unexec): Don't downcase first letter of error msg.
11157
11158 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11159
111602002-09-12 Markus Rost <rost@math.ohio-state.edu>
11161
11162 * unexsol.c: Include buffer.h, charset.h, coding.h.
11163
111642002-09-11 Richard M. Stallman <rms@gnu.org>
11165
11166 * unexsol.c: Don't use report_file_error; do it by hand
11167 using dlerror.
11168
11169 * process.c (wait_reading_process_input, both versions):
11170 Before calling turn_on_atimers, call stop_polling.
11171
11172 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11173
11174 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11175 we go to too_near_end, call clear_glyph_matrix.
11176 (redisplay_window): After make_cursor_line_fully_visible,
11177 call clear_glyph_matrix and bypass `goto done'.
11178
11179 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11180 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11181
111822002-09-10 Richard M. Stallman <rms@gnu.org>
11183
11184 * fileio.c (Fdo_auto_save): Catch error making directory.
11185 Only call push_message if we need to.
11186 At the same time, make an unwind-protect to pop it.
11187 Rename local message_p to old_message_p.
11188 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11189 (do_auto_save_unwind): Don't call pop_message.
11190
11191 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11192
11193 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11194
11195 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11196
11197 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11198
111992002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11200
11201 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11202 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11203 (re_match_2_internal): Be more careful with infinite loops.
11204
112052002-09-10 Kim F. Storm <storm@cua.dk>
11206
11207 * macros.c (end_kbd_macro): New function.
11208 (Fend_kbd_macro): Use it.
11209
11210 * macros.h (end_kbd_macro): Declare extern.
11211
11212 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11213 end and save it instead of discarding it.
11214
112152002-09-09 Markus Rost <rost@math.ohio-state.edu>
11216
11217 * s/sol2-6.h: Fix typo. Add comment.
11218
112192002-09-09 Richard M. Stallman <rms@gnu.org>
11220
11221 * regex.c (regnum_t): Use signed int, not unsigned int.
11222
11223 * s/sol2-6.h: New file.
11224
11225 * s/sol2-5.h (UNEXEC): Definition deleted.
11226
112272002-09-08 Kim F. Storm <storm@cua.dk>
11228
11229 * macros.c (executing_macro_index): Change type to EMACS_INT.
11230 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11231
11232 * macros.h (executing_macro_index): Change type to EMACS_INT.
11233
112342002-09-06 Richard M. Stallman <rms@gnu.org>
11235
11236 * casetab.c (set_case_table): Make canon table point to eqv table.
11237
112382002-09-06 Juanma Barranquero <lektu@terra.es>
11239
11240 * coding.c (syms_of_coding): Fix spacing.
11241
11242 * composite.c (Fcompose_region_internal)
11243 (Fcompose_string_internal): Likewise.
11244
11245 * data.c (Flsh): Likewise.
11246
11247 * fontset.c (Fset_fontset_font): Likewise.
11248
11249 * macfns.c (Fx_server_max_request_size): Likewise.
11250
11251 * w16select.c (syms_of_win16select): Likewise.
11252
11253 * w32select.c (syms_of_w32select): Likewise.
11254
11255 * xselect.c (syms_of_xselect): Likewise.
11256
112572002-09-05 Richard M. Stallman <rms@gnu.org>
11258
11259 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11260 call EXTEND_RANGE_TABLE and return a proper value.
11261 (set_image_of_range): Don't call set_image_of_range_1
11262 if no TRANSLATE or if range includes all of Latin-1.
11263 Only call it for the Latin-1 part of the range.
11264 For other cases, make two separate ranges,
11265 one for the original specified characters and one for
11266 their case-conversions.
11267
112682002-09-04 Richard M. Stallman <rms@gnu.org>
11269
11270 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11271
11272 * window.c (displayed_window_lines): Correct for one-off bug
11273 in HEIGHT on non-window displays.
11274
11275 * regex.c (set_image_of_range_1): New function.
11276 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11277 Return a value to indicate running out of memory.
11278 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11279 (extend_range_table_work_area): New subroutine.
11280 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11281 Different calling conventions, and used from set_image_of_range{,_1}.
11282 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11283
112842002-09-04 Juanma Barranquero <lektu@terra.es>
11285
11286 * makefile.w32-in: All dependencies updated.
11287
112882002-09-01 Richard M. Stallman <rms@gnu.org>
11289
11290 * unexsol.c: New file.
11291
11292 * xfns.c (Qbox): Declare external, don't define.
11293
11294 * xdisp.c (redisplay_window) <force-start case>:
11295 If point is on semi-visible last line, reposition
11296 it at previous line.
11297
11298 * alloc.c (display_malloc_warning): Use display-warning.
11299 (malloc_warning_1): Function deleted.
11300
11301 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11302
11303 * lread.c (read1): Handle #! by skipping the line.
11304
113052002-08-31 Richard M. Stallman <rms@gnu.org>
11306
11307 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11308 Don't include LDFLAGS.
11309 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11310
113112002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11312
11313 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11314 member of x_display_info unless we compile for some window system.
11315
113162002-08-31 Kim F. Storm <storm@cua.dk>
11317
11318 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11319 (get_window_cursor_type): Don't use them.
11320 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11321
113222002-08-30 Kenichi Handa <handa@etl.go.jp>
11323
11324 * xdisp.c (get_next_display_element): Fix previous change.
11325
113262002-08-30 Andrew Choi <akochoi@shaw.ca>
11327
11328 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11329 (expose_window): Use it to fix the display of overlapping
11330 rows (merge code from xterm.c).
11331
11332 * macfns.c (Qbox): Add extern declaration.
11333
113342002-08-30 Juanma Barranquero <lektu@terra.es>
11335
11336 * w32fns.c (Qbox): Make extern.
11337 (syms_of_w32fns): Remove initialization of Qbox.
11338
113392002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11340
11341 * xfns.c (Fx_open_connection): Fix error message.
11342
113432002-08-30 Kim F. Storm <storm@cua.dk>
11344
11345 The following changes consolidates the handling of the cursor
11346 type in xdisp.c, moving duplicate code and functionality from
11347 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11348
11349 * frame.h (enum text_cursor_kinds): Consolidated here.
11350 Added DEFAULT_CURSOR value.
11351 (struct frame) <desired_cursor, cursor_width>
11352 <blink_off_cursor, blink_off_cursor_width>: New fields.
11353 Consolidated from output_x, output_w32 and output_mac structs.
11354 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11355 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11356
11357 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11358 Variables consolidated here.
11359 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11360 (Vcursor_in_non_selected_windows): Renamed from
11361 cursor_in_non_selected_windows and changed to Lisp_Object.
11362 (syms_of_xdisp): Define and staticpro new and moved variables.
11363 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11364 consolidated here. Recognize Qhollow setting.
11365 (set_frame_cursor_types): New function to set frame cursor types
11366 based on the frame parameters.
11367 (get_window_cursor_type): New function to calculate new cursor
11368 type and width for the specified window. Based on duplicated
11369 code consolidated here.
11370 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11371 check buffer-local alternate-cursor-type and blink-cursor-alist
11372 before using built-in blink off methods.
11373
11374 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11375
11376 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11377 (get_specified_cursor_type, get_window_cursor_type)
11378 (set_frame_cursor_types): Added prototypes.
11379
11380 * macfns.c (x_specified_cursor_type): Removed.
11381 (x_set_cursor_type): Use set_frame_cursor_types.
11382 (Qbar, Qbox): Removed.
11383 (syms_of_macfns): Don't intern or staticpro them.
11384
11385 * macterm.c (x_specified_cursor_type): Remove prototype.
11386 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11387 (x_display_and_set_cursor): Use get_window_cursor_type.
11388 Remove unused local variables cursor_non_selected, active_cursor.
11389 Redraw cursor if hbar cursor width changes.
11390 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11391
11392 * macterm.h (enum text_cursor_kinds): Removed.
11393 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11394 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11395 (FRAME_DESIRED_CURSOR): Macro removed.
11396
11397 * w32fns.c (Vblink_cursor_alist): Removed.
11398 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11399 (syms_of_w32fns): Don't intern, staticpro, or define them.
11400 (x_specified_cursor_type): Removed.
11401 (x_set_cursor_type): Use set_frame_cursor_types.
11402
11403 * w32term.c (x_specified_cursor_type): Remove prototype.
11404 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11405 (x_display_and_set_cursor): Use get_window_cursor_type.
11406 Remove unused local variables cursor_off_state.
11407 Redraw cursor if hbar cursor width changes.
11408 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11409
11410 * w32term.h (enum text_cursor_kinds): Removed.
11411 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11412 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11413 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11414 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11415 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11416 w32_highlight_frame.
11417
11418 * xfns.c (Vblink_cursor_alist): Removed.
11419 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11420 (syms_of_xfns): Don't intern, staticpro, or define them.
11421 (x_specified_cursor_type): Removed.
11422 (x_set_cursor_type): Use set_frame_cursor_types.
11423
11424 * xterm.c (x_specified_cursor_type): Remove prototype.
11425 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11426 (x_display_and_set_cursor): Use get_window_cursor_type.
11427 Remove unused local variables cursor_off_state.
11428 Redraw cursor if hbar cursor width changes.
11429
11430 * xterm.h (enum text_cursor_kinds): Removed.
11431 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11432 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11433 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11434 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11435 (x_specified_cursor_type): Remove prototype.
11436
114372002-08-28 Richard M. Stallman <rms@gnu.org>
11438
11439 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11440 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11441 (Vblink_cursor_alist): New variable.
11442 (syms_of_w32fns): Initialize and defvar it.
11443 (x_specified_cursor_type): Recognize Qbox for filled box.
11444 Exceptions are hollow boxes.
11445 (Qbox, Qhollow): New variables.
11446 (syms_of_w32fns): Initialize and staticpro them.
11447
11448 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11449 New macros.
11450 (struct w32_output): New fields blink_off_cursor,
11451 blink_off_cursor_width.
11452 (FRAME_CURSOR_WIDTH): New macro.
11453
11454 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11455 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11456
11457 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11458 for bar cursor.
11459
11460 * w32term.c (expose_overlaps): New function.
11461 (expose_window): Use it to fix the display of overlapping rows.
11462
114632002-08-28 Simon Josefsson <jas@extundo.com>
11464
11465 * xfns.c (Fx_open_connection): Improve help when X connection
11466 fails, xhost is insecure and xauth is better.
11467
114682002-08-28 Juanma Barranquero <lektu@terra.es>
11469
11470 * makefile.w32-in: Add missing dependencies on w32term.h and
11471 composite.h.
11472
11473 * emacs.c (USAGE1): Add missing newline.
11474
114752002-08-27 Andrew Choi <akochoi@shaw.ca>
11476
11477 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11478
114792002-08-27 Richard M. Stallman <rms@gnu.org>
11480
11481 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11482 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11483 (Vblink_cursor_alist): New variable.
11484 (syms_of_xfns): Initialize and defvar it.
11485 (x_specified_cursor_type): Recognize Qbox for filled box.
11486 Exceptions are hollow boxes.
11487 (Qbox, Qhollow): New variables.
11488 (syms_of_xfns): Initialize and staticpro them.
11489
11490 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11491 New macros.
11492 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11493
11494 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11495 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11496
11497 * emacs.c (main): Handle --script.
11498 (USAGE1): Mention --script.
11499 (standard_args): Define sort order for --script.
11500
115012002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11502
11503 * xdisp.c (redisplay_updating_p): Variable removed.
11504 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11505 New variables.
11506 (init_iterator): Don't free realized faces if
11507 inhibit_free_realized_faces is set.
11508 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11509 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11510 initialize Qinhibit_free_realized_faces.
11511
11512 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11513 when iterator is adding glyphs to a glyph matrix.
11514
115152002-08-27 Kenichi Handa <handa@etl.go.jp>
11516
11517 * xdisp.c (get_next_display_element): In unibyte case, don't use
11518 octal form for such eight-bit characters that can be converted to
11519 multibyte char.
11520
115212002-08-26 Kim F. Storm <storm@cua.dk>
11522
b6189c3b
KS
11523 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11524 foreground and background colors. From Joe Buehler.
048addec
JD
11525
115262002-08-26 Miles Bader <miles@gnu.org>
11527
11528 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11529
115302002-08-25 Andrew Choi <akochoi@shaw.ca>
11531
11532 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11533 defined instead of MAC_OSX.
11534
11535 * s/darwin.h (select): Define select to sys_select only if
11536 HAVE_CARBON is defined.
11537 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11538 (DONT_REOPEN_PTY): #def it.
11539
11540 * macterm.c (XTread_socket): Remove code to call
11541 SendEventToEventTarget for keys with command modifiers when
11542 mac_command_key_is_meta is nil.
11543
115442002-08-24 Andreas Schwab <schwab@suse.de>
11545
11546 * eval.c (Fdefvar): Fix last change.
11547
115482002-08-23 Richard M. Stallman <rms@gnu.org>
11549
11550 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11551 Record variables in load history as (defvar . VAR).
11552 (Fdefvar): Don't record in load history if no initial value.
11553 (Qdefvar): New variable.
11554 (syms_of_eval): Init and staticpro it.
11555
11556 * lread.c (syms_of_lread): Doc fix.
11557 (build_load_history): Use Fmember to see if a definition
11558 is already in the Vload_history element.
11559
11560 * process.c (Fstart_process): Remove /: from program name.
11561
11562 * emacs.c (decode_env_path): Don't add /: if file name handler
11563 has a `safe-magic' property.
11564
11565 * callproc.c (Fcall_process): Remove /: from program name.
11566
115672002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11568
11569 * regex.c (PATFETCH): Remove the translating fetch.
11570 (PATFETCH_RAW): Rename to PATFETCH.
11571 (set_image_of_range): New fun.
11572 (SET_RANGE_TABLE_WORK_AREA): Use it.
11573 (regex_compile): Don't translate the pattern chars so eagerly.
11574 Only do it when inserting an `exactn' bytecode or when handling
11575 a char-range.
11576 (mutually_exclusive_p): Avoid empty statement.
11577
115782002-08-22 Kim F. Storm <storm@cua.dk>
11579
11580 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11581 end up on a partially visible line; this reverts a specific part
11582 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11583 display error which has been reported several times now.
11584 However it introduces the problem that changes was supposed to fix.
11585 See my comments in the source if you want to debug this further.
11586
115872002-08-20 Kenichi Handa <handa@etl.go.jp>
11588
11589 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11590
115912002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11592
11593 * msdos.c (croak): Add `void' to definition.
11594
c1380aa6 11595 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11596 Don't define them, they are defined in msdos.c.
11597
11598 * mem-limits.h [MSDOS]: Declare etext.
11599
11600 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11601 `const' since CORRECT_DIR_SEPS modifies its target.
11602
116032002-08-19 Kim F. Storm <storm@cua.dk>
11604
2fb0ce67 11605 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11606 KEEP-RECORD to avoid clearing lossage when we just want to clear
11607 the current key sequence (kmacro needs this).
11608
116092002-08-19 Kenichi Handa <handa@localhost>
11610
11611 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11612
11613 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11614 cons, return Qnil.
11615
116162002-08-17 Richard M. Stallman <rms@gnu.org>
11617
11618 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11619
11620 * sysdep.c [!VMS]: Include sys/files.h.
11621
11622 * editfns.c (save_restriction_restore): Defend from unchained marker.
11623
11624 * buffer.c (overlays_at): Handle extending vec uniformly.
11625 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11626
116272002-08-15 Andrew Choi <akochoi@shaw.ca>
11628
11629 * mac.c (init_mac_osx_environment): New function.
11630
11631 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11632
116332002-08-14 Kim F. Storm <storm@cua.dk>
11634
11635 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11636 executing macro before appending to it (when used from Lisp).
11637 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11638 which is called prior to each iteration of macro (for kmacro.el).
11639 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11640
11641 * lisp.h (Fexecute_kbd_macro): Update prototype.
11642
11643 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11644
116452002-08-14 Kenichi Handa <handa@etl.go.jp>
11646
11647 * xselect.c (QUTF8_STRING): New variable.
11648 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11649 (x_atom_to_symbol): Likewise.
11650 (x_get_local_selection): New argument local_request. If it is
11651 nonzero, call handler_fn with the second arg nil.
11652 (x_handle_selection_request): Call x_get_local_selection with
11653 local_request 0.
11654 (lisp_data_to_selection_data): Don't encode the string here.
11655 (Fx_get_selection_internal): Call x_get_local_selection with
11656 local_request 1.
11657 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11658
11659 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11660
11661 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11662
116632002-08-13 Richard M. Stallman <rms@gnu.org>
11664
11665 * minibuf.c (Fminibufferp): New function.
11666 (syms_of_minibuf): Defsubr it.
11667 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11668
116692002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11670
11671 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11672
116732002-08-12 Richard M. Stallman <rms@gnu.org>
11674
11675 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11676 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11677 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11678 already.
11679
11680 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11681
116822002-08-11 Andrew Choi <akochoi@shaw.ca>
11683
11684 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11685 (Vmac_pass_command_to_system): New variable.
11686 (Vmac_pass_control_to_system): New variable.
11687 (do_mouse_moved): Check wp with is_emacs_window.
11688 (XTread_socket): Check window_ptr with is_emacs_window.
11689 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11690 events back to Mac Toolbox for processing, depending on values of
11691 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11692 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11693 Vmac_pass_control_to_system.
11694
116952002-08-10 Kenichi Handa <handa@etl.go.jp>
11696
11697 * coding.c (unencodable_char_position): New function.
11698 (Funencodable_char_position): New function.
11699 (syms_of_coding): Defsubr Funencodable_char_position.
11700
117012002-08-10 Andrew Choi <akochoi@shaw.ca>
11702
11703 * mac.c (sys_select) [MAC_OSX]: New function.
11704
11705 * macterm.c (MakeMeTheFrontProcess): New function.
11706 (mac_initialize): Call MakeMeTheFrontProcess.
11707
11708 * s/darwin.h: Define select to sys_select.
11709
117102002-08-09 Richard M. Stallman <rms@gnu.org>
11711
11712 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11713
117142002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11715
11716 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11717 end of the buffer.
11718
117192002-08-08 Ken Raeburn <raeburn@mit.edu>
11720
11721 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11722
11723 * puresize.h (BASE_PURESIZE): Increase to 910000.
11724
117252002-08-08 Kenichi Handa <handa@etl.go.jp>
11726
11727 * coding.c (Ffind_operation_coding_system): For write-region, if
11728 VISIT is a filename, make it the target.
11729
117302002-08-07 Richard M. Stallman <rms@gnu.org>
11731
11732 * alloc.c (mark_object): Detect long lists for debugging.
11733 (mark_object_loop_halt): New variable.
11734
11735 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11736
11737 * data.c (Fmake_variable_frame_local): Doc fix.
11738
117392002-08-01 David Ponce <david@dponce.com>
11740
11741 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11742 (malloc_widget_value, free_widget_value)
11743 (w32_free_submenu_strings): Use them.
11744
11745 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11746 (push_menu_pane, push_menu_item, single_keymap_panes)
11747 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11748 (single_submenu, set_frame_menubar)
11749 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11750
11751 (Fx_popup_menu): Don't show pop up menu until preceding one is
11752 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11753
11754 * w32menu.c: Changes adapted from xmenu.c
11755 (set_frame_menubar): First parse all submenus,
11756 then make widget_value trees from them.
11757 Don't allocate any widget_value objects
11758 until we are done with the parsing.
11759 (parse_single_submenu): New function.
11760 (digest_single_submenu): New function.
11761 (single_submenu): Function deleted, replaced by those two.
11762
117632002-08-04 Andrew Choi <akochoi@shaw.ca>
11764
11765 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11766 returns a valid window pointer before proceeding for keyDown and
11767 autoKey events.
11768
117692002-08-03 Andrew Choi <akochoi@shaw.ca>
11770
11771 * macterm.c (USE_CARBON_EVENTS): New macro.
11772 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11773 (x_iconify_frame): Call CollapseWindow.
11774 (Vmac_reverse_ctrl_meta): New variable.
11775 (Vmac_wheel_button_is_mouse_2): New variable.
11776 (init_mac_drag_n_drop): New function.
11777 (mac_do_receive_drag): New function.
11778 (mac_handle_service_event): New function.
11779 (init_service_handler): New function.
11780 (mac_to_emacs_modifiers): New function.
11781 (mac_event_to_emacs_modifiers): New function.
11782 (mac_get_mouse_btn): New function.
11783 (mac_convert_event_ref): New function.
11784 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11785 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11786 mac_get_mouse_btn.
11787 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11788
11789 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11790 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11791 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11792 TOOL_BAR_EVENT for MAC_OS as well.
11793 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11794 as for WINDOWS_NT.
11795 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11796
11797 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11798
117992002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11800
11801 * xdisp.c (forward_to_next_line_start): Fix a condition that
11802 lead to a newline being skipped.
11803
118042002-08-02 Andrew Choi <akochoi@shaw.ca>
11805
11806 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11807
118082002-08-01 Richard M. Stallman <rms@gnu.org>
11809
11810 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11811
118122002-07-31 Andrew Choi <akochoi@shaw.ca>
11813
11814 * macfns.c: #undef init_process before #define-ing it.
11815
11816 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11817 HAVE_CARBON is defined.
11818
118192002-07-31 Richard M. Stallman <rms@gnu.org>
11820
11821 * xmenu.c (set_frame_menubar): First parse all submenus,
11822 then make widget_value trees from them.
11823 Don't allocate any widget_value objects
11824 until we are done with the parsing.
11825 (parse_single_submenu): New function.
11826 (digest_single_submenu): New function.
11827 (single_submenu): Function deleted, replaced by those two.
11828
118292002-07-30 Juanma Barranquero <lektu@terra.es>
11830
11831 * w32proc.c (syms_of_ntproc): Fix docstring of
11832 `w32-get-true-file-attributes'.
11833
118342002-07-28 Richard M. Stallman <rms@gnu.org>
11835
11836 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11837 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11838
11839 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11840
11841 * keyboard.c (make_lispy_event):
11842 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11843 Explicitly clear up_modifier in event->modifiers.
11844
118452002-07-27 Richard M. Stallman <rms@gnu.org>
11846
11847 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11848
11849 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11850 for bar cursor.
11851
118522002-07-26 Kenichi Handa <handa@etl.go.jp>
11853
11854 * coding.c (detect_coding_iso2022): While checking a byte sequence
11855 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11856 it in the normal loop.
11857
118582002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11859
11860 * xterm.c (expose_overlaps): New function.
11861 (expose_window): Use it to fix the display of overlapping rows.
11862
11863 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11864
118652002-07-23 Ken Raeburn <raeburn@gnu.org>
11866
11867 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11868 since it only depends on XUINT.
11869
11870 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11871 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11872 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11873 Macros deleted.
3947677c 11874
77d1daf2
AS
11875 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11876 its value over other approaches.
11877 * sysdep.c (start_of_data): Don't define the function if a macro
11878 form has been defined.
8a8e19a3 11879
048addec
JD
118802002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11881
11882 * xdisp.c (redisplay_updating_p): New variable.
11883 (init_iterator): Don't free realized faces when
11884 redisplay_updating_p is set.
11885 (redisplay_internal): Set redisplay_updating_p while updating
11886 the display.
11887
118882002-07-23 Richard M. Stallman <rms@gnu.org>
11889
11890 * editfns.c (Fmessage): Treat "" like nil.
11891
118922002-07-23 Kenichi Handa <handa@etl.go.jp>
11893
11894 * xdisp.c (face_before_or_after_it_pos):
11895 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11896
118972002-07-22 Juanma Barranquero <lektu@terra.es>
11898
11899 * callproc.c (init_callproc) [DOS_NT]:
11900 Initialize Vshared_game_score_directory to nil.
11901 (syms_of_callproc) [DOS_NT]: Likewise.
11902
119032002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11904
11905 * xdisp.c (display_line): Replace an abort with xassert.
11906
119072002-07-21 Richard M. Stallman <rms@gnu.org>
11908
11909 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11910 and END_UNCHANGED when setting buffer_unchanged_p.
11911 Use current_matrix_up_to_date_p to decide whether to use
11912 try_cursor_movement.
11913
11914 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11915
11916 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11917
11918 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11919 Set to nil if dir does not exist.
11920 (syms_of_callproc): Init unconditionally and simply.
11921
11922 * buffer.c (Fbuffer_list): Doc fix.
11923
119242002-07-21 Ken Raeburn <raeburn@gnu.org>
11925
11926 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11927
11928 * buffer.c (mmap_realloc): When shrinking, make sure number of
11929 pages to unmap is rounded towards zero.
11930
11931 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11932 (XSETINT): Deleted.
11933
11934 * m/att3b.h (XINT): Don't define.
11935 (VALBITS, VALMASK, XTYPE): Deleted.
11936 (DATA_SEG_BITS): Define.
11937 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11938 ARRAY_MARK_FLAG): Deleted.
11939 (DATA_SEG_BITS): Define.
11940 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11941 (DATA_SEG_BITS): Define.
11942
119432002-07-20 Richard M. Stallman <rms@gnu.org>
11944
11945 * print.c (print_error_message): New args CONTEXT and CALLER.
11946 Calls changed.
11947
11948 * lisp.h (print_error_message): Declare new args.
11949
11950 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11951 and CONTEXT to print_error_message, don't print them here.
11952 For a Quit, don't use Vsignaling_function.
11953 Call message_log_maybe_newline.
11954
11955 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11956
119572002-07-20 Kim F. Storm <storm@cua.dk>
11958
11959 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11960
119612002-07-19 Ken Raeburn <raeburn@gnu.org>
11962
11963 * bytecode.c (struct byte_stack): Pointers into byte string now
11964 point to const.
11965 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11966 const.
11967 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11968 * coding.c (encode_eol, detect_coding, detect_eol):
11969 (decode_coding, encode_coding, detect_coding_system):
11970 Source strings now treated as const.
11971 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11972 modify Lisp string contents.
11973 * coding.h (decode_coding, encode_coding, detect_coding,
11974 detect_eol): Declarations updated.
11975 * composite.c (compose_chars_in_text): Treat Lisp string contents
11976 as const.
11977 * dispnew.c (safe_bcopy): Source pointer now points to const.
11978 * lisp.h (STRING_COPYIN): New macro.
11979 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11980 (internal_with_output_to_temp_buffer): Declarations updated.
11981 * print.c (temp_output_buffer_setup):
11982 (internal_with_output_to_temp_buffer): Buffer name argument is now
11983 pointer to const.
11984 * sound.c (struct sound_device): Function pointer field "write"
11985 buffer argument now points to const.
11986 (vox_write): Buffer argument points to const.
11987 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11988 contents as const.
11989 * sysdep.c (emacs_write): Buffer pointer now const.
11990 * term.c (encode_terminal_code): Buffer pointer now const.
11991 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11992 (x_face_list_fonts, x_update_menu_appearance):
11993 (hash_string_case_insensitive): Treat Lisp string contents as const.
11994
119952002-07-19 Juanma Barranquero <lektu@terra.es>
11996
048addec
JD
11997 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11998
11999 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12000 (Ffile_name_as_directory): Fix argument name in docstring.
12001 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12002
120032002-07-18 Richard M. Stallman <rms@gnu.org>
12004
12005 * data.c (Fdefalias): Doc fix.
12006
120072002-07-17 Dave Love <fx@gnu.org>
12008
12009 * intervals.h (text_property_stickiness): Use P_.
12010
12011 * ccl.c: Remove `emacs' conditionals.
12012 (ccl_backtrace_table): Fix size spec.
12013 (ccl_driver): Fix type errors.
12014
120152002-07-16 Ken Raeburn <raeburn@gnu.org>
12016
12017 * alloc.c (xstrdup, make_string, make_unibyte_string)
12018 (make_multibyte_string, build_string): String pointer args now
12019 point to const.
12020 * charset.c (find_charset_in_text, c_string_width):
12021 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12022 * fileio.c (report_file_error):
12023 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12024 (count_combining_before, count_combining_after, insert_1_both):
12025 (insert, insert_and_inherit, insert_string):
12026 (insert_before_markers, insert_before_markers_and_inherit):
12027 * lread.c (intern, oblookup, hash_string):
12028 * minibuf.c (temp_echo_area_glyphs):
12029 * search.c (fast_c_string_match_ignore_case):
12030 * sysdep.c (emacs_open, set_file_times):
12031 * xfaces.c (xstricmp):
12032 * xdisp.c (store_frame_title, string_char_and_length):
12033 (message_dolog, message2, message2_nolog, set_message): Likewise.
12034 (set_message_1): Cast message string argument to const pointer.
12035 * editfns.c (general_insert_function): Insertion function now
12036 takes pointer to const for input data.
12037 * charset.h (find_charset_in_text, c_string_width):
12038 (parse_str_as_multibyte): Declarations updated.
12039 * dispextern.h (xstricmp): Declaration updated.
12040 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12041 (count_size_as_multibyte, count_combining_before):
12042 (count_combining_after, insert_1, insert_1_both, message_dolog):
12043 (insert, insert_and_inherit, insert_before_markers)
12044 (insert_before_markers_and_inherit, set_message, message2):
12045 (message2_dolog, build_string, make_string, make_unibyte_string):
12046 (make_multibyte_string, intern, oblookup, report_file_error):
12047 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12048 (emacs_open, xstrdup): Declarations updated.
12049 * systime.h (set_file_times): Declaration updated.
12050
12051 * charset.c (find_charset_in_text, lisp_string_width): Use const
12052 for pointer to lisp string data.
12053 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12054 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12055 * coding.c (Ffind_coding_systems_region_interval):
12056 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12057 (Fmake_directory_internal, Fdelete_directory):
12058 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12059 * fontset.c (font_family_registry, fs_query_fontset):
12060 (list_fontsets):
12061 * frame.c (Fframe_parameter):
12062 * keyboard.c (cmd_error_internal):
12063 * keymap.c (Fdescribe_buffer_bindings):
12064 * lread.c (complete_filename_p, openp):
12065 * minibuf.c (Fminibuffer_complete_word):
12066 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12067 (face_before_or_after_it_pos, next_element_from_string):
12068 (get_overlay_arrow_glyph_row, display_mode_element):
12069 (decode_mode_spec_coding):
12070 * xterm.c (same_x_server): Likewise.
12071
12072 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12073 settings of non-existent fields.
12074
12075 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12076 copy a lisp value.
12077
12078 * lread.c (Fintern_soft): Use string macros instead of
12079 Lisp_String fields.
12080 * keyboard.c (echo_char, parse_modifiers_uncached):
12081 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12082 * textprop.c (validate_interval_range, interval_of): Likewise.
12083
12084 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12085
12086 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12087 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12088 XSTRING()->size_byte.
12089
12090 * lisp.h (SDATA, SREF): Produce rvalue.
12091 (SSET): New macro.
12092 * alloc.c (make_event_array): Use SSET for storing into a string.
12093 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12094 a string.
12095 * casefiddle.c (casify_object): Use SSET.
12096 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12097 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12098 address of string contents.
12099 * data.c (Faref): Use SDATA.
12100 (Faset): Use SDATA, SSET.
12101 * dired.c (directory_files_internal): Use SSET.
12102 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12103 (Fread_file_name): Use SREF, SSET.
12104 * fns.c (concat): Use SSET.
12105 (concat, Fdelete): Use SDATA.
12106 * insdel.c (insert_from_string_1): Use SDATA.
12107 * keyboard.c (Fevent_convert_list): Use SREF.
12108 * lread.c (Fload): Use SDATA, SSET.
12109 * macfns.c (validate_x_resource_name): Use SSET.
12110 * process.c (status_message): Use SSET.
12111 * search.c (wordify): Use SDATA.
12112 (Freplace_match): Use SREF.
12113 * w32fns.c (validate_x_resource_name): Use SSET.
12114 * xfns.c (validate_x_resource_name): Use SSET.
12115 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12116
121172002-07-16 Richard M. Stallman <rms@gnu.org>
12118
12119 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12120
12121 * xdisp.c (reconsider_clip_changes):
12122 Don't test prevent_redisplay_optimizations_p.
12123 (redisplay_internal): Test prevent_redisplay_optimizations_p
12124 along with clip_changed in some cases.
12125 (try_window_id): Likewise.
12126 (redisplay_window): New local var buffer_unchanged_p.
12127
12128 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12129
12130 * process.c (create_process): Test USG_SUBTTY_WORKS.
12131 (process_send_signal): Clean up handling of GID.
12132 Detect errors in ioctls meant to set GID.
12133
12134 * window.c (temp_output_buffer_show):
12135 Don't set prevent_redisplay_optimizations_p.
12136
121372002-07-15 Juanma Barranquero <lektu@terra.es>
12138
12139 * eval.c (Fdefvaralias): Add docstring argument.
12140
121412002-07-15 Ken Raeburn <raeburn@gnu.org>
12142
12143 * lisp.h (STRING_INTERVALS): Produce rvalue.
12144 (STRING_SET_INTERVALS): New macro.
12145 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12146 * fns.c (Fstring_as_multibyte): Likewise.
12147 * intervals.c (balance_possible_root_interval, delete_interval)
12148 (create_root_interval, copy_intervals_to_string): Likewise.
12149 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12150 instead of 0.
12151
121522002-07-14 Ken Raeburn <raeburn@gnu.org>
12153
12154 * lisp.h (STRING_SET_CHARS): New macro.
12155 (SCHARS, SBYTES): Produce rvalues.
12156 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12157 * fns.c (concat): Likewise.
12158 * lread.c (read_vector): Likewise.
12159
12160 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12161 (STRING_SET_UNIBYTE): New macro.
12162 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12163 length of -1) changed to use STRING_SET_UNIBYTE.
12164 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12165 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12166 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12167 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12168 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12169 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12170 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12171 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12172 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12173 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12174 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12175 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12176 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12177 unchanged for now.
12178
121792002-07-13 Kim F. Storm <storm@cua.dk>
12180
12181 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12182
121832002-07-12 Richard M. Stallman <rms@gnu.org>
12184
12185 * fileio.c (Fwrite_region): Doc fix.
12186
12187 * print.c (print_error_message): Don't handle Vsignaling_function here.
12188
12189 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12190 (command_loop_1): Avoid certain actions after memory-full error.
12191
12192 * eval.c (Fsignal): Don't call cancel_hourglass.
12193 For a memory-full error, don't call Vsignal_hook_function
12194 and don't set Vsignaling_function.
12195
12196 * process.c (process_send_signal): Add abort call.
12197
121982002-07-11 Markus Rost <rost@math.ohio-state.edu>
12199
12200 * keymap.c (Fkey_binding): Fix typo.
12201
122022002-07-11 Richard M. Stallman <rms@gnu.org>
12203
12204 * alloc.c (Vmemory_full): New variable.
12205 (Vmemory_signal_data): Renamed from memory_signal_data.
12206 Uses changed.
12207 (syms_of_alloc): Defvar them.
12208 (memory_full, buffer_memory_full): Set Vmemory_full.
12209
12210 * lisp.h (Vmemory_full): Add declaration.
12211 (current_column, indented_beyond_p): Change declaration.
12212
12213 * indent.c (last_known_column): Declare as double, not float.
12214 (current_column, current_column_1, string_display_width)
12215 (position_indentation): Return `double'.
12216 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12217
12218 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12219 (back_to_previous_visible_line_start)
12220 (reseat_at_next_visible_line_start, next_element_from_buffer):
12221 Use `double', not `float', when calling indented_beyond_p.
12222
12223 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12224
12225 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12226
122272002-07-11 Juanma Barranquero <lektu@terra.es>
12228
12229 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12230 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12231 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12232 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12233 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12234 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12235
122362002-07-10 Juanma Barranquero <lektu@terra.es>
12237
d814862a
JB
12238 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12239 All callers changed.
048addec
JD
12240
122412002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12242
12243 * data.c (Fdefalias): Add an optional `docstring' argument.
12244 (set_internal, Fsetq_default): Use XCAR/XCDR.
12245
12246 * composite.c (HASH_VALUE, HASH_KEY):
12247 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12248
122492002-07-09 Kenichi Handa <handa@etl.go.jp>
12250
12251 * callproc.c (Fcall_process): Fix previous change.
12252
122532002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12254
12255 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12256 Add support for hash-tables.
12257 (Ftry_completion): Return t even if the string appears multiple times.
12258
12259 * fns.c (Fnconc): Use XCDR.
12260 (Fprovide): Use CONSP and XCDR.
12261 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12262 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12263 (Fmake_hash_table): Accept `:size nil'.
12264 (Fmakehash): Delete: moved to subr.el.
12265 (syms_of_fns): Don't defsubr makehash.
12266
12267 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12268 (HASH_TABLE_SIZE): Move from fns.c.
12269
122702002-07-07 Richard M. Stallman <rms@gnu.org>
12271
12272 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12273 Instead just return 0 when there is something to be done.
12274 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12275 retry scrolling as if cursor were off the bottom.
12276 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12277 return CURSOR_MOVEMENT_MUST_SCROLL.
12278 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12279 go to try_to_scroll.
12280
12281 * buffer.c (Fbuffer_local_value): Store current value into its binding
12282 so we get the up-to-date value for the binding that is loaded.
12283
12284 * eval.c (Fdefmacro): Doc fix.
12285
122862002-07-05 Dave Love <fx@gnu.org>
12287
12288 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12289 correctly.
12290
12291 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12292 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12293 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12294 CCL_LookupCharConstTbl.
12295 (syms_of_ccl): Defvar translation-hash-table-vector.
12296
122972002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12298
12299 * xdisp.c: Remove unused variable `face'.
12300
123012002-07-04 Juanma Barranquero <lektu@terra.es>
12302
12303 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12304 obsolescence information.
12305
123062002-07-03 Andrew Choi <akochoi@shaw.ca>
12307
12308 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12309 pattern. Search cache first.
12310 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12311 for Japanese font.
12312 (XLoadQueryFont): Use it.
12313
123142002-07-02 Richard M. Stallman <rms@gnu.org>
12315
12316 * keymap.c (Fdefine_key): Doc fix.
12317
12318 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12319
123202002-07-02 Juanma Barranquero <lektu@terra.es>
12321
12322 * keymap.c (syms_of_keymap): Fix typo.
12323
123242002-07-01 Andrew Choi <akochoi@shaw.ca>
12325
12326 * s/darwin.h: Define POSIX_SIGNALS.
12327
12328 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12329 and FSRefMakePath to convert FSSpec returned with Apple Event to
12330 Posix pathname.
12331 (mac_initialize) [TARGET_API_MAC_CARBON]:
12332 Call init_required_apple_events and disable the `Quit' menu item
12333 provided automatically by the Carbon Toolbox.
12334
123352002-07-01 Dave Love <fx@gnu.org>
12336
12337 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12338 for K&R.
12339
12340 * xterm.c: Fix prototype for K&R.
12341
12342 * term.c (costs_set): Declare static, non-initialized for pcc.
12343
123442002-07-01 Richard M. Stallman <rms@gnu.org>
12345
12346 * keyboard.c (timer_last_idleness_start_time): New variable.
12347 (timer_start_idle): Set that.
12348 (read_key_sequence): Use that to reset timer_idleness_start_time
12349 to previous value.
12350
12351 * window.c (Frecenter): With arg, set optional_new_start.
12352
12353 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12354
12355 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12356 buffer for completion.
12357
123582002-06-29 Ken Raeburn <raeburn@gnu.org>
12359
12360 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12361
123622002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12363
12364 * keyboard.c (readable_filtered_events): New function that filters
12365 FOCUS_IN_EVENT depending on parameter.
12366 (readable_events): Calls readable_filtered_events, not filtering
12367 FOCUS_IN_EVENT.
12368 (get_filtered_input_pending): New function, filtering parameter passed
12369 to readable_filtered_events.
12370 (get_input_pending): Calls get_filtered_input_pending, not filtering
12371 FOCUS_IN_EVENT.
12372 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12373 FOCUS_IN_EVENT.
12374
12375 * xterm.h (struct x_output): Add focus_state.
12376
12377 * xterm.c (x_focus_changed): New function.
12378 (x_detect_focus_change): New function.
12379 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12380 EnterNotify and LeaveNotify to track X focus changes.
12381
123822002-06-28 Andreas Schwab <schwab@suse.de>
12383
12384 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12385
123862002-06-27 Kim F. Storm <storm@cua.dk>
12387
12388 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12389 (mode_line_string_face_prop): New variables.
12390 (store_mode_line_string): New function.
12391 (display_mode_element): Use store_mode_line_string to
12392 add mode-line string elements to mode_line_string_list
12393 when mode_line_string_list is non-nil.
12394 (Fformat_mode_line): Now returns propertized string by
12395 default. New arg NO-PROPS to ignore properties.
12396 (decode_mode_spec): Only add two dashes for %- in propertized
12397 mode-line string.
12398 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12399
124002002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12401
12402 * minibuf.c (minibuffer_completion_contents): Add return type.
12403
124042002-06-27 Juanma Barranquero <lektu@terra.es>
12405
12406 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12407
124082002-06-26 Juanma Barranquero <lektu@terra.es>
12409
12410 * fileio.c (read_file_name_cleanup): Add missing return.
12411
124122002-06-26 Richard M. Stallman <rms@gnu.org>
12413
12414 * window.c (Frecenter): Don't set force_start flag.
12415
12416 * minibuf.c (do_completion, Fminibuffer_complete_word)
12417 (Fminibuffer_completion_help): Complete just the text before point.
12418 (minibuffer_completion_contents): New function.
12419
12420 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12421
12422 * frame.c (frames_bury_buffer): Function deleted.
12423
124242002-06-25 Miles Bader <miles@gnu.org>
12425
12426 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12427 the end of callint_message, allow for a terminating '\0'.
12428
124292002-06-24 Juanma Barranquero <lektu@terra.es>
12430
12431 * w32select.c: Include composite.h
12432
12433 * w16select.c: Likewise.
12434
124352002-06-24 Kenichi Handa <handa@etl.go.jp>
12436
12437 * callproc.c (Fcall_process): If code detection is necessary,
12438 call detect_coding directly here.
12439
12440 * coding.c (detect_eol): Preserve coding->cmp_data.
12441
12442 * w16select.c (Fw16_get_clipboard_data):
12443 * w32fns.c (w32_to_x_font):
12444 * w32select.c (Fw32_get_clipboard_data):
12445 * xselect.c (selection_data_to_lisp_data):
12446 * xterm.c (XTread_socket): Disable composition handling.
12447
124482002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12449
12450 * print.c (temp_output_buffer_setup): Kill all local variables.
12451
124522002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12453
12454 * lread.c (Fread): Remove redundant and imprecise declaration.
12455
12456 * xfns.c (check_x_display_info): Use check_x_frame.
12457
12458 * .gdbinit (xprintsym): Use the new `xname' field.
12459 (xsymbol): Use it.
12460
124612002-06-22 Jason Rumney <jasonr@gnu.org>
12462
12463 * w32fns.c (file_dialog_callback): New function.
12464 (Fx_file_dialog): Allow selecting directories as well as files.
12465
124662002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12467
12468 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12469 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12470
124712002-06-17 Andrew Choi <akochoi@shaw.ca>
12472
12473 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12474 black and white before scrolling. Restore frame background and
12475 foreground color after scrolling.
12476 (do_window_update): Call XClearWindow before calling expose_frame.
12477 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12478 FRAME_FOREGROUND_PIXEL of frame.
12479
12480 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12481 test Mac command key as <ALT> key.
12482
124832002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12484
12485 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12486
12487 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12488 Lookup keys in function-key-map immediately so that key-translation-map
12489 can be applied earlier.
12490 Remove function_key_possible and key_translation_possible, replaced
12491 by checking `keytran_start < t'.
12492
12493 * .gdbinit (xsymbol): Use the new `xname' field.
12494
124952002-06-17 Andrew Choi <akochoi@shaw.ca>
12496
12497 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12498 test Mac command key as <ALT> key.
12499
12500 * mac.c (do_applescript): Call initialize_applescript if necessary
12501 when first called. Dispose of result_desc only when there is no error.
12502 (Fdo_applescript): Use %d format specifier instead of %ld.
12503
125042002-06-16 Andrew Choi <akochoi@shaw.ca>
12505
12506 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12507 of FrontWindow for cases keyDown and autoKey.
12508
12509 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12510 Vdefault_fontset to Monaco with mac-roman coding.
12511
12512 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12513 init_process before and after inclusion of Carbon/Carbon.h, resp.
12514
12515 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12516 cursor_gc.
12517 (add_font_name_table_entry): New function.
12518 (init_font_name_table): Use add_font_name_table_entry; add italic,
12519 bold, and bold-italic entries for truetype fonts.
12520
12521 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12522 for Mac too.
12523 (try_font_list) [MAC_OS]: If no font matches given registry, try
12524 fonts with any registry matching face_family.
12525 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12526
12527 * s/darwin.h: If autoconf detects the Ncurses library, define
12528 LIBS_TERMCAP to -lncurses to use it.
12529
125302002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12531
12532 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12533
125342002-06-15 Richard M. Stallman <rms@gnu.org>
12535
12536 * window.c (Fset_window_configuration): Explicitly preserve
12537 the point value that new_current_buffer had at the start.
12538
125392002-06-14 Juanma Barranquero <lektu@terra.es>
12540
12541 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12542 Fix typos.
12543
125442002-06-14 Kim F. Storm <storm@cua.dk>
12545
12546 * insdel.c (insert_1_both, insert_from_string_1)
12547 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12548 insert happened in the end_unchanged region. Otherwise, the
12549 redisplay may be confused and duplicate the last line in the
12550 buffer [seen after save-buffer when require-final-newline==t].
12551
125522002-06-13 Jason Rumney <jasonr@gnu.org>
12553
12554 * w32.c (init_environment): Remove EMACSLOCKDIR.
12555 (stat): Swap _S_IFDIR and _S_IFREG.
12556
125572002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12558
12559 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12560 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12561 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12562 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12563 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12564 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12565 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12566 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12567 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12568 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12569 SELECTION_REQUEST_EVENT, selection_clear_event to
12570 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12571 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12572 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12573 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12574 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12575 no_event to NO_EVENT.
12576
125772002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12578
12579 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12580
125812002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12582
12583 * intervals.c (textget): Don't forget to `return'.
12584 (lookup_char_property): Use XCAR/XCDR.
12585
125862002-06-12 Juanma Barranquero <lektu@terra.es>
12587
12588 * xdisp.c (Fformat_mode_line): Fix typo.
12589
125902002-06-12 Kim F. Storm <storm@cua.dk>
12591
12592 * xdisp.c (Fformat_mode_line): New function.
12593 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12594 (store_frame_title_char, store_frame_title): Use unconditionally.
12595 (init_xdisp): Defsubr Fformat_mode_line.
12596 Initialize frame_title_buf etc. unconditionally.
12597
125982002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12599
12600 * keyboard.c (read_key_sequence):
12601 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12602 things through those maps after downcasing events.
12603 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12604 applies after function-key-map.
12605 Make sure that keytran can be done in the middle in the sequence.
12606 Be careful not to throw away events past the one we downcase.
12607
12608 * lread.c (read_integer): Remove unused var `tem'.
12609 (read1): Fix int/Lisp_Object mixup.
12610
12611 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12612
126132002-06-11 Richard M. Stallman <rms@gnu.org>
12614
12615 * keyboard.c (readable_events): Ignore any number of
12616 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12617
126182002-06-09 Miles Bader <miles@gnu.org>
12619
12620 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12621 (parse_rgb_list, tty_lookup_color): New functions.
12622 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12623 (color_distance, Fcolor_distance): New functions.
12624 (TTY_SAME_COLOR_THRESHOLD): New macro.
12625 (Qtty_color_standard_values): New variable.
12626 (syms_of_xfaces): Initialize new vars & functions.
12627
126282002-06-08 Colin Walters <walters@verbum.org>
12629
12630 * textprop.c (Vchar_property_alias_alist): New variable.
12631 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12632
12633 * intervals.c (lookup_char_property): New function for looking up
12634 overlay and text properties, created from textget.
12635 (textget): Use it.
12636
12637 * intervals.h (lookup_char_property): Declare.
12638 (Vchar_property_alias_alist): Declare.
12639
12640 * buffer.c (Foverlay_get): Use lookup_char_property.
12641
126422002-06-07 Sam Steingold <sds@gnu.org>
12643
12644 * xselect.c (lisp_data_to_selection_data): Fix last change:
12645 *data_ret is not a Lisp string, while unibyte_string is.
12646
126472002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12648
12649 * xselect.c (lisp_data_to_selection_data): Fix last change:
12650 set size_ret.
12651
126522002-06-07 Andreas Schwab <schwab@suse.de>
12653
12654 * m/amdx86-64.h: New file.
12655
126562002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12657
12658 * fns.c (Fstring_make_unibyte): Doc fix.
12659
12660 * xselect.c (lisp_data_to_selection_data): If the requested type
12661 is STRING, call string_make_unibyte to encode the selected text
12662 as a string.
12663
12664 * window.c (Fset_window_hscroll): Doc fix.
12665
126662002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12667
12668 * fileio.c (choose_write_coding_system):
12669 Call select-safe-coding-system properly.
12670
126712002-06-03 Richard M. Stallman <rms@gnu.org>
12672
12673 * xdisp.c (message_with_string): Error if STRING is not a string.
12674
12675 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12676
12677 * fileio.c (choose_write_coding_system): Pass FILE arg to
12678 Vselect_safe_coding_system_function.
12679
126802002-06-03 Ken Raeburn <raeburn@gnu.org>
12681
12682 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12683
126842002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12685
12686 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12687 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12688 * keymap.c (describe_command): Likewise.
12689 * minibuf.c (read_minibuf): Likewise.
12690
12691 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12692 Cast `current_column' return value to int.
12693 (back_to_previous_visible_line_start)
12694 (reseat_at_next_visible_line_start, next_element_from_buffer):
12695 Cast `indented_beyond_p' 3rd arg to float.
12696
12697 * indent.c (last_known_column): Now a float.
12698 (current_column_1, position_indentation, current_column)
12699 (string_display_width): Return float.
12700 (Fcurrent_column): Cast `current_column' return value to int.
12701 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12702 (indented_beyond_p): Third arg now a float.
12703 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12704
12705 * lisp.h (current_column): Now returns float.
12706 (indented_beyond_p): 3rd arg now a float.
12707
127082002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12709
12710 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12711 is Qcompound_text_with_extensions.
12712
12713 * xselect.c (lisp_data_to_selection_data): Always set selection
12714 type as string if x_encode_text returns streingp non-NULL.
12715
12716 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12717
127182002-05-30 Richard M. Stallman <rms@gnu.org>
12719
12720 * window.c (Fset_window_configuration): Correct the handling
12721 of point in current buffer, to work with multiple windows.
12722
127232002-05-29 Colin Walters <walters@verbum.org>
12724
12725 * lread.c (Fread_from_string): Don't depend on order of evaluation
12726 for C function parameters.
12727
127282002-05-28 Richard M. Stallman <rms@gnu.org>
12729
12730 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12731 way for blinked-off state and for a nonselected window.
12732
12733 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12734 instead, see if the new start pos is at beginning of line.
12735
12736 * fileio.c (Fwrite_region): If START is a string, don't
12737 make any annotations.
12738
12739 * eval.c (syms_of_eval): Doc fix.
12740
127412002-05-28 Colin Walters <walters@debian.org>
12742
12743 * emacs.c (USAGE1): Add --no-splash.
12744 (standard_args): Ditto.
12745
127462002-05-28 Colin Walters <walters@gnu.org>
12747
12748 * lread.c (readchar_count): New variable.
12749 (readchar): Increment it.
12750 (unreadchar): Decrement it.
12751 (read_multibyte): Decrement it.
12752 (Vread_with_symbol_positions): New variable.
12753 (Vread_symbol_positions_list): New variable.
12754 (read_internal_start): New function, created from Fread and
12755 Fread_from_string. Handle Vread_symbol_positions_list and
12756 Vread_with_symbol_positions.
12757 (readevalloop, Fread, Fread_from_string): Use it.
12758 (read1): Use readchar_count to add symbol positions to
12759 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12760 (syms_of_lread): DEFVAR_LISP and initialize them.
12761
12762 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12763 (substitute_object_recurse, substitute_object_in_subtree)
12764 (substitute_in_interval): Prototype.
12765 (read_multibyte): Return c if it's less than zero.
12766
127672002-05-28 Kim F. Storm <storm@cua.dk>
12768
12769 * fileio.c (Fread_file_name_internal): Added brute-force
12770 speed up for using predicate file-directory-p.
12771
127722002-05-28 Kim F. Storm <storm@cua.dk>
12773
12774 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12775 New variables.
12776 (syms_of_fileio): DEFVAR_LISP them.
12777 (read_file_name_cleanup): New unwind function.
12778 (Fread_file_name_internal): Only return completions satifying
12779 Vread_file_name_predicate. Temporarily unwind protect and rebind
12780 default-directory while checking completions against the predicate.
12781 (Fread_file_name): Added PREDICATE argument. Specbind it to
12782 Vread_file_name_predicate during completion.
12783 Call Vread_file_name_function to read the file name if non-nil.
12784
12785 * lisp.h (Fread_file_name): Now has 6 args.
12786
12787 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12788 predicate for Fread_file_name when reading directory name.
12789 Supply Qnil for predicate in other calls to Fread_file_name.
12790
127912002-05-26 Miles Bader <miles@gnu.org>
12792
12793 * term.c (tty_capable_p): New function.
12794 * dispextern.h (tty_capable_p): New function declaration.
12795 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12796 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12797
127982002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12799
12800 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12801 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12802 (Vwrite_region_annotate_functions): Docstring fix.
12803
128042002-05-23 Kim F. Storm <storm@cua.dk>
12805
12806 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12807 phys_cursor's hpos is overwritten. This is still not completely
12808 correct, as it doesn't really make sense to use hpos at all to
12809 get the cursor glyph (as that is relative to the width of the
12810 characters on the line, which may have changed during the update).
12811
128122002-05-22 Jason Rumney <jasonr@gnu.org>
12813
12814 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12815 Lisp_Object.
12816 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12817 Use modified enumfont_t struct.
12818
12819 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12820
12821 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12822 Handle the `hbar' cursor type.
12823 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12824
12825 * w32fns.c (Qhbar): New variable.
12826 (x_specified_cursor_type): Use it.
12827
128282002-05-21 Ken Raeburn <raeburn@gnu.org>
12829
12830 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12831 now, when the address is needed.
12832
128332002-05-21 Colin Walters <walters@gnu.org>
12834
12835 * Makefile.in (shortlisp): Add font-core.el.
12836
128372002-05-20 Richard M. Stallman <rms@gnu.org>
12838
12839 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12840
12841 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12842 equivalent key bindings here.
12843
128442002-05-20 Ken Raeburn <raeburn@gnu.org>
12845
12846 Change symbol structure to contain a lisp object for the symbol
12847 name:
12848 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12849 object field named "xname".
12850 (SYMBOL_NAME): New macro.
12851 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12852 name field.
12853 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12854 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12855 instead of name field.
12856 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12857 SYMBOL_NAME instead of XSYMBOL and name field.
12858 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12859 instead of XSYMBOL and name field.
12860 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12861 and SYMBOL_NAME instead of XSYMBOL and name field.
12862 * coding.c (Fread_coding_system, code_convert_region1)
12863 (code_convert_string1, code_convert_string_norecord)
12864 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12865 XSYMBOL and name field.
12866 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12867 (Fmake_variable_buffer_local, Fmake_local_variable)
12868 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12869 of XSYMBOL and name field.
12870 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12871 XSYMBOL and name field.
12872 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12873 instead of XSYMBOL and name field.
12874 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12875 XSYMBOL and name field.
12876 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12877 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12878 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12879 instead of XSYMBOL and name field.
12880 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12881 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12882 (parse_solitary_modifier, Fexecute_extended_command):
12883 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12884 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12885 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12886 of XSYMBOL and name field.
12887 (describe_command, describe_translation): Use SYMBOL_NAME and
12888 assignment instead of XSYMBOL and name field and XSETSTRING.
12889 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12890 instead of XSYMBOL and name field.
12891 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12892 name field and XSETSTRING.
12893 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12894 of XSYMBOL and name field.
12895 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12896 assignment instead of XSYMBOL and name field and XSETSTRING.
12897 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12898 XSTRING instead of XSYMBOL and name field.
12899 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12900 and XSTRING instead of XSYMBOL and name field.
12901 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12902 and XSTRING instead of XSYMBOL and name field.
12903 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12904 XSTRING instead of XSYMBOL and name field.
12905 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12906 of XSYMBOL and name field.
12907 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12908 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12909
129102002-05-19 Ken Raeburn <raeburn@gnu.org>
12911
12912 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12913 and XCDR real rvalues in most configurations.
12914
12915 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12916 Don't take the address of the cdr part of a cons cell; instead, track
12917 the parent cell and call XSETCDR, or set the variable for the head
12918 of the list if we haven't started down the list yet.
12919
129202002-05-19 Richard M. Stallman <rms@gnu.org>
12921
12922 * doc.c (reread_doc_file): Don't ask for confirmation.
12923
129242002-05-18 Jason Rumney <jasonr@gnu.org>
12925
12926 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12927 (xbm_load_image): Use it.
12928 (xbm_load): Ditto.
12929 (xbm_read_bitmap_data): Reverted to xfns.c version.
12930 From David Ponce <david@dponce.com>.
12931
129322002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12933
12934 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12935 2.02 and later.
12936
129372002-05-16 Juanma Barranquero <lektu@terra.es>
12938
12939 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12940
129412002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12942
12943 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12944 meaningful test.
12945 (read_char_minibuf_menu_prompt): Fix typo.
12946
129472002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12948
12949 * eval.c (Fcommandp): Doc fix.
12950
129512002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12952
12953 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12954 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12955 (Fset_keymap_parent): Gcpro a bit more.
12956 (access_keymap): Gcpro around meta_map call and around the main loop.
12957 (get_keyelt): Gcpro when following indirect references.
12958 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12959 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12960 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12961 Remove useless ad-hoc remap code.
12962
129632002-05-13 Richard M. Stallman <rms@gnu.org>
12964
12965 * search.c (search_buffer): Give up boyer moore search if inverse
12966 translation change charset_base.
12967
129682002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12969
12970 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12971 characters is carried over from the previous block of text, adjust
12972 coding->produced to account for the extra character.
12973
129742002-05-11 Andreas Schwab <schwab@suse.de>
12975
12976 * coding.c (intersection): Keep the elements of the returned list
12977 in the same order as in the first list.
12978
129792002-05-11 Kim F. Storm <storm@cua.dk>
12980
12981 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12982 only update cmm_size if realloc actually succeeds.
12983 Testing with initial size of 2 elements revealed that using
12984 realloc on GNU/Linux would cause a random trap in xmalloc
12985 later on, so I rewrote the code to use malloc/bcopy/free instead
12986 of realloc.
12987
129882002-05-10 Jason Rumney <jasonr@gnu.org>
12989
12990 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12991
129922002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12993
12994 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12995 parens, to ensure correct evaluation order.
12996
129972002-05-10 Kim F. Storm <storm@cua.dk>
12998
12999 * keymap.c (Vemulation_mode_map_alists): New variable.
13000 (syms_of_keymap): DEFVAR_LISP it.
13001 (current_minor_maps): Process keymap alists in that list before
13002 minor-mode-overriding-map-alist and minor-mode-map-alist.
13003
130042002-05-09 Richard M. Stallman <rms@gnu.org>
13005
13006 * search.c (Freplace_match): Doc fix.
13007
130082002-05-09 Kim F. Storm <storm@cua.dk>
13009
13010 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13011 Enlarge cursor rectangle drawn around image with non-zero relief.
13012
13013 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13014 Enlarge cursor rectangle drawn around image with non-zero relief.
13015
13016 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13017 Enlarge cursor rectangle drawn around image with non-zero relief.
13018
130192002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13020
13021 * xselect.c (lisp_data_to_selection_data): Don't set selection
13022 type if comes from the Lisp object's car. If the selection
13023 contains a pure ASCII text, always return QSTRING as its type.
13024
130252002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13026
13027 * mac.c (mac-cut-function): Doc fix.
13028
130292002-05-05 Richard M. Stallman <rms@gnu.org>
13030
13031 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13032
130332002-05-04 Jason Rumney <jasonr@gnu.org>
13034
13035 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13036 for event-click-count.
13037
13038 * process.c (init_process): Only add server subfeature if we can
13039 use non-blocking I/O.
13040
130412002-05-04 Andrew Choi <akochoi@shaw.ca>
13042
13043 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13044 repeatedly.
13045
130462002-05-03 Jason Rumney <jasonr@gnu.org>
13047
13048 * process.c (Fmake_network_process): Only support server sockets
13049 when we can make them non-blocking.
13050
13051 * s/ms-w32.h (HAVE_SELECT): Define.
13052
13053 * w32.h (FILE_NDELAY): New flag.
13054
13055 * w32.c (sys_getpeername, fcntl): New functions.
13056 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13057
13058 * w32proc.c: include sys/file.h.
13059
130602002-05-03 Colin Walters <walters@verbum.org>
13061
13062 * callproc.c (Vgame_score_directory): Renamed to
13063 Vshared_game_score_directory.
13064
130652002-04-30 Richard M. Stallman <rms@gnu.org>
13066
13067 * s/gnu.h [emacs]: Include stdio.h.
13068 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13069
13070 * eval.c (do_autoload): Error if called while preparing to dump.
13071
13072 * fns.c (Frequire): Error if need to load while preparing to dump.
13073
130742002-04-28 Colin Walters <walters@verbum.org>
13075
13076 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13077 Default to "~/.emacs.d/games".
13078
130792002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13080
13081 * lread.c (openp): Change arg exec_only to predicate.
13082 (build_load_history): Use XCAR/XCDR.
13083 (Flocate_file_internal): New fun.
13084 (syms_of_lread): Defsubr it.
13085 (Fload): Update call to openp.
13086
13087 * lisp.h (openp): Update prototype.
13088
13089 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13090 * w32proc.c (sys_spawnve):
13091 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13092 * w32.c (check_windows_init_file):
13093 * sound.c (Fplay_sound_internal):
13094 * process.c (Fstart_process):
13095 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13096 * mac.c (run_mac_command):
13097 * emacs.c (init_cmdargs):
13098 * callproc.c (Fcall_process): Update call to openp.
13099
13100 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13101
13102 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13103
131042002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13105
13106 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13107 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13108
131092002-04-28 Richard M. Stallman <rms@gnu.org>
13110
13111 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13112
13113 * eval.c (Fcommandp): New arg for_call_interactively.
13114 * lisp.h (Fcommandp): Declare new arg.
13115
131162002-04-28 Jason Rumney <jasonr@gnu.org>
13117
13118 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13119
13120 * w32.c (stat, fstat): Use file index information to generate
13121 inodes for directories where available.
13122
131232002-04-26 Andrew Choi <akochoi@shaw.ca>
13124
13125 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13126 [HAVE_CARBON]: Include Mac object files.
13127
13128 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13129 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13130 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13131 MAC_OSX, and MAC_OS instead of macintosh.
13132
13133 * editfns.c [MAC_OS8]: Include stdio.h.
13134
13135 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13136
13137 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13138 Apple Monaco.
13139
78819ebb 13140 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13141 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13142 calling select.
13143
13144 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13145
13146 * tparam.c [MAC_OSX]: Don't define BC and UP.
13147
13148 * config.in [HAVE_CARBON]: Add.
13149
13150 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13151 Move here from mac/src and mac/inc.
13152
13153 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13154
131552002-04-26 Gerd Moellmann <gerd@gnu.org>
13156
13157 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13158 Compute phys_cursor_width from the x position returned
13159 by x_draw_glyhs, which is cheaper.
13160 (x_display_and_set_cursor): Compute the buffer-local value
13161 of `cursor-in-non-selected-windows' only when needed.
13162
131632002-04-25 Gerd Moellmann <gerd@gnu.org>
13164
13165 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13166 cursor on a stretch glyph has a width that depends on
13167 x_stretch_cursor_p.
13168
131692002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13170
13171 * abbrev.c (abbrev-start-location): Doc fix.
13172
13173 * indent.c (Fvertical_motion): Fix last change.
13174
131752002-04-25 Gerd Moellmann <gerd@gnu.org>
13176
13177 * indent.c (Fvertical_motion): Move to the start of the line
13178 containing PT before moving up or down.
13179
131802002-04-24 Gerd Moellmann <gerd@gnu.org>
13181
13182 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13183 case of writing a whole row, more or less analogous to the case of
13184 writing only parts of a row.
13185
13186 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13187 0 for NO_CURSOR.
13188
13189 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13190
131912002-04-23 Colin Walters <walters@verbum.org>
13192
13193 * buffer.c (syms_of_buffer): Doc fix.
13194
131952002-04-23 Gerd Moellmann <gerd@gnu.org>
13196
13197 * xterm.c (notice_overwritten_cursor): Handle the special case
13198 of the cursor being in the first blank non-text line at the
13199 end of a window.
13200
13201 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13202 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13203 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13204 bar cursors only, to make phys_cursor_width contain what its name
13205 suggests.
13206 (notice_overwritten_cursor): Consider the cursor image erased if
13207 the output area intersects the cursor image in y-direction.
13208
132092002-04-23 Simon Marshall <simon@gnu.org>
13210
13211 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13212 to XC_hand2.
13213
132142002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13215
13216 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13217
132182002-04-22 Kim F. Storm <storm@cua.dk>
13219
13220 * textprop.c (remove_properties): Fixed trap for malformed plist.
13221
132222002-04-22 Richard M. Stallman <rms@gnu.org>
13223
13224 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13225
13226 * window.c (make_window): Initialize height_fixed_p,
13227 last_cursor_off_p, and p->cursor_off_p slots.
13228
132292002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13230
13231 * fns.c (use-dialog-box): Doc fix.
13232
132332002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13234
13235 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13236 variables `row', `i' and `area'.
13237 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13238 toolkit library.
13239
132402002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13241
13242 * xfaces.c (clear_font_table): Don't free the default font of
13243 a frame even if it's on another display.
13244 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13245 that could be Qt.
13246
132472002-04-19 Juanma Barranquero <lektu@terra.es>
13248
13249 * indent.c (Fmove_to_column): Remove unused local variable
13250 `next_boundary_byte'.
13251 (current_column_1): Likewise.
13252
132532002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13254
13255 * msdos.c (Qhbar): New variable.
13256 (syms_of_msdos): Intern and staticpro it.
13257 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13258 cursor type.
13259
132602002-04-19 Dave Lambert <dlambert@acm.org>
13261
13262 Theses change implement an underscore-like (`hbar') cursor.
13263
13264 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13265
13266 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13267 Handle the `hbar' cursor type.
13268 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13269
13270 * xfns.c (Qhbar): New variable.
13271 (syms_of_xfns): Intern and staticpro it.
13272 (x_specified_cursor_type): Handle `hbar' cursor.
13273
13274 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13275 not defined.
13276
132772002-04-18 Richard M. Stallman <rms@gnu.org>
13278
13279 * textprop.c (remove_properties): New arg LIST allows scanning
13280 either a list or a plist.
13281 (interval_has_some_properties_list): New function, like
13282 interval_has_some_properties using list instead of plist.
13283 All callers changed.
13284 (Fremove_list_of_text_properties): New function.
13285 (syms_of_textprop): Defsubr it.
13286
132872002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13288
13289 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13290
132912002-04-17 Juanma Barranquero <lektu@terra.es>
13292
13293 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13294
132952002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13296
13297 * window.c (coordinates_in_window): Don't report on margin area
13298 if its width is zero.
13299
133002002-04-16 Jason Rumney <jasonr@gnu.org>
13301
13302 * w32fns.c (Fx_file_dialog): Decode file name before using.
13303
13304 * w32term.c (construct_drag_n_drop): Likewise.
13305
133062002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13307
13308 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13309 store load-history in pure space.
13310
13311 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13312
133132002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13314
13315 * xterm.c (Qlatin_1, Qutf_8): New vars.
13316 (syms_of_xterm): Initialize them.
13317 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13318 decoding the output of X*LookupString.
13319 Always use latin-1 to decode the output of XLookupString.
13320 Try Xutf8LookupString if XmbLookupString failed.
13321
13322 * region-cache.c (new_region_cache): Use BEG.
13323
133242002-04-16 Gerd Moellmann <gerd@gnu.org>
13325
13326 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13327 configuration files.
13328 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13329 returns 0.
13330
133312002-04-15 Andreas Schwab <schwab@suse.de>
13332
13333 * config.in: Regenerated using autoheader.
13334
13335 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13336 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13337 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13338 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13339 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13340 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13341 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13342 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13343 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13344 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13345 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13346 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13347 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13348 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13349 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13350 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13351 STACK_DIRECTION, now set by autoconf.
13352
133532002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13354
13355 * dispnew.c (marginal_area_string): Sort arguments.
13356
13357 * dispextern.h (marginal_area_string): Add prototype.
13358
133592002-04-13 Richard M. Stallman <rms@gnu.org>
13360
13361 * fileio.c (Finsert_file_contents):
13362 Don't call temp_output_buffer_setup--do just part, by hand.
13363
13364 * coding.c (run_pre_post_conversion_on_str):
13365 Don't call temp_output_buffer_setup--do just part, by hand.
13366
13367 * keyboard.c (command_loop_1): Don't call start_hourglass
13368 or cancel_hourglass when executing a macro.
13369
13370 * marker.c (count_markers): New function.
13371
13372 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13373 grow without limit. Move recently used elements to the front.
13374
133752002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13376
13377 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13378
133792002-04-12 Gerd Moellmann <gerd@gnu.org>
13380
13381 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13382 rows marginal areas.
13383 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13384 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13385
13386 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13387
133882002-04-12 Dave Love <fx@gnu.org>
13389
13390 * dispnew.c (marginal_area_string): New.
13391
13392 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13393 (Qleft_margin, Qright_margin): Declare.
13394 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13395
13396 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13397 note_mode_line_highlight and extended.
13398
13399 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13400 (make_lispy_event): Deal with mouse events in margins.
13401
134022002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13403
13404 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13405
13406 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13407 than deactivating the mark if tmm is set to `lambda'.
13408 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13409 Use a single event for HELP_EVENT.
13410 (Fexecute_extended_command): Save last_point_position.
13411
134122002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13413
13414 * lisp.h (Fpropertize): Add prototype.
13415
13416 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13417
134182002-04-10 Colin Walters <walters@verbum.org>
13419
13420 * config.in: Add HAVE_SHARED_GAME_DIR.
13421
13422 * callproc.c: (Vgame_score_directory): New variable.
13423 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13424
134252002-04-10 Richard M. Stallman <rms@gnu.org>
13426
13427 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13428
134292002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13430
13431 * minibuf.c (read_minibuf): Use empty_string.
13432 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13433 Short-circuit the search as soon as it "failed".
13434 (Fall_completions): Allow lambda forms and lists of strings for alist.
13435 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13436 when require_match is nil.
13437 (Ftest_completion): Rename from `test_completion' and export to elisp.
13438 Call the predicate also when alist is a list.
13439 Obey Vcompletion_regexp_list.
13440 (do_completion, Fminibuffer_complete_and_exit): Use it.
13441 (Fassoc_string): Rename from `assoc_for_completion'.
13442 Allow list of strings as well and export to elisp.
13443
134442002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13445
13446 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13447
134482002-04-08 Juanma Barranquero <lektu@terra.es>
13449
13450 * w32.c (sys_accept): Don't hide variable `s'.
13451
134522002-04-05 Gerd Moellmann <gerd@gnu.org>
13453
13454 * callint.c (Fcall_interactively): Use INTEGERP instead of
13455 NUMBERP for checking Vhistory_length.
13456
134572002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13458
13459 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13460 Doc fix to reflect it.
13461
134622002-04-04 Richard M. Stallman <rms@gnu.org>
13463
13464 * xdisp.c (display_mode_element): New arg RISKY.
13465 Disregard text props found or specified within a variable
13466 that isn't marked risky-local-variable.
13467 (Qrisky_local_variable): New variable.
13468 (syms_of_xdisp): Init and staticpro it.
13469
134702002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13471
13472 * undo.c (record_point): New fun.
13473 (record_delete, record_insert): Use it.
13474
134752002-04-03 Juanma Barranquero <lektu@terra.es>
13476
13477 * doc.c (Fdocumentation): Add missing parentheses.
13478 (Fdocumentation_property): Likewise.
13479
134802002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13481
13482 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13483 data is 0, just return nil.
13484
134852002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13486
13487 * msdos.c (syms_of_msdos): Fix last change with
13488 mouse_autoselect_window.
13489
134902002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13491
13492 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13493 mouse_autoselect_window.
13494
134952002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13496
13497 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13498 with system-specific keysyms. Use it also for unknown function keys.
13499
13500 * doc.c (reread_doc_file): Return whether reload was attempted.
13501 (Fdocumentation, Fdocumentation_property): Don't try to reload
13502 if the doc is 0 and only ask once.
13503
13504 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13505
135062002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13507
13508 * keyboard.c (read_char): If the event was Qselect_window,
13509 restore timer_idleness_start_time to its previous value.
13510
13511 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13512
135132002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13514
13515 * region-cache.c (new_region_cache): Use BEG.
13516
13517 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13518 Use BEG and BEG_BYTE.
13519
13520 * doc.c (get_doc_string): Return nil if the location is wrong.
13521 (reread_doc_file): New fun.
13522 (Fdocumentation, Fdocumentation_property):
13523 Call it if get_doc_string fails.
13524 (Fsnarf_documentation): Make it work for a dumped Emacs.
13525
13526 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13527 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13528
13529 * charset.c (Fstring): Allow 0 arguments.
13530
13531 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13532
13533 * process.c (DATAGRAM_CONN_P, list_processes_1)
13534 (Fprocess_datagram_address, Fset_process_datagram_address)
13535 (Fset_network_process_options, server_accept_connection):
13536 Fix some int/Lisp_Object confusions (thank you union types).
13537
135382002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13539
13540 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13541
13542 * w32term.c: Likewise.
13543 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13544
13545 * keyboard.c (Qselect_window): New symbol.
13546 (head_table): Use it.
13547 (keys_of_keyboard): Bound select-window event to handle-select-window.
13548 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13549
13550 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13551 (last_window): New variable.
13552 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13553 (note_mouse_movement): Remove reimplemented code in #if 0.
13554 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13555 Emacs windows.
13556
13557 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13558
135592002-03-31 Gerd Moellmann <gerd@gnu.org>
13560
13561 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13562 Callers changed.
13563
135642002-03-30 Richard M. Stallman <rms@gnu.org>
13565
13566 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13567 loop whenever it stops making progress.
13568
13569 * widget.c (set_frame_size): Don't call change_frame_size.
13570
135712002-03-30 Gerd Moellmann <gerd@gnu.org>
13572
13573 * dispnew.c (direct_output_for_insert):
13574 Call mark_window_display_accurate.
13575
135762002-03-29 Jason Rumney <jasonr@gnu.org>
13577
13578 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13579
135802002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13581
13582 * Makefile.in (lread.o): Depend on coding.h.
13583
13584 * lread.c (openp, Fload): Encode the file name before passing it
13585 to `stat', `access', and `emacs_open'.
13586 (openp): GCPRO the encoded file name. Don't recompute Lisp
13587 strings unnecessarily.
13588
135892002-03-29 Kim F. Storm <storm@cua.dk>
13590
13591 * fns.c (Flax_plist_put): Doc fix.
13592
135932002-03-28 Miles Bader <miles@gnu.org>
13594
13595 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13596
135972002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13598
13599 * process.c (set-network-process-options): Add usage.
13600 (make-network-process): Doc fix.
13601
136022002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13603
13604 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13605
136062002-03-26 Richard M. Stallman <rms@gnu.org>
13607
13608 * fns.c (Fsubstring_no_properties): New function.
13609 (Flax_plist_get, Flax_plist_put): New functions.
13610 (syms_of_fns): defsubr them.
13611
13612 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13613 don't test or alter w->update_mode_line.
13614
13615 * window.c (Fdisplay_buffer): Doc fix.
13616
136172002-03-24 Richard M. Stallman <rms@gnu.org>
13618
13619 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13620
136212002-03-24 Gerd Moellmann <gerd@gnu.org>
13622
13623 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13624 (Fdefmacro): Handle `(declare ...)'.
13625 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13626 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13627
136282002-03-24 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13631 (xbm_file_p): Add prototypes.
13632 (xbm_format, xbm_image_p): Sync with xfns.c.
13633 (reflect_byte): New function.
13634 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13635 (xbm_load_image): Create bitmaps with a depth of 1.
13636 (init_xfns): Enable XBM images.
13637
136382002-03-23 Jason Rumney <jasonr@gnu.org>
13639
13640 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13641 correctly. Do not pass up_modifier to keyboard buffer.
13642
13643 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13644
136452002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13646
13647 * Makefile.in (bootstrapclean): New target.
13648 (bootstrap-temacs, bootstrap-doc): Remove.
13649 (bootstrap-emacs): Use a bog-standard `temacs'.
13650 Don't bother to build a DOC file.
13651
13652 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13653
13654 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13655 in temacs even if !CANNOT_DUMP.
13656 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13657
13658 * alloc.c (check_pure_size): Only output a warning.
13659
136602002-03-22 Jason Rumney <jasonr@gnu.org>
13661
13662 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13663 supported.
13664
13665 * w32term.c (zv_bits): Declare as short, for word alignment.
13666 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13667 (syms_of_w32term): Define x-use-underline-position-properties.
13668
13669 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13670 (clear_image_cache): Block input, fix logic, clear matrices in
13671 all frames that share this cache.
13672
136732002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13674
13675 * emacs.c (main): Update the Copyright year in the blurb printed
13676 by "emacs --version".
13677
13678 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13679
13680 * xterm.c (XTread_socket): If XK_ISO_Lock and
13681 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13682 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13683
136842002-03-21 Kim F. Storm <storm@cua.dk>
13685
13686 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13687 menu-bar bindings in keymap and local-map properties _are_ used.
13688 But try keymap property first in accordance with 2002-01-03 patch.
13689 Added comment describing why this is not always reliable.
13690 (tool_bar_items): Ditto for tool-bar.
13691
136922002-03-21 Jason Rumney <jasonr@gnu.org>
13693
13694 * w32fns.c (x_clear_image_1): Disable color table code.
13695
136962002-03-21 Kim F. Storm <storm@cua.dk>
13697
13698 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13699 removed the wrong version of the DEFUN macro; fixed it.
13700
13701 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13702 Fmember rather than Fmemq).
13703 (Fprovide): Check that subfeatures is a list.
13704
13705 * process.c (QCfeature, QCdatagram): Removed variables.
13706 (QCtype, Qdatagram): New variables.
13707 (network_process_featurep): Removed function.
13708 (Fmake_network_process): Removed :feature check.
13709 Use :type 'datagram instead of :datagram t to create a datagram
13710 socket. This allows us to add other connection types (e.g. raw
13711 sockets) later in a consistent manner.
13712 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13713 supported subfeatures for feature make-network-process.
13714 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13715 Intern and staticpro QCtype and Qdatagram.
13716 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13717
13718 * xfns.c: (QCtype): Remove duplicate declaration and
13719 initialization (is now declared in process.c).
13720
13721 * w32fns.c: (QCtype): Remove duplicate declaration and
13722 initialization (is now declared in process.c).
13723
137242002-03-21 Richard M. Stallman <rms@gnu.org>
13725
13726 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13727 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13728 when jumping to `fail' to avoid undoing reg changes in the
13729 last iteration of the loop.
13730 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13731
13732 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13733 Depend on process.h.
13734
137352002-03-20 Jason Rumney <jasonr@gnu.org>
13736
13737 Most of the following changes are still conditional on HAVE_IMAGES
13738 which is not set by default on Windows.
13739
13740 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13741
13742 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13743 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13744 (four_corners_best, x_clear_image_1, x_clear_image)
13745 (x_alloc_image_color, postprocess_image)
13746 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13747 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13748 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13749
13750 * w32gui.h (struct XImage): Define.
13751
13752 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13753 extract mouse co-ordinates.
13754
137552002-03-20 Jason Rumney <jasonr@gnu.org>
13756
13757 * w32.c (init_winsock): Dynamically load new server and UDP
13758 socket functions.
13759 (socket_to_fd): New function.
13760 (sys_socket): Use it.
13761 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13762 (sys_recvfrom, sys_sendto): New wrapper functions.
13763
13764 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13765 and initialization.
13766
13767 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13768
137692002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13770
13771 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13772 Don't use "sun" as a variable, it's a predefined constant on Sun
13773 machines.
13774
137752002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13776
13777 * bytecode.c (Fbyte_code): Revert last change.
13778
137792002-03-19 Kim F. Storm <storm@cua.dk>
13780
13781 * makefile.w32-in (LIBS): Add $(WSOCK32).
13782 From David Ponce <dponce@voila.fr>.
13783
137842002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13785
13786 * process.c (wait_reading_process_input): Move variables `pname'
13787 and `pnamelen' down where they are used.
13788
13789 * bytecode.c (Fbyte_code): Discard unused computed value to
13790 prevent gcc warning.
13791
13792 * lisp.h (Fplist_member): Add prototype.
13793
137942002-03-18 Kim F. Storm <storm@cua.dk>
13795
13796 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13797 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13798
13799 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13800 Remove explicit GNU_LINUX settings for datagram support.
13801
138022002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13803
13804 * process.c (Fmake_network_process): Remove unused variable `sa'.
13805 Doc fix. Add usage:.
13806 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13807
138082002-03-17 Richard M. Stallman <rms@gnu.org>
13809
13810 * xdisp.c (cursor_type_changed): New variable.
13811 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13812 Clear it when clearing windows_or_buffers_changed.
13813 (try_cursor_movement, redisplay_window, try_window_id)
13814 (try_window_reusing_current_matrix): Test cursor_type_changed
13815 along with windows_or_buffers_changed.
13816
13817 * window.h (cursor_type_changed): New variable.
13818
13819 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13820 not update_mode_lines, and always set it to 1.
13821
13822 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13823 if no frames needed redrawing.
13824
138252002-03-17 Kim F. Storm <storm@cua.dk>
13826
13827 The following changes add support for network server processes,
13828 datagram connections, and local (unix) sockets.
13829
13830 * process.h (struct Lisp_Process): New member log.
13831 Doc fix: Member command used to indicate stopped network process.
13832 Doc fix: Member childp contains plist for network process.
13833 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13834
13835 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13836 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13837 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13838 New variables.
13839 (NETCONN1_P): New macro.
13840 (DATAGRAM_SOCKETS): New conditional symbol.
13841 (datagram_address): New array.
13842 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13843 (status_message): Use concat3.
13844 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13845 for a stopped network process.
13846 (Fset_process_buffer): Update contact plist for network process.
13847 (Fset_process_filter): Ditto. Don't enable input for stopped
13848 network processes. Server must listen, even if filter is t.
13849 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13850 New functions.
13851 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13852 (Fprocess_contact): Added KEY argument. Handle datagrams.
13853 (list_processes_1): Optionally show only processes with the query
13854 on exit flag set. Dynamically adjust column widths. Omit tty
13855 column if not needed. Report stopped network processes.
13856 Identify server and datagram network processes.
13857 (Flist_processes): New optional arg `query-only'.
13858 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13859 (conv_lisp_to_sockaddr, set_socket_options)
13860 (network_process_featurep, unwind_request_sigio): New helper functions.
13861 (Fprocess_datagram_address, Fset_process_datagram_address):
13862 (Fset_network_process_options): New lisp functions.
13863 (Fopen_network_stream): Removed. Now defined in simple.el.
13864 (Fmake_network_process): New lisp function. Code is based on previous
13865 Fopen_network_stream, but heavily reworked with new property list based
13866 argument list, support for datagrams, server processes, and local
13867 sockets in addition to old client-only functionality.
13868 (server_accept_connection): New function.
13869 (wait_reading_process_input): Use it to handle incoming connects.
13870 Do not enable input on a new connection if process is stopped.
f63fd14e 13871 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13872 (send_process): Handle datagram sockets.
13873 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13874 network process is indicated by setting command field to t .
13875 (Fprocess_send_eof): No-op if datagram connection.
13876 (Fstatus_notify): Don't read input for a stream server socket or a
13877 stopped network process.
13878 (init_process): Initialize datagram_address array.
13879 (syms_of_process): Intern and staticpro new variables, defsubr new
13880 functions.
13881
138822002-03-16 Jason Rumney <jasonr@gnu.org>
13883
13884 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13885 startup case.
13886
138872002-03-16 Richard M. Stallman <rms@gnu.org>
13888
13889 * xdisp.c (redisplay_internal, redisplay_windows):
13890 Use list_of_error to call internal_condition_case_1.
13891 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13892 so as to catch all errors with no possibility of debugger redisplay.
13893 (list_of_error): New variable.
13894 (syms_of_xdisp): Init and staticpro it.
13895
13896 * print.c (print_object): Delete `\ ' from printed rep of frame.
13897
138982002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13899
13900 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13901 until its implementation is fixed.
13902
139032002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13904
13905 * xfns.c (png_load): Remove unused variable `gamma_str'.
13906
139072002-03-14 Richard M. Stallman <rms@gnu.org>
13908
13909 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13910
139112002-03-14 Miles Bader <miles@gnu.org>
13912
13913 * intervals.c (adjust_for_invis_intang): New function.
13914 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13915 work for dealing with invisible+intangible regions. Do so before
13916 and after both forward and backward movements, to handle both
13917 front-sticky and rear-sticky cases.
13918 * textprop.c (text_property_stickiness): Function moved here from
13919 `editfns.c'.
13920 * intervals.h (text_property_stickiness): New declaration.
13921 * editfns.c (char_property_eq): Function removed.
13922 (text_property_stickiness): Function moved to `textprop.c'.
13923
139242002-03-13 Jason Rumney <jasonr@gnu.org>
13925
13926 * config.in: Add STRFTIME_NO_POSIX2.
13927
13928 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13929 and %OX when underlying strftime does not.
13930
139312002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13932
13933 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13934 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13935 line) to avoid annoying flicker.
13936 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13937 (XTread_socket): Mark it static.
13938
13939 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13940
139412002-03-13 Kim F. Storm <storm@cua.dk>
13942
13943 * puresize.h (BASE_PURESIZE): Increase to 775000.
13944
139452002-03-12 Juanma Barranquero <lektu@terra.es>
13946
13947 * editfns.c (syms_of_editfns): Fix typo.
13948
139492002-03-12 Gerd Moellmann <gerd@gnu.org>
13950
13951 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13952 Include termopt.h for interrupt_input.
13953
139542002-03-11 Andreas Schwab <schwab@suse.de>
13955
13956 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13957
139582002-03-11 Gerd Moellmann <gerd@gnu.org>
13959
13960 * xterm.c (note_mouse_movement): Put code for
13961 x_autoselect_window_p in #if 0.
13962
13963 * lread.c (Fload): Don't assume that message_with_string uses the
13964 string it is given like a C string.
13965
139662002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13967
78819ebb 13968 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13969
13970 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13971 x_session_have_connection.
13972 (x_initialize): Add call to x_session_initialize.
13973
13974 * termhooks.h (enum event_kind): Add save_session_event.
13975
13976 * keyboard.c: Add Emacs event save_session_event.
13977
13978 * emacs.c (main): Add call to syms_of_xsmfns.
13979
78819ebb 13980 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13981
13982 * config.in: Add HAVE_X_SM.
13983
13984 * Makefile.in (LIBXT): Add -lSM -lICE
13985 if HAVE_X_SM and not USE_X_TOOLKIT.
13986 (XOBJ): New file xsmfns.c added.
13987
13988 * xsmfns.c: New file for X session management.
13989
139902002-03-09 Jason Rumney <jasonr@gnu.org>
13991
13992 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13993 read-only when setting modified time.
13994
139952002-03-08 Gerd Moellmann <gerd@gnu.org>
13996
13997 * xdisp.c (move_it_vertically_backward): At the end of the function,
13998 when moving forward by lines, treat terminal frames specially.
13999
14000 * keyboard.c (echo_char): Make sure to add a separator between
14001 keys even if echo_dash hasn't been called.
14002
14003 * xdisp.c: Use new string macros.
14004 (update_echo_area): Pass number of bytes to message3 instead of
14005 number of chars.
14006 (set_message_1): Don't access a string's size_byte directly.
14007 (decode_mode_spec_coding): Use number of bytes of eoltype string
14008 instead number of chars.
14009
14010 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14011
140122002-03-08 Juanma Barranquero <lektu@terra.es>
14013
14014 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14015 24-bit.
14016
140172002-03-06 Jason Rumney <jasonr@gnu.org>
14018
14019 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14020
140212002-03-06 Gerd Moellmann <gerd@gnu.org>
14022
14023 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14024 (cancel_echoing, echo_length, echo_truncate): Changed to
14025 work with new kboard definition.
14026 (echo_now): Use message3_nolog instead of message2_nolog.
14027
14028 * alloc.c (mark_kboards): Mark echo_string.
14029
14030 * keyboard.h (ECHOBUFSIZE): Removed.
14031 (struct kboard): Member echoptr removed, member echobuf renamed
14032 to echo_string.
14033
14034 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14035 message3 instead of message2 to display the message using STRING's
14036 text properties.
14037
140382002-03-05 Andreas Schwab <schwab@suse.de>
14039
14040 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14041
140422002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14043
14044 * frame.c (default-frame-alist): Explain that setting it doesn't
14045 affect existing frames.
14046
140472002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14048
14049 * indent.c (skip_invisible): Fix my brain fart.
14050
14051 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14052
140532002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14054
14055 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14056 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14057 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14058 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14059 and variables to use EMACS_INT instead of just int.
14060
14061 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14062
140632002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14064
14065 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14066 environment, pass it down with corrected value.
14067
140682002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14069
14070 * lread.c (read_filtered_event): Do not call start_hourglass
14071 before returning.
14072
140732002-03-04 Juanma Barranquero <lektu@terra.es>
14074
14075 * w32term.c (x_display_and_set_cursor): Fix typo.
14076
140772002-03-03 Richard M. Stallman <rms@gnu.org>
14078
14079 * fileio.c (Fmake_temp_name): Doc fix.
14080
140812002-03-03 Gary Wong <gtw@gnu.org>
14082
14083 * termcap.c [!emacs]: Replace ospeed for building standalone
14084 libtermcap, for binary compatibility.
14085
14086 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14087
140882002-03-03 Richard M. Stallman <rms@gnu.org>
14089
14090 * xrdb.c (file_p): Rename arg `path' to `filename'.
14091
14092 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14093 only if it is an integer.
14094
14095 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14096 If png_get_sRGB gives an answer, call png_set_gamma
14097 using the default image gamma value.
14098
14099 * lread.c (read1): When reading from a file, default string to
14100 multibyte only if it has some multibyte characters.
14101
14102 * print.c (print_object): Output multibyte chars 128...255
14103 using \x even if ! print_escape_multibyte.
14104
14105 * xdisp.c (display_mode_element): Move the places where
14106 bytepos, charpos, this, and lisp_string are set.
14107 Use lisp_string to set bytepos.
14108
14109 * xdisp.c (redisplay_internal):
14110 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14111
14112 * xdisp.c (display_mode_element): Merge properties specified with
14113 :propertize onto those that come with the string.
14114
141152002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14116
14117 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14118 automatic-hscrolling. Users changed.
14119 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14120 Users changed.
14121 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14122
141232002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14124
14125 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14126
141272002-03-02 Kim F. Storm <storm@cua.dk>
14128
14129 * window.c (Fminibuffer_selected_window): New function.
14130 (syms_of_window): Defsubr it.
14131
141322002-03-01 Kim F. Storm <storm@cua.dk>
14133
14134 * window.h (struct window): New member phys_cursor_width.
14135
14136 * window.c (make_window, replace_window): Init phys_cursor_width.
14137
14138 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14139 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14140
14141 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14142 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14143
14144 * lisp.h (GCPRO6): New macro.
14145
14146 * process.c (Fopen_network_stream): Use GCPRO6.
14147
141482002-03-01 Kim F. Storm <storm@cua.dk>
14149
14150 * process.c (Qconnect, Qfailed): New variables.
14151 (syms_of_process): Intern and staticpro them.
14152 (Fprocess_status): Document connect and failed return values.
14153 [NON_BLOCKING_CONNECT]: New conditional.
14154 (connect_wait_mask, num_pending_connects): New variables.
14155 (status_message): Convert Qfailed status.
14156 (Fopen_network_stream): Added support for non-blocking connect.
14157 New optional args: filter, sentinel, non_blocking. Doc updated.
14158 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14159 (deactivate_process): Handle pending non-blocking connect.
14160 (wait_reading_process_input): Poll for status of non-blocking
14161 connects. Exec sentinel directly when connect succeeds.
14162 (status_notify): Don't read process output if not yet connected.
14163
141642002-02-28 Kim F. Storm <storm@cua.dk>
14165
14166 * window.c: (minibuf_selected_window): Renamed from
14167 Vminibuf_selected_window. Users changed.
14168 (syms_of_window): Staticpro it.
14169
141702002-02-26 Kim F. Storm <storm@cua.dk>
14171
14172 The following changes add a new Vminibuf_selected_window variable
14173 which is similar to Vminibuf_scroll_window, but which is only set
14174 on entry to the minibuffer (from a non-minibuffer window):
14175
14176 * window.c: (Vminibuf_selected_window): New variable.
14177 (struct save_window_data): New member minibuf_selected_window.
14178 (Fset_window_configuration): Restore Vminibuf_selected_window.
14179 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14180 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14181 (compare_window_configurations): Compare minibuf_selected_window.
14182
14183 * window.h: (Vminibuf_selected_window): Declare extern.
14184
14185 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14186 entry to minibuffer or on entry from a non-minibuffer window.
14187
14188 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14189 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14190
14191 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14192 instead of Vminibuf_scroll_window when deciding in which window
14193 the region should be highlighted. Consequently, the region remains
14194 highlighteded even when a completion buffer is also displayed.
14195
141962002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14197
14198 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14199
14200 * xselect.c (Qcompound_text_with_extensions): Renamed from
14201 Qcompound_text_no_extensions.
14202 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14203
142042002-02-26 Juanma Barranquero <lektu@terra.es>
14205
14206 * w32proc.c (syms_of_ntproc): Doc fix.
14207
142082002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14209
14210 * intervals.h: Include "dispextern.h" unconditionally.
14211
142122002-02-24 Jason Rumney <jasonr@gnu.org>
14213
14214 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14215 and disp-table.elc.
14216 (lisp): Add emacs-lisp/backquote.elc.
14217
142182002-02-24 Kim F. Storm <storm@cua.dk>
14219
14220 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14221 The validation of the event type was too strict as it didn't
14222 allow string events; buffer names are used in bindings for
14223 menu-bar-select-buffer (see `menu-bar-update-buffers').
14224
142252002-02-23 Kim F. Storm <storm@cua.dk>
14226
14227 The following changes rework my patch of 2002-02-06 which
14228 added command remapping by entering the commands directly into
14229 the keymaps. Now, command remapping uses an explicit `remap'
14230 prefix in the keymaps, i.e. [remap COMMAND].
14231
14232 * keymap.c (Qremap, remap_command_vector): New variables.
14233 (is_command_symbol): Removed function.
14234 (Fdefine_key): No longer accept a symbol for KEY.
14235 Added validation of [remap COMMAND] argument for KEY.
14236 The DEF is no longer required to be a symbol when remapping a command.
14237 (Fremap_command): New function to remap command through keymaps.
14238 (Flookup_key): Perform command remapping initiated by
14239 Fremap_command directly for speed.
14240 (Fkey_binding): Use Fremap_command for command remapping.
14241 (where_is_internal): Handle new command remapping representation.
14242 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14243 staticpro them. Defsubr Fremap_command.
14244
14245 * keymap.h (Fremap_command): Declare extern.
14246 (is_command_symbol): Remove extern.
14247
14248 * keyboard.c (command_loop_1): Use Fremap_command for command
14249 remapping; now try command remapping for all symbols.
14250
142512002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14252
14253 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14254
142552002-02-23 Jason Rumney <jasonr@gnu.org>
14256
14257 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14258 on the string before encoding it.
14259 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14260 after decoding it.
14261
14262 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14263
142642002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14265
14266 * w32term.c (enter_timestamp): Remove unused static variable to
14267 prevent warning.
14268
14269 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14270
142712002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14272
14273 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14274
14275 * xselect.c (selection_data_to_lisp_data): Fix last change.
14276
142772002-02-22 Jason Rumney <jasonr@gnu.org>
14278
14279 * w32term.h (struct w32_output): New member menu_command_in_progress.
14280
14281 * w32menu.c (menubar_selection_callback): Free the menu and
14282 clear the menu_command_in_progress flag.
14283
14284 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14285 (menu_free_timer): New variable.
14286 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14287 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14288 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14289 menu command is in progress.
14290 <WM_COMMAND>: Set the menu_command_in_progress flag.
14291 Kill any menu_free_timer that is running.
14292
14293 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14294 Call ExtTextOutA rather than ExtTextOut.
14295
142962002-02-22 Eli Zaretskii <eliz@gnu.org>
14297
14298 * puresize.h (BASE_PURESIZE): Increase to 755000.
14299
143002002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14301
14302 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14303 on the string before encoding it.
14304 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14305 after decoding it.
14306
143072002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14308
14309 Support for ICCCM Extended Segments in X selections:
14310
14311 * xselect.c <Qcompound_text_no_extensions>: New variable.
14312 (syms_of_xselect): Intern and staticpro it.
14313 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14314 selection text.
14315 (lisp_data_to_selection_data): If next-selection-coding-system is
14316 compound-text-no-extensions, set the type of selection to be
14317 compound-text.
14318
14319 * xterm.h (x_encode_text): Update prototype.
14320
14321 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14322 callers changed. If SELECTIONP is non-zero, run the
14323 pre-write-conversion function before encoding the selection text.
14324
143252002-02-21 Kim F. Storm <storm@cua.dk>
14326
14327 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14328
14329 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14330 Correct composing of language-change event.
14331
143322002-02-20 Kim F. Storm <storm@cua.dk>
14333
14334 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14335 bindings at PT when building menu (the menu is not updated often
14336 enough for this to work reliable).
14337 (tool_bar_items): Likewise.
14338 (current_active_maps): Removed unused (and buggy) function.
14339
143402002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14341
14342 * xfns.c (gif_load): Use correct width and height for GIF images.
14343
143442002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14345
14346 * floatfns.c (Fatan): Accept an optional second arg and call
14347 atan2 if passed 2 args.
14348
143492002-02-18 Jason Rumney <jasonr@gnu.org>
14350
14351 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14352
143532002-02-17 Jason Rumney <jasonr@gnu.org>
14354
14355 * w32term.c (x_autoselect_window_p): New variable.
14356 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14357 (note_mouse_movement): Use it.
14358
14359 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14360
14361 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14362
14363 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14364 New variables.
14365 (syms_of_w32fns): Intern and staticpro them.
14366 (x_frame_parms) <"fullscreen">: New parameter.
14367 (x_fullscreen_move, x_set_fullscreen): New functions.
14368 (x_set_frame_parameters): Support Qfullscreen.
14369 (x_real_positions): Save x/y_pixels_diff frame params.
14370 (x_figure_window_size): Support full-screen frames.
14371 (Fx_create_frame): Default the fullscreen parameter.
14372
14373 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14374 (x_fullscreen_adjust): New functions.
14375 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14376 fullscreen. Call x_check_fullscreen_move, and set the
14377 want_fullscreen member of output_data.w32
14378 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14379
14380 * w32term.h: New enum for FULLSCREEN_* constants.
14381 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14382 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14383 (x-fullscreen-adjust): New prototype.
14384
143852002-02-17 Kim F. Storm <storm@cua.dk>
14386
14387 * frame.c: (Vmouse_highlight): New variable.
14388 (syms_of_frame): DEFVAR_LISP it.
14389
14390 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14391
048addec 14392 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14393
048addec
JD
14394 * xterm.c (disable_mouse_highlight): Removed variable.
14395 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14396 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14397 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14398 and on after keyboard input.
14399 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14400
048addec 14401 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14402
048addec
JD
14403 * msdos.c (disable_mouse_highlight): Removed variable.
14404 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14405 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14406 (internal_terminal_init): Initialize mouse_face_hidden.
14407 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14408 and on after keyboard input.
4f1b1854 14409
048addec 14410 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14411
048addec
JD
14412 * w32term.c (disable_mouse_highlight): Removed variable.
14413 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14414 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14415 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14416 and on after keyboard input.
14417 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14418
048addec 144192002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14420
048addec
JD
14421 * msdos.c (last_mouse_window): New variable.
14422 (dos_rawgetc): Fix last change--if the mouse is in the same window
14423 as recorded in last_mouse_window, don't select this window.
5cb6905d 14424
048addec 14425 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14426
048addec
JD
14427 * msdos.c (x_autoselect_window_p): New variable.
14428 (syms_of_msdos): Defvar it.
14429 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14430 which the last mouse movement occured, unless it is already selected.
437dfb9f 14431
048addec
JD
14432 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14433 New variables.
14434 (syms_of_xdisp): DEVFAR them.
14435 (hscroll_window_tree): Use automatic_hscroll_margin and
14436 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14437
048addec 144382002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14439
048addec
JD
14440 * xterm.c (x-autoselect-window): New variable.
14441 (note_mouse_movement): Use it.
9f696a00 14442
048addec 14443 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14444
048addec 144452002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14446
bfa02563 14447 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14448
048addec 14449 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14450
048addec 144512002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14452
048addec 14453 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14454
048addec
JD
14455 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14456 (Vx_super_keysym): New variables.
14457 (syms_of_xterm): DEFVAR_LISP them.
14458 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14459 variables to determine which keys to use for the various modifiers.
a474d59c 14460
048addec 144612002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14462
048addec
JD
14463 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14464 (mode_line_in_non_selected_windows): New variable.
14465 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14466
048addec
JD
14467 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14468 Use mode_line_in_non_selected_windows.
14469 (mode_line_in_non_selected_windows): Declare extern.
14470 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14471
048addec 144722002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14473
048addec
JD
14474 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14475 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14476 (Fclear_this_command_keys): Doc fixes.
2d10309f 14477
048addec
JD
14478 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14479 (update_face_from_frame_parameter): Increment face_change_count
14480 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14481
048addec
JD
14482 * xdisp.c (QCpropertize): New variable.
14483 (mode_line_proptrans_alist): New variable.
14484 (display_mode_element): New arg PROPS; all calls changed.
14485 Implement this, for strings.
14486 Handle literal output of strings by sharing the
14487 main-line code for strings, using local var `literal'.
14488 Handle :propertize feature.
14489 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14490 mode_line_proptrans_alist.
0b1e6b54 14491
048addec 144922002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14493
048addec
JD
14494 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14495 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14496
048addec
JD
14497 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14498 (CURRENT_MODE_LINE_FACE_ID): Use it.
14499 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14500
048addec
JD
14501 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14502 to get mode line face.
e17144de 14503
048addec 145042002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14505
048addec
JD
14506 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14507 variables; cus-start.el doesn't need them anymore.
44368f8f 14508
048addec 145092002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14510
048addec
JD
14511 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14512 reduction. This fixes a display problem where stray newlines were
14513 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14514
048addec 145152002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14516
048addec 14517 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14518
048addec 14519 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14520
048addec 145212002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14522
048addec
JD
14523 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14524 match each other.
14525 (w32_load_system_font): Prevent Cleartype fonts from loading.
14526 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14527
048addec 145282002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14529
048addec
JD
14530 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14531 (CURRENT_MODE_LINE_HEIGHT): Use it.
14532 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14533
048addec
JD
14534 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14535 (pos_visible_p, handle_face_prop): Likewise.
14536 (display_mode_lines): Likewise, but for the real selected window.
14537 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14538
048addec
JD
14539 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14540 in non-selected windows.
14541 (realize_basic_faces): Realize it.
14542 (syms_of_term): Intern and staticpro it.
308dd672 14543
048addec 145442002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14545
048addec
JD
14546 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14547 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14548
048addec 145492002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14550
048addec
JD
14551 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14552 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14553
048addec 14554 * floatfns.c (Fround): Doc fix.
3c1e6b46 14555
048addec 145562002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14557
048addec 14558 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14559
048addec 145602002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14561
048addec 14562 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14563
048addec 145642002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14565
048addec
JD
14566 * keymap.c (where_is_internal): Only check whether definition is
14567 remapped if it fulfills is_command_symbol.
0065bb74 14568
048addec 145692002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14570
048addec 14571 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14572
048addec 14573 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14574
048addec 145752002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14576
048addec
JD
14577 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14578 defining command remapping. Doc updated.
14579 (Flookup_key): Remap command through keymap if KEY is a symbol.
14580 (is_command_symbol): New function.
14581 (Fkey_binding): Use it. New optional argument NO-REMAP.
14582 Doc updated. Callers changed. Perform command remapping via
14583 recursive call unless that arg is non-nil.
14584 (where_is_internal): New argument no_remap. Callers changed.
14585 Call recursively to find original key bindings for a remapped
14586 comand unless that arg is non-nil.
14587 (Fwhere_is_internal): New optional argument NO-REMAP.
14588 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14589
048addec
JD
14590 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14591 (is_command_symbol): Added prototype.
0d8466cc 14592
048addec
JD
14593 * keyboard.c (Vthis_original_command): New variable.
14594 (syms_of_keyboard): DEFVAR_LISP it.
14595 (command_loop_1): Set it, and perform command remapping.
15fff01d 14596
048addec 145972002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14598
048addec 14599 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14600
048addec 146012002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14602
048addec 14603 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14604
048addec 146052002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14606
048addec 14607 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14608
048addec 146092002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14610
048addec 14611 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14612
048addec 146132002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14614
048addec 14615 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14616
048addec
JD
14617 * lread.c (read1): Redesign strategy for force_multibyte and
14618 force_singlebyte. Now is_multibyte records whether read_buffer
14619 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14620
048addec 146212002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14622
048addec
JD
14623 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14624 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14625
048addec 146262002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14627
048addec
JD
14628 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14629 latter never being defined on GNU/Linux.
749f499f 14630
048addec 146312002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14632
048addec
JD
14633 * xfaces.c (realize_default_face): Don't set the weight and slant of
14634 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14635
048addec 146362002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14637
048addec
JD
14638 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14639 Call cancel_hourglass unconditionally.
d0fd26dd 14640
048addec
JD
14641 * eval.c (Fsignal): Remove duplicated declaration of
14642 the variable `display_hourglass_p'.
b4c45162 14643
048addec 146442002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14645
048addec 14646 * editfns.c (region_limit): Nicer error message.
c95eaa61 14647
048addec
JD
14648 * coding.c (decode_composition_emacs_mule):
14649 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14650
048addec
JD
14651 * callint.c (check_mark): New arg to specify clearer error message.
14652 Callers changed.
c95eaa61 14653
048addec 146542002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14655
048addec 14656 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14657
048addec 146582002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14659
048addec
JD
14660 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14661 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14662 Fix doc-strings.
c95eaa61 14663
048addec 146642002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14665
048addec 14666 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14667
048addec
JD
14668 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14669 and scroll_up_aggressively.
c95eaa61 14670
048addec 146712002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14672
048addec 14673 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14674
048addec 146752002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14676
048addec
JD
14677 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14678 (Fprevious_property_change, Fprevious_single_property_change):
14679 Stay within the narrowed-buffer boundaries.
e2c3786a 14680
048addec 146812002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14682
048addec
JD
14683 * term.c (Ftty_display_color_cells): New function.
14684 (syms_of_term): Defsubr it.
14685 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14686 argument name to DISPLAY. Doc fix.
bf794306 14687
048addec
JD
14688 * dispextern.h: Add prototype for set_tty_color_mode and
14689 tty_setup_colors.
bf794306 14690
048addec 146912002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14692
048addec
JD
14693 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14694 If region left to draw is not what was expected, mark the frame as
14695 garbaged.
62582985 14696
048addec
JD
14697 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14698 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14699
048addec 147002002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14701
048addec
JD
14702 * w32term.c (x_update_window_begin): Only hide caret if
14703 w32_use_visible_system_caret is set.
14704 (x_update_window_end): Only show caret if
14705 w32_use_visible_system_caret is set.
14706 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14707
048addec 14708 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14709
048addec 147102002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14711
048addec
JD
14712 * unexelf.c (unexec): Define n so as to cause compilation error
14713 for the code where people have often written n instead of nn.
1e9a6186 14714
048addec 14715 * .gdbinit (hookpost-run): Defined.
1e9a6186 14716
048addec 147172002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14718
048addec 14719 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14720
048addec 147212002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14722
048addec
JD
14723 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14724 if fullscreen is being set.
7c75be36 14725
048addec 147262002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14727
048addec
JD
14728 * minibuf.c (Fminibuffer_contents)
14729 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14730 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14731
048addec 147322002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14733
048addec 14734 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14735
048addec 147362002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14737
048addec
JD
14738 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14739 height before comparison.
14740 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14741
048addec 147422002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14743
048addec
JD
14744 * w32term.c (w32_system_caret_width): Remove.
14745 (w32_use_visible_system_caret): New user flag.
14746 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14747 Windows reports a screen reader running.
14748 (x_update_window_begin): Hide the system caret.
14749 (x_update_window_end): Show the system caret.
14750 (x_display_and_set_cursor): Don't draw a cursor when
14751 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14752
048addec
JD
14753 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14754 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14755 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14756 the user requests it. Use system default width when creating.
14757 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14758
048addec
JD
14759 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14760 New window messages.
905cc05a 14761
048addec 147622002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14763
048addec 14764 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14765
048addec 147662002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14767
048addec 14768 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14769
048addec 147702002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14771
048addec 14772 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14773
048addec 147742002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14775
048addec
JD
14776 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14777 that Windows returns. If a double check fails, try to guess how
14778 ExtTextOut is going to act.
4d0fa4f3 14779
048addec
JD
14780 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14781 in place of stricmp.
14782 (w32_list_synthesized_fonts): Removed.
14783 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14784 (struct enumfont_t): New element; list.
14785 (enum_font_cb2): List all style and charset variations of a font.
14786 (Fw32_select_font): New optional argument; include_proportional.
14787 Exclude vertical fonts. Exclude proportional fonts unless
14788 include_proportional is non-nil.
14789 (w32_enable_synthesized_fonts): Change to a boolean.
14790 (Fw32_send_sys_command): Doc fix.
493faf20 14791
048addec 147922002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14793
048addec
JD
14794 * dispnew.c (update_frame): Move the variable `tem' to the block
14795 where it is used.
4971e491 14796
048addec 147972002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14798
048addec
JD
14799 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14800 call to face-set-after-frame-default.
4971e491 14801
048addec 148022002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14803
048addec
JD
14804 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14805 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14806
048addec 148072002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14808
048addec
JD
14809 * window.c (enlarge_window): When exceeding size of parent,
14810 directly delete all the siblings instead of trying to resize it.
201c831a 14811
048addec 148122002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14813
048addec 14814 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14815
048addec 148162002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14817
048addec 14818 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14819
048addec 148202002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14821
048addec
JD
14822 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14823 is invisible. This can happen if cursor is on top line of a
14824 window, and we switch to a buffer with a header line.
d77fbc16 14825
048addec 14826 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14827
048addec 148282002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14829
048addec
JD
14830 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14831 `dont_resize' only when used.
61e3b944 14832
048addec 14833 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14834
048addec 148352002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14836
048addec
JD
14837 * xdisp.c (display_mode_element): When computing charpos, depend
14838 on multibyteness of elt, not the text in field.
8af01033 14839
048addec 148402002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14841
048addec
JD
14842 * buffer.c (Fkill_all_local_variables):
14843 Increment `update_mode_lines' only once.
7363986a 14844
048addec 148452002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14846
048addec
JD
14847 * lisp.h (adjust_after_replace_noundo)
14848 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14849
048addec 14850 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14851
048addec 148522002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14853
048addec
JD
14854 Support for the --color command-line argument and tty-color-mode
14855 frame parameter:
f1a85b89 14856
048addec
JD
14857 * term.c (tty_default_color_capabilities, tty_setup_colors)
14858 (set_tty_color_mode): New functions.
14859 (term_init): Call tty_default_color_capabilities.
14860 (Qtty_color_mode_alist): New variable.
14861 (syms_of_term): Intern and staticpro it.
f1a85b89 14862
048addec
JD
14863 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14864 frames.
14865 (do_switch_frame): For termcap frames, switch the tty
14866 color mode as specified by the frame's parameters.
14867 (Qtty_color_mode): New variable.
14868 (syms_of_frame): Intern and staticpro it.
3a62677f 14869
048addec
JD
14870 * emacs.c (USAGE2): Add the --color option.
14871 (standard_args): Ditto.
72244db2 14872
048addec
JD
148732002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14874
14875 * xterm.h (struct x_output): New members want_fullscreen,
14876 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14877 y_pixels_outer_diff.
14878 New enum for FULLSCREEN_* constants.
14879 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14880 is NULL.
14881 (x_fullscreen_adjust): Add prototype.
3a62677f 14882
048addec
JD
14883 * emacs.c (USAGE2): Add the new full-screen arguments.
14884 (standard_args): Ditto.
3a62677f 14885
048addec
JD
14886 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14887 New variables.
14888 (syms_of_xfns): Intern and staticpro them.
14889 (x_frame_parms) <"fullscreen">: New parameter.
14890 (x_fullscreen_move, x_set_fullscreen): New functions.
14891 (x_set_frame_parameters): Support for Qfullscreen.
14892 (x_real_positions): More accurate computation of the frame position.
14893 (x_figure_window_size): Support full-screen frames.
14894 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14895
048addec
JD
14896 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14897 (XTread_socket) <Expose>: Call x_check_fullscreen.
14898 <ConfigureNotify>: Don't resize to fullscreen.
14899 Call x_check_fullscreen_move, and set the want_fullscreen member of
14900 output_data.x.
3a62677f 14901
048addec 149022002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14903
048addec
JD
14904 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14905 for mice with more than 3 buttons.
b8523839 14906
048addec
JD
14907 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14908 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14909
048addec
JD
14910 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14911 (syms_of_w32fns): DEFVAR_BOOL it.
14912 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14913
048addec 149142002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14915
048addec 14916 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14917
048addec 149182002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14919
048addec 14920 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14921
048addec 149222002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14923
048addec
JD
14924 * .gdbinit (xbuffer): Remove address operator since data is now a
14925 pointer.
c93674bb 14926
048addec 149272002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14928
048addec 14929 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14930
048addec 14931 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14932
048addec 149332002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14934
048addec
JD
14935 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14936 when checking for multiple frames.
91175673 14937
048addec 149382002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14939
048addec
JD
14940 * window.c (delete_window): Rewrite the code for changing the
14941 selected window to handle the case where WINDOW is not a leaf.
91175673 14942
048addec 149432002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14944
048addec
JD
14945 * process.c (send_process): Set src_multibyte to 1 after the call
14946 top setup_coding_system, not before the call.
e0fead5d 14947
048addec 149482002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14949
048addec
JD
14950 * xmenu.c (set_frame_menubar, xmenu_show):
14951 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14952
048addec
JD
14953 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14954 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14955
048addec 149562002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14957
048addec 14958 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14959
048addec 14960 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14961
048addec 14962 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14963
048addec 149642002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14965
048addec
JD
14966 * insdel.c (make_gap_larger): Make sure buffer size does not
14967 overflow range of int.
62854fe2 14968
048addec 149692002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14970
048addec
JD
14971 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14972 OVERLAPS_P.
656f46bb 14973
048addec 14974 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14975
048addec
JD
14976 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14977 to the left or to the right of the pointer, put it against
14978 the left screen edge.
14979 (x_frame_parms): Add missing braces around initializer.
036e218d 14980
048addec
JD
14981 * w32term.c (x_setup_relief_colors): Don't compute an image's
14982 background color if it doesn't have a Pixmap.
14983 (notice_overwritten_cursor): Don't depend on
14984 output_cursor and updated_area. Compare pixel coordinates with
14985 window's cursor pixel coordinates.
14986 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14987 Call notice_overwritten_cursor with new arg list.
14988 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14989 unconditionally.
14990 (x_draw_image_relief): Use predefined macro instead of
14991 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14992
048addec 14993 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14994
048addec 149952002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14996
048addec 14997 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14998
048addec 149992002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15000
048addec
JD
15001 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15002 (Fkey_binding): Try the `keymap' property map first.
15003 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15004 minor mode bindings.
90647b07 15005
048addec 150062002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15007
048addec 15008 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 15009
048addec 150102002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15011
048addec
JD
15012 * keyboard.c (read_key_sequence): Handle the keymap property
15013 before minor mode maps.
9fbc32aa 15014
048addec
JD
15015 * editfns.c (Fformat): Update thissize from field_width
15016 based on the actual width, in the string case.
036e218d 15017
048addec 150182002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15019
048addec
JD
15020 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15021 when used as truth value to prevent gcc warnings.
9fbc32aa 15022
048addec
JD
15023 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15024 * w32proc.c: Include <config.h>.
9fbc32aa 15025
048addec 150262002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15027
048addec
JD
15028 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15029 not EMACS_INT, to make them compatible with DEFVAR_INT.
15030 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15031
048addec 150322002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15033
048addec
JD
15034 * print.c (print_object): Test print_escape_nonascii only for
15035 unibyte strings.
15036 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15037 when outputting to a multibyte buffer.
9fbc32aa 15038
048addec 150392001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15040
048addec
JD
15041 * print.c (print_object): In multibyte string, use hex escapes.
15042 Use octal only for unibyte strings.
15043 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15044
048addec
JD
15045 * lread.c (read_escape): New arg BYTEREP for reporting whether
15046 escape forces unibyte or multibyte.
15047 (read1): When reading a string, take note of that info.
0142178a 15048
048addec 150492001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15050
048addec
JD
15051 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15052 comparison to test lisp value returned by Fget.
d4824a5d 15053
048addec 150542001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15055
048addec 15056 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15057
048addec 15058 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15059
048addec
JD
15060 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15061 Handle modifier bits. Correct typo in error message.
99e380ee 15062
048addec 150632001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15064
048addec
JD
15065 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15066 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15067 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15068 Update calls to Fdefine_abbrev.
15069 (write_abbrev): Update for changed data format.
15070 Don't list "system" abbrevs.
15071 (Fexpand_abbrev): Update use count with new data format.
15072 (describe_abbrev): Update for changed data format.
15073 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15074
048addec 15075 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15076
048addec 15077 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15078
048addec
JD
15079 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15080 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15081
048addec
JD
15082 * keymap.c (Flookup_key): Error message if key has wrong data type.
15083 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15084 (exclude_key): New variable.
59a86c99 15085
048addec 150862001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15087
048addec
JD
15088 * xterm.c (x_setup_relief_colors): Don't compute an image's
15089 background color if it doesn't have a Pixmap.
eb77a5f4 15090
048addec
JD
15091 * xterm.c (notice_overwritten_cursor): Don't depend on
15092 output_cursor and updated_area. Compare pixel coordinates with
15093 window's cursor pixel coordinates.
15094 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15095 Call notice_overwritten_cursor with new arg list.
15096 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15097 unconditionally.
eb77a5f4 15098
048addec
JD
15099 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15100 height of the cursor line to the amount to scroll.
eb77a5f4 15101
048addec 151022001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15103
048addec
JD
15104 * intervals.c (set_point_both): The position after an invisible,
15105 intangible character is not an acceptable stopping point.
bb313871 15106
048addec 151072001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15108
048addec
JD
15109 * window.c (enlarge_window): In new preserve_before code, convert
15110 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15111
048addec 151122001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15113
048addec 15114 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15115
048addec 151162001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15117
048addec
JD
15118 * keyboard.c (record_char): Ignore duplicate help-echo events only
15119 separated by mouse-movement. When tracking mouse, only record
15120 first and last mouse-movement event in same window.
15121 Don't record mouse-movement events in keyboard macros.
3ce081f5 15122
048addec 151232001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15124
048addec
JD
15125 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15126 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15127
048addec
JD
15128 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15129 instead of Fstring_as_unibyte.
9fabb2f5 15130
048addec 151312001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15132
048addec 15133 The following changes remove mocklisp support:
9fabb2f5 15134
048addec 15135 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15136
048addec
JD
15137 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15138 `Qmocklisp' and `Qmocklisp_arguments'.
15139 Remove prototype of syms_of_mocklisp.
2fa0eedf 15140
048addec 15141 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15142
048addec
JD
15143 * callint.c: Do not include mocklisp.h.
15144 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15145
048addec
JD
15146 * eval.c: Remove variables `Qmocklisp_arguments',
15147 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15148 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15149 Do not test for mocklisp case.
15150 (Fwhile): Remove unused variable `tem'.
15151 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15152
048addec 15153 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15154
048addec 15155 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15156
048addec 15157 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15158
048addec 151592001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15160
048addec
JD
15161 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15162 to the left or to the right of the pointer, put it against
15163 the left screen edge.
6108b49c 15164
048addec 151652001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15166
048addec
JD
15167 * Makefile.in (distclean): Remove .gdbinit if we are building
15168 outside the source tree.
5eea19a4 15169
048addec 151702001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15171
048addec 15172 * w32.c (emacs_root_dir): New function.
5eea19a4 15173
048addec 15174 * msdos.c (emacs_root_dir): New function.
5eea19a4 15175
048addec
JD
15176 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15177 of the current drive as the fallback for default_directory.
438e57dd 15178
048addec
JD
15179 * dired.c (file_name_completion): Run the elements of
15180 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15181
048addec
JD
15182 * lisp.h (scmp): Remove prototype, since it's now a static
15183 function private to dired.c.
c88e5347 15184
048addec 151852001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15186
048addec
JD
15187 * dired.c (scmp): Function moved from minibuf.c.
15188 Delete multibyte handling--used only on encoded strings.
59ce1461 15189
048addec 15190 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15191
048addec 15192 * fns.c (merge): Add QUIT call.
59ce1461 15193
048addec 151942001-12-18 Dave Love <fx@gnu.org>
8727d588 15195
048addec
JD
15196 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15197 language/georgian.el.
8727d588 15198
048addec 151992001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15200
048addec
JD
15201 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15202 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15203
048addec 152042001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15205
048addec
JD
15206 * xdisp.c (window_box_height): Do not return negative values.
15207 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15208
048addec 15209 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15210
048addec 15211 * term.c (keys): Likewise.
deece6f5 15212
048addec 15213 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15214
048addec 152152001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15216
048addec
JD
15217 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15218 patch (COMPOSING_P, not COMPOSING).
28ff4293 15219
048addec 152202001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15221
048addec 15222 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15223
048addec
JD
15224 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15225 before calling decode_coding.
9b46de40 15226
048addec 15227 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15228
048addec
JD
15229 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15230 instead of only for COMPOSITION_DISABLED.
9b46de40 15231
048addec 152322001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15233
048addec 15234 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15235
048addec 15236 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15237
048addec
JD
15238 * buffer.h (struct buffer): New field `display_error_modiff'.
15239 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15240
048addec 15241 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15242
048addec
JD
15243 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15244 Call redisplay_window, but not if display_error_modiff field says no.
15245 (redisplay_window_error): New function.
15246 (displayed_buffer): New variable.
15247 (redisplay_internal, redisplay_windows): Call the new functions
15248 instead of redisplay_window directly.
2cd23960 15249
048addec 152502001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15251
048addec 15252 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15253
048addec 152542001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15255
048addec 15256 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15257 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15258 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15259
048addec 152602001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15261
048addec
JD
15262 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15263 parameter have a numeric value all the time.
f6fa0866 15264
048addec 15265 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15266
048addec 152672001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15268
048addec 15269 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15270
048addec
JD
15271 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15272 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15273
048addec 152742001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15275
048addec
JD
15276 * xdisp.c (move_it_vertically_backward): Change heuristic
15277 for the case that we didn't move far enough initially.
91c153e2 15278
048addec
JD
15279 * window.c (Frecenter): Simplify computation in the case of window
15280 system frames and ARG < 0; use window_box_height.
65b7d3e7 15281
048addec 152822001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15283
048addec
JD
15284 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15285 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15286
048addec 152872001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15288
048addec
JD
15289 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15290 arg is negative.
be676094 15291
048addec 152922001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15293
048addec
JD
15294 * m/hp800.h: Split the __hpux conditional into the parts
15295 that are right for GNU/Linux too and the parts that are not.
15296 Use the former if GNU_LINUX.
15297 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15298
048addec 15299 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15300
048addec 153012001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15302
048addec
JD
15303 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15304 `new style' [w/`doc:' keyword].
032a857d 15305
048addec 153062001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15307
048addec
JD
15308 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15309 before using.
b6270150 15310
048addec 153112001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15312
048addec
JD
15313 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15314 keyword].
98cbb9fa 15315
048addec 153162001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15317
048addec 15318 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15319
048addec 15320 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15321
048addec 153222001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15323
048addec 15324 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15325 Add comment to explain where the struct came from.
048addec
JD
15326 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15327 (add_menu_item): Process pop-up menus first to avoid memory leak.
15328 (add_menu_item, w32_menu_display_help): Use `help' field as
15329 Lisp_Object.
15330 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15331
048addec 153322001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15333
048addec 15334 * COPYING: Moved back.
fa336b91 15335
048addec
JD
15336 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15337 Add parentheses around && within ||.
077907d4 15338
048addec 15339 * indent.c (compute_motion): Likewise.
aa2af83a 15340
048addec 15341 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15342
048addec
JD
15343 * coding.c (setup_coding_system, shrink_encoding_region)
15344 (Fdecode_sjis_char): Likewise.
60a653f1 15345
048addec 153462001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15347
048addec
JD
15348 * xdisp.c (display_mode_element): Don't read past end of string if
15349 it ends with '%'.
60a653f1 15350
048addec
JD
15351 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15352 can hold.
60a653f1 15353
048addec
JD
15354 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15355 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15356 type changed to Lisp_Object.
15357 (syms_of_data): DEFVAR_LISP them.
60a653f1 15358
048addec 153592001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15360
048addec
JD
15361 * callproc.c (init_callproc): Set Vdata_directory based on the source
15362 location whenever Emacs was run uninstalled.
60a653f1 15363
048addec 153642001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15365
048addec
JD
15366 * config.in (HAVE_WORKING_VFORK): New #undefs.
15367 * process.c (create_process):
15368 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15369 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15370 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15371 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15372 * m/intel386.h (HAVE_VFORK): Likewise.
15373 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15374 * m/mips.h (HAVE_VFORK): Likewise.
15375 * s/freebsd.h (vfork): Remove #define.
15376 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15377 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15378
048addec 153792001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15380
048addec
JD
15381 * s/hpux10.h (random): Add undef.
15382 (HAVE_RANDOM): Define it just once.
60a653f1 15383
048addec 153842001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15385
048addec 15386 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15387
048addec 153882001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15389
048addec
JD
15390 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15391 scroll bars of the frame before deleting the frame itself. If the
15392 frame has a widget, delete the frame with XtDestroyWidget, and do
15393 not call XDestroyWindow before that.
60a653f1 15394
048addec 153952001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15396
048addec 15397 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15398
048addec 15399 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15400
048addec 154012001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15402
048addec
JD
15403 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15404 excessively large.
60a653f1 15405
048addec
JD
15406 * insdel.c (make_gap_larger): New function.
15407 (make_gap_smaller): New function.
15408 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15409 Call make_gap_smaller if arg is negative.
60a653f1 15410
048addec 154112001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15412
048addec
JD
15413 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15414 Pass a dummy argument when calling interrupt_signal.
15415 (parse_menu_item): Mark disabled items before checking for empty def.
15416 (read_char_minibuf_menu_prompt): Make safety more visible.
15417 (read_key_sequence): Add a `first_unbound' variable.
15418 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15419 unbound prefix as soon as we can detect it.
60a653f1 15420
048addec
JD
15421 * doc.c (Fsnarf_documentation): Add prototype.
15422 (get_doc_string): Handle negative arguments.
15423 (Fdocumentation): Use AREF and ASIZE.
15424 Move the calls to get_doc_string to a single place.
15425 Don't confuse an interactive-spec for a docstring reference.
15426 (Fdocumentation_property): Take advantage of the fact that
15427 get_doc_string now ignores the sign of the docstring position.
60a653f1 15428
048addec 15429 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15430
048addec 154312001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15432
a64387ee 15433 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15434
048addec 154352001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15436
048addec
JD
15437 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15438 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15439
048addec 154402001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15441
048addec
JD
15442 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15443 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15444
048addec 15445 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15446
048addec 154472001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15448
048addec 15449 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15450
048addec 154512001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15452
048addec 15453 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15454
048addec 154552001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15456
f63fd14e 15457 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15458
048addec
JD
15459 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15460 [!WM_MOUSELEAVE]: Define.
60a653f1 15461
048addec
JD
15462 * w32menu.c (current_popup_menu, get_menu_item_info):
15463 (set_menu_item_info): New vars.
15464 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15465 (w32_menu_show): Set current_popup_menu.
15466 (add_menu_item): Allocate new strings for owner-drawn menu items
15467 and help strings.
15468 Use owner-draw for disabled menu items again.
15469 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15470 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15471
048addec
JD
15472 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15473 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15474 <WM_EXITMENULOOP>: Free menu strings.
15475 <WM_MOUSELEAVE>: Stop tracking mouse.
15476 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15477
048addec
JD
15478 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15479 and mouse face.
60a653f1 15480
048addec 154812001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15482
048addec
JD
15483 The following changes add left-fringe and right-fringe
15484 frame parameters to adjust fringe widths, or remove one or
15485 both fringes.
60a653f1 15486
048addec
JD
15487 * frame.h (struct frame): Remove trunc_area_pixel_width and
15488 trunc_area_cols fields.
15489 (Qleft_fringe, Qright_fringe): Declare.
15490 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15491
048addec
JD
15492 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15493 (syms_of_frame): Initialize them.
60a653f1 15494
048addec
JD
15495 * window.c (coordinates_in_window): Handle separate left and right
15496 fringe widths.
60a653f1 15497
048addec
JD
15498 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15499 and fringe_cols fields.
15500 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15501 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15502 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15503 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15504 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15505 (x_compute_fringe_widths): Add prototype.
60a653f1 15506
048addec
JD
15507 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15508 fill fringe evenly with small dashes.
f63fd14e 15509 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15510 clip the new ZV bitmap to avoid jitter between rows.
15511 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15512 background. Don't draw fringe bitmaps if fringe width is zero.
15513 (x_compute_fringe_widths): New function.
15514 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15515
048addec
JD
15516 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15517 (x_set_frame_parameters): Process `font' parameter before other
15518 parameters as fringe widths depend on it.
15519 (x_set_fringe_width): New function.
15520 (x_figure_window_size): Use x_compute_fringe_widths.
15521 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15522 parameters.
60a653f1 15523
048addec
JD
15524 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15525 (EmacsFrameSetCharSize): Ditto.
60a653f1 15526
048addec
JD
15527 * w32term.h: Merged changes from xterm.h.
15528 * w32term.c: Merged changes from xterm.c.
15529 * w32fns.c: Merged changes from xfns.c.
60a653f1 15530
048addec 155312001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15532
048addec 15533 * COPYING: Removed.
60a653f1 15534
048addec 155352001-11-29 Dave Love <fx@gnu.org>
60a653f1 15536
048addec
JD
15537 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15538 extra extra slot.
15539 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15540
048addec 155412001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15542
048addec
JD
15543 * fileio.c (file-name-coding-system)
15544 (default-file-name-coding-system): Doc fix (links to referenced
15545 variables added).
60a653f1 15546
048addec 155472001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15548
048addec
JD
15549 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15550 Add dummy uses of gcproN variables.
60a653f1 15551
048addec
JD
15552 * category.c (describe_category, describe_category_1)
15553 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15554 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15555
048addec 155562001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15557
048addec 15558 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15559
048addec
JD
15560 * Makefile.in (lispdir): New variable, referring to build dir.
15561 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15562
048addec 155632001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15564
048addec
JD
15565 * w32menu.c (w32_menu_display_help): Actually add the new argument
15566 OWNER.
60a653f1 15567
048addec 155682001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15569
048addec
JD
15570 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15571 menu items. From David Ponce <dponce@wanadoo.fr>.
15572 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15573 conditionally.
f63fd14e 15574 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15575 help event in the owner frame's keyboard buffer.
60a653f1 15576
048addec
JD
15577 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15578 (Fx_show_tip): Don't subtract last width from row width.
15579
15580 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15581 (w32_read_socket): Use EQ to compare frames.
60a653f1 15582
048addec 155832001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15584
048addec
JD
15585 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15586 OVERLAPS_P.
60a653f1 15587
048addec 155882001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15589
048addec
JD
15590 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15591 `gcpro3' and `gcpro4'.
60a653f1 15592
048addec 15593 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15594
048addec 155952001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15596
048addec 15597 * ccl.c: Use AREF and ASIZE.
60a653f1 15598
048addec 155992001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15600
048addec
JD
15601 * lisp.h (run_hook_list_with_args): Remove.
15602 (LIST_END_P): Fix call to wrong_type_argument.
15603 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15604
048addec 156052001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15606
048addec
JD
15607 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15608 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15609
048addec
JD
15610 * eval.c: Use AREF and ASIZE.
15611 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15612
048addec
JD
15613 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15614 which match the end of the file-name.
15615 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15616 is not a valid env var, but leave it as is instead.
60a653f1 15617
048addec
JD
15618 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15619 Make nil bindings in char-tables transparent.
15620 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15621
048addec 156222001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15623
048addec
JD
15624 * textprop.c (set_text_properties_1): Allow START, END in either order.
15625 Do nothing if range is empty.
60a653f1 15626
048addec 15627 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15628
048addec
JD
15629 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15630 (clean): Not here.
60a653f1 15631
048addec 156322001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15633
048addec
JD
15634 * textprop.c (set_text_properties_1): Clearly mark that the
15635 interval should not be empty.
60a653f1 15636
048addec
JD
15637 * intervals.c (graft_intervals_into_buffer):
15638 Don't call set_text_properties_1 on an empty interval.
60a653f1 15639
048addec 156402001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15641
048addec 15642 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15643
048addec
JD
15644 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15645 don't lose the data in it.
60a653f1 15646
048addec 156472001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15648
048addec 15649 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15650
c62aec78 15651 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15652
c62aec78 15653 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15654
048addec 156552001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15656
048addec 15657 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15658
048addec 156592001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15660
048addec
JD
15661 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15662 Niemitalo <kon@iki.fi>.
60a653f1 15663
048addec 156642001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15665
048addec 15666 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15667
048addec
JD
15668 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15669 (Fx_show_tip): Block input during frame creation.
15670 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15671
048addec 156722001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15673
048addec
JD
15674 * lread.c (Fload): Detect recursive load error for more than 3
15675 nestings of the same file.
15676 (Vrecursive_load_depth_limit): Variable deleted.
15677 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15678
048addec 156792001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15680
048addec
JD
15681 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15682 mouse position if either left or top is not specified.
60a653f1 15683
048addec
JD
15684 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15685 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15686 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15687 (my_create_tip_window): Assign tip_window.
15688 (x_create_tip_frame): Use same defaults as X.
15689 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15690 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15691
048addec
JD
15692 * w32term.c (x_after_update_window_line): Doc fix.
15693 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15694 frames.
15695 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15696
048addec
JD
15697 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15698 for all Windowed systems.
60a653f1 15699
048addec 157002001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15701
048addec
JD
15702 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15703 realized, use the initial screen colors to clear the screen.
60a653f1 15704
048addec 157052001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15706
048addec
JD
15707 * textprop.c (Fset_text_properties): Remove unused variables
15708 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15709
048addec
JD
15710 * search.c (Freplace_match): Remove unused variable `inslen'.
15711
15712 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15713
157142001-11-22 Jason Rumney <jasonr@gnu.org>
15715
15716 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15717 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15718 (my_create_tip_window): New function.
15719 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15720 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15721
157222001-11-20 Jason Rumney <jasonr@gnu.org>
15723
15724 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15725 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15726
15727 * w32fns.c (Vw32_system_coding_system): Remove.
15728 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15729
157302001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15731
15732 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15733 after build_annotations.
15734
15735 * syntax.c (describe_syntax): Add dummy arg.
15736 (describe_syntax_1): Update call to describe_vector.
15737
15738 * category.c (describe_category): Add dummy arg.
15739 (describe_category_1): Update call to describe_vector.
15740
15741 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15742 (describe_command, describe_translation): Add dummy second param.
15743 (describe_map): Call elt_describer with two arguments.
15744 (describe_vector_princ): Add `fun' parameter.
15745 Call it instead of the hardcoded `princ'.
15746 (describe_vector): Add arg `args'.
15747 Pass it as a new second argument to elt_describer.
60a653f1 15748
048addec 15749 * keymap.h (describe_vector): Update prototype.
60a653f1 15750
048addec
JD
15751 * frame.c: Don't include keymap.h any more.
15752 (keys_of_frame): Remove.
60a653f1 15753
048addec 15754 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15755
048addec 15756 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15757
048addec 157582001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15759
048addec
JD
15760 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15761 if defined, 0 otherwise.
15762 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15763 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15764
048addec 157652001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15766
048addec 15767 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15768
048addec 157692001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15770
048addec
JD
15771 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15772 (x_draw_bar_cursor): If the background color of the glyph under
15773 the cursor equals the frame's cursor color, use the glyph's
15774 foreground color for drawing the bar cursor.
15775 (x_after_update_window_line): Clear internal border in different
15776 circumstances.
15777 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15778 (w32_draw_relief_rect): Correct relief by 1 pixel.
15779 (x_set_glyph_string_background_width):
15780 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15781 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15782 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15783 if cursor_in_non_selected_windows is false.
15784 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15785 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15786 Notice if cursor gets overwritten.
15787 (notice_overwritten_cursor): Renamed from
15788 note_overwritten_text_cursor. Rewritten to take glyph widths
15789 into account, and to take X positions as parameters.
15790 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15791 around call to x_draw_glyphs.
15792 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15793 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15794 color to use for image glyph reliefs.
15795 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15796 (glyph_rect): Remove unused variable `area'.
60a653f1 15797
048addec
JD
15798 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15799 some items.
15800 (x_set_internal_border_width): Set frame garbaged when window
15801 doesn't exist yet.
15802 (Fx_create_frame): Accept zero tool_bar_button_relief.
15803 (x_clear_image_1, four_corners_best, image_background)
15804 (image_background_transparent): New functions.
15805 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15806 (gs_format): Add `:background' entry.
15807 (lookup_image): Set IMG's background color if specified.
15808 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15809 when appropriate.
15810 (x_clear_image_1): Reset `background_valid' and
15811 `background_transparent_valid' fields.
15812 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15813 calculating it here. Set IMG's background_transparent field.
15814 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15815 (enum png_keyword_index): Add PNG_BACKGROUND.
15816 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15817 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15818 (enum gif_keyword_index): Add GIF_BACKGROUND.
15819 (enum gs_keyword_index): Add GS_BACKGROUND.
15820 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15821 Pre-calculate image background color where necessary.
15822 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15823 Use display info's n_cbits entry for screen depth.
15824 (Fx_show_tip): Remove unused variables `buffer', `top',
15825 `left', `max_width' and `max_height'.
60a653f1 15826
048addec 15827 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15828
048addec 158292001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15830
048addec 15831 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15832
048addec 158332001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15834
048addec 15835 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15836
048addec 158372001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15838
048addec
JD
15839 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15840 (message_dolog_marker3): New static variables hold three markers.
15841 (syms_of_xdisp): Initialize and staticpro them.
15842 (message_dolog): Use message_dolog_marker1..3 instead of
15843 allocating markers each time. Unchain them when done.
60a653f1 15844
048addec 158452001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15846
048addec 15847 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15848
048addec 158492001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15850
048addec 15851 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15852
048addec 158532001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15854
048addec 15855 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15856
048addec 158572001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15858
048addec 15859 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15860
048addec 158612001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15862
048addec
JD
15863 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15864 with invalid position.
60a653f1 15865
048addec 158662001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15867
048addec 15868 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15869
048addec
JD
15870 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15871 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15872 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15873
048addec 15874 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15875
048addec 158762001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15877
048addec
JD
15878 * fileio.c (build_annotations): Split off the tail.
15879 (build_annotations_2): New fun. Extracted from build_annotations.
15880 (Fwrite_region): Split the call to build_annotations into two
15881 calls to build_annotations and build_annotations_2.
077907d4 15882
048addec 158832001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15884
048addec
JD
15885 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15886 clear_waiting_for_input with argument.
1756e2fb 15887
048addec 15888 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15889
048addec 15890 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15891
048addec 15892 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15893
048addec 15894 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15895
048addec 158962001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15897
048addec
JD
15898 * fileio.c (choose_write_coding_system): New fun, extracted
15899 from Fwrite_region.
15900 (Fwrite_region): Use it.
fa336b91 15901
048addec
JD
15902 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15903 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15904 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15905
048addec 159062001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15907
048addec 15908 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15909
048addec
JD
15910 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15911 Required for ISC 4.1.
fa336b91 15912
048addec 159132001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15914
048addec
JD
15915 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15916 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15917
048addec 159182001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15919
048addec
JD
15920 The following changes are made to clean up the various internal
15921 references to the fringes to actually use the term `fringe' for
15922 them. Previously, they were called `flags areas', `bitmap areas',
15923 `left/right side of windows', or implicitly as `flags' or
15924 `bitmaps':
fa336b91 15925
048addec 15926 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15927 Comments fixed. Use renamed symbols.
06e8f738 15928
f63fd14e 15929 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15930
048addec
JD
15931 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15932 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15933 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15934
048addec 15935 * msdos.c: Comment fix.
9ce647f4 15936
048addec 15937 * w32fns.c: Use renamed symbols.
9b784ab8 15938
f63fd14e 15939 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15940 (fringe_bitmap_type): Renamed from bitmap_type.
15941 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15942 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15943 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15944
f63fd14e 15945 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15946 (fringes_extra): Renamed from flags_areas_extra.
15947 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15948 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15949 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15950 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15951 (FRAME_X_LEFT_FRINGE_WIDTH):
15952 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15953 (FRAME_X_RIGHT_FRINGE_WIDTH):
15954 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15955
048addec 15956 * widget.c: Use renamed symbols.
9f7e52b4 15957
f63fd14e 15958 * window.c: Comment fixes. Use renamed symbols.
048addec 15959 (coordinates-in-window-p): Doc fix.
fa336b91 15960
f63fd14e 15961 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15962
048addec 15963 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15964
048addec 15965 * xfns.c: Use renamed symbols.
89512fcd 15966
f63fd14e 15967 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15968 (fringe_bitmap_type): Renamed from bitmap_type.
15969 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15970 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15971 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15972
f63fd14e 15973 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15974 (fringes_extra): Renamed from flags_areas_extra.
15975 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15976 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15977 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15978 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15979 (FRAME_X_LEFT_FRINGE_WIDTH):
15980 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15981 (FRAME_X_RIGHT_FRINGE_WIDTH):
15982 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15983
159842001-11-15 Jason Rumney <jasonr@gnu.org>
15985
15986 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15987 work for most menu items. From David Ponce
15988 <david.ponce@wanadoo.fr>.
15989
159902001-11-15 Gerd Moellmann <gerd@gnu.org>
15991
15992 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15993 Some x_set_* function expect to be called even if old and new
15994 value are equal.
15995
15996 * xdisp.c (build_desired_tool_bar_string): Accept zero
15997 tool_bar_button_relief.
15998
15999 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16000
16001 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16002
16003 * xterm.c (x_draw_bar_cursor): If the background color of the
16004 glyph under the cursor equals the frame's cursor color, use
16005 the glyph's foreground color for drawing the bar cursor.
16006
16007 * dispnew.c (direct_output_forward_char): Fix character/byte
16008 position comparison.
7d18891d 16009
048addec 160102001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16011
048addec
JD
16012 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16013 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16014 Update arguments to find_field.
16015 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16016 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16017 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16018 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16019
048addec 160202001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16021
048addec 16022 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16023
048addec
JD
16024 * dispextern.h (image_background, image_background_transparent):
16025 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16026
048addec 160272001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16028
048addec 16029 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16030
048addec 16031 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16032
048addec 16033 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16034
048addec 16035 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16036
048addec 16037 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16038
048addec 16039 * eval.c (syms_of_eval): Doc fix.
7d18891d 16040
048addec 16041 * coding.c (syms_of_coding): Doc fix.
7d18891d 16042
048addec 16043 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16044
048addec 16045 * dispnew.c (syms_of_display): Doc fix.
9474c847 16046
048addec 16047 * category.c (Fget_unused_category): Doc fix.
9474c847 16048
048addec 16049 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16050
048addec 160512001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16052
048addec 16053 * print.c (prin1, print): Doc fix.
e3059a5d 16054
048addec 160552001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16056
048addec
JD
16057 * fontset.h: Remove declarations of variables
16058 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16059
048addec
JD
16060 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16061 `Vclip_large_size_font'.
eae936e2 16062
048addec 160632001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16064
048addec 16065 * w32fns.c: Doc fix.
ddb67bdc 16066
048addec 160672001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16068
048addec 16069 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16070
048addec 16071 * fns.c: Doc fix.
6e1b91d7 16072
048addec 16073 * emacs.c: Doc fix.
1c1d3d69 16074
048addec 16075 * coding.c: Doc fix.
1c1d3d69 16076
048addec
JD
16077 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16078 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16079 `new style' [w/`doc:' keyword].
b6f4c7ba 16080
048addec 160812001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16082
048addec
JD
16083 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16084 LeaveNotify events. Only FocusIn and FocusOut do that now.
16085 (x_display_and_set_cursor): Do display hollow cursors in active
16086 minibuffer windows when they are not selected.
b6f4c7ba 16087
048addec 160882001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16089
048addec 16090 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16091 * w32term.c: Change doc-string comments to `new style'
16092 [w/`doc:' keyword]. Doc fixes.
a89f435d 16093
048addec
JD
16094 * w32fns.c: Don't define max.
16095 (Fx_open_connection): Only execute once.
a4cd0cd7 16096
048addec 160972001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16098
048addec
JD
16099 * ccl.c: Change macros to use do-while block instead of if-else.
16100 Use braces to follow GNU Coding Standards.
eafb659a 16101
048addec 161022001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16103
048addec 16104 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16105
048addec 16106 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16107
048addec
JD
16108 * insdel.c (replace_range): Use adjust_markers_for_replace
16109 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16110
78819ebb 16111 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16112
048addec
JD
16113 * textprop.c (set_text_properties_1): New subroutine
16114 broken out of set_text_properties.
16115 (set_text_properties): Use set_text_properties_1.
91823618 16116
048addec
JD
16117 * intervals.c (graft_intervals_into_buffer):
16118 Use set_text_properties_1 to clear out properties.
91823618 16119
048addec
JD
16120 * search.c (Freplace_match): Use replace_range to insert
16121 and delete. Don't request property inheritance from
16122 surrounding text.
86928dfb 16123
048addec 161242001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16125
048addec 16126 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16127 vertical fonts. Allow them if face name is explicitly specified.
048addec 16128 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16129
048addec 161302001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16131
048addec
JD
16132 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16133 instead of malloc/free.
a78e0303 16134
048addec 161352001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16136
048addec
JD
16137 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16138 Coding Standards.
16139 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16140
048addec 16141 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16142
048addec 16143 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16144
048addec
JD
16145 * coding.c (encode_coding): Use precomputed value of `src'.
16146 (encode_coding): Remove unused variable `src_end'.
16147 (code_convert_region): Remove unused variables `count'.
830ddd77 16148
048addec 161492001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16150
048addec
JD
16151 * w32term.c (x_display_and_set_cursor): Do not move system caret
16152 if cursor_glyph is NULL.
55c6d645 16153
048addec 161542001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16155
048addec 16156 * keymap.c (access_keymap): Fix compilation error.
5de38842 16157
048addec 161582001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16159
048addec 16160 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16161
048addec 161622001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16163
048addec
JD
16164 * intervals.c (graft_intervals_into_buffer):
16165 Remove #ifdef'd-out code.
16166 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16167
048addec
JD
16168 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16169 code (eval-current-buffer).
16170 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16171
048addec 161722001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16173
048addec 16174 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16175
048addec 161762001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16177
048addec 16178 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16179
048addec
JD
16180 * keyboard.c (make_lispy_event): Check integerness and fix
16181 Lisp_Object/int mixup.
17893c65 16182
048addec 161832001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16184
048addec 16185 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16186
048addec
JD
16187 * fontset.c (fontset_font_pattern): Remove unused variable
16188 `family_registry'.
d5360cc7 16189
048addec 16190 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16191
048addec 161922001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16193
048addec 16194 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16195
048addec
JD
16196 * buffer.c (Fkill_buffer): Don't delete auto save file
16197 if buffer is modified.
d9d54213 16198
048addec 161992001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16200
048addec
JD
16201 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16202 CHECK_NUMBER_CDR.
b116830b 16203
048addec 162042001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16205
048addec 16206 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16207
048addec 162082001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16209
048addec 16210 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16211
048addec 162122001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16213
048addec 16214 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16215
048addec 162162001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16217
048addec
JD
16218 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16219 the program image directly.
982f6c7e 16220
048addec 162212001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16222
048addec 16223 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16224
048addec 162252001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16226
048addec
JD
16227 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16228 and CHECK_BUFFER.
d31053f9 16229
048addec
JD
16230 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16231 (record_char): Likewise.
d31053f9 16232
048addec
JD
16233 * keyboard.c (make_lispy_event): Don't insist a drag event must
16234 move to a different buffer position. Instead, check for moving at
16235 least double_click_fuzz.
982f6c7e 16236
048addec 16237 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16238
048addec 16239 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16240
048addec
JD
16241 * indent.c (current_column_1, Fmove_to_column): Separate the code
16242 for display-table glyphs from the code for buffer text, to fix
16243 bugs in the former.
830047fd 16244
048addec 162452001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16246
048addec
JD
16247 * buffer.c (Fbuffer_local_value): New function.
16248 (syms_of_buffer): Defsubr it.
2df5238c 16249
048addec
JD
16250 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16251 value of `cursor-in-non-selected-windows'.
4e397688 16252
048addec
JD
16253 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16254 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16255 (syms_of_xdisp): Initialize it.
48b0f3ae 16256
048addec 162572001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16258
048addec 16259 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16260
048addec
JD
16261 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16262 keyword].
3ecaf7e5 16263
048addec
JD
16264 * eval.c (top_level_value, top_level_set): Remove commented and
16265 #ifdef'd-out code.
16266 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16267
048addec 162682001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16269
048addec 16270 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16271
048addec 16272 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16273
048addec 16274 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16275
048addec 162762001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16277
048addec
JD
16278 * lisp.h (CHECK_STRING_CAR): New macro.
16279 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16280 treating XCAR and XCDR as lvalues.
16281 (openp): Use CHECK_STRING_CAR.
16282 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16283
048addec 162842001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16285
048addec
JD
16286 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16287 (SIGMASKTYPE): Define.
1b1acc13 16288
048addec 16289 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16290
048addec 162912001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16292
048addec
JD
16293 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16294 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16295 Fix typos in comments.
6cb16f95 16296
048addec
JD
16297 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16298 and #ifdef'd-out code.
16299 Fix and reindent comments.
6cb16f95 16300
048addec 16301 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16302
048addec
JD
16303 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16304 argument `i' in macros.
6cb16f95 16305
048addec
JD
16306 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16307 `i' in macros.
7e9d3c2f 16308
048addec
JD
16309 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16310 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16311 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16312 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16313 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16314 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16315 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16316 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16317 in macros.
7e9d3c2f 16318
048addec
JD
16319 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16320 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16321 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16322 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16323 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16324 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16325 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16326 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16327 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16328 (remove unused second argument).
7e9d3c2f 16329
048addec 163302001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16331
048addec
JD
16332 * syntax.c (describe_syntax): New wrapper.
16333 (Finternal_describe_syntax_value): Rename from describe_syntax.
16334 Don't insert space at front and \n at the end.
16335 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16336
048addec
JD
16337 * regex.c (re_wctype): Try to fix some warnings.
16338 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16339
048addec 163402001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16341
048addec 16342 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16343
048addec 163442001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16345
048addec 16346 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16347
048addec 16348 * data.c (Fsetq_default): Ditto.
c22e59e1 16349
048addec 16350 * callint.c (Finteractive): Ditto.
9271ed2c 16351
048addec 163522001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16353
048addec
JD
16354 * macros.c: Don't include keymap.h any more.
16355
163562001-11-01 Richard M. Stallman <rms@gnu.org>
16357
16358 * data.c (Fmake_local_variable): Doc fix.
16359
16360 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16361 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16362
048addec 16363 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16364 bindings along with or instead of the buffer local map.
16365 Make the overriding maps override what they should.
16366
f00691a3 163672001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16368
16369 * window.c (grow_mini_window): Fix typo in comment.
16370
27188d11
GM
163712001-11-01 Gerd Moellmann <gerd@gnu.org>
16372
7b49b9d2
GM
16373 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16374 (XTset_vertical_scroll_bar): Likewise.
16375
43f7c3ea
GM
16376 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16377 instead of IMAGE_BACKGROUND.
c22e59e1 16378
b350c2e5
GM
16379 * xfns.c (four_corners_best): Reindent.
16380
c22e59e1 16381 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16382 Handle :box so that it is possible to specify sexprs.
16383
bf00d461
EZ
163842001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16385
16386 * s/hpux11.h: New file.
16387
f00691a3 163882001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16389
2b209b97
PJ
16390 * emacs.c (USAGE1): Show command line option --no-window-system
16391 instead of --no-windows in usage.
16392 (standard_args): Rename --no-windows to --no-window-system.
16393 (bug_reporting_address): Follow Emacs coding conventions.
16394
9dbc9081
PJ
16395 * eval.c (Fcommandp): Doc fix.
16396 Change doc-string comments to `new style' [w/`doc:' keyword].
16397
4e10df59
PJ
16398 * frame.c (Fframe_live_p): Doc fix.
16399
16400 * buffer.c (selective-display-ellipses): Doc fix.
16401
dd387b25
GM
164022001-10-31 Gerd Moellmann <gerd@gnu.org>
16403
fe957e65
GM
16404 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16405
dd387b25
GM
16406 * xfaces.c (realize_x_face): If C is not a single-byte character,
16407 set the face's colors_copied_bitwise_p instead of the defaulted_p
16408 members which have a different meaning.
16409 (free_face_colors): Do nothing for a face whose colors have been
16410 copied bitwise.
16411
c22e59e1 16412 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16413
f00691a3 164142001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16415
687784e8
PJ
16416 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16417 [w/`doc:' keyword].
2e1280f8 16418
b9d9a9b9
GM
164192001-10-31 Gerd Moellmann <gerd@gnu.org>
16420
16421 * fns.c (require_unwind): Return Lisp_Object.
16422
f00691a3 164232001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16424
fa1361cb
PJ
16425 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16426 (last-input-char): Revert doc-string to be the same as the
16427 doc-string of `last-input-event'.
16428
6c465a15 16429 * xdisp.c: Fix typos in comments.
48400103 16430
eafa3196
GM
164312001-10-31 Gerd Moellmann <gerd@gnu.org>
16432
16433 * window.c (grow_mini_window): Handle case that the root
16434 window is already smaller than the nominal mininum height.
16435
747d3f2a
SM
164362001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16437
bf9bb76f
SM
16438 * emacs.c (main): Don't call keys_of_macros any more.
16439
16440 * lisp.h (keys_of_macros): Remove.
16441
16442 * macros.c (keys_of_macros): Remove.
16443
747d3f2a
SM
16444 * xfaces.c (Fface_attribute_relative_p): Declare args.
16445
5e905a57
JR
164462001-10-30 Jason Rumney <jasonr@gnu.org>
16447
16448 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16449 (enum_font_cb2): Ignore fonts with vertical orientation.
16450
3a426197
RS
164512001-10-30 Richard M. Stallman <rms@gnu.org>
16452
16453 * keyboard.c (Finput_pending_p): Doc fix.
16454
a742d646
GM
164552001-10-30 Gerd Moellmann <gerd@gnu.org>
16456
259cf6bc
GM
16457 * xterm.c (x_after_update_window_line): Don't run the code
16458 clearing in borders for rows whose visible height is 0.
16459
3f99f948
GM
16460 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16461 resized_p flag is set. If not set, use the much less flickering
16462 method previously used.
16463
16464 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16465
16466 * frame.h (struct frame) <resized_p>: New member.
16467
b4a3be43
GM
16468 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16469 as large as the number of bytes to convert.
747d3f2a 16470
a742d646
GM
16471 * lread.c (to_multibyte): New function.
16472 (read1): Use it.
16473
cacbb9e9
EZ
164742001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16475
16476 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16477
99cb6b2f
GM
164782001-10-30 Gerd Moellmann <gerd@gnu.org>
16479
327f42ee 16480 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16481 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16482 if the row's fill_line_p is set and drawing the last glyph with
16483 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16484
99cb6b2f
GM
16485 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16486
8e8223e2
SM
164872001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16488
16489 * xmenu.c: Include coding.h and charset.h.
16490 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16491 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16492 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16493 Explicitly set wv->help. Use `TRUE' rather than `True'.
16494 (menu_help_callback): Use empty_string.
16495
16496 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16497 (Fx_popup_dialog): Explicitly init f.
16498 (w32_menu_display_help): Use empty_string.
16499
4d083a8f
RS
165002001-10-29 Richard M. Stallman <rms@gnu.org>
16501
b2304472
RS
16502 * fns.c (Frequire): Detect recursive try to require the same
16503 feature 3 or more levels deep, and get error.
16504 (require_unwind): New subroutine.
16505 (require_nesting_list): New variable.
16506 (syms_of_fns): Init and staticpro it.
16507
4d083a8f
RS
16508 * print.c (print_object): Clarify indication of insertion type.
16509
2fe41216
EZ
165102001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16511
90480000
EZ
16512 * coding.c (syms_of_coding): Document that locale-coding-system is
16513 used for decoding input on X.
16514
2fe41216
EZ
16515 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16516
f00691a3 165172001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16518
16519 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16520 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16521
60ebcfe8
GM
165222001-10-29 Gerd Moellmann <gerd@gnu.org>
16523
9a7bdceb
GM
16524 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16525 use NO_CURSOR if cursor_in_non_selected_windows is false.
16526
3f08fcd2
GM
16527 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16528 the slant attribute if FRAME is t.
16529
0ccfdad2
GM
16530 * xfns.c (x_set_internal_border_width): Set frame garbaged
16531 when X window doesn't exist yet.
16532
ef253080
GM
16533 * xterm.c (x_after_update_window_line): Clear internal border
16534 in different circumstances.
b116830b 16535
60ebcfe8
GM
16536 * xterm.c (XTread_socket) <KeyPress>: Don't use
16537 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16538 <handa@etl.go.jp>.
16539
73d25f9c
EZ
165402001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16541
16542 * m/ibms390.h: New file. From Adam Thornton
16543 <athornton@sinenomine.net>.
16544
cac1daf0
GM
165452001-10-28 Gerd Moellmann <gerd@gnu.org>
16546
053b3256 16547 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16548
cac1daf0
GM
16549 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16550 a loop counter.
16551
f00691a3 165522001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16553
f9711de4 16554 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16555
4707d2d0
PJ
16556 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16557 keyword].
16558 Fix typos in comments.
b116830b 16559
d883731c
PJ
16560 * emacs.c (bug_reporting_address): New function.
16561 Use it when displaying usage message.
16562
04012254
PJ
16563 * minibuf.c (read_minibuf): Remove unused external declaration of
16564 variable `Qread_only'.
16565
13b1a09c
PJ
16566 * keymap.c (access_keymap): Remove unused variable `charset'.
16567
5bbf4378
MB
165682001-10-28 Miles Bader <miles@gnu.org>
16569
16570 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16571 Remove #ifdef'd-out code.
16572 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16573 (syms_of_xfaces): Initialize them.
16574
1ce1e4ee
JR
165752001-10-27 Jason Rumney <jasonr@gnu.org>
16576
16577 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16578 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16579 position using the system caret.
16580
16581 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16582 (w32_system_caret_height, w32_system_caret_x)
16583 (w32_system_caret_y): New variables for tracking system caret.
16584 (w32_initialize): Initialize them.
c2d53558 16585 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16586
c2d53558
SM
16587 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16588 New messages types.
1ce1e4ee
JR
16589
16590 * w32term.c (note_mouse_highlight): Clear old help_echo.
16591
f00691a3 165922001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16593
bb4600a4
PJ
16594 * xterm.c: Fix typo in a comment.
16595
7db35a48
PJ
16596 * emacs.c: Fix typos in comments.
16597 Remove unnecessary spaces.
16598 Change doc-string comments to `new style' [w/`doc:' keyword].
16599 (USAGE2): Fix typos in usage string.
16600
a7248e4f
PJ
16601 * xterm.c: Fix typo in a comment.
16602
4e30ce42
PJ
16603 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16604 emacs.c.
16605
62725a92
GM
166062001-10-27 Gerd Moellmann <gerd@gnu.org>
16607
798dbe1f 16608 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16609 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16610 farther backward when target_y was not reached.
16611
62725a92
GM
16612 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16613 Display errno only if non-zero.
16614 (sound_warning): New function.
16615 (vox_configure): Don't treat failing to set sample rate as error.
16616 (various places): Improve error messages.
16617
d4e34d24
EZ
166182001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16619
944e6f60
EZ
16620 * fileio.c (Faccess_file): Run the argument filename through
16621 Fexpand_file_name, before using it.
16622
d4e34d24
EZ
16623 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16624 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16625
38d2af0c
GM
166262001-10-26 Gerd Moellmann <gerd@gnu.org>
16627
da80a8d5
GM
16628 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16629
38d2af0c
GM
16630 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16631 Fix clearing in the case of scroll bars on the right.
c2d53558 16632
45de4a6f 166332001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16634
16635 * w32gui.h (XImage): Add a dummy typedef.
16636
fbd5ceb2
GM
166372001-10-26 Gerd Moellmann <gerd@gnu.org>
16638
c2d53558 16639 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16640
b23236fb
EZ
166412001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16642
16643 * frame.c (Fframe_parameter): Fix last change.
16644
5d991fc4
EZ
16645 * fileio.c: Revert last change (which removed old commented-out
16646 version of expand-file-name). Add a comment that explains why
16647 this old version should not be removed.
16648
879eadc3
GM
166492001-10-25 Gerd Moellmann <gerd@gnu.org>
16650
75700ff2
GM
16651 * frame.c (Fframe_parameter): Fix a bug whereby some
16652 ``artificial'' frame parameters, like `minibuffer' were not
16653 obtained by calling Fframe_parameters.
16654
dfe92a6a
GM
16655 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16656 cursor differently.
16657
879eadc3
GM
16658 * xdisp.c (move_it_vertically_backward): Compute line height
16659 differently. Add heuristic to try to be more compatible to 20.x.
16660
e1010ebe
SM
166612001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16662
d73a471b
SM
16663 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16664
d6da5a06
GM
16665 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16666 boolean.
e1010ebe 16667
f66bd220
MB
166682001-10-25 Miles Bader <miles@gnu.org>
16669
16670 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16671 BG is a pointer to a structure, not a structure.
16672 (gif_format, png_format): Add missing commas.
16673
d436d538
RS
166742001-10-24 Richard M. Stallman <rms@gnu.org>
16675
16676 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16677 (syms_of_xfaces): Defsubr it.
d436d538 16678
f00691a3 166792001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16680
16681 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16682 variable `area'.
16683
f00691a3 166842001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16685
c2d53558 16686 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16687
e2a57b34
MB
166882001-10-25 Miles Bader <miles@gnu.org>
16689
16690 * dispextern.h (struct image): Add `background',
16691 `background_valid', and `background_transparent' fields.
16692 (image_background, image_background_transparent): New declarations.
16693 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16694 * xfns.c (image_background, image_background_transparent)
16695 (four_corners_best): New functions.
c2d53558 16696 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16697 (gs_format): Add `:background' entry.
16698 (lookup_image): Set IMG's background color if specified.
16699 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16700 when appropriate.
16701 (x_clear_image_1): Reset `background_valid' and
16702 `background_transparent_valid' fields.
16703 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16704 calculating it here. Set IMG's background_transparent field.
16705 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16706 (enum png_keyword_index): Add PNG_BACKGROUND.
16707 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16708 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16709 (enum gif_keyword_index): Add GIF_BACKGROUND.
16710 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16711 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16712 Pre-calculate image background color where necessary.
16713 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16714 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16715 color to use for image glyph reliefs.
16716
b547b6e8
GM
167172001-10-24 Gerd Moellmann <gerd@gnu.org>
16718
d9e3b8c6
GM
16719 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16720 in full-width rows.
c2d53558 16721
b547b6e8
GM
16722 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16723 Fix clearing of area not covered by scroll bar.
16724
f00691a3 167252001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16726
16727 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16728 and `real_start'.
c2d53558 16729 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16730 (glyph_rect): Remove unused variable `area'.
16731
76cb5e06
GM
167322001-10-24 Gerd Moellmann <gerd@gnu.org>
16733
bdbdebff 16734 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16735
16736 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16737 (row_containing_pos): Take additional argument DY.
16738 Treat rows ending in middle of char differently.
62e33982
GM
16739 (display_line): Handle tabs on window systems differently.
16740
16741 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16742 with additional argument.
16743
16744 * dispextern.h (row_containing_pos): Adjust prototype.
16745
76cb5e06
GM
16746 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16747 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16748 (try_window_id, try_window_reusing_current_matrix)
16749 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16750 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16751
f00691a3 167522001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16753
c9e60620
PJ
16754 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16755 gnuemacs).
16756 (HAVE_BOXES): Fix typo in comment.
16757 (push_menu_pane): Fix typo in comment.
16758
3b552d56
PJ
16759 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16760 of `Qwhen'.
16761 (single_display_prop_string_p): Remove unused local declarations
16762 of `Qwhen' and `Qmargin'.
16763 (string_buffer_position): Remove unused variable `around'.
16764 (store_frame_title): Remove unused variable `width'.
16765
15c565ac
PJ
16766 * window.c: Don't define max.
16767 (coordinates_in_window): Remove unused variable `uy'.
16768
a8818eb9
PJ
16769 * widget.c: Don't define max.
16770
996fee11
PJ
16771 * process.c: Don't define max.
16772 (create_process): Remove unused variable `buffer'.
16773
496e1a5b
GM
167742001-10-23 Gerd Moellmann <gerd@gnu.org>
16775
c2d53558 16776 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16777
5905ae8b
EZ
167782001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16779
16780 * xfaces.c (Finternal_set_lisp_face_attribute)
16781 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16782 frame is on a windowed display.
16783
24db49fb
GM
167842001-10-23 Gerd Moellmann <gerd@gnu.org>
16785
c2d53558
SM
16786 * dispnew.c (sync_window_with_frame_matrix_rows):
16787 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16788 of marginal areas.
16789
c2d53558 16790 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16791
f0487f05
EZ
167922001-10-23 Andreas Schwab <schwab@suse.de>
16793
16794 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16795 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16796
f0a48a01
GM
167972001-10-23 Gerd Moellmann <gerd@gnu.org>
16798
c2d53558 16799 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16800 REAL_END. Notice if cursor gets overwritten.
16801 (notice_overwritten_cursor): Take X positions as parameters.
16802 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16803 around call to x_draw_glyphs.
16804
f00691a3 168052001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16806
fc11dff0
PJ
16807 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16808 instead of C) and usage.
a50a10a0 16809
fc11dff0
PJ
16810 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16811 of C) and usage.
a50a10a0
PJ
16812
16813 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16814 `left', `max_width' and `max_height'.
16815
8738febd
GM
168162001-10-23 Gerd Moellmann <gerd@gnu.org>
16817
16818 * xdisp.c (display_line): For a tab continued to the next line,
16819 set row's ends_in_middle_of_char_p.
16820
653c329b
GM
168212001-10-22 Gerd Moellmann <gerd@gnu.org>
16822
16823 * xdisp.c (display_line): Fix computation of continuation lines
16824 width for TABs.
16825
f00691a3 168262001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16827
7ba51063
PJ
16828 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16829 `Qlaplace'.
16830
f958c5ac
PJ
16831 * fileio.c: Remove unused code.
16832
eb360291
MB
168332001-10-22 Miles Bader <miles@gnu.org>
16834
16835 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16836 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16837 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16838
98515cf0
JR
168392001-10-21 Jason Rumney <jasonr@gnu.org>
16840
16841 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16842
93026d88
EZ
168432001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16844
16845 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16846 (Finsert_string): Avoid the multi-line string literals warning.
16847
c9a95b79
MB
168482001-10-22 Miles Bader <miles@gnu.org>
16849
16850 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16851 (Fdocumentation): Don't use it.
16852 (syms_of_doc): Don't initialize it.
16853
16854 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16855 * print.c (Fwith_output_to_temp_buffer): Likewise.
16856 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16857 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16858 (Fsave_restriction): Likewise.
c2d53558
SM
16859 * eval.c (Frun_hooks, Frun_hook_with_args)
16860 (Frun_hook_with_args_until_failure)
16861 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16862 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16863 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16864 (Funwind_protect, Fcondition_case): Likewise.
16865 * coding.c (Ffind_operation_coding_system): Likewise.
16866 * keyboard.c (Ftrack_mouse): Likewise.
16867
a3b10252
MB
168682001-10-21 Miles Bader <miles@gnu.org>
16869
c2d53558 16870 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16871 (Fmake_hash_table): Add usage: string to doc string.
16872 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16873 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16874 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16875 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16876 (Fml_prefix_argument_loop): Likewise.
16877
f00691a3 168782001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16879
c2d53558 16880 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16881
c6f73eec
PJ
16882 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16883 style' [w/`doc:' keyword].
16884
16885 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16886 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16887 comments to `new style' [w/`doc:' keyword].
16888
3cf3436e
JR
168892001-10-21 Jason Rumney <jasonr@gnu.org>
16890
16891 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16892
c169b8f1
JR
16893 * w32term.c (remember_mouse_glyph): New function.
16894 (w32_mouse_position): Use it.
16895 (note_mouse_movement): If the mouse moved off the glyph, remember
16896 its new position.
c2d53558 16897
4fdd691b
JR
16898 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16899 (w32_display_info): Add mouse_face_overlay.
16900
c169b8f1
JR
16901 * w32term.c (notice_overwritten_cursor): Renamed from
16902 note_overwritten_text_cursor. Rewritten to take glyph widths into
16903 account.
16904 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16905 (fast_find_string_pos): New function.
16906 (fast_find_position): Return the correct vpos. Add parameter
16907 STOP. In the final row, stop before glyphs having STOP as object.
16908 Don't consider glyphs that are not from a buffer.
16909 (fast_find_position) [0]: Add a presumably more correct version
16910 for after 21.1.
16911 (expose_window_tree, expose_frame): Don't compute intersections here.
16912 (expose_window): Do it here instead.
16913 (expose_window_tree, expose_window, expose_line): Return 1 when
16914 overwriting mouse-face.
16915 (expose_window): If W is the window currently being updated, mark
16916 the frame garbaged.
16917 (expose_frame): If mouse-face was overwritten, redo it.
16918 (x_use_underline_position_properties): New variable.
16919 (syms_of_xterm): DEFVAR_BOOL it.
16920 (x_draw_glyph_string): Add comment to use it in future.
16921 (x_draw_glyph_string): Restore clipping after drawing box.
16922 Fix a computation of the underline position.
16923 (w32_get_glyph_string_clip_rect): Minor cleanup.
16924 (x_fill_stretch_glyph_string): Remove an assertion.
16925 (x_produce_glyphs): Don't convert multibyte characters
16926 to unibyte characters in unibyte buffers.
16927 (cursor_in_mouse_face_p): New function.
16928 (x_draw_stretch_glyph_string): Use it to choose a different GC
16929 when drawing a cursor within highlighted text. Don't draw
16930 background again if it has already been drawn.
16931 (x_draw_glyph_string_box): Don't draw a full-width
16932 box just because the glyph row's full_width_p flag is set.
16933 (x_draw_glyphs): Fix computation of rightmost x for
16934 full-width rows.
16935 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16936 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16937 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16938 (x_update_window_end): Handle overwritten mouse face
16939 also for tool bar windows.
16940 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16941 DRAW is DRAW_IMAGE_RAISED.
16942 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16943 actually redrawn. Make the function static.
16944 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16945 optimize away highlighting if we pass over that same overlay again.
16946 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16947 to detect a case where we have to highlight a different region
16948 despite not having left the currently highlighted region.
16949 Set mouse_face_overlay in the x_display_info. Avoid changing the
16950 mouse pointer shape when show_mouse_face has already done it, or
16951 there is no need. Handle mouse-face and help-echo in strings.
16952 (glyph_rect): New function.
16953 (w32_mouse_position): Use it to raise the threshold for mouse
16954 movement event generation.
16955 (w32_initialize_display_info): Initialize the x_display_info's
16956 mouse_face_overlay.
16957 (w32_set_vertical_scroll_bar): Don't clear a zero height
16958 or width area.
16959 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16960 a widget to zero height.
16961
3cf3436e 16962 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16963 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16964 equivalents in menu_items.
16965 (w32_menu_show): Don't overwrite an item's name with its key
16966 description in case the description is a multibyte string.
16967 (single_submenu): Some cleanup.
16968
16969 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16970 (postprocess_image): New function.
16971 (lookup_image): Call it for all image types except PostScript.
16972 (x_kill_gs_process): Call postprocess_image.
16973 (tiff_error_handler, tiff_warning_handler): New functions.
16974 (tiff_load): Install them as handlers.
16975 (x_kill_gs_process): Recognize if someone has cleared the image
16976 cache under us.
16977 (valid_image_p): Protect better against invalid image
16978 specifications. Previous code could signal an error.
16979 (Fx_hide_tip, Fshow_tip): Doc fix.
16980 (Fv_max_tooltip_size): New variable.
16981 (syns_of_xfns): DEFVAR_LISP it.
16982 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16983 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16984 window_width. Use a maximum tooltip size specified by
16985 Vx_max_tooltip_size, if that has valid contents.
16986 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16987 Make sure the tooltip is completely visible.
16988 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16989 (Fx_create_frame): Adjust the frame's height for presence
16990 of the tool bar before calling x_figure_window_size.
16991 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16992 when the window gets smaller.
16993 (x_set_foreground_color): Set frame's cursor_pixel.
16994 (x_set_foreground_color, x_set_background_color): Cleaned up.
16995 (x_set_font): Handle case of x_new_fontset returning the same name
16996 as before, although there was a change in fontsets.
16997
386ca361
MB
169982001-10-21 Miles Bader <miles@gnu.org>
16999
c2d53558 17000 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17001 (Flogxor): Add usage: string to doc string.
17002 * charset.c (Fstring): Likewise.
17003 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17004 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17005
f00691a3 170062001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17007
03be2694
PJ
17008 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17009
17010 * alloc.c: Reindent DEFUNs with doc: keywords.
17011
17012 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17013
14ff1ee0
PJ
17014 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17015 keyword].
17016
2f147815 17017See ChangeLog.9 for earlier changes.
6922b018
KH
17018
17019;; Local Variables:
49b3bd82 17020;; coding: iso-2022-7bit
6922b018 17021;; End:
2a34a036 17022
2f147815 17023 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17024 Copying and distribution of this file, with or without modification,
17025 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17026
17027;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4