Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-754
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4b982924
DN
12004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * coding.c (decode_coding): Fix previous change.
4
93fdf45f
RS
52004-12-28 Richard M. Stallman <rms@gnu.org>
6
7 * xdisp.c (back_to_previous_visible_line_start):
8 Don't call handle_display_prop.
9
5bdca8af
DN
102004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11
12 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
13 (decode_coding_emacs_mule, encode_coding_emacs_mule)
14 (decode_coding_iso2022, encode_designation_at_bol)
15 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
16 (decode_coding): Constify arguments and local vars.
17
33385c6f
JD
182004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19
20 * xmenu.c (popup_get_selection): Only pop down dialogs
21 on C-g and Escape.
95bdef2e 22 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 23 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 24 parameter down_on_keypress to popup_get_selection.
33385c6f 25
b15325b2
ST
262004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27
28 * dispextern.h: Change HAVE_CARBON to MAC_OS.
29 (struct glyph_string): Likewise.
a2c7e69a 30
b15325b2
ST
31 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
32 mac_initialize.
a2c7e69a 33
b15325b2
ST
34 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
35 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 36
b15325b2 37 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 38
b15325b2
ST
39 * frame.c (x_set_frame_parameters, x_report_frame_params)
40 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
41 (x_set_border_width, Vdefault_frame_scroll_bars): Change
42 HAVE_CARBON to MAC_OS.
a2c7e69a 43
b15325b2
ST
44 * image.c [MAC_OS]: Include sys/stat.h.
45 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
46 QuickTimeComponents.h.
a2c7e69a 47
b15325b2
ST
48 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
49 [!MAC_OSX] (select): Use mac_wait_next_event.
50 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
51 Vexec_suffixes.
52 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
53 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
54 (mac_clear_font_name_table): Add extern.
55 (Fmac_clear_font_name_table): New defun.
56 (syms_of_mac): Defsubr it.
57 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
58 [MAC_OSX] (select_and_poll_event): New function.
59 [MAC_OSX] (sys_select): Use it.
60 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
61 [MAC_OSX && SELECT_USE_CFSOCKET]
62 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
63 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
64 RunLoop for simultaneously monitoring two kinds of inputs, window
65 events and process outputs, without periodically polling.
a2c7e69a 66
b15325b2
ST
67 * macfns.c (mac_initialized): Remove extern.
68 (stricmp): Put in #if 0. All callers changed to use xstricmp in
69 xfaces.c.
70 (strnicmp): Decrement `n' at the end of each loop, not the
71 beginning.
72 (check_mac): Use the term "Mac native windows" instead of "Mac
73 OS".
74 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
75 (mac_get_rdb_resource): New function (from w32reg.c).
76 (x_get_string_resource): Use it.
77 (install_window_handler): Add extern.
78 (mac_window): New function.
79 (Fx_create_frame): Use it instead of make_mac_frame. Set
80 parameter for Qfullscreen. Call x_wm_set_size_hint.
81 (Fx_open_connection, Fx_close_connection): New defuns.
82 (syms_of_macfns): Defsubr them.
83 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
84 kWindowNoUpdatesAttribute to the window attribute.
85 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
86 (x_create_tip_frame): Don't call ShowWindow.
87 (Fx_show_tip): Call ShowWindow.
88 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
89 TARGET_API_MAC_CARBON'.
90 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
91 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 92
b15325b2
ST
93 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
94 Windows.h.
95 (Window): Typedef to WindowPtr and move outside `#if
96 TARGET_API_MAC_CARBON'.
97 (XSizeHints): New struct.
a2c7e69a 98
b15325b2
ST
99 * macterm.c (x_update_begin, x_update_end)
100 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
101 frame.
102 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
103 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
104 (construct_mouse_click): Put in #if 0.
105 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
106 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
107 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
108 (activate_scroll_bars, deactivate_scroll_bars)
109 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
110 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
111 if the position is neither user-specified nor program-specified.
112 (x_free_frame_resources): Free size_hints.
113 (x_wm_set_size_hint): Allocate size_hints if needed. Set
114 size_hints.
115 (mac_clear_font_name_table): New function.
116 (mac_do_list_fonts): Initialize font_name_table if needed.
117 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
118 around mac_do_list_fonts.
119 (mac_unload_font): New function.
120 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
121 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
122 and definitions with #if TARGET_API_MAC_CARBON.
123 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
124 (install_window_handler): Add decl.
125 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
126 window. Use UpdateControls. Get the rectangle that should be
127 updated and restrict the target of expose_frame to it.
128 (do_grow_window): Set minimum height/width according to
129 size_hints.
130 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
131 (do_zoom_window): Don't use x_set_window_size.
132 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
133 (install_window_handler): New function.
134 [!USE_CARBON_EVENTS] (mouse_region): New variable.
135 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
136 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
137 GetEventDispatcherTarget inside BLOCK_INPUT.
138 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
139 Update mouse_region when mouse is moved.
140 (make_mac_frame): Remove.
141 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
142 mouse pointer shapes. Change values of f->left_pos and
143 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
144 call ShowWindow.
145 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
146 Vinvocation_name and Vsystem_name.
147 (mac_make_rdb): New function (from w32term.c).
148 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
149 already been opened. Don't pass argument to
150 mac_initialize_display_info. Don't set dpyinfo->height/width.
151 Add entries to x_display_list and x_display_name_list.
152 (x_delete_display): New function.
153 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
154 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
155
b15325b2
ST
156 * macterm.h (check_mac): Add extern.
157 (struct mac_output): New member size_hints.
158 (FRAME_SIZE_HINTS): New macro.
159 (mac_unload_font): Add extern.
a2c7e69a 160
b15325b2 161 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 162
b15325b2
ST
163 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
164
92d2947b
RS
1652004-12-27 Richard M. Stallman <rms@gnu.org>
166
ebbd14f1
RS
167 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
168 (syms_of_buffer): Don't defsubr it.
169
170 * process.c (list_processes_1): Set undo_list instead
171 of calling Fbuffer_disable_undo.
172
92d2947b
RS
173 * xdisp.c (single_display_spec_string_p): Renamed from
174 single_display_prop_string_p.
175 (single_display_spec_intangible_p): Renamed from
176 single_display_prop_intangible_p.
177 (handle_single_display_spec): Renamed from handle_single_display_prop.
178 Rewritten to be easier to understand.
179
a2c7e69a 180 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
181 and variables get just NAME.
182
183 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
184
185 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
186 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
187 (Qdefvar): Var deleted.
188 (syms_of_eval): Don't initialze it.
189
190 * lread.c (syms_of_lread) <load-history>: Doc fix.
191
9f6fcdc5
JD
1922004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
193
194 * xmenu.c (popup_get_selection): Pop down on C-g.
195 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
196 pops down menu on C-g.
197 (xdialog_show): If dialog popped down and no button in the dialog was
198 pushed, call Fsignal to quit.
199 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
200 Fsignal to quit.
201
202 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
203
204 * gtkutil.c (xg_initialize): Install bindings for C-g so that
205 dialogs and menus pop down.
206
857ae68b
JD
2072004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
208
133c0116
JD
209 * gtkutil.c (update_frame_tool_bar): Make the value of
210 tool-bar-button-margin control margins of images in tool bar.
211
857ae68b
JD
212 * alloc.c (check_depth): New variable.
213 (overrun_check_malloc, overrun_check_realloc): Only add
214 overhead and write check pattern if check_depth is 1 (to handle
215 recursive calls). Increase/decrease check_depth in entry/exit.
216 (overrun_check_free): Only check for overhead if check_depth is 1.
217 Increase/decrease check_depth in entry/exit.
218
bd55c35c
JD
2192004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
220
221 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
222 before touching input_available_clear_time, to avoid accessing it
223 from multiple threads.
224
66354420
JR
2252004-12-23 Jason Rumney <jasonr@gnu.org>
226
227 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
228 of JPEG library.
229
55f4edbc
RS
2302004-12-22 Richard M. Stallman <rms@gnu.org>
231
232 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
233
234 * lisp.h (Vundo_outer_limit): Fix decl.
235
236 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
237 Uses changed.
238 (syms_of_undo): Initialize appropriately.
239 (truncate_undo_list): If it's nil, there's no limit.
240
7a0ea9e3
KH
2412004-12-22 Kenichi Handa <handa@m17n.org>
242
243 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
244
fda2922a
RS
2452004-12-21 Richard M. Stallman <rms@gnu.org>
246
247 * eval.c (unwind_to_catch): Clear immediate_quit.
248
249 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
250 specially as `\ ' and `\-'.
251
252 * keyboard.c (kbd_buffer_store_event_hold):
253 In the code for while-no-input, handle immediate_quit.
254
255 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
256 Call that at the very start.
257 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
258 (syms_of_alloc): Don't define undo-limit,
259 undo-strong-limit and undo-outer-limit here.
260
261 * undo.c (truncate_undo_list): Return void.
262 Take just one argument, the buffer.
263 Make it current, and inhibit recursive GC.
264 Access and update the undo list directly; return void.
265 Refer to the undo...limit variables directly.
266 Test undo_outer_limit only after counting the whole current command.
267 When it's exceeded, call the function in undo-outer-limit-function.
268 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
269 (Vundo_outer_limit_function): New variable.
270 (syms_of_undo): Define undo-limit, undo-strong-limit
271 and undo-outer-limit here, and undo-outer-limit-function.
272 Doc fixes.
273
274 * lisp.h (truncate_undo_list): Update decl.
275
2762004-12-21 Piet van Oostrum <piet@cs.uu.nl>
277
278 * fileio.c (Fread_file_name): Delete duplicates in
279 file-name-history when history_delete_duplicates is true.
280
68c69027
ST
2812004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
282
283 * macterm.c (mac_do_list_fonts): Fix memory leak
284
134579f2
RS
2852004-12-20 Richard M. Stallman <rms@gnu.org>
286
287 * regex.c (re_match_2_internal) <symend, wordend>:
288 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
289
fbe6152f
ST
2902004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
291
292 * macterm.c (endif, x_font_name_to_mac_font_name): Use
293 maccentraleurroman instead of maccentraleuropean
294 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
295 quickly finding a specific font without needing regexps.
296
fecad3f6
JD
2972004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
298
333f1b6f
JD
299 * syssignal.h: Declare main_thread.
300 (SIGNAL_THREAD_CHECK): New macro.
301
302 * keyboard.c (input_available_signal): Move thread checking code
303 to macro SIGNAL_THREAD_CHECK and call that macro.
304 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
305
306 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
307
308 * emacs.c: Define main_thread.
309 (main): Initialize main_thread.
310 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
311 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
312
313 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
314
315 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
316
317 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
318
a2c7e69a 319 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
320 SIGNAL_THREAD_CHECK.
321
322 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
323
324 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
325
fecad3f6
JD
326 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
327 returning when xg_ignore_gtk_scrollbar is true.
328
2a84c6da
KS
3292004-12-14 Kim F. Storm <storm@cua.dk>
330
331 * keyboard.c (read_char): Save and restore echo_string when
332 handling input method.
333
d9c1ce9d
RS
3342004-12-13 Richard M. Stallman <rms@gnu.org>
335
336 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
337
338 * keyboard.c (Vthrow_on_input): New variable.
339 (syms_of_keyboard): Defvar and initialize it.
340 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
341
342 * lisp.h (QUIT): Check for Vthrow_on_input.
343 (Vthrow_on_input): Declare it.
344
a6495ed5
KS
3452004-12-13 Kim F. Storm <storm@cua.dk>
346
347 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
348 vector.
349
24a0e22f
RS
3502004-12-12 Richard M. Stallman <rms@gnu.org>
351
352 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
353
354 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
355 (Ftry_completion): Really use outer `zero'; eliminate inner one.
356
d6d31e57
KH
3572004-12-12 Kenichi Handa <handa@m17n.org>
358
359 * term.c (encode_terminal_code): Fix previous change.
360
6f8ffb88
SM
3612004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
362
fb6f5cbf
SM
363 * keyboard.c (handle_async_input): Remove pthread mutex handling.
364 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
365
6f8ffb88
SM
366 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
367 in macro arguments.
368
369 * minibuf.c (Ftry_completion, Fall_completions): Don't use
370 XFASTINT blindly.
371
372 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
373
c83c9f9d
JD
3742004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
375
2f25767f
JD
376 * w32term.c (x_calc_absolute_position): Remove calculation of
377 difference between inner and outer window. Don't subtract difference
378 for left and top calculations.
379
c83c9f9d
JD
380 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
381 for left and top calculations. Remove call to x_real_positions.
24a0e22f 382 [Bug report by Drew Adams in November]
c83c9f9d
JD
383 (x_check_expected_move): Do not set change_gravity to 1 when calling
384 x_set_offset.
385
cc1caa4e
RS
3862004-12-08 Richard M. Stallman <rms@gnu.org>
387
388 * xdisp.c (get_next_display_element): Use `escape-glyph' for
389 control chars and escaped octal codes.
390 (Qescape_glyph): New variable.
391 (syms_of_xdisp): Initialize it.
392 (escape_glyph_face): New variable.
393 (redisplay_window): Initialize it.
394
e0e30823
RS
3952004-12-07 Paul Eggert <eggert@cs.ucla.edu>
396
397 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
398 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
399
f415cacd
JD
4002004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
401
cf435f39
JD
402 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
403 reset_malloc_hooks.
404
6f8ffb88
SM
405 * keyboard.c (handle_async_input, input_available_signal):
406 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 407
f415cacd
JD
408 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
409
19b1f29a
SM
4102004-12-07 Stefan <monnier@iro.umontreal.ca>
411
412 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
413
414 * config.in: Regenerate.
415
ded997c1
JD
4162004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
417
453a4f1b
JD
418 * xmenu.c (Fx_popup_menu): Correct documentation about position.
419 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
420 if not given by a mouse click to correspond with x-popup-menu
421 documentation.
422
9a38524c
JD
423 * config.in: Regenerate.
424
aa477689
JD
425 * gtkutil.c: Include signal.h and syssignal.h.
426 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
427
428 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
429 new variables main_thread and alloc_mutex,
430 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
431 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
432 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
433 (UN)BLOCK_INPUT.
434 (emacs_blocked_free, emacs_blocked_malloc)
435 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
436 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
437 (reset_malloc_hooks): New function.
438
439 * lisp.h: Declare reset_malloc_hooks.
440
441 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
442
443 * keyboard.c: Conditionally include pthread.h
6f8ffb88 444 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
445 thread, block signal, send signal to main thread and return.
446
ded997c1 447 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 448 Set current folder in file chooser if default_filename is a directory.
ded997c1 449
c72b0edd
SM
4502004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
451
452 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
453 Remove redundant correctness checks.
454 (regex_compile): Fix up error codes for \{..\} expressions.
455
c721eee5
RS
4562004-12-05 Richard M. Stallman <rms@gnu.org>
457
458 * regex.c (regex_compile): Fix end-of-pattern case for space.
459
d8f96db8
ST
4602004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
461
6108209e
KS
462 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
463 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 464 crashes with invalid characters.
6108209e
KS
465 * macmenu.c (add_menu_item): Use it.
466 * image.c (image_load_quartz2d): Likewise.
467 * macfns.c (x_set_name, x_set_title): Likewise.
468 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
469 creating them each time for labels.
d8f96db8 470
ab67e8b6
RS
4712004-12-02 Richard M. Stallman <rms@gnu.org>
472
473 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
474 don't use it here.
475
476 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
477 (interactive_p): Skip Scalled_interactively_p frames
478 like Sinteractive_p frames.
b8217ea6 479 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
480
481 * data.c (Fmake_variable_buffer_local): Doc fix.
482 (Fmake_local_variable): Doc fix.
483
484 * insdel.c (insert_from_string_before_markers)
485 (insert_from_string): Don't modify buffer on empty insertion.
486
487 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
488
f86bdc80
ST
4892004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
490
491 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
492 menu text as UTF8 fails.
493
1cae6d39
KS
4942004-12-01 Kim F. Storm <storm@cua.dk>
495
496 * alloc.c: Add commentary for last change.
497 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
498 sizeof(size_t) != 4.
499 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
500 Use them. Also clear header and trailer of freed memory.
501 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
502 (string_overrun_cookie): Rename from string_overrun_pattern.
503 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
504
77ea0764
AS
5052004-12-01 Andreas Schwab <schwab@suse.de>
506
507 * lisp.h: Declare string_to_multibyte.
508
2d5cd4e6
KH
5092004-12-01 Kenichi Handa <handa@m17n.org>
510
511 * w32console.c (w32con_write_glyphs): Decide coding here.
512 Adjusted for the change of encode_terminal_code.
513
514 * term.c (encode_terminal_code): Don't make it "static".
515
25a0994a
KH
5162004-11-30 Kenichi Handa <handa@m17n.org>
517
19b1f29a 518 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 519 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
520 characters at once, and return a pointer to the result of encoding.
521 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
522 (insert_glyphs): Likewise.
523 (term_init): Initialize encode_terminal_bufsize to 0.
524
525 * coding.c (Vcode_conversion_workbuf_name): New variable.
526 (syms_of_coding): Initialize and staticpro it.
527 (set_conversion_work_buffer): New function.
528 (run_pre_post_conversion_on_str): Use it.
529 (run_pre_write_conversin_on_c_str): New function.
530
531 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
532
fc7a70cc
ST
5332004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
534
535 * keyboard.c: Don't undef SIGIO
536 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
537 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
538 (macfns.o): Don't depend on ccl.h.
539 * macfns.c (mac_frame_parm_handlers): Set handlers for
540 Qleft_fringe and Qright_fringe.
541 * macterm.c (mac_fill_rectangle_to_pixmap)
542 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
543 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
544 Put in #if 0.
545 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
546 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
547 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
548 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
549 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
550 XDrawImageString. Always draw background and foreground separately.
551 (x_draw_image_foreground): Use clipping instead of computing the
552 intersection rectangle.
553 (x_draw_image_glyph_string): Don't draw an image with mask to a
554 pixmap.
555 (x_redisplay_interface): Set flush_display_optional member to 0.
556 (XTread_socket): Correctly reset the TEConverter
557 object.
558
fc368889
KS
5592004-11-30 Kim F. Storm <storm@cua.dk>
560
561 * lisp.h: New defines to enable buffer overrun checking.
562 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
563 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
564
565 * alloc.c: Add more checks for buffer overruns.
566 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
567 xmalloc_overrun_check_trailer, overrun_check_malloc)
568 overrun_check_realloc, overrun_check_free): Add.
569 (GC_STRING_EXTRA, string_overrun_pattern): Add.
570 (check_sblock, allocate_string_data, compact_small_strings):
571 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
572 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
573 (check_string_free_list): Add.
574 (allocate_string, sweep_strings): Call check_string_free_list.
575
576 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
577 XMALLOC_OVERRUN_CHECK to avoid crash during load.
578
0af8cfe1
KS
5792004-11-29 Kim F. Storm <storm@cua.dk>
580
581 * fns.c (concat): Use SAFE_ALLOCA.
582
77220eeb
SM
5832004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * sysdep.c (emacs_write): Don't use QUIT.
586
a778cf63
KH
5872004-11-29 Kenichi Handa <handa@m17n.org>
588
589 * buffer.c (init_buffer): Set current_buffer->directory to a
590 multibyte string made by string_to_multibyte.
591
77220eeb 592 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 593
e3177e43
AS
5942004-11-27 Andreas Schwab <schwab@suse.de>
595
596 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
597
598 * s/gnu-linux.h: Enable no-op gcpros on ia64.
599 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
600
77220eeb
SM
601 * filelock.c (lock_file_1): Call get_boot_time early.
602 Increase buffer size.
e3177e43 603
ca5e6fef
EZ
6042004-11-27 Eli Zaretskii <eliz@gnu.org>
605
606 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
607 is not defined.
608
e2811828
KS
6092004-11-27 Kim F. Storm <storm@cua.dk>
610
611 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
612 marker out of doc string.
613
7a262394
SM
6142004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
615
616 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
617 which was not mentioned in the log.
618
f33cc5a9
KS
6192004-11-26 Kim F. Storm <storm@cua.dk>
620
048bb03f
KS
621 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
622 angle bitmaps at top/bottom line.
623
f33cc5a9
KS
624 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
625 set it when it->method is set to next_element_from_display_vector.
626 (setup_for_ellipsis): Add LEN argument. Callers changed.
627 Set it->saved_face_id.
628 (get_next_display_element): Use loop instead of recursion.
629 Set it->saved_face_id. Combine duplicate code for ctr chars.
630 (next_element_from_display_vector): Do not set it->saved_face_id.
631 (next_element_from_ellipsis): Use setup_for_ellipsis.
632
670e8906
EZ
6332004-11-26 Eli Zaretskii <eliz@gnu.org>
634
635 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
636 prevent compiler warnings.
637
275464e7
SM
6382004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
639
1bf0e604
SM
640 * keyboard.c (command_loop_1): Print a message describing the key
641 the user just pressed when this key has no binding.
642
275464e7
SM
643 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
644 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
645
646 * lread.c (readchar): Check QUIT when `getc' is interrupted.
647
261b01c6
RS
6482004-11-24 Richard M. Stallman <rms@gnu.org>
649
650 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
651
652 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
653
a5bd504e
KS
6542004-11-24 Kim F. Storm <storm@cua.dk>
655
656 * xdisp.c (move_it_in_display_line_to, display_line):
657 Restore saved_face_id also when truncate-lines or hscrolled.
658
255e4140
JD
6592004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
660
661 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
662 x-use-old-gtk-file-dialog.
663
664 * xfns.c: Define x_use_old_gtk_file_dialog.
665 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
666 outside ifdef USE_GTK.
667
cab27d04
SM
6682004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
669
670 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
671 Don't use XFASTINT blindly.
672
673 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
674
675 * indent.c (skip_invisible): Avoid non-idempotent side-effects
676 in macro arguments.
677
678 * keymap.c (Flookup_key): Check INTEGERP before XINT.
679
680 * lread.c (oblookup): Don't use XFASTINT blindly.
681
682 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
683 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
684
11e0be49
KS
6852004-11-23 Kim F. Storm <storm@cua.dk>
686
4d721114
KS
687 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
688 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
689
11e0be49
KS
690 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
691 signal_p is zero and face name is unknown.
692 (Fx_list_fonts): Don't signal error in lookup_named_face.
693 (Fface_font): Signal error in lookup_named_face.
694 (ascii_face_of_lisp_face): Likewise.
695
696 * dispextern.h (lookup_named_face): Fix prototype.
697
698 * xdisp.c (handle_single_display_prop): Don't signal error in
699 lookup_named_face for unknown fringe face name.
700 (highlight_trailing_whitespace): Don't signal error in
701 lookup_named_face if trailing-whitespace face unknown.
702 (calc_line_height_property): Don't signal error in
703 lookup_named_face if specified face name is unknown.
704
705 * fringe.c (update_window_fringes): Show top row indicator if
706 window has header-line. Don't show arrow at bob and eob
707 if the boundary indicators are not used.
708 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
709
710 * window.c (set_window_buffer): Clear display_error_modiff.
711
0960a582
KS
7122004-11-22 Kim F. Storm <storm@cua.dk>
713
714 * fringe.c (update_window_fringes): Provide sensible fall-back
715 value for non-nil indicate-buffer-boundaries setting.
716
b0e9bb28
MR
7172004-11-22 Markus Rost <rost@ias.edu>
718
719 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
720
d0bce91e
SM
7212004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
722
723 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
724
e1814672
KS
7252004-11-21 Kim F. Storm <storm@cua.dk>
726
b7fd3518
KS
727 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
728
729 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
730 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
731
732 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
733 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
734
735 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
736 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
737
d0bce91e
SM
738 * xdisp.c (move_it_in_display_line_to, display_line):
739 Restore saved_face_id if overflow-newline-into-fringe is enabled and
740 line is continued before or in middle of element from display vector.
f01d4d05 741
f1a61389
KS
742 * indent.c (Fvertical_motion): Fix last change. Use another
743 method to detect if iterator moved too far ahead after reseat.
744
e1814672
KS
745 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
746 expand matrix width for overflow in zero-width area.
747 (append_glyph, append_composite_glyph, produce_image_glyph)
748 (append_stretch_glyph): Use it to avoid loop in redisplay.
749 (note_mode_line_or_margin_highlight): Don't let help-echo from
750 string override help-echo from image map.
751
2dafe1c9
LT
7522004-11-20 Luc Teirlinck <teirllm@auburn.edu>
753
d0bce91e 754 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
755 * callint.c (Fcall_interactively): Ditto.
756
fd6866c8 7572004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
758
759 * minibuf.c (Fminibuffer_complete_and_exit):
760 Fixup the case of the completed value, for case-indep completion.
761
dedbac89
RS
7622004-11-20 Richard M. Stallman <rms@gnu.org>
763
fd6866c8
RS
764 * lisp.h (Fread_from_minibuffer): Add arg in decl.
765
9d00469f 766 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 767 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 768
dedbac89 769 * search.c (Vsearch_spaces_regexp):
d0bce91e 770 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 771
2f672bb5
TTN
7722004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
773
774 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
775
f31a9a68
RS
7762004-11-19 Richard M. Stallman <rms@gnu.org>
777
778 * search.c (Vsearch_whitespace_regexp): New variable.
779 (syms_of_search): Defvar it.
780 (compile_pattern_1): Call re_set_whitespace_regexp with it.
781 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
782 is non-nil.
6de891db
RS
783 (struct regexp_cache): New element whitespace_regexp.
784 (syms_of_search): Initialize whitespace_regexp elements.
785 (compile_pattern): Compare whitespace_regexp elements.
786 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
787
788 * regex.c (regex_compile): Substitute whitespace_regexp
789 for spaces, if it is nonzero.
790 (whitespace_regexp): New variable.
791 (re_set_whitespace_regexp): New function.
792
cbc34cb3
KS
7932004-11-19 Kim F. Storm <storm@cua.dk>
794
795 * indent.c (Fvertical_motion): Fix last change.
796
b54a7539
KS
7972004-11-18 Kim F. Storm <storm@cua.dk>
798
799 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
800 Instead, move back again if reseating moves too far ahead.
801
8022004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
803
804 * xdisp.c (message3): Call clear_message.
805
5ff504fe
KS
8062004-11-17 Kim F. Storm <storm@cua.dk>
807
808 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
809
5ae53dcf
JD
8102004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
811
d0bce91e 812 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 813
6abf3a27 814 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
815 (x_menu_set_in_use): Also set popup_activated_flag.
816
5ff504fe 817 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
818 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
819
6abf3a27 820 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 821
ee31cd78
RS
8222004-11-16 Richard M. Stallman <rms@gnu.org>
823
6abf3a27
SM
824 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
825 Use map-keymap-internal to implement that.
ee31cd78
RS
826
827 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
828
6abf3a27
SM
8292004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
830
831 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
832 a window before using XWINDOW.
833
834 * window.c (make_window, Fselect_window, make_dummy_parent)
835 (save_window_save):
836 * frame.c (make_frame):
837 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
838
839 * lisp.h (NILP): Use EQ rather than XFASTINT.
840
b4d61105
KS
8412004-11-16 Kim F. Storm <storm@cua.dk>
842
6abf3a27 843 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 844
b4d61105
KS
845 * indent.c (Fvertical_motion): Fix last change. Only reseat when
846 moving backwards.
847
8482004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
849
850 * dispextern.h: Extern reseat_at_previous_visible_line_start.
851
ab5b02b0
KH
8522004-11-16 Kenichi Handa <handa@m17n.org>
853
854 * xdisp.c (display_mode_element): Fix previous change (calculate
855 end position of substring to display correctly).
856
c482cf97
KS
8572004-11-16 Kim F. Storm <storm@cua.dk>
858
859 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
860 Reported by Andrew M. Scott.
861
9f89426b
KS
8622004-11-15 Kim F. Storm <storm@cua.dk>
863
864 * fns.c (Fsafe_plist_get): New defun.
865 (syms_of_fns): Defsubr it.
866
867 * lisp.h (Fsafe_plist_get): Add EXFUN.
868
869 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
870 Use Fsafe_plist_get.
871 (note_mode_line_or_margin_highlight, note_mouse_highlight):
872 Fix image map element parsing. Use Fsafe_plist_get.
873
27418463
RS
8742004-11-15 Richard M. Stallman <rms@gnu.org>
875
876 * xdisp.c (get_next_display_element): Fix previous change.
877
a130b901
JD
8782004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
879
ef614e04
JD
880 * window.c (shrink_windows): Handle special case of one window left
881 when trying to shrink the final reminder. Grow windows if
882 total_removed is less than total_shrink.
883
a130b901
JD
884 * xmenu.c (pop_down_menu): Remove global variable current_menu,
885 extract pointer from arg with XSAVE_VALUE.
46303896
KS
886 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
887 Construct arg to record_unwind_protect with make_save_value.
a130b901 888
d9a03ad2
RS
8892004-11-13 Richard M. Stallman <rms@gnu.org>
890
891 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
892 (get_next_display_element): Fix previous change to apply only to \n.
893
894 * indent.c (Fvertical_motion): Scan to PT from start of line to
895 make iterator consistent.
896
897 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
898
b3935289
JD
8992004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
900
901 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
902
903 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
904 Record unwind with clean_up_file_dialog.
905
78819ebb
KS
906 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
907 Declare.
b3935289
JD
908
909 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
910
af89e871
JD
9112004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
912
457a8155 913 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 914 (xg_file_sel_destroy): Remove.
46303896
KS
915 (xg_file_response_cb, pop_down_file_dialog)
916 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 917 New functions.
6abf3a27
SM
918 (xg_get_file_with_chooser, xg_get_file_with_selection):
919 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
920 Move common code to xg_get_file_name. Return widget created.
921 (xg_get_file_name): Set name, transient for, modal and destroy
922 with parent here. Connect response signal to xg_file_response_cb,
923 connect delete-event to gtk_true. Record pop_down_file_dialog
924 for unwind. Do event loop and call x_menu_wait_for_event in loop.
925 (xg_create_widget): Make dialogs modal.
926
af89e871
JD
927 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
928 Lisp_Object.
929 (popup_get_selection): Move unwind protect ...
930 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
931 Move destroy of widget to pop_down_menu.
932 (popup_widget_loop): Move unwind protect ...
933 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
934 Move destroy of widget to pop_down_menu.
935 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 936 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
937 x_mouse_leave and grabbed = 0 to pop_down_menu.
938
5596fbf1
KS
9392004-11-13 Kim F. Storm <storm@cua.dk>
940
941 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
942 (syms_of_xdisp): DEFVAR_BOOL it.
943 (make_cursor_line_fully_visible, try_cursor_movement)
944 (try_window_id): Use it.
945
b9de078a
KS
9462004-11-12 Kim F. Storm <storm@cua.dk>
947
381f7091
KS
948 * dispextern.h (struct glyph_row): New member extra_line_spacing.
949 (struct it): New member max_extra_line_spacing.
950 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
951 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
952 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
953 part of last line is only extra line spacing (so the text on the
954 line is fully visible). Use helper macros.
955 Add W arg (to use them). All callers changed.
956 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
957 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
958
6abf3a27
SM
959 * window.c (window_scroll_pixel_based, Frecenter):
960 Use move_it_vertically_backward directly.
381f7091
KS
961 (Frecenter): Fix calculation of new start pos for negative arg.
962 Before, the new start pos was sometimes chosen too far back, so
963 the last line became only partially visible, and thus would be
964 either only semi-visible or automatically scrolled to the middle
965 of the window by redisplay.
966
967 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
968 (move_it_vertically_backward): Don't recure to move further back.
969 (move_it_vertically): Remove superfluous condition.
970 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 971 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
972 (display_tool_bar_line): Clear row->extra_line_spacing.
973 (try_scrolling): Use move_it_vertically_backward directly.
974 (redisplay_window): Likewise.
975 (compute_line_metrics): Set row->extra_line_spacing.
976 (display_line, display_string): Likewise.
977 (x_produce_glyphs): Update it->max_extra_line_spacing.
978
b9de078a
KS
979 * xmenu.c (pop_down_menu): Return nil.
980
c3438661
JD
9812004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
982
983 * xmenu.c (x_menu_wait_for_event): New function.
984 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
985 to handle timers.
df00f436
JD
986 (popup_widget_loop): Add argument do_timers.
987 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
988 do_timers to popup_widget_loop.
c3438661
JD
989 (xmenu_show): Call XMenuActivateSetWaitFunction so that
990 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 991 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 992 popup_get_selection.
f1d1cd24
JD
993 (pop_down_menu): New function.
994 (popup_get_selection, popup_widget_loop): Unwind protect to
995 pop_down_menu.
996 (popup_widget_loop): Add argument widget.
997 (create_and_show_popup_menu, create_and_show_dialog): Pass new
998 argument widget to popup_widget_loop.
c3438661 999
32e2fb04
SM
10002004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1001
1002 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1003
0faf6806
KS
10042004-11-09 Kim F. Storm <storm@cua.dk>
1005
1006 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1007 Fix various comments referring to XEvents instead of input events.
1008 (x_queue_event): Fix format strings.
1009 (x_stop_queuing_selection_requests): Likewise.
1010
1011 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1012 (pint2hrstr): Add extra braces to silence compiler.
1013
1014 * print.c (print_object): Fix format string.
1015
1016 * lread.c (read1): Fix next_char matching.
1017
1018 * lisp.h (Fdelete): Add EXFUN.
1019 (replace_range_2): Add prototype.
1020
1021 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1022
1023 * intervals.h (NULL_INTERVAL_P): Add separate version when
1024 ENABLE_CHECKING is not defined to silence compiler.
1025 (compare_string_intervals): Add prototype.
1026
1027 * fringe.c (destroy_fringe_bitmap): Fix return type.
1028 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1029
1030 * emacs.c (Fdump_emacs): Fix format string.
1031
1032 * doc.c: Include <ctype.h>.
1033 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1034
1035 * data.c (store_symval_forwarding): Remove unused variables.
1036
1037 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1038
16bf4e32
JD
10392004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1040
1041 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1042 to ${OLDXMENU}.
1043
cdb805a9
KS
10442004-11-09 Kim F. Storm <storm@cua.dk>
1045
1046 * process.c (Fmake_network_process): Remove kludge for interrupted
1047 connects on BSD. If connect is interrupted, just close socket and
1048 start over rather than sleeping and retry with same socket.
1049
d87a9ab8 10502004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1051
a8b16c80
JD
1052 * .cvsignore: Add buildobj.lst.
1053
d87a9ab8
JD
1054 * doc.c: New variable Vbuild_files.
1055 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1056 file names from buildobh.lst. Only attach docstrings from files
1057 that are in Vbuild_files.
1058 (syms_of_doc): Defvar Vbuild_files.
1059
1060 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1061 and w32*.o.
1062 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1063 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1064
1065 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1066 is linked.
1067
b6709e77
KS
10682004-11-09 Kim F. Storm <storm@cua.dk>
1069
1070 * fringe.c (update_window_fringes): Update fringe bitmaps if
1071 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1072 also update previous row to get rid of misc. artifacts.
1073
bae9677d
KS
10742004-11-08 Kim F. Storm <storm@cua.dk>
1075
1076 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1077 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1078
3f8ea68c
EZ
10792004-11-08 Eli Zaretskii <eliz@gnu.org>
1080
1081 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1082 Don't include <sys/time.h> explicitly.
1083 Include <stdio.h> unconditionally, not just on MacOS.
1084
a653f812
KH
10852004-11-08 Kenichi Handa <handa@m17n.org>
1086
1087 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1088 don't pay attention to '\' before '*'.
1089 (fontset_pattern_regexp): Change the meaning of the second arg.
1090 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1091 (check_fontset_name): Try NAME as literal at first, and if it
1092 failes, try NAME as pattern.
1093
c37caf9d
JD
10942004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1095
1096 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1097
b72915a7
AS
10982004-11-07 Andreas Schwab <schwab@suse.de>
1099
78819ebb
KS
1100 * lisp.h (Fmsdos_downcase_filename): Declare.
1101 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1102 * fileio.c: Likewise.
1103
238a44a8
JD
11042004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1105
1106 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1107 comparisons with integers instead of Lisp_Object address.
1108 (Fmsdos_set_keyboard): Declare argument allkeys.
1109
1110 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1111
78819ebb 1112 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1113 int/Lisp_Object mixup.
1114
1115 * fileio.c: Ditto.
1116
31141c13
ST
11172004-11-06 Steven Tamm <steventamm@mac.com>
1118
1119 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1120
f28c1bd9
RS
11212004-11-06 Richard M. Stallman <rms@gnu.org>
1122
1123 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1124
1125 * xfaces.c (merge_named_face): GCPRO the face_name in the
1126 named_merge_point struct that we make.
1127 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1128
1129 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1130 before deciding whether to inactivate mark.
1131
59dede22
EZ
11322004-11-06 Lars Brinkhoff <lars@nocrew.org>
1133
1134 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1135 * editfns.c (Fget_internal_run_time): New function.
1136 (syms_of_data): Defsubr it.
1137 * fns.c (sxhash): As far as possible, merge calculation of
1138 hash code for symbols and strings.
59dede22 1139
27540e81
EZ
11402004-11-06 Eli Zaretskii <eliz@gnu.org>
1141
1142 * frame.c (syms_of_frame): Fix the example in the doc string.
1143
df470e3b
JD
11442004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1145
1146 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1147
1148 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1149 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1150
4cc8522c
LT
11512004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1152
1153 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1154
d4a42098
KS
11552004-11-05 Kim F. Storm <storm@cua.dk>
1156
a8490886
KS
1157 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1158
d4a42098
KS
1159 * fileio.c (Ffile_modes): Doc fix.
1160 (auto_save_1): Check for Ffile_modes nil value.
1161
36a2b04c
KS
11622004-11-05 Kim F. Storm <storm@cua.dk>
1163
1164 * xselect.c (struct selection_event_queue, selection_queue)
1165 (x_queue_selection_requests, x_queue_event)
1166 (x_start_queuing_selection_requests)
1167 (x_stop_queuing_selection_requests): Add new queue for selection
1168 input events to replace previous XEvent queue in xterm.c.
1169 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1170 (x_reply_selection_request): Adapt to new queue.
1171 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1172 (x_handle_selection_request, x_handle_selection_clear): Make static.
1173 (x_handle_selection_event): New function. May queue selection events.
1174 (wait_for_property_change_unwind): Use save_value instead of cons.
1175 Clear property_change_reply_object.
1176 (wait_for_property_change): Abort if already waiting.
1177 Use save_value instead of cons for unwind data.
1178 (x_handle_property_notify): Skip events already arrived, but don't
1179 free them, as "arrived" field is checked by wait_for_property_change,
1180 and it will be freed by unwind or explicit unexpect_property_change.
1181 (x_get_foreign_selection): Add to new queue.
1182 (receive_incremental_selection): Don't unexpect wait_object when done
1183 as it has already been freed by previous wait_for_property_change.
1184
1185 * xterm.h (x_start_queuing_selection_requests)
1186 (x_stop_queuing_selection_requests, x_handle_selection_request)
1187 (x_handle_selection_clear): Remove prototypes.
1188 (x_handle_selection_event): Add prototype.
1189
1190 * xterm.c (handle_one_xevent): Don't queue X selection events
1191 here, it may be too late if we start queuing after we have already
1192 stored some selection events into the kbd buffer.
1193 (struct selection_event_queue, queue, x_queue_selection_requests)
1194 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1195 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1196 (x_catch_errors_unwind): Block input around final XSync.
1197
1198 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1199
1200 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1201 (kbd_buffer_unget_event): New function.
1202 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1203 and use x_handle_selection_event.
1204 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1205
9c3ad9e1
JD
12062004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1207
1208 * xselect.c (TRACE3): New debug macro.
1209 (x_reply_selection_request): Use it.
1210 (receive_incremental_selection): In call to TRACE0, the name of
1211 a symbol is in xname.
1212
a33b89de
KS
12132004-11-05 Kim F. Storm <storm@cua.dk>
1214
1215 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1216
a872928c
JD
12172004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1218
88208bb8
JD
1219 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1220
78819ebb 1221 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1222
1223 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1224 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1225 * xfns.c (syms_of_xfns): ... to here.
1226
a872928c
JD
1227 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1228 it doesn't start with /.
1229
b912921c
KH
12302004-11-04 Kenichi Handa <handa@m17n.org>
1231
1232 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1233 treat it as a literal character.
1234
c524d9a6
KS
12352004-11-03 Kim F. Storm <storm@cua.dk>
1236
1237 * .gdbinit (ppt): New function.
1238
8cfd0f36
JD
12392004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1240
a11e1dce
JD
1241 * xterm.c (x_window_to_scroll_bar): Only call
1242 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1243
8cfd0f36
JD
1244 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1245 of save.
1246
a93563fd
AS
12472004-11-02 Andreas Schwab <schwab@suse.de>
1248
1249 * window.c (Fscroll_right): Fix last change.
1250
2b2d59d8
KS
12512004-11-02 Kim F. Storm <storm@cua.dk>
1252
1253 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1254
12552004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1256
1257 * callproc.c (Fcall_process): Block input around vfork.
1258
ca28104d
KS
12592004-11-02 Kim F. Storm <storm@cua.dk>
1260
1261 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1262 (syms_of_eval): Defsubr it.
1263
29bb7127
RS
12642004-11-02 Richard M. Stallman <rms@gnu.org>
1265
1266 * insdel.c (replace_range_2): New function.
1267
1268 * casefiddle.c (casify_region): Handle changes in byte-length
1269 using replace_range_2.
1270
1271 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1272
b6189c3b 1273 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1274 Subtract 1 from pos when checking previous newline for invisibility.
1275
1276 * window.c (window_scroll_pixel_based): Update preserve_y
1277 for header line if any.
1278 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1279 use a new second argument instead.
1280
1281 * eval.c (Fcall_interactive_p): New function.
1282 (interactive_p): Don't test INTERACTIVE here.
1283 (Finteractive_p): Doc fix.
1284
1285 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1286
b6189c3b 12872004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1288
1289 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1290 comparing font names.
a3fe4aaf 1291
2a00cdb4
JD
12922004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1293
f9d64bb3
JD
1294 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1295 Fx_file_dialog if only directories should be read.
1296
1297 * lisp.h: Fx_file_dialog takes 5 parameters.
1298
32e2fb04
SM
1299 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1300 Add parameter only_dir_p.
f9d64bb3
JD
1301 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1302 dialog, just text field part. Do not add DEFAULT_FILENAME
1303 to list of files if it isn't there.
1304 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1305
32e2fb04
SM
1306 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1307 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1308 a save dialog, add option kNavDontConfirmReplacement, change title
1309 to "Enter name", change text for save button to "Ok".
1310
32e2fb04
SM
1311 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1312 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1313
1314 * gtkutil.c (xg_get_file_with_chooser)
1315 (xg_get_file_with_selection): New functions, only defined ifdef
1316 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1317 respectively.
1318 (xg_get_file_name): Add parameter only_dir_p.
1319 Call xg_get_file_with_chooser or xg_get_file_with_selection
1320 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1321 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1322
1323 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1324
2a00cdb4
JD
1325 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1326
f6749d5d
KS
13272004-11-01 Kim F. Storm <storm@cua.dk>
1328
32e2fb04
SM
1329 * process.c (connect_wait_mask, num_pending_connects):
1330 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1331 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1332 (IF_NON_BLOCKING_CONNECT): New helper macro.
1333 (wait_reading_process_output): Only declare and use local vars
1334 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1335
1a99fe1a
JR
13362004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1337
1338 * w32term.c (x_scroll_run): Delete region objects after use.
1339
fcdb28b4
JD
13402004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1341
495ef86b
JD
1342 * xmenu.c: Add prototypes for forward function declarations.
1343 (popup_get_selection): Remove parameter do_timers, remove call to
1344 timer_check.
32e2fb04
SM
1345 (create_and_show_popup_menu, create_and_show_dialog):
1346 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1347
12e6566a
JD
1348 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1349 tool_bar_items and assign the result to f->tool_bar_items if
1350 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1351 tool_bar_items to assignment of result.
1352
fcdb28b4
JD
1353 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1354 pending_atmers is non-zero.
1355
1a1a0c4c
KS
13562004-10-31 Kim F. Storm <storm@cua.dk>
1357
1358 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1359
a36f1680
JW
13602004-10-28 Will <will@glozer.net>
1361
1362 * macterm.c: allow user to assign key modifiers to the Mac Option
1363 key via a 'mac-option-modifier' variable.
1364
32e2fb04 13652004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1366
1367 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1368 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1369 (x_handle_selection_request, x_handle_selection_clear)
1370 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1371
4f71c13f
RS
13722004-10-28 Richard M. Stallman <rms@gnu.org>
1373
1374 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1375
1376 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1377
068f3848
SM
13782004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1379
1380 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1381 comment-starter over a 1-char one.
1382
4660a9e3
RS
13832004-10-27 Richard M. Stallman <rms@gnu.org>
1384
1385 * xdisp.c (get_next_display_element): In mode lines,
1386 treat newline and tab like other control characters.
1387
1388 * editfns.c (Fmessage): Doc fix.
1389
1390 * indent.c (vmotion): When moving up, check the newline before.
1391 Make prevline an int, not a Lisp_Object.
1392
233f3db6
KS
13932004-10-27 Kim F. Storm <storm@cua.dk>
1394
1395 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1396 Only allocate info and discarded tables once.
1397
1398 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1399 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1400 (SAFE_FREE): Test it to determine if we need to unwind to free.
1401 Remove size arg. All users changed.
1402 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1403
1442465d
JD
14042004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1405
1406 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1407 (xg_destroy_widgets): Rename from remove_from_container.
1408 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1409 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1410 instead of remove_from_container.
1411 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1412 (free_frame_tool_bar): Add comment.
1413
1414 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1415 is not NULL before strcmp.
1416
c8636435
KS
14172004-10-26 Kim F. Storm <storm@cua.dk>
1418
1419 * callint.c (Fcall_interactively): Add 'U' code to get the
1420 up-event discarded by a previous 'k' or 'K' argument.
1421
5629f29b
DK
14222004-10-26 David Kastrup <dak@gnu.org>
1423
1424 * buffer.c (syms_of_buffer): Fix a few typos.
1425
4f2f546e
JD
14262004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1427
1428 * xsmfns.c: Put empty line between comment and function body.
1429 Use two spaces before comment end.
1430
fc1062f5
KH
14312004-10-25 Kenichi Handa <handa@m17n.org>
1432
1433 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1434 PATTERN is full XLFD.
1435
be13f5e5
KH
14362004-10-24 Kenichi Handa <handa@m17n.org>
1437
1438 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1439
1440 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1441 (regex_compile): Return REG_ERANGEX if appropriate.
1442
d0ee2ed3
KH
14432004-10-22 Kenichi Handa <handa@m17n.org>
1444
1445 * editfns.c (Ftranslate_region_internal): New function.
1446 (syms_of_editfns): Defsubr it.
1447
63ea8ea5
JD
14482004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1449
1450 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1451
c27ed90a
JD
14522004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1453
068f3848
SM
1454 * xterm.h (x_output): New member `xic_base_fontname'.
1455 (FRAME_XIC_BASE_FONTNAME): New macro.
1456 (xic_free_xfontset): Declare.
c27ed90a 1457
068f3848
SM
1458 * xfns.c (xic_create_xfontset): Share fontsets between frames
1459 based on base_fontname.
1460 (xic_free_xfontset): New function.
1461 (free_frame_xic): Use it.
1462 (xic_set_xfontset): Ditto.
c27ed90a 1463
068f3848 1464 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1465
1466
59508699
JR
14672004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1468
1469 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1470
dede2792
JD
14712004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1472
3aca2078
JD
1473 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1474 XSync.
1475
dede2792
JD
1476 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1477 New variables and constant.
1478 (main): Calculate heap_bss_diff. If we are dumping and the
1479 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1480 and exec ourself again.
1481 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1482 print a warning.
1483
1484 * lastfile.c: Make my_endbss and my_endbss_static available on all
1485 platforms.
1486
1487 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1488 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1489
1dc5ba01
LT
14902004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1491
1492 * data.c (Flocal_variable_if_set_p): Doc fix.
1493
950090be
JR
14942004-10-19 Jason Rumney <jasonr@gnu.org>
1495
1496 * w32.c (init_environment): Set emacs_dir correctly when running
1497 emacs from the build directory.
1498
8550b998
RS
14992004-10-19 Richard M. Stallman <rms@gnu.org>
1500
1501 * editfns.c (Fdelete_and_extract_region):
1502 If region is empty, return null string.
1503
08dedea6
JD
15042004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1505
1dc5ba01 1506 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1507 and canon_width.
068f3848 1508 (xg_frame_cleared): Remove.
08dedea6 1509
068f3848
SM
1510 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1511 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1512 (xg_create_scroll_bar): Put an event box widget between
1513 the scroll bar widget and the edit widget.
1514 (xg_show_scroll_bar): Show the parent widget (the event box).
1515 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1516 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1517 Move the parent (the event box) widget inside the fixed widget.
1518 Move window clear to xterm.c.
1519
068f3848 1520 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1521
08dedea6 1522 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1523 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1524 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1525 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1526
8550b998 15272004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1528
1529 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1530
84338890
JD
15312004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1532
1533 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1534 gdk_window_clear and move gdk_window_process_all_updates after
1535 clear so events are sent to the X server in correct order.
1536
6e1b0d8c
KH
15372004-10-18 Kenichi Handa <handa@m17n.org>
1538
1539 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1540 comparing font names.
8550b998 1541 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1542 (list_fontsets): Likewise.
1543
1544 * search.c (fast_string_match_ignore_case): New function.
1545
1546 * lisp.h (fast_string_match_ignore_case): Extern it.
1547
345e75a8
KS
15482004-10-17 Kim F. Storm <storm@cua.dk>
1549
1550 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1551 than bitmap if there is not left fringe.
1552 (get_overlay_arrow_glyph_row): Also used on windows system.
1553 (display_line): Display overlay string if no left fringe.
1554
be13cbb7
JR
15552004-10-16 Jason Rumney <jasonr@gnu.org>
1556
1557 * w32fns.c (w32_font_match): Encode font name being matched.
1558
c2e2ede7
RS
15592004-10-16 Richard M. Stallman <rms@gnu.org>
1560
1561 * window.c (Fspecial_display_p): Doc fix.
1562
3584d95d
SM
15632004-10-15 Stefan <monnier@iro.umontreal.ca>
1564
1565 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1566 Don't ignore menus, because where-is-internal already does it for us.
1567
699a0392
KS
15682004-10-15 Kim F. Storm <storm@cua.dk>
1569
b3c7a89b
KS
1570 * xdisp.c (redisplay_window): Only update fringes and vertical
1571 border on window frames.
699a0392 1572
4e382b0f
AS
15732004-10-14 Andreas Schwab <schwab@suse.de>
1574
1575 * m/ia64.h (DATA_SEG_BITS): Don't define.
1576
329a7be2
KS
15772004-10-14 Kim F. Storm <storm@cua.dk>
1578
1579 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1580 in some X versions.
329a7be2 1581
982241b1
SM
15822004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1583
1584 * fns.c (map_char_table): Add missing gcpros.
1585
9238467d
SM
15862004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1587
1588 * keymap.c (get_keymap): An autoload form is not a keymap.
1589
1590 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1591
4440e3ca
KS
15922004-10-13 Kim F. Storm <storm@cua.dk>
1593
7cfdabde
KS
1594 * callproc.c (Fcall_process): Simplify handling of display arg.
1595 Resume `display_on_the_fly' once a coding system is determined.
1596
4440e3ca
KS
1597 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1598
1c8dec6a
KS
15992004-10-12 Kim F. Storm <storm@cua.dk>
1600
1601 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1602 caller, such as call-process, is not going to poll for input.
1603 (calc_line_height_property): Handle case where it->object is nil.
1604
1605 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1606
170b174c
KH
16072004-10-12 Kenichi Handa <handa@m17n.org>
1608
9238467d
SM
1609 * xdisp.c (get_next_display_element):
1610 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1611 chars in octal in unibyte buffer.
1612
b583964c
KS
16132004-10-12 Kim F. Storm <storm@cua.dk>
1614
1615 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1616 are no ordinary bindings.
1617
29fabd8c
JD
16182004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1619
9238467d 1620 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1621
c3f4c690
ST
16222004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1623
9238467d
SM
1624 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1625 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1626 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1627 terminal frame.
1628 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1629 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1630 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1631 Make a cancel file-open dialog be like C-g.
9238467d
SM
1632 * mac.c (mktime): Use emacs_mktime.
1633 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1634 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1635
9688f9eb
KS
16362004-10-10 Kim F. Storm <storm@cua.dk>
1637
1638 * keyboard.c (timer_resume_idle): New function to resume idle
1639 timer without resetting timers on the idle list.
1640 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1641 (timer_start_idle, timer_stop_idle): Declare static.
1642 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1643
1644 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1645
f7f3a65f
ST
16462004-10-08 Steven Tamm <steventamm@mac.com>
1647
9238467d 1648 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1649 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1650 NULL where 0 should be used.
f7f3a65f
ST
1651 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1652 objc/malloc.h
9238467d 1653 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1654
3c7d999a
KS
16552004-10-07 Kim F. Storm <storm@cua.dk>
1656
1657 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1658 windows. Update vertical line after drawing window fringes, but
1659 only if actually drawing any bitmaps--or there is no fringe.
1660
1661 * xterm.c (x_update_window_end): Likewise.
1662 * macterm.c (x_update_window_end): Likewise.
1663 * w32term.c (x_update_window_end): Likewise.
1664
1665 * fringe.c (draw_window_fringes): Return value now indicates if
1666 any fringe bitmaps were redrawn (or there are no fringes).
1667
1668 * dispextern.h (draw_window_fringes): Update prototype.
1669
bf06c82f
ST
16702004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1671
1672 * macfns.c (mac_get_window_bounds): Add extern.
1673 (x_real_positions): Use mac_get_window_bounds.
1674
1675 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1676 xmenu.c (YAILOM).
3c7d999a 1677
bf06c82f
ST
1678 * macterm.c [!MAC_OSX]: Include Windows.h.
1679 (front_emacs_window): Rename from mac_front_window. All uses
1680 changed. Return the frontmost non-tooltip emacs window.
1681 (mac_get_window_bounds): New function.
1682 (x_calc_absolute_position): Use the difference of width and height
1683 between the inner and outer window.
1684 (x_set_offset): Specify window position by the coordinae of the
1685 outer window. Adjust the position if the title bar is completely
1686 outside the screen.
1687 (app_is_suspended, app_sleep_time): Remove unused variables.
1688 (do_app_resume, do_app_suspend): Remove their contents because
1689 window-activate/deactivate events will do the job.
1690 (do_zoom_window): Remove unused variables. Make compliant to the
1691 standard way of zooming. Set f->left_pos and f->top_pos.
1692 (XTread_socket): Don't use argument `expected'. Don't use
1693 FrontWindow to determine the clicked window. Exclude unprocessed
1694 mouseUp cases in the early stage. Add parentheses to fix operator
1695 precedence.
1696 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1697
4cbbf6b7 16982004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1699
1700 * config.in: Regenerate.
1701
1702 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1703 HAVE_EXECSHIELD.
1704
b90ee8b5
JD
17052004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1706
1707 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1708 a row if Alt or Meta has been found for that row. Also stop scanning
1709 for Keysyms for that row.
1710
904db1a2
KS
17112004-10-04 Kim F. Storm <storm@cua.dk>
1712
0207b8ad
KS
1713 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1714 to list. Include overlay arrow bitmap in return value.
1715
25f7220c
KS
1716 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1717 bars with fractional column width. If scroll bar separates two
1718 windows, move it towards the window it belongs to. Only update
1719 the padding area below the scroll bar widget when necessary,
1720 i.e. when scroll bar widget is created, moved, or resized.
1721
562020fe
KS
1722 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1723 while tracking/dragging mouse.
1724 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1725
37e34af7
KS
1726 * window.c (coordinates_in_window): Relax check for cursor
1727 on vertial border between mode lines.
1728 (Fset_window_fringes): Do not allow negative widths.
1729 (Fset_window_scroll_bars): Likewise.
1730
904db1a2
KS
1731 * .gdbinit (pp): Shorthand for p ARG + pr.
1732 (ff): New command: flush frame updates (X only).
1733
38fe4f64
MA
17342004-10-03 Michael Albinus <michael.albinus@gmx.de>
1735
1736 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1737
9de36315
KH
17382004-09-30 Kenichi Handa <handa@m17n.org>
1739
07c381ad 1740 * process.c (send_process): Free composition data.
9de36315 1741
07c381ad 1742 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1743
1744 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1745 compositions to encode.
1746 (encode_coding_string): Likewise. Free composition data.
1747
b6189c3b 17482004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1749
1750 * coding.c (code_convert_region): Free composition data.
9de36315 1751
f2a54fbc
KS
17522004-09-29 Kim F. Storm <storm@cua.dk>
1753
dc5d6435
KS
1754 * fringe.c: Remove limit on number of bitmaps.
1755 (fringe_bitmaps, fringe_faces): Change to pointers.
1756 (max_fringe_bitmaps): New var.
1757 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1758 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1759
1760 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1761 (struct glyph_row): Reorder fringe_bitmap related fields.
1762 (struct it): Likewise.
1763
1764 * w32term.c (fringe_bmp): Change to pointer.
1765 (max_fringe_bmp): New var.
1766 (w32_define_fringe_bitmap): Expand fringe_bmp.
1767 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1768 (w32_destroy_fringe_bitmap): Likewise.
1769
17702004-09-29 Kim F. Storm <storm@cua.dk>
1771
1772 * fringe.c: Simplify last change.
f2a54fbc
KS
1773 (lookup_fringe_bitmap): New function.
1774 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1775 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1776 Keep standard bitmaps in Vfringe_bitmaps.
1777 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1778 (Fset_fringe_bitmap_face): Likewise.
1779
1780 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1781 (valid_fringe_bitmap_p): Remove prototype.
1782
1783 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1784
841a8bca
KS
17852004-09-29 Kim F. Storm <storm@cua.dk>
1786
1f2da365
KS
1787 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1788 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1789
841a8bca
KS
1790 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1791
1792 * fringe.c (Vfringe_bitmaps): New variable.
1793 (syms_of_fringe): DEFVAR_LISP it.
1794 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1795 Change arg to Lisp_Object and fail if not an integer.
1796 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1797 (destroy_fringe_bitmap): New functions.
9238467d
SM
1798 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1799 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1800 clear its fringe property.
1801 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1802 Fdestroy_fringe_bitmap.
1803 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1804 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1805 and set fringe property. Signal error if no free slots.
1806 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1807 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1808
1809 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1810 symbols with a fringe property.
1811
4d965590
KS
18122004-09-27 Kim F. Storm <storm@cua.dk>
1813
1814 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1815 Doc fix. Format may now be a symbol or alist, not a cons.
1816
1817 * fringe.c (update_window_fringes): Handle new formats of
1818 indicate-buffer-boundaries (symbol or alist). No longer
1819 allow a simple cons.
1820 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1821
e888c2b3
JD
18222004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1823
9238467d 1824 * config.in: Rebuild.
e888c2b3 1825
83f1cb94
JD
18262004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1827
1828 * config.in: Rebuild.
1829
dd3b1d60 1830 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1831
2c51754c
SM
18322004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1833
1834 * xterm.c (x_term_init): Work around a bug in some X servers.
1835
3df5f8aa
RS
18362004-09-18 Richard M. Stallman <rms@gnu.org>
1837
557ca2c1
RS
1838 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1839
3df5f8aa
RS
1840 * xdisp.c (try_window_reusing_current_matrix):
1841 Handle the case where we reach the old displayed text,
1842 out of sync with the old line boundary.
1843
9238467d 18442004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1845
1846 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1847 narrowed buffer.
1848
bfa02563
KS
18492004-09-14 Kim F. Storm <storm@cua.dk>
1850
a25fe164
KS
1851 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1852
bfa02563
KS
1853 * xfaces.c (Qface_no_inherit): New var.
1854 (syms_of_xfaces): Intern and staticpro it.
1855 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1856 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1857 Don't increment face_change_count when face has non-nil
1858 face-no-inherit property.
1859
126f9c02
SM
18602004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1861
892a8eb5
SM
1862 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1863 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1864
126f9c02 1865 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1866 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1867
c0ad3b38
KS
18682004-09-12 Kim F. Storm <storm@cua.dk>
1869
1870 * editfns.c (Fformat): Handle format strings with multiple text
1871 properties. Reverse text property list from the format string,
1872 so the positions are in increasing order.
1873
844fc085
JD
18742004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1875
1876 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1877 x_uncatch_errors so that possible protocol errors are delivered.
1878
b106731c
EZ
18792004-09-10 Eli Zaretskii <eliz@gnu.org>
1880
21065c92
EZ
1881 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1882 blockinput.h.
1883 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1884 charset.h, and coding.h
9238467d 1885 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1886 (term.o): Depend on window.h and keymap.h.
1887 (abbrev.o): Depend on syntax.h.
1888 (callint.o): Depend on keymap.h.
1889 (casefiddle.o): Depend on charset.h and keymap.h.
1890 (category.o): Depend on keymap.h.
1891 (coding.o): Depend on dispextern.h.
1892 (cmds.o): Depend on keyboard.h and keymap.h.
1893 (dispnew.o): Depend on indent.h and intervals.h.
1894 (doc.o): Depend on keymap.h.
1895 (editfns.o): Depend on frame.h.
1896 (emacs.o): Depend on dispextern.h.
1897 (fileio.o): Don't depend on ccl.h.
1898 (filelock.o): Depend on charset.h and coding.h.
1899 (frame.o): Depend on w32term.h and macterm.h.
1900 (insdel.o): Depend on region-cache.h.
1901 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1902 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1903 (search.o): Depend on $(INTERVALS_SRC).
1904 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1905 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1906 xterm.h, w32term.h, and macterm.h.
1907 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1908 w32term.h, and macterm.h.
1909 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1910 region-cache.h, xterm.h, w32term.h, and macterm.h.
1911 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1912 (data.o): Depend on frame.h.
1913 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1914 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1915 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1916 (intervals.o): Depend on keymap.h.
1917
9238467d
SM
1918 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1919 Add debugging print-out to termscript.
b106731c 1920
64b7122d
RS
19212004-09-09 Richard M. Stallman <rms@gnu.org>
1922
1923 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1924
5670531e
RS
19252004-09-08 Richard M. Stallman <rms@gnu.org>
1926
6cb4a892
RS
1927 * window.c (Fset_window_buffer): Doc fix.
1928
5670531e
RS
1929 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1930
7e388eb7
JL
19312004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1932
1933 * minibuf.c (history_delete_duplicates): New variable.
1934 (read_minibuf): Use it.
1935 (syms_of_minibuf): Create the corresponding lisp variable.
1936
370e3587
KS
19372004-09-08 Kim F. Storm <storm@cua.dk>
1938
1939 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1940 overlay just before point.
1941
f844ba4e
LT
19422004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1943
1944 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1945 * buffer.c (reset_buffer, init_buffer_once):
1946 Handle auto_save_file_format field.
f844ba4e
LT
1947 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1948 `buffer-auto-save-file-format'.
f844ba4e
LT
1949 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1950 (build_annotations): Adapt to replacement of
1951 `auto-save-file-format' with the new buffer-local variable
1952 `buffer-auto-save-file-format'.
1953 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1954
f0f90717
JR
19552004-09-07 Jason Rumney <jasonr@gnu.org>
1956
1957 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1958
9238467d
SM
1959 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1960 Handle Unicode menu titles.
f0f90717 1961
4e14f66c
KS
19622004-09-07 Kim F. Storm <storm@cua.dk>
1963
1964 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1965 property from text property or overlay strings at point.
1966
9238467d 19672004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
1968
1969 * xmenu.c (update_submenu_strings): YAILOM.
1970 (set_frame_menubar): Make sure last_i is initialized.
1971
1f06d367
JR
19722004-09-03 Jason Rumney <jasonr@gnu.org>
1973
1806714a 1974 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
1975 (digest_single_submenu): Set lname and lkey in widget_value
1976 instead of name and key.
1977 (update_submenu_strings): New function.
1978 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1979 call update_submenu_strings.
1980
1981 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1982 (digest_single_submenu, w32_menu_show): Encode menu strings as
1983 UTF-8 if Unicode API is available.
1984 (utf8to16): New function.
1985 (add_menu_item): Use it when calling Unicode API.
1806714a 1986
46540080
KS
19872004-09-03 Kim F. Storm <storm@cua.dk>
1988
1989 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1990 in overlay or text-property strings; set cursor on corresponding
1991 glyph rather than at end of the string.
1992
9277ba61 19932004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 1994
9277ba61 1995 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
1996 set a new one before obtaining the global coordinate.
1997 Use FRAME_MAC_WINDOW.
1998 (x_set_name, x_set_title): Encode title to UTF8.
1999 Use SetWindowTitleWithCFString.
9277ba61
ST
2000 (Fx_server_version): Get correct OS version.
2001
1806714a
SM
2002 * macmenu.c (add_menu_item): Remove unused variable `i'.
2003 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2004
2005 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2006 BLOCK_INPUT.
2007 (x_set_offset): Use FRAME_MAC_WINDOW.
2008
2009 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2010 nontext_cursor if it is on a scroll bar.
2011
2012 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2013 Carbon support.
1806714a
SM
2014 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2015 Use LIBS_CARBON.
9277ba61 2016
b10daec7
JD
20172004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2018
2019 * xfns.c (x_set_name_internal): New function. Check if we shall call
2020 xfree before ENCODE_UTF_8.
2021 (x_set_name, x_set_title): Call x_set_name_internal.
2022
f7e22385
JR
20232004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2024
2025 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2026 reload it.
2027
2bf436c3
JD
20282004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2029
1806714a 2030 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2031 (single_submenu): Set lname and lkey in widget_value
2032 instead of name and key.
2033 (update_submenu_strings): New function.
2034 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2035 call update_submenu_strings.
2036
2bf436c3
JD
2037 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2038 instead of name and key.
2039 (update_submenu_strings): New function.
2040 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2041 call update_submenu_strings.
2bf436c3
JD
2042
2043 * gtkutil.h (_widget_value): Added lname and lkey.
2044
11715f92
ST
20452004-08-30 Steven Tamm <steventamm@mac.com>
2046
2047 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2048 by using different names for inner loop variables.
2049
5500be54
JD
20502004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2051
059cd329
JD
2052 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2053 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2054
5500be54
JD
2055 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2056 tool bar items is 0.
2057
383418e5
ST
20582004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2059
2060 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2061 strings in menu items.
2062 (single_submenu): Use ENCODE_MENU_STRING
2063 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2064 button release isn't passed to event loop
2065 (add_menu_item): Use SetMenuItemWithCFString
2066
6eb3ee72
ST
20672004-08-26 Steven Tamm <steventamm@mac.com>
2068
2069 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2070 tool-bar/menu click
2071 * macfns.c (Fx_file_dialog): Implemented using NavServices
2072
10b43ac3
JD
20732004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2074
2728b5d0
JD
2075 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2076
10b43ac3
JD
2077 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2078 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2079 (x_top_window_to_frame): Return 0 if wdesc is None.
2080
2ee3b79e
RS
20812004-08-22 Richard M. Stallman <rms@gnu.org>
2082
2083 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2084 HAVE_TERMIOS]: If there's no char for this signal, drop through
2085 and use system calls.
2086
2087 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2088
9a1ba2ea
KS
20892004-08-20 Kim F. Storm <storm@cua.dk>
2090
2091 * process.c (wait_reading_process_output): Rename from
2092 wait_reading_process_input. All uses changed.
2093 (wait_reading_process_output_1): Rename from
2094 wait_reading_process_input_1. All uses changed.
2095
2096 * dispnew.c (Fsleep_for): Remove obsolete code.
2097
295f3b30
KH
20982004-08-20 Kenichi Handa <handa@m17n.org>
2099
2100 * syntax.c (skip_chars): Fix for unibyte case.
2101
27615979
SM
21022004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * syntax.c (char_quoted): Mixup byte/char pos.
2105 (back_comment): Fixup globals in all cases.
2106
00267f94
JD
21072004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2108
2109 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2110 passing it to gtk_window_set_title.
2111
2439909e
KS
21122004-08-19 Kim F. Storm <storm@cua.dk>
2113
6ba0f14c
KS
2114 * process.c (wait_reading_process_input): Clean up.
2115 Add wait_for_cell, wait_proc, and just_wait_proc args
2116 to avoid overloading `read_kbd' and `do_display' args.
2117 Change read_kbd arg to int. All callers changed.
2118
2439909e
KS
2119 * process.c (process_send_signal): Use CDISABLE.
2120
2121 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2122
101c421e
KS
21232004-08-18 Kim F. Storm <storm@cua.dk>
2124
2125 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2126 forward to wait_reading_process_input via DO_DISPLAY arg.
2127 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2128 object, only process output from that process; also inhibit
2129 running timers if DO_DISPLAY==-2.
2130
c438dc33
KS
21312004-08-17 Kim F. Storm <storm@cua.dk>
2132
2133 * process.c (process_send_signal): Fix last change--use
2134 _POSIX_VDISABLE instead of CVDISABLE when available.
2135
8afc13c6
RS
21362004-08-16 Richard M. Stallman <rms@gnu.org>
2137
2138 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2139 Set VQUIT and VINTR chars to the standard ones if they are unset.
2140 [AIX]: Don't do that here. And don't force VINTR to standard
2141 when SIGNALS_VIA_CHARACTERS.
2142
c438dc33 2143 * process.c (process_send_signal)
8afc13c6
RS
2144 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2145 Do nothing if the character is CVDISABLE.
2146
2147 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2148
c438dc33 2149 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2150 Force POSITION to be between BEGV and ZV.
2151
6dad1714
JPW
21522004-08-14 John Paul Wallington <jpw@gnu.org>
2153
2154 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2155
2156 * fileio.c (Fread_file_name): Doc fix.
2157
2158 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2159
2bd77330
LT
21602004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2161
2162 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2163
c90e7e43
LT
21642004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2165
2166 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2167 Qdisabled_command_hook.
c90e7e43 2168 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2169 Qdisabled_command_hook.
c90e7e43
LT
2170 (syms_of_keyboard): Ditto.
2171
81909a1a
LT
21722004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2173
2174 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2175 (syms_of_keymap) <key-translation-map>: Doc fixes.
2176
0cedd530
SM
21772004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2178
1725a7c9
SM
2179 * window.c (window_list_1): YAILOM.
2180
0cedd530
SM
2181 * fileio.c (make_temp_name): Handle multibyte prefixes.
2182
2515a131
LT
21832004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2184
2185 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2186 Doc fix.
2187
c8b20fb7
KH
21882004-08-03 Kenichi Handa <handa@m17n.org>
2189
2190 * coding.c (decode_coding_string): Adjust coding->consumed, and
2191 etc. with shrinked_bytes.
2192
fb8b092b
KS
21932004-08-03 Kim F. Storm <storm@cua.dk>
2194
2195 * indent.c (compute_motion): Fix check for full width window
2196 in non-window case. Do not count left truncation glyph on
2197 window systems.
2198
df133612
LT
21992004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2200
2201 * data.c (Finteractive_form): Doc fix.
2202
0f7a93c1
KS
22032004-08-02 Kim F. Storm <storm@cua.dk>
2204
2205 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2206 properly accounting for continuation glyph on non-window systems.
2207 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2208 actual window width/height if TOPOS is nil, properly accounting for
2209 continuation glyphs on non-window systems, and optional header lines.
2210 (vmotion): Let compute_motion calculate actual window width.
2211
2212 * window.c (window_scroll_line_based): Let compute_motion
2213 calculate actual window width.
2214
f491e1ed
KS
22152004-08-02 Kim F. Storm <storm@cua.dk>
2216
2217 * process.c (read_process_output): Use whole read buffer.
2218 Don't trigger adaptive read buffering on errors.
2219
83f64226
LT
22202004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2221
2222 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2223
2224 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2225
2226 * callint.c (Fcall_interactively): Doc fix.
2227
8afc13c6
RS
22282004-07-30 Richard M. Stallman <rms@gnu.org>
2229
2230 * abbrev.c (Fexpand_abbrev): Undo previous change.
2231
7c111482
KS
22322004-07-30 Kim F. Storm <storm@cua.dk>
2233
2234 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2235
ee945d08
LT
22362004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2237
2238 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2239
3f911c94
KS
22402004-07-27 Kim F. Storm <storm@cua.dk>
2241
2242 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2243 we have ensured that the glyph fits on the current line (or returned
2244 MOVE_LINE_CONTINUED otherwise).
2245
f29ff8c7
KS
22462004-07-26 Kim F. Storm <storm@cua.dk>
2247
2248 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2249 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2250 if target position is at end of display line but char is not a newline.
2251
81159bb9
RS
22522004-07-25 Richard M. Stallman <rms@gnu.org>
2253
ab431b61
RS
2254 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2255 instead of ON_VERTICAL_BORDER, when on scroll bar.
2256 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2257
2258 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2259
f29ff8c7 2260 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2261 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2262
2263 * alloc.c (check_cons_list): New function (contents commented out).
2264
fc820cc5
LT
22652004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2266
2267 * xfaces.c (Fcolor_supported_p): Doc fix.
2268
2269 * frame.c (Fselect_frame, Fset_frame_selected_window)
2270 (Fframe_visible_p, Fraise_frame): Doc fixes.
2271
289978b5
LT
22722004-07-24 Richard M. Stallman <rms@gnu.org>
2273
78819ebb 2274 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2275
2276 * fileio.c (Fwrite_region): Doc fix.
2277
2278 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2279
2280 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2281 only when a real abbrev is present.
2282
289978b5
LT
2283 * xfns.c (x_icon_verify): New function.
2284 (Fx_create_frame): Use it.
2285
63cc10ae
KS
22862004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2287
2288 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2289
36f826d4
KS
22902004-07-21 Kim F. Storm <storm@cua.dk>
2291
2292 * window.h (struct glyph_matrix): New members nrows_scale_factor
2293 and ncols_scale_factor.
2294
2295 * window.c (make_window): Initialize nrows_scale_factor and
2296 ncols_scale_factor members.
2297
2298 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2299 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2300 (required_matrix_height): Apply nrows_scale_factor.
2301 (required_matrix_width): Apply ncols_scale_factor.
2302
2303 * xdisp.c (display_line): Increment nrows_scale_factor and set
2304 fonts_changed_p if past last allocated row.
2305 (append_glyph, append_composite_glyph, produce_image_glyph)
2306 (append_stretch_glyph): Increment ncols_scale_factor and set
2307 fonts_changed_p if current area is full.
2308
5fc1c546
JD
23092004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2310
2311 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2312
cb7516e5
LT
23132004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2314
2315 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2316 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2317 (Fset_window_start, Fscroll_up, Fscroll_down)
2318 (Fother_window_for_scrolling, Fscroll_other_window)
2319 (Fsave_window_excursion, Fset_window_vscroll)
2320 (syms_of_window) <window-size-fixed>: Doc fixes.
2321
b6189c3b 23222004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2323
2324 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2325 ENCODE_SYSTEM for filenames.
2326
bfcf6608
ST
23272004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2328
2329 * mac.c (sys_select): Block input around call to
2330 ReceiveNextEvent to prevent breakage. Correctly handle
2331 blocking on event queue only by calling ReceiveNextEvent
2332 instead of select (since GUI events aren't on an fd).
2333 (sys_read): Remove function
2334 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2335
e082ac9d
ST
23362004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2337
2338 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2339 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2340
cb7516e5 2341 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2342 frame creation.
2343
2344 * keyboard.c: Undef SIGIO on Carbon
2345
2346 * atimer.c (alarm_signal_handler): Call alarm handlers after
2347 scheduling.
2348
2349 * eval.c (Feval): Remove quit_char test
2350
2351 * process.c (wait_reading_process_input): Remove clearing
2352 stdin for select call on process input.
2353
4b9da0fb
LT
23542004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2355
1204e81c
LT
2356 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2357 capitalization error in docstring.
4b9da0fb 2358
26503ad2
JB
23592004-07-17 Juanma Barranquero <lektu@terra.es>
2360
2361 * keyboard.c (not_single_kboard_state): Do nothing unless
2362 MULTI_KBOARD is defined.
2363
3751eb00
RS
23642004-07-17 Richard M. Stallman <rms@gnu.org>
2365
2366 * window.c (coordinates_in_window): Inside the window but outside
2367 its box to the L or R, return ON_VERTICAL_BORDER.
2368 (window_list_1): Rotate the list to start with WINDOW.
2369
2370 * print.c (print_preprocess): Test for print_depth at limit
2371 before entering in being_printed.
2372
2373 * keyboard.c (not_single_kboard_state): New function.
2374 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2375
2376 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2377 this kboard, and we delete its last frame, go to any_kboard_state.
2378
2379 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2380
b6189c3b 23812004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2382
2383 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2384 system before passing them to OS functions for display.
2385
0f6af254
DK
23862004-07-15 David Kastrup <dak@gnu.org>
2387
f9253326
KS
2388 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2389 Apparently fixes an abort condition.
0f6af254 2390
386c8f42
LT
23912004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2392
2393 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2394 instead of a cons.
2395
366511da
MB
23962004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2397
2398 * keyboard.c (echo_dash): Do nothing if there already is a dash
2399 at the end of the echo string.
2400
f85409d3
KS
24012004-07-12 Kim F. Storm <storm@cua.dk>
2402
2403 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2404 if GC_MARK_STACK.
2405
0ba2e87b
LT
24062004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2407
da38045d
LT
2408 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2409
0ba2e87b
LT
2410 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2411 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2412 (Freplace_buffer_in_windows, Fset_window_buffer)
2413 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2414 (syms_of_window): Expand docstring of `display-buffer-function'.
2415
5668fbb8
LT
24162004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2417
2418 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2419 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2420 that time values of the type (HIGH . LOW) are considered obsolete.
2421
a085bf9d
LT
24222004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2423
669de2fb
LT
2424 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2425 docstring.
2426
bac66325 2427 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2428
8e975df9
JPW
24292004-07-06 John Paul Wallington <jpw@gnu.org>
2430
2431 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2432
fa164e6a
JPW
2433 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2434
2bac9bb1
JD
24352004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2436
2437 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2438 instead of CGMainDisplayID (only in OSX 10.2 and later).
2439
316ef0dc
JPW
24402004-07-04 John Paul Wallington <jpw@gnu.org>
2441
2442 * fileio.c (read_file_name_completion_ignore_case): New variable.
2443 (syms_of_fileio): Declare and initialise it.
2444 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2445
2a1a35c6
EZ
24462004-07-03 Eli Zaretskii <eliz@gnu.org>
2447
2448 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2449 for event.x and event.y.
2450
33a72331
KH
24512004-07-01 Kenichi Handa <handa@m17n.org>
2452
2453 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2454 after getting a new string by pre-write-conversion.
2455
9238467d 24562004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2457
2458 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2459 (x_calc_absolute_position): Remove unused var `child'.
2460
2461 * xfaces.c (x_supports_face_attributes_p)
2462 (Fdisplay_supports_face_attributes_p): YAILOM.
2463 (tty_supports_face_attributes_p): Remove unused var `i'.
2464
2465 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2466 back_unibyte_ok.
2467
2468 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2469
2470 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2471
2472 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2473
f96ec754
AS
24742004-06-30 Andreas Schwab <schwab@suse.de>
2475
2476 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2477 (Finit_image_library): Pass LIBRARIES through to
2478 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2479 (lookup_image_type): Pass Qnil as second argument to
2480 Finit_image_library.
2481
78819ebb 2482 * lisp.h (Finit_image_library): Declare.
f96ec754 2483
59feca74 24842004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2485
31983645
AS
2486 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2487 (XTread_socket): Send mouse button events to the toolbox
2488 dispatcher even when the mouse is grabbed. Don't process window
2489 activate events for non-Emacs windows. Replace function calls to
2490 do_window_activate and do_window_deactivate with their contents.
2491 Reset mouse grabbing status when a window is deactivated.
59feca74 2492
c61278bb
ST
24932004-06-29 Steven Tamm <steventamm@mac.com>
2494
2495 * macterm.c (mac_get_emulated_btn)
2496 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2497 support to correctly mask out modifiers.
2498
c3762cbd
DK
24992004-06-29 David Kastrup <dak@gnu.org>
2500
2501 * search.c (Fset_match_data): Allow buffer before end of list
2502 which can happen if set-match-data is using a pre-consed list.
2503
c61278bb 25042004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2505
2506 * macterm.c (XTread_socket): Correctly set the frame position
2507 after the window is moved.
2508
74cdfe05
JD
25092004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2510
2511 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2512 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2513 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2514 so insensitive and activated icons look ok.
74cdfe05 2515
ef544dc8
JR
25162004-06-27 Jason Rumney <jasonr@gnu.org>
2517
2518 * w32fns.c (file_dialog_callback): Disable edit control if set
2519 to directories only on CDN_INITDONE message.
2520 (Fx_file_dialog): Default to directories only when prompt starts
2521 with "Dired".
2522
7b7990cc
KS
25232004-06-25 Kim F. Storm <storm@cua.dk>
2524
2525 * alloc.c (allocate_misc): Update total_free_markers.
2526 (free_misc): New function.
2527 (safe_alloca_unwind, free_marker): Use it.
2528
2529 * lisp.h (free_misc): Add prototype.
2530
2531 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2532
d8c379f8
RS
25332004-06-24 Richard M. Stallman <rms@gnu.org>
2534
2535 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2536 (syms_of_emacs): Lisp variables deleted.
2537
559cdd07
DK
25382004-06-23 David Kastrup <dak@gnu.org>
2539
94939b84
DK
2540 * search.c (Freplace_match): Adjust the match-data more thoroughly
2541 when replacing strings in the buffer.
2542 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2543 a buffer, add the buffer as last element to the match data.
2544 (Fset_match_data): If an additional element of the match-data is a
2545 buffer, restore it to last_thing_searched.
c8d09ad8 2546 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2547 (restore_match_data): Restore it again.
2548
dce417e7
LT
25492004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2550
2551 * keymap.c (Ftext_char_description): Doc fix.
2552 * doc.c (Fsnarf_documentation): Doc fix.
2553
ef54b2d0
KS
25542004-06-22 Kim F. Storm <storm@cua.dk>
2555
b5bc4d05
KS
2556 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2557
ef54b2d0
KS
2558 * lisp.h (struct Lisp_Save_Value): New member dogc.
2559 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2560 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2561 (SAFE_FREE_LISP): New macro.
2562
2563 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2564 (make_save_value): Init new dogc member.
2565 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2566
2567 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2568 SAFE_FREE_LISP macros.
2569
3d33d993
KS
25702004-06-22 Kim F. Storm <storm@cua.dk>
2571
2572 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2573 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2574 in that memory area are unknown to GC. Add comments.
2575
2576 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2577
5c917f98
KS
25782004-06-21 Kim F. Storm <storm@cua.dk>
2579
2580 * lisp.h (MAX_ALLOCA): Define here.
2581 (safe_alloca_unwind): Add prototype.
2582 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2583
2584 * alloc.c (safe_alloca_unwind): New function.
2585
2586 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2587
2588 * charset.c (Fstring): Use SAFE_ALLOCA.
2589
2590 * coding.c (MAX_ALLOCA): Remove define.
2591
2592 * data.c (MAX_ALLOCA): Remove define.
2593 (Faset): Use SAFE_ALLOCA.
2594
2595 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2596
2597 * fns.c (string_make_multibyte, string_to_multibyte)
2598 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2599 (MAX_ALLOCA): Remove define.
2600 (Fbase64_encode_region, Fbase64_encode_string)
2601 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2602 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2603 memory leak if encoding fails.
2604
2605 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2606
9a09408e
EZ
26072004-06-21 Eli Zaretskii <eliz@gnu.org>
2608
2609 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2610
376de739
RS
26112004-06-20 Richard M. Stallman <rms@gnu.org>
2612
2613 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2614
2615 * search.c (match_limit): Cleaner err msg when no match data available.
2616
2617 * window.c (syms_of_window): Doc fix.
2618
2619 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2620 for Vtransient_mark_mode.
2621
2622 * buffer.c (syms_of_buffer): Doc fix.
2623
acd81db9
DK
26242004-06-21 David Kastrup <dak@gnu.org>
2625
2626 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2627 and unbinding of `case-fold-search' according to
2628 `completion-ignore-case' around calls of string-match and
2629 predicates, respectively. Should give satisfactory performance
2630 in all relevant cases.
2631
f303762d
JD
26322004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2633
95911c74
JD
2634 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2635 clip_x/y_origin.
2636
a6cb6b78
JD
2637 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2638
f303762d
JD
2639 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2640
2641 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2642 on Mac OSX.
2643
bbdb2684
LT
26442004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2645
2646 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2647
5ea48b1c
KS
26482004-06-16 Kim F. Storm <storm@cua.dk>
2649
2650 * dispextern.h (Vimage_types): Remove extern.
2651
803aac3e
MB
26522004-06-16 Miles Bader <miles@gnu.org>
2653
2654 * image.c (lookup_image_type): Initialize image type if necessary.
2655
cdc97764
KS
26562004-06-15 Kim F. Storm <storm@cua.dk>
2657
c4a5739c
KS
2658 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2659 margin at top of window.
2660 (try_window_reusing_current_matrix): Calculate proper cursor position
2661 after scrolling up with non-zero scroll margin, as the old cursor
2662 position corresponds to value of PT before executing this command.
2663 (try_window_id): Consider scroll margin at bottom of window too;
2664 otherwise we fail to scroll when hl-line-mode is enabled.
2665
cdc97764
KS
2666 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2667 proper format and class is a lower-case word.
2668
5b166323
JD
26692004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2670
2671 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2672 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2673 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2674 xg_get_gdk_pixmap_and_mask.
cdc97764 2675
5b166323
JD
2676 * xterm.h (struct x_display_info): Typo in comment fixed.
2677
1ebd4f78
JB
26782004-06-14 Juanma Barranquero <lektu@terra.es>
2679
2680 * dispextern.h (Vimage_types): Make it conditional on
2681 HAVE_WINDOW_SYSTEM.
2682
2683 * image.c (Vimage_types): Move from xdisp.c.
2684 (Vimage_type_cache): New variable.
2685 (define_image_type): New argument indicating whether an image
2686 library was loaded; cache loaded status and return t on success,
2687 nil otherwise.
2688 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2689 (w32_delayed_load): New function to load an image library from a
2690 list of possible filenames.
2691 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2692 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2693 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2694 (Finit_image_library): New function, extracted from `init_image'.
2695 Try to initialize an image library on demand and cache whether we
2696 were successful or not.
2697 (syms_of_image): Initialize `Vimage_types' and
2698 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2699 Export `init-image-library'.
2700 (init_image): Remove initialization of all image types, except xbm
2701 and pbm.
2702
2703 * xdisp.c (Vimage_types): Delete (moved to image.c).
2704
904ee128
AS
27052004-06-14 Andreas Schwab <schwab@suse.de>
2706
2707 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2708 Avoid calling specbind when completion-regexp-list is empty.
2709
092de21d
RS
27102004-06-13 Richard M. Stallman <rms@gnu.org>
2711
2712 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2713 (re_wctype, re_iswctype, re_wctype_to_bit):
2714 Non-function definitions moved here from regex.c.
1ebd4f78 2715
092de21d
RS
2716 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2717 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2718 (re_wctype, re_iswctype, re_wctype_to_bit):
2719 Non-function definitions moved to regex.h.
2720
2721 * window.c (Fselect_window): Doc fix.
2722
2723 * syntax.c: Include regex.h.
2724 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2725 If requested, make a list of classes, then check the scanned
2726 chars for membership in them.
2727 (in_classes): New function.
2728 Doc fix.
2729
2730 * keyboard.c (cmd_error): Don't call any_kboard_state
2731 if inside a recursive edit level.
2732
27332004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2734
2735 * keyboard.c (command_loop): Call any_kboard_state before
2736 command_loop_2 when at top level.
2737
3ebc0939
AS
27382004-06-13 Andreas Schwab <schwab@suse.de>
2739
cea5d0d4
AS
2740 * print.c (print_object): Always use %ld for printing EMACS_INT.
2741
2742 * keyboard.c (cancel_hourglass_unwind): Return a value.
2743 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2744 (Fexecute_extended_command): Likewise.
2745
2746 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2747 avoid clashes.
2748 (SYNTAX): Likewise.
2749 (SYNTAX_WITH_FLAGS): Likewise.
2750 (SYNTAX_MATCH): Likewise.
2751
2752 * syntax.c (char_quoted): Avoid warning about undefined operation.
2753 (find_defun_start): Likewise.
2754 (scan_lists): Likewise.
2755 (INC_FROM): Likewise.
2756 (scan_sexps_forward): Likewise.
2757
be8c4ce4
AS
2758 * image.c: Include <ctype.h>.
2759
3ebc0939
AS
2760 * xfaces.c (face_attr_equal_p): Declare parameters.
2761
6fb41b5b
KH
27622004-06-13 Kenichi Handa <handa@m17n.org>
2763
2764 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2765
fc3095ce
EZ
27662004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2767
2768 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2769
66189a40
KH
27702004-06-12 Kenichi Handa <handa@m17n.org>
2771
2772 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2773 ccl_prog_stack_struct and update it.
2774 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2775 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2776 ccl->eof_ic on EOF.
2777 (ccl_debug_hook): New function.
2778 (struct ccl_prog_stack): New member eof_ic.
2779 (ccl_driver): Handle EOF in subrountine call correctly.
2780
27812004-06-11 Kenichi Handa <handa@m17n.org>
2782
2783 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2784
1da71023
KS
27852004-06-11 Kim F. Storm <storm@cua.dk>
2786
2787 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2788
e9efcef4
JB
27892004-06-11 Juanma Barranquero <lektu@terra.es>
2790
2791 * keyboard.c (Fposn_at_point): Doc fix.
2792
9b9ceb61
DK
27932004-06-11 David Kastrup <dak@gnu.org>
2794
2795 * search.c (match_limit): Don't flag an error if match-data
2796 exceeding the allocated search_regs.num_regs gets requested, just
2797 return Qnil.
2798
6e87ac8f
MB
27992004-06-08 Miles Bader <miles@gnu.org>
2800
2801 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2802
0b0dea7b
JB
28032004-06-07 Juanma Barranquero <lektu@terra.es>
2804
2805 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2806 (Fcurrent_time_string, Fcurrent_time_zone)
2807 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2808
a0a23346
MB
28092004-06-07 Miles Bader <miles@gnu.org>
2810
08384afd 2811 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2812 (push_named_merge_point): New function.
2813 (merge_named_face): New function.
2814 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2815 Use `merge_named_face'.
2816 (merge_face_inheritance): Function removed.
c8d09ad8 2817 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2818 Add new `err_msgs' and `named_merge_points' args. Return error
2819 status. Only print error messages if ERR_MSGS is true. Don't try to
2820 do :inherit attribute validation.
2821 (merge_face_heights): Handle `unspecified' in both directions.
2822 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2823 Call `merge_face_ref' instead of `merge_face_inheritance'.
2824 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2825 (compute_char_face, face_at_buffer_position)
2826 (face_at_string_position): Call `merge_face_ref' instead of
2827 `merge_face_vector_with_property'.
2828
12d5b185
KH
28292004-06-07 Kenichi Handa <handa@m17n.org>
2830
2831 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2832 the necessary places.
2833
2e2d7ee6
KS
28342004-06-07 Kim F. Storm <storm@cua.dk>
2835
2836 * process.c (Fdelete_process): Undo 2004-05-28 change.
2837 Instead, call status_notify also for network process.
2838 (status_message): Use process instead of status as arg.
2839 Give messages "deleted" or "connection broken by remote peer" for
2840 an exited network process.
2841 (status_notify): Change call to status_message.
2842 (read_process_output): Increase readmax to 4096. Do not increase
2843 buffer size for datagram channels (default is now large enough).
2844
fcf0d299
ST
28452004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2846
2847 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2848 problem due to newly defined variable.
2849
0722292b
MB
28502004-06-06 Miles Bader <miles@gnu.org>
2851
2852 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2853 immediately if non-interactive or not initialized.
2854
ddfb8369
RS
28552004-06-05 Richard M. Stallman <rms@gnu.org>
2856
2857 * minibuf.c (Fcompleting_read): Doc fix.
2858
57015754
AS
28592004-06-05 Andreas Schwab <schwab@suse.de>
2860
2861 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2862
23715ea6
JB
28632004-06-05 Juanma Barranquero <lektu@terra.es>
2864
2865 * keymap.c (Fdescribe_vector): Fix docstring.
2866 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2867
8e330b22
MB
28682004-06-05 Miles Bader <miles@gnu.org>
2869
2870 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2871 attributes have different values than the default face.
2872
9742a3a6
EZ
28732004-06-04 Eli Zaretskii <eliz@gnu.org>
2874
2875 * xfaces.c (x_supports_face_attributes_p): Make this function
2876 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2877 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2878 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2879
9717e36c
MB
28802004-06-04 Miles Bader <miles@gnu.org>
2881
2882 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2883 from Ftty_supports_face_attributes_p.
2884 (x_supports_face_attributes_p): New function.
2885 (Ftty_supports_face_attributes_p): Function deleted.
2886 (Fdisplay_supports_face_attributes_p): New function.
2887 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2888 (face_attr_equal_p): New function.
9717e36c
MB
2889 (lface_equal_p): Use it.
2890
52deb19f
JB
28912004-06-03 Juanma Barranquero <lektu@terra.es>
2892
2893 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2894 (Vw32_color_map): Fix typo in docstring.
2895 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2896 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2897 Make argument names match their use in docstring.
2898
86d373e6
JB
28992004-06-02 Juanma Barranquero <lektu@terra.es>
2900
2901 Work around bugs/problems with MinGW builds of graphics libraries
2902 called from MSVC builds of Emacs.
2903
2904 * image.c (lookup_image): Make pointer to img static.
2905 (png_read_from_memory): Disable "global" optimization.
2906
2fb0ce67
SM
29072004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2908
c8d09ad8
SM
2909 * eval.c (Fcondition_case): Fix usage. Simplify.
2910
2fb0ce67
SM
2911 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2912
50bf7673
ST
29132004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2914
2915 * macfns.c: Don't include ccl.h.
2916 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2917 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2918 TextUtils.h.
c8d09ad8 2919 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
2920 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2921 display height/width.
2922 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2923 (unwind_create_tip_frame, compute_tip_xy): New functions.
2924 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2925 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2926 and last_show_tip_args.
2fb0ce67 2927
50bf7673
ST
2928 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2929 (Cursor, No_Cursor): New defines.
c8d09ad8 2930 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
2931 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2932
2933 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2934
2935 * macterm.c: Don't include Gestalt.h.
2936 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2937 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2938 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2939 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2940 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2941 (construct_mouse_click, XTmouse_position)
2942 (x_scroll_bar_report_motion, x_calc_absolute_position)
2943 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2944 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2945 (note_mouse_movement): Clear the mouse face and reset the pointer
2946 shape when the pointer goes outside the frame without grabbing.
2947 (mac_front_window): New function.
2948 (mac_window_to_frame): New macro.
2949 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2950 (do_window_activate, do_window_deactivate, do_app_resume)
2951 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2952 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2953 (mac_check_for_quit_char): Use mac_front_window and/or
2954 mac_window_to_frame.
2955 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2956 scroll-bar click event.
2957 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2958 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2959 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2960 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2961 (do_window_update): Don't do anything if the updated window is the
2962 tooltip window.
2963 (do_mouse_moved): Handle mouse movement events here (previously in
2964 XTread_socket). Clear the mouse face if
2965 dpyinfo->mouse_face_hidden is set.
2966 (do_os_event, do_events): Remove (now in XTread_socket).
2967 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
2968 Loop until all the events in the queue are processed.
2969 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
2970 contents of do_os_event and do_events. Remove mouse movement
2971 handling (now in do_mouse_moved). Add the case where
2972 Vmouse_highlight has an integer value.
2973 (NewMacWindow): Remove.
2974 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2975 excess initializations.
2976 (make_mac_terminal_frame): Previous initializations in
2977 make_mac_frame are moved here.
c8d09ad8
SM
2978 (mac_initialize_display_info):
2979 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
2980
2981 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2982 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2983
08fd1251
RS
29842004-05-29 Richard M. Stallman <rms@gnu.org>
2985
2986 * lisp.h (truncate_undo_list): Update decl.
2987
2988 * alloc.c (undo_outer_limit): New variable.
2989 (syms_of_alloc): Defvar it.
2990 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2991
2992 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2993
2994 * alloc.c (lisp_align_malloc): Check for base == 0
2995 regardless of HAVE_POSIX_MEMALIGN.
2996 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2997
227ef0ff
SM
29982004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3001 (marker_blocks_pending_free): Remove.
3002 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3003 Mark the undo lists after claning them up.
3004 Don't free block in marker_blocks_pending_free.
3005 (mark_buffer): Don't mark undo_list.
3006 (gc_sweep): Sweep hash-tables and strings first.
3007 Do free marker blocks that are empty.
3008
034a6113
SM
30092004-05-28 Jim Blandy <jimb@redhat.com>
3010
3011 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3012 after 'case wordend'. For symbeg and symend, print to stderr,
3013 like the other cases.
3014
33594a8d
NF
30152004-05-28 Noah Friedman <friedman@splode.com>
3016
3017 * process.c (Fdelete_process): Do not call remove_process.
3018
ce50a847
SM
30192004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * alloc.c (struct backtrace): Remove.
3022 (Fgarbage_collect): Use the new mark_backtrace.
3023
3024 * eval.c (mark_backtrace): New function.
3025
3026 * minibuf.c (run_exit_minibuf_hook): New function.
3027 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3028 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3029
1e8dae36
KS
30302004-05-27 Kim F. Storm <storm@cua.dk>
3031
3032 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3033 over display properties, e.g. images, that replace buffer text.
3034
846faa3b
KS
30352004-05-25 Kim F. Storm <storm@cua.dk>
3036
3037 * alloc.c (marker_blocks_pending_free): New var.
3038 (gc_sweep): Store free marker blocks on that list.
3039 (Fgarbage_collect): Free them after undo-list cleanup.
3040
3041 * process.c (wait_reading_process_input): Check connect_wait_mask
3042 before actually accepting connection in case it has already been
3043 accepted due to recursion.
3044
b6189c3b 30452004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3046
ce50a847
SM
3047 * coding.c (Fset_safe_terminal_coding_system_internal):
3048 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3049
71d5a208
RS
30502004-05-22 Richard M. Stallman <rms@gnu.org>
3051
3052 * alloc.c (Fmake_string): Doc fix.
3053
3054 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3055 and the alist pairs too.
3056
3057 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3058
3059 * emacs.c (main): Update copyright year.
3060
3061 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3062
3063 * insdel.c (del_range_2, replace_range): Don't write an anchor
3064 if the gap is empty.
3065
3066 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3067 scroll-down-aggressively is small but positive, put point
3068 near the screen edge.
3069
f63fd14e
JB
30702004-05-22 Juanma Barranquero <lektu@terra.es>
3071
3072 * keymap.c (Fdefine_key): Doc fix.
3073
4d12067c
KS
30742004-05-22 Kim F. Storm <storm@cua.dk>
3075
3076 * alloc.c (struct backtrace): Add debug_on_exit member.
3077 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3078 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3079 the removed cons cells.
3080 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3081 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3082 any cons cells pointing to unallocated stings.
3083 Do not lisp_free any marker blocks, as there may still be pointers
3084 to them from buffer undo lists at this stage of GC.
3085
3086 * keyboard.c (struct backtrace): Add debug_on_exit member.
3087 (Fcommand_execute): Clear it.
3088
931285e2
LT
30892004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3090
3091 * intervals.c (lookup_char_property): Do not prematurely return nil.
3092
669fa600
SM
30932004-05-19 Jim Blandy <jimb@redhat.com>
3094
3095 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3096 beginning and end of symbols.
4d12067c 3097
669fa600
SM
3098 * regex.c (enum syntaxcode): Add Ssymbol.
3099 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3100 (re_opcode_t): New opcodes `symbeg' and `symend'.
3101 (print_partial_compiled_pattern): Print the new opcodes properly.
3102 (regex_compile): Parse the new operators.
ce50a847 3103 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3104 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3105 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3106 (re_match_2_internal): Match symbeg and symend.
3107
3108 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3109
0d8c2e5c
KS
31102004-05-19 Kim F. Storm <storm@cua.dk>
3111
3112 * .gdbinit (xsymbol): Fix last change.
3113
669fa600
SM
31142004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3115
3116 * .gdbinit (xprintstr): New fun.
3117 (xstring, xprintsym): Use it.
3118
3119 * w32proc.c (create_child): Use INTMASK.
3120
3121 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3122 unmarked elements of the undo list.
3123
9a6a4c40
DP
31242004-05-18 David Ponce <david@dponce.com>
3125
3126 * print.c (print): Reset print_depth before to call print_object.
3127
f3c4ec74
JR
31282004-05-18 Jason Rumney <jasonr@gnu.org>
3129
3130 * w32console.c: Prefix RIF functions with w32con_ to avoid
3131 namespace clash with functions in term.c and w32term.c.
3132
3133 * w32menu.c (add_menu_item, w32_menu_display_help)
3134 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3135
0d8c2e5c 3136 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3137
6be49c3a
EZ
31382004-05-18 Eli Zaretskii <eliz@gnu.org>
3139
4d0b9a0a
EZ
3140 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3141
6be49c3a
EZ
3142 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3143 with make_number.
3144 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3145 with XINT.
3146
0bc90bba
KS
31472004-05-18 Kim F. Storm <storm@cua.dk>
3148
89d19988
KS
3149 * blockinput.h (INPUT_BLOCKED_P): New macros.
3150
3151 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3152 (Ftop_level): Unblock input if blocked.
3153
0bc90bba
KS
3154 * buffer.h (GET_OVERLAYS_AT): New macro.
3155 * msdos.c (IT_note_mouse_highlight): Use it.
3156 * textprop.c (get_char_property_and_overlay): Use it.
3157 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3158 * xfaces.c (face_at_buffer_position): Use it.
3159
3160 * print.c (print_object): Increase buf size.
3161
653bd0f6
JR
31622004-05-17 Jason Rumney <jasonr@gnu.org>
3163
3164 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3165 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3166 Lisp_Object using i member.
3167 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3168 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3169 consistently.
3170
3171 * w32proc.c (create_child): Use make_number instead of masking pid.
3172
3173 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3174 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3175 Use EQ to compare Lisp_Objects.
3176 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3177
3178 * w32term.c (w32_num_mouse_buttons): Rename from
3179 Vw32_num_mouse_buttons and make it an int.
3180
3181 * w32.c (init_environment): Use it.
3182
3183 * w32fns.c (w32_wnd_proc): Likewise.
3184
3185 * w32proc.c (w32_pipe_read_delay): Rename from
3186 Vw32_pipe_read_delay and make it an int.
3187
3188 * w32.c (_sys_read_ahead): Use it.
3189
3190 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3191
3192 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3193
3194 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3195 (key_event): Don't mix Lisp_Object and int.
3196
3197 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3198
3199 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3200 modifiers in language change event.
3201
54b53ba7
KS
32022004-05-17 Kim F. Storm <storm@cua.dk>
3203
3204 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3205 Such objects may be freed markers which still exist on an undo list.
3206
6e86a75d
JB
32072004-05-16 Juanma Barranquero <lektu@terra.es>
3208
3209 * data.c (Fset_default): Make argument names match their use in
3210 docstring.
3211
fc80da24
AS
32122004-05-15 Andreas Schwab <schwab@suse.de>
3213
3214 * emacs.c (gdb_array_mark_flag): Define.
3215 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3216
c1380aa6
EZ
32172004-05-15 Eli Zaretskii <eliz@gnu.org>
3218
3219 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3220 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3221 defined for the MS-DOS build.
3222
89458937
SM
32232004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3224
3225 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3226
08020f9a
KH
32272004-05-14 Kenichi Handa <handa@m17n.org>
3228
3229 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3230
a433994a
ST
32312004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3232
3233 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3234 section to frame.c section.
3235 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3236 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3237
a433994a 3238 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3239
a433994a 3240 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3241
a433994a
ST
3242 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3243 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3244 (XTread_socket): Fix int/Lisp_Object mixup.
3245 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3246
a433994a
ST
3247 * macterm.h (struct frame, struct face, struct image)
3248 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3249 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3250 Add prototypes.
a433994a 3251
b51a51b9
KS
32522004-05-14 Kim F. Storm <storm@cua.dk>
3253
3254 * process.c (wait_reading_process_input): Make reentrant.
3255 Make Available and Connecting non-static. Save and restore value
3256 of waiting_for_user_input_p.
3257
2bde1dd8
KS
32582004-05-13 Kim F. Storm <storm@cua.dk>
3259
3260 * keyboard.c (mark_kboards): Don't mark x and y members
3261 that are overloaded in selection request events.
3262
a267ab4d
SM
32632004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3264
3265 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3266
eb15ce9e
GM
32672004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3268
3269 * window.c (Fdisplay_buffer, Fsplit_window)
3270 (split-height-threshold): Doc fix.
3271
7fc92635
JB
32722004-05-13 Juanma Barranquero <lektu@terra.es>
3273
3274 * xfaces.c (Ftty_supports_face_attributes_p)
3275 (Finternal_copy_lisp_face): Fix typo in docstring.
3276 (Finternal_get_lisp_face_attribute): Fix docstring.
3277
1ec2a572
JD
32782004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3279
3280 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3281
ae9292e0
ST
32822004-05-11 Steven Tamm <steventamm@mac.com>
3283
3284 * macfns.c (Fx_create_frame): Default to using tool-bar by
3285 setting tool-bar-lines to 1 in default-frame-alist.
3286
32872004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3288
3289 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3290 (xpm_get_color_table_v, xpm_make_color_table_h)
3291 (xpm_put_color_table_h, xpm_get_color_table_h)
3292 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3293 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3294 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3295
fe97e8df
ST
32962004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3297
a267ab4d 3298 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3299 instead of FRAME_X_P
3300
b47e779e
KS
33012004-05-11 Kim F. Storm <storm@cua.dk>
3302
3303 * process.c (read_process_output): Grow decoding_buf when needed;
3304 this could cause a crash in allocate_string and compact_small_strings.
3305
cdc9b845
EZ
33062004-04-29 Jim Blandy <jimb@redhat.com>
3307
3308 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3309 against proper opcode.
3310
aa7094ba
JB
33112004-05-10 Juanma Barranquero <lektu@terra.es>
3312
3313 * process.c (Fstart_process): Fix docstring.
3314
3315 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3316 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3317 (Fsplit_char, Fchar_charset): Make argument names match their use
3318 in docstring.
3319
e109331a
RS
33202004-05-10 Richard M. Stallman <rms@gnu.org>
3321
3322 * print.c (print_preprocess): Use being_printed, loop_count and
3323 halftail to detect overdeep nesting and cyclic cdr chains.
3324
9a28b921
AS
33252004-05-10 Andreas Schwab <schwab@suse.de>
3326
78819ebb 3327 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3328
3329 * fileio.c (Frename_file): Remove extra argument in call to
3330 Fmake_symbolic_link.
3331
e2c02c1a
KS
33322004-05-10 Kim F. Storm <storm@cua.dk>
3333
3334 * xdisp.c (calc_line_height_property): Use string position when
3335 object is a string.
3336
cfe9d13e
KH
33372004-05-10 Kenichi Handa <handa@m17n.org>
3338
a57e8159
KH
3339 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3340 inhibit-modification-hooks to t temporarily before calling
3341 Ferase_buffer.
3342
3343 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3344 inhibit-modification-hooks to t temporarily before calling
3345 Ferase_buffer.
3346
3347 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3348 inhibit-modification-hooks to t temporarily before calling
3349 Ferase_buffer.
3350
cfe9d13e
KH
3351 * fns.c (count_combining): Delete it.
3352 (concat): Don't check combining bytes.
3353
ceb96489
JR
33542004-05-09 Jason Rumney <jasonr@gnu.org>
3355
3356 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3357 (globals_of_w32fns): Set it.
3358
b6189c3b 33592004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3360
3361 * data.c (Fquo): Simplify.
3362
28712a21
JB
33632004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3364
3365 * data.c (Fquo): If any argument is float, do the computation in
3366 floating point.
3367
0f0af7a8
JB
33682004-05-08 Juanma Barranquero <lektu@terra.es>
3369
88214ef6
JB
3370 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3371 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3372 Fix spelling of Emacs on docstring.
3373 (Fset_process_coding_system, Fprocess_coding_system)
3374 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3375 Make argument names match their use in docstring.
3376 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3377 Fix docstring.
3378
0f0af7a8
JB
3379 * editfns.c (Finsert_buffer_substring): Make argument names match their
3380 use in docstring.
3381
3382 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3383
2a316a84
ST
33842004-05-07 Steven Tamm <steventamm@mac.com>
3385
3386 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3387 around call to ReceiveEvent to avoid certain crashes.
3388
33892004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3390
2a316a84
ST
3391 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3392 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3393 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3394 Save/restore the current graphics port and device handle when
3395 drawing into an offscreen graphics world.
3396
3397 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3398 (gif_load): Likewise.
3399
ab80314b
JB
34002004-05-07 Juanma Barranquero <lektu@terra.es>
3401
3402 * window.c (Fset_window_buffer): Fix docstring.
3403
70646bb5
TTN
34042004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3405
3406 * emacs.c (main) [VMS]: Fix var ref.
3407
b6189c3b 34082004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3409
3410 * data.c (Fsetq_default): Fix docstring.
3411
279d3293
JR
34122004-05-06 Jason Rumney <jasonr@gnu.org>
3413
3414 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3415 to avoid name clash.
3416
f72b5416
JD
34172004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3418
3419 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3420 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3421 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3422
6ab66799
KS
34232004-05-04 Kim F. Storm <storm@cua.dk>
3424
3425 * xdisp.c (Qtotal): New var.
3426 (syms_of_xdisp): Intern and staticpro it.
3427 (calc_line_height_property): New arg total. Set it if
3428 line-spacing property has format (total . VALUE).
3429 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3430 Handle total line-spacing property.
3431
ab2d724b
JD
34322004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3433
3434 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3435 "under" scroll bar when size/position changes.
3436
238add5e
JR
34372004-05-03 Jason Rumney <jasonr@gnu.org>
3438
3439 * makefile.nt: Remove.
3440
1644f4e4
EZ
34412004-05-02 Eli Zaretskii <eliz@gnu.org>
3442
a267ab4d
SM
3443 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3444 Avoid compiler warnings.
05fdbeb8 3445
1644f4e4
EZ
3446 * Makefile.in (region-cache.o): Depend on config.h.
3447
b6189c3b 34482004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3449
3450 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3451 with continuation lines, too.
3452
2b98b088
TTN
34532004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3454
3455 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3456
d9bf7950
SM
34572004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3458
3459 * xdisp.c (calc_line_height_property): YAILOM (yet another
3460 int/Lisp_Object mixup).
3461
affa509c
EZ
34622004-05-01 Eli Zaretskii <eliz@gnu.org>
3463
3464 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3465 undo bad effect of pack(4) in some versions of system headers.
3466
07c07cfe
JR
34672004-05-01 Jason Rumney <jasonr@gnu.org>
3468
3469 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3470
e71caa4e
KS
34712004-04-30 Kim F. Storm <storm@cua.dk>
3472
3473 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3474 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3475
3476 * dispextern.h (struct it): Remove member use_default_face.
3477 Add members override_ascent, override_descent, override_boff.
3478
3479 * xdisp.c (init_iterator): Handle line-spacing float value.
3480 Initialize override_ascent member.
3481 (append_space_for_newline): Reset override_ascent.
3482 Remove use_default_face.
3483 (calc_line_height_property): New function to calculate value of
3484 line-height and line-spacing properties. Look at overlays, too.
3485 Set override_ascent, override_descent, override_boff members when
3486 using another face than the current face. Float values are now
3487 relative to the frame default font, by default; accept a cons
3488 of ratio and face name to specify value relative to a specific face.
3489 (x_produce_glyphs): Use calc_line_height_property.
3490 Use override_ascent etc. when set to handle different face heights.
3491 A negative line-spacing property value is interpreted as a total
3492 line height, rather than inter-line spacing.
3493 (note_mouse_highlight): Allocate room for 40 overlays initially.
3494
0fddae66
SM
34952004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3496
3497 * data.c (Fsubr_name): New fun.
3498 (syms_of_data): Defsubr it.
3499
712d23dc
KS
35002004-04-29 Kim F. Storm <storm@cua.dk>
3501
3502 * xdisp.c (null_glyph_slice): New var.
3503 (append_glyph, append_composite_glyph, append_stretch_glyph):
3504 Use it to initialize glyph slice.
3505
033ad8c6
SM
35062004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3507
3508 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3509 (on_hot_spot_p): Make sure we always return a value.
3510 (Flookup_image_map): Remove unused var ix and iy.
3511 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3512
93397360
EZ
35132004-04-27 Eli Zaretskii <eliz@gnu.org>
3514
3515 * msdos.c (init_environment): If one of the TMP... environment
3516 variables is set to a drive letter without a trailing slash,
3517 append a slash.
3518
0c54865e
EZ
35192004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3520
3521 * editfns.c (lisp_time_argument): Provide externally.
3522
3523 * fileio.c (Fset_file_times): New function.
3524 (syms_of_fileio): Intern and staticpro it.
3525
d3b111bd
KS
35262004-04-27 Kim F. Storm <storm@cua.dk>
3527
07dc1231
KS
3528 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3529 header line strings.
3530
360fe9d2
KS
3531 * dispextern.h (struct it): New member use_default_face.
3532
d3b111bd
KS
3533 * xdisp.c (Qline_height): New variable.
3534 (syms_of_xdisp): Intern and staticpro it.
3535 (append_space_for_newline): Partially undo 2004-04-25 change;
3536 add default_face_p arg, and restore callers.
3537 Clear it->use_default_face after use.
3538 (x_produce_glyphs): Set default font for ascii char if
3539 it->use_default_font is set. Change line-spacing property to set
3540 just extra line spacing. Handle new line-height property.
3541
0448588b
AS
35422004-04-26 Andreas Schwab <schwab@suse.de>
3543
3544 * print.c (print_object): Print non-ascii characters in bool
3545 vector representation as octal escapes.
3546
3547 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3548 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3549 bool vectors.
3550 * lread.c (read1): Likewise.
3551 * alloc.c (Fmake_bool_vector): Likewise.
3552 * data.c (Faref, Faset): Likewise.
3553 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3554 (mapcar1): Likewise.
d3b111bd 3555
536d6baa
ST
35562004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3557
3558 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3559
ae11577a
MB
35602004-04-26 Miles Bader <miles@gnu.org>
3561
3562 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3563
e198ba87
JB
35642004-04-26 Juanma Barranquero <lektu@terra.es>
3565
3566 * buffer.c (Fpop_to_buffer): Fix docstring.
3567
f3d5f92d 35682004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3569
f3d5f92d
ST
3570 * lread.c (init_lread): Don't display missing lisp directory
3571 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3572 may be built without correct installation path.
f3d5f92d 3573
03e35edc
KS
35742004-04-25 Kim F. Storm <storm@cua.dk>
3575
9ff3aa31
KS
3576 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3577
3578 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3579
03e35edc
KS
3580 * xdisp.c (append_space_for_newline): Rename from append_space.
3581 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3582 (x_produce_glyphs): Handle line-spacing property on newline char.
3583 If value is t, adjust ascent and descent to fit current row height.
3584 If value is an integer or float, set extra_line_spacing to integer
3585 value, or to float value x current line height.
3586
f24814e0
KH
35872004-04-23 Kenichi Handa <handa@m17n.org>
3588
3589 * fontset.c (Finternal_char_font): If POSITION is nil, return
3590 font for displaying CH with the default face.
3591
d814862a
JB
35922004-04-23 Juanma Barranquero <lektu@terra.es>
3593
3594 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3595
063a45c5
SM
35962004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3597
3598 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3599 Don't make assumptions about the relative place of i and val.
3600 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3601
ae7ab2d3
KS
36022004-04-21 Kim F. Storm <storm@cua.dk>
3603
3604 * dispextern.h (struct glyph_slice): New struct.
3605 (struct glyph): New member slice.
3606 (GLYPH_SLICE_EQUAL_P): New macro.
3607 (GLYPH_EQUAL_P): Use it.
3608 (struct glyph_string): New member slice.
3609 (struct it_slice): New struct.
3610 (struct it): New member slice, add member to stack too.
3611 New member constrain_row_ascent_descent_p.
3612 (image_ascent): Add prototype.
3613
3614 * dispnew.c (buffer_posn_from_coords): Return full image width
3615 and height even for image slices (posn is relative to full image).
3616 (marginal_area_string): Adjust x0,y0 for image slice.
3617
3618 * image.c (image_ascent): Add slice arg; calculate ascent for
3619 image slice (or full image).
3620
3621 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3622 (syms_of_keyboard): Defsubr them.
3623
3624 * lisp.h (pos_visible_p): Fix prototype.
3625
c62aec78 3626 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3627 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3628 (x_draw_image_foreground, x_draw_image_relief)
3629 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3630 Draw sliced images.
3631
3632 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3633 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3634 (x_draw_image_foreground, x_draw_image_relief)
3635 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3636 Draw sliced images.
3637
3638 * w32term.h (image_ascent): Remove prototype.
3639
3640 * window.c (Fpos_visible_in_window_p): Return pixel position if
3641 PARTIALLY arg is non-nil. Simplify. Doc fix.
3642 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3643 to return/set vscroll in pixels.
3644
3645 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3646
3647 * xdisp.c (Qslice): New variable.
3648 (syms_of_xdisp): Intern and staticpro it.
3649 (pos_visible_p): Return pixel position in new x and y args.
3650 (init_iterator): Reset it->slice info.
3651 (handle_display_prop): Parse (slice ...) property.
3652 (push_it, pop_it): Save/restore slice info.
3653 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3654 force repositioning of tall row if window is vscrolled, as that
3655 would reset vscroll.
3656 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3657 increasing row height if row is non-empty.
3658 (fill_image_glyph_string): Copy slice info.
3659 (take_vertical_position_into_account): Simplify.
3660 (produce_image_glyph): Handle iterator slice info, setup glyph
3661 slice info. Do not force minimum line height.
3662 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3663 do not increase height (ascent/descent) of non-empty row when
3664 adding normal character glyph; instead reduce glyph ascent/descent
3665 appropriately; if row is higher than current glyph, adjust glyph
3666 descent/ascent to reposition glyph within the existing row.
3667 Likewise, when char is newline, only set ascent/descent if row is
3668 currently empty.
3669 (note_mouse_highlight): Handle hotspots with sliced image.
3670
3671 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3672 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3673 (x_draw_image_foreground, x_draw_image_relief)
3674 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3675 Draw sliced images.
3676
3677 * xterm.h (image_ascent): Remove prototype.
3678
d58f8753
SM
36792004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3680
3681 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3682
4ce2719d
JPW
36832004-04-20 John Paul Wallington <jpw@gnu.org>
3684
3685 * fns.c (Fassoc, Feql): Fix indentation.
3686
d58f8753 3687 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3688
95f8c3b9
JPW
36892004-04-19 John Paul Wallington <jpw@gnu.org>
3690
3691 * fns.c (Feql): New function.
d58f8753 3692 (syms_of_fns): Defsubr it.
95f8c3b9 3693
b7e85537
JR
36942004-04-18 Jason Rumney <jasonr@gnu.org>
3695
3696 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3697 after closing the clipboard.
3698
5a72efd4
LT
36992004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3700
3701 * buffer.c (Fbuffer_base_buffer): Doc fix.
3702
20dc8583
KS
37032004-04-17 Kim F. Storm <storm@cua.dk>
3704
60962ec4
KS
3705 * keymap.c (Fkey_description): Add optional PREFIX arg.
3706 Combine prefix with KEYS to make up the full key sequence to describe.
3707 Correlate meta_prefix_char and following (simple) key to describe
3708 as meta modifier. All callers changed.
3709 (describe_map): Rename arg `keys' to `prefix'. Remove local
3710 `elt_prefix' var. Use Fkey_description with prefix instead of
3711 elt_prefix combined with Fsingle_key_description.
3712 (describe_vector): Declare static. Replace arg `elt_prefix' with
3713 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3714 if !KEYMAP_P. Use Fkey_description with prefix instead of
3715 Fsingle_key_description.
3716
3717 * keymap.h (Fkey_description): Fix prototype.
3718 (describe_vector): Remove prototype.
3719
409368b9
KS
3720 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3721
20dc8583
KS
3722 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3723 (png_load): Fix calculation of transparent background color on X
3724 and W32 platforms.
3725
75c5501b
JB
37262004-04-16 Juanma Barranquero <lektu@terra.es>
3727
3728 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3729 not too large before computing how much to scroll.
3730
da879ae8
SM
37312004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3732
3733 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3734
d01ca4a8
LT
37352004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3736
3737 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3738 Add hyperlink to Elisp manual to the docstring.
3739
572943b3
SM
37402004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3741
3742 * callint.c (fix_command): Use XDCR.
3743
5e30a0fb
NR
37442004-04-14 Nick Roberts <nick@nick.uklinux.net>
3745
3746 * window.c (Fget_lru_window): Doc fix.
3747
a27ddfaf
KS
37482004-04-14 Kim F. Storm <storm@cua.dk>
3749
3750 * editfns.c (Fformat): Fix allocation size of precision array.
3751
3752 * dispnew.c (update_window): Only set changed_p if
3753 scrolling_window actually did scroll.
3754 (scrolling_window): Only return 1 if we actually did scroll.
3755
3756 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3757 height to glyph height when cursor row is not fully visible.
3758 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3759 failure in case row is higher than window. Callers changed.
3760 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3761 Try to scroll partially visible, higher-than-window cursor row.
3762 (redisplay_window): Always try to scroll partially visible,
3763 higher-than-window cursor row - both initially and again with
3764 centering_position = 0.
3765 Clear desired matrix before retrying with centering_position = 0.
3766
da879ae8
SM
37672004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3768
3769 * syntax.c (scan_lists): Simplify backward string scan.
3770 Fix off-by-one boundary check for string and comment fences.
3771
5fc16e8e
SM
37722004-04-13 Joe Buehler <jbuehler@hekimian.com>
3773
3774 * sheap.c, unexcw.c: New files.
3775
c9aac8e6
LT
37762004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3777
3778 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3779 base buffer has been killed. Correct the error message if the
3780 base buffer does not exist.
3781
1e88a355
SM
37822004-04-12 Joe Buehler <jbuehler@hekimian.com>
3783
3784 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3785 Cygwin itself. Add support for Xaw3d scrollbars.
3786
3787 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3788
3789 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3790
3791 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3792 before Cygwin unexec.
3793
3794 * Makefile.in: Link changes for Cygwin unexec() support.
3795
8dbff9a0
AS
37962004-04-12 Andreas Schwab <schwab@suse.de>
3797
3798 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3799
54dffe35
LT
38002004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3801
3802 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3803 IGNORE argument equals NAME. Doc fix.
3804
99a72bdf
MY
38052004-04-11 Masatake YAMATO <jet@gyve.org>
3806
1e88a355 3807 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3808 empty if they are backwards.
3809
40899d7b
SM
38102004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3811
3812 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3813
f8f853de
SM
38142004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3815
3816 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3817
c953fe1b
KS
38182004-04-06 Kim F. Storm <storm@cua.dk>
3819
661e85c1
KS
3820 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3821 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3822
3823 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3824 clearing highlight.
3825
3826 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3827
3828 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3829 clearing highlight.
3830
c953fe1b
KS
3831 * indent.c (vmotion): Do not reserve one column for continuation
3832 marks on window frames.
3833
c1994268
EZ
38342004-04-04 Eli Zaretskii <eliz@gnu.org>
3835
3836 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3837 from GCC.
3838
9f691b0d
SM
38392004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * .gdbinit-union: Remove.
3842
3843 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3844 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3845 ($nonvalbits): Remove.
3846 ($valmask): Set it by calling xreload to avoid redundancy.
3847
3848 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3849 (gdb_emacs_intbits): Remove.
3850
7a8560d7
JD
38512004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3852
9f691b0d 3853 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3854
3c8111fc
KH
38552004-03-30 Kenichi Handa <handa@m17n.org>
3856
3857 * editfns.c (Fformat): Fix initialization of the array info.
3858
48a0bce4
KS
38592004-03-30 Kim F. Storm <storm@cua.dk>
3860
3861 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3862 (syms_of_xterm): DEFVAR_BOOL it.
3863 (ignore_next_mouse_click_timeout): New var.
3864 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3865 Use it to filter mouse clicks following focus event.
3866
1cd0066c
KS
38672004-03-29 David Ponce <david@dponce.com>
3868
3869 * callint.c (Fcall_interactively): Fix last change.
3870
adb3b353
SM
38712004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3872
3873 * eval.c (Fcommandp): Simplify.
3874
3875 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3876 Extend to handle all kinds of functions.
3877
3878 * lisp.h (Finteractive_form): Declare.
3879
3880 * callint.c (Fcall_interactively): Use it.
3881
6fc4c9c9
KS
38822004-03-26 Kim F. Storm <storm@cua.dk>
3883
3884 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3885 to catch errors in calc_pixel_width_or_height during redisplay.
3886
abdb9b83
MY
38872004-03-26 Masatake YAMATO <jet@gyve.org>
3888
b17856dd 3889 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3890
b17856dd 3891 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3892
b17856dd 3893 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3894
b17856dd 3895 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3896
e8a84b6c
JD
38972004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3898
b17856dd 3899 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3900
36a3fd05
RS
39012004-03-19 Richard M. Stallman <rms@gnu.org>
3902
3903 * s/sol2-6.h: Delete previous change.
3904
ab24c127
KS
39052004-03-19 Kim F. Storm <storm@cua.dk>
3906
3907 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3908 to_charpos corresponds to newline in right fringe. Use local
3909 BUFFER_POS_REACHED_P macro.
3910
992126de
JD
39112004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3912
3913 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3914 to compile on non-window system.
3915
45dbfc84
KS
39162004-03-19 Kim F. Storm <storm@cua.dk>
3917
3918 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3919
3920 * image.c (Qcenter): Move to xdisp.c.
3921
3922 * xdisp.c (Qcenter): Declare here.
adb3b353 3923 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
3924 (handle_single_display_prop): Allow space display property on all
3925 platforms.
3926 (display_mode_line): Set mode_line_p before displaying line.
3927 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3928 handling. Remove complex cases for fringes and scroll-bars.
3929 Add left, right, and center alignment positions. Add text (area)
3930 width/height. Return width or height for image specs.
3931 (produce_stretch_glyph): Improve handling of :align-to. Is now
3932 relative to left of text area by default, but other base offsets
3933 can be specified -- also for text lines.
3934
3935 * term.c (produce_glyphs): Handle IT_STRETCH.
3936 (produce_stretch_glyph): New function to handle space width and
3937 align-to display properties on non-window systems.
3938
37264101
SM
39392004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3940
3941 * fileio.c (Fread_file_name): Set completion-ignore-case for
3942 case-insensitive systems.
3943
73bc43da
MY
39442004-03-14 Masatake YAMATO <jet@gyve.org>
3945
3946 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3947 when keymap and cursor are setup.
3948
9062aa89
ST
39492004-03-14 Steven Tamm <steventamm@mac.com>
3950
b17856dd 3951 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3952
e4b1b5ab
KS
39532004-03-14 Kim F. Storm <storm@cua.dk>
3954
3955 * dispextern.h (x_find_image_file): Add prototype.
3956
3957 * image.c (x_find_image_file): Make extern.
3958
3959 * xfns.c (x_find_image_file): Remove prototype.
3960
a6eeaa81 39612004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3962
37264101 3963 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 3964
37264101 3965 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 3966
e69cfac2
RS
39672004-03-12 Richard M. Stallman <rms@gnu.org>
3968
3969 * fns.c (internal_equal): New arg PROPS controls comparing
3970 text properties. All callers changed.
3971 (Fequal_including_properties): New function.
3972 (syms_of_fns): defsubr it.
3973
45034953
KS
39742004-03-12 Kim F. Storm <storm@cua.dk>
3975
3976 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 3977
45034953
KS
3978 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3979 (image_background, image_background_transparent): Fix prototypes.
3980
37264101 3981 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
3982
3983 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3984 (x_query_font, x_find_ccl_program, x_set_window_size)
3985 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3986 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3987 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3988
3989 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3990 (x_query_font, x_find_ccl_program, x_set_window_size)
3991 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3992 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3993 (mac_draw_line_to_pixmap): Add prototypes.
3994
39952004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3996
3997 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3998
a12d3d87
KS
39992004-03-11 Kim F. Storm <storm@cua.dk>
4000
d3ab1cf1
KS
4001 * dispextern.h: Move image related prototypes from xfns.c section
4002 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4003 HAVE_X_WINDOWS.
37264101 4004
37de9f51 4005 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4006 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4007 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4008 (GTK_OBJ) [USE_GTK]: New declaration.
4009 (obj): Add $(GTK_OBJ) to list.
4010
5243c06a 40112004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4012
5243c06a
ST
4013 * image.c [MAC_OSX]: Include sys/stat.h
4014
4015 * macfns.c (syms_of_macfns): Remove definitions of things now
4016 defined in image.c
4017
c0f97789
KS
40182004-03-11 Kim F. Storm <storm@cua.dk>
4019
4020 The following changes consolidates the identical/similar image
4021 support code previously found in xfns.c, w32fns.c, and macfns.c
4022 into a new file image.c.
4023
4024 * makefile.w32-in (OBJ1): Add image.o.
4025 ($(BLD)/image.$(O)): Add dependencies.
4026
4027 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4028 (image.o): Add dependencies.
37264101 4029
c0f97789
KS
4030 * image.c: New file with consolidated image support code.
4031 (COLOR_TABLE_SUPPORT): New define to control whether
4032 color table support is available (X only).
4033 (Bitmap_Record): Common name for x_bitmap_record,
4034 w32_bitmap_record, and mac_bitmap_record.
4035 (XImagePtr): Common name for pointer to XImage or equivalent.
4036 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4037 to XImagePtr on X+MAC, and to HDC on W32.
4038 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4039 (NO_PIXMAP): Common name for "None" or equivalent.
4040 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4041 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4042 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4043 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4044 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4045 (XDrawLine): Define on MAC for code sharing.
4046 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4047 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4048 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4049 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4050 (x_reference_bitmap, x_create_bitmap_from_data)
4051 (x_create_bitmap_from_file, x_destroy_bitmap)
4052 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4053 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4054 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4055 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4056 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4057 (define_image_type, lookup_image_type, valid_image_p)
4058 (image_error, enum image_value_type, struct image_keyword)
4059 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4060 (make_image, free_image, prepare_image_for_display, image_ascent)
4061 (four_corners_best, image_background, image_background_transparent)
4062 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4063 (make_image_cache, free_image_cache, clear_image_cache)
4064 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4065 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4066 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4067 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4068 (init_image_func_pointer, image_load_quartz2d)
4069 (struct ct_color, init_color_table, free_color_table)
4070 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4071 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4072 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4073 (x_disable_image, x_build_heuristic_mask)
4074 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4075 (TIFF support, GIF support, Ghostscript support): Consolidate image
4076 code from xfns.c, w32fns.c, and macfns.c.
4077 (syms_of_image): Consolidate image related symbol setup here.
4078 (init_image): Consolidate image related initializations here.
37264101 4079
c0f97789
KS
4080 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4081 and init_image. Remove call to init_xfns.
4082
37264101
SM
4083 * macterm.h (struct mac_bitmap_record): Add file member.
4084 Not currently used, but simplifies code sharing.
c0f97789
KS
4085
4086 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4087 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4088 (x_reference_bitmap, x_create_bitmap_from_data)
4089 (x_create_bitmap_from_file, x_destroy_bitmap)
4090 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4091 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4092 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4093 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4094 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4095 (define_image_type, lookup_image_type, valid_image_p)
4096 (image_error, enum image_value_type, struct image_keyword)
4097 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4098 (make_image, free_image, prepare_image_for_display, image_ascent)
4099 (four_corners_best, image_background, image_background_transparent)
4100 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4101 (make_image_cache, free_image_cache, clear_image_cache)
4102 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4103 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4104 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4105 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4106 (init_image_func_pointer, image_load_quartz2d)
4107 (struct ct_color, init_color_table, free_color_table)
4108 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4109 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4110 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4111 (x_disable_image, x_build_heuristic_mask)
4112 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4113 (TIFF support, GIF support, Ghostscript support): Merge with image
4114 code from xfns.c and macfns.c into image.c.
4115 (syms_of_xfns): Move image related symbols to image.c.
4116 (init_external_image_libraries, init_xfns): Remove; initialization
4117 moved to init_image in image.c.
4118
4119 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4120 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4121 (x_reference_bitmap, x_create_bitmap_from_data)
4122 (x_create_bitmap_from_file, x_destroy_bitmap)
4123 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4124 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4125 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4126 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4127 (define_image_type, lookup_image_type, valid_image_p)
4128 (image_error, enum image_value_type, struct image_keyword)
4129 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4130 (make_image, free_image, prepare_image_for_display, image_ascent)
4131 (four_corners_best, image_background, image_background_transparent)
4132 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4133 (make_image_cache, free_image_cache, clear_image_cache)
4134 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4135 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4136 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4137 (struct ct_color, init_color_table, free_color_table)
4138 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4139 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4140 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4141 (x_disable_image, x_build_heuristic_mask)
4142 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4143 (TIFF support, GIF support, Ghostscript support): Merge with image
4144 code from xfns.c and macfns.c into image.c.
4145 (syms_of_xfns): Move image related symbols to image.c.
4146 (init_external_image_libraries, init_xfns): Remove; initialization
4147 moved to init_image in image.c.
4148
4149 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4150 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4151 (x_reference_bitmap, x_create_bitmap_from_data)
4152 (x_create_bitmap_from_file, x_destroy_bitmap)
4153 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4154 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4155 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4156 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4157 (define_image_type, lookup_image_type, valid_image_p)
4158 (image_error, enum image_value_type, struct image_keyword)
4159 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4160 (make_image, free_image, prepare_image_for_display, image_ascent)
4161 (four_corners_best, image_background, image_background_transparent)
4162 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4163 (make_image_cache, free_image_cache, clear_image_cache)
4164 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4165 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4166 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4167 (struct ct_color, init_color_table, free_color_table)
4168 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4169 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4170 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4171 (x_disable_image, x_build_heuristic_mask)
4172 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4173 (TIFF support, GIF support, Ghostscript support): Merge with
4174 w32fns.c and macfns.c image code into image.c.
4175 (syms_of_xfns): Move image related symbols to image.c.
4176 (init_xfns): Remove; initialization moved to init_image in image.c.
4177
4178 * lisp.h (syms_of_image, init_image): Add protoypes.
4179 (init_xfns): Remove prototype.
4180
4181 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4182 (x_reference_bitmap, x_create_bitmap_from_data)
4183 (x_create_bitmap_from_file, x_destroy_bitmap)
4184 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4185 (gamma_correct) [MAC_OS]: Add prototype.
4186
4187 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4188 (x_reference_bitmap, x_create_bitmap_from_data)
4189 (x_create_bitmap_from_file, x_destroy_bitmap)
4190 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4191
6eced09c
KH
41922004-03-09 Kenichi Handa <handa@etlken2>
4193
4194 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4195 correctly.
4196
9a7e95f3
RS
41972004-03-04 Richard M. Stallman <rms@gnu.org>
4198
04a6e76b
RS
4199 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4200
9a7e95f3
RS
4201 * window.c (Fdisplay_buffer): Doc fix.
4202
4203 * buffer.c (Fpop_to_buffer): Doc fix.
4204
6c2488df
KS
42052004-03-03 Kim F. Storm <storm@cua.dk>
4206
4207 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4208
d8d95bc7
SM
42092004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4212
357589bf
RS
42132004-03-02 Richard M. Stallman <rms@gnu.org>
4214
4215 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4216
409949b5
KH
42172004-03-02 Kenichi Handa <handa@m17n.org>
4218
4219 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4220
d24bc50f
KS
42212004-03-02 Kim F. Storm <storm@cua.dk>
4222
4223 * window.h (struct window): New member overlay_arrow_bitmap.
4224
4225 * window.c (make_window): Initialize overlay_arrow_bitmap.
4226
4227 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4228 implement and integrate multiple overlay arrows with redisplay.
4229 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4230 (last_arrow_position, last_arrow_string): Replace by properties.
4231 (Qlast_arrow_position, Qlast_arrow_string)
4232 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4233 (syms_of_xdisp): Intern and staticpro them.
4234 (overlay_arrow_string_or_property, update_overlay_arrows)
4235 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4236 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4237 (redisplay_internal): Use them instead of directly accessing
4238 Voverlay_arrow_position etc. for multiple overlay arrows.
4239 (mark_window_display_accurate): Use update_overlay_arrows.
4240 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4241 (try_window_id): Use overlay_arrows_changed_p.
4242 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4243 (display_line): Use overlay_arrow_at_row to check multiple
4244 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4245 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4246 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4247 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4248
4249 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4250 (update_window_fringes): Remove unused code.
4251
c1464661
JR
42522004-03-01 Jason Rumney <jasonr@gnu.org>
4253
4254 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4255
a64387ee
JB
42562004-03-01 Juanma Barranquero <lektu@terra.es>
4257
4258 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4259
4260 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4261
334faa08
JD
42622004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4263
4264 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4265 how many colors can be displayed.
4266
bb62616f
KH
42672004-03-01 Kenichi Handa <handa@m17n.org>
4268
4269 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4270 correctly.
4271
0fd16104
KS
42722004-02-28 Kim F. Storm <storm@cua.dk>
4273
4274 * dispnew.c (update_window): Update header line also if there are
4275 no other changes in window (move code after set_cursor label).
4276
4277 * lisp.h (mark_window_display_accurate): Remove prototype.
4278
4279 * window.c (window_loop, Fforce_window_update): Force mode line
4280 updates by setting prevent_redisplay_optimizations_p and
4281 update_mode_lines.
4282
b59dd9c8
JD
42832004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4284
d8d95bc7 4285 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4286
4287 * xterm.c (x_calc_absolute_position): Call x_real_positions
4288 to get WM window sizes and use those to calculate position.
d8d95bc7 4289 (x_set_offset): Remove code commented out.
b59dd9c8 4290
a874691c
MB
42912004-02-28 Miles Bader <miles@gnu.org>
4292
4293 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4294
3e0c6482
KS
42952004-02-28 Kim F. Storm <storm@cua.dk>
4296
4297 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4298 an event into kbd fifo, but with special handling of quit event;
4299 a quit event is saved for later, and further events are discarded
4300 until the saved quit event has been processed.
4301 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4302 (gen_help_event): Store help event in kbd fifo.
4303 (NREAD_INPUT_EVENTS): Remove.
4304 (read_avail_input): Adapt to new read_socket_hook interface.
4305 Remove allocation and initialization of local input_event buffer,
4306 as read_socket_hook stores events directly in fifo. Allocate and
4307 initialize local hold_quit event to handle postponed quit event
4308 (and store it if set by kbd_buffer_store_event_hold).
4309
4310 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4311 (gen_help_event): Fix prototype.
4312
a64387ee 4313 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4314 numcharsp args. Add hold_quit arg.
f63fd14e 4315 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4316 directly in fifo using kbd_buffer_store_event_hold.
4317
4318 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4319 (read_input_waiting): Adapt to new read_socket_hook interface.
4320 Remove allocation and initialization of local input_event buffer,
4321 as read_socket_hook stores events directly in fifo. Allocate and
4322 initialize local hold_quit event to handle postponed quit event
4323 (and store it if set by kbd_buffer_store_event_hold).
4324
a64387ee 4325 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4326
4327 * termhooks.h (read_socket_hook): Fix prototype.
4328
4329 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4330 numcharsp args. Add hold_quit arg.
f63fd14e 4331 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4332 directly in fifo using kbd_buffer_store_event_hold.
4333
4334 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4335
4336 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4337 Add hold_quit arg. Rework to use just one, local, inev
4338 input_event. Store inev directly in fifo using
3e0c6482
KS
4339 kbd_buffer_store_event_hold. Update count in one place.
4340 Postpone call to gen_help_event until inev is stored; use new
4341 local do_help for this.
4342 Remove local emacs_event in handing of ButtonPress event; just use
4343 inev instead (so no reason to copy it later).
4344
4345 * xsmfns.c (x_session_check_input): Remove numchars arg.
4346
d8d95bc7
SM
4347 * xterm.c (x_focus_changed, x_detect_focus_change):
4348 Remove numchars arg. Always store event into bufp arg.
4349 Return nothing. Callers changed accordingly.
3e0c6482
KS
4350 (glyph_rect): Simplify.
4351 (STORE_KEYSYM_FOR_DEBUG): New macro.
4352 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4353 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4354 (current_hold_quit) [USE_GTK]: Add.
4355 (event_handler_gdk): Adapt to new handle_one_xevent.
4356 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4357 Add hold_quit arg. Rework to use just one, local, inev
4358 input_event. Store inev directly in fifo using
3e0c6482
KS
4359 kbd_buffer_store_event_hold. Update count in one place.
4360 Postpone call to gen_help_event until inev is stored; use new
4361 local do_help for this.
4362 Simplify handling of keysyms (consolidate common code). Fix bug
4363 where count was updated with nchars instead of nbytes.
4364 Remove local emacs_event in handing of ButtonPress event; just use
4365 inev instead (so no reason to copy it later).
4366 Remove `out' label. Rename label `ret' to `done'; add various
4367 `goto done' to clarify code flow in deeply nested blocks.
4368 (x_dispatch_event): Simplify as handle_one_xevent now calls
4369 kbd_buffer_store_event itself.
f63fd14e 4370 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4371 arg. Call handle_one_xevent with new arglist. Store event from
4372 x_session_check_input in fifo.
4373 [USE_GTK]: Setup current_hold_quit.
4374 Decrement handling_signal before unblocking input.
4375 (x_initialize) [USE_GTK]: Initialize current_count.
4376
4377 * xterm.h (x_session_check_input): Fix prototype.
4378
e3564461 43792004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4380
d8d95bc7 4381 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4382
e3564461
ST
4383 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4384 macgui.h).
a64387ee 4385
e3564461 4386 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4387
e3564461
ST
4388 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4389 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4390 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4391 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4392 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4393 (Bitmap): Remove typedef.
4394 (Pixmap): Change int to GWorldPtr.
4395
d8d95bc7 4396 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4397
d8d95bc7
SM
4398 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4399 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4400 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4401 long representation.
4402 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4403 colors used for masks.
4404 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4405
e3564461
ST
4406 * macfns.c: Include sys/types.h and sys/stat.h.
4407 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4408 Include QuickTime/QuickTime.h.
4409 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4410 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4411 functions defined in macterm.c.
4412 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4413 (ZPixmap): New #define for compatibility with xfns.c.
4414 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4415 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4416 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4417 New functions.
e3564461 4418 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4419 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4420 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4421 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4422 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4423 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4424 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4425 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4426 long mixup.
4427 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4428 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4429 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4430 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4431 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4432 (x_alloc_image_color, clear_image_cache, lookup_image)
4433 (x_find_image_file, xbm_read_bitmap_file_data)
4434 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4435 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4436 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4437 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4438 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4439 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4440 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4441 #if 0.
4442 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4443 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4444 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4445 New functions (from xfns.c).
e3564461
ST
4446 (Fx_create_frame): Record unwind_create_frame.
4447 (Fxw_display_color_p): Use dpyinfo->color_p.
4448 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4449 dpyinfo->n_cbits.
4450 (Fx_display_color_cells): Use dpyinfo->n_planes;
4451 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4452 (Qheuristic, cross_disabled_images, emboss_matrix)
4453 (laplace_matrix): New variables (from xfns.c).
4454 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4455 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4456 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4457 (image_background_transparent): New function (from xfns.c).
4458 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4459 (image_load_quicktime): Add declaration.
4460 [MAC_OSX] (image_load_quartz2d): Likewise.
4461 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4462 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4463 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4464 (xbm_load_image_from_file, x_laplace_read_row)
4465 (x_laplace_write_row, pbm_read_file): Remove functions.
4466 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4467 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4468 (colors_in_color_table): Sync with xfns.c (although not used).
4469 (lookup_rgb_color): Don't lookup color table. Just do gamma
4470 correction.
4471 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4472 (x_disable_image): New function (from xfns.c).
4473 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4474 (x_build_heuristic_mask): Sync with xfns.c.
4475 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4476 (HAVE_PBM): Remove #ifdef.
4477 (pbm_load): Sync with xfns.c. Set img->width and img->height
4478 before IMAGE_BACKGROUND.
d8d95bc7 4479 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4480 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4481 Don't enclose with #if HAVE_PNG.
4482 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4483 symbol _CGImageCreateWithPNGDataProvider is defined.
4484 Otherwise use image_load_quicktime.
e3564461 4485 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4486 [HAVE_PNG] (png_load): Sync with xfns.c.
4487 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4488 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4489 HAVE_JPEG.
4490 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4491 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4492 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4493 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4494 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4495 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4496 HAVE_TIFF.
4497 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4498 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4499 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4500 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4501 New functions (from xfns.c).
e3564461 4502 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4503 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4504 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4505 Don't enclose with #if HAVE_GIF.
4506 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4507 animated gif. Otherwise use image_load_quicktime.
4508 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4509 gif_DrawText to avoid conflict with QuickdrawText.h.
4510 [HAVE_GIF] (gif_load): Sync with xfns.c.
4511 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4512 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4513 Ghostscript is not supported yet).
4514 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4515 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4516 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4517 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4518 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4519 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4520 HAVE_PNG. Call EnterMovies to support animated gifs.
4521 Call init_image_func_pointer to bind a symbol
e3564461 4522 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4523
d8d95bc7 4524 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4525 (x_draw_bar_cursor): Sync declaration with xterm.c.
4526 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4527 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4528 graphics).
4529 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4530 (mac_draw_line_to_pixmap, XCreatePixmap)
4531 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4532 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4533 New functions.
4534 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4535 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4536 Cast bits to char *.
e3564461
ST
4537 (reflect_byte): New function (from w32fns.c).
4538 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4539 due to byte alignment.
d8d95bc7
SM
4540 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4541 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4542 (XSetForeground): Remove static (now used in macfns.c).
4543 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4544 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4545 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4546 (x_draw_glyph_string_box, x_draw_image_foreground)
4547 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4548 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4549 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4550 Sync with xterm.c.
4551 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4552 than the xterm.c version when a strictly horizontal or vertical
4553 line is drawn.
4554 (XTset_terminal_window): Add static.
4555 (x_make_frame_visible): Add UNBLOCK_INPUT.
4556 (x_free_frame_resources): New funcion (from xterm.c).
4557 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4558 occurs in tool bar area.
d8d95bc7
SM
4559 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4560 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4561 Initialize image cache.
4562 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4563 Enclose unused functions with #if 0.
4564 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4565 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4566 from a mac font name to an XLFD font name according to its script code.
e3564461 4567 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4568 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4569 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4570 whose name starts with `.'.
4571 (init_font_name_table): Use decode_mac_font_name. Add both
4572 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4573 of a font is smJapanese.
4574 (mac_do_list_fonts): New function to list fonts that match a given
4575 pattern.
4576 (x_list_fonts, XLoadQueryFont): Use it.
4577 (XLoadQueryFont): Set rbearing field for each variable width
4578 character to avoid needless redraw.
4579 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4580
446f5f3d
KS
45812004-02-26 Kim F. Storm <storm@cua.dk>
4582
af617d0f
KS
4583 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4584 as read_socket_hook handler on X aborts if buffer is too small
4585 and W32 handler doesn't always check buffer limit.
4586
446f5f3d
KS
4587 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4588 right-fringe similar to a display margin image. Specifically,
4589 the characters having the fringe prop are no longer shown, and
4590 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4591 do this. Set fringe bitmap face_id in it->face_id.
4592 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4593 still realize it->face (i.e. the fringe bitmap face).
4594
7d8a0b55
MB
45952004-02-25 Miles Bader <miles@gnu.org>
4596
4597 * xdisp.c (check_it): Check string/string_pos consistency.
4598 (init_iterator): Initialize string-related fields properly.
4599
46002004-02-11 Miles Bader <miles@gnu.org>
4601
4602 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4603
46042004-02-10 Miles Bader <miles@gnu.org>
4605
4606 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4607 BLOCK_INPUT can be nested, so it doesn't make much sense.
4608
a64387ee 46092004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4610
4611 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4612 (xbm_read_bitmap_data): Use unsigned char for image data.
4613
92f5fba2
LT
46142004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4615
4616 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4617
8565fb3d
JR
46182004-02-22 Jason Rumney <jasonr@gnu.org>
4619
4620 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4621 correctly over other bitmaps.
4622
a6eeaa81 46232004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4624
4625 * emacs.c (USAGE1): Split into two halves.
4626 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4627 (USAGE3): Rename from USAGE2.
4628 (USAGE4): Rename from USAGE3.
f8125c39 4629
4effffca
EZ
46302004-02-21 Juri Linkov <juri@jurta.org>
4631
4632 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4633 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4634 --file. Fix -f, -l. Sort options. Untabify.
4635 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4636
923c1e6f
LT
46372004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4638
4639 * category.c (Fdefine_category, Fcategory_docstring)
4640 (Fget_unused_category, Fset_category_table)
4641 (Fcategory_set_mnemonics): Doc fixes.
4642
b0e225fd
KS
46432004-02-20 Kim F. Storm <storm@cua.dk>
4644
4645 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4646 The following changes are relative to the 2004-01-21 revision.
4647 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4648 in one call to read_socket_hook. Value is 8.
4649 (read_avail_input): Separate and rework handling of read_socket_hook
4650 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4651 in read_socket_hook case, and repeat if full buffer is read.
4652 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4653 In non-read_socket_hook case, just use a single input_event, and
4654 call kbd_buffer_store_event on the fly for each character.
4655
b15aa9f9
SM
46562004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4657
4658 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4659 Remove unused `gu' alternative.
4660
83c9aa95
AS
46612004-02-19 Andreas Schwab <schwab@suse.de>
4662
4663 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4664 warning.
4665
cc808173
KS
46662004-02-18 Kim F. Storm <storm@cua.dk>
4667
4668 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4669 Fix last change.
4670
ab90a54d
KS
46712004-02-17 Kim F. Storm <storm@cua.dk>
4672
b26f249f
KS
4673 * xdisp.c (fast_find_position): Fix return value of new version;
4674 it was inverted compared to the 21.1 version.
4675 (get_window_cursor_type): Don't look at glyph if NULL.
4676 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4677
ab90a54d
KS
4678 * keyboard.c: Rework previous change; it didn't consider that the
4679 buf array was allocated on the stack.
4680 (prev_read): Remove variable.
4681 (read_avail_input_buf): New static event buffer array.
b9568dfc 4682 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4683 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4684 Use in_read_avail_input to handle re-entrance; when re-entered,
4685 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4686 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4687 is always cleared on entry. To ensure that, we clear (just) the
4688 entries that were used before we return.
4689 (init_keyboard): Initialize read_avail_input_buf here.
4690
b6189c3b 46912004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4692
4693 * cmds.c (Fend_of_line): Doc fix.
4694
7b5368c1
EZ
46952004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4696
4697 * keyboard.c (prev_read): New static variable.
4698 (read_avail_input): Use it to zero out only those slots in buf[]
4699 that were used last time we were called.
4700
a6eeaa81 47012004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4702
4703 * Makefile.in (obj): Move fringe.o from here...
4704 (XOBJ, MAC_OBJ): ...to here.
4705
159c348e
SE
47062004-02-16 Stephen Eglen <stephen@gnu.org>
4707
4708 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4709
d2f14999
SM
47102004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4711
b15aa9f9
SM
4712 * data.c (Fbyteorder):
4713 * fringe.c (Fdefine_fringe_bitmap):
4714 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4715 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4716
8d50508a
JR
47172004-02-16 Jason Rumney <jasonr@gnu.org>
4718
4719 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4720
dd4497dc
ST
47212004-02-15 Steven Tamm <steventamm@mac.com>
4722
4723 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4724 controlling emulation of a three button mouse with option and
4725 command keys.
4726 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4727 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4728
c9159cb3
KS
47292004-02-15 Kim F. Storm <storm@cua.dk>
4730
2cc52658
KS
4731 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4732
c9159cb3
KS
4733 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4734 Perform byte-swapping.
4735
12fde2dc
KS
47362004-02-14 Kim F. Storm <storm@cua.dk>
4737
4738 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4739 bits from char to short to facilitate wider bitmaps.
4740 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4741 member.
4742
4743 * fringe.c (struct fringe_bitmap): Change member bits from char to
4744 short to facilitate 16 bits wide bitmaps. Modify all standard
4745 bitmaps accordingly.
4746 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4747 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4748 (draw_fringe_bitmap): Ditto.
4749 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4750 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4751 handle up to 16 bits wide bitmaps.
4752 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4753 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4754
4755 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4756 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4757 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4758
4759 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4760 so it is no longer necessary to expand them here.
4761
4762 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4763
9d7271e8
KS
47642004-02-12 Kim F. Storm <storm@cua.dk>
4765
4766 * window.c (Fwindow_fringes): Doc fix.
4767
706c1e4f
JD
47682004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4769
4770 * xselect.c (x_get_foreign_selection): Add new optional parameter
4771 time_stamp.
4772 (Fx_get_selection_internal): Ditto, pass time_stamp to
4773 x_get_foreign_selection.
4774
4775 * data.c (Fbyteorder): New function.
4776
c2d12b5d
JD
47772004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4778
4779 * atimer.c: Move include stdio.h to same place as in other files.
4780
4781 * region-cache.c: Ditto.
4782
4783 * sysdep.c: Ditto.
4784
4785 * xfaces.c: Ditto.
4786
4c1947b9
SS
47872004-02-09 Sam Steingold <sds@gnu.org>
4788
89458937 4789 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4790
82722af3
KS
47912004-02-09 Kim F. Storm <storm@cua.dk>
4792
4793 * fringe.c: New file. Move original fringe related declarations
4794 and code from dispextern.h and xdisp.c here.
4795 Rework code to support user defined fringe bitmaps, redefining
4796 standard bitmaps, ability to overlay user defined bitmap with
4797 overlay arrow bitmap, and add faces to bitmaps.
4798 (Voverflow_newline_into_fringe): Declare here.
4799 (enum fringe_bitmap_align): New enum.
4800 (..._bits): All bitmaps are now defined without bitswapping; that
4801 is now done in init_fringe_once (if necessary).
4802 (standard_bitmaps): New array with specifications for the
4803 standard fringe bitmaps.
4804 (fringe_faces): New array.
4805 (valid_fringe_bitmap_id_p): New function.
4806 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4807 (draw_fringe_bitmap): New function which draws fringe bitmap,
4808 possibly overlaying bitmap with cursor in right fringe or the
4809 overlay arrow in the left fringe.
4810 (update_window_fringes): Do not handle overlay arrow here.
4811 Compare and copy fringe bitmap faces.
4812 (init_fringe_bitmap): New function.
4813 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4814 define and destroy user defined fringe bitmaps.
4815 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4816 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4817 (syms_of_fringe): New function. Defsubr new DEFUNs.
4818 DEFVAR_LISP Voverflow_newline_into_fringe.
4819 (init_fringe_once, init_fringe): New functions.
4820 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4821
82722af3
KS
4822 * Makefile.in (obj): Add fringe.o.
4823 (fringe.o): New dependencies.
4824
4825 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4826 bits allocated to hold a fringe number. Increase number of bits
4827 from 4 to 8 to allow user defined fringe bitmaps.
4828 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4829 left_user_fringe_face_id, right_user_fringe_bitmap,
4830 right_user_fringe_face_id.
4831 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4832 Move to new file fringe.c.
4833 (MAX_FRINGE_BITMAPS): Define here.
4834 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4835 and overlay_p. Change member which to int.
4836 (struct redisplay_interface): New members define_fringe_bitmap
4837 and destroy_fringe_bitmap.
4838 (valid_fringe_bitmap_id_p): Add prototype.
4839 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4840
4841 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4842 arrows.
4843 (update_frame): Do flush_display if force_flush_display_p to
4844 ensure display (specifically fringes) are updated in a timely
4845 manner when resizing the frame by dragging the mouse.
4846 (update_window_line): Update row if overlay arrow changed.
4847 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4848 or overlay arrow changed.
4849
4850 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4851 syms_of_fringe, and init_fringe.
4852
4853 * frame.h (struct frame): New member force_flush_display_p.
4854
4855 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4856 Add prototypes.
4857
a3993cc8 4858 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4859 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4860 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4861 Use cursor color for displaying cursor in fringe.
82722af3
KS
4862 (x_redisplay_interface): Add null handlers for
4863 define_fringe_bitmap and destroy_fringe_bitmap functions.
4864
4865 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4866 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4867 for displaying cursor in fringe.
4868 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4869 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4870 (w32_redisplay_interface): Add them to redisplay_interface.
4871 (w32_term_init): Call w32_init_fringe instead of explicitly
4872 defining fringe bitmaps in fringe_bmp array.
4873 (x_delete_display): Call w32_reset_fringes instead of explicitly
4874 destroying fringe bitmaps in fringe_bmp array.
4875
4876 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4877 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4878 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4879 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4880 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4881 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4882 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4883 Move fringe handling vars and code to new file fringe.c.
4884 (handle_display_prop): Handle left-fringe and right-fringe
4885 display properties; store user fringe bitmaps in iterator.
4886 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4887 (clear_garbaged_frames): Set force_flush_display_p if resized.
4888 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4889 (display_line): Handle cursor in fringe at eob.
4890 (display_line): Set row user fringe bitmaps from iterator.
4891
4892 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4893 Use cursor color for displaying cursor in fringe.
4894 (x_redisplay_interface): Add null handlers for
4895 define_fringe_bitmap and destroy_fringe_bitmap functions.
4896
030400eb
JD
48972004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4898
4899 * macfns.c (Fx_change_window_property): Make doc string and
4900 parameters same as for X version.
4901
4902 * w32fns.c (Fx_change_window_property): Ditto.
4903
3af55251
KS
49042004-02-07 Kim F. Storm <storm@cua.dk>
4905
ec110e9e
KS
4906 * xdisp.c (hscroll_window_tree): Position cursor near to right
4907 margin in hscrolled window when jumping to end of line (rather
4908 than centering cursor).
4909
3af55251
KS
4910 * process.c (wait_reading_process_input): Don't do adaptive read
4911 buffering if waiting for a specific process.
4912
b0c138ce
LT
49132004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4914
4915 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4916 (Fread_minibuffer, Feval_minibuffer)
4917 (Fread_string, Fread_no_blanks_input)
4918 (Fcompleting_read): Doc fixes.
4919 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4920 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4921 (read_minibuf): Fix initial comment.
4922 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 4923 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
4924 checking completion-regexp-list.
4925 (Fdisplay_completion_list): Make it handle arguments that are
4926 symbols. Doc fix.
4927
9676f5ad 49282004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 4929
9676f5ad 4930 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 4931
9676f5ad
JD
4932 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4933 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 4934 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 4935 format. Remove unused variable cons.
5b698285
JD
4936
4937 * xselect.c: Include stdio,h.
4938
fc1d15f6
KH
49392004-02-05 Kenichi Handa <handa@m17n.org>
4940
ebaff4af
KH
4941 * fns.c (Fset_char_table_range): Fix previous change.
4942
fc1d15f6
KH
4943 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4944
9676f5ad
JD
49452004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4946
4947 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4948
da75761f
SM
49492004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4950
4951 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4952 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4953
13c5d120
KH
49542004-02-04 Kenichi Handa <handa@m17n.org>
4955
4956 * fns.c (Fset_char_table_range): Handle charsets ascii,
4957 eight-bit-control, and eight-bit-graphic correctly.
4958
2883d842
JR
49592004-02-03 Jason Rumney <jasonr@gnu.org>
4960
4961 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4962
4963 * w32fns.c (x_to_w32_font): Likewise.
4964
69eff41f
JD
49652004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4966
4967 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4968 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4969
4970 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4971 ClientMessages.
4972
4973 * xselect.c: Include termhooks.h and X11/Xproto.h
4974 (x_check_property_data, x_fill_property_data)
4975 (x_property_data_to_lisp, mouse_position_for_drop)
4976 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 4977 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
4978 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4979
da75761f 4980 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
4981 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4982 OUTER_P.
4983 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4984 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4985 if vector_ret_p is true.
4986 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 4987
a6eeaa81 49882004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
4989
4990 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4991 basename of FILE relative to it, not FILE itself.
4992
09721b31
KH
49932004-02-02 Kenichi Handa <handa@m17n.org>
4994
4995 * coding.c (coding_restore_composition): Check invalid
4996 composition data more rigidly.
4997
eb996101
LT
49982004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4999
5000 * fileio.c (Fread_file_name_internal): Correctly handle the case
5001 where insert-default-directory is nil.
5002 (Fread_file_name): Always return an empty string if the user exits
5003 with an empty minibuffer. Adapt the docstring accordingly.
5004 (syms_of_fileio): Adapt the docstring of insert-default-directory
5005 to the change in Fread_file_name.
5006
a6eeaa81 50072004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5008
5009 * alloca.c [!alloca]: Fix the prototype for xfree.
5010
13f52ed8
KH
50112004-01-29 Kenichi Handa <handa@m17n.org>
5012
5013 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5014 (string_byte_to_char): Likewise.
5015
d57625a0
JR
50162004-01-28 Peter Runestig <peter@runestig.com>
5017
5018 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5019
a64387ee 50202004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5021
5022 * unexmacosx.c (unexec_copy): Do not copy more than was
5023 requested to prevent overwriting during unexec.
5024
eb37b8fd
JD
50252004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5026
ce38070a
JD
5027 * process.c (sigchld_handler): Add comment about not calling malloc.
5028
eb37b8fd
JD
5029 * process.h: Add extern to synch_process_termsig.
5030
a64387ee 50312004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5032
da75761f
SM
5033 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5034 Move setting of scroll bars from make_mac_frame to
5035 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5036
d62a265d
RS
50372004-01-26 Richard M. Stallman <rms@gnu.org>
5038
5039 * search.c (Freplace_match): Handle nonexistent
5040 back-references properly.
5041
50422004-01-03 Richard M. Stallman <rms@gnu.org>
5043
5044 * window.c (decode_any_window): New function.
5045 (Fwindow_height, Fwindow_width, Fwindow_edges)
5046 (Fwindow_pixel_edges, Fwindow_inside_edges)
5047 (Fwindow_inside_pixel_edges): Use decode_any_window.
5048
ff236419
JD
50492004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5050
5051 * process.h: synch_process_termsig new variable.
5052
5053 * callproc.c: Define synch_process_termsig.
5054 (Fcall_process): Initiate synch_process_termsig to zero and
5055 check if non-zero and get signal name after subprocess has ended.
5056
5057 * process.c (sigchld_handler): Set synch_process_termsig
5058 if terminated by a signal. synch_process_death setting removed.
5059
5060 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5061
41b867ea
AS
50622004-01-26 Andreas Schwab <schwab@suse.de>
5063
5064 * print.c (print_preprocess): Declare size as EMACS_INT to not
5065 lose bits.
5066 (print_object): Likewise.
5067 * alloc.c (Fpurecopy): Likewise.
5068
a08084ff
LT
50692004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5070
5071 * window.c (Fwindow_minibuffer_p): Doc fix.
5072
b19ac475
JY
50732004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5074
5075 * editfns.c (Fformat): Make both passes accept the same set of flags.
5076
fe905025
KH
50772004-01-23 Kenichi Handa <handa@m17n.org>
5078
5079 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5080 one, set buffer to OBJECT temporarily.
5081
438fc6c0
SM
50822004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5083
455316e2
SM
5084 * keyboard.c (kbd_buffer_gcpro): Remove.
5085 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5086 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5087 Don't initialize and/or maintain the variable any more. It was made
5088 redundant by my commit of 2003-06-15.
5089
438fc6c0
SM
5090 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5091
5335a4ee
JD
50922004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5093
5094 * lisp.h: Add undef DECL_ALIGN.
5095
dcdaeebc
SM
50962004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5097
5098 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5099 Check interrupt_input_pending explicitly.
5100
5101 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5102
5103 * keyboard.c (handle_async_input): New fun,
5104 extracted from input_available_signal.
5105 (input_available_signal, reinvoke_input_signal): Use it.
5106
9076a823
SM
51072004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5108
d7107586
SM
5109 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5110
5111 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5112 manipulation macros for when tags are in the lower bits.
5113 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5114 (DECL_ALIGN): New macro.
5115 (DEFUN): Use it.
5116
5117 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5118
5119 * s/darwin.h (__attribute__): Remove outdated workaround.
5120
5121 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5122
5123 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5124 Don't check range of malloc address.
5125 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5126
9076a823
SM
5127 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5128
5129 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5130
ba029065
KH
51312004-01-19 Kenichi Handa <handa@m17n.org>
5132
5133 * fontset.c (fontset_font_pattern): Fix previous change.
5134
7af0e8d7
MB
51352004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5136
5137 * xdisp.c (Voverflow_newline_into_fringe)
5138 (move_it_in_display_line_to, redisplay_internal)
5139 (update_window_fringes, redisplay_window, display_line, window):
5140 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5141 that it compiles without a window-system.
5142 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5143
77a9cf69
KS
51442004-01-16 Kim F. Storm <storm@cua.dk>
5145
5146 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5147
a64387ee 5148 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5149 buffer_local_flags for indicate_buffer_boundaries.
5150 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5151 default- variable for it.
5152
5153 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5154 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5155 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5156 overflowing newlines into right fringe.
5157 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5158 and indicate_bottom_line_p for buffer boundaries and scrolling.
5159 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5160 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5161 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5162 and HOLLOW_SQUARE_BITMAP.
5163 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5164 Add prototypes.
5165
5166 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5167 instead of related indicator fields.
5168 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5169 (direct_output_for_insert): Handle exact width lines like
5170 contined lines. Call update_window_fringes.
5171 (update_window): Call update_window_fringes.
5172 (scrolling_window): Don't skip desired rows with changed bitmaps.
5173 Check if fringe bitmaps changes when assigning scrolled rows.
5174
5175 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5176 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5177 (move_it_in_display_line_to): Overflow newline into fringe for
5178 rows that are exactly as wide as the window.
5179 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5180 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5181 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5182 (fringe_bitmaps): Add new bitmaps.
5183 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5184 Select proper bitmap for cursor in fringe when appropriate.
5185 Handle alignment of bitmap to top or bottom of row.
5186 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5187 done by update_window_fringes.
5188 (update_window_fringes, draw_window_fringes): New functions.
5189 (redisplay_internal): Call update_window_fringes in case only
5190 cursor row is updated.
5191 (redisplay_window): Call update_window_fringes.
5192 Explicitly call draw_window_fringes if redisplay was done using
5193 the current matrix or the overlay arrow is in the window.
5194 (try_window_reusing_current_matrix): Mark scrolled rows for
5195 fringe update (to update buffer-boundaries / scrolling icons).
5196 (find_last_unchanged_at_beg_row): Handle exact width lines line
5197 continued lines.
5198 (display_line): Overflow newline into fringe for rows that are
5199 exactly as wide as the window. Don't append space for newline
d7107586 5200 in this case.
77a9cf69
KS
5201 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5202 in fringe as if it had been overwritten.
5203 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5204 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5205 void-text-area-pointer as user options.
5206 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5207
77a9cf69
KS
5208 * xterm.c (x_update_window_end): Call draw_window_fringes.
5209 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5210 in row instead of actually drawing fringe bitmaps.
5211 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5212 (x_draw_window_cursor): Draw cursor in fringe.
5213
5214 * w32term.c (x_update_window_end): Call draw_window_fringes.
5215 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5216 in row instead of actually drawing fringe bitmaps.
5217 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5218 (w32_draw_window_cursor): Draw cursor in fringe.
5219
5220 * macterm.c (x_update_window_end): Call draw_window_fringes.
5221 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5222 in row instead of actually drawing fringe bitmaps.
5223 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5224 (mac_draw_window_cursor): Draw cursor in fringe.
5225
a633a954
JD
52262004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5227
5228 * xterm.c (handle_one_xevent): Don't handle characters that are part
5229 of an old style (XLookupString) compose sequence.
5230
80460525
KH
52312004-01-15 Kenichi Handa <handa@m17n.org>
5232
5233 * search.c (Freplace_match): Use make_multibyte_string or
5234 make_unibyte_string according to the buffer multibyteness.
5235
7fc34f85
SM
52362004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5237
5238 * alloc.c (struct interval_block, struct string_block)
5239 (struct symbol_block, struct marker_block, live_string_p)
5240 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5241 Better preserve alignment for objects in blocks.
5242 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5243
5244 * lread.c (defvar_per_buffer): Remove dead declaration.
5245
5246 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5247 space size.
5248
66070bd1
JD
52492004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5250
5251 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5252 if a key press should pop down. Only pop down if a key is pressed
5253 outside the menu/dialog.
5254 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5255 popup_get_selection.
5256 (create_and_show_dialog): Pass 1 for down_on_keypress to
5257 popup_get_selection.
5258
de7515d6
JD
52592004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5260
5261 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5262 BLOCK/UNBLOCK_INPUT.
5263
160b1b50
JD
52642004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5265
5266 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5267 specified.
5268
3a9f36e6
KH
52692004-01-08 Kenichi Handa <handa@m17n.org>
5270
5271 * editfns.c (Fformat): Fix '&' to '&&'.
5272
3803eb32
AS
52732004-01-08 Andreas Schwab <schwab@suse.de>
5274
5275 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5276 size if PSEUDOVECTOR_FLAG is set.
5277
9da88f37
KH
52782004-01-07 Kenichi Handa <handa@m17n.org>
5279
74ac5074
KH
5280 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5281
9da88f37
KH
5282 * fontset.c (fontset_ref_via_base): Fix previous change.
5283
05faee07
KS
52842004-01-07 Kim F. Storm <storm@cua.dk>
5285
5286 * process.c (read_process_output): Only activate adaptive
5287 buffering if we read less than 256 bytes at a time.
5288
634910c8
KS
52892004-01-06 Kim F. Storm <storm@cua.dk>
5290
5291 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5292 object and image object. Return glyph width and height.
5293 (mode_line_string, marginal_area_string): Ditto.
5294
5295 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5296 (marginal_area_string): Fix prototypes.
5297
5298 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5299 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5300 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5301
5302 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5303 buffer_posn_from_coords, and marginal_area_string functions to
5304 include both string object and image object in the lispy position.
5305 Also add actual glyph width and height to position.
5306 (read_key_sequence): Use real buffer position from mouse
5307 event to find keymap property even when click is in marginal area.
5308
5309 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5310 mode_line_string and marginal_area_string functions to handle
5311 both string object and image object properties.
d7107586 5312
57951c2e
AS
53132004-01-06 Andreas Schwab <schwab@suse.de>
5314
5315 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5316 character.
5317
181e6a61
AS
53182004-01-02 Andreas Schwab <schwab@suse.de>
5319
d7107586
SM
5320 * macterm.c (emacs_options, x_initialized, same_x_server):
5321 Remove unused (and duplicated) definitions.
181e6a61 5322
31e0fbdd
KS
53232004-01-02 Kim F. Storm <storm@cua.dk>
5324
5325 * process.h (struct Lisp_Process): New members for adaptive read
5326 buffering: adaptive_read_buffering, read_output_delay, and
5327 read_output_skip.
5328
5329 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5330 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5331 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5332 (process_output_delay_count, process_output_skip): New vars.
5333 (Vprocess_adaptive_read_buffering): New variable.
5334 (make_process): Initialize adaptive read buffering members.
5335 (Fstart_process): Set adaptive_read_buffering member.
5336 (deactivate_process): Cleanup adaptive read buffering.
5337 (wait_reading_process_input): Temporarily omit delayed
5338 subprocesses from the set of file descriptors to read from;
5339 adjust the select timeout if we skipped any subprocesses.
5340 (read_process_output): Increase adaptive read buffering delay if
5341 we read less than a full buffer; reduce delay when we read a
5342 full buffer.
5343 (send_process): Simplify using local Lisp_Process var.
5344 Reset adaptive read buffering delay after write.
5345 (init_process): Initialize process_output_delay_count and
5346 process_output_skip.
5347 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5348
68c6a789
JR
53492004-01-01 Jason Rumney <jasonr@gnu.org>
5350
d7107586 5351 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5352
3f70fe82
LT
53532003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5354
5355 * print.c (Ferror_message_string): Add hyperlink in the docstring
5356 to the definition of `signal' in the Elisp manual.
5357 * eval.c (Fsignal): Ditto.
5358
b6189c3b 53592003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5360
5361 * fns.c (internal_equal): Return t for two NaN arguments.
5362
7abd90ea
RS
53632003-12-29 Richard M. Stallman <rms@gnu.org>
5364
5365 * data.c (store_symval_forwarding): Handle setting
5366 default-fill-column, etc., by changing the value in
5367 buffers that use the default.
5368
5369 * minibuf.c (Fset_minibuffer_window): Doc fix.
5370
5371 * fileio.c (choose_write_coding_system): Ignore auto_saving
5372 if using the visited file for auto saves.
5373 (Fwrite_region): Don't update SAVE_MODIFF
5374 if auto-saving in visited file.
5375
3e7cfcdc
KH
53762003-12-29 Kenichi Handa <handa@m17n.org>
5377
5378 * dispextern.h (face_font_available_p): Extern it.
5379
5380 * fontset.c (Voverriding_fontspec_alist): New variable.
5381 (lookup_overriding_fontspec): New function.
d7107586 5382 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5383 (fontset_font_pattern): Likewise.
5384 (regulalize_fontname): New function.
5385 (Fset_fontset_font): Call regulalize_fontname.
5386 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5387 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5388 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5389
5390 * xfaces.c (face_font_available_p): New function.
5391
7abd90ea
RS
53922003-12-28 Richard M. Stallman <rms@gnu.org>
5393
5394 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5395 or if its name is nil.
5396
5397 * buffer.c (Fkill_buffer): Don't delete auto-save file
5398 if it's the same as the visited file.
5399
de1d1a40
LT
54002003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5401
5402 * coding.c (Fcheck_coding_system): Doc fix.
5403
204fb75e
KS
54042003-12-28 Kim F. Storm <storm@cua.dk>
5405
5406 * Makefile.in (eval.o): Depend on dispextern.h.
5407
5408 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5409 image glyph using image's ascent.
5410 (mode_line_string): Return image glyph as object clicked on.
5411 Adjust y0 for image glyph using image's ascent.
5412
5413 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5414 (struct glyph): New members, ascent and descent. Used to save
5415 this glyph's ascent and descent, instead of having.
5416 (struct glyph): Declare member face_id using FACE_ID_BITS.
5417 (find_hot_spot): Add prototype.
5418
5419 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5420 (QCmap): Declare extern.
5421 (make_lispy_position): When position is inside image hot-spot,
5422 use hot-spot element's id as posn element.
5423
5424 * lisp.h (IMAGEP): New macro to test for image object type.
5425 (Qimage): Declare extern.
5426
5427 * macfns.c (Qimage): Remove extern (now in lisp.h).
5428 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5429
5430 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5431
5432 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5433 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5434
5435 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5436
5437 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5438
5439 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5440 pointer types.
5441 (Qrelative_width, Qalign_to): Remove unused variables.
5442 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5443 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5444 image maps.
d7107586 5445 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5446 new dx and dy args.
5447 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5448 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5449 than row's ascent and height, to get sensible height on tall rows.
5450 (build_desired_tool_bar_string): Remove Qimage extern.
5451 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5452 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5453 image glyph is alone on the last line.
5454 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5455 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5456 (on_hot_spot_p): New function to check if position is inside an
d7107586 5457 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5458 (find_hot_spot): New function to search for image hot-spot.
5459 (Flookup_image_map): New defun to search for image hot-spot.
5460 (define_frame_cursor1): New aux function to determine frame pointer.
5461 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5462 Handle `pointer' text property and :pointer image property to
5463 control frame pointer shape. Detect image hot-spots for pointer
5464 and help_echo properties. Use define_frame_cursor1.
5465 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5466 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5467 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5468
5469 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5470
5471 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5472 (Qimage): Remove extern (now in lisp.h).
5473 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5474
5475 * xmenu.c (show_help_event): Remove unused code.
5476
5477 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5478 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5479 row's ascent and descent, to get a sensible height on tall rows.
5480
fc052137
LT
54812003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5482
5483 * minibuf.c (Fcompleting_read): Undo previous change.
5484
a64387ee 54852003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5486
5487 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5488 Arguments GCPRO'ed in call to file name handler.
5489
56ffd194
TTN
54902003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5491
5492 * termcap.c (tgetst1): Scan for "%pN"; if all
5493 N are continuous in [1,9], remove all "%pN".
5494
5202d23d
JD
54952003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5496
f26fab36
JD
5497 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5498
5202d23d
JD
5499 * xfaces.c (lface_fully_specified_p): Take into account that
5500 MAC OS always have unspecified stipple.
5501
8babaa59
TTN
55022003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5503
5504 * tparam.c (tparam1): Add handling for `%pN', which
5505 means use param N for the next substitution.
5506
2d176448
TTN
55072003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5508
5509 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5510 In case `frame' is nil, consult the selected frame.
5511 (Fcolor_supported_p): Likewise.
5512
adb0708c
LT
55132003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5514
000eeb15
LT
5515 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5516 Doc fixes.
0dc72b11
LT
5517
5518 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5519 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5520 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5521 Doc fix.
5522 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5523 read_minibuf.
5524 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5525 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5526
2e4d132b
KH
55272003-12-03 Kenichi Handa <handa@m17n.org>
5528
5529 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5530 encoding sequence.
5531
3999c705
KH
55322003-12-01 Kenichi Handa <handa@m17n.org>
5533
5534 * composite.c (syms_of_composite): Don't make the compostion hash
5535 table week.
5536
d344ecbb
LT
55372003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5538
5539 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5540 * textprop.c (Fget_char_property_and_overlay): New function.
5541 (syms_of_textprop): Defsubr it.
5542
03d6484e
JD
55432003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5544
019b1f0e
JD
5545 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5546 to compile on terminal configuration.
5547
03d6484e
JD
5548 * fileio.c (Fread_file_name): Check use_file_dialog also before
5549 calling Fx_file_dialog.
5550
5551 * fns.c: use_file_dialog: New variable.
5552 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5553
442d3fd0
KS
55542003-11-29 Kim F. Storm <storm@cua.dk>
5555
5556 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5557 (syms_of_msdos): Don't intern and staticpro them.
5558
0f6a07a8
KS
55592003-11-27 Kim F. Storm <storm@cua.dk>
5560
5561 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5562 coordinates relative to glyph at posn. If glyph is an image,
5563 return that as object at posn. Callers changed.
5564 (mode_line_string, marginal_area_string): Calculate and return
5565 pixel coordinates relative to glyph. Callers changed.
5566
5567 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5568 (marginal_area_string): Fix prototypes.
5569 (window_box_left_offset, window_box_right_offset): Add prototypes.
5570
5571 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5572 Remove prototypes.
5573
5574 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5575
5576 * keyboard.c (make_lispy_position): Add x and y coordinates
5577 relative to the current glyph as 7th element of position.
5578 If glyph is an image, return it in the object element.
5579 (read_key_sequence): Skip checks for keymap property in cases
5580 where POSN_STRING is not a string (e.g. an image).
5581
5582 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5583 (Vshow_text_cursor_in_void): New variable.
5584 (glyph_to_pixel_coords): Don't use negative hpos.
5585 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5586 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5587 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5588 (calc_pixel_width_or_height): New aux function, implementing
5589 pixel based artihmetic for glyph widths and heights.
5590 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5591 :width, :height, :align-to, and :ascent, thus allowing these to
5592 be specified in pixels as well as multiples of characters.
5593 Don't produce stretch glyphs with zero width or height.
5594 (get_specified_cursor_type): Declare static.
5595 (get_window_cursor_type): Declare static. Add glyph arg to be
5596 able to know when cursor is on an image; always substitute
5597 hollow-box cursor for filled-box cursor on images, to avoid
5598 negative images and flicker when blinking the cursor.
5599 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5600 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5601 than vertical scroll-bar cursor in display margins.
5602 (note_mouse_highlight): Use non-text cursor rather than text
5603 cursor in fringes and over images in the text area.
5604 Use non-text cursor when mouse pointer is outside editable text,
5605 i.e. in the void after end-of-line or end-of-buffer; this was
5606 already done for W32, but is now standard for all systems --
5607 user can toggle show-text-cursor-in-void to get old behaviour.
5608 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5609 Vdisplay_pixels_per_inch.
5610
00498bfc
AS
56112003-11-25 Andreas Schwab <schwab@suse.de>
5612
5613 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5614 EMACS_INT to not lose bits.
5615 (Ffillarray): Don't set bits beyond the size of a bool vector.
5616
edaa824d
KS
56172003-11-25 Kim F. Storm <storm@cua.dk>
5618
5619 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5620 define this defun on systems that cannot use stderr as lvalue.
5621
74d6f539
GM
56222003-11-24 Gerd Moellmann <gerd@gnu.org>
5623
5624 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5625 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5626 ld's default is incompatible with unexec.
5627
6a1ff3ba
KS
56282003-11-23 Kim F. Storm <storm@cua.dk>
5629
63dc7c6b
KS
5630 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5631 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5632 (Fforce_window_update): New defun.
5633 (syms_of_window): Defsubr it.
5634 (Fset_window_margins, Fset_window_fringes): Doc fix.
5635
6a1ff3ba
KS
5636 * print.c (Fredirect_debugging_output): New defun.
5637 (syms_of_print): Defsubr it.
5638
aef109b7
LT
56392003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5640
5641 * fns.c (Fset_char_table_parent): Doc fix.
5642
6a1ff3ba 56432003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5644
5645 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5646 for glyph clicked on, rather than (unused) pixel positions.
5647 (mode_line_string, marginal_area_string): Change X and Y args to
5648 pointers for returning actual row/column for glyph clicked on.
5649 Simplify and optimize loops.
5650
aef109b7
LT
5651 * dispextern.h (mode_line_string, marginal_area_string):
5652 Update prototypes.
63ccbe21
KS
5653
5654 * keyboard.c (make_lispy_position): New function for generating
5655 mouse click positions from frame and pixel coordinates.
5656 Enhanced to return buffer position and actual row/column for
5657 events outside the text area using updated mode_line_string and
5658 marginal_area_string functions.
5659 Return left-fringe and right-fringe clicks as such, rather than
5660 clicks in text area.
5661 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5662 pixel_to_glyph_coords, as we never use the results.
5663 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5664 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5665 Eliminate unused code in WHEEL_EVENT handling.
5666 (make_lispy_movement): Use make_lispy_position.
5667
5668 * window.c (coordinates_in_window): Remove redundant tests.
5669 Fix returned X pixel value for left-margin.
5670
5671 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5672 mode_line_string and marginal_area_string parameters.
5673
a64387ee 56742003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5675
d7107586
SM
5676 * w32.c (struct the_group, getgrgid): Add.
5677 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5678
3dbf3426
LT
56792003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5680
5681 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5682
cae8ddbb 56832003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5684
d7107586
SM
5685 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5686 include in call to file name handler. Optionally translate numeric
5687 UID and GID to strings. Update docstring.
5688 (directory_files_internal): Add parameter ID-FORMAT.
5689 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5690 include in call to file name handler and call to
5691 directory_files_internal. Update Docstring.
5692 (Fdirectory_files): Add dummy parameter in call to
5693 directory_files_internal.
5694 * lisp.h (Qinteger): Add.
5695 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5696 (Ffile_attributes): Add parameter.
5697 * data.c (Qinteger): Export.
cae8ddbb 5698
2550b848
LT
56992003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5700
3dbf3426 5701 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5702
88380018
KS
57032003-11-19 Kim F. Storm <storm@cua.dk>
5704
5705 * xdisp.c (init_iterator): Initialize it->start to position
5706 before reseating (in case start position is invisible).
5707 (init_to_row_start): Set it->start to row-start.
5708 (redisplay_window): Accept optional_new_start if start position
5709 is invisible (in which case IT_CHARPOS overshoots PT).
5710 (display_line): Setup row->start from it->start (rather than
5711 it->current which is wrong if first char on line is invisible).
5712 When done, reseat it->start to it->current (= start of next row).
5713 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5714 is only partially visible.
5715
5716 * dispextern.h (struct it): New member start.
5717
854c1a59
SM
57182003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5719
455316e2
SM
5720 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5721 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5722 of block_index outside of the macro call.
5723 (Fgarbage_collect): Remove null code.
5724
5725 * m/amdx86-64.h: Don't redefine XPNTR.
5726
854c1a59
SM
5727 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5728 of VALMASK.
5729
5730 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5731 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5732 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5733
5734 * lisp.h (VALMASK): Only define for non-union type.
5735 (MARKBIT): Remove.
5736 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5737 (XTYPE): Define unconditionally.
5738 (XSETTYPE): Remove one more remnant.
5739 (EQ): Define differently for the union and non-union cases.
5740 (INTMASK): New bit mask.
5741 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5742 (GC_EQ): Delegate to EQ.
5743
5744 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5745
a0c6ef2d
JD
57462003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5747
5748 * xterm.c (x_window_to_scroll_bar): Move check of display to
5749 where window_id is compared.
5750
859492c4
KS
57512003-11-17 Kim F. Storm <storm@cua.dk>
5752
5753 * dispextern.h (struct it): New member first_vpos.
5754
5755 * xdisp.c (start_display): Set it->first_vpos.
5756 (try_window_id): Use first_vpos to start display in first _text_
5757 line if no reusable lines at start of window with header line.
5758
810f2256
JD
57592003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5760
7c402969 5761 * w32fns.c (XPutPixel):
854c1a59
SM
5762 * w32bdf.c (w32_init_bdf_font):
5763 * sunfns.c (sel_read):
5764 * process.c (Fmake_network_process):
5765 * frame.c (store_frame_param):
5766 * fontset.c (Fset_fontset_font):
5767 * emacs.c (shut_down_emacs):
a64387ee 5768 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5769
a32e9bfd
JD
5770 * config.in: Regenerate.
5771
810f2256
JD
5772 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5773 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5774 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5775 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5776 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5777
5778 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5779
5780 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5781 (XTmouse_position, handle_one_xevent): Pass Display* to
5782 x_window_to_scroll_bar.
5783 (x_window_to_scroll_bar): Take a Display* argument.
5784 Check that display for frame is equal to Display* argument.
854c1a59 5785 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5786 x_display_info_for_display instead. Use Display in xev instead
5787 of GDK_DISPLAY.
5788 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5789 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5790 (x_connection_closed): Call xg_display_close for GTK.
5791 (x_term_init): Call xg_display_open for additional displays.
5792 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5793 for GTK.
5794
5795 * xmenu.c (single_menu_item, mouse_position_for_popup)
5796 (x_activate_menubar): Formatting adjustments.
5797
5798 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5799 adjustments.
5800
5801 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5802 (xg_display_close, xg_create_default_cursor)
5803 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5804 handling.
854c1a59
SM
5805 (xg_left_ptr_cursor): Remove.
5806 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5807 cursor here.
5808 (xg_win_to_widget): Take Display* argument, call
5809 gdk_xid_table_lookup_for_display.
5810 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5811 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5812 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5813 in FRAME_X_DISPLAY_INFO.
5814 (xg_get_scroll_id_for_window): Take Display* argument.
5815 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5816 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5817
78819ebb
KS
5818 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5819 Display* argument.
5820 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5821
0b03cc78
JD
58222003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5823
5824 * xterm.c (x_detect_focus_change): Do not change focus frame for
5825 Enter/LeaveNotify if the current focus frame has explicit focus.
5826
77e688fa
KS
58272003-11-14 Kim F. Storm <storm@cua.dk>
5828
5829 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5830 is active and first glyph is only partially visible.
854c1a59 5831
dd429b03
KH
58322003-11-13 Kenichi Handa <handa@m17n.org>
5833
5834 * xdisp.c (select_frame_for_redisplay): New function.
5835 (redisplay_internal): Record also selected_frame for
5836 unwind_redisplay. Call select_frame_for_redisplay before
5837 redrawing each frame.
5838 (unwind_redisplay): Argument changed to a cons.
5839
6d9266f4
LT
58402003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5841
5842 * fns.c (Fstring_to_multibyte): Doc fix.
5843
80060eb3
KH
58442003-11-11 Kenichi Handa <handa@m17n.org>
5845
5846 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5847
74305183
JD
58482003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5849
5850 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5851 program specified positions.
5852
cfda993e
JD
58532003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5854
5855 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5856
df211069
KH
58572003-11-08 Kenichi Handa <handa@m17n.org>
5858
5859 * Makefile.in (lisp): Add kannada.el.
5860 (shortlisp): Likewise.
5861
4307d534
KH
58622003-11-07 Kenichi Handa <handa@m17n.org>
5863
854c1a59
SM
5864 * coding.c (coding_allocate_composition_data):
5865 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5866 (coding_restore_composition): Detect invalid composition data.
5867 Give Fstring and Fvector a Lispy integer, not C int.
5868
854c1a59
SM
58692003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5870
5871 * floatfns.c (Flogb): Don't use VALMASK.
5872
5873 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5874 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5875
5876 * lisp.h (XINT): Move the cast to clarify what is going on.
5877 (GCTYPEMASK, XSETTYPE): Remove.
5878 (XGCTYPE): Make it an alias of XTYPE.
5879
d04103a1
JD
58802003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5881
5882 * xterm.c (x_term_init): Fix formatting.
5883
da18b5ac
JD
58842003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5885
78819ebb
KS
5886 * gtkutil.h (xg_have_tear_offs): Declare.
5887 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5888
5889 * gtkutil.c: Remove variable xg_did_tearoff.
5890 (xg_have_tear_offs): New function.
5891 (tearoff_remove): Just decrease xg_detached_menus.
5892 (tearoff_activate): Increase xg_detached_menus and call
5893 tearoff_remove when tearoff is removed.
854c1a59 5894 (xg_keep_popup): Remove function.
da18b5ac
JD
5895 (create_menus): Give add_tearoff_p as argument to recursive
5896 call to create_menus.
5897 (xg_create_widget): Use variables instead of multiple
5898 strcmp. Tell create_menus to create tear off only for
5899 menu bar menus.
5900 (xg_update_menubar): Change title for a detached menu also.
5901 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5902 of deep_p.
5903 (xg_initialize): Initialize xg_detached_menus, remove
5904 initialization of xg_did_tearoff.
5905
5906 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5907 xg_have_tear_offs returns non-zero.
5908 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5909 call to xg_keep_popup.
5910
64d4923e
AC
59112003-11-01 Andrew Choi <akochoi@shaw.ca>
5912
5913 * macterm.c (XTread_socket): Handle menubar selection and grow
5914 window only for mouseDown events.
854c1a59 5915
6cc8bc07
JD
59162003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5917
5918 * xterm.c (x_term_init): For GTK part, increase x_initialized
5919 to check for more than one display. Use error instead of return 0.
5920
043131c4
AC
59212003-10-31 Andrew Choi <akochoi@shaw.ca>
5922
854c1a59 5923 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
5924 (copy_dysymtab): Call it.
5925
bdda99a1
LT
59262003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5927
5928 * eval.c (Fdefvaralias): Doc fix.
5929
800f42ff 59302003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
5931
5932 * data.c (Fsetplist): Doc fix.
5933
ef35b389
LK
59342003-10-14 Lute Kamstra <lute@gnu.org>
5935
5936 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 5937
ef35b389 59382003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 5939
07107abc
KS
5940 * window.c (Fset_window_margins): Simplify arg checking.
5941
f7005886
RS
59422003-10-13 Richard M. Stallman <rms@gnu.org>
5943
5944 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5945 (print_partial_compiled_pattern): Replace assert with a printout.
5946 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5947
5948 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5949
5950 * window.c (Fset_window_margins): Allow only integers as args.
5951 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5952 Doc fixes.
5953
9c0c2af5
LK
59542003-10-13 Lute Kamstra <lute@gnu.org>
5955
5956 * window.c (Fset_window_fringes): Elaborate docstring.
5957
3f080e4e
AC
59582003-10-12 Andrew Choi <akochoi@shaw.ca>
5959
854c1a59 5960 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5961
3f080e4e
AC
5962 * s/darwin.h (GC_MARK_STACK): Define.
5963
0aa513ed
JD
59642003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5965
5966 * window.c (shrink_windows): New function.
5967 (size_window): Call shrink_windows to calculate window sizes when
5968 shrinking frame with more than one window.
5969
6aa8858a
KS
59702003-10-12 Kim F. Storm <storm@cua.dk>
5971
5972 * xdisp.c (compute_fringe_widths): Doc fix.
5973
c2164d91
KH
59742003-10-08 Kenichi Handa <handa@m17n.org>
5975
854c1a59 5976 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 5977
f82ac129
KH
59782003-10-07 Kenichi Handa <handa@m17n.org>
5979
5980 * coding.c (Qcoding_system_define_form): New variable.
5981 (syms_of_coding): Intern and staticpro it.
5982 (Fcheck_coding_system): Try to autoload the definition of
5983 CODING-SYSTEM.
5984
9296c947
LT
59852003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5986
5987 * fns.c (Frequire): Doc fix.
5988
c1f0671a
JD
59892003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5990
3d8c3826
JD
5991 * xfns.c (Fx_send_client_event): New function as a base for
5992 manipulating extended window manager hints.
6dc15d98 5993 (Fx_send_client_event): Remove unused variable s.
3d8c3826 5994
068ae0fd
JD
5995 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5996 that function is removed.
5997
5998 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5999 x/y_pixels_outer_diff.
6000 (x_check_expected_move): Calculate move_offset_left/top.
6001
6002 * xterm.h (struct x_output): New members: move_offset_top/left.
6003
854c1a59 6004 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6005 call x_set_offset directly.
6006
6007 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6008
96f09305
JD
6009 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6010
6011 * xterm.c (x_delete_display): Free font names and font_encoder
6012 in dpyinfo->font_table.
6013
854c1a59
SM
6014 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6015 Move xfree of font names to x_delete_display.
96f09305 6016
c1f0671a
JD
6017 * xterm.h (struct x_display_info): New member, wm_type.
6018 (struct x_output): New members, expected_top/left and
6019 check_expected_move.
6020
6021 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6022 is received.
854c1a59
SM
6023 (handle_one_xevent): Rename x_check_expected_move from
6024 x_check_fullscreen_move.
c1f0671a
JD
6025 (x_set_offset): Only add WM decoration sizes to modified_top/left
6026 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6027 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6028 Removed fullscreen specific code. Use check_expected_move,
6029 expected_left/top instead. Also, set wm_type.
6030 (x_term_init): Initialize wm_type to unknown.
6031
6032 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6033 sizes to move_x/y.
6034
be2fdba9
KH
60352003-10-03 Kenichi Handa <handa@m17n.org>
6036
6037 * macterm.c (x_load_font): Clear all members of FONTP before start
6038 filling them.
6039
60402003-10-02 Kenichi Handa <handa@m17n.org>
6041
6042 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6043 before calling find_ccl_program_func. Call find_ccl_program_func
6044 only when fontp->font_encoder is not NULL.
6045
6046 * xterm.c (x_load_font): Clear all members of FONTP before start
6047 filling them.
6048
26a6e439
JPW
60492003-10-03 John Paul Wallington <jpw@gnu.org>
6050
6051 * keymap.c (map_keymap): Don't abort when binding is a vector.
6052
0d4c2dc2
JR
60532003-10-02 Jason Rumney <jasonr@gnu.org>
6054
854c1a59
SM
6055 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6056 Sync dependencies with Makefile.in.
a63cf46f
JR
6057 (alloca.o): Remove.
6058
0d4c2dc2
JR
6059 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6060 filling them.
6061
6062 * w32bdf.c (w32_load_bdf_font): Likewise.
6063
ab8f7d5c
RS
60642003-09-30 Richard M. Stallman <rms@gnu.org>
6065
6066 * term.c (set_tty_color_mode): Calculate current_mode_spec
6067 regardless of value of VAL.
6068
854c1a59 6069 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6070 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6071 Handle over_used when splitting UNDER.
6072
a64387ee 60732003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6074
6075 * regex.c (regex_compile): Free the stack when returning from function.
6076
3413f972
KH
60772003-09-28 Kenichi Handa <handa@m17n.org>
6078
6079 * fontset.c (Finternal_char_font): Change return value to
6080 cons (FONT-NAME . GLYPH-CODE).
6081
a6eeaa81 60822003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6083
6084 * term.c (tty_setup_colors): Treat any negative argument as -1.
6085
f98ddc99
KH
60862003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6087
6088 * process.c (send_process): Delete unused temp_buf.
6089
66c8f1a8
DL
60902003-09-26 Dave Love <fx@gnu.org>
6091
6092 * xterm.c (x_bitmap_mask): Declare.
6093
ca716c26
DL
60942003-09-25 Dave Love <fx@gnu.org>
6095
6096 * Makefile.in (fns.o): Depend on md5.h.
6097
fbe57420
KS
60982003-09-25 Kim F. Storm <storm@cua.dk>
6099
6100 * window.c (set_window_buffer): Fix redisplay problems when
6101 switching between buffers with different display margin widths.
6102
ef6ae4ff
KS
61032003-09-23 Kim F. Storm <storm@cua.dk>
6104
6105 * process.c (set_socket_option): Fix :bindtodevice option.
6106 (Fset_network_process_option): Update process contact list when
6107 setting option succeeds.
6108 (Fmake_network_process): Doc fix.
6109
68e03c1c
DL
61102003-09-23 Dave Love <fx@gnu.org>
6111
7146d1c1 6112 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6113
a6eeaa81 61142003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6115
6116 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6117 color mode is an integer number (it could be -1).
6118
8fe7d8c8
RS
61192003-09-22 Richard M. Stallman <rms@gnu.org>
6120
6121 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6122 in the case where OVER is longer than UNDER.
6123
2f71b5ea
MY
61242003-09-22 Masatake YAMATO <jet@gyve.org>
6125
7146d1c1 6126 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6127 `vertical_type'.
7146d1c1 6128
0c4da023
KS
61292003-09-21 Kim F. Storm <storm@cua.dk>
6130
6131 * frame.c (Vdefault_frame_scroll_bars): New variable.
6132 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6133 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6134 window-system default scroll bar position.
6135
b648413b
KS
6136 * window.c (Fwindow_scroll_bars): Doc fix.
6137
8f5b9e34
JD
61382003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6139
854c1a59 6140 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6141
b0f23edf
RS
61422003-09-19 Richard M. Stallman <rms@gnu.org>
6143
6144 * atimer.h: Don't include lisp.h.
6145 (P_): Define it here (as well as elsewhere).
6146
6147 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6148 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6149
6150 * data.c (Fvariable_binding_locus): New function.
6151 (syms_of_data): defsubr it.
6152 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6153
e1283999
DL
61542003-09-18 Dave Love <fx@gnu.org>
6155
ad5f3636
DL
6156 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6157
e1283999
DL
6158 * process.c (Fnetwork_interface_info): Fix type error.
6159 (Fnetwork_interface_list): Doc fix.
6160 (read_process_output, read_process_output): Delete unused var.
6161
b8c7fd71
KS
61622003-09-17 Kim F. Storm <storm@cua.dk>
6163
6164 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6165 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6166 (Fnetwork_interface_info): Check that ifreq struct has required
6167 fields before accessing them; this requires that those fields are
6168 defined as macros, which may be too restrictive on some platforms,
6169 but it is better than failing on other platforms.
6170 (syms_of_process): Only defsubr above fns when included.
6171
11e0a411
DL
61722003-09-17 Dave Love <fx@gnu.org>
6173
6174 * unexalpha.c: Don't include varargs.h.
6175
e9c50801
KS
61762003-09-17 Kim F. Storm <storm@cua.dk>
6177
6178 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6179 for network process.
6180 (socket_options): Add `:' prefix to option names. Add optbit field.
6181 (set_socket_option): Remove no_error arg and special handling of s < 0.
6182 Return 1<<optbit for known option, 0 for unknown.
6183 Do not interpret 0 as false for boolean option (only nil).
6184 Pass failed option and value to report_file_error.
7146d1c1 6185 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6186 (Fset_network_process_option): New function to set just one option.
6187 (Fmake_network_process): Allow :coding arg to be a cons.
6188 Allow :server arg to be an integer specifying backlog size.
6189 Remove :options arg, and allow options to be specified directly
6190 as :KEY, VALUE pairs. Parse these options before binding socket.
6191 As before, :reuseaddr t is default for a server process, but this
6192 can now be disabled by specifying :reuseaddr nil.
6193 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6194 (init_process): Availability of network options is now checked with
6195 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6196 setup features.
6197 (syms_of_process): Fix defsubr's for the replaced functions.
6198
a0fc3644
DL
61992003-09-16 Dave Love <fx@gnu.org>
6200
6201 * Makefile.in: Depend on coding.h.
6202
6df2a645
KS
62032003-09-14 Kim F. Storm <storm@cua.dk>
6204
6205 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6206 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6207 (syms_of_process): Defsubr them.
6208
6209 * config.in: Regenerate.
7146d1c1
SM
6210
62112003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6212
6213 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6214 * m/news-r6.h (XUNMARK): Remove.
6215 * m/mips.h (XUNMARK): Remove.
6216 * m/mips-siemens.h (XUNMARK): Remove.
6217 * m/iris4d.h (XUNMARK): Remove.
6218 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6219
0930c1a1
SM
62202003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6221
31003b9e
SM
6222 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6223 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6224 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6225 (XTYPE): Use unsigned right-shift.
6226 (XMARKBIT, XMARK, XUNMARK): Remove.
6227
0930c1a1
SM
6228 * alloc.c (init_intervals, init_symbol, init_marker):
6229 Don't preallocate anything.
6230 (Fgarbage_collect, mark_object): Ignore the markbit.
6231
6232 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6233
19bb0fcd 62342003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6235
6236 * xdisp.c (pint2hrstr): New function.
6237 (decode_mode_spec): Add `%i' and `%I' specs.
6238 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6239 for `mode-line-format'.
6240
03bb6a06
AS
62412003-09-07 Andreas Schwab <schwab@suse.de>
6242
6243 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6244 avoid warning.
6245
a6eeaa81 62462003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6247
0930c1a1 6248 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6249
ed159bbf
KS
62502003-09-03 Kim F. Storm <storm@cua.dk>
6251
6252 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6253 change (superseded by 2002-08-30 change); the default blink-off
6254 cursor is now again "no cursor".
6255
fe64a394
JR
62562003-09-01 Jason Rumney <jasonr@gnu.org>
6257
6258 * makefile.w32-in (alloca.o): Remove.
6259 (coding.o): Depend on intervals.h
6260 (emacs.o, bytecode.o): Depend on window.h
6261
c0175e24
DL
62622003-09-01 Dave Love <fx@gnu.org>
6263
6264 * Makefile.in (alloca.o): Remove commands.
6265 (coding.o): Depend on intervals.h composite.h window.h.
6266 (emacs.o): Depend on window.h keyboard.h keymap.h.
6267 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6268 (bytecode.o): Depend on window.h.
6269
a24d4cb2
JR
62702003-08-31 Jason Rumney <jasonr@gnu.org>
6271
4bc2315e
JR
6272 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6273 returned even when font_type is unknown.
6274
a24d4cb2
JR
6275 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6276
9d35adc7
JD
62772003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6278
6279 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6280
6281 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6282 *_offset.
6283
6284 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6285 calculate pixel value.
6286
6f68b035
GM
62872003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6288
0930c1a1
SM
6289 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6290 Don't tell redisplay display is accurate when it's actually been
6291 paused for pending input.
6f68b035 6292
4828b4d7
RS
62932003-08-29 Richard M. Stallman <rms@gnu.org>
6294
6295 * dispnew.c (adjust_glyph_matrix): Call window_box
6296 whenever W is nonzero.
6297
6298 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6299 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6300 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6301 Use indirect_variable to trace thru variable aliases.
6302
6303 * config.in: Updated.
6304
6305 * callint.c (Fcall_interactively): Save and restore
6306 Vthis_command, Vthis_original_command, real_this_command,
6307 and current_kboard->Vlast_command.
6308
6309 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6310
e019878d
GM
63112003-08-29 Gerd Moellmann <gerd@gnu.org>
6312
6313 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6314
85478bc6
KH
63152003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6316
0930c1a1 6317 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6318 (decode_coding_sjis_big5): Likewise.
6319
07ce82d3
JR
63202003-08-27 Jason Rumney <jasonr@gnu.org>
6321
d3703de3
JR
6322 * w32.c (sys_pipe): Protect against file descriptor overflow.
6323
ee4a01d1
JR
6324 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6325
07ce82d3
JR
6326 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6327
a64387ee 63282003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6329
6330 * xfns.c (Vgtk_version_string): New variable.
6331 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6332
a6eeaa81 63332003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6334
0930c1a1 6335 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6336
5459e42a
EZ
6337 * Makefile.in (msdos.o): Depend on intervals.h.
6338
0930c1a1 6339 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6340
231d6cfb
JD
63412003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6342
6343 * xterm.h (struct x_display_info): New fields: client_leader_window
6344 and Xatom_wm_client_leader.
6345
6346 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6347 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6348
6349 * xsmfns.c (create_client_leader_window): New function.
6350 (x_session_initialize): Call create_client_leader_window, take
6351 dpyinfo as argument.
6352
6353 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6354
6355 * Makefile.in (xsmfns.o): Add more depenedencies.
6356
afa88464
DL
63572003-08-21 Dave Love <fx@gnu.org>
6358
6359 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6360
f730033e
KH
63612003-08-21 Kenichi Handa <handa@m17n.org>
6362
6363 * term.c (term_init): Fix previous change; don't rely on the
6364 length of `buffer' if TERMINFO is defined.
6365
6dca786c
DL
63662003-08-20 Dave Love <fx@gnu.org>
6367
6368 * atimer.h: Include lisp.h.
6369
6370 * lisp.h (EMACS_LISP_H): New.
6371 (popup_activated_flag): Don't declare.
6372
6373 * alloca.c: Some merging with gnulib. Change logic and doc
6374 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6375 [DO_BLOCK_INPUT]: Don't include lisp.h.
6376 (xmalloc, xfree): Declare.
6377 (malloc): Don't declare.
6378
0930c1a1 6379 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6380 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6381 atimer.h, blockinput.h.
6382
6383 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6384
78819ebb 6385 * alloca.s: Remove.
6dca786c 6386
3a06a6d9
RS
63872003-08-19 Gerd Moellmann <gerd@gnu.org>
6388
6389 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6390 use -lncurses.
6391
6392 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6393 FreeBSD returns something longer than 2044. Abort if the end of
6394 the buffer is overwritten.
6395
27eeee55
MB
63962003-08-19 Miles Bader <miles@gnu.org>
6397
6398 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6399
2f297815
GM
64002003-08-19 Gerd Moellmann <gerd@gnu.org>
6401
f4446bbf
GM
6402 * alloc.c (lisp_align_malloc): Check for memory full when
6403 allocating ablocks, which also avoids freeing a pointer into an
6404 ablocks structure.
6405
6406 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6407
0930c1a1 6408 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6409
0e7d7aae
RS
64102003-08-16 Richard M. Stallman <rms@gnu.org>
6411
6412 * editfns.c (Fencode_time): Doc fix.
6413
64142003-08-16 David Ponce <david@dponce.com>
6415
6416 * fileio.c (Fwrite_region): Fix conditional expression to issue
6417 the right message.
6418
b6189c3b 64192003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6420
6421 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6422 Set default value to 1.
0e7d7aae 6423
5d551295
KH
64242003-08-15 Kenichi Handa <handa@m17n.org>
6425
6426 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6427 what autoscaled.
6428 (best_matching_font): Once we find a better scalable font, set
6429 non_scalable_has_exact_height_p to 1.
6430 (try_font_list): Call try_alternative_families to try any family
6431 with the given registry.
6432
1661e56b
AS
64332003-08-09 Andreas Schwab <schwab@suse.de>
6434
f29181dc
AS
6435 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6436
1661e56b
AS
6437 * print.c (print_string): Fix printing of multibyte string with
6438 nontrivial printcharfun.
6439
465aa50a
JD
64402003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6441
6442 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6443
6444 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6445
e430e5ba
KH
64462003-07-31 Kenichi Handa <handa@m17n.org>
6447
6448 * process.c (read_process_output): Return the actually read bytes
6449 instead of the result of decoding.
6450
97e7188e
KH
64512003-07-31 Kenichi Handa <handa@m17n.org>
6452
6453 * xterm.h (struct x_bitmap_record): New member have_mask.
6454
6455 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6456 to 0.
6457 (x_create_bitmap_from_file): Likewise.
6458 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6459 (x_destroy_all_bitmaps): Likewise.
6460 (x_create_bitmap_mask): Set have_mask member to 1.
6461
b53094d6
RS
64622003-07-30 Richard M. Stallman <rms@gnu.org>
6463
6464 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6465
631f2082
JD
64662003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6467
6468 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6469
c855f2ca
RS
64702003-07-29 Richard M. Stallman <rms@gnu.org>
6471
6472 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6473 Conditionalize XIM code on HAVE_XIM.
6474
6475 * fns.c (Fclear_string): New function.
6476 (syms_of_fns): defsubr it.
6477
b6189c3b 64782003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6479
0930c1a1 6480 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6481
29ea8ae9
SM
64822003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6483
6484 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6485
6486 * buffer.c (delete_all_overlays): New function.
6487 * buffer.h (delete_all_overlays): Declare.
6488 * coding.c (run_pre_post_conversion_on_str):
6489 * print.c (temp_output_buffer_setup):
6490 * fileio.c (Finsert_file_contents):
6491 * minibuf.c (get_minibuffer): Use it.
6492
1dd7ccf2
AC
64932003-07-22 Andrew Choi <akochoi@shaw.ca>
6494
6495 * unexmacosx.c (unexec_regions_sort_compare):
6496 (unexec_regions_merge): New functions. Sort and merge unexec
6497 regions before dumping them.
6498
f57bd967
DL
64992003-07-22 Dave Love <fx@gnu.org>
6500
6501 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6502
7cdee936
SM
65032003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6504
6505 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6506 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6507 MARKBIT as the gcmarkbit for strings.
6508
e50886d3
RS
65092003-07-21 Richard M. Stallman <rms@gnu.org>
6510
6511 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6512
29ea8ae9 6513 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6514 (syms_of_fns): Corresponding change.
6515
6516 * alloc.c (syms_of_alloc): Doc fixes.
6517
65182003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6519
6520 * s/netbsd.h: Use -Wl syntax.
6521
fdc39b59
RS
65222003-07-17 Richard M. Stallman <rms@gnu.org>
6523
6524 * xterm.c (xim_initialize): Redo 6/24 change.
6525
9c53385f
SM
65262003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6527
6528 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6529 (Fswitch_to_buffer): Don't signal an error when switching to the same
6530 buffer in a dedicated window.
6531
6532 * alloc.c: Use bitmaps for cons, as was done for floats.
6533 (init_float, init_cons): Let the normal code allocate the first block.
6534 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6535 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6536 New macros.
6537 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6538 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6539 (live_cons_p): Check the pointer is not past the `conses' array.
6540 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6541 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6542 (survives_gc_p): Use CONS_MARKED_P and simplify.
6543 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6544
dde13196
PE
65452003-07-13 Paul Eggert <eggert@twinsun.com>
6546
6547 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6548 puts it into BSS instead, at least on Solaris 8 and 9.
6549 This is a valid optimization, and it may occur on other platforms,
6550 so Emacs should not assume that initializing a static variable to
6551 zero puts it into data.
6552 * alloc.c (pure, staticvec):
6553 Initialize these arrays to nonzero, so that they're not
6554 put into BSS by that optimization.
6555
a801bc34
SM
65562003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6557
6558 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6559 (lisp_align_malloc): Use posix_memalign is available.
6560 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6561 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6562 for consistency. Update users.
6563
0c8b2afa
RS
65642003-07-13 Richard M. Stallman <rms@gnu.org>
6565
6566 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6567
668c2ab0
JB
65682003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6569
6570 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6571 and use the Gtk+ function gtk_window_icon_from_file if available.
6572
6573 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6574 handle mask of bitmaps.
6575 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6576 mask property.
6577 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6578
6579 * xterm.h (xg_set_icon): New function.
6580
800bebe3
RS
65812003-07-12 Paul Eggert <eggert@twinsun.com>
6582
6583 * unexelf.c (unexec): Consider a section to precede the .bss
6584 section if its addresses overlap that of .bss.
6585
69e38995
RS
65862003-07-12 Richard M. Stallman <rms@gnu.org>
6587
6588 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6589
6590 * config.in (HAVE_CRTIN): Add #undef.
6591 (INLINE): Really inline only if OPTIMIZE is defined.
6592
6593 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6594 END_FILES_1.
6595 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6596 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6597
6598 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6599 (TERMINFO): Define.
6600 (LIBS_TERMCAP): Define.
6601 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6602
6603 * xfns.c: Include libpng/png.h instead of png.h.
6604
f1d0c238
AS
66052003-07-11 Andreas Schwab <schwab@suse.de>
6606
6607 * buffer.c (modify_overlay): Update prototype.
6608 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6609 Likewise.
6610
5f6bf5fe
SM
66112003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6612
6613 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6614 (struct interval): Move to intervals.h.
6615 (struct Lisp_Marker): Use EMACS_INT for position info.
6616 (forward_point): Remove prototype of defunct function.
6617 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6618 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6619 (syms_of_textprop, set_text_properties): Remove prototypes that are
6620 already in intervals.h.
6621
6622 * intervals.h (struct interval): Move from lisp.h.
6623 Use EMACS_INT for position and size info.
6624
6625 * coding.c: Include intervals.h for Fset_text_properties.
6626
6627 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6628 position and length information.
6629
2765b457
SM
66302003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6631
6632 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6633 position and length information.
6634
2410d73a
SM
66352003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6636
6637 Change overlays_after and overlays_before so the overlays themselves
6638 are linked into lists, rather than using cons cells. After all each
6639 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6640 Lisp_Overlay for free and save up one cons cell per overlay (not
6641 to mention one indirection when traversing the list of overlay).
6642
6643 * lisp.h (struct Lisp_Overlay): New field `next'.
6644
6645 * buffer.h (struct buffer): Change overlays_before and overlays_after
6646 from Lisp lists of overlays to pointers to overlays.
6647
6648 * buffer.c (overlay_strings, recenter_overlay_lists):
6649 Fix typo in eassert in last commit.
6650 (unchain_overlay): New function.
6651 (add_overlay_mod_hooklist): Use AREF.
6652 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6653 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6654 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6655 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6656 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6657 Adjust to new type of overlays_(before|after).
6658
6659 * alloc.c (mark_object): Mark the new `next' field of overlays.
6660 (mark_buffer): Manually mark the overlays_(after|before) fields.
6661
6662 * coding.c (run_pre_post_conversion_on_str):
6663 * editfns.c (overlays_around):
6664 * xdisp.c (load_overlay_strings):
6665 * fileio.c (Finsert_file_contents):
6666 * indent.c (current_column):
6667 * insdel.c (signal_before_change, signal_after_change):
6668 * intervals.c (set_point_both):
6669 * print.c (temp_output_buffer_setup): Use new type for
6670 overlays_(before|after).
6671
04812929
SM
66722003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6673
6674 * buffer.c (report_overlay_modification): Don't run hooks while
6675 traversing the list of overlays.
6676
6677 * buffer.h (struct buffer): Use an int for overlay_center.
6678 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6679 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6680
6681 * buffer.c (reset_buffer, recenter_overlay_lists)
6682 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6683 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6684 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6685 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6686 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6687
6688 * xdisp.c (fast_find_position): Remove unused var.
6689
6690 * cmds.c (Qexpand_abbrev): New sym.
6691 (syms_of_cmds): Initialize it.
6692 (internal_self_insert): Use it to call expand-abbrev.
6693
2e7ecf15
KS
66942003-07-09 Kim F. Storm <storm@cua.dk>
6695
f9711de4 6696 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6697 was configured with --without-xim.
42f81f64 6698 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6699
c6de56a0
RS
67002003-07-07 Richard M. Stallman <rms@gnu.org>
6701
6702 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6703
6704 * alloc.c (Fgarbage_collect): Doc fix.
6705
b6189c3b 67062003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6707
6708 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6709
bfe1a3f7
SM
67102003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6711
04812929
SM
6712 * minibuf.c (read_minibuf): UNGCPRO before returning.
6713 (Ftry_completion, Fall_completions): Doc fix.
6714
bfe1a3f7
SM
6715 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6716 now that `floats' is not the last element of the struct any more.
6717
ee79d1aa
JR
67182003-07-06 Jason Rumney <jasonr@gnu.org>
6719
6720 * w32term.h (ClipboardSequence_Proc): New type.
6721
6722 * w32fns.c (clipboard_sequence_fn): New variable.
6723 (globals_of_w32fns): Initialize it.
6724
6725 * w32select.c (last_clipboard_sequence_number): New variable.
6726 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6727 number if possible.
6728
49723c04
SM
67292003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6730
4698665f
SM
6731 * m/amdx86-64.h (MARKBIT):
6732 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6733 MARKBIT and ARRAY_MARK_FLAG any more.
6734
6735 * m/hp800.h (XSETMARKBIT):
6736 * m/sr2k.h (XSETMARKBIT):
6737 * lisp.h (XSETMARKBIT): Remove unused macro.
6738
49723c04
SM
6739 * lisp.h (mark_object): Change prototype.
6740
6741 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6742 (last_marked): Change accordingly.
6743 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6744 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6745 (mark_buffer): Update calls to mark_object.
6746
6747 * bytecode.c (mark_byte_stack):
6748 * fns.c (sweep_weak_table):
6749 * keyboard.c (mark_kboards): Update calls to mark_object.
6750
1d660eca
JR
67512003-07-06 Jason Rumney <jasonr@gnu.org>
6752
6753 * alloc.c (struct ablock): Only include padding when there is some.
6754
618b5ae4
SM
67552003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6756
6757 * alloc.c (ALIGN): Add casts to simplify usage.
6758 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6759 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6760 (struct ablock, struct ablocks): New types.
6761 (free_ablock): New global var.
6762 (lisp_align_malloc, lisp_align_free): New functions.
6763 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6764 (struct float_block): Reorder and add gcmarkbits.
6765 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6766 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6767 (init_float, make_float): Use lisp_align_malloc.
6768 (free_float, live_float_p): Don't use `type' any more.
6769 (make_float): Use FLOAT_UNMARK to access to mark bit.
6770 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6771 Use FLOAT_MARKED_P to access the mark bit.
6772 (pure_alloc): Simplify use of ALIGN.
6773 (mark_object): Use FLOAT_MARK to access the mark bit.
6774 (gc_sweep): Use new macros to access the float's mark bit.
6775 (init_alloc_once): Init free_ablock.
6776
6777 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6778
3ef06d12
SM
67792003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6780
6781 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6782 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6783 (allocate_buffer): Move.
6784 (string_bytes): Don't mask markbit of `size_byte'.
6785 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6786 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6787 Use the `size' field of buffers (rather than the `name' field) for
6788 the mark bit, as is done for all other vectorlike objects.
6789 Use the new macros to access the mark bit of vectorlike objects.
6790
e81043aa
RS
67912003-06-26 Richard M. Stallman <rms@gnu.org>
6792
6793 * puresize.h (BASE_PURESIZE): Increment base size.
6794
6795 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6796
6797 * xterm.c (xim_initialize): Undo previous change.
6798
2d0834cc
SM
67992003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6800
6801 * alloc.c (survives_gc_p): Simplify.
6802
6803 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6804
6805 * window.c (Fset_window_dedicated_p): Simplify.
6806 (display_buffer_1): Don't raise the win from which minibuf was entered.
6807 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6808 (Fminibuffer_selected_window): Simplify.
6809
6810 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6811
6812 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6813 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6814
6815 * insdel.c (check_markers, adjust_markers_for_delete)
6816 (adjust_markers_for_insert, adjust_markers_for_replace)
6817 (prepare_to_modify_buffer, RESTORE_VALUE):
6818 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6819 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6820 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6821 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6822 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6823 * editfns.c (save_excursion_restore, transpose_markers):
6824 * window.c (delete_window):
6825 * xdisp.c (message_dolog): Update for new types.
6826
d54ae3d8
JD
68272003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6828
a5f696ac
JD
6829 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6830 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6831 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6832
6833 * frame.c (make_frame): Initialize default_face_done_p.
6834
6835 * frame.h (struct frame): Add default_face_done_p.
6836
d54ae3d8
JD
6837 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6838 will be defined.
6839
2336fe58
SM
68402003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6841
6842 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6843 Initialize the new field `gcmarkbit'.
6844 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6845 (mark_interval_tree): Don't mark the tree separately from the nodes.
6846 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6847 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6848 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6849
6850 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6851 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6852 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6853 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6854 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6855
bcea31c2
DL
68562003-06-24 Dave Love <fx@gnu.org>
6857
6858 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6859
6860 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6861 from gnulib.
6862
2601f59e
RS
68632003-06-21 Richard M. Stallman <rms@gnu.org>
6864
6865 * fileio.c (Fwrite_region): Alternate messages
6866 for append and partial write.
6867
6868 * keyboard.c (read_key_sequence): When converting upcase fn key to
6869 downcase, update fkey and keytran so `backspace' gets translated.
6870
6871 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6872
6873 * process.c (wait_reading_process_input): Don't signal SIGIO
6874 in batch mode.
6875
b5d2c621
KH
68762003-06-17 Kenichi Handa <handa@m17n.org>
6877
6878 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6879 composite.h.
6880
6881 * xselect.c: Don't include charset.h, coding.h, composite.h.
6882 (Qforeign_selection): New variable.
6883 (syms_of_xselect): Intern and static it.
6884 (selection_data_to_lisp_data): Return a unibyte string made from
6885 data with `foreign-selection' text property.
6886
6793bc63
SM
68872003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6888
6889 * termhooks.h (EVENT_INIT): New macro.
6890
6891 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6892
6893 * alloc.c (mark_kboards): Move to keyboard.c.
6894
6895 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6896 * xterm.c (x_dispatch_event):
6897 * xmenu.c (find_and_call_menu_selection):
6898 * xdisp.c (handle_tool_bar_click):
6899 * w32menu.c (menubar_selection_callback):
6900 * sysdep.c (kbd_input_ast, read_input_waiting):
6901 * msdos.c (dos_rawgetc):
6902 * macterm.c (mac_check_for_quit_char):
6903 * macmenu.c (menubar_selection_callback):
6904 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6905 data to kbd_buffer_store_event.
6906
b3ea810c
KS
69072003-06-15 Kim F. Storm <storm@cua.dk>
6908
6909 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6910 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6911
b8f75eda
KG
69122003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6913
6914 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6915
ba92ce48
KH
69162003-06-12 Kenichi Handa <handa@m17n.org>
6917
6918 * fileio.c (Fwrite_region): Save and restore restriction.
6919
b80263be
DL
69202003-06-12 Dave Love <fx@gnu.org>
6921
6922 * alloca.c (alloca): Declare arg as size_t.
6923
6793bc63
SM
6924 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6925 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 6926
b23c0a83
DL
69272003-06-11 Dave Love <fx@gnu.org>
6928
6929 * search.c (shrink_regexp_cache): Use xrealloc.
6930 (syms_of_search): Use xmalloc.
6931
700e47c2
KS
69322003-06-10 Kim F. Storm <storm@cua.dk>
6933
6934 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6935 Adjust phys_cursor.x to be relative to window box, rather than
6936 text area before checking -- to ensure cursor is redrawn when
6937 exposing window.
6938 Note: This also fixes a similar (older) bug if display margins
6939 are present.
6940
f11aa0b2
KH
69412003-06-06 Kenichi Handa <handa@m17n.org>
6942
6943 * coding.c (encoding_buffer_size): If coding->type is
6944 coding_type_ccl, double magnification on CRLF encoding.
6945
3d143690
JR
69462003-06-06 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6949 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6950
6951 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6952 Mac too.
6953
f16205ca
DL
69542003-06-05 Dave Love <fx@gnu.org>
6955
b23c0a83
DL
6956 * strftime.c: Merge changes from gnulib.
6957
f16205ca
DL
6958 * mktime.c (__mktime_internal): Merge changes from gnulib
6959 involving year 69 and dst2.
6960
6961 Changes to merge with gnulib version and be consistent with the
6962 autoconf test:
6963
6793bc63
SM
6964 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6965 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
6966 [HAVE_LOCALE_H]: Include locale.h.
6967 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6968
9b87a0bc
KS
69692003-06-05 Kim F. Storm <storm@cua.dk>
6970
6971 * window.c (coordinates_in_window): Convert X and Y to window
6972 relative coordinates inside mode-line and header-line parts.
6973 Convert X and Y to margin area relative coordinates inside left
6974 and right display margin parts.
6975
5a8a15ec
JR
69762003-06-05 Jason Rumney <jasonr@gnu.org>
6977
6978 * w32fns.c (add_system_logical_colors_to_map): New function.
6979 (Fx_open_connection): Use it.
6980
01ed8ff1
SM
69812003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6982
6983 * process.c (allocate_pty): Revert part of the previous patch.
6984 (Faccept_process_output): Simplify.
6985
b427b65d
JR
69862003-06-04 Jason Rumney <jasonr@gnu.org>
6987
6988 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6989
6990 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6991 (lispy_mouse_wheel_names): Remove.
6992 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6993 Always define drag_and_drop_syms.
6994
6995 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6996 WHEEL_EVENT events.
6997
914a8c47
SM
69982003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6999
01ed8ff1
SM
7000 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7001
914a8c47
SM
7002 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7003
adcb132c
JD
70042003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7005
7006 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7007 menu item label.
7008
be781fa7
RS
70092003-06-03 Richard M. Stallman <rms@gnu.org>
7010
7011 * window.c (Fwindow_edges): Doc fix.
7012 (Fwindow_pixel_edges, Fwindow_inside_edges)
7013 (Fwindow_inside_pixel_edges): New functions.
7014 (syms_of_window): defsubr them.
7015
7016 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7017 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7018
914a8c47
SM
70192003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7020
7021 * dispnew.c (Fsit_for): Don't lie about the number of args.
7022
5b07197a
DL
70232003-06-02 Dave Love <fx@gnu.org>
7024
7025 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7026 (syms_of_callproc) <process-environment>: Doc fix.
7027
7028 * doc.c: Use HAVE_FCNTL_H, not USG5.
7029
7030 * xfaces.c (font_rescale_ratio): Fix for K&R.
7031
7032 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7033
7034 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7035
7036 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7037
7038 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7039 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7040
d7107586 7041 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7042
7043 * xmenu.c (ENCODE_MENU_STRING): New.
7044 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7045 Use it.
7046
7047 * coding.h (ENCODE_UTF_8): New.
7048 (Qutf_8): Declare.
7049
7050 * coding.c (Qutf_8): New.
7051 (syms_of_coding): Intern it.
7052
7053 * fns.c: Doc fixes.
7054
7335b336
KH
70552003-06-02 Kenichi Handa <handa@m17n.org>
7056
7057 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7058
914a8c47
SM
70592003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7060
7061 * lread.c (openp): Make sure STR is a string.
7062
9862c135
JR
70632003-06-01 David Ponce <david@dponce.com>
7064
cab27d04 7065 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7066 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7067
7068 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7069 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7070 (discard_mouse_events): Discard WHEEL_EVENT events too.
7071 (lispy_wheel_names, wheel_syms): New.
7072 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7073 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7074 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7075
7076 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7077 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7078 WHEEL_EVENT events.
7079
f984e73e
JPW
70802003-05-31 John Paul Wallington <jpw@gnu.org>
7081
7082 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7083 timer are in lisp/emacs-lisp.
7084
1efcd78f
KH
70852003-05-31 Kenichi Handa <handa@m17n.org>
7086
458c8af4
KH
7087 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7088 region when a buffer is changed to unibyte.
7089
1efcd78f
KH
7090 * charset.h (VALID_LEADING_CODE_P): New macro.
7091 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7092
778e2804
KH
7093 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7094 is nonzero, accept multibyte form of eight-bit-control chars.
7095 (decode_composition_emacs_mule): Likewise.
7096 (decode_coding_emacs_mule): Likewise.
7097 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7098 multibyte form of eight-bit-control chars.
7099
7100 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7101 (Finsert_file_contents): If coding-system-for-read is bound to
7102 Qauto_save_coding, use the coding system emacs-mule with special
7103 setting for recovering a file.
7104 (choose_write_coding_system): On auto saving, use the coding
7105 system emacs-mule with special setting for auto saving.
7106 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7107
034060e4
KH
71082003-05-30 Kenichi Handa <handa@m17n.org>
7109
7110 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7111 properly before calling ccl_driver.
7112
778e2804 7113 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7114
cab27d04 7115 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7116 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7117 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7118
595f5aa5
GM
71192003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7120
7121 * xfaces.c (realize_default_face): Do not abort if lface is
7122 non-existent - reverts change from 2003-05-19.
7123
103e0180
KH
71242003-05-29 Kenichi Handa <handa@m17n.org>
7125
7126 * coding.c (decode_coding_iso2022): Pay attention to the byte
7127 sequence of CTEXT extended segment, and retain those bytes as is.
7128
71292003-05-28 Kenichi Handa <handa@m17n.org>
7130
cab27d04 7131 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7132 of CODING_REPLACEMENT_CHARACTER.
7133 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7134 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7135 check this flag on encoding.
cab27d04
SM
7136 (encode_coding_sjis_big5):
7137 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7138 (Fset_terminal_coding_system_internal):
7139 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7140 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7141
7142 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7143 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7144 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7145
ff6a3bfb 71462003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7147
ff6a3bfb
RS
7148 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7149
7150 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7151
1963c428
KS
71522003-05-28 Kim F. Storm <storm@cua.dk>
7153
7154 * xdisp.c (expose_window): Fix error in calculation of
7155 window relative coordinates of area to redisplay.
7156
2b5d4601
JR
71572003-05-27 Jason Rumney <jasonr@gnu.org>
7158
7159 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7160
1c64a4a2
JB
71612003-05-27 David Ponce <david@dponce.com>
7162
7163 Handle W32 mouse wheel events as mouse click events, like in X.
7164
7165 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7166 MOUSE_WHEEL_EVENT anymore.
7167
7168 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7169 Scrolling down/up the mouse wheel is respectively mapped to mouse
7170 button 4 and 5.
7171 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7172 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7173 WM_MOUSEWHEEL events.
7174
2d031b89
AS
71752003-05-27 Andreas Schwab <schwab@suse.de>
7176
20464fdf
AS
7177 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7178
2d031b89
AS
7179 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7180 partially visible line.
7181
7182 * alloc.c (Fgarbage_collect): Fix last change.
7183
97bc76d4
JPW
71842003-05-26 John Paul Wallington <jpw@gnu.org>
7185
7186 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7187
56613f06
SM
71882003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7189
7190 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7191 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7192
7193 * window.h (window_box_text_cols): Declare.
7194
7195 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7196 (x_draw_vertical_border): Remove unused var `f'.
7197
7198 * xfaces.c (build_scalable_font_name): Remove `unused var
7199 pixel_size' warning.
7200
7201 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7202
7203 * unexelf.c (unexec): Remove `unused var n' warning.
7204
7205 * strftime.c (my_strftime_localtime_r): Remove `defined but
7206 unused' warning.
7207
7208 * process.c (allocate_pty): Remove `unused var stb' and
7209 `cp might be used uninitialized' warnings.
7210
7211 * dispnew.c (mode_line_string): Remove unused var `f'.
7212
7213 * coding.c (find_safe_codings): Remove unused var `i'.
7214
7215 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7216
7217 * buffer.c (Fkill_buffer): Remove unused var `list'.
7218
7219 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7220
93421a1f
JD
72212003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7222
7223 * frame.c (make_frame): Condition want_fullscreen with
7224 HAVE_WINDOW_SYSTEM.
7225
c4b8aebc
JB
72262003-05-25 Juanma Barranquero <lektu@terra.es>
7227
7228 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7229 (Fwindow_scroll_bars): Fix typo in docstring.
7230
0416870b
KS
72312003-05-24 Kim F. Storm <storm@cua.dk>
7232
7233 The following changes serve several purposes:
7234
7235 1) Swap the position of fringes and display margins in windows, i.e.
7236 the fringes are now displayed between the margins and the text area
7237 (by default).
7238
7239 2) Allow fringe and scroll bar parameters to be set per-buffer and
7240 per-window (like display margins). Such settings are now stored
7241 in window configurations, preserved when frames are resized, and
9018a88e 7242 copied when windows are split vertically or horizontally.
0416870b
KS
7243 Several bugs related to display margins have been fixed.
7244
7245 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7246
0416870b
KS
7247 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7248 rather than FRAME_WIDTH (FRAME_FONT (f)).
7249
7250 5) Introduce a consistent naming of variables, members and macros
7251 depending on whether their value is measured in pixels or in
7252 canonical columns/lines. Pixel dimensions are named *_width and
7253 *_height, while canonical columns/lines are named *_cols and
7254 *_lines. Pixel positions are named *_x and *_y, while column/line
7255 positions are named *_col and *_line.
7256
7257 6) Consolidate more of the X, W32, and MAC gui code by moving
7258 common data into struct frame, and generalize it for the non-gui
7259 case by using suitable defaults.
7260
7261 7) Cleanup and consolidate the macros controlling frame and window
7262 layout into frame.h and window.h, and generalize the use of the
7263 various window_box_* functions (enhanced to handle the new fringe
7264 position and the per-window fringe and scroll bar settings).
7265
7266 * frame.h (struct frame): Rename members height to text_lines,
7267 width to text_cols, window_height to total_lines, window_width to
7268 total_cols, new_height to new_text_lines, new_width to
7269 new_text_cols. All uses changed.
7270 (struct frame): New members which consolidate common members of
7271 x_output, w32_output, and mac_output structures: left_pos,
7272 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7273 win_gravity, size_hint_flags, border_width, internal_border_width,
7274 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7275 want_fullscreen. All uses changed.
7276 (struct frame): New member column_width contaning the canonical
7277 column width, analogue to line_height. All uses changed.
7278 (struct frame): Rename members scroll_bar_pixel_width to
7279 config_scroll_bar_width, and scroll_bar_cols to
7280 config_scroll_bar_cols. All uses changed.
7281 (struct frame): New member scroll_bar_actual_width which
7282 consolidates and renames the vertical_scroll_bar_extra member of
7283 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7284 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7285 from x/w32/macterm.h files. All uses changed. Also change code
7286 which referred to f->output_data...->pixel_height.
cab27d04 7287 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7288 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7289 which referred to f->output_data...->pixel_width.
cab27d04 7290 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7291 Also change code which referred to f->height.
cab27d04 7292 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7293 Also change code which referred to f->width.
7294 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7295 to update new_text_lines and new_text_cols members directly.
cab27d04 7296 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7297 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7298 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7299 FRAME_SCROLL_BAR_COLS. All uses changed.
7300 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7301 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7302 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7303 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7304 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7305 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7306 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7307 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7308 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7309 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7310 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7311 Unconditionally return line_height member (it now has proper value
7312 also for non-window frames).
7313 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7314 return new column_width member (rather than the default font width).
7315 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7316 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7317 from x/w32/macterm.h files. Unconditionally return corresponding
7318 member of frame structure (they now have proper values also for
7319 non-window frames).
cab27d04 7320 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7321 Calculate return value from left and right widths.
7322 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7323 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7324 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7325 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7326 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7327 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7328 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7329 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7330 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7331 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7332 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7333 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7334 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7335 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7336 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7337 consolidated from x/mac/w32term.h.
cab27d04 7338 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7339 consolidated from x/mac/w32term.h.
cab27d04 7340 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7341 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7342 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7343 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7344
7345 * window.h (struct window): Rename members left to left_col,
7346 top to top_line, height to total_lines, width to total_cols,
7347 left_margin_width to left_margin_cols, right_margin_width to
7348 right_margin_cols, orig_height to orig_total_lines, orig_top to
7349 orig_top_line. All uses changed.
7350 (struct window): New members left_fringe_width, right_fringe_width,
7351 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7352 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7353 New macros primarily used to simplify other macros.
7354 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7355 referred to XINT (w->width).
7356 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7357 referred to XINT (w->height).
7358 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7359 referred to XINT (w->width) * canon_x_unit.
7360 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7361 referred to XINT (w->height) * canon_y_unit.
7362 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7363 referred to XINT (w->left).
cab27d04 7364 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7365 all uses and code that referred to XINT (w->left) + XINT (w->width).
7366 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7367 referred to XINT (w->top).
7368 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7369 referred to XINT (w->top) + XINT (w->height).
7370 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7371 referred to XINT (w->left) * canon_x_unit.
7372 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7373 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7374 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7375 referred to XINT (w->top) * canon_y_unit.
7376 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7377 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7378 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7379 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7380 All uses changed.
cab27d04 7381 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7382 All uses changed.
cab27d04 7383 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7384 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7385 Do not exclude left fringe width.
cab27d04 7386 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7387 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7388 Do not exclude fringe widths.
7389 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7390 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7391 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7392 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7393 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7394 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7395 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7396 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7397 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7398 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7399 New macros. Change code which referenced corresponding
7400 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7401 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7402 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7403 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7404 allow per-window scroll-bar settings.
7405 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7406 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7407 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7408 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7409 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7410 FRAME_SCROLL_BAR_WIDTH.
7411 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7412 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7413 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7414 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7415 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7416 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7417 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7418 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7419 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7420 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7421 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7422 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7423 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7424 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7425 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7426 (window_from_coordinates): Update prototype.
7427 (Fset_window_buffer): Update EXFUN.
7428 (set_window_buffer): Update prototype.
9018a88e 7429
0416870b 7430 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7431 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7432 changed.
7433 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7434 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7435 internal_border_width is now set to 0 for non-window frames.
7436 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7437 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7438 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7439 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7440 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7441 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7442 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7443 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7444 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7445 Move to window.h and renamed [see window.h changes].
0416870b
KS
7446 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7447 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7448 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7449 Use WINDOW_TOTAL_LINES.
0416870b
KS
7450 (frame_update_line_height): Remove prototype.
7451
7452 * buffer.h (struct buffer): Rename members measured in columns:
7453 left_margin_width to left_margin_cols, right_margin_width to
7454 right_margin_cols. All uses changed.
7455 New members left_fringe_width, right_fringe_width,
7456 fringes_outside_margins for per-buffer fringe settings.
7457 New members scroll_bar_width and vertical_scroll_bar_type for
7458 per-buffer scroll bar settings.
7459
7460 * buffer.c (init_buffer_once): Set buffer_defaults and
7461 buffer_local_flags for new buffer-local variables
7462 left_fringe_width, right_fringe_width, fringes_outside_margins,
7463 scroll_bar_width, and vertical_scroll_bar_type.
7464 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7465 default-* variables for them.
7466
7467 * dispnew.c: Make (many) trivial substitutions for renamed and
7468 new macros in dispextern.h, frame.h and window.h.
7469 (mode_line_string): No need to adjust width for mode lines, as it
7470 is already adjusted by the caller.
7471 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7472
0416870b
KS
7473 * frame.c: Make (many) trivial substitutions for renamed and
7474 new macros in dispextern.h, frame.h and window.h.
7475 (make_frame): Initialize left_fringe_width, right_fringe_width,
7476 fringe_cols, scroll_bar_actual_width, border_width,
7477 internal_border_width, column_width, line_height, x_pixels_diff,
7478 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7479 members with values suitable for a non-window frames.
7480
7481 * gtkutil.c: Make (many) trivial substitutions for renamed and
7482 new macros in dispextern.h, frame.h and window.h.
9018a88e 7483
0416870b
KS
7484 * indent.c: Make (few) trivial substitutions for renamed and
7485 new macros in dispextern.h, frame.h and window.h.
7486
7487 * keyboard.c: Make (many) trivial substitutions for renamed and
7488 new macros in dispextern.h, frame.h and window.h.
7489 (make_lispy_event): Use window positions returned from
7490 window_from_coordinates when constructing the lisp event for
7491 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7492 (incorrect) values locally.
7493 (make_lispy_movement): Use window positions returned from
7494 window_from_coordinates when constructing the lisp event, rather
7495 than calculating (incorrect) values locally.
7496
7497 * scroll.c: Make (some) trivial substitutions for renamed and
7498 new macros in dispextern.h, frame.h and window.h.
7499
7500 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7501 scroll-bars.
7502
7503 * sysdep.c: Make (few) trivial substitutions for renamed and
7504 new macros in dispextern.h, frame.h and window.h.
7505
7506 * term.c: Make (some) trivial substitutions for renamed and
7507 new macros in dispextern.h, frame.h and window.h.
7508
7509 * widget.c: Make (few) trivial substitutions for renamed and
7510 new macros in dispextern.h, frame.h and window.h.
7511
7512 * window.c: Make (many) trivial substitutions for renamed and
7513 new macros in dispextern.h, frame.h and window.h.
7514 (make_window): Initialize new members
7515 left_margin_cols, right_margin_cols, left_fringe_width,
7516 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7517 and vertical_scroll_bar_type.
cab27d04 7518 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7519 and per-window fringes and scroll-bars.
0416870b 7520 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7521 frame's internal_border_width (the effect normally negible since
0416870b
KS
7522 the internal_border_width is typically 0 or 1 pixel, but very
7523 noticeable for an internal_border_width of e.g. 25 pixels).
7524 Upon successful return (other than ON_NOTHING), the coordinates
7525 are now always properly converted to window relative for the
7526 given display element.
7527 (window_from_coordinates): Add new parameters wx and wy to
7528 return the window relative x and y position in the returned
7529 window and part. A null arg means, don't return the position.
7530 All callers changed.
7531 (adjust_window_margins): New function which may reduce the width
7532 of the display margins if a window's text area is too small after
7533 resizing or splitting windows.
7534 (size_window): Fix bug that did not account for display margin
7535 widths when checking the minimum width of a window; use
7536 adjust_window_margins.
7537 (set_window_buffer): Call Fset_window_fringes and
7538 Fset_window_scroll_bars to setup per-window elements.
7539 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7540 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7541 (e.g. after splitting a window or resizing the frame).
7542 All callers changed.
0416870b
KS
7543 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7544 (Fsplit_window): Duplicate original window's display margin,
7545 fringe, and scroll-bar settings; then call Fset_window_buffer with
7546 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7547 window to only preserve the display margins in one of the windows.
c4b8aebc 7548 When splitting horizontally, call adjust_window_margins on both
0416870b 7549 windows to ensure that the text area of the new windows is non too
f9711de4 7550 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7551 width of the split window was less than the width of the display
7552 margins.
cab27d04 7553 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7554 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7555 Fix bug that caused vertical separator to be subtracted also on
7556 window frames. Fix another bug that did not reduce the returned
7557 value by the columns used for display margins.
7558 (window_scroll_line_based): Fix bug related to scrolling too much
7559 when display margins are present (implicitly fixed by the fix to
7560 window_box_text_cols).
7561 (scroll_left, scroll_right): Fix bug related to scrolling too far
7562 by default when display margins are present (implicitly fixed by
7563 the fix to window_box_text_cols).
7564 (struct saved_window): Rename members left to left_col, top to
7565 top_line, width to total_cols, height to total_lines, orig_top to
7566 orig_top_line, orig_height to orig_total_lines. All uses changed.
7567 New members left_margin_cols, right_margin_cols,
7568 left_fringe_width, right_fringe_width, fringes_outside_margins,
7569 scroll_bar_width, and vertical_scroll_bar_type for saving
7570 per-window display elements.
7571 (Fset_window_configuration): Restore display margins, fringes,
7572 and scroll bar settings. This fixes a bug which caused display
7573 margins to be discarded when saving and restoring a window
7574 configuration.
7575 (save_window_save): Save display margins, fringes, and scroll bar
7576 settings. This fixes a bug which caused display margins to be
7577 discarded when saving and restoring a window configuration.
7578 (Fset_window_margins): Do nothing if display margins are not
7579 really changed. Otherwise, call adjust_window_margins to ensure
7580 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7581 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7582 the width of the window.
7583 (Fset_window_fringes): New defun to allow user to specifically set
7584 this window's fringe widths and position vs. display margins.
cab27d04 7585 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7586 (Fset_window_scroll_bars): New defun to allow user to specifically
7587 set this window's scroll bar width and position.
7588 (Fwindow_scroll_bars): New defun to return window's actual scroll
7589 bar settings.
7590 (compare_window_configurations): Also compare display margins,
7591 fringes, and scroll bar settings.
7592 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7593
7594 * xdisp.c: Make (many) trivial substitutions for renamed and
7595 new macros in dispextern.h, frame.h and window.h.
7596 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7597 and new fringe vs. display margin position. Note that returned
0416870b
KS
7598 value is no longer guaranteed to be a whole multiple of the frame
7599 column width, since per-window fringes may now be any width.
7600 (window_box_left_offset): New function like window_box_left, but
7601 value is relative to left border of window (rather than frame).
7602 (window_box_right_offset): New function like window_box_right,
7603 but value is relative to left border of window.
7604 (window_box_left): Adapt to per-window fringes and scroll bars,
7605 and new fringe vs. display margin position. Simplify by using
7606 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7607 (window_box): Allow null args for unnecessary return values;
7608 change/simplify relevant callers.
7609 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7610 and new fringe vs. display margin position.
7611 Use window_box_left_offset and window_box_right_offset
0416870b 7612 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7613 scroll bars, and new fringe vs. display margin position.
7614 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7615 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7616 fringe vs. display margin position.
7617 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7618 (redisplay_window): Adapt to per-window scroll bars.
7619 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7620 bars, and new fringe vs. display margin position.
7621 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7622 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7623 bars, and new fringe vs. display margin position. Fix bug which
7624 increased total width of full_width rows by width of scroll bars
7625 although window's total width already includes that.
7626 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7627 (expose_area): Simplify using window_box_left_offset.
7628 (x_draw_vertical_border): Handle per-window scroll bar settings,
7629 mixing windows with left, right and no scroll bars.
7630
7631 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7632 where it's used in x_list_fonts (for clarity).
7633 (frame_update_line_height): Remove unused function; functionality
7634 is now done directly when setting the default font in x_set_font.
7635
7636 * xfns.c: Make (many) trivial substitutions for renamed and
7637 new macros in dispextern.h, frame.h and window.h.
7638
7639 * xmenu.c: Make (some) trivial substitutions for renamed and
7640 new macros in dispextern.h, frame.h and window.h.
7641
7642 * xterm.h (struct x_output): Move members left_pos, top_pos,
7643 border_width, pixel_height, pixel_width, line_height,
7644 internal_border_width, vertical_scroll_bar_extra,
7645 left_fringe_width, right_fringe_width, fringe_cols,
7646 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7647 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7648 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7649 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7650 (PIXEL_WIDTH, PIXEL_HEIGHT)
7651 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7652 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7653 frame.h and renamed [see frame.h changes].
7654 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7655 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7656 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7657 and renamed [see frame.h changes].
9018a88e 7658
0416870b
KS
7659 * xterm.c: Make (several) trivial substitutions for renamed and
7660 new macros in dispextern.h, frame.h and window.h.
cab27d04 7661 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7662 (scroll_run): Adapt to new fringe position.
7663 (glyph_rect): Use window coordinates returned from
7664 window_from_coordinates rather than frame_to_window_pixel_xy.
7665 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7666 scroll-bars.
7667 (handle_one_xevent): Simplify a USE_GTK conditional.
7668 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7669 (fringes are now inside margins, i.e. always in the clipping area).
7670 All callers changed.
7671 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7672 directly, then call compute_fringe_widths. Don't call
7673 frame_update_line_height.
7674
7675 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7676 border_width, pixel_height, pixel_width, line_height,
7677 internal_border_width, vertical_scroll_bar_extra,
7678 left_fringe_width, right_fringe_width, fringe_cols,
7679 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7680 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7681 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7682 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7683 (PIXEL_WIDTH, PIXEL_HEIGHT)
7684 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7685 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7686 frame.h and renamed [see frame.h changes].
7687 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7688 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7689 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7690 and renamed [see frame.h changes].
9018a88e 7691
0416870b
KS
7692 * w32term.c: Make (several) trivial substitutions for renamed and
7693 new macros in dispextern.h, frame.h and window.h.
cab27d04 7694 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7695 (glyph_rect): Use window coordinates returned from
7696 window_from_coordinates rather than frame_to_window_pixel_xy.
7697 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7698 scroll-bars.
7699 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7700 (fringes are now inside margins, i.e. always in the clipping area).
7701 All callers changed.
7702 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7703 directly, then call compute_fringe_widths. Don't call
7704 frame_update_line_height.
7705
7706 * w32console.c: Make (few) trivial substitutions for renamed and
7707 new macros in dispextern.h, frame.h and window.h.
7708
7709 * w32fns.c: Make (many) trivial substitutions for renamed and
7710 new macros in dispextern.h, frame.h and window.h.
7711
7712 * w32menu.c: Make (few) trivial substitutions for renamed and
7713 new macros in dispextern.h, frame.h and window.h.
7714
7715 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7716 border_width, pixel_height, pixel_width, line_height,
7717 internal_border_width, vertical_scroll_bar_extra,
7718 left_fringe_width, right_fringe_width, fringe_cols,
7719 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7720 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7721 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7722 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7723 (PIXEL_WIDTH, PIXEL_HEIGHT)
7724 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7725 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7726 frame.h and renamed [see frame.h changes].
7727 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7728 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7729 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7730 and renamed [see frame.h changes].
9018a88e 7731
0416870b
KS
7732 * macterm.c: Make (several) trivial substitutions for renamed and
7733 new macros in dispextern.h, frame.h and window.h.
cab27d04 7734 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7735 (glyph_rect): Use window coordinates returned from
7736 window_from_coordinates rather than frame_to_window_pixel_xy.
7737 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7738 scroll-bars.
7739 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7740 (fringes are now inside margins, i.e. always in the clipping area).
7741 All callers changed.
7742 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7743 directly, then call compute_fringe_widths. Don't call
7744 frame_update_line_height.
7745
7746 * macfns.c: Make (several) trivial substitutions for renamed and
7747 new macros in dispextern.h, frame.h and window.h.
9018a88e 7748 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7749
7750 * macmenu.c: Make (few) trivial substitutions for renamed and
7751 new macros in dispextern.h, frame.h and window.h.
7752
7753 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7754 and line_height, and use corresponding new members in struct
7755 frame. All uses changed.
7756 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7757 superseeded by corresponding macros in frame.h.
7758
7759 * msdos.c: Make (several) trivial substitutions for renamed and
7760 new macros in dispextern.h, frame.h and window.h.
7761 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7762 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7763 (internal_terminal_init): No need to initialize line_height here;
7764 it now defaults to 1.
7765
9018a88e
SM
77662003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7767
7768 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7769 dropping `down' events.
7770
016bd3c0
AS
77712003-05-24 Andreas Schwab <schwab@suse.de>
7772
7773 * coding.c (find_safe_codings): Fix last change.
7774
4dacadcc
TTN
77752003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7776
7777 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7778
319830ce
SM
77792003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7780
9018a88e
SM
7781 * xdisp.c (display_mode_element): Increase max depth.
7782 Simplify the error handling code. Use a different error string
7783 for the case where we hit the depth limit.
7784
319830ce
SM
7785 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7786
7787 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7788
77892003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7790
7791 * intervals.c (get_local_map): Don't get char-property of previous
7792 point any more: get_pos_property already does it and better.
7793
c67de8ba
DL
77942003-05-21 Dave Love <fx@gnu.org>
7795
7796 [Merged from unicode branch.]
7797
7798 * xfns.c (x_window, x_window): Use use_xim.
7799
7800 * xterm.c (use_xim): Initialize.
7801 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7802 (x_term_init): Maybe set use_xim.
7803
7804 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7805
edd3ff1d
JR
78062003-05-21 Jason Rumney <jasonr@gnu.org>
7807
7808 * unexw32.c (_start): Remove _fmode initialization.
7809
7810 * emacs.c (main) [WINDOWSNT]: Move it here.
7811
463f55ee
DL
78122003-05-20 Dave Love <fx@gnu.org>
7813
7814 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7815
af253914
RS
78162003-05-19 Richard M. Stallman <rms@gnu.org>
7817
7818 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7819 as value for QCfont attribute.
7820 (realize_default_face): lface should already exist; crash if not.
7821 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7822
7823 * frame.c (Fignore_event): Doc fix.
7824
1d211019
KH
78252003-05-19 Kenichi Handa <handa@m17n.org>
7826
7827 * coding.c (decode_coding_string): Handle post-read-conversion
7828 even if the coding doesn't require decoding.
7829
4dd68254
RS
78302003-05-18 Richard M. Stallman <rms@gnu.org>
7831
7832 * callproc.c (Fcall_process_region): Doc fix.
7833
14d87dc9
SM
78342003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7835
deca5d96
SM
7836 * lread.c (Fload): Print a message if package is obsolete.
7837
14d87dc9
SM
7838 * window.c (Fselect_window): Add optional `norecord' arg.
7839 (select_window_1): Fold into Fselect_window.
7840 (select_window_norecord): New function.
7841 (temp_output_buffer_show): Use it. Preserve current buffer.
7842
7843 * window.h (Fselect_window): Update declaration.
7844
7845 * window.c (delete_window, Fother_window, Fset_window_configuration):
7846 * minibuf.c (read_minibuf):
7847 * macterm.c (x_new_focus_frame):
7848 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7849 * callint.c (Fcall_interactively):
7850 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7851
7852 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7853
78f52183
DK
78542003-05-17 David Kastrup <dak@gnu.org>
7855
7856 * process.c (read_process_output): Back out change from 2003-03-09.
7857
14d87dc9
SM
78582003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7859
7860 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7861
7862 * textprop.c (text_property_stickiness): New arg `buffer'.
7863
7864 * intervals.h (text_property_stickiness): New arg `buffer'.
7865 (get_pos_property): Declare.
7866
7867 * intervals.c (get_local_map): Use get_pos_property, to obey
7868 stickiness and empty overlays.
7869 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7870 (merge_properties, intervals_equal, merge_properties_sticky):
7871 Use XCAR, XCDR.
7872 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7873
1fd1cc2f
RS
78742003-05-17 Richard M. Stallman <rms@gnu.org>
7875
4f9f637a
RS
7876 * minibuf.c (read_minibuf): If buffer is empty, record the default
7877 in the history.
7878 (Fminibuffer_complete_word): When deleting the overlap, take account
7879 of its real position.
7880
7881 * fns.c (map_char_table): Fix previous change.
7882
1fd1cc2f
RS
7883 * syntax.c (find_defun_start):
7884 When open_paren_in_column_0_is_defun_start,
7885 return beginning of buffer.
7886
7887 * lisp.h (map_char_table): Declare added arg.
7888
7889 * fns.c (map_char_table): New arg TABLE gets the master table.
7890 All calls changed.
7891 Process default and inheritance, resorting to Faref if necessary.
7892
7893 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7894 (Faccessible_keymaps): Pass new arg to map_char_table.
7895
7896 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7897
7898 * casetab.c (set_case_table): Pass new arg to map_char_table.
7899
7900 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7901
7902 * lisp.h (specbinding_func): New typedef.
7903 (struct specbinding): Use specbinding_func, to put the `volatile'
7904 in the right place.
7905
7906 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7907 to avoid GCC warning.
14d87dc9 7908
b6189c3b 79092003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7910
14d87dc9 7911 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7912
35fb885d
SM
79132003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7914
7915 * keyboard.c (apply_modifiers): Don't fill the other cache.
7916
9a274fbd
SM
79172003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7918
c55b5fad
SM
7919 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7920
9a274fbd
SM
7921 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7922 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7923 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7924 (Fset_window_configuration, Fcurrent_window_configuration)
7925 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7926 (Fpos_visible_in_window_p, mark_window_cursors_off)
7927 (window_internal_height, window_internal_width, Frecenter)
7928 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7929 (replace_buffer_in_all_windows, init_window_once, init_window)
7930 (syms_of_window, keys_of_window): Move from lisp.h.
7931 * lisp.h: Move window.c declarations to window.h.
7932
7933 * bytecode.c: Include window.h.
7934 * emacs.c: Include window.h.
7935
14d87dc9 7936 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7937 (keyremap): Add `parent' field.
7938 (keyremap_step): Use it. Remove `parent' argument.
7939 (read_key_sequence): Setup and use the new `parent' field.
7940
fd93e331
SM
79412003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7942
7943 * keyboard.c (adjust_point_for_property): Ensure termination.
7944
1c4001a1
SM
79452003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7946
7947 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7948 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7949 duplicated handling of function-key-map and key-translation-map
7950 in read_key_sequence.
7951 (read_key_sequence): Use them.
7952
7953 * keyboard.c (adjust_point_for_property): Try harder to move point
7954 to the non-sticky end of an invisible property.
7955
7956 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7957 property intangible as well.
7958
780379b1
AS
79592003-05-10 Andreas Schwab <schwab@suse.de>
7960
7961 * xmenu.c (single_menu_item): Change last parameter to void* to
7962 avoid warning.
7963
ca2de342
RS
79642003-05-09 Richard M. Stallman <rms@gnu.org>
7965
7966 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7967 Bind Qinhibit_modification_hooks to t so there will be no GC.
7968 Rename local `tem' to `save_deactivate_mark'.
7969
7970 * eval.c (specpdl_ptr): Declare volatile.
7971 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7972 before doing the work of unbinding it.
7973
7974 * lisp.h (struct specbinding): Declare elements volatile.
7975 (specpdl_ptr): Declare volatile.
7976
7977 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7978
7979 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7980 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7981
347003be
DL
79822003-05-08 Dave Love <fx@gnu.org>
7983
7984 * coding.c (Vlast_coding_system_used): Doc fix.
7985
5adcec23
JR
79862003-05-07 Jason Rumney <jasonr@gnu.org>
7987
7988 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7989 when system does not support them.
7990
5fe3b8a4
SM
79912003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7992
7993 * fileio.c (Qwrite_region_annotate_functions): New var.
7994 (build_annotations): Use it to process the global part of the hook.
7995 (syms_of_fileio): Init and staticpro it.
7996
7997 * keyboard.c (safe_run_hooks_error): Display a message instead of
7998 silently ignoring the error.
7999
80002003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8001
8002 * keyboard.c (input_available_signal): Mark static.
8003 (menu_bar_items): Use map_keymap.
8004 (menu_bar_one_keymap): Remove.
8005 (menu_bar_item): Adjust arglist (for use in map_keymap).
8006 Properly hide a second binding when not both are keymaps.
8007
8008 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8009 (single_keymap_panes): Use it and map_keymap.
8010 (single_menu_item): Use skp as well.
8011
8012 * keymap.h (map_keymap_function_t): New type.
8013 (map_keymap): Declare.
8014
8015 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8016 (map_keymap_call, Fmap_keymap): New functions.
8017 (syms_of_keymap): Defsubr map-keymap.
8018
4b1b4443
JD
80192003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8020
8021 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8022 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8023 ..._with_mnemonic functions for menu items.
8024
1f816871
KH
80252003-05-01 Kenichi Handa <handa@m17n.org>
8026
8027 * coding.c (coding_system_accept_latin_extra_p): Delete this
8028 function.
8029 (find_safe_codings): Pay attention to
8030 the property tranlsation-table-for-encode of each codings.
8031 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8032
5ed6ba5b
SM
80332003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8034
8035 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8036
32c06229
SM
80372003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8038
8039 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8040
8041 * lisp.h (CHECK): Wrap args in parenthesis.
8042 (specbind): Fix doc: symbol = Qnil is not supported any more.
8043
8044 * bytecode.c (Fbyte_code) <unwind-protect>:
8045 Use Fprogn rather than 0 and Qnil.
8046
8047 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8048 `double', and `triple' modifiers as well.
8049
ed3c3314
RS
80502003-04-30 Richard M. Stallman <rms@gnu.org>
8051
8052 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8053
8054 * alloc.c (abort_on_gc): New variable.
8055 (Fgarbage_collect): Abort if abort_on_gc is set.
8056
8057 * lisp.h (abort_on_gc): Add decl.
8058
8059 * eval.c (Fsignal): Clear abort_on_gc.
8060
8061 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8062 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8063
8064 * xdisp.c (move_it_vertically_backward): Do the final big else
8065 even if nlines is 0.
8066
8067 * xdisp.c (redisplay_internal): Finish the per-frame loop
8068 even if redisplay is suspended by input.
8069
0b325c12
AC
80702003-04-24 Andrew Choi <akochoi@shaw.ca>
8071
8072 * macterm.c (x_list_fonts): Return all fonts that match if
8073 maxnames = -1.
8074
4e837cd0
KH
80752003-04-25 Kenichi Handa <handa@m17n.org>
8076
8077 * syntax.c (skip_chars): Fix previous change.
8078
9af7511a
KH
80792003-04-24 Kenichi Handa <handa@m17n.org>
8080
8081 * syntax.c (skip_chars): Make the code faster by using the common
8082 technique of *p, *stop, and *endp.
8083
e3b2c21f
JD
80842003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8085
8086 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8087 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8088 being updated.
8089
32c06229
SM
80902003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8091
8092 * eval.c (Fapply): Undo last change and add a comment about why.
8093
c6464167
MB
80942003-04-18 Miles Bader <miles@gnu.org>
8095
8096 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8097 pickier PARSE_MULTIBYTE_SEQ.
8098
e509f168
SM
80992003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8100
8101 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8102 Use XCDR, XCAR, CONSP.
8103 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8104 (Fapply): Remove unnecessary GCPRO.
8105
8106 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8107
8108 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8109
8110 * buffer.h: Don't hardcode BEG==1.
8111
8112 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8113
5ceea398
RS
81142003-04-16 Richard M. Stallman <rms@gnu.org>
8115
8116 * xdisp.c (try_window, try_window_reusing_current_matrix):
8117 When at end of window, set window_end_pos to Z-ZV.
8118
8119 * buffer.c (Foverlay_recenter): Doc fix.
8120
e509f168
SM
81212003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8122
8123 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8124
d243e605
AC
81252003-04-14 Andrew Choi <akochoi@shaw.ca>
8126
8127 * macterm.c (mac_check_for_quit_char): Don't check more often than
8128 once a second.
8129
6901b111
SM
81302003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8131
8132 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8133 specially, so that they can't hide an implicit switch-frame event.
8134 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8135 (head_table): Use switch-frame as event_kind for select-window.
8136 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8137
8138 * editfns.c (Fformat): Lisp_Object/int mixup.
8139 (format2): Remove unused var numargs.
8140
e301806f 81412003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8142
6901b111 8143 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8144 (Qafter_insert_file_set_coding): New variable.
8145 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8146 for after-insert-file-adjust-coding-function.
8147 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8148 instead of Vafter_insert_file_adjust_coding_function.
8149
38914424
KH
81502003-04-11 Kenichi Handa <handa@m17n.org>
8151
8152 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8153
8154 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8155 string. Callers changed.
8156
81572003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8158
6901b111 8159 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8160 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8161 (Finsert_file_contents):
8162 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8163 decode-format.
8164
f979dc05
JD
81652003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8166
8167 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8168 get GtkAdjustment as widget now is a GtkRange.
8169
8170 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8171 GtkRange to avoid memory leak.
8172
f8c6b4c2 81732003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8174
50ebc53d
KH
8175 * xfaces.c (Vface_font_rescale_alist): New variable.
8176 (struct font_name): New member rescale_ratio.
8177 (font_rescale_ratio): New function.
6901b111 8178 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8179 (better_font_p): On comparing point sized, pay attention to
8180 recale_ratio member of fonts.
8181 (build_scalable_font_name): Reflect font->rescale_ratio in the
8182 font name.
6901b111 8183 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8184
cb98871c
KH
8185 * lread.c (read1): Before calling index, check if the 2nd
8186 arguemnt is in ASCII range.
8187
4773b8ca
RS
81882003-04-08 Richard M. Stallman <rms@gnu.org>
8189
b0ada147
RS
8190 * fileio.c (Ffile_symlink_p): Doc fix.
8191
8192 * editfns.c (Fformat): Translate positions of text properties
8193 in the format string to apply them to the result.
8194
4773b8ca
RS
8195 * fileio.c (Finsert_file_contents): Doc fix.
8196 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8197
81982003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8199
4773b8ca
RS
8200 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8201
e8f25745 82022003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8203
e8f25745
ST
8204 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8205 that self-contained application finds libexec files.
8206
f8c6b4c2 82072003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8208
6901b111
SM
8209 * coding.c (code_convert_region_unwind):
8210 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8211 (code_convert_region): If post-read-conversion function changed
8212 the value of last-coding-sytem, keep the new value in
8213 coding->symbol so that it won't be overridden.
8214 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8215 (coding_system_accept_latin_extra_p): New function.
8216 (find_safe_codings): Pay attention to characters registered in
8217 latin-extra-code-table.
2310d84c 8218
39c9a034
TTN
82192003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8220
8221 * Makefile.in (md5.o): Add missing dependency info.
8222
eb67c5d6
RS
82232003-04-06 Richard M. Stallman <rms@gnu.org>
8224
8225 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8226
8227 * marker.c (verify_bytepos): New function.
8228
8229 * intervals.c (set_intervals_multibyte_1): When becoming
8230 multibyte, adjust right and left child sizes to a whole set of
8231 characters. If an interval gets zero total-length, delete it.
8232 If an interval consists of just its children, delete one of them.
8233
8234 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8235 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8236
eb67c5d6
RS
8237 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8238 All calls deleted.
8239 (lisp_malloc): Do the work here directly.
8240
b1f81fc5
JB
82412003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8242
8243 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8244 char tables.
8245
82462003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8247
8248 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8249 destructively change "%S" to "%s".
8250
774666fb
MB
82512003-04-03 Miles Bader <miles@gnu.org>
8252
8253 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8254 always set.
8255
19c37f01
DL
82562003-04-01 Dave Love <fx@gnu.org>
8257
8258 * xfns.c (xpm_lookup_color): Grok "opaque".
8259
2f4b24c3
AC
82602003-03-31 Andrew Choi <akochoi@shaw.ca>
8261
8262 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8263 parent window ID.
8264
8265 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8266
8267 * macterm.h (struct mac_output): Define x_pixels_diff and
8268 y_pixels_diff.
b1f81fc5 8269
9443fcf6
JB
82702003-03-31 Juanma Barranquero <lektu@terra.es>
8271
8272 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8273 blockinput.h and files included from it.
8274
e072891b
KS
82752003-03-31 Kim F. Storm <storm@cua.dk>
8276
8277 The following changes consolidates the common code related to
8278 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8279 files into frame.c.
9443fcf6 8280
e072891b
KS
8281 * frame.c: Include blockinput.h.
8282 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8283 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8284 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8285 related vars here.
8286 (struct frame_parm_table, frame_parms): New table for describing
8287 frame parameters and their associated Q-variable.
8288 The order of the parameters corresponds to the sequence of the
8289 frame_parm_handlers table in redisplay_interface.
8290 (x_fullscreen_move, x_set_frame_parameters)
8291 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8292 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8293 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8294 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8295 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8296 Generic functions for processing of frame parameters.
8297 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8298 (display_x_get_resource, x_get_resource_string): Functions for
8299 generic access to X resources.
8300 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8301 (x_default_parameter, Fx_parse_geometry): Functions for generic
8302 access to frame parameters.
6901b111
SM
8303 (x_figure_window_size): Generic calculation of frame size.
8304 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8305 (syms_of_frame): Intern and staticpro frame parameter variables.
8306 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8307 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8308
e072891b
KS
8309 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8310 parameter related vars defined in frame.c.
8311 (EMACS_CLASS): Define here.
8312 (enum FULLSCREEN_*): Define here.
8313 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8314 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8315 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8316 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8317 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8318 (x_set_visibility, x_set_autoraise, x_set_autolower)
8319 (x_set_unsplittable, x_set_vertical_scroll_bars)
8320 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8321 (x_figure_window_size): Add prototypes.
8322
8323 * dispextern.h (frame_parm_handler): New typedef.
8324 (struct redisplay_interface): New member frame_parm_handlers.
8325 (enum resource_types): Move declaration here.
8326 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8327 (x_default_parameter): Add prototypes.
8328
8329 * window.c: Remove extern decl for frame parameter vars.
8330 (change_window_heights): New generic function;
8331 replaces x_change_window_heights. All users changed.
8332
8333 * window.h (change_window_heights): Add prototype.
8334
8335 * xfaces.c: Remove extern decl for frame parameter vars.
8336
8337 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8338 (struct w32_display_info): Fix type of xrdb member.
8339 (enum FULLSCREEN_*): Remove.
8340 Remove prototypes for generic functions (in frame.h).
8341
8342 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8343 parameters now defined in frame.h and frame.c.
f63fd14e 8344 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8345 (enum x_frame_parms): Remove (bogus, unused enum).
8346 (check_x_display_info): Make non-static (for frame.c).
8347 (struct x_frame_parm_table, x_frame_parms): Remove.
8348 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8349 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8350 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8351 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8352 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8353 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8354 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8355 Remove. Use generic functions instead.
8356 (enum resource_types): Remove.
8357 (x_set_scroll_bar_default_width): New global function (for frame.c).
8358 (Fx_create_frame): Depend on x_figure_window_size to add space for
8359 toolbar and setup size_hint_flags.
8360 (x_frame_parm_handlers): New table for redisplay_interface.
8361 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8362
e072891b 8363 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8364 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8365 (x_redisplay_interface): Add x_frame_parm_handlers member.
8366
8367 * w32gui.h (XrmDatabase): New (dummy) typedef.
8368
8369 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8370 (struct w32_display_info): Fix type of xrdb member.
8371 (enum FULLSCREEN_*): Remove.
8372 (x_fullscreen_adjust): Remove prototype.
8373
8374 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8375 parameters now defined in frame.h and frame.c.
f63fd14e 8376 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8377 (enum x_frame_parms): Remove (bogus, unused enum).
8378 (check_x_display_info): Make non-static (for frame.c).
8379 (struct x_frame_parm_table, x_frame_parms): Remove.
8380 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8381 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8382 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8383 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8384 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8385 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8386 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8387 Remove. Use generic functions instead.
8388 (enum resource_types): Remove.
8389 (x_set_scroll_bar_default_width): New global function (for frame.c).
8390 (Fx_create_frame): Depend on x_figure_window_size to add space for
8391 toolbar and setup size_hint_flags.
8392 (w32_frame_parm_handlers): New table for redisplay_interface.
8393 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8394
e072891b
KS
8395 * w32term.c: Remove unnecessary extern declarations.
8396 (x_fullscreen_adjust): Remove. Use generic instead.
8397 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8398
8399 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8400
8401 * macgui.h (XrmDatabase): New (dummy) typedef.
8402
8403 * macterm.h (EMACS_CLASS): Remove.
8404 (struct mac_display_info): Add xrdb member.
8405 (struct mac_output): Add want_fullscreen member.
8406
8407 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8408 parameters now defined in frame.h and frame.c.
f63fd14e 8409 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8410 (check_x_display_info): Make non-static (for frame.c).
8411 (struct x_frame_parm_table, x_frame_parms): Remove.
8412 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8413 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8414 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8415 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8416 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8417 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8418 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8419 Remove. Use generic functions instead.
8420 (enum resource_types): Remove.
8421 (x_set_scroll_bar_default_width): New global function (for frame.c).
8422 (mac_frame_parm_handlers): New table for redisplay_interface.
8423 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8424
e072891b
KS
8425 * macterm.c: Remove unnecessary extern declarations.
8426 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8427
3e6a560b
KS
8428 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8429 included from it (atimer.h and systime.h).
8430
7b7b454e
AS
84312003-03-30 Andreas Schwab <schwab@suse.de>
8432
8433 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8434 parameters for shift_glyphs_for_insert.
8435
8436 * macterm.c (x_redisplay_interface): Add missing entry for
8437 draw_vertical_window_border.
8438
beb402de
KG
84392003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8440
8441 * fileio.c (Fexpand_file_name): In the no-handler case, after
8442 expanding, look again for a handler and invoke it. This is needed
8443 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8444 expansion produces "/user@host:/bar/../baz" which needs to be
8445 expanded again for the finame result "/user@host:/baz".
8446
b676f356
JD
84472003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8448
8449 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8450 of area to be redrawn for better performance.
8451
3c671a56
SM
84522003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8453
8454 * xterm.c (take_vertical_position_into_account): Remove.
8455 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8456 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8457 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8458 (x_set_toolkit_scroll_bar_thumb): Simplify.
8459 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8460 (XTread_socket): Remove unused var.
8461 (x_make_frame_invisible): Replace goto with else.
8462
8463 * xdisp.c (set_vertical_scroll_bar): New fun.
8464 (redisplay_window): Use it.
8465
84f2e615
RS
84662003-03-26 Richard M. Stallman <rms@gnu.org>
8467
8468 * xdisp.c (update_tool_bar): Recompute tool bar if
8469 update_mode_lines is set. Set w->update_mode_line
8470 only if the tool bar contents actually change.
8471 (update_menu_bar): Undo previous change.
8472
70b6104c
JD
84732003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8474
5fd6f727
JD
8475 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8476 (xg_frame_set_char_size): Calculate scroll bar width before frame
8477 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8478 (xg_separator_p): Check for all documented separator types.
8479 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8480 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8481
70b6104c
JD
8482 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8483 so tool bar gets updated.
8484
d9b36d19
SM
84852003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8486
8487 * data.c (store_symval_forwarding): Re-instate part of the code
8488 that was deleted with too much enthusiasm.
8489
84902003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8491
8492 * data.c (store_symval_forwarding): Delete special read-only
8493 hack for type == -1, since we now use ->constant instead.
8494 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8495
8496 * buffer.c (overlays_in): Declare static.
8497 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8498 `constant' field rather than the variable's `type' field.
8499
365fa1b3
AC
85002003-03-24 Andrew Choi <akochoi@shaw.ca>
8501
8502 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8503
8504 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8505
8506 * fns.c [MAC_OSX]: Do not redefine vector.
8507
8508 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8509
8510 * macgui.h: Remove definition of No_Cursor.
8511
d9b36d19 8512 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8513
8514 * xdisp.c: Define No_Cursor.
8515 (x_write_glyphs, notice_overwritten_cursor)
8516 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8517 (note_mouse_highlight): Remove Mac-specific code.
8518 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8519
c0bcce6f
JPW
85202003-03-24 John Paul Wallington <jpw@gnu.org>
8521
8522 * xdisp.c (redisplay_window): If mini window's buffer is not
8523 empty, then redisplay it like other windows.
8524
a526b96c
KS
85252003-03-23 Kim F. Storm <storm@cua.dk>
8526
8527 * w32term.c (w32_draw_window_cursor): Fix last change.
8528
37ab321e
KH
85292003-03-23 Kenichi Handa <handa@m17n.org>
8530
a526b96c
KS
8531 * alloc.c (make_string_from_bytes, make_specified_string):
8532 Add `const' for the arg CONTENTS.
37ab321e
KH
8533
8534 * lisp.h (make_string_from_bytes, make_specified_string):
8535 Prototypes adjusted.
8536
7863d625
JD
85372003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8538
a526b96c 8539 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8540
7863d625
JD
8541 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8542 (XG_SB_RANGE): New define.
8543
8544 * gtkutil.c (xg_fixed_handle_expose): New function.
8545 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8546 expose events.
8547 (xg_update_scrollbar_pos): Take two more arguments, left and width
8548 of scroll bar including borders.
8549 Clear left and right part outside scroll bar separately as some
8550 themes have bars that are not an even number of pixels.
d9b36d19 8551 Don't set reallocate_redraws, don't call
7863d625
JD
8552 gdk_window_process_all_updates.
8553 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8554 so no need to change it. Calculate size and value with XG_SB_RANGE.
8555
d9b36d19
SM
8556 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8557 Pass left and width of scroll bar including borders to
7863d625
JD
8558 xg_update_scrollbar_pos.
8559
af0ad939
TTN
85602003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8561
8562 * Makefile.in: Make sure space precedes end-of-line backslashes.
8563
b22139fd
KS
85642003-03-22 Kim F. Storm <storm@cua.dk>
8565
8566 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8567 Add generic versions here. Remove system specific versions
8568 defined elsewhere.
8569
8570 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8571 Add prototypes.
8572
6e6410cf
KS
8573 * xterm.h (STORE_NATIVE_RECT): New macro.
8574
5c9cc435
KS
85752003-03-21 Kim F. Storm <storm@cua.dk>
8576
00c64fab
SM
8577 * xdisp.c (get_glyph_string_clip_rect):
8578 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8579
8580 * dispextern.h (struct redisplay_interface): Add active_p
8581 argument to draw_window_cursor member. All uses changed.
8582
acd37560
KS
85832003-03-21 Kim F. Storm <storm@cua.dk>
8584
8585 The following changes consolidate code related to writing and
8586 inserting glyphs, exposing frame, the tool bar, the mouse face,
8587 the output cursor, and help echo from xterm.c, w32term.c and
8588 macterm.c into xdisp.c. It also generalizes the use of the
8589 window_part enum instead of using numeric values throughout.
af0ad939 8590
acd37560
KS
8591 * xdisp.c: Consolidate gui-independent code here.
8592 Include keymap.h.
8593 (Qhelp_echo): Import.
8594 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8595 (help_echo_string, help_echo_window, help_echo_object)
8596 (previous_help_echo_string, help_echo_pos): Declare here.
8597 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8598 (estimate_mode_line_height): Define here. Handle windowing
8599 systems directly (without using estimate_mode_line_height_hook).
8600 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8601 (update_window_cursor, update_cursor_in_window_tree)
8602 (fast_find_position, fast_find_string_pos)
8603 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8604 (expose_area, expose_line, expose_overlaps, expose_window)
8605 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8606 declared static as they are only used locally in xdisp.c.
8607 (draw_glyphs): Rename from x_draw_glyphs and make static.
8608 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8609 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8610 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8611 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8612 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8613 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8614 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8615 (note_mouse_highlight, x_clear_window_mouse_face)
8616 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8617 (x_intersect_rectangles): New generic functions for use by xdisp.c
8618 and GUI front-ends.
8619 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8620 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8621
8622 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8623 (NativeRectangle): Generic typedef for rectangle type.
8624 (enum window_part): Move here from window.c.
8625 (struct redisplay_interface): New members flush_display_optional,
8626 define_frame_cursor, clear_frame_area, draw_window_cursor,
8627 draw_vertical_window_border, shift_glyphs_for_insert.
8628 Rename member clear_mouse_face to clear_window_mouse_face.
8629 (estimate_mode_line_height_hook): Remove hook.
8630 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8631 (tool_bar_item_info): Remove prototype.
8632 (help_echo_string, help_echo_window, help_echo_object)
8633 (previous_help_echo_string, help_echo_pos)
8634 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8635 (x_stretch_cursor_p, output_cursor): Declare extern.
8636 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8637 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8638 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8639 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8640 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8641 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8642 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8643 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8644 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8645 Add prototypes.
8646 (mode_line_string, marginal_area_string): Fix prototypes.
8647
8648 * window.c (enum window_part): Move to dispextern.h.
8649 (coordinates_in_window): Use enum window_part member names
8650 instead of numbers to describe return value.
8651 (struct check_window_data): Change part member to window_part.
8652 (check_window_containing): Return window_part unaltered.
8653 (window_from_coordinates): Change part arg from int to enum
8654 window_part. Allow part arg to be null. All users changed.
8655
8656 * window.h (window_from_coordinates): Fix prototype.
8657
8658 * term.c (estimate_mode_line_height): Move to xdisp.c.
8659
8660 * keyboard.c (make_lispy_event): Use enum window_part.
8661
8662 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8663 window_part instead of int in arg list. Users changed.
8664
8665 * xterm.h (No_Cursor): Declare as None for X.
8666 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8667
acd37560
KS
8668 * xterm.c: Remove consolidated defines and code.
8669 (BETWEEN): Remove unused macro.
8670 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8671 (x_define_frame_cursor, x_clear_frame_area)
8672 (x_draw_window_cursor): New X-specific functions for RIF.
8673 (x_redisplay_interface): Add new members.
8674
8675 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8676
8677 * w32term.h (struct w32_output): Remove cross_cursor member.
8678
8679 * w32term.c: Remove consolidated defines and code.
8680 (BETWEEN): Remove unused macro.
8681 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8682 (w32_define_frame_cursor, w32_clear_frame_area)
8683 (w32_draw_window_cursor): New W32-specific functions for RIF.
8684 (w32_redisplay_interface): Add new members.
8685
a64387ee 8686 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8687 (XRectangle): Add X compatible rectangle type.
8688 (NativeRectangle): Declare as RECT for W32.
8689 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8690
8691 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8692
8693 * w32console.c: Remove consolidated defines and code.
af0ad939 8694
acd37560
KS
8695 * msdos.h (Display_Info): Add generic typedef.
8696
8697 * msdos.c: Remove consolidated defines and code.
8698 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8699
8700 * macterm.h (struct mac_output): Replace member cross_cursor by
8701 hand_cursor.
8702 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8703
8704 * macterm.c: Remove consolidated defines and code.
8705 (BETWEEN): Remove unused macro.
8706 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8707 (mac_define_frame_cursor, mac_clear_frame_area)
8708 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8709 (x_redisplay_interface): Add new members.
8710
8711 * macgui.h (No_Cursor): Define as 0 for Mac.
8712 (XRectangle): Add X compatible rectangle type.
8713 (NativeRectangle): Declare as Rect for Mac.
8714 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8715
204ccab1
KS
8716 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8717 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8718
9443fcf6 8719 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8720 included from it. Add dependency on keymap.h.
8721
8722 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8723
8ba01a70 87242003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8725
8726 * fileio.c (Fexpand_file_name): Fix previous change.
8727
8ba01a70 87282003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8729
8730 * fileio.c (Ffile_name_directory): Reconstruct file name by
8731 make_specified_string.
8732 (Ffile_name_nondirectory, Ffile_name_as_directory)
8733 (Fdirectory_file_name, Fexpand_file_name)
8734 (Fsubstitute_in_file_name): Likewise.
8735 (Fread_file_name): Compare decoded homedir with DIR and
8736 DEFAULT_FILENAME.
8737
8738 * alloc.c (make_specified_string): If NCHARS is negative, count
8739 the number of characters.
8740
19536747
JD
87412003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8742
de38ae5a
JD
8743 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8744 all widgets.
8745
19536747
JD
8746 * gtkutil.h: Removed xg_ignore_next_thumb.
8747
37ab321e 87482003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8749
8750 * coding.c (Vchar_coding_system_table): Remove this variable.
8751 (Vcoding_system_safe_chars): New variable.
8752 (intersection): Remove this function.
8753 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8754 all codings in SAFE_CODINGS.
00c64fab 8755 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8756 find_safe_codings. Get generic coding systems from
8757 Vcoding_system_safe_chars.
8758 (Fdefine_coding_system_internal): New function.
8759 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8760 Initialize and staticpro Vcoding_system_safe_chars.
8761
17097258
JD
87622003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8763
2a2071c3
JD
8764 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8765 equal old values before updating.
8766
17097258
JD
8767 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8768
8769 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8770
87712003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8772
8773 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8774 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8775 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8776 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8777 (xg_create_scroll_bar): Pass bar to button event callback.
8778 (xg_find_top_left_in_fixed): New function.
8779 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8780 whole scroll bar area. Get old position with
8781 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8782 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8783 dragging is in progress. Calculate whole as for Motif.
8784 Remove code that saved last values. Call gtk_range functions to
8785 set scroll bar sizes.
8786
8787 * gtkutil.h: Removed xg_ignore_next_thumb.
8788
8cb9dfbf
JB
87892003-03-17 Juanma Barranquero <lektu@terra.es>
8790
8791 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8792 and files included from it.
8793
00c64fab
SM
87942003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8795
8796 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8797 multiple occurrences of the same keymap under different prefixes.
8798 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8799
c45bb3b2
JR
88002003-03-16 Jason Rumney <jasonr@gnu.org>
8801
8802 * w32gui.h: Use HDC for Display.
8803
8804 * w32term.c (w32_encode_char): Prevent double-byte chars from
8805 crashing Emacs.
8806
8807 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8808 as binary.
8809
2a6d0874
JB
88102003-03-16 Juanma Barranquero <lektu@terra.es>
8811
8812 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8813
03eb5fab
KS
88142003-03-16 Kim F. Storm <storm@cua.dk>
8815
8816 The following changes consolidate some of the gui-independent
8817 parts of the processing and drawing of "glyph strings" from
8818 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8819
03eb5fab
KS
8820 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8821 21 bits (this reduces number of faces from 4M to 2M).
8822 Replace W32 specific w32_font_type member (2 bits) by generic
8823 font_type member (3 bits) for portability.
8824 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8825 (enum draw_glyphs_face): Define here.
8826 (struct glyph_string): Define here. Merge W32 and X versions.
8827 (struct redisplay_interface): New members per_char_metric,
8828 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8829 (VCENTER_BASELINE_OFFSET): Define here.
8830 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8831 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8832
8833 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8834 (dump_glyph_string): Moved here.
8835 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8836 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8837 (fill_composite_glyph_string, fill_glyph_string)
8838 (fill_image_glyph_string, fill_stretch_glyph_string)
8839 (left_overwritten, left_overwriting, right_overwritten)
8840 (right_overwriting, get_char_face_and_encoding)
8841 (set_glyph_string_background_width, compute_overhangs_and_x)
8842 (append_glyph, append_composite_glyph, produce_image_glyph)
8843 (take_vertical_position_into_account, append_stretch_glyph)
8844 (produce_stretch_glyph): New generic functions (based on X version).
8845 Call platform specific functions through rif.
8846 (INIT_GLYPH_STRING): New macro, hides W32 details.
8847 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8848 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8849 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8850 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8851 (notice_overwritten_cursor):
8852 Generic functions exported to platform modules. Users changed.
8853
8854 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8855 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8856 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8857 New macros for consolidated code.
2a6d0874 8858
03eb5fab
KS
8859 * xterm.c: Remove consolidated defines and code.
8860 (x_per_char_metric, x_encode_char)
8861 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8862 (x_redisplay_interface): Add new members.
8863
8864 * w32gui.h (Display): Add dummy typedef for consolidation.
8865 (XChar2b): Define alias for wchar_t for consolidation.
8866 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8867
8868 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8869 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8870 New macros for consolidation.
8871
fad49844 8872 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8873 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8874 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8875 (w32_per_char_metric): Change font_type arg to int for RIF.
8876 (w32_encode_char): Return int according to RIF requirements.
8877 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8878 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8879 x_get_glyph_overhangs.
8880 (w32_redisplay_interface): Add new members.
8881
8882 * macgui.h (XChar2b): Move typedef here for consolidation.
8883 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8884
8885 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8886 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8887 consolidation.
8888
8889 * macterm.c: Remove consolidated defines and code.
8890 (mac_per_char_metric): New function for RIF.
00c64fab 8891 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8892 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8893 (x_redisplay_interface): Add new members.
8894
00c64fab
SM
88952003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8896
8897 * keymap.c (Vmenu_events): New var.
8898 (syms_of_keymap): Initialize it.
8899 (where_is_internal): Check more carefully what is a menu event.
8900
225c7a07
RS
89012003-03-14 Richard M. Stallman <rms@gnu.org>
8902
8903 * lread.c (read1): After #!, exit loop on eof.
8904
cea9be54
JD
89052003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8906
9ea0e54d
JD
8907 * gtkutil.h: Add declaration for xg_frame_cleared.
8908
0cb35f4e
JD
8909 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8910
cea9be54
JD
8911 * gtkutil.c (struct xg_last_sb_pos): New structure.
8912 (handle_fixed_child): New function.
8913 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8914 and force a redraw on them.
8915 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8916 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8917 so we can avoid unneeded redraws.
8918 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8919 and force a redraw on the scroll bar.
8920 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8921 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 8922 (xg_frame_cleared): New function.
cea9be54 8923
20b853f3
KH
89242003-03-13 Kenichi Handa <handa@m17n.org>
8925
8926 * coding.c (Fdetect_coding_region): Fix docstring.
8927 (Fdetect_coding_string): Fix docstring.
8928
7a555aff
AS
89292003-03-13 Andreas Schwab <schwab@suse.de>
8930
25cc0080
AS
8931 * gtkutil.c: Add prototype for create_menus.
8932
30225431
AS
8933 * data.c (long_to_cons): Fix type of top.
8934
8935 * xselect.c (selection_data_to_lisp_data): Use int instead of
8936 long for an integer of size 4.
8937
7a555aff 8938 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8939 (xg_tool_bar_help_callback): Likewise.
7a555aff 8940
a3e4741f
AS
89412003-03-12 Andreas Schwab <schwab@suse.de>
8942
8943 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8944
9668be7c
KS
89452003-03-12 Kim F. Storm <storm@cua.dk>
8946
03eb5fab 8947 The following changes consolidate the fringe handling from
9668be7c 8948 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8949
9668be7c
KS
8950 * xdisp.c: Consolidate fringe handling code here.
8951 (left_bits, right_bits, continued_bits, continuation_bits)
8952 (ov_bits, zv_bits): Define fringe bitmaps.
8953 (fringe_bitmaps): New array holding fringe bitmaps.
8954 (draw_fringe_bitmap): Draw a specific bitmap; call display
8955 specific drawing routine via rif->draw_fringe_bitmap.
8956 (draw_row_fringe_bitmaps): Generic replacement for
8957 x_draw_row_fringe_bitmaps; all callers changed.
8958 (compute_fringe_widths): Generic replacement for
8959 x_compute_fringe_widths; all callers changed.
8960
8961 * dispextern.h (enum fringe_bitmap_type): Define here.
8962 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8963 (fringe_bitmaps): Declare extern.
8964 (struct redisplay_interface): New member draw_fringe_bitmap.
8965 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8966
8967 * xterm.c: Remove generic fringe code.
8968 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8969 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8970
8971 * w32term.c: Remove generic fringe code.
8972 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8973 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 8974
9668be7c
KS
8975 * macterm.c: Remove generic fringe code.
8976 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8977 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8978
00a88f32
SM
89792003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8980
8981 * print.c (Fprin1_to_string): Return unibyte string if possible.
8982
1d1de695
DK
89832003-03-09 David Kastrup <dak@gnu.org>
8984
8985 * process.c (read_process_output): We have allocated enough space
8986 for readmax and carryover, so actually use the alloted space.
8987
257f40f2
JD
89882003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8989
8990 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8991 toolkit scrollbar click.
8992
8993 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8994 for USE_GTK.
8995 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8996 also.
8997 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8998 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 8999
78819ebb 9000 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9001
9002 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9003 (xg_tool_bar_item_expose_callback): New function.
9004 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9005 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9006 on the tool bar widget.
9007 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9008 to expose on the tool bar item widgets.
9009
15213141
JD
90102003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9011
26b74a0b 9012 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9013 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9014 deleted from the image cache).
9015
15213141
JD
9016 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9017 the event isn't for a frame (i.e. for dialogs).
9018
20b853f3 90192003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9020
9021 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9022 composition components reaches the limit, terminate composing.
9023 (COMPOSITION_OK): New macro.
00a88f32 9024 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9025 composition is found.
9026 (coding_restore_composition): Adjust the number of composition
9027 components if it is not sane.
9028
c9029fe5
JB
90292003-03-06 Juanma Barranquero <lektu@terra.es>
9030
9031 * w32term.h (struct w32_display_info): Add xrdb member to support
9032 passing resources via -xrm on Windows.
9033
9034 * w32term.c (w32_make_rdb): New function.
9035 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9036 struct. Delete leftover code.
9037
9038 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9039 for resources passed on the command line.
9040
9041 * w32reg.c (w32_get_rdb_resource): New function.
9042 (x_get_string_resource): Use it, so resources passed with -xrm
9043 supercede the ones in the registry.
9044
9d00001f
JD
90452003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9046
9047 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9048 instead of x_top_window_to_frame.
9049
ca2417b9
JD
90502003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9051
9052 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9053 when restarting Emacs.
9054
5b20caf0
RS
90552003-03-03 Richard M. Stallman <rms@gnu.org>
9056
9057 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9058 to run kill-buffer-query-functions.
9059 (Qkill_buffer_query_functions): New var.
9060 (syms_of_buffer): Init and staticpro it.
9061
58e91b77
JD
90622003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9063
9064 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9065
932357b4
KS
90662003-02-25 Kim F. Storm <storm@cua.dk>
9067
9068 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9069 If centering point failed to make whole line visible and vscroll
9070 is non-zero, disable vscroll and try centering point again.
9071
9072 * lread.c (read1): Accept `single space' syntax like (? x).
9073
bb8db7e1
JD
90742003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9075
9076 * keyboard.c (cancel_hourglass_unwind): Surround with
9077 #ifdef HAVE_X_WINDOWS
9078
47d77aab
KH
90792003-02-25 Kenichi Handa <handa@m17n.org>
9080
9081 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9082 process only when "subprocesses" is defined.
9083
6a097c0c
SM
90842003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9085
9086 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9087
0b063c27
JB
90882003-02-24 Juanma Barranquero <lektu@terra.es>
9089
d1135afc
JB
9090 * callint.c (fix_command): Declare as static void and move before
9091 Fcall_interactively.
9092
0b063c27
JB
9093 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9094 (syms_of_xdisp): Don't initialize Qwhen.
9095
0af912f0
JD
90962003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9097
9098 * keyboard.c (cancel_hourglass_unwind): New function.
9099 (command_loop_1): Cancel hourglass with unwind-protect.
9100
120d0a23
RS
91012003-02-23 Richard M. Stallman <rms@gnu.org>
9102
9103 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9104 Detect (when ... (region-beginning)) etc.
9105 (Fcall_interactively): Call fix_command.
9106 (Qif, Qwhen): New variables.
9107 (syms_of_callint): Init and staticpro them.
0b063c27 9108
120d0a23
RS
9109 * regex.c (print_partial_compiled_pattern): Output to stderr.
9110
4ece81a6
KG
91112003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9112
9113 * dired.c (directory_files_internal): Don't expand directory.
9114 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9115 instead. From Lars Hansen <larsh@math.ku.dk>.
9116
e52bd6b7
SM
91172003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9118
9119 * fns.c (string_to_multibyte): Remove unused var i.
9120 (Flanginfo): Fix int/Lisp_Object mixup.
9121 (void_call2): New fun.
9122 (Fmap_char_table): Use it in place of call2.
9123
9124 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9125
9126 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9127
9128 * keymap.c (copy_keymap_1): Make it static.
9129
9130 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9131
c33ef7c4
JB
91322003-02-22 David Ponce <david@dponce.com>
9133
9134 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9135
16782258
JD
91362003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9137
9138 * process.h: Removed subtty field from struct Lisp_Process.
9139
9140 * process.c (create_process): Remove setting of subtty.
9141 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9142 (Fprocess_running_child_p, process_send_signal):
9143 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9144 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9145
3abeca61
KG
91462003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9147
9148 * keymap.c (Fdefine_key): Doc fix.
9149
92a8ce63
JB
91502003-02-21 Juanma Barranquero <lektu@terra.es>
9151
9152 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9153
9154 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9155 POLLING_PROBLEM_IN_SELECT.
9156
9157 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9158 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9159
9160 * s/hpux10-20.h: New file.
9161
e52bd6b7
SM
9162 * process.c (wait_reading_process_input):
9163 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9164
20f1ef2e
KH
91652003-02-20 Kenichi Handa <handa@m17n.org>
9166
32d0a9dc
KH
9167 * fontset.c (check_fontset_name): If NAME is nil, return the
9168 default fontset.
9169 (override_font_info): New function.
e52bd6b7 9170 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9171 (Ffontset_info): If FONTSET is not the default fontset, merge
9172 FONTSET onto the copy of the default fontset, and work on that
9173 copy. Document that NAME nil means the default fontset.
9174 (Ffontset_font): Document that NAME nil means the default fontset.
9175
20f1ef2e
KH
9176 * process.c (setup_process_coding_systems): If the process's
9177 in/out descriptor is -1, do nothing.
9178
77d1daf2
AS
91792003-02-19 Andreas Schwab <schwab@suse.de>
9180
e52bd6b7
SM
9181 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9182 Add prototypes.
77d1daf2 9183
f9a45bb3
KH
91842003-02-19 Kenichi Handa <handa@m17n.org>
9185
9186 * xfaces.c (try_alternative_families): Try all scalable fonts if
9187 Vscalable_fonts_allowed is not Qt.
9188
72ecb43c
JD
91892003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9190
9191 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9192
ee5be7c3
JD
91932003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9194
9195 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9196 names.
9197
9198 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9199 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9200 x_face_list_fonts.
9201 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9202 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9203
4cd519a7
KS
92042003-02-18 Kim F. Storm <storm@cua.dk>
9205
068f9882
KS
9206 * lread.c (read1): Fix last change.
9207 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9208
7290a344
AC
92092003-02-18 Andrew Choi <akochoi@shaw.ca>
9210
9211 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9212
1f7fa69b
AS
92132003-02-18 Andreas Schwab <schwab@suse.de>
9214
9215 * window.c (window_scroll_pixel_based): Move outside a
9216 multi-glyph character before setting new window start.
9217
9218 * xdisp.c (in_display_vector_p): New function.
9219 * dispextern.h (in_display_vector_p): Declare.
9220
23e21195
KS
92212003-02-18 Kim F. Storm <storm@cua.dk>
9222
9223 * lread.c (read1): Fix and relax read syntax.
9224 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9225 Only recognize "," after dotted-pair dot if inside backquote.
9226 Never include "`" or "," (inside backquote) in a symbol.
9227 Allow dotted-pair dot after a character constant.
9228 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9229
f098b121
JD
92302003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9231
9232 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9233 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9234 icons. Set name of tool bar to emacs-toolbar.
9235 (update_frame_tool_bar): Connect expose event to
9236 xg_tool_bar_expose_callback.
9237
63020c46
RS
92382003-02-17 Richard M. Stallman <rms@gnu.org>
9239
9240 * keyboard.c (this_command_key_count_reset): New variable.
9241 Initiatize to 0 where this_command_key_count is set.
9242 (read_char): Save and restore this_command_key_count_reset
9243 around input method code.
9244 (read_char): If this_command_key_count_reset, echo reread commands.
9245 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9246
fb4452cc
KH
92472003-02-17 Kenichi Handa <handa@m17n.org>
9248
9249 * fns.c (string_to_multibyte): Always return a multibyte string.
9250
bd11cc09
JR
92512003-02-16 Jason Rumney <jasonr@gnu.org>
9252
e52bd6b7
SM
9253 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9254 Negative max_fonts parameter means list all.
bd11cc09 9255
4cdf4bde
DL
92562003-02-14 Dave Love <fx@gnu.org>
9257
9258 * fns.c (Flanginfo): Doc fix.
9259
023b93f6
KS
92602003-02-13 Kim F. Storm <storm@cua.dk>
9261
37cd4238
KS
9262 * lread.c (read_escape): Interpret \s as a SPACE character, except
9263 for \s-X in a character constant which still is the super modifier.
9264 (read1): Signal an `invalid read syntax' error if a character
9265 constant is immediately followed by a digit or symbol character.
9266
140a6b7e
KS
9267 * search.c (Fmatch_data): Doc fix. Explicitly state that
9268 match-data is undefined if last search failed.
9269
023b93f6
KS
9270 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9271 All uses changed.
9272
7d5c86e5
JB
92732003-02-12 Juanma Barranquero <lektu@terra.es>
9274
9275 * eval.c (Fdefmacro): Fix typo.
9276
295fff2c
KS
92772003-02-12 Kim F. Storm <storm@cua.dk>
9278
9279 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9280 macro is a string, convert meta modifiers in string when copying
9281 the string into a vector.
9282
60f3202d
KS
92832003-02-11 Kim F. Storm <storm@cua.dk>
9284
9285 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9286
61cb0b53
KH
92872003-02-11 Kenichi Handa <handa@m17n.org>
9288
9289 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9290
7392e23c
KS
92912003-02-10 Kim F. Storm <storm@cua.dk>
9292
9293 * process.c: Doc fixes.
9294 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9295
ce4254bd
KH
92962003-02-10 Kenichi Handa <handa@m17n.org>
9297
9c7a329a
KH
9298 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9299
ce4254bd
KH
9300 * process.c (QCfilter_multibyte): New variable.
9301 (setup_process_coding_systems): New function.
e52bd6b7
SM
9302 (Fset_process_buffer, Fset_process_filter):
9303 Call setup_process_coding_systems.
ce4254bd
KH
9304 (Fstart_process): Initialize the member `filter_multibyte' of
9305 struct Lisp_Process.
9306 (create_process): Call setup_process_coding_systems.
9307 (Fmake_network_process): New keyward `:filter-multibyte'.
9308 Initialize the member `filter_multibyte' of struct Lisp_Process.
9309 Call setup_process_coding_systems.
9310 (server_accept_connection): Call setup_process_coding_systems.
9311 (read_process_output): If the process has a filter, decide the
9312 multibyteness of a string to given to the filter by
9313 `filter_multibyte' member of the process. If the process doesn't
9314 have a filter and the result of conversion is unibyte, use
9315 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9316 multibyte form.
9317 (Fset_process_coding_system): Call setup_process_coding_systems.
9318 (Fset_process_filter_multibyte): New function.
9319 (Fprocess_filter_multibyte_p): New function.
9320 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9321 Defsubr Sset_process_filter_multibyte and
9322 Sprocess_filter_multibyte_p.
9323
9324 * process.h (struct Lisp_Process): New member filter_multibyte.
9325
9326 * lisp.h (setup_process_coding_systems): Add prototype.
9327
9328 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9329 process, update coding systems for the process.
9330
b08d5f59
KH
93312003-02-09 Kenichi Handa <handa@m17n.org>
9332
9333 * fns.c (string_to_multibyte): New function.
9334 (Fstring_to_multibyte): New function.
9335 (syms_of_fns): Defsubr it.
9336
0dfd93c0
AS
93372003-02-08 Andreas Schwab <schwab@suse.de>
9338
9339 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9340 instead of the substitution.
9341
7b76ca1c
JD
93422003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9343
9344 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9345
9346 * xmenu.c (menu_position_func): Adjust menu popup position so that
9347 the menu is fully visible.
7b76ca1c 9348
2436a4e4
JD
93492003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9350
9351 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9352 (x_make_frame_invisible, x_wm_set_icon_position):
9353 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9354
9355 * xfns.c (x_set_name, x_set_title): Ditto.
9356
37d1e680
RS
93572003-02-04 Richard M. Stallman <rms@gnu.org>
9358
9359 * keyboard.c (echo_now): Update before_command_echo_length.
9360 (Freset_this_command_lengths): Reset this_command_key_count etc.
9361 immediately rather than arranging to do it later.
9362 (before_command_key_count_1, before_command_echo_length_1)
9363 (before_command_restore_flag): Vars deleted.
9364 (add_command_key): Don't handle before_command_restore_flag.
9365 (read_char, record_menu_key): Don't update before_command_key_count or
9366 before_command_echo_length.
9367 (read_char): Don't handle before_command_restore_flag.
9368
9369 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9370 in direct-output clauses if it wouldn't be called in the ordinary case.
9371
578846a3
KS
93722003-02-04 Kim F. Storm <storm@cua.dk>
9373
9374 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9375
49853a4d
JD
93762003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9377
9378 * gtkutil.c (remove_from_container): Copying list is not needed.
9379 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9380 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9381 on list returned from gtk_container_get_children to avoid memory leak.
9382
8b53dc06
JR
93832003-02-01 Jason Rumney <jasonr@gnu.org>
9384
5d54d177
JR
9385 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9386 local malloc.
9387 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9388 definitions in xpm.h.
9389 (init_xpm_functions): New function.
f63fd14e 9390 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9391 (init_external_image_libraries): Try to load libXpm.dll.
9392
8b53dc06
JR
9393 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9394 timestamp.
9395
b222e415
DL
93962003-01-31 Dave Love <fx@gnu.org>
9397
9398 * syntax.c (Fskip_chars_forward)
9399 (open-paren-in-column-0-is-defun-start): Doc fix.
9400
c60ee5e7
JB
94012003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9402
9403 * fileio.c: Support // at start of name for Cygwin (just added proper
9404 preprocessor tests).
9405
9406 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9407
9408 * Makefile.in: Use @EXEEXT@ for Cygwin.
9409
9410 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9411
9412 * s/cygwin.h: Added for Cygwin port.
9413
53b37591
JB
94142003-01-31 Juanma Barranquero <lektu@terra.es>
9415
9416 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9417 when including gif_lib.h.
fe929957 9418 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9419 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9420 Windows. Disable color table lookups. Call library functions
53b37591 9421 through pointers determined at runtime.
fe929957
JB
9422 (init_external_image_libraries): Try to load libungif.dll and
9423 libtiff.dll.
53b37591 9424
45415a8f
KH
94252003-01-31 Kenichi Handa <handa@m17n.org>
9426
9427 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9428 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9429
a97e4138
JD
94302003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9431
e52bd6b7 9432 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9433
6eed9bed
DL
94342003-01-30 Dave Love <fx@gnu.org>
9435
9436 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9437 (Fgarbage_collect): Use them.
9438 (init_alloc, syms_of_alloc): Set them up.
9439
100dcd40
JB
94402003-01-30 Juanma Barranquero <lektu@terra.es>
9441
9442 * w32fns.c (init_external_image_libraries): Add missing operator.
9443
fbd852af
JR
94442003-01-29 Jason Rumney <jasonr@gnu.org>
9445
9446 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9447 an alternative name for jpeg.dll.
9448
8a2d8020
KH
94492003-01-29 Kenichi Handa <handa@m17n.org>
9450
9451 * xdisp.c (set_cursor_from_row): Pay attention to string display
9452 properties.
9453
058c18c7
AC
94542003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9455
9456 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9457 <escape>.
9458 (keycode_to_xkeysym_table): Reformat and add more comments.
9459 (XTread_socket): Drop special case for backspace.
9460
385f11cf
AC
94612003-01-28 Andrew Choi <akochoi@shaw.ca>
9462
9463 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9464 values in old-style RGB specs.
9465
c922a224
JB
94662003-01-27 Juanma Barranquero <lektu@terra.es>
9467
9468 * w32fns.c (init_external_image_libraries): Try alternate names for the
9469 jpeg dll.
9470
0a1d6de0
JD
94712003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9472
9473 * gtkutil.c (create_dialog, xg_separator_p)
9474 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9475 before calling strcmp or strlen.
9476
a97e4138 94772003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9478
9479 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9480 and handle image load failure.
9481
28908312
JR
94822003-01-26 Jason Rumney <jasonr@gnu.org>
9483
9484 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9485 New functions.
f63fd14e
JB
9486 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9487 Disable color table lookups. Call jpeg library functions
28908312
JR
9488 through pointers determined at runtime.
9489 (init_external_image_libraries): Try to load jpeg.dll.
9490
84e47416
RS
94912003-01-25 Richard M. Stallman <rms@gnu.org>
9492
9493 * lisp.h: Declare format2 instead of format1.
9494
9495 * fileio.c (barf_or_query_if_file_exists):
9496 Call format2 instead of format1.
9497
9498 * editfns.c (format2): New function, replaces format1
9499 but takes exactly two Lisp Objects as format args.
9500
9501 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9502
a97e4138 95032003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9504
9505 * xterm.h: Change to return value of x_dispatch_event to int.
9506
9507 * xterm.c (x_filter_event): New function.
9508 (event_handler_gdk, XTread_socket): Call x_filter_event.
9509 (x_dispatch_event): Change to return value of finish.
9510 (event_handler_gdk): Use return value from x_dispatch_event.
9511
9512 * xfns.c (x_window): Call create_frame_xic for GTK version to
9513 initialize input methods.
9514
9515 * gtkutil.h: Add (void) prototypes.
9516
9517 * gtkutil.c (create_menus): Remove code that puts the help menu to
9518 the right.
9519
54eefef1
JR
95202003-01-25 Jason Rumney <jasonr@gnu.org>
9521
9522 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9523 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9524 (png_load): Adjust colors for Windows. Use Windows
9525 bitmaps. Disable color table lookups.
c262430d
JR
9526 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9527 (init_png_functions): New function.
9528 (png_read_from_memory, png_load): Call png library functions
9529 through pointers determined at runtime.
9530 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9531 (init_external_image_libraries): New function.
9532 (init_xfns): Call it.
54eefef1 9533
1a9e275b
AS
95342003-01-24 Andreas Schwab <schwab@suse.de>
9535
9536 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9537
a97e4138 95382003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9539
9540 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9541 of static initializer.
9542
422eec7e
DL
95432003-01-24 Dave Love <fx@gnu.org>
9544
9545 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9546 architectures.
9547
9548 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9549 Use __alignof__.
9550
2a026b04
KH
95512003-01-24 Kenichi Handa <handa@m17n.org>
9552
9553 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9554 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9555 (command_loop_1): Call adjust_point_for_property with proper
9556 second arg.
9557
a18bb28d
JR
95582003-01-22 Jason Rumney <jasonr@gnu.org>
9559
9560 Sync changes with xterm.c and xfns.c.
9561
9562 * w32term.c (x_draw_glyph_string_foreground)
9563 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9564
9565 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9566 phys_cursor's hpos is overwritten. This is still not completely
9567 correct, as it doesn't really make sense to use hpos at all to
9568 get the cursor glyph (as that is relative to the width of the
9569 characters on the line, which may have changed during the update).
9570
9571 * w32term.c (notice_overwritten_cursor): Handle the special case
9572 of the cursor being in the first blank non-text line at the
9573 end of a window.
9574
9575 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9576 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9577 Compute from the x position returned by x_draw_glyphs.
9578
9579 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9580 except for NO_CURSOR and system caret, to make phys_cursor_width
9581 contain what its name suggests.
9582 (notice_overwritten_cursor): Consider the cursor image erased if
9583 the output area intersects the cursor image in y-direction.
9584
6a097c0c
SM
9585 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9586 note_mode_line_highlight and extend.
a18bb28d
JR
9587
9588 * w32term.c (last_window): New variable.
9589 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9590 (note_mouse_movement): Remove reimplemented code in #if 0.
9591
9592 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9593 not update_mode_lines, and always set it to 1.
9594
ac6e47ef
JR
95952003-01-21 Jason Rumney <jasonr@gnu.org>
9596
9597 * w32fns.c (IDC_HAND): Define it if system headers don't.
9598
95992003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9600
9601 * w32term.h (struct w32_output): New member hand_cursor.
9602 (WM_EMACS_SETCURSOR): New message definition.
9603
9604 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9605 function w32_define_cursor.
9606 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9607 position, change member name output_data.x to output_data.w32 and
9608 add function w32_define_cursor.
9609 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9610 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9611 (w32_initialize_display_info):
9612 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9613
9614 * w32fns.c (Vx_hand_shape): New variable.
9615 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9616 WM_EMACS_SETCURSOR.
9617 (x-create-frame): Setup Cursor types.
9618
ceb39a17
JB
96192003-01-21 David Ponce <david@dponce.com>
9620
ac6e47ef 9621 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9622 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9623 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9624 2002-09-30.)
ac6e47ef
JR
9625 (w32_draw_relief_rect): Declare all args.
9626 (w32_define_cursor): New.
9627
9628 * w32fns.c (w32_load_cursor): New function.
9629 (w32_init_class): Use it.
9630 (x_put_x_image): Declare all args.
9631
b6189c3b 96322003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9633
9634 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9635
a97e4138 96362003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9637
9638 * gtkutil.c: Must include stdio.h before termhooks.h
9639
83fc9c63
DL
96402003-01-21 Dave Love <fx@gnu.org>
9641
9642 * alloc.c (Fgc_status): Print zombie list.
9643 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9644 Fix assignment of zombies.
9645 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9646 Don't take car of non-cons.
9647
9648 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9649
9650 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9651
fe04b8c8
JR
96522003-01-20 David Ponce <david@dponce.com>
9653
9654 * w32menu.c (digest_single_submenu): Declare all args.
9655
9656 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9657 changes in xmenu.c:
9658
9659 (parse_single_submenu): Use individual keymap's prompt
9660 string as pane name, if there is one.
9661 (set_frame_menubar): Save menu_items_n_panes from each call to
9662 parse_single_submenu and use it when calling digest_single_submenu.
9663
539e69a9
ST
96642003-01-20 Steven Tamm <steventamm@mac.com>
9665
9666 * macterm.c (XTread_socket): Checks for valid, visible window
9667 before sending a scroll-wheel event.
9668
675d000f
RS
96692003-01-20 Richard M. Stallman <rms@gnu.org>
9670
9671 * xdisp.c (redisplay_window): If mini window's buffer is not
9672 a minibuffer, then redisplay it like other windows.
9673
a97e4138 96742003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9675
9676 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9677 external tool bar before setting tool bar height.
9678
048addec
JD
96792003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9680
9681 * xterm.c (handle_one_xevent): Surround popup_activated
9682 with #ifdef:s for non-toolkit version.
9683
9684 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9685 (gtkutil.o): New file.
9686 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9687 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9688
9689 * gtkutil.c: New file for GTK version.
9690
9691 * gtkutil.h: New file for GTK version.
9692
9693 * xterm.h: Add xt_or_gtk_widget.
9694 Include gtk files for USE_GTK.
9695 (struct x_output): Add toolbar_height.
9696 (struct x_output): Add GTK widgets and Gdk size_hints.
9697 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9698 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9699 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9700
9701 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9702 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9703 (note_mouse_highlight): Check popup_activated for USE_GTK.
9704 (xt_action_hook): Don't compile if USE_GTK.
9705 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9706 (xg_scroll_callback): New function.
9707 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9708 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9709 for USE_GTK.
9710 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9711 xg_show_scroll_bar for USE_GTK.
9712 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9713 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9714 (event_handler_gdk): New function for USE_GTK.
9715 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9716 (handle_one_xevent): Make sure widget is mapped before
9717 calling x_real_positions for USE_GTK.
9718 (XTread_socket): Add GTK event loop for USE_GTK.
9719 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9720 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9721 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9722 (x_iconify_frame): Add code for USE_GTK.
9723 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9724 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9725 is in gtkutil.c.
9726 (x_term_init): Add initialization for GTK.
9727 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9728
9729 * xmenu.c: Include gtkutil.h for USE_GTK.
9730 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9731 (single_menu_item, single_menu_item, Fx_popup_dialog):
9732 Check for USE_GTK.
048addec
JD
9733 (popup_widget_loop): New function for USE_GTK.
9734 (x_activate_menubar): Add code for USE_GTK.
9735 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9736 (menu_highlight_callback, menubar_selection_callback):
9737 Add USE_GTK versions.
048addec
JD
9738 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9739 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9740 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9741 is in gtkutil.c.
9742 (popup_selection_callback): New version for USE_GTK.
9743 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9744 one USE_X_TOOLKIT version.
048addec
JD
9745 (xmenu_show): Call create_and_show_popup_menu.
9746 (dialog_selection_callback): New version for USE_GTK.
9747 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9748 one USE_X_TOOLKIT version.
048addec
JD
9749 (xdialog_show): Call create_and_show_dialog.
9750
9751 * xfns.c: Include gtkutil for USE_GTK.
9752 (x_window_to_frame, x_any_window_to_frame)
9753 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9754 (x_top_window_to_frame): Add code for USE_GTK.
9755 (x_set_background_color): Call xg_set_background_color for GTK.
9756 (x_set_menu_bar_lines): Check for USE_GTK.
9757 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9758 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9759 (x_window): Call xg_create_frame_widgets for USE_GTK.
9760 (Fx_create_frame): Check for USE_GTK
9761 (Fx_file_dialog): New implementation for USE_GTK.
9762
9763 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9764 (update_menu_bar): Add check for USE_GTK.
9765 (update_tool_bar): Add check for USE_GTK and external tool bar.
9766 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9767 (redisplay_internal): Add check for USE_GTK and popup_activated.
9768 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9769 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9770 (display_menu_bar): Add check for USE_GTK
9771
78819ebb 9772 * lisp.h (Vx_resource_name): Declare extern.
048addec 9773
a64387ee 9774 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9775 for USE_GTK.
9776 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9777
9778 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9779 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9780 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9781
9782 * fileio.c (Fread_file_name): Add check for USE_GTK.
9783
6bdb309a
SM
9784 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9785 Add check for USE_GTK.
048addec
JD
9786
9787 * config.in: Added HAVE_GTK
9788
9789 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9790
97912003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9792
9793 * charset.h (Funibyte_char_to_multibyte): Export.
9794
97952003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9796
9797 * xmenu.c (mouse_position_for_popup): New function.
9798 (Fx_popup_menu): Call mouse_position_for_popup for X and
9799 mouse_position_hook for others.
9800
98012003-01-17 Kim F. Storm <storm@cua.dk>
9802
9803 * editfns.c (Finsert): Mention `string-make-multibyte' and
9804 `string-as-multibyte' in doc string.
9805
98062003-01-17 Kenichi Handa <handa@m17n.org>
9807
9808 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9809
048addec
JD
9810 * editfns.c (Fformat): Convert an unibyte char argument that is
9811 formatted by "%c" to multibyte if the total result must be a
9812 multibyte string.
cd7df9c0 9813
048addec 98142003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9815
048addec
JD
9816 * process.c (set-process-filter): Document unibyte/multibyte-ness
9817 of string argument.
56210ecd 9818
048addec 98192003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9820
048addec 9821 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9822
048addec
JD
9823 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9824 (re_search_2): Likewise.
6df8b9fe 9825
048addec 98262003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9827
048addec
JD
9828 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9829 buffer is unibyte.
292ddc31 9830
048addec 98312003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9832
048addec 9833 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9834
048addec
JD
9835 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9836 (Fprevious_char_property_change)
9837 (Fnext_single_char_property_change)
9838 (Fprevious_single_char_property_change, Fnext_property_change)
9839 (Fnext_single_property_change, Fprevious_property_change)
9840 (Fprevious_single_property_change, Fadd_text_properties)
9841 (Fput_text_property, Fset_text_properties)
9842 (Fremove_text_properties, Fremove_list_of_text_properties)
9843 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9844
048addec 98452003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9846
048addec
JD
9847 * process.h (struct Lisp_Process): New member plist replaces old
9848 member private_vars. All uses changed.
63e4e4c6 9849
048addec 9850 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9851 (QCplist): Rename from QCvars. Change all uses.
048addec 9852 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9853 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9854 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9855 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9856
048addec 98572003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9858
6bdb309a 9859 * m/delta.h: Remove (obsolete).
e833850f 9860
048addec 98612003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9862
048addec
JD
9863 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9864 behaviour in front of symlinks.
9865 (Fdelete_file): Raise an error on directories.
817cb127 9866
048addec 98672003-01-13 Dave Love <fx@gnu.org>
817cb127 9868
048addec 9869 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9870
048addec 98712003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9872
048addec
JD
9873 * minibuf.c (minibuffer_completion_contents):
9874 Error if point is inside prompt.
3e8cf2ea 9875
048addec
JD
9876 * keyboard.c (command_loop_1): Don't redisplay directly
9877 if there's a post-command-hook.
3e8cf2ea 9878
048addec
JD
9879 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9880 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9881
048addec 98822003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9883
048addec 9884 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9885
048addec
JD
9886 * process.c (QCvars): New variable.
9887 (syms_of_process): Intern and staticpro it.
9888 (Fset_process_contact): Removed function.
9889 (Fprocess_variable, Fset_process_variable): New functions.
9890 (syms_of_process): Defsubr them.
9891 (Fstart_process): Initialize private_vars plist to nil.
9892 (Fmake_network_process): New arg :vars to setup the private
9893 variables for new network process.
9894 (server_accept_connection): Copy server's private variables to
9895 client process.
2c10f029 9896
048addec
JD
9897 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9898 crashes). Code rewritten and simplified. Now directly aligns the
9899 pointer and recalculates pure_bytes_used, rather than aligning the
9900 size and adjusting the pointer.
b8a76c6c 9901
048addec 99022003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9903
048addec
JD
9904 * process.c (Fset_process_contact): New function.
9905 (syms_of_process): defsubr it.
9906 (make-network-process): Update doc.
3a8d0899 9907
048addec 99082003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9909
048addec
JD
9910 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9911 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9912
048addec 99132003-01-10 Dave Love <fx@gnu.org>
4abc7470 9914
048addec 9915 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9916
048addec 99172003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9918
048addec
JD
9919 * process.c (Fmake_network_process): Convert new port number
9920 to host byte order for `:service t' case. From Mario Lang.
bf338245 9921
048addec 99222003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 9923
048addec
JD
9924 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9925 instead of XtAppProcessEvent.
bf338245 9926
048addec
JD
9927 * xterm.c (handle_one_xevent): New function.
9928 (x_dispatch_event): New function.
9929 (XTread_socket): Call handle_one_xevent.
bf338245 9930
048addec 9931 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 9932
048addec
JD
9933 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9934 call XQueryPointer to get coordinates.
9935 (popup_get_selection): Do not set popup_activated_flag to zero,
9936 let popup_deactivate_callback do that. Needed for Motif.
9937 Call x_dispatch_event instead of XtDispatchEvent.
9938 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9939
048addec 99402003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9941
6bdb309a 9942 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9943 connection's local address in :local property of contact info.
9944 (Fmake_network_process): Record local network address for new
9945 client processes in :local property of contact info.
6bdb309a 9946 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9947
048addec 99482003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9949
048addec 9950 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9951
048addec 99522003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9953
048addec 9954 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9955
048addec
JD
9956 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9957 use the same test as for custom-variable-p.
8c6d74c6 9958
048addec 99592003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9960
048addec
JD
9961 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9962 Count LAST_LINE_MISFIT in scroll margin for end of window.
9963 Move label too_near_end before setting SCROLL_MARGIN_POS.
9964 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 9965
048addec
JD
9966 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9967 scroll_conservatively case. If scrolling that much doesn't change
9968 STARTP, move it down one line.
e833850f 9969
048addec
JD
9970 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9971 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 9972
048addec
JD
9973 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9974 selected frame.
8c6d74c6 9975
048addec
JD
9976 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9977 (syms_of_keymap): staticpro them.
9978 (Fapropos_internal): Initialize them and clear them out.
9979 Don't GCPRO them.
8c6d74c6 9980
048addec
JD
9981 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9982 Doc fixes.
8c6d74c6 9983
048addec
JD
9984 * lisp.h: New misc type Lisp_Save_Value.
9985 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9986 (XSAVE_VALUE): New macro.
9987 (struct Lisp_Save_Value): New data type.
9988 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 9989 (make_save_value): Declare.
8c6d74c6 9990
048addec 9991 * alloc.c (make_save_value): New function.
8c6d74c6 9992
048addec
JD
9993 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9994 (x_catch_errors_unwind): Call XSync.
8c6d74c6 9995
048addec 99962003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 9997
048addec 9998 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 9999
048addec
JD
10000 * keyboard.c (command_loop_1): Call adjust_point_for_property
10001 in direct action cases for Qforward_char and Qbackward_char.
10002 Set already_adjusted so it won't be done twice.
8c6d74c6 10003
b6189c3b 100042002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10005
048addec
JD
10006 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10007 type definition of size_t.
8c609cff 10008
048addec 100092003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10010
048addec
JD
10011 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10012 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10013
048addec 100142002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10015
048addec
JD
10016 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10017 to default to t.
fa634a5e 10018
048addec 100192002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10020
048addec 10021 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10022
048addec 100232002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10024
048addec
JD
10025 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10026 allow building in a different directory than source. Uses some
10027 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10028
048addec 100292002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10030
048addec
JD
10031 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10032 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10033 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10034 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10035
048addec 100362002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10037
048addec
JD
10038 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10039 <scroll-down-aggressively>: Doc fix.
2155ecf3 10040
048addec
JD
10041 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10042 string as pane name, if there is one.
10043 (set_frame_menubar): Save menu_items_n_panes from each call to
10044 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10045
048addec
JD
10046 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10047 Don't try to make last line fully visible if it is past end of window.
61f1d295 10048
048addec 100492002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10050
048addec
JD
10051 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10052 (mac_menu_show): Add support for hierarchical popup menus.
10053 (add_menu_item): Remove indentation support.
10054 (fill_submenu, fill_menu): Create hierarchical menus
10055 instead of using indentation.
0b17a217 10056
048addec 100572002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10058
048addec
JD
10059 * xdisp.c (try_cursor_movement): Don't call try_window here.
10060 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10061
048addec 10062 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10063
048addec 100642002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10065
048addec
JD
10066 * macterm.c (XTread_socket): Call KeyTranslate for control and
10067 meta to deal correctly shifted non-alpha characters, like C-S-5
10068 being treated like C-%. Does not look for shift key to deal
10069 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10070
048addec 100712002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10072
048addec
JD
10073 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10074 If it is non-nil, run timers. Use an unwind-protect to requeue
10075 the events that were read ahead.
10076 (popup_get_selection_unwind): New subroutine.
10077 (popup_get_selection_queue): File-scope variable now holds that queue.
10078 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10079 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10080 Use an unwind-protect to pop down the dialog box.
10081 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10082
048addec
JD
10083 * xdisp.c (row_containing_pos): Change exit test using last_y.
10084 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10085
048addec
JD
10086 * lread.c (load_error_handler): New function.
10087 (Fload): Handle errors in Fsubstitute_in_file_name.
10088 Don't expect Fsignal to return.
f02cac82 10089
048addec
JD
10090 * eval.c: Errors and throws work right with interrupt blocking.
10091 (struct catchtag): New elt interrupt_input_blocked.
10092 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10093 (internal_catch, Fcondition_case, internal_condition_case)
10094 (internal_condition_case_1, internal_condition_case_2): Save it.
10095 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10096
048addec 10097 * editfns.c (Fformat): Add parens.
f02cac82 10098
048addec
JD
10099 * dired.c (file_name_completion): Fix that change.
10100 Delete special quit-handling code; just use QUIT.
f02cac82 10101
b6189c3b 101022002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10103
048addec
JD
10104 * dired.c (file_name_completion): Close directory on error
10105 just as in directory_files_internal.
1a590729 10106
048addec 101072002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10108
048addec
JD
10109 * window.c (Fset_window_configuration): Set old_point to correct
10110 value when new_current_buffer == current_buffer.
f02cac82 10111
048addec 101122002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10113
048addec
JD
10114 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10115 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10116 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10117
048addec
JD
10118 These changes were in part based upon suggestions made by Peter
10119 'Luna' Runestig [peter@runestig.com].
9785d95b 10120
048addec
JD
10121 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10122 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10123 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10124 global variables.
9785d95b 10125
048addec
JD
10126 * w32.c (globals_of_w32): New function. Used to initialize those
10127 global variables that must always be initialized on startup even
10128 when the global variable initialized is non zero. Its primary
10129 purpose at this time is to set the global variables
10130 g_b_init_is_windows_9x, g_b_init_open_process_token,
10131 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10132 g_b_init_get_sid_identifier_authority to 0 on startup.
10133 Called from main.
9785d95b 10134
048addec
JD
10135 * w32.c (is_windows_9x): Perform initialization only if
10136 g_b_init_is_windows_9x is equal to 0. On initialization set
10137 g_b_init_is_windows_9x equal to 1.
2308af15 10138
048addec
JD
10139 * w32.c (open_process_token): Perform initialization only if
10140 g_b_init_open_process_token is equal to 0. On initialization set
10141 g_b_init_open_process_token equal to 1.
2308af15 10142
048addec
JD
10143 * w32.c (get_token_information): Perform initialization only if
10144 g_b_init_get_token_information is equal to 0. On initialization
10145 set g_b_init_get_token_information equal to 1.
9785d95b 10146
048addec
JD
10147 * w32.c (lookup_account_sid): Perform initialization only if
10148 g_b_init_lookup_account_sid is equal to 0. On initialization
10149 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10150
048addec
JD
10151 * w32.c (get_sid_identifier_authority): Perform initialization
10152 only if g_b_init_get_sid_identifier_authority is equal to 0.
10153 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10154
f63fd14e 10155 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10156 those global variables that must always be initialized on startup
10157 even when the global variable initialized is non zero.
10158 Its primary purpose at this time is to initialize the global variable
10159 track_mouse_event_fn.
9785d95b 10160
a64387ee 10161 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10162 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10163
048addec 10164 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10165
f63fd14e 10166 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10167 initialize those global variables that must always be initialized
10168 on startup even when the global variable initialized is non zero.
10169 Its primary purpose at this time is to initialize the global
10170 variables get_menu_item_info and set_menu_item_info.
9785d95b 10171
048addec
JD
10172 * w32menu.c (initialize_frame_menubar): Remove initialization of
10173 get_menu_item_info and set_menu_item_info.
9785d95b 10174
048addec 10175 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10176
048addec
JD
10177 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10178 Declare them.
9785d95b 10179
048addec
JD
10180 * emacs.c (main): Call globals_of_w32 prior to calling
10181 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10182 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10183 is defined.
9785d95b 10184
048addec
JD
10185 * w32term.c (x_update_window_begin): Fix Windows API error
10186 detected by BoundsChecker. Test to determine if
10187 w32_system_caret_hwnd is NULL prior to attempting to use
10188 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10189
048addec
JD
10190 * w32term.c (x_update_window_end): Fix Windows API error
10191 detected by BoundsChecker. Test to determine if
10192 w32_system_caret_hwnd is NULL prior to attempting to use
10193 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10194
048addec 101952002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10196
048addec
JD
10197 * coding.c (coding_system_require_warning): New variable.
10198 (syms_of_coding): DEFVAR it.
b6da19ef 10199
048addec 10200 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10201
048addec
JD
10202 * fileio.c (choose_write_coding_system): Even if
10203 Vcoding_system_for_write is non-nil, if
10204 coding_system_require_warning is nonzero, call
10205 Vselect_safe_coding_system_function.
bfcf6dbe 10206
048addec 102072002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10208
048addec
JD
10209 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10210 (lisp): Add font-core.
2c568af5 10211
048addec 102122002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10213
048addec
JD
10214 * textprop.c (text_read_only): New arg `propval'.
10215 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10216 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10217
048addec 102182002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10219
048addec 10220 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10221
048addec 102222002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10223
048addec
JD
10224 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10225 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10226 Be more careful about when help_events are generated.
96720f09 10227
048addec 102282002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10229
048addec
JD
10230 * macterm.c (mac_check_for_quit_char): Correctly set the
10231 modifiers of the event to 0.
10232 * mac.c (sys_select): Duplicate rfds before calling select to
10233 ensure that rfds survive the while loop.
e5ae1c49 10234
048addec 102352002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10236
048addec
JD
10237 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10238 row_containing_pos returned NULL.
2eb46b2d 10239
048addec 102402002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10241
6bdb309a 10242 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10243 non-blocking.
6bdb309a 10244 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10245 the one given.
b11f1d8a 10246
048addec 102472002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10248
048addec 10249 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10250
048addec 102512002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10252
048addec
JD
10253 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10254 as the last thing.
a4ac5b17 10255
048addec 102562002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10257
048addec 10258 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10259
048addec 102602002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10261
048addec
JD
10262 * editfns.c (Fformat): Handle precision in string conversion
10263 specifiers like libc functions do (ie, print at most that many
10264 characters).
85cce843 10265
048addec 102662002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10267
048addec
JD
10268 * xdisp.c (row_containing_pos): Check more carefully
10269 whether charpos is really in the row before returning it.
0d4d26a7 10270
048addec 102712002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10272
048addec 10273 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10274
048addec
JD
10275 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10276 each stack frame. This may change as it could be time consuming.
0d4d26a7 10277
048addec
JD
10278 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10279 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10280 (mac_initialize): Add code to check for pressing of quit_char
048addec 10281 in the OS event queue.
b11f1d8a 10282
048addec
JD
10283 * mac.c (sys_select): Call mac_check_for_quit_char every second
10284 while blocking on select.
0d4d26a7 10285
048addec
JD
10286 * mac.c (sys_read): Use sys_select to test for input first
10287 before calling read, to allow C-g to break.
9252f7bc 10288
048addec 102892002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10290
048addec 10291 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10292
048addec 10293 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10294
048addec 10295 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10296
048addec
JD
10297 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10298 autoload.
9252f7bc 10299
048addec 10300 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10301
048addec 10302 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10303
048addec 103042002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10305
048addec 10306 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10307
048addec 103082002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10309
048addec 10310 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10311
048addec 10312 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10313
048addec 10314 * alloca.c: Don't use #error.
02d588e2 10315
048addec 103162002-12-03 Dave Love <fx@gnu.org>
02d588e2 10317
048addec
JD
10318 * buffer.c (Qucs_set_table_for_input): New.
10319 (Fget_buffer_create): Use it.
10320 (Qset_buffer_major_mode_hook): Deleted.
10321 (Fset_buffer_major_mode): Revert previous change.
10322 (init_buffer_once): Intern ucs-set-table-for-input.
10323 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10324 Add &Qucs_set_table_for_input.
451e2697 10325
048addec 103262002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10327
048addec
JD
10328 * callint.c (Fcall_interactively): Use next_event only if less
10329 than key_count.
72742a99 10330
048addec 103312002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10332
048addec
JD
10333 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10334 names to 255 characters.
72742a99 10335
048addec
JD
10336 * macterm.c (XTread_socket): If all frames have been collapsed,
10337 expand the first one before handling drag-and-drop events.
72742a99 10338
048addec
JD
10339 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10340 which is detected by autoconf.
40e6ff95 10341
048addec 103422002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10343
048addec
JD
10344 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10345 offset in two hints table to allow prebinding to be redone and
10346 allow the executable to be stripped.
c02138c6 10347
048addec 103482002-11-29 Dave Love <fx@gnu.org>
c02138c6 10349
048addec
JD
10350 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10351 already provided.
0e47bbf7 10352
048addec 103532002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10354
048addec
JD
10355 * xdisp.c (start_display): Check more intelligently for
10356 whether the line is continued.
10357 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10358
048addec 103592002-11-28 Dave Love <fx@gnu.org>
44129dcb 10360
048addec
JD
10361 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10362 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10363
048addec 103642002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10365
048addec
JD
10366 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10367 more descriptive error output from lread.c:Fload upon most require
10368 cycles during boostrapping.
1637fd2c 10369
048addec 103702002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10371
048addec
JD
10372 * fileio.c (Finsert_file_contents): Give a more appropriate error
10373 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10374
048addec
JD
10375 * dired.c (Ffile_attributes): Don't return negative file sizes for
10376 files bigger than 2Gb when off_t is 32 bit.
540c2788 10377
048addec 103782002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10379
048addec 10380 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10381
048addec
JD
10382 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10383 Test GETPGRP_VOID instead.
10384 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10385
048addec
JD
10386 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10387 Don't define.
10388 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10389
048addec 10390 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10391
048addec 103922002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10393
048addec
JD
10394 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10395 supported.
4042a81a 10396
048addec 103972002-11-25 Dave Love <fx@gnu.org>
4042a81a 10398
048addec 10399 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10400
048addec 10401 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10402
048addec 104032002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10404
048addec 10405 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10406
048addec 104072002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10408
048addec
JD
10409 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10410 determine the size of pointers alloced in unexed space instead
10411 of using possibly invalid emacs_zone pointers. This fixes the
10412 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10413
048addec 104142002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10415
048addec 10416 * search.c (Fstring_match): Doc fix.
c1ee53bc 10417
048addec
JD
10418 * callint.c (Fcall_interactively): If a command fails because
10419 `*' detects a read-only buffer, but RECORD_FLAG is set,
10420 record it anyway if the args don't actually do tty input.
5598c32e 10421
048addec 104222002-11-22 Dave Love <fx@gnu.org>
5598c32e 10423
048addec 10424 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10425
048addec
JD
10426 * keyboard.c (interrupt_signal): Provide forward declaration.
10427 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10428
048addec 10429 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10430
048addec 104312002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10432
048addec
JD
10433 * eval.c (interactive_p): Skip any number of bytecode
10434 and special form frames, in any order.
516eea8e 10435
048addec 104362002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10437
048addec
JD
10438 * w32fns.c (convert_mono_to_color_image): New function.
10439 (xbm_load, xbm_load_image): Use it when foreground or background
10440 is explicitly set.
04dbfa08 10441
048addec 104422002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10443
048addec 10444 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10445
048addec 104462002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10447
048addec
JD
10448 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10449 (XPutPixel): Swap blue and red.
10450 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10451 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10452 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10453 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10454
048addec 104552002-11-18 Dave Love <fx@gnu.org>
d824beee 10456
048addec 10457 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10458
048addec 10459 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10460
048addec 10461 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10462
048addec
JD
10463 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10464 malloc, realloc, calloc.
d824beee 10465
048addec
JD
10466 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10467 (bcmp): Don't define.
d824beee 10468
048addec 10469 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10470
048addec 10471 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10472
048addec 10473 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10474
048addec 10475 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10476
048addec
JD
10477 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10478 Don't include alloca.h.
d824beee 10479
048addec 10480 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10481
048addec 10482 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10483
048addec 10484 * process.c (_GNU_SOURCE): Don't define.
1998560a 10485
048addec 10486 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10487
048addec 104882002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10489
048addec 10490 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10491
048addec 104922002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10493
048addec
JD
10494 * dispextern.h (struct face): Add `overstrike' field.
10495 * xterm.c (x_draw_glyph_string_foreground)
10496 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10497 * xfaces.c (load_face_font): Set `face->overstrike' based on
10498 result from choose_face_font.
10499 (best_matching_font, choose_face_font): Add `needs_overstrike'
10500 argument, and use it to return whether overstriking is desirable
10501 for this face/font combo.
10502 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10503
048addec 105042002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10505
048addec
JD
10506 This change is my fix for the following entry in etc/PROBLEMS:
10507 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10508 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10509
048addec
JD
10510 * w32.c: Added wrapper functions around the win32 API functions
10511 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10512 GetSidIdentifierAuthority. These wrapper functions serve two
10513 purposes:
10514 1. They ensure that the wrapped function can never be called
10515 when Emacs is running on an operating system on which they are
10516 not supported (Microsoft Windows 95 / 98 / ME).
10517 2. They call the wrapped functions via function pointers rather
10518 than calling them directly. This avoids taking advantage of the
10519 undocumented fact that although these functions are not supported
10520 in the 9x branch of Microsoft Windows, the functions do exist in
10521 the version of advapi32.dll that is found in the 9x branch of
10522 Microsoft Windows.
f60ae425 10523
6bdb309a 10524 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10525 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10526 and GetSidIdentifierAuthority with calls to the newly added
10527 wrapper functions.
f60ae425 10528
048addec
JD
10529 * w32.h: Added extern declarations for the following functions:
10530 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10531 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10532
6bdb309a 10533 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10534 function pointer track_mouse_event_fn in the handler for the
10535 WM_SETFOCUS message.
3582b6a3 10536
6bdb309a 10537 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10538 reinitialize the function pointers set_menu_item_info and
10539 get_menu_item_info.
f60ae425 10540
048addec 105412002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10542
048addec
JD
10543 * sound.c: Added a partial implementation of play-sound-internal
10544 for Microsoft Windows. Added various #ifdef / #else / #endif
10545 code blocks to separate the code that will compile under
10546 Microsoft Windows from the code that is specific to Gnu/Linux.
10547 Moved several blocks of code around to make this separation of code
10548 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10549
048addec 10550 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10551
048addec
JD
10552 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10553 added support for play-sound-internal under Windows would be
10554 included in the build of Emacs.
517f42a0 10555
048addec 105562002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10557
048addec 10558 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10559
048addec 10560 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10561
048addec 105622002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10563
048addec
JD
10564 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10565 (adjust_point_for_property): Move out of display and invisible even if
10566 we were already inside before (in case a property was added while
10567 we weren't looking). Be more careful when handling invisible props.
10568 Skip invisible text as if it really wasn't there at all.
aab83f91 10569
048addec 105702002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10571
048addec
JD
10572 * w32term.c (x_draw_image_foreground)
10573 (w32_draw_image_foreground_1): Use standard copy and invert
10574 operations to draw images.
aab83f91 10575
048addec
JD
10576 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10577 depth of 1.
10578 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10579 (XPutPixel): Don't invert bits here.
a4478a76 10580
048addec 105812002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10582
048addec
JD
10583 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10584 (w32_draw_image_foreground_1): Handle image masks.
10585 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10586
048addec
JD
10587 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10588 (x_from_xcolors): Adjust RGB values for W32.
10589 (image_background, image_background_transparent)
10590 (postprocess_image, x_to_xcolors, x_disable_image)
10591 (x_build_heuristic_mask): Adapt for W32 and enable.
10592 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10593 (xbm_load): Remove unused variable.
03670a65 10594
048addec 105952002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10596
048addec 10597 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10598
048addec 105992002-11-14 Dave Love <fx@gnu.org>
59daa29a 10600
048addec 10601 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10602
048addec
JD
10603 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10604 * xmenu.c (unuse_menu_items, digest_single_submenu):
10605 * xfns.c (x_put_x_image):
10606 * xdisp.c (message2_nolog, set_message):
10607 * undo.c (record_point):
10608 * terminfo.c (tparam):
10609 * syntax.c (scan_sexps_forward):
10610 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10611 * composite.c (update_compositions):
10612 * cm.c (calccost, cmgoto):
10613 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10614
048addec 10615 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10616
048addec
JD
10617 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10618 Don't declare.
59daa29a 10619
048addec 10620 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10621
048addec
JD
10622 * fns.c (Fcopy_sequence): Doc fix.
10623 (Fmap_char_table): Cast `call2'.
3947677c 10624
048addec
JD
106252002-11-14 Francesco Potorti` <pot@gnu.org>
10626
10627 * s/sol2-8.h: New file.
10628
106292002-11-14 Kim F. Storm <storm@cua.dk>
10630
10631 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10632 dependency on `risky-local-variable' and the :propertize form.
10633
106342002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10635
10636 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10637
10638 * syntax.c (scan_sexps_forward): Undo last patch.
10639 Use a more obvious fix: check eob before updating the syntax table.
10640
106412002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10642
10643 * syntax.c (scan_sexps_forward): Update syntax table before reading
10644 a char rather than after so we don't update the table past eob.
10645
106462002-11-09 Dave Love <fx@gnu.org>
10647
10648 * buffer.c (Fset_buffer_major_mode): Fix last change.
10649
10650 * regex.c (regexec): Fix pmatch declaration.
10651
10652 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10653
10654 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10655 to self-inserting characters.
10656 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10657
10658 * coding.c (Vtranslation_table_for_input): New.
10659 (syms_of_coding): DEFVAR it.
10660
106612002-11-08 Juanma Barranquero <lektu@terra.es>
10662
10663 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10664 window.
10665
106662002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10667
6bdb309a 10668 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10669 cp, and i.
10670
106712002-11-06 Dave Love <fx@gnu.org>
10672
10673 * buffer.c (Qset_buffer_major_mode_hook): New.
10674 (Fset_buffer_major_mode): Use it.
10675
106762002-11-06 Richard M. Stallman <rms@gnu.org>
10677
10678 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10679 and stop_polling.
10680
10681 * process.c (wait_reading_process_input):
10682 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10683 Avoid initialization for auto Lisp_Object var.
10684
10685 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10686
10687 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10688
106892002-11-05 Richard M. Stallman <rms@gnu.org>
10690
10691 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10692
10693 * callint.c (Fcall_interactively): New local filter_specs.
10694 (Fcall_interactively): Check for progn as well as let.
10695 Add a gcpro.
10696 (Qprogn): New variable.
10697 (syms_of_callint): Staticpro and init Qprogn.
10698
106992002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10700
10701 * lread.c (Feval_buffer): Doc fix.
10702
107032002-11-04 Dave Love <fx@gnu.org>
10704
10705 * keyboard.c (read_char): Always translate iff
10706 Vkeyboard_translate_table is a char table and c is valid.
10707
10708 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10709 and fix C types.
10710
107112002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10712
10713 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10714
10715 * editfns.c (get_pos_property): Don't hardcode Qfield.
10716
10717 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10718 overlays. Also handle `invisible' prop.
10719
107202002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10721
10722 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10723 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10724
107252002-11-01 Andreas Schwab <schwab@suse.de>
10726
10727 * editfns.c (Fmessage): Revert last change to properly handle %%.
10728
107292002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10730
10731 * xmenu.c (unuse_menu_items): New fun.
10732 (menu_items_inuse): New var.
10733 (syms_of_xmenu): Initialize it.
10734 (init_menu_items): Use it to detect re-entrance.
10735 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10736 (Fx_popup_menu): Remove spurious XSETFRAME.
10737
10738 * editfns.c (find_field): Make an exception for nil fields.
10739
107402002-11-01 Dave Love <fx@gnu.org>
10741
10742 * m/gec63.h: Deleted.
10743
107442002-10-31 Dave Love <fx@gnu.org>
10745
10746 * xterm.c (XTread_socket): Fix last change.
10747 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10748
107492002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10750
10751 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10752
107532002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10754
10755 * editfns.c (overlays_around, get_pos_property): New funs.
10756 (find_field): Use them.
10757 Also be careful not to modify POS before its last use.
10758 (Fmessage): Don't Fformat if there's nothing to format.
10759
107602002-10-30 Dave Love <fx@gnu.org>
10761
10762 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10763 [HAVE_PTY_H]; Include pty.h.
10764
10765 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10766
10767 * xterm.c (Qeql): Declare.
10768 (Vx_keysym_table): New.
10769 (syms_of_xterm): Initialize it.
10770 (XTread_socket): Use it. Deal with ASCII keysyms.
10771 (XSetIMValues) [HAVE_X11R6]: Prototype.
10772
10773 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10774 (lispy_kana_keys): Comment out.
10775 (make_lispy_event) [XK_kana_A]: Comment out.
10776 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10777 Fix sprintf call.
10778
10779 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10780 regexp.h change).
10781 (TERMINFO, LIBS_TERMCAP): Define.
10782
10783 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10784 (bcmp): Define conditional on HAVE_BCMP.
10785 (NO_SIOCTL_H): Don't define.
10786 (TIOCSIGSEND): Don't make conditional on IRIX6.
10787
10788 * s/sol2-5.h: Don't include strings.h.
10789 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10790
10791 * s/irix6-0.h (IRIX6): Don't define.
10792 (bcopy, bcmp, bzero): Don't undef.
10793
10794 * s/irix6-5.h: Don't include strings.h.
10795 (IRIX6): Don't define.
10796 (bcopy, bcmp, bzero): Don't undef.
10797
10798 * syntax.c (Fforward_comment): Doc fix.
10799
108002002-10-29 Kim F. Storm <storm@cua.dk>
10801
10802 * process.c (Fsignal_process): Allow PROCESS to be specified by
10803 name in addition to pid (as integer or string).
10804
108052002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10806
10807 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10808 environments.
10809
108102002-10-27 Kim F. Storm <storm@cua.dk>
10811
10812 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10813
10814 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10815
10816 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10817
10818 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10819
108202002-10-26 Richard M. Stallman <rms@gnu.org>
10821
10822 * editfns.c (Fformat): Detect invalid format letters for floats.
10823
108242002-10-25 Kenichi Handa <handa@m17n.org>
10825
10826 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10827 (x_set_title): Likewise.
10828
108292002-10-25 Juanma Barranquero <lektu@terra.es>
10830
10831 * macgui.h:
10832 * w32gui.h: Remove definition of XColor.
10833
10834 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10835
108362002-10-24 Kim F. Storm <storm@cua.dk>
10837
10838 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10839 Callers changed (supply dummy arg).
10840
10841 * lisp.h (get_window_cursor_type): Update prototype.
10842
10843 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10844 get_window_cursor_type to track system caret.
10845
108462002-10-24 Kim F. Storm <storm@cua.dk>
10847
10848 * process.c (Fformat_network_address): New function.
10849 (syms_of_process): Defsubr it.
10850 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10851 service/host is not set; before Emacs would crash in that case.
048addec
JD
10852 (Fmake_network_process): Don't use Ffind_operation_coding_system
10853 to setup coding system if host or service is not set.
10854
108552002-10-23 Juanma Barranquero <lektu@terra.es>
10856
10857 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10858
10859 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10860 COLORREF.
10861
10862 * macgui.h:
10863 * w32gui.h: Add definition of XColor.
10864
10865 * macfns.c:
10866 * w32fns.c:
10867 * xfaces.c: Remove definition of XColor.
10868
108692002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10870
10871 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10872
10873 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10874 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10875 window if it is dedicated.
10876 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10877 (Vspecial_display_function): Update docstring.
10878
10879 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10880 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10881 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10882
108832002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10884
10885 * casefiddle.c (casify_region): Don't treat a prefix char as part
10886 of a word when at the beginning.
10887
108882002-10-17 Juanma Barranquero <lektu@terra.es>
10889
10890 * lread.c (syms_of_lread): Fix typos.
10891
108922002-10-17 Dave Love <fx@gnu.org>
10893
10894 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10895
108962002-10-16 Richard M. Stallman <rms@gnu.org>
10897
10898 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10899
109002002-10-14 Juanma Barranquero <lektu@terra.es>
10901
10902 * w16select.c (syms_of_win16select): Fix docstring for
10903 `selection-coding-system'.
10904
10905 * w32select.c (syms_of_w32select): Likewise.
10906
109072002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10908
10909 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10910 a backslash-quoted char.
10911 (scan_lists, scan_sexps_forward): Pacify the compiler.
10912
109132002-10-13 Richard M. Stallman <rms@gnu.org>
10914
10915 * window.c (window_scroll): Set immediate_quit.
10916
10917 * print.c (print): When backquote form is the car of a list,
10918 output in old style. Use old_backquote_output to output all
10919 comma forms inside it in old style too.
10920
10921 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10922
109232002-10-11 Markus Rost <rost@math.ohio-state.edu>
10924
10925 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10926 batch mode).
10927
10928 * lread.c (Fload): Doc fix (load-suffixes).
10929
109302002-10-10 Steven Tamm <steventamm@mac.com>
10931
10932 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10933 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10934 Also switch the default to Qnil from Qt.
10935
109362002-10-08 Kenichi Handa <handa@m17n.org>
10937
10938 * coding.c (code_convert_region): When we need more GAP for
10939 conversion, pay attention to the case that coding->produced is not
10940 greater than coding->consumed.
10941
109422002-10-07 Richard M. Stallman <rms@gnu.org>
10943
10944 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10945
109462002-10-06 Andrew Choi <akochoi@shaw.ca>
10947
10948 * macmenu.c (mac_menu_show): Add j to count menu items; match
10949 menu_item_selection to it to find selected item.
10950
109512002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10952
10953 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10954 cases. The correct fix is to pass ReparentNotify to Xt.
10955 The shell widget interprets ConfigureNotify differently depending
10956 on if it has been reparented or not.
10957
109582002-10-05 Markus Rost <rost@math.ohio-state.edu>
10959
10960 * editfns.c (Fformat_time_string): Doc fix.
10961
109622002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10963
10964 * fns.c (Flength): Doc fix.
10965
109662002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10967
10968 * keyboard.c (keyremap): New struct.
10969 (read_key_sequence): Use it: globally replace keytran_foo with
10970 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10971 keytran_next and fkey_next to just `next'.
10972
109732002-10-04 Steven Tamm <steventamm@mac.com>
10974
10975 * macterm.c (keycode_to_xkeysym_table): Change return to be
10976 treated like an X keysym.
10977
109782002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10979
10980 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10981 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10982 This is to also handle x/y changes that occur because of a resize.
10983
109842002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10985
10986 * frame.c (Vdelete_frame_functions): New variable.
10987 (syms_of_frame): Initialize and defvar it.
10988 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10989 it when frame's `tooltip' parameter is non-nil.
10990
10991 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10992
10993 * w32fns.c (x_create_tip_frame): Likewise.
10994
10995 * macfns.c (x_create_tip_frame): Likewise.
10996
109972002-09-30 Kenichi Handa <handa@m17n.org>
10998
10999 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11000 -1 before calling ccl_driver.
11001
11002 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11003 Only when it is non-nil, handle composition sequence.
11004 (setup_coding_system) <0>: Don't force composition handling.
11005
11006 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11007
110082002-09-29 Richard M. Stallman <rms@gnu.org>
11009
11010 * search.c (Freplace_match): Adjust match data for the substitution
11011 just made in the buffer.
11012
11013 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11014 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11015
110162002-09-27 Richard M. Stallman <rms@gnu.org>
11017
11018 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11019 (read_char): Use them. Do all exits thru the end of the function.
11020
110212002-09-27 Kenichi Handa <handa@etl.go.jp>
11022
11023 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11024 is nil.
11025
110262002-09-26 Richard M. Stallman <rms@gnu.org>
11027
11028 * regex.h (__restrict_arr): Don't define if already defined.
11029
11030 * coding.c (run_pre_post_conversion_on_str):
11031 Save and restore Vdeactivate_mark.
11032
110332002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11034
11035 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11036
110372002-09-26 Kenichi Handa <handa@etl.go.jp>
11038
11039 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11040 nonzero, try face's family at first. Otherwise try FAMILY at first.
11041 (choose_face_font): If C is a single byte char or latin-1, call
11042 try_font_list with PREFER_FACE_FAMILY 1.
11043
110442002-09-21 Richard M. Stallman <rms@gnu.org>
11045
11046 * window.c (select_window_1): Don't select frame.
11047 Set frame's selected window only when frame itself is selected.
11048 (Fselect_window): Doc fix.
11049
110502002-09-18 Kim F. Storm <storm@cua.dk>
11051
11052 * process.c (make-network-process): Doc fix (there is no
11053 network-server-log-function hook).
11054
110552002-09-18 Richard M. Stallman <rms@gnu.org>
11056
11057 * print.c (print): Clear out the unused parts of Vprint_number_table.
11058 (syms_of_print): Doc fix for `print-number-table'.
11059
11060 * unexelf.c (unexec): Undo previous change.
11061
110622002-09-17 Andreas Schwab <schwab@suse.de>
11063
11064 * m/alpha.h [LINUX]: Don't define DATA_START.
11065
110662002-09-16 Dave Love <fx@gnu.org>
11067
11068 * unexelf.c (unexec): Deal with .got, reinstating change from
11069 25-08-1999.
11070
110712002-09-13 Richard M. Stallman <rms@gnu.org>
11072
11073 * s/sol2-6.h (UNEXEC): Comment out definition.
11074
11075 * unexsol.c (unexec): Don't downcase first letter of error msg.
11076
11077 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11078
110792002-09-12 Markus Rost <rost@math.ohio-state.edu>
11080
11081 * unexsol.c: Include buffer.h, charset.h, coding.h.
11082
110832002-09-11 Richard M. Stallman <rms@gnu.org>
11084
11085 * unexsol.c: Don't use report_file_error; do it by hand
11086 using dlerror.
11087
11088 * process.c (wait_reading_process_input, both versions):
11089 Before calling turn_on_atimers, call stop_polling.
11090
11091 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11092
11093 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11094 we go to too_near_end, call clear_glyph_matrix.
11095 (redisplay_window): After make_cursor_line_fully_visible,
11096 call clear_glyph_matrix and bypass `goto done'.
11097
11098 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11099 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11100
111012002-09-10 Richard M. Stallman <rms@gnu.org>
11102
11103 * fileio.c (Fdo_auto_save): Catch error making directory.
11104 Only call push_message if we need to.
11105 At the same time, make an unwind-protect to pop it.
11106 Rename local message_p to old_message_p.
11107 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11108 (do_auto_save_unwind): Don't call pop_message.
11109
11110 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11111
11112 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11113
11114 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11115
11116 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11117
111182002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11119
11120 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11121 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11122 (re_match_2_internal): Be more careful with infinite loops.
11123
111242002-09-10 Kim F. Storm <storm@cua.dk>
11125
11126 * macros.c (end_kbd_macro): New function.
11127 (Fend_kbd_macro): Use it.
11128
11129 * macros.h (end_kbd_macro): Declare extern.
11130
11131 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11132 end and save it instead of discarding it.
11133
111342002-09-09 Markus Rost <rost@math.ohio-state.edu>
11135
11136 * s/sol2-6.h: Fix typo. Add comment.
11137
111382002-09-09 Richard M. Stallman <rms@gnu.org>
11139
11140 * regex.c (regnum_t): Use signed int, not unsigned int.
11141
11142 * s/sol2-6.h: New file.
11143
11144 * s/sol2-5.h (UNEXEC): Definition deleted.
11145
111462002-09-08 Kim F. Storm <storm@cua.dk>
11147
11148 * macros.c (executing_macro_index): Change type to EMACS_INT.
11149 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11150
11151 * macros.h (executing_macro_index): Change type to EMACS_INT.
11152
111532002-09-06 Richard M. Stallman <rms@gnu.org>
11154
11155 * casetab.c (set_case_table): Make canon table point to eqv table.
11156
111572002-09-06 Juanma Barranquero <lektu@terra.es>
11158
11159 * coding.c (syms_of_coding): Fix spacing.
11160
11161 * composite.c (Fcompose_region_internal)
11162 (Fcompose_string_internal): Likewise.
11163
11164 * data.c (Flsh): Likewise.
11165
11166 * fontset.c (Fset_fontset_font): Likewise.
11167
11168 * macfns.c (Fx_server_max_request_size): Likewise.
11169
11170 * w16select.c (syms_of_win16select): Likewise.
11171
11172 * w32select.c (syms_of_w32select): Likewise.
11173
11174 * xselect.c (syms_of_xselect): Likewise.
11175
111762002-09-05 Richard M. Stallman <rms@gnu.org>
11177
11178 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11179 call EXTEND_RANGE_TABLE and return a proper value.
11180 (set_image_of_range): Don't call set_image_of_range_1
11181 if no TRANSLATE or if range includes all of Latin-1.
11182 Only call it for the Latin-1 part of the range.
11183 For other cases, make two separate ranges,
11184 one for the original specified characters and one for
11185 their case-conversions.
11186
111872002-09-04 Richard M. Stallman <rms@gnu.org>
11188
11189 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11190
11191 * window.c (displayed_window_lines): Correct for one-off bug
11192 in HEIGHT on non-window displays.
11193
11194 * regex.c (set_image_of_range_1): New function.
11195 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11196 Return a value to indicate running out of memory.
11197 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11198 (extend_range_table_work_area): New subroutine.
11199 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11200 Different calling conventions, and used from set_image_of_range{,_1}.
11201 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11202
112032002-09-04 Juanma Barranquero <lektu@terra.es>
11204
11205 * makefile.w32-in: All dependencies updated.
11206
112072002-09-01 Richard M. Stallman <rms@gnu.org>
11208
11209 * unexsol.c: New file.
11210
11211 * xfns.c (Qbox): Declare external, don't define.
11212
11213 * xdisp.c (redisplay_window) <force-start case>:
11214 If point is on semi-visible last line, reposition
11215 it at previous line.
11216
11217 * alloc.c (display_malloc_warning): Use display-warning.
11218 (malloc_warning_1): Function deleted.
11219
11220 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11221
11222 * lread.c (read1): Handle #! by skipping the line.
11223
112242002-08-31 Richard M. Stallman <rms@gnu.org>
11225
11226 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11227 Don't include LDFLAGS.
11228 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11229
112302002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11231
11232 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11233 member of x_display_info unless we compile for some window system.
11234
112352002-08-31 Kim F. Storm <storm@cua.dk>
11236
11237 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11238 (get_window_cursor_type): Don't use them.
11239 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11240
112412002-08-30 Kenichi Handa <handa@etl.go.jp>
11242
11243 * xdisp.c (get_next_display_element): Fix previous change.
11244
112452002-08-30 Andrew Choi <akochoi@shaw.ca>
11246
11247 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11248 (expose_window): Use it to fix the display of overlapping
11249 rows (merge code from xterm.c).
11250
11251 * macfns.c (Qbox): Add extern declaration.
11252
112532002-08-30 Juanma Barranquero <lektu@terra.es>
11254
11255 * w32fns.c (Qbox): Make extern.
11256 (syms_of_w32fns): Remove initialization of Qbox.
11257
112582002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11259
11260 * xfns.c (Fx_open_connection): Fix error message.
11261
112622002-08-30 Kim F. Storm <storm@cua.dk>
11263
11264 The following changes consolidates the handling of the cursor
11265 type in xdisp.c, moving duplicate code and functionality from
11266 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11267
11268 * frame.h (enum text_cursor_kinds): Consolidated here.
11269 Added DEFAULT_CURSOR value.
11270 (struct frame) <desired_cursor, cursor_width>
11271 <blink_off_cursor, blink_off_cursor_width>: New fields.
11272 Consolidated from output_x, output_w32 and output_mac structs.
11273 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11274 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11275
11276 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11277 Variables consolidated here.
11278 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11279 (Vcursor_in_non_selected_windows): Renamed from
11280 cursor_in_non_selected_windows and changed to Lisp_Object.
11281 (syms_of_xdisp): Define and staticpro new and moved variables.
11282 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11283 consolidated here. Recognize Qhollow setting.
11284 (set_frame_cursor_types): New function to set frame cursor types
11285 based on the frame parameters.
11286 (get_window_cursor_type): New function to calculate new cursor
11287 type and width for the specified window. Based on duplicated
11288 code consolidated here.
11289 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11290 check buffer-local alternate-cursor-type and blink-cursor-alist
11291 before using built-in blink off methods.
11292
11293 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11294
11295 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11296 (get_specified_cursor_type, get_window_cursor_type)
11297 (set_frame_cursor_types): Added prototypes.
11298
11299 * macfns.c (x_specified_cursor_type): Removed.
11300 (x_set_cursor_type): Use set_frame_cursor_types.
11301 (Qbar, Qbox): Removed.
11302 (syms_of_macfns): Don't intern or staticpro them.
11303
11304 * macterm.c (x_specified_cursor_type): Remove prototype.
11305 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11306 (x_display_and_set_cursor): Use get_window_cursor_type.
11307 Remove unused local variables cursor_non_selected, active_cursor.
11308 Redraw cursor if hbar cursor width changes.
11309 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11310
11311 * macterm.h (enum text_cursor_kinds): Removed.
11312 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11313 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11314 (FRAME_DESIRED_CURSOR): Macro removed.
11315
11316 * w32fns.c (Vblink_cursor_alist): Removed.
11317 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11318 (syms_of_w32fns): Don't intern, staticpro, or define them.
11319 (x_specified_cursor_type): Removed.
11320 (x_set_cursor_type): Use set_frame_cursor_types.
11321
11322 * w32term.c (x_specified_cursor_type): Remove prototype.
11323 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11324 (x_display_and_set_cursor): Use get_window_cursor_type.
11325 Remove unused local variables cursor_off_state.
11326 Redraw cursor if hbar cursor width changes.
11327 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11328
11329 * w32term.h (enum text_cursor_kinds): Removed.
11330 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11331 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11332 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11333 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11334 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11335 w32_highlight_frame.
11336
11337 * xfns.c (Vblink_cursor_alist): Removed.
11338 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11339 (syms_of_xfns): Don't intern, staticpro, or define them.
11340 (x_specified_cursor_type): Removed.
11341 (x_set_cursor_type): Use set_frame_cursor_types.
11342
11343 * xterm.c (x_specified_cursor_type): Remove prototype.
11344 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11345 (x_display_and_set_cursor): Use get_window_cursor_type.
11346 Remove unused local variables cursor_off_state.
11347 Redraw cursor if hbar cursor width changes.
11348
11349 * xterm.h (enum text_cursor_kinds): Removed.
11350 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11351 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11352 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11353 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11354 (x_specified_cursor_type): Remove prototype.
11355
113562002-08-28 Richard M. Stallman <rms@gnu.org>
11357
11358 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11359 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11360 (Vblink_cursor_alist): New variable.
11361 (syms_of_w32fns): Initialize and defvar it.
11362 (x_specified_cursor_type): Recognize Qbox for filled box.
11363 Exceptions are hollow boxes.
11364 (Qbox, Qhollow): New variables.
11365 (syms_of_w32fns): Initialize and staticpro them.
11366
11367 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11368 New macros.
11369 (struct w32_output): New fields blink_off_cursor,
11370 blink_off_cursor_width.
11371 (FRAME_CURSOR_WIDTH): New macro.
11372
11373 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11374 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11375
11376 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11377 for bar cursor.
11378
11379 * w32term.c (expose_overlaps): New function.
11380 (expose_window): Use it to fix the display of overlapping rows.
11381
113822002-08-28 Simon Josefsson <jas@extundo.com>
11383
11384 * xfns.c (Fx_open_connection): Improve help when X connection
11385 fails, xhost is insecure and xauth is better.
11386
113872002-08-28 Juanma Barranquero <lektu@terra.es>
11388
11389 * makefile.w32-in: Add missing dependencies on w32term.h and
11390 composite.h.
11391
11392 * emacs.c (USAGE1): Add missing newline.
11393
113942002-08-27 Andrew Choi <akochoi@shaw.ca>
11395
11396 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11397
113982002-08-27 Richard M. Stallman <rms@gnu.org>
11399
11400 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11401 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11402 (Vblink_cursor_alist): New variable.
11403 (syms_of_xfns): Initialize and defvar it.
11404 (x_specified_cursor_type): Recognize Qbox for filled box.
11405 Exceptions are hollow boxes.
11406 (Qbox, Qhollow): New variables.
11407 (syms_of_xfns): Initialize and staticpro them.
11408
11409 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11410 New macros.
11411 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11412
11413 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11414 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11415
11416 * emacs.c (main): Handle --script.
11417 (USAGE1): Mention --script.
11418 (standard_args): Define sort order for --script.
11419
114202002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11421
11422 * xdisp.c (redisplay_updating_p): Variable removed.
11423 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11424 New variables.
11425 (init_iterator): Don't free realized faces if
11426 inhibit_free_realized_faces is set.
11427 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11428 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11429 initialize Qinhibit_free_realized_faces.
11430
11431 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11432 when iterator is adding glyphs to a glyph matrix.
11433
114342002-08-27 Kenichi Handa <handa@etl.go.jp>
11435
11436 * xdisp.c (get_next_display_element): In unibyte case, don't use
11437 octal form for such eight-bit characters that can be converted to
11438 multibyte char.
11439
114402002-08-26 Kim F. Storm <storm@cua.dk>
11441
b6189c3b
KS
11442 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11443 foreground and background colors. From Joe Buehler.
048addec
JD
11444
114452002-08-26 Miles Bader <miles@gnu.org>
11446
11447 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11448
114492002-08-25 Andrew Choi <akochoi@shaw.ca>
11450
11451 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11452 defined instead of MAC_OSX.
11453
11454 * s/darwin.h (select): Define select to sys_select only if
11455 HAVE_CARBON is defined.
11456 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11457 (DONT_REOPEN_PTY): #def it.
11458
11459 * macterm.c (XTread_socket): Remove code to call
11460 SendEventToEventTarget for keys with command modifiers when
11461 mac_command_key_is_meta is nil.
11462
114632002-08-24 Andreas Schwab <schwab@suse.de>
11464
11465 * eval.c (Fdefvar): Fix last change.
11466
114672002-08-23 Richard M. Stallman <rms@gnu.org>
11468
11469 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11470 Record variables in load history as (defvar . VAR).
11471 (Fdefvar): Don't record in load history if no initial value.
11472 (Qdefvar): New variable.
11473 (syms_of_eval): Init and staticpro it.
11474
11475 * lread.c (syms_of_lread): Doc fix.
11476 (build_load_history): Use Fmember to see if a definition
11477 is already in the Vload_history element.
11478
11479 * process.c (Fstart_process): Remove /: from program name.
11480
11481 * emacs.c (decode_env_path): Don't add /: if file name handler
11482 has a `safe-magic' property.
11483
11484 * callproc.c (Fcall_process): Remove /: from program name.
11485
114862002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11487
11488 * regex.c (PATFETCH): Remove the translating fetch.
11489 (PATFETCH_RAW): Rename to PATFETCH.
11490 (set_image_of_range): New fun.
11491 (SET_RANGE_TABLE_WORK_AREA): Use it.
11492 (regex_compile): Don't translate the pattern chars so eagerly.
11493 Only do it when inserting an `exactn' bytecode or when handling
11494 a char-range.
11495 (mutually_exclusive_p): Avoid empty statement.
11496
114972002-08-22 Kim F. Storm <storm@cua.dk>
11498
11499 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11500 end up on a partially visible line; this reverts a specific part
11501 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11502 display error which has been reported several times now.
11503 However it introduces the problem that changes was supposed to fix.
11504 See my comments in the source if you want to debug this further.
11505
115062002-08-20 Kenichi Handa <handa@etl.go.jp>
11507
11508 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11509
115102002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11511
11512 * msdos.c (croak): Add `void' to definition.
11513
c1380aa6 11514 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11515 Don't define them, they are defined in msdos.c.
11516
11517 * mem-limits.h [MSDOS]: Declare etext.
11518
11519 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11520 `const' since CORRECT_DIR_SEPS modifies its target.
11521
115222002-08-19 Kim F. Storm <storm@cua.dk>
11523
2fb0ce67 11524 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11525 KEEP-RECORD to avoid clearing lossage when we just want to clear
11526 the current key sequence (kmacro needs this).
11527
115282002-08-19 Kenichi Handa <handa@localhost>
11529
11530 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11531
11532 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11533 cons, return Qnil.
11534
115352002-08-17 Richard M. Stallman <rms@gnu.org>
11536
11537 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11538
11539 * sysdep.c [!VMS]: Include sys/files.h.
11540
11541 * editfns.c (save_restriction_restore): Defend from unchained marker.
11542
11543 * buffer.c (overlays_at): Handle extending vec uniformly.
11544 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11545
115462002-08-15 Andrew Choi <akochoi@shaw.ca>
11547
11548 * mac.c (init_mac_osx_environment): New function.
11549
11550 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11551
115522002-08-14 Kim F. Storm <storm@cua.dk>
11553
11554 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11555 executing macro before appending to it (when used from Lisp).
11556 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11557 which is called prior to each iteration of macro (for kmacro.el).
11558 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11559
11560 * lisp.h (Fexecute_kbd_macro): Update prototype.
11561
11562 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11563
115642002-08-14 Kenichi Handa <handa@etl.go.jp>
11565
11566 * xselect.c (QUTF8_STRING): New variable.
11567 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11568 (x_atom_to_symbol): Likewise.
11569 (x_get_local_selection): New argument local_request. If it is
11570 nonzero, call handler_fn with the second arg nil.
11571 (x_handle_selection_request): Call x_get_local_selection with
11572 local_request 0.
11573 (lisp_data_to_selection_data): Don't encode the string here.
11574 (Fx_get_selection_internal): Call x_get_local_selection with
11575 local_request 1.
11576 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11577
11578 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11579
11580 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11581
115822002-08-13 Richard M. Stallman <rms@gnu.org>
11583
11584 * minibuf.c (Fminibufferp): New function.
11585 (syms_of_minibuf): Defsubr it.
11586 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11587
115882002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11589
11590 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11591
115922002-08-12 Richard M. Stallman <rms@gnu.org>
11593
11594 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11595 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11596 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11597 already.
11598
11599 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11600
116012002-08-11 Andrew Choi <akochoi@shaw.ca>
11602
11603 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11604 (Vmac_pass_command_to_system): New variable.
11605 (Vmac_pass_control_to_system): New variable.
11606 (do_mouse_moved): Check wp with is_emacs_window.
11607 (XTread_socket): Check window_ptr with is_emacs_window.
11608 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11609 events back to Mac Toolbox for processing, depending on values of
11610 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11611 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11612 Vmac_pass_control_to_system.
11613
116142002-08-10 Kenichi Handa <handa@etl.go.jp>
11615
11616 * coding.c (unencodable_char_position): New function.
11617 (Funencodable_char_position): New function.
11618 (syms_of_coding): Defsubr Funencodable_char_position.
11619
116202002-08-10 Andrew Choi <akochoi@shaw.ca>
11621
11622 * mac.c (sys_select) [MAC_OSX]: New function.
11623
11624 * macterm.c (MakeMeTheFrontProcess): New function.
11625 (mac_initialize): Call MakeMeTheFrontProcess.
11626
11627 * s/darwin.h: Define select to sys_select.
11628
116292002-08-09 Richard M. Stallman <rms@gnu.org>
11630
11631 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11632
116332002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11634
11635 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11636 end of the buffer.
11637
116382002-08-08 Ken Raeburn <raeburn@mit.edu>
11639
11640 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11641
11642 * puresize.h (BASE_PURESIZE): Increase to 910000.
11643
116442002-08-08 Kenichi Handa <handa@etl.go.jp>
11645
11646 * coding.c (Ffind_operation_coding_system): For write-region, if
11647 VISIT is a filename, make it the target.
11648
116492002-08-07 Richard M. Stallman <rms@gnu.org>
11650
11651 * alloc.c (mark_object): Detect long lists for debugging.
11652 (mark_object_loop_halt): New variable.
11653
11654 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11655
11656 * data.c (Fmake_variable_frame_local): Doc fix.
11657
116582002-08-01 David Ponce <david@dponce.com>
11659
11660 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11661 (malloc_widget_value, free_widget_value)
11662 (w32_free_submenu_strings): Use them.
11663
11664 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11665 (push_menu_pane, push_menu_item, single_keymap_panes)
11666 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11667 (single_submenu, set_frame_menubar)
11668 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11669
11670 (Fx_popup_menu): Don't show pop up menu until preceding one is
11671 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11672
11673 * w32menu.c: Changes adapted from xmenu.c
11674 (set_frame_menubar): First parse all submenus,
11675 then make widget_value trees from them.
11676 Don't allocate any widget_value objects
11677 until we are done with the parsing.
11678 (parse_single_submenu): New function.
11679 (digest_single_submenu): New function.
11680 (single_submenu): Function deleted, replaced by those two.
11681
116822002-08-04 Andrew Choi <akochoi@shaw.ca>
11683
11684 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11685 returns a valid window pointer before proceeding for keyDown and
11686 autoKey events.
11687
116882002-08-03 Andrew Choi <akochoi@shaw.ca>
11689
11690 * macterm.c (USE_CARBON_EVENTS): New macro.
11691 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11692 (x_iconify_frame): Call CollapseWindow.
11693 (Vmac_reverse_ctrl_meta): New variable.
11694 (Vmac_wheel_button_is_mouse_2): New variable.
11695 (init_mac_drag_n_drop): New function.
11696 (mac_do_receive_drag): New function.
11697 (mac_handle_service_event): New function.
11698 (init_service_handler): New function.
11699 (mac_to_emacs_modifiers): New function.
11700 (mac_event_to_emacs_modifiers): New function.
11701 (mac_get_mouse_btn): New function.
11702 (mac_convert_event_ref): New function.
11703 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11704 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11705 mac_get_mouse_btn.
11706 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11707
11708 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11709 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11710 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11711 TOOL_BAR_EVENT for MAC_OS as well.
11712 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11713 as for WINDOWS_NT.
11714 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11715
11716 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11717
117182002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11719
11720 * xdisp.c (forward_to_next_line_start): Fix a condition that
11721 lead to a newline being skipped.
11722
117232002-08-02 Andrew Choi <akochoi@shaw.ca>
11724
11725 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11726
117272002-08-01 Richard M. Stallman <rms@gnu.org>
11728
11729 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11730
117312002-07-31 Andrew Choi <akochoi@shaw.ca>
11732
11733 * macfns.c: #undef init_process before #define-ing it.
11734
11735 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11736 HAVE_CARBON is defined.
11737
117382002-07-31 Richard M. Stallman <rms@gnu.org>
11739
11740 * xmenu.c (set_frame_menubar): First parse all submenus,
11741 then make widget_value trees from them.
11742 Don't allocate any widget_value objects
11743 until we are done with the parsing.
11744 (parse_single_submenu): New function.
11745 (digest_single_submenu): New function.
11746 (single_submenu): Function deleted, replaced by those two.
11747
117482002-07-30 Juanma Barranquero <lektu@terra.es>
11749
11750 * w32proc.c (syms_of_ntproc): Fix docstring of
11751 `w32-get-true-file-attributes'.
11752
117532002-07-28 Richard M. Stallman <rms@gnu.org>
11754
11755 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11756 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11757
11758 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11759
11760 * keyboard.c (make_lispy_event):
11761 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11762 Explicitly clear up_modifier in event->modifiers.
11763
117642002-07-27 Richard M. Stallman <rms@gnu.org>
11765
11766 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11767
11768 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11769 for bar cursor.
11770
117712002-07-26 Kenichi Handa <handa@etl.go.jp>
11772
11773 * coding.c (detect_coding_iso2022): While checking a byte sequence
11774 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11775 it in the normal loop.
11776
117772002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11778
11779 * xterm.c (expose_overlaps): New function.
11780 (expose_window): Use it to fix the display of overlapping rows.
11781
11782 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11783
117842002-07-23 Ken Raeburn <raeburn@gnu.org>
11785
11786 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11787 since it only depends on XUINT.
11788
11789 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11790 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11791 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11792 Macros deleted.
3947677c 11793
77d1daf2
AS
11794 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11795 its value over other approaches.
11796 * sysdep.c (start_of_data): Don't define the function if a macro
11797 form has been defined.
8a8e19a3 11798
048addec
JD
117992002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11800
11801 * xdisp.c (redisplay_updating_p): New variable.
11802 (init_iterator): Don't free realized faces when
11803 redisplay_updating_p is set.
11804 (redisplay_internal): Set redisplay_updating_p while updating
11805 the display.
11806
118072002-07-23 Richard M. Stallman <rms@gnu.org>
11808
11809 * editfns.c (Fmessage): Treat "" like nil.
11810
118112002-07-23 Kenichi Handa <handa@etl.go.jp>
11812
11813 * xdisp.c (face_before_or_after_it_pos):
11814 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11815
118162002-07-22 Juanma Barranquero <lektu@terra.es>
11817
11818 * callproc.c (init_callproc) [DOS_NT]:
11819 Initialize Vshared_game_score_directory to nil.
11820 (syms_of_callproc) [DOS_NT]: Likewise.
11821
118222002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11823
11824 * xdisp.c (display_line): Replace an abort with xassert.
11825
118262002-07-21 Richard M. Stallman <rms@gnu.org>
11827
11828 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11829 and END_UNCHANGED when setting buffer_unchanged_p.
11830 Use current_matrix_up_to_date_p to decide whether to use
11831 try_cursor_movement.
11832
11833 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11834
11835 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11836
11837 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11838 Set to nil if dir does not exist.
11839 (syms_of_callproc): Init unconditionally and simply.
11840
11841 * buffer.c (Fbuffer_list): Doc fix.
11842
118432002-07-21 Ken Raeburn <raeburn@gnu.org>
11844
11845 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11846
11847 * buffer.c (mmap_realloc): When shrinking, make sure number of
11848 pages to unmap is rounded towards zero.
11849
11850 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11851 (XSETINT): Deleted.
11852
11853 * m/att3b.h (XINT): Don't define.
11854 (VALBITS, VALMASK, XTYPE): Deleted.
11855 (DATA_SEG_BITS): Define.
11856 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11857 ARRAY_MARK_FLAG): Deleted.
11858 (DATA_SEG_BITS): Define.
11859 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11860 (DATA_SEG_BITS): Define.
11861
118622002-07-20 Richard M. Stallman <rms@gnu.org>
11863
11864 * print.c (print_error_message): New args CONTEXT and CALLER.
11865 Calls changed.
11866
11867 * lisp.h (print_error_message): Declare new args.
11868
11869 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11870 and CONTEXT to print_error_message, don't print them here.
11871 For a Quit, don't use Vsignaling_function.
11872 Call message_log_maybe_newline.
11873
11874 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11875
118762002-07-20 Kim F. Storm <storm@cua.dk>
11877
11878 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11879
118802002-07-19 Ken Raeburn <raeburn@gnu.org>
11881
11882 * bytecode.c (struct byte_stack): Pointers into byte string now
11883 point to const.
11884 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11885 const.
11886 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11887 * coding.c (encode_eol, detect_coding, detect_eol):
11888 (decode_coding, encode_coding, detect_coding_system):
11889 Source strings now treated as const.
11890 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11891 modify Lisp string contents.
11892 * coding.h (decode_coding, encode_coding, detect_coding,
11893 detect_eol): Declarations updated.
11894 * composite.c (compose_chars_in_text): Treat Lisp string contents
11895 as const.
11896 * dispnew.c (safe_bcopy): Source pointer now points to const.
11897 * lisp.h (STRING_COPYIN): New macro.
11898 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11899 (internal_with_output_to_temp_buffer): Declarations updated.
11900 * print.c (temp_output_buffer_setup):
11901 (internal_with_output_to_temp_buffer): Buffer name argument is now
11902 pointer to const.
11903 * sound.c (struct sound_device): Function pointer field "write"
11904 buffer argument now points to const.
11905 (vox_write): Buffer argument points to const.
11906 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11907 contents as const.
11908 * sysdep.c (emacs_write): Buffer pointer now const.
11909 * term.c (encode_terminal_code): Buffer pointer now const.
11910 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11911 (x_face_list_fonts, x_update_menu_appearance):
11912 (hash_string_case_insensitive): Treat Lisp string contents as const.
11913
119142002-07-19 Juanma Barranquero <lektu@terra.es>
11915
048addec
JD
11916 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11917
11918 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
11919 (Ffile_name_as_directory): Fix argument name in docstring.
11920 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
11921
119222002-07-18 Richard M. Stallman <rms@gnu.org>
11923
11924 * data.c (Fdefalias): Doc fix.
11925
119262002-07-17 Dave Love <fx@gnu.org>
11927
11928 * intervals.h (text_property_stickiness): Use P_.
11929
11930 * ccl.c: Remove `emacs' conditionals.
11931 (ccl_backtrace_table): Fix size spec.
11932 (ccl_driver): Fix type errors.
11933
119342002-07-16 Ken Raeburn <raeburn@gnu.org>
11935
11936 * alloc.c (xstrdup, make_string, make_unibyte_string)
11937 (make_multibyte_string, build_string): String pointer args now
11938 point to const.
11939 * charset.c (find_charset_in_text, c_string_width):
11940 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11941 * fileio.c (report_file_error):
11942 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11943 (count_combining_before, count_combining_after, insert_1_both):
11944 (insert, insert_and_inherit, insert_string):
11945 (insert_before_markers, insert_before_markers_and_inherit):
11946 * lread.c (intern, oblookup, hash_string):
11947 * minibuf.c (temp_echo_area_glyphs):
11948 * search.c (fast_c_string_match_ignore_case):
11949 * sysdep.c (emacs_open, set_file_times):
11950 * xfaces.c (xstricmp):
11951 * xdisp.c (store_frame_title, string_char_and_length):
11952 (message_dolog, message2, message2_nolog, set_message): Likewise.
11953 (set_message_1): Cast message string argument to const pointer.
11954 * editfns.c (general_insert_function): Insertion function now
11955 takes pointer to const for input data.
11956 * charset.h (find_charset_in_text, c_string_width):
11957 (parse_str_as_multibyte): Declarations updated.
11958 * dispextern.h (xstricmp): Declaration updated.
11959 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11960 (count_size_as_multibyte, count_combining_before):
11961 (count_combining_after, insert_1, insert_1_both, message_dolog):
11962 (insert, insert_and_inherit, insert_before_markers)
11963 (insert_before_markers_and_inherit, set_message, message2):
11964 (message2_dolog, build_string, make_string, make_unibyte_string):
11965 (make_multibyte_string, intern, oblookup, report_file_error):
11966 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11967 (emacs_open, xstrdup): Declarations updated.
11968 * systime.h (set_file_times): Declaration updated.
11969
11970 * charset.c (find_charset_in_text, lisp_string_width): Use const
11971 for pointer to lisp string data.
11972 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11973 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11974 * coding.c (Ffind_coding_systems_region_interval):
11975 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11976 (Fmake_directory_internal, Fdelete_directory):
11977 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11978 * fontset.c (font_family_registry, fs_query_fontset):
11979 (list_fontsets):
11980 * frame.c (Fframe_parameter):
11981 * keyboard.c (cmd_error_internal):
11982 * keymap.c (Fdescribe_buffer_bindings):
11983 * lread.c (complete_filename_p, openp):
11984 * minibuf.c (Fminibuffer_complete_word):
11985 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11986 (face_before_or_after_it_pos, next_element_from_string):
11987 (get_overlay_arrow_glyph_row, display_mode_element):
11988 (decode_mode_spec_coding):
11989 * xterm.c (same_x_server): Likewise.
11990
11991 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11992 settings of non-existent fields.
11993
11994 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11995 copy a lisp value.
11996
11997 * lread.c (Fintern_soft): Use string macros instead of
11998 Lisp_String fields.
11999 * keyboard.c (echo_char, parse_modifiers_uncached):
12000 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12001 * textprop.c (validate_interval_range, interval_of): Likewise.
12002
12003 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12004
12005 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12006 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12007 XSTRING()->size_byte.
12008
12009 * lisp.h (SDATA, SREF): Produce rvalue.
12010 (SSET): New macro.
12011 * alloc.c (make_event_array): Use SSET for storing into a string.
12012 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12013 a string.
12014 * casefiddle.c (casify_object): Use SSET.
12015 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12017 address of string contents.
12018 * data.c (Faref): Use SDATA.
12019 (Faset): Use SDATA, SSET.
12020 * dired.c (directory_files_internal): Use SSET.
12021 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12022 (Fread_file_name): Use SREF, SSET.
12023 * fns.c (concat): Use SSET.
12024 (concat, Fdelete): Use SDATA.
12025 * insdel.c (insert_from_string_1): Use SDATA.
12026 * keyboard.c (Fevent_convert_list): Use SREF.
12027 * lread.c (Fload): Use SDATA, SSET.
12028 * macfns.c (validate_x_resource_name): Use SSET.
12029 * process.c (status_message): Use SSET.
12030 * search.c (wordify): Use SDATA.
12031 (Freplace_match): Use SREF.
12032 * w32fns.c (validate_x_resource_name): Use SSET.
12033 * xfns.c (validate_x_resource_name): Use SSET.
12034 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12035
120362002-07-16 Richard M. Stallman <rms@gnu.org>
12037
12038 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12039
12040 * xdisp.c (reconsider_clip_changes):
12041 Don't test prevent_redisplay_optimizations_p.
12042 (redisplay_internal): Test prevent_redisplay_optimizations_p
12043 along with clip_changed in some cases.
12044 (try_window_id): Likewise.
12045 (redisplay_window): New local var buffer_unchanged_p.
12046
12047 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12048
12049 * process.c (create_process): Test USG_SUBTTY_WORKS.
12050 (process_send_signal): Clean up handling of GID.
12051 Detect errors in ioctls meant to set GID.
12052
12053 * window.c (temp_output_buffer_show):
12054 Don't set prevent_redisplay_optimizations_p.
12055
120562002-07-15 Juanma Barranquero <lektu@terra.es>
12057
12058 * eval.c (Fdefvaralias): Add docstring argument.
12059
120602002-07-15 Ken Raeburn <raeburn@gnu.org>
12061
12062 * lisp.h (STRING_INTERVALS): Produce rvalue.
12063 (STRING_SET_INTERVALS): New macro.
12064 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12065 * fns.c (Fstring_as_multibyte): Likewise.
12066 * intervals.c (balance_possible_root_interval, delete_interval)
12067 (create_root_interval, copy_intervals_to_string): Likewise.
12068 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12069 instead of 0.
12070
120712002-07-14 Ken Raeburn <raeburn@gnu.org>
12072
12073 * lisp.h (STRING_SET_CHARS): New macro.
12074 (SCHARS, SBYTES): Produce rvalues.
12075 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12076 * fns.c (concat): Likewise.
12077 * lread.c (read_vector): Likewise.
12078
12079 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12080 (STRING_SET_UNIBYTE): New macro.
12081 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12082 length of -1) changed to use STRING_SET_UNIBYTE.
12083 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12084 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12085 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12086 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12087 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12088 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12089 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12090 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12091 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12092 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12093 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12094 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12095 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12096 unchanged for now.
12097
120982002-07-13 Kim F. Storm <storm@cua.dk>
12099
12100 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12101
121022002-07-12 Richard M. Stallman <rms@gnu.org>
12103
12104 * fileio.c (Fwrite_region): Doc fix.
12105
12106 * print.c (print_error_message): Don't handle Vsignaling_function here.
12107
12108 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12109 (command_loop_1): Avoid certain actions after memory-full error.
12110
12111 * eval.c (Fsignal): Don't call cancel_hourglass.
12112 For a memory-full error, don't call Vsignal_hook_function
12113 and don't set Vsignaling_function.
12114
12115 * process.c (process_send_signal): Add abort call.
12116
121172002-07-11 Markus Rost <rost@math.ohio-state.edu>
12118
12119 * keymap.c (Fkey_binding): Fix typo.
12120
121212002-07-11 Richard M. Stallman <rms@gnu.org>
12122
12123 * alloc.c (Vmemory_full): New variable.
12124 (Vmemory_signal_data): Renamed from memory_signal_data.
12125 Uses changed.
12126 (syms_of_alloc): Defvar them.
12127 (memory_full, buffer_memory_full): Set Vmemory_full.
12128
12129 * lisp.h (Vmemory_full): Add declaration.
12130 (current_column, indented_beyond_p): Change declaration.
12131
12132 * indent.c (last_known_column): Declare as double, not float.
12133 (current_column, current_column_1, string_display_width)
12134 (position_indentation): Return `double'.
12135 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12136
12137 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12138 (back_to_previous_visible_line_start)
12139 (reseat_at_next_visible_line_start, next_element_from_buffer):
12140 Use `double', not `float', when calling indented_beyond_p.
12141
12142 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12143
12144 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12145
121462002-07-11 Juanma Barranquero <lektu@terra.es>
12147
12148 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12149 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12150 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12151 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12152 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12153 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12154
121552002-07-10 Juanma Barranquero <lektu@terra.es>
12156
d814862a
JB
12157 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12158 All callers changed.
048addec
JD
12159
121602002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12161
12162 * data.c (Fdefalias): Add an optional `docstring' argument.
12163 (set_internal, Fsetq_default): Use XCAR/XCDR.
12164
12165 * composite.c (HASH_VALUE, HASH_KEY):
12166 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12167
121682002-07-09 Kenichi Handa <handa@etl.go.jp>
12169
12170 * callproc.c (Fcall_process): Fix previous change.
12171
121722002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12173
12174 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12175 Add support for hash-tables.
12176 (Ftry_completion): Return t even if the string appears multiple times.
12177
12178 * fns.c (Fnconc): Use XCDR.
12179 (Fprovide): Use CONSP and XCDR.
12180 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12181 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12182 (Fmake_hash_table): Accept `:size nil'.
12183 (Fmakehash): Delete: moved to subr.el.
12184 (syms_of_fns): Don't defsubr makehash.
12185
12186 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12187 (HASH_TABLE_SIZE): Move from fns.c.
12188
121892002-07-07 Richard M. Stallman <rms@gnu.org>
12190
12191 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12192 Instead just return 0 when there is something to be done.
12193 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12194 retry scrolling as if cursor were off the bottom.
12195 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12196 return CURSOR_MOVEMENT_MUST_SCROLL.
12197 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12198 go to try_to_scroll.
12199
12200 * buffer.c (Fbuffer_local_value): Store current value into its binding
12201 so we get the up-to-date value for the binding that is loaded.
12202
12203 * eval.c (Fdefmacro): Doc fix.
12204
122052002-07-05 Dave Love <fx@gnu.org>
12206
12207 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12208 correctly.
12209
12210 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12211 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12212 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12213 CCL_LookupCharConstTbl.
12214 (syms_of_ccl): Defvar translation-hash-table-vector.
12215
122162002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12217
12218 * xdisp.c: Remove unused variable `face'.
12219
122202002-07-04 Juanma Barranquero <lektu@terra.es>
12221
12222 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12223 obsolescence information.
12224
122252002-07-03 Andrew Choi <akochoi@shaw.ca>
12226
12227 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12228 pattern. Search cache first.
12229 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12230 for Japanese font.
12231 (XLoadQueryFont): Use it.
12232
122332002-07-02 Richard M. Stallman <rms@gnu.org>
12234
12235 * keymap.c (Fdefine_key): Doc fix.
12236
12237 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12238
122392002-07-02 Juanma Barranquero <lektu@terra.es>
12240
12241 * keymap.c (syms_of_keymap): Fix typo.
12242
122432002-07-01 Andrew Choi <akochoi@shaw.ca>
12244
12245 * s/darwin.h: Define POSIX_SIGNALS.
12246
12247 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12248 and FSRefMakePath to convert FSSpec returned with Apple Event to
12249 Posix pathname.
12250 (mac_initialize) [TARGET_API_MAC_CARBON]:
12251 Call init_required_apple_events and disable the `Quit' menu item
12252 provided automatically by the Carbon Toolbox.
12253
122542002-07-01 Dave Love <fx@gnu.org>
12255
12256 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12257 for K&R.
12258
12259 * xterm.c: Fix prototype for K&R.
12260
12261 * term.c (costs_set): Declare static, non-initialized for pcc.
12262
122632002-07-01 Richard M. Stallman <rms@gnu.org>
12264
12265 * keyboard.c (timer_last_idleness_start_time): New variable.
12266 (timer_start_idle): Set that.
12267 (read_key_sequence): Use that to reset timer_idleness_start_time
12268 to previous value.
12269
12270 * window.c (Frecenter): With arg, set optional_new_start.
12271
12272 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12273
12274 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12275 buffer for completion.
12276
122772002-06-29 Ken Raeburn <raeburn@gnu.org>
12278
12279 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12280
122812002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12282
12283 * keyboard.c (readable_filtered_events): New function that filters
12284 FOCUS_IN_EVENT depending on parameter.
12285 (readable_events): Calls readable_filtered_events, not filtering
12286 FOCUS_IN_EVENT.
12287 (get_filtered_input_pending): New function, filtering parameter passed
12288 to readable_filtered_events.
12289 (get_input_pending): Calls get_filtered_input_pending, not filtering
12290 FOCUS_IN_EVENT.
12291 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12292 FOCUS_IN_EVENT.
12293
12294 * xterm.h (struct x_output): Add focus_state.
12295
12296 * xterm.c (x_focus_changed): New function.
12297 (x_detect_focus_change): New function.
12298 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12299 EnterNotify and LeaveNotify to track X focus changes.
12300
123012002-06-28 Andreas Schwab <schwab@suse.de>
12302
12303 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12304
123052002-06-27 Kim F. Storm <storm@cua.dk>
12306
12307 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12308 (mode_line_string_face_prop): New variables.
12309 (store_mode_line_string): New function.
12310 (display_mode_element): Use store_mode_line_string to
12311 add mode-line string elements to mode_line_string_list
12312 when mode_line_string_list is non-nil.
12313 (Fformat_mode_line): Now returns propertized string by
12314 default. New arg NO-PROPS to ignore properties.
12315 (decode_mode_spec): Only add two dashes for %- in propertized
12316 mode-line string.
12317 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12318
123192002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12320
12321 * minibuf.c (minibuffer_completion_contents): Add return type.
12322
123232002-06-27 Juanma Barranquero <lektu@terra.es>
12324
12325 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12326
123272002-06-26 Juanma Barranquero <lektu@terra.es>
12328
12329 * fileio.c (read_file_name_cleanup): Add missing return.
12330
123312002-06-26 Richard M. Stallman <rms@gnu.org>
12332
12333 * window.c (Frecenter): Don't set force_start flag.
12334
12335 * minibuf.c (do_completion, Fminibuffer_complete_word)
12336 (Fminibuffer_completion_help): Complete just the text before point.
12337 (minibuffer_completion_contents): New function.
12338
12339 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12340
12341 * frame.c (frames_bury_buffer): Function deleted.
12342
123432002-06-25 Miles Bader <miles@gnu.org>
12344
12345 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12346 the end of callint_message, allow for a terminating '\0'.
12347
123482002-06-24 Juanma Barranquero <lektu@terra.es>
12349
12350 * w32select.c: Include composite.h
12351
12352 * w16select.c: Likewise.
12353
123542002-06-24 Kenichi Handa <handa@etl.go.jp>
12355
12356 * callproc.c (Fcall_process): If code detection is necessary,
12357 call detect_coding directly here.
12358
12359 * coding.c (detect_eol): Preserve coding->cmp_data.
12360
12361 * w16select.c (Fw16_get_clipboard_data):
12362 * w32fns.c (w32_to_x_font):
12363 * w32select.c (Fw32_get_clipboard_data):
12364 * xselect.c (selection_data_to_lisp_data):
12365 * xterm.c (XTread_socket): Disable composition handling.
12366
123672002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12368
12369 * print.c (temp_output_buffer_setup): Kill all local variables.
12370
123712002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12372
12373 * lread.c (Fread): Remove redundant and imprecise declaration.
12374
12375 * xfns.c (check_x_display_info): Use check_x_frame.
12376
12377 * .gdbinit (xprintsym): Use the new `xname' field.
12378 (xsymbol): Use it.
12379
123802002-06-22 Jason Rumney <jasonr@gnu.org>
12381
12382 * w32fns.c (file_dialog_callback): New function.
12383 (Fx_file_dialog): Allow selecting directories as well as files.
12384
123852002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12386
12387 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12388 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12389
123902002-06-17 Andrew Choi <akochoi@shaw.ca>
12391
12392 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12393 black and white before scrolling. Restore frame background and
12394 foreground color after scrolling.
12395 (do_window_update): Call XClearWindow before calling expose_frame.
12396 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12397 FRAME_FOREGROUND_PIXEL of frame.
12398
12399 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12400 test Mac command key as <ALT> key.
12401
124022002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12403
12404 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12405
12406 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12407 Lookup keys in function-key-map immediately so that key-translation-map
12408 can be applied earlier.
12409 Remove function_key_possible and key_translation_possible, replaced
12410 by checking `keytran_start < t'.
12411
12412 * .gdbinit (xsymbol): Use the new `xname' field.
12413
124142002-06-17 Andrew Choi <akochoi@shaw.ca>
12415
12416 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12417 test Mac command key as <ALT> key.
12418
12419 * mac.c (do_applescript): Call initialize_applescript if necessary
12420 when first called. Dispose of result_desc only when there is no error.
12421 (Fdo_applescript): Use %d format specifier instead of %ld.
12422
124232002-06-16 Andrew Choi <akochoi@shaw.ca>
12424
12425 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12426 of FrontWindow for cases keyDown and autoKey.
12427
12428 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12429 Vdefault_fontset to Monaco with mac-roman coding.
12430
12431 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12432 init_process before and after inclusion of Carbon/Carbon.h, resp.
12433
12434 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12435 cursor_gc.
12436 (add_font_name_table_entry): New function.
12437 (init_font_name_table): Use add_font_name_table_entry; add italic,
12438 bold, and bold-italic entries for truetype fonts.
12439
12440 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12441 for Mac too.
12442 (try_font_list) [MAC_OS]: If no font matches given registry, try
12443 fonts with any registry matching face_family.
12444 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12445
12446 * s/darwin.h: If autoconf detects the Ncurses library, define
12447 LIBS_TERMCAP to -lncurses to use it.
12448
124492002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12450
12451 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12452
124532002-06-15 Richard M. Stallman <rms@gnu.org>
12454
12455 * window.c (Fset_window_configuration): Explicitly preserve
12456 the point value that new_current_buffer had at the start.
12457
124582002-06-14 Juanma Barranquero <lektu@terra.es>
12459
12460 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12461 Fix typos.
12462
124632002-06-14 Kim F. Storm <storm@cua.dk>
12464
12465 * insdel.c (insert_1_both, insert_from_string_1)
12466 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12467 insert happened in the end_unchanged region. Otherwise, the
12468 redisplay may be confused and duplicate the last line in the
12469 buffer [seen after save-buffer when require-final-newline==t].
12470
124712002-06-13 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32.c (init_environment): Remove EMACSLOCKDIR.
12474 (stat): Swap _S_IFDIR and _S_IFREG.
12475
124762002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12477
12478 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12479 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12480 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12481 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12482 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12483 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12484 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12485 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12486 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12487 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12488 SELECTION_REQUEST_EVENT, selection_clear_event to
12489 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12490 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12491 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12492 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12493 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12494 no_event to NO_EVENT.
12495
124962002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12497
12498 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12499
125002002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12501
12502 * intervals.c (textget): Don't forget to `return'.
12503 (lookup_char_property): Use XCAR/XCDR.
12504
125052002-06-12 Juanma Barranquero <lektu@terra.es>
12506
12507 * xdisp.c (Fformat_mode_line): Fix typo.
12508
125092002-06-12 Kim F. Storm <storm@cua.dk>
12510
12511 * xdisp.c (Fformat_mode_line): New function.
12512 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12513 (store_frame_title_char, store_frame_title): Use unconditionally.
12514 (init_xdisp): Defsubr Fformat_mode_line.
12515 Initialize frame_title_buf etc. unconditionally.
12516
125172002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12518
12519 * keyboard.c (read_key_sequence):
12520 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12521 things through those maps after downcasing events.
12522 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12523 applies after function-key-map.
12524 Make sure that keytran can be done in the middle in the sequence.
12525 Be careful not to throw away events past the one we downcase.
12526
12527 * lread.c (read_integer): Remove unused var `tem'.
12528 (read1): Fix int/Lisp_Object mixup.
12529
12530 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12531
125322002-06-11 Richard M. Stallman <rms@gnu.org>
12533
12534 * keyboard.c (readable_events): Ignore any number of
12535 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12536
125372002-06-09 Miles Bader <miles@gnu.org>
12538
12539 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12540 (parse_rgb_list, tty_lookup_color): New functions.
12541 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12542 (color_distance, Fcolor_distance): New functions.
12543 (TTY_SAME_COLOR_THRESHOLD): New macro.
12544 (Qtty_color_standard_values): New variable.
12545 (syms_of_xfaces): Initialize new vars & functions.
12546
125472002-06-08 Colin Walters <walters@verbum.org>
12548
12549 * textprop.c (Vchar_property_alias_alist): New variable.
12550 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12551
12552 * intervals.c (lookup_char_property): New function for looking up
12553 overlay and text properties, created from textget.
12554 (textget): Use it.
12555
12556 * intervals.h (lookup_char_property): Declare.
12557 (Vchar_property_alias_alist): Declare.
12558
12559 * buffer.c (Foverlay_get): Use lookup_char_property.
12560
125612002-06-07 Sam Steingold <sds@gnu.org>
12562
12563 * xselect.c (lisp_data_to_selection_data): Fix last change:
12564 *data_ret is not a Lisp string, while unibyte_string is.
12565
125662002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12567
12568 * xselect.c (lisp_data_to_selection_data): Fix last change:
12569 set size_ret.
12570
125712002-06-07 Andreas Schwab <schwab@suse.de>
12572
12573 * m/amdx86-64.h: New file.
12574
125752002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12576
12577 * fns.c (Fstring_make_unibyte): Doc fix.
12578
12579 * xselect.c (lisp_data_to_selection_data): If the requested type
12580 is STRING, call string_make_unibyte to encode the selected text
12581 as a string.
12582
12583 * window.c (Fset_window_hscroll): Doc fix.
12584
125852002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12586
12587 * fileio.c (choose_write_coding_system):
12588 Call select-safe-coding-system properly.
12589
125902002-06-03 Richard M. Stallman <rms@gnu.org>
12591
12592 * xdisp.c (message_with_string): Error if STRING is not a string.
12593
12594 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12595
12596 * fileio.c (choose_write_coding_system): Pass FILE arg to
12597 Vselect_safe_coding_system_function.
12598
125992002-06-03 Ken Raeburn <raeburn@gnu.org>
12600
12601 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12602
126032002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12604
12605 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12606 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12607 * keymap.c (describe_command): Likewise.
12608 * minibuf.c (read_minibuf): Likewise.
12609
12610 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12611 Cast `current_column' return value to int.
12612 (back_to_previous_visible_line_start)
12613 (reseat_at_next_visible_line_start, next_element_from_buffer):
12614 Cast `indented_beyond_p' 3rd arg to float.
12615
12616 * indent.c (last_known_column): Now a float.
12617 (current_column_1, position_indentation, current_column)
12618 (string_display_width): Return float.
12619 (Fcurrent_column): Cast `current_column' return value to int.
12620 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12621 (indented_beyond_p): Third arg now a float.
12622 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12623
12624 * lisp.h (current_column): Now returns float.
12625 (indented_beyond_p): 3rd arg now a float.
12626
126272002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12628
12629 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12630 is Qcompound_text_with_extensions.
12631
12632 * xselect.c (lisp_data_to_selection_data): Always set selection
12633 type as string if x_encode_text returns streingp non-NULL.
12634
12635 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12636
126372002-05-30 Richard M. Stallman <rms@gnu.org>
12638
12639 * window.c (Fset_window_configuration): Correct the handling
12640 of point in current buffer, to work with multiple windows.
12641
126422002-05-29 Colin Walters <walters@verbum.org>
12643
12644 * lread.c (Fread_from_string): Don't depend on order of evaluation
12645 for C function parameters.
12646
126472002-05-28 Richard M. Stallman <rms@gnu.org>
12648
12649 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12650 way for blinked-off state and for a nonselected window.
12651
12652 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12653 instead, see if the new start pos is at beginning of line.
12654
12655 * fileio.c (Fwrite_region): If START is a string, don't
12656 make any annotations.
12657
12658 * eval.c (syms_of_eval): Doc fix.
12659
126602002-05-28 Colin Walters <walters@debian.org>
12661
12662 * emacs.c (USAGE1): Add --no-splash.
12663 (standard_args): Ditto.
12664
126652002-05-28 Colin Walters <walters@gnu.org>
12666
12667 * lread.c (readchar_count): New variable.
12668 (readchar): Increment it.
12669 (unreadchar): Decrement it.
12670 (read_multibyte): Decrement it.
12671 (Vread_with_symbol_positions): New variable.
12672 (Vread_symbol_positions_list): New variable.
12673 (read_internal_start): New function, created from Fread and
12674 Fread_from_string. Handle Vread_symbol_positions_list and
12675 Vread_with_symbol_positions.
12676 (readevalloop, Fread, Fread_from_string): Use it.
12677 (read1): Use readchar_count to add symbol positions to
12678 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12679 (syms_of_lread): DEFVAR_LISP and initialize them.
12680
12681 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12682 (substitute_object_recurse, substitute_object_in_subtree)
12683 (substitute_in_interval): Prototype.
12684 (read_multibyte): Return c if it's less than zero.
12685
126862002-05-28 Kim F. Storm <storm@cua.dk>
12687
12688 * fileio.c (Fread_file_name_internal): Added brute-force
12689 speed up for using predicate file-directory-p.
12690
126912002-05-28 Kim F. Storm <storm@cua.dk>
12692
12693 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12694 New variables.
12695 (syms_of_fileio): DEFVAR_LISP them.
12696 (read_file_name_cleanup): New unwind function.
12697 (Fread_file_name_internal): Only return completions satifying
12698 Vread_file_name_predicate. Temporarily unwind protect and rebind
12699 default-directory while checking completions against the predicate.
12700 (Fread_file_name): Added PREDICATE argument. Specbind it to
12701 Vread_file_name_predicate during completion.
12702 Call Vread_file_name_function to read the file name if non-nil.
12703
12704 * lisp.h (Fread_file_name): Now has 6 args.
12705
12706 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12707 predicate for Fread_file_name when reading directory name.
12708 Supply Qnil for predicate in other calls to Fread_file_name.
12709
127102002-05-26 Miles Bader <miles@gnu.org>
12711
12712 * term.c (tty_capable_p): New function.
12713 * dispextern.h (tty_capable_p): New function declaration.
12714 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12715 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12716
127172002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12718
12719 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12720 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12721 (Vwrite_region_annotate_functions): Docstring fix.
12722
127232002-05-23 Kim F. Storm <storm@cua.dk>
12724
12725 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12726 phys_cursor's hpos is overwritten. This is still not completely
12727 correct, as it doesn't really make sense to use hpos at all to
12728 get the cursor glyph (as that is relative to the width of the
12729 characters on the line, which may have changed during the update).
12730
127312002-05-22 Jason Rumney <jasonr@gnu.org>
12732
12733 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12734 Lisp_Object.
12735 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12736 Use modified enumfont_t struct.
12737
12738 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12739
12740 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12741 Handle the `hbar' cursor type.
12742 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12743
12744 * w32fns.c (Qhbar): New variable.
12745 (x_specified_cursor_type): Use it.
12746
127472002-05-21 Ken Raeburn <raeburn@gnu.org>
12748
12749 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12750 now, when the address is needed.
12751
127522002-05-21 Colin Walters <walters@gnu.org>
12753
12754 * Makefile.in (shortlisp): Add font-core.el.
12755
127562002-05-20 Richard M. Stallman <rms@gnu.org>
12757
12758 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12759
12760 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12761 equivalent key bindings here.
12762
127632002-05-20 Ken Raeburn <raeburn@gnu.org>
12764
12765 Change symbol structure to contain a lisp object for the symbol
12766 name:
12767 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12768 object field named "xname".
12769 (SYMBOL_NAME): New macro.
12770 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12771 name field.
12772 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12773 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12774 instead of name field.
12775 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12776 SYMBOL_NAME instead of XSYMBOL and name field.
12777 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12778 instead of XSYMBOL and name field.
12779 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12780 and SYMBOL_NAME instead of XSYMBOL and name field.
12781 * coding.c (Fread_coding_system, code_convert_region1)
12782 (code_convert_string1, code_convert_string_norecord)
12783 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12784 XSYMBOL and name field.
12785 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12786 (Fmake_variable_buffer_local, Fmake_local_variable)
12787 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12788 of XSYMBOL and name field.
12789 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12790 XSYMBOL and name field.
12791 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12792 instead of XSYMBOL and name field.
12793 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12794 XSYMBOL and name field.
12795 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12796 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12797 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12798 instead of XSYMBOL and name field.
12799 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12800 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12801 (parse_solitary_modifier, Fexecute_extended_command):
12802 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12803 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12804 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12805 of XSYMBOL and name field.
12806 (describe_command, describe_translation): Use SYMBOL_NAME and
12807 assignment instead of XSYMBOL and name field and XSETSTRING.
12808 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12809 instead of XSYMBOL and name field.
12810 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12811 name field and XSETSTRING.
12812 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12813 of XSYMBOL and name field.
12814 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12815 assignment instead of XSYMBOL and name field and XSETSTRING.
12816 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12817 XSTRING instead of XSYMBOL and name field.
12818 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12819 and XSTRING instead of XSYMBOL and name field.
12820 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12821 and XSTRING instead of XSYMBOL and name field.
12822 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12823 XSTRING instead of XSYMBOL and name field.
12824 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12825 of XSYMBOL and name field.
12826 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12827 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12828
128292002-05-19 Ken Raeburn <raeburn@gnu.org>
12830
12831 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12832 and XCDR real rvalues in most configurations.
12833
12834 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12835 Don't take the address of the cdr part of a cons cell; instead, track
12836 the parent cell and call XSETCDR, or set the variable for the head
12837 of the list if we haven't started down the list yet.
12838
128392002-05-19 Richard M. Stallman <rms@gnu.org>
12840
12841 * doc.c (reread_doc_file): Don't ask for confirmation.
12842
128432002-05-18 Jason Rumney <jasonr@gnu.org>
12844
12845 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12846 (xbm_load_image): Use it.
12847 (xbm_load): Ditto.
12848 (xbm_read_bitmap_data): Reverted to xfns.c version.
12849 From David Ponce <david@dponce.com>.
12850
128512002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12852
12853 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12854 2.02 and later.
12855
128562002-05-16 Juanma Barranquero <lektu@terra.es>
12857
12858 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12859
128602002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12861
12862 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12863 meaningful test.
12864 (read_char_minibuf_menu_prompt): Fix typo.
12865
128662002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12867
12868 * eval.c (Fcommandp): Doc fix.
12869
128702002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12871
12872 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12873 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12874 (Fset_keymap_parent): Gcpro a bit more.
12875 (access_keymap): Gcpro around meta_map call and around the main loop.
12876 (get_keyelt): Gcpro when following indirect references.
12877 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12878 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12879 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12880 Remove useless ad-hoc remap code.
12881
128822002-05-13 Richard M. Stallman <rms@gnu.org>
12883
12884 * search.c (search_buffer): Give up boyer moore search if inverse
12885 translation change charset_base.
12886
128872002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12888
12889 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12890 characters is carried over from the previous block of text, adjust
12891 coding->produced to account for the extra character.
12892
128932002-05-11 Andreas Schwab <schwab@suse.de>
12894
12895 * coding.c (intersection): Keep the elements of the returned list
12896 in the same order as in the first list.
12897
128982002-05-11 Kim F. Storm <storm@cua.dk>
12899
12900 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12901 only update cmm_size if realloc actually succeeds.
12902 Testing with initial size of 2 elements revealed that using
12903 realloc on GNU/Linux would cause a random trap in xmalloc
12904 later on, so I rewrote the code to use malloc/bcopy/free instead
12905 of realloc.
12906
129072002-05-10 Jason Rumney <jasonr@gnu.org>
12908
12909 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12910
129112002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12912
12913 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12914 parens, to ensure correct evaluation order.
12915
129162002-05-10 Kim F. Storm <storm@cua.dk>
12917
12918 * keymap.c (Vemulation_mode_map_alists): New variable.
12919 (syms_of_keymap): DEFVAR_LISP it.
12920 (current_minor_maps): Process keymap alists in that list before
12921 minor-mode-overriding-map-alist and minor-mode-map-alist.
12922
129232002-05-09 Richard M. Stallman <rms@gnu.org>
12924
12925 * search.c (Freplace_match): Doc fix.
12926
129272002-05-09 Kim F. Storm <storm@cua.dk>
12928
12929 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12930 Enlarge cursor rectangle drawn around image with non-zero relief.
12931
12932 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12933 Enlarge cursor rectangle drawn around image with non-zero relief.
12934
12935 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12936 Enlarge cursor rectangle drawn around image with non-zero relief.
12937
129382002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12939
12940 * xselect.c (lisp_data_to_selection_data): Don't set selection
12941 type if comes from the Lisp object's car. If the selection
12942 contains a pure ASCII text, always return QSTRING as its type.
12943
129442002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12945
12946 * mac.c (mac-cut-function): Doc fix.
12947
129482002-05-05 Richard M. Stallman <rms@gnu.org>
12949
12950 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12951
129522002-05-04 Jason Rumney <jasonr@gnu.org>
12953
12954 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12955 for event-click-count.
12956
12957 * process.c (init_process): Only add server subfeature if we can
12958 use non-blocking I/O.
12959
129602002-05-04 Andrew Choi <akochoi@shaw.ca>
12961
12962 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12963 repeatedly.
12964
129652002-05-03 Jason Rumney <jasonr@gnu.org>
12966
12967 * process.c (Fmake_network_process): Only support server sockets
12968 when we can make them non-blocking.
12969
12970 * s/ms-w32.h (HAVE_SELECT): Define.
12971
12972 * w32.h (FILE_NDELAY): New flag.
12973
12974 * w32.c (sys_getpeername, fcntl): New functions.
12975 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12976
12977 * w32proc.c: include sys/file.h.
12978
129792002-05-03 Colin Walters <walters@verbum.org>
12980
12981 * callproc.c (Vgame_score_directory): Renamed to
12982 Vshared_game_score_directory.
12983
129842002-04-30 Richard M. Stallman <rms@gnu.org>
12985
12986 * s/gnu.h [emacs]: Include stdio.h.
12987 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12988
12989 * eval.c (do_autoload): Error if called while preparing to dump.
12990
12991 * fns.c (Frequire): Error if need to load while preparing to dump.
12992
129932002-04-28 Colin Walters <walters@verbum.org>
12994
12995 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12996 Default to "~/.emacs.d/games".
12997
129982002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12999
13000 * lread.c (openp): Change arg exec_only to predicate.
13001 (build_load_history): Use XCAR/XCDR.
13002 (Flocate_file_internal): New fun.
13003 (syms_of_lread): Defsubr it.
13004 (Fload): Update call to openp.
13005
13006 * lisp.h (openp): Update prototype.
13007
13008 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13009 * w32proc.c (sys_spawnve):
13010 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13011 * w32.c (check_windows_init_file):
13012 * sound.c (Fplay_sound_internal):
13013 * process.c (Fstart_process):
13014 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13015 * mac.c (run_mac_command):
13016 * emacs.c (init_cmdargs):
13017 * callproc.c (Fcall_process): Update call to openp.
13018
13019 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13020
13021 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13022
130232002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13024
13025 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13026 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13027
130282002-04-28 Richard M. Stallman <rms@gnu.org>
13029
13030 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13031
13032 * eval.c (Fcommandp): New arg for_call_interactively.
13033 * lisp.h (Fcommandp): Declare new arg.
13034
130352002-04-28 Jason Rumney <jasonr@gnu.org>
13036
13037 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13038
13039 * w32.c (stat, fstat): Use file index information to generate
13040 inodes for directories where available.
13041
130422002-04-26 Andrew Choi <akochoi@shaw.ca>
13043
13044 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13045 [HAVE_CARBON]: Include Mac object files.
13046
13047 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13048 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13049 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13050 MAC_OSX, and MAC_OS instead of macintosh.
13051
13052 * editfns.c [MAC_OS8]: Include stdio.h.
13053
13054 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13055
13056 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13057 Apple Monaco.
13058
78819ebb 13059 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13060 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13061 calling select.
13062
13063 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13064
13065 * tparam.c [MAC_OSX]: Don't define BC and UP.
13066
13067 * config.in [HAVE_CARBON]: Add.
13068
13069 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13070 Move here from mac/src and mac/inc.
13071
13072 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13073
130742002-04-26 Gerd Moellmann <gerd@gnu.org>
13075
13076 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13077 Compute phys_cursor_width from the x position returned
13078 by x_draw_glyhs, which is cheaper.
13079 (x_display_and_set_cursor): Compute the buffer-local value
13080 of `cursor-in-non-selected-windows' only when needed.
13081
130822002-04-25 Gerd Moellmann <gerd@gnu.org>
13083
13084 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13085 cursor on a stretch glyph has a width that depends on
13086 x_stretch_cursor_p.
13087
130882002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13089
13090 * abbrev.c (abbrev-start-location): Doc fix.
13091
13092 * indent.c (Fvertical_motion): Fix last change.
13093
130942002-04-25 Gerd Moellmann <gerd@gnu.org>
13095
13096 * indent.c (Fvertical_motion): Move to the start of the line
13097 containing PT before moving up or down.
13098
130992002-04-24 Gerd Moellmann <gerd@gnu.org>
13100
13101 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13102 case of writing a whole row, more or less analogous to the case of
13103 writing only parts of a row.
13104
13105 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13106 0 for NO_CURSOR.
13107
13108 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13109
131102002-04-23 Colin Walters <walters@verbum.org>
13111
13112 * buffer.c (syms_of_buffer): Doc fix.
13113
131142002-04-23 Gerd Moellmann <gerd@gnu.org>
13115
13116 * xterm.c (notice_overwritten_cursor): Handle the special case
13117 of the cursor being in the first blank non-text line at the
13118 end of a window.
13119
13120 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13121 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13122 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13123 bar cursors only, to make phys_cursor_width contain what its name
13124 suggests.
13125 (notice_overwritten_cursor): Consider the cursor image erased if
13126 the output area intersects the cursor image in y-direction.
13127
131282002-04-23 Simon Marshall <simon@gnu.org>
13129
13130 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13131 to XC_hand2.
13132
131332002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13134
13135 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13136
131372002-04-22 Kim F. Storm <storm@cua.dk>
13138
13139 * textprop.c (remove_properties): Fixed trap for malformed plist.
13140
131412002-04-22 Richard M. Stallman <rms@gnu.org>
13142
13143 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13144
13145 * window.c (make_window): Initialize height_fixed_p,
13146 last_cursor_off_p, and p->cursor_off_p slots.
13147
131482002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13149
13150 * fns.c (use-dialog-box): Doc fix.
13151
131522002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13153
13154 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13155 variables `row', `i' and `area'.
13156 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13157 toolkit library.
13158
131592002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13160
13161 * xfaces.c (clear_font_table): Don't free the default font of
13162 a frame even if it's on another display.
13163 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13164 that could be Qt.
13165
131662002-04-19 Juanma Barranquero <lektu@terra.es>
13167
13168 * indent.c (Fmove_to_column): Remove unused local variable
13169 `next_boundary_byte'.
13170 (current_column_1): Likewise.
13171
131722002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13173
13174 * msdos.c (Qhbar): New variable.
13175 (syms_of_msdos): Intern and staticpro it.
13176 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13177 cursor type.
13178
131792002-04-19 Dave Lambert <dlambert@acm.org>
13180
13181 Theses change implement an underscore-like (`hbar') cursor.
13182
13183 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13184
13185 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13186 Handle the `hbar' cursor type.
13187 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13188
13189 * xfns.c (Qhbar): New variable.
13190 (syms_of_xfns): Intern and staticpro it.
13191 (x_specified_cursor_type): Handle `hbar' cursor.
13192
13193 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13194 not defined.
13195
131962002-04-18 Richard M. Stallman <rms@gnu.org>
13197
13198 * textprop.c (remove_properties): New arg LIST allows scanning
13199 either a list or a plist.
13200 (interval_has_some_properties_list): New function, like
13201 interval_has_some_properties using list instead of plist.
13202 All callers changed.
13203 (Fremove_list_of_text_properties): New function.
13204 (syms_of_textprop): Defsubr it.
13205
132062002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13207
13208 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13209
132102002-04-17 Juanma Barranquero <lektu@terra.es>
13211
13212 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13213
132142002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13215
13216 * window.c (coordinates_in_window): Don't report on margin area
13217 if its width is zero.
13218
132192002-04-16 Jason Rumney <jasonr@gnu.org>
13220
13221 * w32fns.c (Fx_file_dialog): Decode file name before using.
13222
13223 * w32term.c (construct_drag_n_drop): Likewise.
13224
132252002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13226
13227 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13228 store load-history in pure space.
13229
13230 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13231
132322002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13233
13234 * xterm.c (Qlatin_1, Qutf_8): New vars.
13235 (syms_of_xterm): Initialize them.
13236 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13237 decoding the output of X*LookupString.
13238 Always use latin-1 to decode the output of XLookupString.
13239 Try Xutf8LookupString if XmbLookupString failed.
13240
13241 * region-cache.c (new_region_cache): Use BEG.
13242
132432002-04-16 Gerd Moellmann <gerd@gnu.org>
13244
13245 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13246 configuration files.
13247 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13248 returns 0.
13249
132502002-04-15 Andreas Schwab <schwab@suse.de>
13251
13252 * config.in: Regenerated using autoheader.
13253
13254 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13255 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13256 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13257 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13258 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13259 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13260 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13261 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13262 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13263 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13264 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13265 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13266 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13267 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13268 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13269 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13270 STACK_DIRECTION, now set by autoconf.
13271
132722002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13273
13274 * dispnew.c (marginal_area_string): Sort arguments.
13275
13276 * dispextern.h (marginal_area_string): Add prototype.
13277
132782002-04-13 Richard M. Stallman <rms@gnu.org>
13279
13280 * fileio.c (Finsert_file_contents):
13281 Don't call temp_output_buffer_setup--do just part, by hand.
13282
13283 * coding.c (run_pre_post_conversion_on_str):
13284 Don't call temp_output_buffer_setup--do just part, by hand.
13285
13286 * keyboard.c (command_loop_1): Don't call start_hourglass
13287 or cancel_hourglass when executing a macro.
13288
13289 * marker.c (count_markers): New function.
13290
13291 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13292 grow without limit. Move recently used elements to the front.
13293
132942002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13295
13296 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13297
132982002-04-12 Gerd Moellmann <gerd@gnu.org>
13299
13300 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13301 rows marginal areas.
13302 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13303 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13304
13305 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13306
133072002-04-12 Dave Love <fx@gnu.org>
13308
13309 * dispnew.c (marginal_area_string): New.
13310
13311 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13312 (Qleft_margin, Qright_margin): Declare.
13313 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13314
13315 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13316 note_mode_line_highlight and extended.
13317
13318 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13319 (make_lispy_event): Deal with mouse events in margins.
13320
133212002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13322
13323 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13324
13325 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13326 than deactivating the mark if tmm is set to `lambda'.
13327 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13328 Use a single event for HELP_EVENT.
13329 (Fexecute_extended_command): Save last_point_position.
13330
133312002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13332
13333 * lisp.h (Fpropertize): Add prototype.
13334
13335 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13336
133372002-04-10 Colin Walters <walters@verbum.org>
13338
13339 * config.in: Add HAVE_SHARED_GAME_DIR.
13340
13341 * callproc.c: (Vgame_score_directory): New variable.
13342 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13343
133442002-04-10 Richard M. Stallman <rms@gnu.org>
13345
13346 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13347
133482002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13349
13350 * minibuf.c (read_minibuf): Use empty_string.
13351 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13352 Short-circuit the search as soon as it "failed".
13353 (Fall_completions): Allow lambda forms and lists of strings for alist.
13354 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13355 when require_match is nil.
13356 (Ftest_completion): Rename from `test_completion' and export to elisp.
13357 Call the predicate also when alist is a list.
13358 Obey Vcompletion_regexp_list.
13359 (do_completion, Fminibuffer_complete_and_exit): Use it.
13360 (Fassoc_string): Rename from `assoc_for_completion'.
13361 Allow list of strings as well and export to elisp.
13362
133632002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13364
13365 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13366
133672002-04-08 Juanma Barranquero <lektu@terra.es>
13368
13369 * w32.c (sys_accept): Don't hide variable `s'.
13370
133712002-04-05 Gerd Moellmann <gerd@gnu.org>
13372
13373 * callint.c (Fcall_interactively): Use INTEGERP instead of
13374 NUMBERP for checking Vhistory_length.
13375
133762002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13377
13378 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13379 Doc fix to reflect it.
13380
133812002-04-04 Richard M. Stallman <rms@gnu.org>
13382
13383 * xdisp.c (display_mode_element): New arg RISKY.
13384 Disregard text props found or specified within a variable
13385 that isn't marked risky-local-variable.
13386 (Qrisky_local_variable): New variable.
13387 (syms_of_xdisp): Init and staticpro it.
13388
133892002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13390
13391 * undo.c (record_point): New fun.
13392 (record_delete, record_insert): Use it.
13393
133942002-04-03 Juanma Barranquero <lektu@terra.es>
13395
13396 * doc.c (Fdocumentation): Add missing parentheses.
13397 (Fdocumentation_property): Likewise.
13398
133992002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13400
13401 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13402 data is 0, just return nil.
13403
134042002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13405
13406 * msdos.c (syms_of_msdos): Fix last change with
13407 mouse_autoselect_window.
13408
134092002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13410
13411 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13412 mouse_autoselect_window.
13413
134142002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13415
13416 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13417 with system-specific keysyms. Use it also for unknown function keys.
13418
13419 * doc.c (reread_doc_file): Return whether reload was attempted.
13420 (Fdocumentation, Fdocumentation_property): Don't try to reload
13421 if the doc is 0 and only ask once.
13422
13423 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13424
134252002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13426
13427 * keyboard.c (read_char): If the event was Qselect_window,
13428 restore timer_idleness_start_time to its previous value.
13429
13430 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13431
134322002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13433
13434 * region-cache.c (new_region_cache): Use BEG.
13435
13436 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13437 Use BEG and BEG_BYTE.
13438
13439 * doc.c (get_doc_string): Return nil if the location is wrong.
13440 (reread_doc_file): New fun.
13441 (Fdocumentation, Fdocumentation_property):
13442 Call it if get_doc_string fails.
13443 (Fsnarf_documentation): Make it work for a dumped Emacs.
13444
13445 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13446 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13447
13448 * charset.c (Fstring): Allow 0 arguments.
13449
13450 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13451
13452 * process.c (DATAGRAM_CONN_P, list_processes_1)
13453 (Fprocess_datagram_address, Fset_process_datagram_address)
13454 (Fset_network_process_options, server_accept_connection):
13455 Fix some int/Lisp_Object confusions (thank you union types).
13456
134572002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13458
13459 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13460
13461 * w32term.c: Likewise.
13462 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13463
13464 * keyboard.c (Qselect_window): New symbol.
13465 (head_table): Use it.
13466 (keys_of_keyboard): Bound select-window event to handle-select-window.
13467 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13468
13469 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13470 (last_window): New variable.
13471 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13472 (note_mouse_movement): Remove reimplemented code in #if 0.
13473 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13474 Emacs windows.
13475
13476 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13477
134782002-03-31 Gerd Moellmann <gerd@gnu.org>
13479
13480 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13481 Callers changed.
13482
134832002-03-30 Richard M. Stallman <rms@gnu.org>
13484
13485 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13486 loop whenever it stops making progress.
13487
13488 * widget.c (set_frame_size): Don't call change_frame_size.
13489
134902002-03-30 Gerd Moellmann <gerd@gnu.org>
13491
13492 * dispnew.c (direct_output_for_insert):
13493 Call mark_window_display_accurate.
13494
134952002-03-29 Jason Rumney <jasonr@gnu.org>
13496
13497 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13498
134992002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13500
13501 * Makefile.in (lread.o): Depend on coding.h.
13502
13503 * lread.c (openp, Fload): Encode the file name before passing it
13504 to `stat', `access', and `emacs_open'.
13505 (openp): GCPRO the encoded file name. Don't recompute Lisp
13506 strings unnecessarily.
13507
135082002-03-29 Kim F. Storm <storm@cua.dk>
13509
13510 * fns.c (Flax_plist_put): Doc fix.
13511
135122002-03-28 Miles Bader <miles@gnu.org>
13513
13514 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13515
135162002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13517
13518 * process.c (set-network-process-options): Add usage.
13519 (make-network-process): Doc fix.
13520
135212002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13522
13523 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13524
135252002-03-26 Richard M. Stallman <rms@gnu.org>
13526
13527 * fns.c (Fsubstring_no_properties): New function.
13528 (Flax_plist_get, Flax_plist_put): New functions.
13529 (syms_of_fns): defsubr them.
13530
13531 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13532 don't test or alter w->update_mode_line.
13533
13534 * window.c (Fdisplay_buffer): Doc fix.
13535
135362002-03-24 Richard M. Stallman <rms@gnu.org>
13537
13538 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13539
135402002-03-24 Gerd Moellmann <gerd@gnu.org>
13541
13542 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13543 (Fdefmacro): Handle `(declare ...)'.
13544 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13545 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13546
135472002-03-24 Jason Rumney <jasonr@gnu.org>
13548
13549 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13550 (xbm_file_p): Add prototypes.
13551 (xbm_format, xbm_image_p): Sync with xfns.c.
13552 (reflect_byte): New function.
13553 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13554 (xbm_load_image): Create bitmaps with a depth of 1.
13555 (init_xfns): Enable XBM images.
13556
135572002-03-23 Jason Rumney <jasonr@gnu.org>
13558
13559 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13560 correctly. Do not pass up_modifier to keyboard buffer.
13561
13562 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13563
135642002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13565
13566 * Makefile.in (bootstrapclean): New target.
13567 (bootstrap-temacs, bootstrap-doc): Remove.
13568 (bootstrap-emacs): Use a bog-standard `temacs'.
13569 Don't bother to build a DOC file.
13570
13571 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13572
13573 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13574 in temacs even if !CANNOT_DUMP.
13575 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13576
13577 * alloc.c (check_pure_size): Only output a warning.
13578
135792002-03-22 Jason Rumney <jasonr@gnu.org>
13580
13581 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13582 supported.
13583
13584 * w32term.c (zv_bits): Declare as short, for word alignment.
13585 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13586 (syms_of_w32term): Define x-use-underline-position-properties.
13587
13588 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13589 (clear_image_cache): Block input, fix logic, clear matrices in
13590 all frames that share this cache.
13591
135922002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13593
13594 * emacs.c (main): Update the Copyright year in the blurb printed
13595 by "emacs --version".
13596
13597 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13598
13599 * xterm.c (XTread_socket): If XK_ISO_Lock and
13600 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13601 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13602
136032002-03-21 Kim F. Storm <storm@cua.dk>
13604
13605 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13606 menu-bar bindings in keymap and local-map properties _are_ used.
13607 But try keymap property first in accordance with 2002-01-03 patch.
13608 Added comment describing why this is not always reliable.
13609 (tool_bar_items): Ditto for tool-bar.
13610
136112002-03-21 Jason Rumney <jasonr@gnu.org>
13612
13613 * w32fns.c (x_clear_image_1): Disable color table code.
13614
136152002-03-21 Kim F. Storm <storm@cua.dk>
13616
13617 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13618 removed the wrong version of the DEFUN macro; fixed it.
13619
13620 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13621 Fmember rather than Fmemq).
13622 (Fprovide): Check that subfeatures is a list.
13623
13624 * process.c (QCfeature, QCdatagram): Removed variables.
13625 (QCtype, Qdatagram): New variables.
13626 (network_process_featurep): Removed function.
13627 (Fmake_network_process): Removed :feature check.
13628 Use :type 'datagram instead of :datagram t to create a datagram
13629 socket. This allows us to add other connection types (e.g. raw
13630 sockets) later in a consistent manner.
13631 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13632 supported subfeatures for feature make-network-process.
13633 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13634 Intern and staticpro QCtype and Qdatagram.
13635 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13636
13637 * xfns.c: (QCtype): Remove duplicate declaration and
13638 initialization (is now declared in process.c).
13639
13640 * w32fns.c: (QCtype): Remove duplicate declaration and
13641 initialization (is now declared in process.c).
13642
136432002-03-21 Richard M. Stallman <rms@gnu.org>
13644
13645 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13646 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13647 when jumping to `fail' to avoid undoing reg changes in the
13648 last iteration of the loop.
13649 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13650
13651 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13652 Depend on process.h.
13653
136542002-03-20 Jason Rumney <jasonr@gnu.org>
13655
13656 Most of the following changes are still conditional on HAVE_IMAGES
13657 which is not set by default on Windows.
13658
13659 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13660
13661 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13662 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13663 (four_corners_best, x_clear_image_1, x_clear_image)
13664 (x_alloc_image_color, postprocess_image)
13665 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13666 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13667 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13668
13669 * w32gui.h (struct XImage): Define.
13670
13671 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13672 extract mouse co-ordinates.
13673
136742002-03-20 Jason Rumney <jasonr@gnu.org>
13675
13676 * w32.c (init_winsock): Dynamically load new server and UDP
13677 socket functions.
13678 (socket_to_fd): New function.
13679 (sys_socket): Use it.
13680 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13681 (sys_recvfrom, sys_sendto): New wrapper functions.
13682
13683 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13684 and initialization.
13685
13686 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13687
136882002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13689
13690 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13691 Don't use "sun" as a variable, it's a predefined constant on Sun
13692 machines.
13693
136942002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13695
13696 * bytecode.c (Fbyte_code): Revert last change.
13697
136982002-03-19 Kim F. Storm <storm@cua.dk>
13699
13700 * makefile.w32-in (LIBS): Add $(WSOCK32).
13701 From David Ponce <dponce@voila.fr>.
13702
137032002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13704
13705 * process.c (wait_reading_process_input): Move variables `pname'
13706 and `pnamelen' down where they are used.
13707
13708 * bytecode.c (Fbyte_code): Discard unused computed value to
13709 prevent gcc warning.
13710
13711 * lisp.h (Fplist_member): Add prototype.
13712
137132002-03-18 Kim F. Storm <storm@cua.dk>
13714
13715 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13716 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13717
13718 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13719 Remove explicit GNU_LINUX settings for datagram support.
13720
137212002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13722
13723 * process.c (Fmake_network_process): Remove unused variable `sa'.
13724 Doc fix. Add usage:.
13725 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13726
137272002-03-17 Richard M. Stallman <rms@gnu.org>
13728
13729 * xdisp.c (cursor_type_changed): New variable.
13730 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13731 Clear it when clearing windows_or_buffers_changed.
13732 (try_cursor_movement, redisplay_window, try_window_id)
13733 (try_window_reusing_current_matrix): Test cursor_type_changed
13734 along with windows_or_buffers_changed.
13735
13736 * window.h (cursor_type_changed): New variable.
13737
13738 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13739 not update_mode_lines, and always set it to 1.
13740
13741 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13742 if no frames needed redrawing.
13743
137442002-03-17 Kim F. Storm <storm@cua.dk>
13745
13746 The following changes add support for network server processes,
13747 datagram connections, and local (unix) sockets.
13748
13749 * process.h (struct Lisp_Process): New member log.
13750 Doc fix: Member command used to indicate stopped network process.
13751 Doc fix: Member childp contains plist for network process.
13752 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13753
13754 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13755 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13756 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13757 New variables.
13758 (NETCONN1_P): New macro.
13759 (DATAGRAM_SOCKETS): New conditional symbol.
13760 (datagram_address): New array.
13761 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13762 (status_message): Use concat3.
13763 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13764 for a stopped network process.
13765 (Fset_process_buffer): Update contact plist for network process.
13766 (Fset_process_filter): Ditto. Don't enable input for stopped
13767 network processes. Server must listen, even if filter is t.
13768 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13769 New functions.
13770 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13771 (Fprocess_contact): Added KEY argument. Handle datagrams.
13772 (list_processes_1): Optionally show only processes with the query
13773 on exit flag set. Dynamically adjust column widths. Omit tty
13774 column if not needed. Report stopped network processes.
13775 Identify server and datagram network processes.
13776 (Flist_processes): New optional arg `query-only'.
13777 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13778 (conv_lisp_to_sockaddr, set_socket_options)
13779 (network_process_featurep, unwind_request_sigio): New helper functions.
13780 (Fprocess_datagram_address, Fset_process_datagram_address):
13781 (Fset_network_process_options): New lisp functions.
13782 (Fopen_network_stream): Removed. Now defined in simple.el.
13783 (Fmake_network_process): New lisp function. Code is based on previous
13784 Fopen_network_stream, but heavily reworked with new property list based
13785 argument list, support for datagrams, server processes, and local
13786 sockets in addition to old client-only functionality.
13787 (server_accept_connection): New function.
13788 (wait_reading_process_input): Use it to handle incoming connects.
13789 Do not enable input on a new connection if process is stopped.
f63fd14e 13790 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13791 (send_process): Handle datagram sockets.
13792 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13793 network process is indicated by setting command field to t .
13794 (Fprocess_send_eof): No-op if datagram connection.
13795 (Fstatus_notify): Don't read input for a stream server socket or a
13796 stopped network process.
13797 (init_process): Initialize datagram_address array.
13798 (syms_of_process): Intern and staticpro new variables, defsubr new
13799 functions.
13800
138012002-03-16 Jason Rumney <jasonr@gnu.org>
13802
13803 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13804 startup case.
13805
138062002-03-16 Richard M. Stallman <rms@gnu.org>
13807
13808 * xdisp.c (redisplay_internal, redisplay_windows):
13809 Use list_of_error to call internal_condition_case_1.
13810 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13811 so as to catch all errors with no possibility of debugger redisplay.
13812 (list_of_error): New variable.
13813 (syms_of_xdisp): Init and staticpro it.
13814
13815 * print.c (print_object): Delete `\ ' from printed rep of frame.
13816
138172002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13818
13819 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13820 until its implementation is fixed.
13821
138222002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13823
13824 * xfns.c (png_load): Remove unused variable `gamma_str'.
13825
138262002-03-14 Richard M. Stallman <rms@gnu.org>
13827
13828 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13829
138302002-03-14 Miles Bader <miles@gnu.org>
13831
13832 * intervals.c (adjust_for_invis_intang): New function.
13833 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13834 work for dealing with invisible+intangible regions. Do so before
13835 and after both forward and backward movements, to handle both
13836 front-sticky and rear-sticky cases.
13837 * textprop.c (text_property_stickiness): Function moved here from
13838 `editfns.c'.
13839 * intervals.h (text_property_stickiness): New declaration.
13840 * editfns.c (char_property_eq): Function removed.
13841 (text_property_stickiness): Function moved to `textprop.c'.
13842
138432002-03-13 Jason Rumney <jasonr@gnu.org>
13844
13845 * config.in: Add STRFTIME_NO_POSIX2.
13846
13847 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13848 and %OX when underlying strftime does not.
13849
138502002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13851
13852 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13853 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13854 line) to avoid annoying flicker.
13855 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13856 (XTread_socket): Mark it static.
13857
13858 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13859
138602002-03-13 Kim F. Storm <storm@cua.dk>
13861
13862 * puresize.h (BASE_PURESIZE): Increase to 775000.
13863
138642002-03-12 Juanma Barranquero <lektu@terra.es>
13865
13866 * editfns.c (syms_of_editfns): Fix typo.
13867
138682002-03-12 Gerd Moellmann <gerd@gnu.org>
13869
13870 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13871 Include termopt.h for interrupt_input.
13872
138732002-03-11 Andreas Schwab <schwab@suse.de>
13874
13875 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13876
138772002-03-11 Gerd Moellmann <gerd@gnu.org>
13878
13879 * xterm.c (note_mouse_movement): Put code for
13880 x_autoselect_window_p in #if 0.
13881
13882 * lread.c (Fload): Don't assume that message_with_string uses the
13883 string it is given like a C string.
13884
138852002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13886
78819ebb 13887 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13888
13889 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13890 x_session_have_connection.
13891 (x_initialize): Add call to x_session_initialize.
13892
13893 * termhooks.h (enum event_kind): Add save_session_event.
13894
13895 * keyboard.c: Add Emacs event save_session_event.
13896
13897 * emacs.c (main): Add call to syms_of_xsmfns.
13898
78819ebb 13899 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13900
13901 * config.in: Add HAVE_X_SM.
13902
13903 * Makefile.in (LIBXT): Add -lSM -lICE
13904 if HAVE_X_SM and not USE_X_TOOLKIT.
13905 (XOBJ): New file xsmfns.c added.
13906
13907 * xsmfns.c: New file for X session management.
13908
139092002-03-09 Jason Rumney <jasonr@gnu.org>
13910
13911 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13912 read-only when setting modified time.
13913
139142002-03-08 Gerd Moellmann <gerd@gnu.org>
13915
13916 * xdisp.c (move_it_vertically_backward): At the end of the function,
13917 when moving forward by lines, treat terminal frames specially.
13918
13919 * keyboard.c (echo_char): Make sure to add a separator between
13920 keys even if echo_dash hasn't been called.
13921
13922 * xdisp.c: Use new string macros.
13923 (update_echo_area): Pass number of bytes to message3 instead of
13924 number of chars.
13925 (set_message_1): Don't access a string's size_byte directly.
13926 (decode_mode_spec_coding): Use number of bytes of eoltype string
13927 instead number of chars.
13928
13929 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13930
139312002-03-08 Juanma Barranquero <lektu@terra.es>
13932
13933 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13934 24-bit.
13935
139362002-03-06 Jason Rumney <jasonr@gnu.org>
13937
13938 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13939
139402002-03-06 Gerd Moellmann <gerd@gnu.org>
13941
13942 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13943 (cancel_echoing, echo_length, echo_truncate): Changed to
13944 work with new kboard definition.
13945 (echo_now): Use message3_nolog instead of message2_nolog.
13946
13947 * alloc.c (mark_kboards): Mark echo_string.
13948
13949 * keyboard.h (ECHOBUFSIZE): Removed.
13950 (struct kboard): Member echoptr removed, member echobuf renamed
13951 to echo_string.
13952
13953 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13954 message3 instead of message2 to display the message using STRING's
13955 text properties.
13956
139572002-03-05 Andreas Schwab <schwab@suse.de>
13958
13959 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13960
139612002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13962
13963 * frame.c (default-frame-alist): Explain that setting it doesn't
13964 affect existing frames.
13965
139662002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13967
13968 * indent.c (skip_invisible): Fix my brain fart.
13969
13970 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13971
139722002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13973
13974 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13975 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13976 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13977 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13978 and variables to use EMACS_INT instead of just int.
13979
13980 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13981
139822002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13983
13984 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13985 environment, pass it down with corrected value.
13986
139872002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13988
13989 * lread.c (read_filtered_event): Do not call start_hourglass
13990 before returning.
13991
139922002-03-04 Juanma Barranquero <lektu@terra.es>
13993
13994 * w32term.c (x_display_and_set_cursor): Fix typo.
13995
139962002-03-03 Richard M. Stallman <rms@gnu.org>
13997
13998 * fileio.c (Fmake_temp_name): Doc fix.
13999
140002002-03-03 Gary Wong <gtw@gnu.org>
14001
14002 * termcap.c [!emacs]: Replace ospeed for building standalone
14003 libtermcap, for binary compatibility.
14004
14005 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14006
140072002-03-03 Richard M. Stallman <rms@gnu.org>
14008
14009 * xrdb.c (file_p): Rename arg `path' to `filename'.
14010
14011 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14012 only if it is an integer.
14013
14014 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14015 If png_get_sRGB gives an answer, call png_set_gamma
14016 using the default image gamma value.
14017
14018 * lread.c (read1): When reading from a file, default string to
14019 multibyte only if it has some multibyte characters.
14020
14021 * print.c (print_object): Output multibyte chars 128...255
14022 using \x even if ! print_escape_multibyte.
14023
14024 * xdisp.c (display_mode_element): Move the places where
14025 bytepos, charpos, this, and lisp_string are set.
14026 Use lisp_string to set bytepos.
14027
14028 * xdisp.c (redisplay_internal):
14029 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14030
14031 * xdisp.c (display_mode_element): Merge properties specified with
14032 :propertize onto those that come with the string.
14033
140342002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14035
14036 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14037 automatic-hscrolling. Users changed.
14038 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14039 Users changed.
14040 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14041
140422002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14043
14044 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14045
140462002-03-02 Kim F. Storm <storm@cua.dk>
14047
14048 * window.c (Fminibuffer_selected_window): New function.
14049 (syms_of_window): Defsubr it.
14050
140512002-03-01 Kim F. Storm <storm@cua.dk>
14052
14053 * window.h (struct window): New member phys_cursor_width.
14054
14055 * window.c (make_window, replace_window): Init phys_cursor_width.
14056
14057 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14058 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14059
14060 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14061 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14062
14063 * lisp.h (GCPRO6): New macro.
14064
14065 * process.c (Fopen_network_stream): Use GCPRO6.
14066
140672002-03-01 Kim F. Storm <storm@cua.dk>
14068
14069 * process.c (Qconnect, Qfailed): New variables.
14070 (syms_of_process): Intern and staticpro them.
14071 (Fprocess_status): Document connect and failed return values.
14072 [NON_BLOCKING_CONNECT]: New conditional.
14073 (connect_wait_mask, num_pending_connects): New variables.
14074 (status_message): Convert Qfailed status.
14075 (Fopen_network_stream): Added support for non-blocking connect.
14076 New optional args: filter, sentinel, non_blocking. Doc updated.
14077 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14078 (deactivate_process): Handle pending non-blocking connect.
14079 (wait_reading_process_input): Poll for status of non-blocking
14080 connects. Exec sentinel directly when connect succeeds.
14081 (status_notify): Don't read process output if not yet connected.
14082
140832002-02-28 Kim F. Storm <storm@cua.dk>
14084
14085 * window.c: (minibuf_selected_window): Renamed from
14086 Vminibuf_selected_window. Users changed.
14087 (syms_of_window): Staticpro it.
14088
140892002-02-26 Kim F. Storm <storm@cua.dk>
14090
14091 The following changes add a new Vminibuf_selected_window variable
14092 which is similar to Vminibuf_scroll_window, but which is only set
14093 on entry to the minibuffer (from a non-minibuffer window):
14094
14095 * window.c: (Vminibuf_selected_window): New variable.
14096 (struct save_window_data): New member minibuf_selected_window.
14097 (Fset_window_configuration): Restore Vminibuf_selected_window.
14098 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14099 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14100 (compare_window_configurations): Compare minibuf_selected_window.
14101
14102 * window.h: (Vminibuf_selected_window): Declare extern.
14103
14104 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14105 entry to minibuffer or on entry from a non-minibuffer window.
14106
14107 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14108 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14109
14110 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14111 instead of Vminibuf_scroll_window when deciding in which window
14112 the region should be highlighted. Consequently, the region remains
14113 highlighteded even when a completion buffer is also displayed.
14114
141152002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14116
14117 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14118
14119 * xselect.c (Qcompound_text_with_extensions): Renamed from
14120 Qcompound_text_no_extensions.
14121 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14122
141232002-02-26 Juanma Barranquero <lektu@terra.es>
14124
14125 * w32proc.c (syms_of_ntproc): Doc fix.
14126
141272002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14128
14129 * intervals.h: Include "dispextern.h" unconditionally.
14130
141312002-02-24 Jason Rumney <jasonr@gnu.org>
14132
14133 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14134 and disp-table.elc.
14135 (lisp): Add emacs-lisp/backquote.elc.
14136
141372002-02-24 Kim F. Storm <storm@cua.dk>
14138
14139 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14140 The validation of the event type was too strict as it didn't
14141 allow string events; buffer names are used in bindings for
14142 menu-bar-select-buffer (see `menu-bar-update-buffers').
14143
141442002-02-23 Kim F. Storm <storm@cua.dk>
14145
14146 The following changes rework my patch of 2002-02-06 which
14147 added command remapping by entering the commands directly into
14148 the keymaps. Now, command remapping uses an explicit `remap'
14149 prefix in the keymaps, i.e. [remap COMMAND].
14150
14151 * keymap.c (Qremap, remap_command_vector): New variables.
14152 (is_command_symbol): Removed function.
14153 (Fdefine_key): No longer accept a symbol for KEY.
14154 Added validation of [remap COMMAND] argument for KEY.
14155 The DEF is no longer required to be a symbol when remapping a command.
14156 (Fremap_command): New function to remap command through keymaps.
14157 (Flookup_key): Perform command remapping initiated by
14158 Fremap_command directly for speed.
14159 (Fkey_binding): Use Fremap_command for command remapping.
14160 (where_is_internal): Handle new command remapping representation.
14161 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14162 staticpro them. Defsubr Fremap_command.
14163
14164 * keymap.h (Fremap_command): Declare extern.
14165 (is_command_symbol): Remove extern.
14166
14167 * keyboard.c (command_loop_1): Use Fremap_command for command
14168 remapping; now try command remapping for all symbols.
14169
141702002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14171
14172 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14173
141742002-02-23 Jason Rumney <jasonr@gnu.org>
14175
14176 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14177 on the string before encoding it.
14178 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14179 after decoding it.
14180
14181 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14182
141832002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14184
14185 * w32term.c (enter_timestamp): Remove unused static variable to
14186 prevent warning.
14187
14188 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14189
141902002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14191
14192 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14193
14194 * xselect.c (selection_data_to_lisp_data): Fix last change.
14195
141962002-02-22 Jason Rumney <jasonr@gnu.org>
14197
14198 * w32term.h (struct w32_output): New member menu_command_in_progress.
14199
14200 * w32menu.c (menubar_selection_callback): Free the menu and
14201 clear the menu_command_in_progress flag.
14202
14203 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14204 (menu_free_timer): New variable.
14205 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14206 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14207 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14208 menu command is in progress.
14209 <WM_COMMAND>: Set the menu_command_in_progress flag.
14210 Kill any menu_free_timer that is running.
14211
14212 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14213 Call ExtTextOutA rather than ExtTextOut.
14214
142152002-02-22 Eli Zaretskii <eliz@gnu.org>
14216
14217 * puresize.h (BASE_PURESIZE): Increase to 755000.
14218
142192002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14220
14221 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14222 on the string before encoding it.
14223 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14224 after decoding it.
14225
142262002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14227
14228 Support for ICCCM Extended Segments in X selections:
14229
14230 * xselect.c <Qcompound_text_no_extensions>: New variable.
14231 (syms_of_xselect): Intern and staticpro it.
14232 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14233 selection text.
14234 (lisp_data_to_selection_data): If next-selection-coding-system is
14235 compound-text-no-extensions, set the type of selection to be
14236 compound-text.
14237
14238 * xterm.h (x_encode_text): Update prototype.
14239
14240 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14241 callers changed. If SELECTIONP is non-zero, run the
14242 pre-write-conversion function before encoding the selection text.
14243
142442002-02-21 Kim F. Storm <storm@cua.dk>
14245
14246 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14247
14248 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14249 Correct composing of language-change event.
14250
142512002-02-20 Kim F. Storm <storm@cua.dk>
14252
14253 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14254 bindings at PT when building menu (the menu is not updated often
14255 enough for this to work reliable).
14256 (tool_bar_items): Likewise.
14257 (current_active_maps): Removed unused (and buggy) function.
14258
142592002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14260
14261 * xfns.c (gif_load): Use correct width and height for GIF images.
14262
142632002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14264
14265 * floatfns.c (Fatan): Accept an optional second arg and call
14266 atan2 if passed 2 args.
14267
142682002-02-18 Jason Rumney <jasonr@gnu.org>
14269
14270 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14271
142722002-02-17 Jason Rumney <jasonr@gnu.org>
14273
14274 * w32term.c (x_autoselect_window_p): New variable.
14275 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14276 (note_mouse_movement): Use it.
14277
14278 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14279
14280 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14281
14282 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14283 New variables.
14284 (syms_of_w32fns): Intern and staticpro them.
14285 (x_frame_parms) <"fullscreen">: New parameter.
14286 (x_fullscreen_move, x_set_fullscreen): New functions.
14287 (x_set_frame_parameters): Support Qfullscreen.
14288 (x_real_positions): Save x/y_pixels_diff frame params.
14289 (x_figure_window_size): Support full-screen frames.
14290 (Fx_create_frame): Default the fullscreen parameter.
14291
14292 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14293 (x_fullscreen_adjust): New functions.
14294 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14295 fullscreen. Call x_check_fullscreen_move, and set the
14296 want_fullscreen member of output_data.w32
14297 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14298
14299 * w32term.h: New enum for FULLSCREEN_* constants.
14300 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14301 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14302 (x-fullscreen-adjust): New prototype.
14303
143042002-02-17 Kim F. Storm <storm@cua.dk>
14305
14306 * frame.c: (Vmouse_highlight): New variable.
14307 (syms_of_frame): DEFVAR_LISP it.
14308
14309 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14310
048addec 14311 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14312
048addec
JD
14313 * xterm.c (disable_mouse_highlight): Removed variable.
14314 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14315 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14316 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14317 and on after keyboard input.
14318 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14319
048addec 14320 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14321
048addec
JD
14322 * msdos.c (disable_mouse_highlight): Removed variable.
14323 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14324 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14325 (internal_terminal_init): Initialize mouse_face_hidden.
14326 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14327 and on after keyboard input.
4f1b1854 14328
048addec 14329 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14330
048addec
JD
14331 * w32term.c (disable_mouse_highlight): Removed variable.
14332 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14333 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14334 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14335 and on after keyboard input.
14336 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14337
048addec 143382002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14339
048addec
JD
14340 * msdos.c (last_mouse_window): New variable.
14341 (dos_rawgetc): Fix last change--if the mouse is in the same window
14342 as recorded in last_mouse_window, don't select this window.
5cb6905d 14343
048addec 14344 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14345
048addec
JD
14346 * msdos.c (x_autoselect_window_p): New variable.
14347 (syms_of_msdos): Defvar it.
14348 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14349 which the last mouse movement occured, unless it is already selected.
437dfb9f 14350
048addec
JD
14351 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14352 New variables.
14353 (syms_of_xdisp): DEVFAR them.
14354 (hscroll_window_tree): Use automatic_hscroll_margin and
14355 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14356
048addec 143572002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14358
048addec
JD
14359 * xterm.c (x-autoselect-window): New variable.
14360 (note_mouse_movement): Use it.
9f696a00 14361
048addec 14362 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14363
048addec 143642002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14365
bfa02563 14366 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14367
048addec 14368 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14369
048addec 143702002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14371
048addec 14372 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14373
048addec
JD
14374 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14375 (Vx_super_keysym): New variables.
14376 (syms_of_xterm): DEFVAR_LISP them.
14377 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14378 variables to determine which keys to use for the various modifiers.
a474d59c 14379
048addec 143802002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14381
048addec
JD
14382 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14383 (mode_line_in_non_selected_windows): New variable.
14384 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14385
048addec
JD
14386 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14387 Use mode_line_in_non_selected_windows.
14388 (mode_line_in_non_selected_windows): Declare extern.
14389 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14390
048addec 143912002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14392
048addec
JD
14393 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14394 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14395 (Fclear_this_command_keys): Doc fixes.
2d10309f 14396
048addec
JD
14397 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14398 (update_face_from_frame_parameter): Increment face_change_count
14399 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14400
048addec
JD
14401 * xdisp.c (QCpropertize): New variable.
14402 (mode_line_proptrans_alist): New variable.
14403 (display_mode_element): New arg PROPS; all calls changed.
14404 Implement this, for strings.
14405 Handle literal output of strings by sharing the
14406 main-line code for strings, using local var `literal'.
14407 Handle :propertize feature.
14408 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14409 mode_line_proptrans_alist.
0b1e6b54 14410
048addec 144112002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14412
048addec
JD
14413 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14414 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14415
048addec
JD
14416 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14417 (CURRENT_MODE_LINE_FACE_ID): Use it.
14418 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14419
048addec
JD
14420 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14421 to get mode line face.
e17144de 14422
048addec 144232002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14424
048addec
JD
14425 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14426 variables; cus-start.el doesn't need them anymore.
44368f8f 14427
048addec 144282002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14429
048addec
JD
14430 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14431 reduction. This fixes a display problem where stray newlines were
14432 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14433
048addec 144342002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14435
048addec 14436 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14437
048addec 14438 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14439
048addec 144402002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14441
048addec
JD
14442 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14443 match each other.
14444 (w32_load_system_font): Prevent Cleartype fonts from loading.
14445 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14446
048addec 144472002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14448
048addec
JD
14449 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14450 (CURRENT_MODE_LINE_HEIGHT): Use it.
14451 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14452
048addec
JD
14453 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14454 (pos_visible_p, handle_face_prop): Likewise.
14455 (display_mode_lines): Likewise, but for the real selected window.
14456 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14457
048addec
JD
14458 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14459 in non-selected windows.
14460 (realize_basic_faces): Realize it.
14461 (syms_of_term): Intern and staticpro it.
308dd672 14462
048addec 144632002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14464
048addec
JD
14465 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14466 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14467
048addec 144682002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14469
048addec
JD
14470 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14471 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14472
048addec 14473 * floatfns.c (Fround): Doc fix.
3c1e6b46 14474
048addec 144752002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14476
048addec 14477 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14478
048addec 144792002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14480
048addec 14481 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14482
048addec 144832002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14484
048addec
JD
14485 * keymap.c (where_is_internal): Only check whether definition is
14486 remapped if it fulfills is_command_symbol.
0065bb74 14487
048addec 144882002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14489
048addec 14490 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14491
048addec 14492 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14493
048addec 144942002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14495
048addec
JD
14496 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14497 defining command remapping. Doc updated.
14498 (Flookup_key): Remap command through keymap if KEY is a symbol.
14499 (is_command_symbol): New function.
14500 (Fkey_binding): Use it. New optional argument NO-REMAP.
14501 Doc updated. Callers changed. Perform command remapping via
14502 recursive call unless that arg is non-nil.
14503 (where_is_internal): New argument no_remap. Callers changed.
14504 Call recursively to find original key bindings for a remapped
14505 comand unless that arg is non-nil.
14506 (Fwhere_is_internal): New optional argument NO-REMAP.
14507 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14508
048addec
JD
14509 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14510 (is_command_symbol): Added prototype.
0d8466cc 14511
048addec
JD
14512 * keyboard.c (Vthis_original_command): New variable.
14513 (syms_of_keyboard): DEFVAR_LISP it.
14514 (command_loop_1): Set it, and perform command remapping.
15fff01d 14515
048addec 145162002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14517
048addec 14518 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14519
048addec 145202002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14521
048addec 14522 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14523
048addec 145242002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14525
048addec 14526 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14527
048addec 145282002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14529
048addec 14530 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14531
048addec 145322002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14533
048addec 14534 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14535
048addec
JD
14536 * lread.c (read1): Redesign strategy for force_multibyte and
14537 force_singlebyte. Now is_multibyte records whether read_buffer
14538 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14539
048addec 145402002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14541
048addec
JD
14542 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14543 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14544
048addec 145452002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14546
048addec
JD
14547 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14548 latter never being defined on GNU/Linux.
749f499f 14549
048addec 145502002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14551
048addec
JD
14552 * xfaces.c (realize_default_face): Don't set the weight and slant of
14553 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14554
048addec 145552002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14556
048addec
JD
14557 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14558 Call cancel_hourglass unconditionally.
d0fd26dd 14559
048addec
JD
14560 * eval.c (Fsignal): Remove duplicated declaration of
14561 the variable `display_hourglass_p'.
b4c45162 14562
048addec 145632002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14564
048addec 14565 * editfns.c (region_limit): Nicer error message.
c95eaa61 14566
048addec
JD
14567 * coding.c (decode_composition_emacs_mule):
14568 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14569
048addec
JD
14570 * callint.c (check_mark): New arg to specify clearer error message.
14571 Callers changed.
c95eaa61 14572
048addec 145732002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14574
048addec 14575 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14576
048addec 145772002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14578
048addec
JD
14579 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14580 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14581 Fix doc-strings.
c95eaa61 14582
048addec 145832002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14584
048addec 14585 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14586
048addec
JD
14587 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14588 and scroll_up_aggressively.
c95eaa61 14589
048addec 145902002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14591
048addec 14592 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14593
048addec 145942002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14595
048addec
JD
14596 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14597 (Fprevious_property_change, Fprevious_single_property_change):
14598 Stay within the narrowed-buffer boundaries.
e2c3786a 14599
048addec 146002002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14601
048addec
JD
14602 * term.c (Ftty_display_color_cells): New function.
14603 (syms_of_term): Defsubr it.
14604 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14605 argument name to DISPLAY. Doc fix.
bf794306 14606
048addec
JD
14607 * dispextern.h: Add prototype for set_tty_color_mode and
14608 tty_setup_colors.
bf794306 14609
048addec 146102002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14611
048addec
JD
14612 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14613 If region left to draw is not what was expected, mark the frame as
14614 garbaged.
62582985 14615
048addec
JD
14616 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14617 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14618
048addec 146192002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14620
048addec
JD
14621 * w32term.c (x_update_window_begin): Only hide caret if
14622 w32_use_visible_system_caret is set.
14623 (x_update_window_end): Only show caret if
14624 w32_use_visible_system_caret is set.
14625 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14626
048addec 14627 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14628
048addec 146292002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14630
048addec
JD
14631 * unexelf.c (unexec): Define n so as to cause compilation error
14632 for the code where people have often written n instead of nn.
1e9a6186 14633
048addec 14634 * .gdbinit (hookpost-run): Defined.
1e9a6186 14635
048addec 146362002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14637
048addec 14638 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14639
048addec 146402002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14641
048addec
JD
14642 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14643 if fullscreen is being set.
7c75be36 14644
048addec 146452002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14646
048addec
JD
14647 * minibuf.c (Fminibuffer_contents)
14648 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14649 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14650
048addec 146512002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14652
048addec 14653 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14654
048addec 146552002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14656
048addec
JD
14657 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14658 height before comparison.
14659 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14660
048addec 146612002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14662
048addec
JD
14663 * w32term.c (w32_system_caret_width): Remove.
14664 (w32_use_visible_system_caret): New user flag.
14665 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14666 Windows reports a screen reader running.
14667 (x_update_window_begin): Hide the system caret.
14668 (x_update_window_end): Show the system caret.
14669 (x_display_and_set_cursor): Don't draw a cursor when
14670 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14671
048addec
JD
14672 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14673 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14674 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14675 the user requests it. Use system default width when creating.
14676 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14677
048addec
JD
14678 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14679 New window messages.
905cc05a 14680
048addec 146812002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14682
048addec 14683 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14684
048addec 146852002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14686
048addec 14687 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14688
048addec 146892002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14690
048addec 14691 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14692
048addec 146932002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14694
048addec
JD
14695 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14696 that Windows returns. If a double check fails, try to guess how
14697 ExtTextOut is going to act.
4d0fa4f3 14698
048addec
JD
14699 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14700 in place of stricmp.
14701 (w32_list_synthesized_fonts): Removed.
14702 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14703 (struct enumfont_t): New element; list.
14704 (enum_font_cb2): List all style and charset variations of a font.
14705 (Fw32_select_font): New optional argument; include_proportional.
14706 Exclude vertical fonts. Exclude proportional fonts unless
14707 include_proportional is non-nil.
14708 (w32_enable_synthesized_fonts): Change to a boolean.
14709 (Fw32_send_sys_command): Doc fix.
493faf20 14710
048addec 147112002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14712
048addec
JD
14713 * dispnew.c (update_frame): Move the variable `tem' to the block
14714 where it is used.
4971e491 14715
048addec 147162002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14717
048addec
JD
14718 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14719 call to face-set-after-frame-default.
4971e491 14720
048addec 147212002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14722
048addec
JD
14723 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14724 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14725
048addec 147262002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14727
048addec
JD
14728 * window.c (enlarge_window): When exceeding size of parent,
14729 directly delete all the siblings instead of trying to resize it.
201c831a 14730
048addec 147312002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14732
048addec 14733 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14734
048addec 147352002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14736
048addec 14737 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14738
048addec 147392002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14740
048addec
JD
14741 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14742 is invisible. This can happen if cursor is on top line of a
14743 window, and we switch to a buffer with a header line.
d77fbc16 14744
048addec 14745 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14746
048addec 147472002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14748
048addec
JD
14749 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14750 `dont_resize' only when used.
61e3b944 14751
048addec 14752 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14753
048addec 147542002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14755
048addec
JD
14756 * xdisp.c (display_mode_element): When computing charpos, depend
14757 on multibyteness of elt, not the text in field.
8af01033 14758
048addec 147592002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14760
048addec
JD
14761 * buffer.c (Fkill_all_local_variables):
14762 Increment `update_mode_lines' only once.
7363986a 14763
048addec 147642002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14765
048addec
JD
14766 * lisp.h (adjust_after_replace_noundo)
14767 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14768
048addec 14769 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14770
048addec 147712002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14772
048addec
JD
14773 Support for the --color command-line argument and tty-color-mode
14774 frame parameter:
f1a85b89 14775
048addec
JD
14776 * term.c (tty_default_color_capabilities, tty_setup_colors)
14777 (set_tty_color_mode): New functions.
14778 (term_init): Call tty_default_color_capabilities.
14779 (Qtty_color_mode_alist): New variable.
14780 (syms_of_term): Intern and staticpro it.
f1a85b89 14781
048addec
JD
14782 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14783 frames.
14784 (do_switch_frame): For termcap frames, switch the tty
14785 color mode as specified by the frame's parameters.
14786 (Qtty_color_mode): New variable.
14787 (syms_of_frame): Intern and staticpro it.
3a62677f 14788
048addec
JD
14789 * emacs.c (USAGE2): Add the --color option.
14790 (standard_args): Ditto.
72244db2 14791
048addec
JD
147922002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14793
14794 * xterm.h (struct x_output): New members want_fullscreen,
14795 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14796 y_pixels_outer_diff.
14797 New enum for FULLSCREEN_* constants.
14798 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14799 is NULL.
14800 (x_fullscreen_adjust): Add prototype.
3a62677f 14801
048addec
JD
14802 * emacs.c (USAGE2): Add the new full-screen arguments.
14803 (standard_args): Ditto.
3a62677f 14804
048addec
JD
14805 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14806 New variables.
14807 (syms_of_xfns): Intern and staticpro them.
14808 (x_frame_parms) <"fullscreen">: New parameter.
14809 (x_fullscreen_move, x_set_fullscreen): New functions.
14810 (x_set_frame_parameters): Support for Qfullscreen.
14811 (x_real_positions): More accurate computation of the frame position.
14812 (x_figure_window_size): Support full-screen frames.
14813 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14814
048addec
JD
14815 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14816 (XTread_socket) <Expose>: Call x_check_fullscreen.
14817 <ConfigureNotify>: Don't resize to fullscreen.
14818 Call x_check_fullscreen_move, and set the want_fullscreen member of
14819 output_data.x.
3a62677f 14820
048addec 148212002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14822
048addec
JD
14823 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14824 for mice with more than 3 buttons.
b8523839 14825
048addec
JD
14826 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14827 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14828
048addec
JD
14829 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14830 (syms_of_w32fns): DEFVAR_BOOL it.
14831 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14832
048addec 148332002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14834
048addec 14835 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14836
048addec 148372002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14838
048addec 14839 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14840
048addec 148412002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14842
048addec
JD
14843 * .gdbinit (xbuffer): Remove address operator since data is now a
14844 pointer.
c93674bb 14845
048addec 148462002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14847
048addec 14848 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14849
048addec 14850 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14851
048addec 148522002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14853
048addec
JD
14854 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14855 when checking for multiple frames.
91175673 14856
048addec 148572002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14858
048addec
JD
14859 * window.c (delete_window): Rewrite the code for changing the
14860 selected window to handle the case where WINDOW is not a leaf.
91175673 14861
048addec 148622002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14863
048addec
JD
14864 * process.c (send_process): Set src_multibyte to 1 after the call
14865 top setup_coding_system, not before the call.
e0fead5d 14866
048addec 148672002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14868
048addec
JD
14869 * xmenu.c (set_frame_menubar, xmenu_show):
14870 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14871
048addec
JD
14872 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14873 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14874
048addec 148752002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14876
048addec 14877 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14878
048addec 14879 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14880
048addec 14881 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14882
048addec 148832002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14884
048addec
JD
14885 * insdel.c (make_gap_larger): Make sure buffer size does not
14886 overflow range of int.
62854fe2 14887
048addec 148882002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14889
048addec
JD
14890 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14891 OVERLAPS_P.
656f46bb 14892
048addec 14893 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14894
048addec
JD
14895 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14896 to the left or to the right of the pointer, put it against
14897 the left screen edge.
14898 (x_frame_parms): Add missing braces around initializer.
036e218d 14899
048addec
JD
14900 * w32term.c (x_setup_relief_colors): Don't compute an image's
14901 background color if it doesn't have a Pixmap.
14902 (notice_overwritten_cursor): Don't depend on
14903 output_cursor and updated_area. Compare pixel coordinates with
14904 window's cursor pixel coordinates.
14905 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14906 Call notice_overwritten_cursor with new arg list.
14907 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14908 unconditionally.
14909 (x_draw_image_relief): Use predefined macro instead of
14910 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14911
048addec 14912 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14913
048addec 149142002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14915
048addec 14916 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14917
048addec 149182002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 14919
048addec
JD
14920 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14921 (Fkey_binding): Try the `keymap' property map first.
14922 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14923 minor mode bindings.
90647b07 14924
048addec 149252002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 14926
048addec 14927 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 14928
048addec 149292002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 14930
048addec
JD
14931 * keyboard.c (read_key_sequence): Handle the keymap property
14932 before minor mode maps.
9fbc32aa 14933
048addec
JD
14934 * editfns.c (Fformat): Update thissize from field_width
14935 based on the actual width, in the string case.
036e218d 14936
048addec 149372002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14938
048addec
JD
14939 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14940 when used as truth value to prevent gcc warnings.
9fbc32aa 14941
048addec
JD
14942 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14943 * w32proc.c: Include <config.h>.
9fbc32aa 14944
048addec 149452002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14946
048addec
JD
14947 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14948 not EMACS_INT, to make them compatible with DEFVAR_INT.
14949 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14950
048addec 149512002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14952
048addec
JD
14953 * print.c (print_object): Test print_escape_nonascii only for
14954 unibyte strings.
14955 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14956 when outputting to a multibyte buffer.
9fbc32aa 14957
048addec 149582001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14959
048addec
JD
14960 * print.c (print_object): In multibyte string, use hex escapes.
14961 Use octal only for unibyte strings.
14962 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14963
048addec
JD
14964 * lread.c (read_escape): New arg BYTEREP for reporting whether
14965 escape forces unibyte or multibyte.
14966 (read1): When reading a string, take note of that info.
0142178a 14967
048addec 149682001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 14969
048addec
JD
14970 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14971 comparison to test lisp value returned by Fget.
d4824a5d 14972
048addec 149732001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 14974
048addec 14975 * lisp.h (max_specpdl_size): Add declaration.
b1356234 14976
048addec 14977 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 14978
048addec
JD
14979 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14980 Handle modifier bits. Correct typo in error message.
99e380ee 14981
048addec 149822001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 14983
048addec
JD
14984 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14985 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14986 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14987 Update calls to Fdefine_abbrev.
14988 (write_abbrev): Update for changed data format.
14989 Don't list "system" abbrevs.
14990 (Fexpand_abbrev): Update use count with new data format.
14991 (describe_abbrev): Update for changed data format.
14992 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 14993
048addec 14994 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 14995
048addec 14996 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 14997
048addec
JD
14998 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14999 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15000
048addec
JD
15001 * keymap.c (Flookup_key): Error message if key has wrong data type.
15002 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15003 (exclude_key): New variable.
59a86c99 15004
048addec 150052001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15006
048addec
JD
15007 * xterm.c (x_setup_relief_colors): Don't compute an image's
15008 background color if it doesn't have a Pixmap.
eb77a5f4 15009
048addec
JD
15010 * xterm.c (notice_overwritten_cursor): Don't depend on
15011 output_cursor and updated_area. Compare pixel coordinates with
15012 window's cursor pixel coordinates.
15013 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15014 Call notice_overwritten_cursor with new arg list.
15015 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15016 unconditionally.
eb77a5f4 15017
048addec
JD
15018 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15019 height of the cursor line to the amount to scroll.
eb77a5f4 15020
048addec 150212001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15022
048addec
JD
15023 * intervals.c (set_point_both): The position after an invisible,
15024 intangible character is not an acceptable stopping point.
bb313871 15025
048addec 150262001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15027
048addec
JD
15028 * window.c (enlarge_window): In new preserve_before code, convert
15029 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15030
048addec 150312001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15032
048addec 15033 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15034
048addec 150352001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15036
048addec
JD
15037 * keyboard.c (record_char): Ignore duplicate help-echo events only
15038 separated by mouse-movement. When tracking mouse, only record
15039 first and last mouse-movement event in same window.
15040 Don't record mouse-movement events in keyboard macros.
3ce081f5 15041
048addec 150422001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15043
048addec
JD
15044 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15045 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15046
048addec
JD
15047 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15048 instead of Fstring_as_unibyte.
9fabb2f5 15049
048addec 150502001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15051
048addec 15052 The following changes remove mocklisp support:
9fabb2f5 15053
048addec 15054 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15055
048addec
JD
15056 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15057 `Qmocklisp' and `Qmocklisp_arguments'.
15058 Remove prototype of syms_of_mocklisp.
2fa0eedf 15059
048addec 15060 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15061
048addec
JD
15062 * callint.c: Do not include mocklisp.h.
15063 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15064
048addec
JD
15065 * eval.c: Remove variables `Qmocklisp_arguments',
15066 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15067 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15068 Do not test for mocklisp case.
15069 (Fwhile): Remove unused variable `tem'.
15070 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15071
048addec 15072 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15073
048addec 15074 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15075
048addec 15076 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15077
048addec 150782001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15079
048addec
JD
15080 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15081 to the left or to the right of the pointer, put it against
15082 the left screen edge.
6108b49c 15083
048addec 150842001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15085
048addec
JD
15086 * Makefile.in (distclean): Remove .gdbinit if we are building
15087 outside the source tree.
5eea19a4 15088
048addec 150892001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15090
048addec 15091 * w32.c (emacs_root_dir): New function.
5eea19a4 15092
048addec 15093 * msdos.c (emacs_root_dir): New function.
5eea19a4 15094
048addec
JD
15095 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15096 of the current drive as the fallback for default_directory.
438e57dd 15097
048addec
JD
15098 * dired.c (file_name_completion): Run the elements of
15099 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15100
048addec
JD
15101 * lisp.h (scmp): Remove prototype, since it's now a static
15102 function private to dired.c.
c88e5347 15103
048addec 151042001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15105
048addec
JD
15106 * dired.c (scmp): Function moved from minibuf.c.
15107 Delete multibyte handling--used only on encoded strings.
59ce1461 15108
048addec 15109 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15110
048addec 15111 * fns.c (merge): Add QUIT call.
59ce1461 15112
048addec 151132001-12-18 Dave Love <fx@gnu.org>
8727d588 15114
048addec
JD
15115 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15116 language/georgian.el.
8727d588 15117
048addec 151182001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15119
048addec
JD
15120 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15121 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15122
048addec 151232001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15124
048addec
JD
15125 * xdisp.c (window_box_height): Do not return negative values.
15126 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15127
048addec 15128 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15129
048addec 15130 * term.c (keys): Likewise.
deece6f5 15131
048addec 15132 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15133
048addec 151342001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15135
048addec
JD
15136 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15137 patch (COMPOSING_P, not COMPOSING).
28ff4293 15138
048addec 151392001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15140
048addec 15141 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15142
048addec
JD
15143 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15144 before calling decode_coding.
9b46de40 15145
048addec 15146 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15147
048addec
JD
15148 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15149 instead of only for COMPOSITION_DISABLED.
9b46de40 15150
048addec 151512001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15152
048addec 15153 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15154
048addec 15155 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15156
048addec
JD
15157 * buffer.h (struct buffer): New field `display_error_modiff'.
15158 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15159
048addec 15160 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15161
048addec
JD
15162 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15163 Call redisplay_window, but not if display_error_modiff field says no.
15164 (redisplay_window_error): New function.
15165 (displayed_buffer): New variable.
15166 (redisplay_internal, redisplay_windows): Call the new functions
15167 instead of redisplay_window directly.
2cd23960 15168
048addec 151692001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15170
048addec 15171 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15172
048addec 151732001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15174
048addec 15175 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15176 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15177 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15178
048addec 151792001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15180
048addec
JD
15181 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15182 parameter have a numeric value all the time.
f6fa0866 15183
048addec 15184 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15185
048addec 151862001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15187
048addec 15188 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15189
048addec
JD
15190 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15191 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15192
048addec 151932001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15194
048addec
JD
15195 * xdisp.c (move_it_vertically_backward): Change heuristic
15196 for the case that we didn't move far enough initially.
91c153e2 15197
048addec
JD
15198 * window.c (Frecenter): Simplify computation in the case of window
15199 system frames and ARG < 0; use window_box_height.
65b7d3e7 15200
048addec 152012001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15202
048addec
JD
15203 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15204 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15205
048addec 152062001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15207
048addec
JD
15208 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15209 arg is negative.
be676094 15210
048addec 152112001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15212
048addec
JD
15213 * m/hp800.h: Split the __hpux conditional into the parts
15214 that are right for GNU/Linux too and the parts that are not.
15215 Use the former if GNU_LINUX.
15216 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15217
048addec 15218 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15219
048addec 152202001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15221
048addec
JD
15222 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15223 `new style' [w/`doc:' keyword].
032a857d 15224
048addec 152252001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15226
048addec
JD
15227 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15228 before using.
b6270150 15229
048addec 152302001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15231
048addec
JD
15232 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15233 keyword].
98cbb9fa 15234
048addec 152352001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15236
048addec 15237 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15238
048addec 15239 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15240
048addec 152412001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15242
048addec 15243 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15244 Add comment to explain where the struct came from.
048addec
JD
15245 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15246 (add_menu_item): Process pop-up menus first to avoid memory leak.
15247 (add_menu_item, w32_menu_display_help): Use `help' field as
15248 Lisp_Object.
15249 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15250
048addec 152512001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15252
048addec 15253 * COPYING: Moved back.
fa336b91 15254
048addec
JD
15255 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15256 Add parentheses around && within ||.
077907d4 15257
048addec 15258 * indent.c (compute_motion): Likewise.
aa2af83a 15259
048addec 15260 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15261
048addec
JD
15262 * coding.c (setup_coding_system, shrink_encoding_region)
15263 (Fdecode_sjis_char): Likewise.
60a653f1 15264
048addec 152652001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15266
048addec
JD
15267 * xdisp.c (display_mode_element): Don't read past end of string if
15268 it ends with '%'.
60a653f1 15269
048addec
JD
15270 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15271 can hold.
60a653f1 15272
048addec
JD
15273 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15274 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15275 type changed to Lisp_Object.
15276 (syms_of_data): DEFVAR_LISP them.
60a653f1 15277
048addec 152782001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15279
048addec
JD
15280 * callproc.c (init_callproc): Set Vdata_directory based on the source
15281 location whenever Emacs was run uninstalled.
60a653f1 15282
048addec 152832001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15284
048addec
JD
15285 * config.in (HAVE_WORKING_VFORK): New #undefs.
15286 * process.c (create_process):
15287 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15288 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15289 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15290 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15291 * m/intel386.h (HAVE_VFORK): Likewise.
15292 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15293 * m/mips.h (HAVE_VFORK): Likewise.
15294 * s/freebsd.h (vfork): Remove #define.
15295 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15296 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15297
048addec 152982001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15299
048addec
JD
15300 * s/hpux10.h (random): Add undef.
15301 (HAVE_RANDOM): Define it just once.
60a653f1 15302
048addec 153032001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15304
048addec 15305 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15306
048addec 153072001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15308
048addec
JD
15309 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15310 scroll bars of the frame before deleting the frame itself. If the
15311 frame has a widget, delete the frame with XtDestroyWidget, and do
15312 not call XDestroyWindow before that.
60a653f1 15313
048addec 153142001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15315
048addec 15316 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15317
048addec 15318 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15319
048addec 153202001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15321
048addec
JD
15322 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15323 excessively large.
60a653f1 15324
048addec
JD
15325 * insdel.c (make_gap_larger): New function.
15326 (make_gap_smaller): New function.
15327 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15328 Call make_gap_smaller if arg is negative.
60a653f1 15329
048addec 153302001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15331
048addec
JD
15332 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15333 Pass a dummy argument when calling interrupt_signal.
15334 (parse_menu_item): Mark disabled items before checking for empty def.
15335 (read_char_minibuf_menu_prompt): Make safety more visible.
15336 (read_key_sequence): Add a `first_unbound' variable.
15337 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15338 unbound prefix as soon as we can detect it.
60a653f1 15339
048addec
JD
15340 * doc.c (Fsnarf_documentation): Add prototype.
15341 (get_doc_string): Handle negative arguments.
15342 (Fdocumentation): Use AREF and ASIZE.
15343 Move the calls to get_doc_string to a single place.
15344 Don't confuse an interactive-spec for a docstring reference.
15345 (Fdocumentation_property): Take advantage of the fact that
15346 get_doc_string now ignores the sign of the docstring position.
60a653f1 15347
048addec 15348 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15349
048addec 153502001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15351
a64387ee 15352 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15353
048addec 153542001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15355
048addec
JD
15356 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15357 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15358
048addec 153592001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15360
048addec
JD
15361 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15362 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15363
048addec 15364 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15365
048addec 153662001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15367
048addec 15368 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15369
048addec 153702001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15371
048addec 15372 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15373
048addec 153742001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15375
f63fd14e 15376 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15377
048addec
JD
15378 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15379 [!WM_MOUSELEAVE]: Define.
60a653f1 15380
048addec
JD
15381 * w32menu.c (current_popup_menu, get_menu_item_info):
15382 (set_menu_item_info): New vars.
15383 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15384 (w32_menu_show): Set current_popup_menu.
15385 (add_menu_item): Allocate new strings for owner-drawn menu items
15386 and help strings.
15387 Use owner-draw for disabled menu items again.
15388 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15389 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15390
048addec
JD
15391 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15392 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15393 <WM_EXITMENULOOP>: Free menu strings.
15394 <WM_MOUSELEAVE>: Stop tracking mouse.
15395 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15396
048addec
JD
15397 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15398 and mouse face.
60a653f1 15399
048addec 154002001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15401
048addec
JD
15402 The following changes add left-fringe and right-fringe
15403 frame parameters to adjust fringe widths, or remove one or
15404 both fringes.
60a653f1 15405
048addec
JD
15406 * frame.h (struct frame): Remove trunc_area_pixel_width and
15407 trunc_area_cols fields.
15408 (Qleft_fringe, Qright_fringe): Declare.
15409 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15410
048addec
JD
15411 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15412 (syms_of_frame): Initialize them.
60a653f1 15413
048addec
JD
15414 * window.c (coordinates_in_window): Handle separate left and right
15415 fringe widths.
60a653f1 15416
048addec
JD
15417 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15418 and fringe_cols fields.
15419 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15420 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15421 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15422 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15423 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15424 (x_compute_fringe_widths): Add prototype.
60a653f1 15425
048addec
JD
15426 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15427 fill fringe evenly with small dashes.
f63fd14e 15428 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15429 clip the new ZV bitmap to avoid jitter between rows.
15430 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15431 background. Don't draw fringe bitmaps if fringe width is zero.
15432 (x_compute_fringe_widths): New function.
15433 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15434
048addec
JD
15435 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15436 (x_set_frame_parameters): Process `font' parameter before other
15437 parameters as fringe widths depend on it.
15438 (x_set_fringe_width): New function.
15439 (x_figure_window_size): Use x_compute_fringe_widths.
15440 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15441 parameters.
60a653f1 15442
048addec
JD
15443 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15444 (EmacsFrameSetCharSize): Ditto.
60a653f1 15445
048addec
JD
15446 * w32term.h: Merged changes from xterm.h.
15447 * w32term.c: Merged changes from xterm.c.
15448 * w32fns.c: Merged changes from xfns.c.
60a653f1 15449
048addec 154502001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15451
048addec 15452 * COPYING: Removed.
60a653f1 15453
048addec 154542001-11-29 Dave Love <fx@gnu.org>
60a653f1 15455
048addec
JD
15456 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15457 extra extra slot.
15458 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15459
048addec 154602001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15461
048addec
JD
15462 * fileio.c (file-name-coding-system)
15463 (default-file-name-coding-system): Doc fix (links to referenced
15464 variables added).
60a653f1 15465
048addec 154662001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15467
048addec
JD
15468 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15469 Add dummy uses of gcproN variables.
60a653f1 15470
048addec
JD
15471 * category.c (describe_category, describe_category_1)
15472 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15473 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15474
048addec 154752001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15476
048addec 15477 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15478
048addec
JD
15479 * Makefile.in (lispdir): New variable, referring to build dir.
15480 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15481
048addec 154822001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15483
048addec
JD
15484 * w32menu.c (w32_menu_display_help): Actually add the new argument
15485 OWNER.
60a653f1 15486
048addec 154872001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15488
048addec
JD
15489 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15490 menu items. From David Ponce <dponce@wanadoo.fr>.
15491 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15492 conditionally.
f63fd14e 15493 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15494 help event in the owner frame's keyboard buffer.
60a653f1 15495
048addec
JD
15496 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15497 (Fx_show_tip): Don't subtract last width from row width.
15498
15499 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15500 (w32_read_socket): Use EQ to compare frames.
60a653f1 15501
048addec 155022001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15503
048addec
JD
15504 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15505 OVERLAPS_P.
60a653f1 15506
048addec 155072001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15508
048addec
JD
15509 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15510 `gcpro3' and `gcpro4'.
60a653f1 15511
048addec 15512 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15513
048addec 155142001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15515
048addec 15516 * ccl.c: Use AREF and ASIZE.
60a653f1 15517
048addec 155182001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15519
048addec
JD
15520 * lisp.h (run_hook_list_with_args): Remove.
15521 (LIST_END_P): Fix call to wrong_type_argument.
15522 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15523
048addec 155242001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15525
048addec
JD
15526 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15527 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15528
048addec
JD
15529 * eval.c: Use AREF and ASIZE.
15530 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15531
048addec
JD
15532 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15533 which match the end of the file-name.
15534 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15535 is not a valid env var, but leave it as is instead.
60a653f1 15536
048addec
JD
15537 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15538 Make nil bindings in char-tables transparent.
15539 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15540
048addec 155412001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15542
048addec
JD
15543 * textprop.c (set_text_properties_1): Allow START, END in either order.
15544 Do nothing if range is empty.
60a653f1 15545
048addec 15546 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15547
048addec
JD
15548 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15549 (clean): Not here.
60a653f1 15550
048addec 155512001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15552
048addec
JD
15553 * textprop.c (set_text_properties_1): Clearly mark that the
15554 interval should not be empty.
60a653f1 15555
048addec
JD
15556 * intervals.c (graft_intervals_into_buffer):
15557 Don't call set_text_properties_1 on an empty interval.
60a653f1 15558
048addec 155592001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15560
048addec 15561 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15562
048addec
JD
15563 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15564 don't lose the data in it.
60a653f1 15565
048addec 155662001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15567
048addec 15568 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15569
c62aec78 15570 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15571
c62aec78 15572 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15573
048addec 155742001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15575
048addec 15576 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15577
048addec 155782001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15579
048addec
JD
15580 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15581 Niemitalo <kon@iki.fi>.
60a653f1 15582
048addec 155832001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15584
048addec 15585 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15586
048addec
JD
15587 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15588 (Fx_show_tip): Block input during frame creation.
15589 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15590
048addec 155912001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15592
048addec
JD
15593 * lread.c (Fload): Detect recursive load error for more than 3
15594 nestings of the same file.
15595 (Vrecursive_load_depth_limit): Variable deleted.
15596 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15597
048addec 155982001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15599
048addec
JD
15600 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15601 mouse position if either left or top is not specified.
60a653f1 15602
048addec
JD
15603 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15604 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15605 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15606 (my_create_tip_window): Assign tip_window.
15607 (x_create_tip_frame): Use same defaults as X.
15608 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15609 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15610
048addec
JD
15611 * w32term.c (x_after_update_window_line): Doc fix.
15612 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15613 frames.
15614 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15615
048addec
JD
15616 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15617 for all Windowed systems.
60a653f1 15618
048addec 156192001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15620
048addec
JD
15621 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15622 realized, use the initial screen colors to clear the screen.
60a653f1 15623
048addec 156242001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15625
048addec
JD
15626 * textprop.c (Fset_text_properties): Remove unused variables
15627 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15628
048addec
JD
15629 * search.c (Freplace_match): Remove unused variable `inslen'.
15630
15631 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15632
156332001-11-22 Jason Rumney <jasonr@gnu.org>
15634
15635 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15636 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15637 (my_create_tip_window): New function.
15638 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15639 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15640
156412001-11-20 Jason Rumney <jasonr@gnu.org>
15642
15643 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15644 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15645
15646 * w32fns.c (Vw32_system_coding_system): Remove.
15647 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15648
156492001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15650
15651 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15652 after build_annotations.
15653
15654 * syntax.c (describe_syntax): Add dummy arg.
15655 (describe_syntax_1): Update call to describe_vector.
15656
15657 * category.c (describe_category): Add dummy arg.
15658 (describe_category_1): Update call to describe_vector.
15659
15660 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15661 (describe_command, describe_translation): Add dummy second param.
15662 (describe_map): Call elt_describer with two arguments.
15663 (describe_vector_princ): Add `fun' parameter.
15664 Call it instead of the hardcoded `princ'.
15665 (describe_vector): Add arg `args'.
15666 Pass it as a new second argument to elt_describer.
60a653f1 15667
048addec 15668 * keymap.h (describe_vector): Update prototype.
60a653f1 15669
048addec
JD
15670 * frame.c: Don't include keymap.h any more.
15671 (keys_of_frame): Remove.
60a653f1 15672
048addec 15673 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15674
048addec 15675 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15676
048addec 156772001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15678
048addec
JD
15679 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15680 if defined, 0 otherwise.
15681 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15682 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15683
048addec 156842001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15685
048addec 15686 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15687
048addec 156882001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15689
048addec
JD
15690 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15691 (x_draw_bar_cursor): If the background color of the glyph under
15692 the cursor equals the frame's cursor color, use the glyph's
15693 foreground color for drawing the bar cursor.
15694 (x_after_update_window_line): Clear internal border in different
15695 circumstances.
15696 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15697 (w32_draw_relief_rect): Correct relief by 1 pixel.
15698 (x_set_glyph_string_background_width):
15699 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15700 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15701 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15702 if cursor_in_non_selected_windows is false.
15703 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15704 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15705 Notice if cursor gets overwritten.
15706 (notice_overwritten_cursor): Renamed from
15707 note_overwritten_text_cursor. Rewritten to take glyph widths
15708 into account, and to take X positions as parameters.
15709 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15710 around call to x_draw_glyphs.
15711 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15712 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15713 color to use for image glyph reliefs.
15714 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15715 (glyph_rect): Remove unused variable `area'.
60a653f1 15716
048addec
JD
15717 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15718 some items.
15719 (x_set_internal_border_width): Set frame garbaged when window
15720 doesn't exist yet.
15721 (Fx_create_frame): Accept zero tool_bar_button_relief.
15722 (x_clear_image_1, four_corners_best, image_background)
15723 (image_background_transparent): New functions.
15724 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15725 (gs_format): Add `:background' entry.
15726 (lookup_image): Set IMG's background color if specified.
15727 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15728 when appropriate.
15729 (x_clear_image_1): Reset `background_valid' and
15730 `background_transparent_valid' fields.
15731 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15732 calculating it here. Set IMG's background_transparent field.
15733 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15734 (enum png_keyword_index): Add PNG_BACKGROUND.
15735 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15736 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15737 (enum gif_keyword_index): Add GIF_BACKGROUND.
15738 (enum gs_keyword_index): Add GS_BACKGROUND.
15739 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15740 Pre-calculate image background color where necessary.
15741 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15742 Use display info's n_cbits entry for screen depth.
15743 (Fx_show_tip): Remove unused variables `buffer', `top',
15744 `left', `max_width' and `max_height'.
60a653f1 15745
048addec 15746 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15747
048addec 157482001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15749
048addec 15750 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15751
048addec 157522001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15753
048addec 15754 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15755
048addec 157562001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15757
048addec
JD
15758 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15759 (message_dolog_marker3): New static variables hold three markers.
15760 (syms_of_xdisp): Initialize and staticpro them.
15761 (message_dolog): Use message_dolog_marker1..3 instead of
15762 allocating markers each time. Unchain them when done.
60a653f1 15763
048addec 157642001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15765
048addec 15766 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15767
048addec 157682001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15769
048addec 15770 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15771
048addec 157722001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15773
048addec 15774 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15775
048addec 157762001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15777
048addec 15778 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15779
048addec 157802001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15781
048addec
JD
15782 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15783 with invalid position.
60a653f1 15784
048addec 157852001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15786
048addec 15787 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15788
048addec
JD
15789 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15790 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15791 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15792
048addec 15793 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15794
048addec 157952001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15796
048addec
JD
15797 * fileio.c (build_annotations): Split off the tail.
15798 (build_annotations_2): New fun. Extracted from build_annotations.
15799 (Fwrite_region): Split the call to build_annotations into two
15800 calls to build_annotations and build_annotations_2.
077907d4 15801
048addec 158022001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15803
048addec
JD
15804 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15805 clear_waiting_for_input with argument.
1756e2fb 15806
048addec 15807 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15808
048addec 15809 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15810
048addec 15811 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15812
048addec 15813 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15814
048addec 158152001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15816
048addec
JD
15817 * fileio.c (choose_write_coding_system): New fun, extracted
15818 from Fwrite_region.
15819 (Fwrite_region): Use it.
fa336b91 15820
048addec
JD
15821 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15822 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15823 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15824
048addec 158252001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15826
048addec 15827 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15828
048addec
JD
15829 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15830 Required for ISC 4.1.
fa336b91 15831
048addec 158322001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15833
048addec
JD
15834 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15835 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15836
048addec 158372001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15838
048addec
JD
15839 The following changes are made to clean up the various internal
15840 references to the fringes to actually use the term `fringe' for
15841 them. Previously, they were called `flags areas', `bitmap areas',
15842 `left/right side of windows', or implicitly as `flags' or
15843 `bitmaps':
fa336b91 15844
048addec 15845 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15846 Comments fixed. Use renamed symbols.
06e8f738 15847
f63fd14e 15848 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15849
048addec
JD
15850 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15851 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15852 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15853
048addec 15854 * msdos.c: Comment fix.
9ce647f4 15855
048addec 15856 * w32fns.c: Use renamed symbols.
9b784ab8 15857
f63fd14e 15858 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15859 (fringe_bitmap_type): Renamed from bitmap_type.
15860 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15861 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15862 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15863
f63fd14e 15864 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15865 (fringes_extra): Renamed from flags_areas_extra.
15866 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15867 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15868 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15869 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15870 (FRAME_X_LEFT_FRINGE_WIDTH):
15871 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15872 (FRAME_X_RIGHT_FRINGE_WIDTH):
15873 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15874
048addec 15875 * widget.c: Use renamed symbols.
9f7e52b4 15876
f63fd14e 15877 * window.c: Comment fixes. Use renamed symbols.
048addec 15878 (coordinates-in-window-p): Doc fix.
fa336b91 15879
f63fd14e 15880 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15881
048addec 15882 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15883
048addec 15884 * xfns.c: Use renamed symbols.
89512fcd 15885
f63fd14e 15886 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15887 (fringe_bitmap_type): Renamed from bitmap_type.
15888 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15889 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15890 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15891
f63fd14e 15892 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15893 (fringes_extra): Renamed from flags_areas_extra.
15894 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15895 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15896 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15897 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15898 (FRAME_X_LEFT_FRINGE_WIDTH):
15899 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15900 (FRAME_X_RIGHT_FRINGE_WIDTH):
15901 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15902
159032001-11-15 Jason Rumney <jasonr@gnu.org>
15904
15905 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15906 work for most menu items. From David Ponce
15907 <david.ponce@wanadoo.fr>.
15908
159092001-11-15 Gerd Moellmann <gerd@gnu.org>
15910
15911 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15912 Some x_set_* function expect to be called even if old and new
15913 value are equal.
15914
15915 * xdisp.c (build_desired_tool_bar_string): Accept zero
15916 tool_bar_button_relief.
15917
15918 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15919
15920 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15921
15922 * xterm.c (x_draw_bar_cursor): If the background color of the
15923 glyph under the cursor equals the frame's cursor color, use
15924 the glyph's foreground color for drawing the bar cursor.
15925
15926 * dispnew.c (direct_output_forward_char): Fix character/byte
15927 position comparison.
7d18891d 15928
048addec 159292001-11-15 Miles Bader <miles@gnu.org>
d2936d21 15930
048addec
JD
15931 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15932 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15933 Update arguments to find_field.
15934 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15935 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15936 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15937 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15938
048addec 159392001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15940
048addec 15941 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15942
048addec
JD
15943 * dispextern.h (image_background, image_background_transparent):
15944 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15945
048addec 159462001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15947
048addec 15948 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15949
048addec 15950 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15951
048addec 15952 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15953
048addec 15954 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15955
048addec 15956 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15957
048addec 15958 * eval.c (syms_of_eval): Doc fix.
7d18891d 15959
048addec 15960 * coding.c (syms_of_coding): Doc fix.
7d18891d 15961
048addec 15962 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15963
048addec 15964 * dispnew.c (syms_of_display): Doc fix.
9474c847 15965
048addec 15966 * category.c (Fget_unused_category): Doc fix.
9474c847 15967
048addec 15968 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 15969
048addec 159702001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 15971
048addec 15972 * print.c (prin1, print): Doc fix.
e3059a5d 15973
048addec 159742001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 15975
048addec
JD
15976 * fontset.h: Remove declarations of variables
15977 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 15978
048addec
JD
15979 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15980 `Vclip_large_size_font'.
eae936e2 15981
048addec 159822001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 15983
048addec 15984 * w32fns.c: Doc fix.
ddb67bdc 15985
048addec 159862001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 15987
048addec 15988 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 15989
048addec 15990 * fns.c: Doc fix.
6e1b91d7 15991
048addec 15992 * emacs.c: Doc fix.
1c1d3d69 15993
048addec 15994 * coding.c: Doc fix.
1c1d3d69 15995
048addec
JD
15996 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15997 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15998 `new style' [w/`doc:' keyword].
b6f4c7ba 15999
048addec 160002001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16001
048addec
JD
16002 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16003 LeaveNotify events. Only FocusIn and FocusOut do that now.
16004 (x_display_and_set_cursor): Do display hollow cursors in active
16005 minibuffer windows when they are not selected.
b6f4c7ba 16006
048addec 160072001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16008
048addec 16009 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16010 * w32term.c: Change doc-string comments to `new style'
16011 [w/`doc:' keyword]. Doc fixes.
a89f435d 16012
048addec
JD
16013 * w32fns.c: Don't define max.
16014 (Fx_open_connection): Only execute once.
a4cd0cd7 16015
048addec 160162001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16017
048addec
JD
16018 * ccl.c: Change macros to use do-while block instead of if-else.
16019 Use braces to follow GNU Coding Standards.
eafb659a 16020
048addec 160212001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16022
048addec 16023 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16024
048addec 16025 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16026
048addec
JD
16027 * insdel.c (replace_range): Use adjust_markers_for_replace
16028 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16029
78819ebb 16030 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16031
048addec
JD
16032 * textprop.c (set_text_properties_1): New subroutine
16033 broken out of set_text_properties.
16034 (set_text_properties): Use set_text_properties_1.
91823618 16035
048addec
JD
16036 * intervals.c (graft_intervals_into_buffer):
16037 Use set_text_properties_1 to clear out properties.
91823618 16038
048addec
JD
16039 * search.c (Freplace_match): Use replace_range to insert
16040 and delete. Don't request property inheritance from
16041 surrounding text.
86928dfb 16042
048addec 160432001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16044
048addec 16045 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16046 vertical fonts. Allow them if face name is explicitly specified.
048addec 16047 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16048
048addec 160492001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16050
048addec
JD
16051 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16052 instead of malloc/free.
a78e0303 16053
048addec 160542001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16055
048addec
JD
16056 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16057 Coding Standards.
16058 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16059
048addec 16060 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16061
048addec 16062 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16063
048addec
JD
16064 * coding.c (encode_coding): Use precomputed value of `src'.
16065 (encode_coding): Remove unused variable `src_end'.
16066 (code_convert_region): Remove unused variables `count'.
830ddd77 16067
048addec 160682001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16069
048addec
JD
16070 * w32term.c (x_display_and_set_cursor): Do not move system caret
16071 if cursor_glyph is NULL.
55c6d645 16072
048addec 160732001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16074
048addec 16075 * keymap.c (access_keymap): Fix compilation error.
5de38842 16076
048addec 160772001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16078
048addec 16079 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16080
048addec 160812001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16082
048addec
JD
16083 * intervals.c (graft_intervals_into_buffer):
16084 Remove #ifdef'd-out code.
16085 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16086
048addec
JD
16087 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16088 code (eval-current-buffer).
16089 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16090
048addec 160912001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16092
048addec 16093 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16094
048addec 160952001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16096
048addec 16097 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16098
048addec
JD
16099 * keyboard.c (make_lispy_event): Check integerness and fix
16100 Lisp_Object/int mixup.
17893c65 16101
048addec 161022001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16103
048addec 16104 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16105
048addec
JD
16106 * fontset.c (fontset_font_pattern): Remove unused variable
16107 `family_registry'.
d5360cc7 16108
048addec 16109 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16110
048addec 161112001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16112
048addec 16113 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16114
048addec
JD
16115 * buffer.c (Fkill_buffer): Don't delete auto save file
16116 if buffer is modified.
d9d54213 16117
048addec 161182001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16119
048addec
JD
16120 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16121 CHECK_NUMBER_CDR.
b116830b 16122
048addec 161232001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16124
048addec 16125 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16126
048addec 161272001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16128
048addec 16129 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16130
048addec 161312001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16132
048addec 16133 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16134
048addec 161352001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16136
048addec
JD
16137 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16138 the program image directly.
982f6c7e 16139
048addec 161402001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16141
048addec 16142 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16143
048addec 161442001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16145
048addec
JD
16146 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16147 and CHECK_BUFFER.
d31053f9 16148
048addec
JD
16149 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16150 (record_char): Likewise.
d31053f9 16151
048addec
JD
16152 * keyboard.c (make_lispy_event): Don't insist a drag event must
16153 move to a different buffer position. Instead, check for moving at
16154 least double_click_fuzz.
982f6c7e 16155
048addec 16156 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16157
048addec 16158 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16159
048addec
JD
16160 * indent.c (current_column_1, Fmove_to_column): Separate the code
16161 for display-table glyphs from the code for buffer text, to fix
16162 bugs in the former.
830047fd 16163
048addec 161642001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16165
048addec
JD
16166 * buffer.c (Fbuffer_local_value): New function.
16167 (syms_of_buffer): Defsubr it.
2df5238c 16168
048addec
JD
16169 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16170 value of `cursor-in-non-selected-windows'.
4e397688 16171
048addec
JD
16172 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16173 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16174 (syms_of_xdisp): Initialize it.
48b0f3ae 16175
048addec 161762001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16177
048addec 16178 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16179
048addec
JD
16180 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16181 keyword].
3ecaf7e5 16182
048addec
JD
16183 * eval.c (top_level_value, top_level_set): Remove commented and
16184 #ifdef'd-out code.
16185 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16186
048addec 161872001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16188
048addec 16189 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16190
048addec 16191 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16192
048addec 16193 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16194
048addec 161952001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16196
048addec
JD
16197 * lisp.h (CHECK_STRING_CAR): New macro.
16198 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16199 treating XCAR and XCDR as lvalues.
16200 (openp): Use CHECK_STRING_CAR.
16201 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16202
048addec 162032001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16204
048addec
JD
16205 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16206 (SIGMASKTYPE): Define.
1b1acc13 16207
048addec 16208 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16209
048addec 162102001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16211
048addec
JD
16212 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16213 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16214 Fix typos in comments.
6cb16f95 16215
048addec
JD
16216 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16217 and #ifdef'd-out code.
16218 Fix and reindent comments.
6cb16f95 16219
048addec 16220 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16221
048addec
JD
16222 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16223 argument `i' in macros.
6cb16f95 16224
048addec
JD
16225 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16226 `i' in macros.
7e9d3c2f 16227
048addec
JD
16228 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16229 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16230 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16231 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16232 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16233 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16234 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16235 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16236 in macros.
7e9d3c2f 16237
048addec
JD
16238 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16239 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16240 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16241 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16242 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16243 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16244 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16245 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16246 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16247 (remove unused second argument).
7e9d3c2f 16248
048addec 162492001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16250
048addec
JD
16251 * syntax.c (describe_syntax): New wrapper.
16252 (Finternal_describe_syntax_value): Rename from describe_syntax.
16253 Don't insert space at front and \n at the end.
16254 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16255
048addec
JD
16256 * regex.c (re_wctype): Try to fix some warnings.
16257 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16258
048addec 162592001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16260
048addec 16261 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16262
048addec 162632001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16264
048addec 16265 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16266
048addec 16267 * data.c (Fsetq_default): Ditto.
c22e59e1 16268
048addec 16269 * callint.c (Finteractive): Ditto.
9271ed2c 16270
048addec 162712001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16272
048addec
JD
16273 * macros.c: Don't include keymap.h any more.
16274
162752001-11-01 Richard M. Stallman <rms@gnu.org>
16276
16277 * data.c (Fmake_local_variable): Doc fix.
16278
16279 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16280 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16281
048addec 16282 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16283 bindings along with or instead of the buffer local map.
16284 Make the overriding maps override what they should.
16285
f00691a3 162862001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16287
16288 * window.c (grow_mini_window): Fix typo in comment.
16289
27188d11
GM
162902001-11-01 Gerd Moellmann <gerd@gnu.org>
16291
7b49b9d2
GM
16292 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16293 (XTset_vertical_scroll_bar): Likewise.
16294
43f7c3ea
GM
16295 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16296 instead of IMAGE_BACKGROUND.
c22e59e1 16297
b350c2e5
GM
16298 * xfns.c (four_corners_best): Reindent.
16299
c22e59e1 16300 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16301 Handle :box so that it is possible to specify sexprs.
16302
bf00d461
EZ
163032001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16304
16305 * s/hpux11.h: New file.
16306
f00691a3 163072001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16308
2b209b97
PJ
16309 * emacs.c (USAGE1): Show command line option --no-window-system
16310 instead of --no-windows in usage.
16311 (standard_args): Rename --no-windows to --no-window-system.
16312 (bug_reporting_address): Follow Emacs coding conventions.
16313
9dbc9081
PJ
16314 * eval.c (Fcommandp): Doc fix.
16315 Change doc-string comments to `new style' [w/`doc:' keyword].
16316
4e10df59
PJ
16317 * frame.c (Fframe_live_p): Doc fix.
16318
16319 * buffer.c (selective-display-ellipses): Doc fix.
16320
dd387b25
GM
163212001-10-31 Gerd Moellmann <gerd@gnu.org>
16322
fe957e65
GM
16323 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16324
dd387b25
GM
16325 * xfaces.c (realize_x_face): If C is not a single-byte character,
16326 set the face's colors_copied_bitwise_p instead of the defaulted_p
16327 members which have a different meaning.
16328 (free_face_colors): Do nothing for a face whose colors have been
16329 copied bitwise.
16330
c22e59e1 16331 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16332
f00691a3 163332001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16334
687784e8
PJ
16335 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16336 [w/`doc:' keyword].
2e1280f8 16337
b9d9a9b9
GM
163382001-10-31 Gerd Moellmann <gerd@gnu.org>
16339
16340 * fns.c (require_unwind): Return Lisp_Object.
16341
f00691a3 163422001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16343
fa1361cb
PJ
16344 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16345 (last-input-char): Revert doc-string to be the same as the
16346 doc-string of `last-input-event'.
16347
6c465a15 16348 * xdisp.c: Fix typos in comments.
48400103 16349
eafa3196
GM
163502001-10-31 Gerd Moellmann <gerd@gnu.org>
16351
16352 * window.c (grow_mini_window): Handle case that the root
16353 window is already smaller than the nominal mininum height.
16354
747d3f2a
SM
163552001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16356
bf9bb76f
SM
16357 * emacs.c (main): Don't call keys_of_macros any more.
16358
16359 * lisp.h (keys_of_macros): Remove.
16360
16361 * macros.c (keys_of_macros): Remove.
16362
747d3f2a
SM
16363 * xfaces.c (Fface_attribute_relative_p): Declare args.
16364
5e905a57
JR
163652001-10-30 Jason Rumney <jasonr@gnu.org>
16366
16367 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16368 (enum_font_cb2): Ignore fonts with vertical orientation.
16369
3a426197
RS
163702001-10-30 Richard M. Stallman <rms@gnu.org>
16371
16372 * keyboard.c (Finput_pending_p): Doc fix.
16373
a742d646
GM
163742001-10-30 Gerd Moellmann <gerd@gnu.org>
16375
259cf6bc
GM
16376 * xterm.c (x_after_update_window_line): Don't run the code
16377 clearing in borders for rows whose visible height is 0.
16378
3f99f948
GM
16379 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16380 resized_p flag is set. If not set, use the much less flickering
16381 method previously used.
16382
16383 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16384
16385 * frame.h (struct frame) <resized_p>: New member.
16386
b4a3be43
GM
16387 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16388 as large as the number of bytes to convert.
747d3f2a 16389
a742d646
GM
16390 * lread.c (to_multibyte): New function.
16391 (read1): Use it.
16392
cacbb9e9
EZ
163932001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16394
16395 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16396
99cb6b2f
GM
163972001-10-30 Gerd Moellmann <gerd@gnu.org>
16398
327f42ee 16399 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16400 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16401 if the row's fill_line_p is set and drawing the last glyph with
16402 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16403
99cb6b2f
GM
16404 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16405
8e8223e2
SM
164062001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16407
16408 * xmenu.c: Include coding.h and charset.h.
16409 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16410 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16411 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16412 Explicitly set wv->help. Use `TRUE' rather than `True'.
16413 (menu_help_callback): Use empty_string.
16414
16415 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16416 (Fx_popup_dialog): Explicitly init f.
16417 (w32_menu_display_help): Use empty_string.
16418
4d083a8f
RS
164192001-10-29 Richard M. Stallman <rms@gnu.org>
16420
b2304472
RS
16421 * fns.c (Frequire): Detect recursive try to require the same
16422 feature 3 or more levels deep, and get error.
16423 (require_unwind): New subroutine.
16424 (require_nesting_list): New variable.
16425 (syms_of_fns): Init and staticpro it.
16426
4d083a8f
RS
16427 * print.c (print_object): Clarify indication of insertion type.
16428
2fe41216
EZ
164292001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16430
90480000
EZ
16431 * coding.c (syms_of_coding): Document that locale-coding-system is
16432 used for decoding input on X.
16433
2fe41216
EZ
16434 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16435
f00691a3 164362001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16437
16438 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16439 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16440
60ebcfe8
GM
164412001-10-29 Gerd Moellmann <gerd@gnu.org>
16442
9a7bdceb
GM
16443 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16444 use NO_CURSOR if cursor_in_non_selected_windows is false.
16445
3f08fcd2
GM
16446 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16447 the slant attribute if FRAME is t.
16448
0ccfdad2
GM
16449 * xfns.c (x_set_internal_border_width): Set frame garbaged
16450 when X window doesn't exist yet.
16451
ef253080
GM
16452 * xterm.c (x_after_update_window_line): Clear internal border
16453 in different circumstances.
b116830b 16454
60ebcfe8
GM
16455 * xterm.c (XTread_socket) <KeyPress>: Don't use
16456 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16457 <handa@etl.go.jp>.
16458
73d25f9c
EZ
164592001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16460
16461 * m/ibms390.h: New file. From Adam Thornton
16462 <athornton@sinenomine.net>.
16463
cac1daf0
GM
164642001-10-28 Gerd Moellmann <gerd@gnu.org>
16465
053b3256 16466 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16467
cac1daf0
GM
16468 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16469 a loop counter.
16470
f00691a3 164712001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16472
f9711de4 16473 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16474
4707d2d0
PJ
16475 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16476 keyword].
16477 Fix typos in comments.
b116830b 16478
d883731c
PJ
16479 * emacs.c (bug_reporting_address): New function.
16480 Use it when displaying usage message.
16481
04012254
PJ
16482 * minibuf.c (read_minibuf): Remove unused external declaration of
16483 variable `Qread_only'.
16484
13b1a09c
PJ
16485 * keymap.c (access_keymap): Remove unused variable `charset'.
16486
5bbf4378
MB
164872001-10-28 Miles Bader <miles@gnu.org>
16488
16489 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16490 Remove #ifdef'd-out code.
16491 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16492 (syms_of_xfaces): Initialize them.
16493
1ce1e4ee
JR
164942001-10-27 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16497 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16498 position using the system caret.
16499
16500 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16501 (w32_system_caret_height, w32_system_caret_x)
16502 (w32_system_caret_y): New variables for tracking system caret.
16503 (w32_initialize): Initialize them.
c2d53558 16504 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16505
c2d53558
SM
16506 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16507 New messages types.
1ce1e4ee
JR
16508
16509 * w32term.c (note_mouse_highlight): Clear old help_echo.
16510
f00691a3 165112001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16512
bb4600a4
PJ
16513 * xterm.c: Fix typo in a comment.
16514
7db35a48
PJ
16515 * emacs.c: Fix typos in comments.
16516 Remove unnecessary spaces.
16517 Change doc-string comments to `new style' [w/`doc:' keyword].
16518 (USAGE2): Fix typos in usage string.
16519
a7248e4f
PJ
16520 * xterm.c: Fix typo in a comment.
16521
4e30ce42
PJ
16522 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16523 emacs.c.
16524
62725a92
GM
165252001-10-27 Gerd Moellmann <gerd@gnu.org>
16526
798dbe1f 16527 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16528 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16529 farther backward when target_y was not reached.
16530
62725a92
GM
16531 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16532 Display errno only if non-zero.
16533 (sound_warning): New function.
16534 (vox_configure): Don't treat failing to set sample rate as error.
16535 (various places): Improve error messages.
16536
d4e34d24
EZ
165372001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16538
944e6f60
EZ
16539 * fileio.c (Faccess_file): Run the argument filename through
16540 Fexpand_file_name, before using it.
16541
d4e34d24
EZ
16542 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16543 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16544
38d2af0c
GM
165452001-10-26 Gerd Moellmann <gerd@gnu.org>
16546
da80a8d5
GM
16547 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16548
38d2af0c
GM
16549 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16550 Fix clearing in the case of scroll bars on the right.
c2d53558 16551
45de4a6f 165522001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16553
16554 * w32gui.h (XImage): Add a dummy typedef.
16555
fbd5ceb2
GM
165562001-10-26 Gerd Moellmann <gerd@gnu.org>
16557
c2d53558 16558 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16559
b23236fb
EZ
165602001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16561
16562 * frame.c (Fframe_parameter): Fix last change.
16563
5d991fc4
EZ
16564 * fileio.c: Revert last change (which removed old commented-out
16565 version of expand-file-name). Add a comment that explains why
16566 this old version should not be removed.
16567
879eadc3
GM
165682001-10-25 Gerd Moellmann <gerd@gnu.org>
16569
75700ff2
GM
16570 * frame.c (Fframe_parameter): Fix a bug whereby some
16571 ``artificial'' frame parameters, like `minibuffer' were not
16572 obtained by calling Fframe_parameters.
16573
dfe92a6a
GM
16574 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16575 cursor differently.
16576
879eadc3
GM
16577 * xdisp.c (move_it_vertically_backward): Compute line height
16578 differently. Add heuristic to try to be more compatible to 20.x.
16579
e1010ebe
SM
165802001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16581
d73a471b
SM
16582 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16583
d6da5a06
GM
16584 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16585 boolean.
e1010ebe 16586
f66bd220
MB
165872001-10-25 Miles Bader <miles@gnu.org>
16588
16589 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16590 BG is a pointer to a structure, not a structure.
16591 (gif_format, png_format): Add missing commas.
16592
d436d538
RS
165932001-10-24 Richard M. Stallman <rms@gnu.org>
16594
16595 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16596 (syms_of_xfaces): Defsubr it.
d436d538 16597
f00691a3 165982001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16599
16600 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16601 variable `area'.
16602
f00691a3 166032001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16604
c2d53558 16605 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16606
e2a57b34
MB
166072001-10-25 Miles Bader <miles@gnu.org>
16608
16609 * dispextern.h (struct image): Add `background',
16610 `background_valid', and `background_transparent' fields.
16611 (image_background, image_background_transparent): New declarations.
16612 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16613 * xfns.c (image_background, image_background_transparent)
16614 (four_corners_best): New functions.
c2d53558 16615 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16616 (gs_format): Add `:background' entry.
16617 (lookup_image): Set IMG's background color if specified.
16618 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16619 when appropriate.
16620 (x_clear_image_1): Reset `background_valid' and
16621 `background_transparent_valid' fields.
16622 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16623 calculating it here. Set IMG's background_transparent field.
16624 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16625 (enum png_keyword_index): Add PNG_BACKGROUND.
16626 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16627 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16628 (enum gif_keyword_index): Add GIF_BACKGROUND.
16629 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16630 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16631 Pre-calculate image background color where necessary.
16632 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16633 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16634 color to use for image glyph reliefs.
16635
b547b6e8
GM
166362001-10-24 Gerd Moellmann <gerd@gnu.org>
16637
d9e3b8c6
GM
16638 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16639 in full-width rows.
c2d53558 16640
b547b6e8
GM
16641 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16642 Fix clearing of area not covered by scroll bar.
16643
f00691a3 166442001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16645
16646 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16647 and `real_start'.
c2d53558 16648 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16649 (glyph_rect): Remove unused variable `area'.
16650
76cb5e06
GM
166512001-10-24 Gerd Moellmann <gerd@gnu.org>
16652
bdbdebff 16653 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16654
16655 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16656 (row_containing_pos): Take additional argument DY.
16657 Treat rows ending in middle of char differently.
62e33982
GM
16658 (display_line): Handle tabs on window systems differently.
16659
16660 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16661 with additional argument.
16662
16663 * dispextern.h (row_containing_pos): Adjust prototype.
16664
76cb5e06
GM
16665 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16666 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16667 (try_window_id, try_window_reusing_current_matrix)
16668 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16669 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16670
f00691a3 166712001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16672
c9e60620
PJ
16673 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16674 gnuemacs).
16675 (HAVE_BOXES): Fix typo in comment.
16676 (push_menu_pane): Fix typo in comment.
16677
3b552d56
PJ
16678 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16679 of `Qwhen'.
16680 (single_display_prop_string_p): Remove unused local declarations
16681 of `Qwhen' and `Qmargin'.
16682 (string_buffer_position): Remove unused variable `around'.
16683 (store_frame_title): Remove unused variable `width'.
16684
15c565ac
PJ
16685 * window.c: Don't define max.
16686 (coordinates_in_window): Remove unused variable `uy'.
16687
a8818eb9
PJ
16688 * widget.c: Don't define max.
16689
996fee11
PJ
16690 * process.c: Don't define max.
16691 (create_process): Remove unused variable `buffer'.
16692
496e1a5b
GM
166932001-10-23 Gerd Moellmann <gerd@gnu.org>
16694
c2d53558 16695 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16696
5905ae8b
EZ
166972001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16698
16699 * xfaces.c (Finternal_set_lisp_face_attribute)
16700 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16701 frame is on a windowed display.
16702
24db49fb
GM
167032001-10-23 Gerd Moellmann <gerd@gnu.org>
16704
c2d53558
SM
16705 * dispnew.c (sync_window_with_frame_matrix_rows):
16706 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16707 of marginal areas.
16708
c2d53558 16709 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16710
f0487f05
EZ
167112001-10-23 Andreas Schwab <schwab@suse.de>
16712
16713 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16714 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16715
f0a48a01
GM
167162001-10-23 Gerd Moellmann <gerd@gnu.org>
16717
c2d53558 16718 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16719 REAL_END. Notice if cursor gets overwritten.
16720 (notice_overwritten_cursor): Take X positions as parameters.
16721 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16722 around call to x_draw_glyphs.
16723
f00691a3 167242001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16725
fc11dff0
PJ
16726 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16727 instead of C) and usage.
a50a10a0 16728
fc11dff0
PJ
16729 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16730 of C) and usage.
a50a10a0
PJ
16731
16732 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16733 `left', `max_width' and `max_height'.
16734
8738febd
GM
167352001-10-23 Gerd Moellmann <gerd@gnu.org>
16736
16737 * xdisp.c (display_line): For a tab continued to the next line,
16738 set row's ends_in_middle_of_char_p.
16739
653c329b
GM
167402001-10-22 Gerd Moellmann <gerd@gnu.org>
16741
16742 * xdisp.c (display_line): Fix computation of continuation lines
16743 width for TABs.
16744
f00691a3 167452001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16746
7ba51063
PJ
16747 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16748 `Qlaplace'.
16749
f958c5ac
PJ
16750 * fileio.c: Remove unused code.
16751
eb360291
MB
167522001-10-22 Miles Bader <miles@gnu.org>
16753
16754 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16755 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16756 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16757
98515cf0
JR
167582001-10-21 Jason Rumney <jasonr@gnu.org>
16759
16760 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16761
93026d88
EZ
167622001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16763
16764 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16765 (Finsert_string): Avoid the multi-line string literals warning.
16766
c9a95b79
MB
167672001-10-22 Miles Bader <miles@gnu.org>
16768
16769 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16770 (Fdocumentation): Don't use it.
16771 (syms_of_doc): Don't initialize it.
16772
16773 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16774 * print.c (Fwith_output_to_temp_buffer): Likewise.
16775 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16776 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16777 (Fsave_restriction): Likewise.
c2d53558
SM
16778 * eval.c (Frun_hooks, Frun_hook_with_args)
16779 (Frun_hook_with_args_until_failure)
16780 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16781 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16782 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16783 (Funwind_protect, Fcondition_case): Likewise.
16784 * coding.c (Ffind_operation_coding_system): Likewise.
16785 * keyboard.c (Ftrack_mouse): Likewise.
16786
a3b10252
MB
167872001-10-21 Miles Bader <miles@gnu.org>
16788
c2d53558 16789 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16790 (Fmake_hash_table): Add usage: string to doc string.
16791 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16792 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16793 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16794 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16795 (Fml_prefix_argument_loop): Likewise.
16796
f00691a3 167972001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16798
c2d53558 16799 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16800
c6f73eec
PJ
16801 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16802 style' [w/`doc:' keyword].
16803
16804 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16805 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16806 comments to `new style' [w/`doc:' keyword].
16807
3cf3436e
JR
168082001-10-21 Jason Rumney <jasonr@gnu.org>
16809
16810 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16811
c169b8f1
JR
16812 * w32term.c (remember_mouse_glyph): New function.
16813 (w32_mouse_position): Use it.
16814 (note_mouse_movement): If the mouse moved off the glyph, remember
16815 its new position.
c2d53558 16816
4fdd691b
JR
16817 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16818 (w32_display_info): Add mouse_face_overlay.
16819
c169b8f1
JR
16820 * w32term.c (notice_overwritten_cursor): Renamed from
16821 note_overwritten_text_cursor. Rewritten to take glyph widths into
16822 account.
16823 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16824 (fast_find_string_pos): New function.
16825 (fast_find_position): Return the correct vpos. Add parameter
16826 STOP. In the final row, stop before glyphs having STOP as object.
16827 Don't consider glyphs that are not from a buffer.
16828 (fast_find_position) [0]: Add a presumably more correct version
16829 for after 21.1.
16830 (expose_window_tree, expose_frame): Don't compute intersections here.
16831 (expose_window): Do it here instead.
16832 (expose_window_tree, expose_window, expose_line): Return 1 when
16833 overwriting mouse-face.
16834 (expose_window): If W is the window currently being updated, mark
16835 the frame garbaged.
16836 (expose_frame): If mouse-face was overwritten, redo it.
16837 (x_use_underline_position_properties): New variable.
16838 (syms_of_xterm): DEFVAR_BOOL it.
16839 (x_draw_glyph_string): Add comment to use it in future.
16840 (x_draw_glyph_string): Restore clipping after drawing box.
16841 Fix a computation of the underline position.
16842 (w32_get_glyph_string_clip_rect): Minor cleanup.
16843 (x_fill_stretch_glyph_string): Remove an assertion.
16844 (x_produce_glyphs): Don't convert multibyte characters
16845 to unibyte characters in unibyte buffers.
16846 (cursor_in_mouse_face_p): New function.
16847 (x_draw_stretch_glyph_string): Use it to choose a different GC
16848 when drawing a cursor within highlighted text. Don't draw
16849 background again if it has already been drawn.
16850 (x_draw_glyph_string_box): Don't draw a full-width
16851 box just because the glyph row's full_width_p flag is set.
16852 (x_draw_glyphs): Fix computation of rightmost x for
16853 full-width rows.
16854 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16855 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16856 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16857 (x_update_window_end): Handle overwritten mouse face
16858 also for tool bar windows.
16859 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16860 DRAW is DRAW_IMAGE_RAISED.
16861 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16862 actually redrawn. Make the function static.
16863 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16864 optimize away highlighting if we pass over that same overlay again.
16865 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16866 to detect a case where we have to highlight a different region
16867 despite not having left the currently highlighted region.
16868 Set mouse_face_overlay in the x_display_info. Avoid changing the
16869 mouse pointer shape when show_mouse_face has already done it, or
16870 there is no need. Handle mouse-face and help-echo in strings.
16871 (glyph_rect): New function.
16872 (w32_mouse_position): Use it to raise the threshold for mouse
16873 movement event generation.
16874 (w32_initialize_display_info): Initialize the x_display_info's
16875 mouse_face_overlay.
16876 (w32_set_vertical_scroll_bar): Don't clear a zero height
16877 or width area.
16878 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16879 a widget to zero height.
16880
3cf3436e 16881 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16882 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16883 equivalents in menu_items.
16884 (w32_menu_show): Don't overwrite an item's name with its key
16885 description in case the description is a multibyte string.
16886 (single_submenu): Some cleanup.
16887
16888 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16889 (postprocess_image): New function.
16890 (lookup_image): Call it for all image types except PostScript.
16891 (x_kill_gs_process): Call postprocess_image.
16892 (tiff_error_handler, tiff_warning_handler): New functions.
16893 (tiff_load): Install them as handlers.
16894 (x_kill_gs_process): Recognize if someone has cleared the image
16895 cache under us.
16896 (valid_image_p): Protect better against invalid image
16897 specifications. Previous code could signal an error.
16898 (Fx_hide_tip, Fshow_tip): Doc fix.
16899 (Fv_max_tooltip_size): New variable.
16900 (syns_of_xfns): DEFVAR_LISP it.
16901 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16902 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16903 window_width. Use a maximum tooltip size specified by
16904 Vx_max_tooltip_size, if that has valid contents.
16905 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16906 Make sure the tooltip is completely visible.
16907 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16908 (Fx_create_frame): Adjust the frame's height for presence
16909 of the tool bar before calling x_figure_window_size.
16910 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16911 when the window gets smaller.
16912 (x_set_foreground_color): Set frame's cursor_pixel.
16913 (x_set_foreground_color, x_set_background_color): Cleaned up.
16914 (x_set_font): Handle case of x_new_fontset returning the same name
16915 as before, although there was a change in fontsets.
16916
386ca361
MB
169172001-10-21 Miles Bader <miles@gnu.org>
16918
c2d53558 16919 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
16920 (Flogxor): Add usage: string to doc string.
16921 * charset.c (Fstring): Likewise.
16922 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16923 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16924
f00691a3 169252001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 16926
03be2694
PJ
16927 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16928
16929 * alloc.c: Reindent DEFUNs with doc: keywords.
16930
16931 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16932
14ff1ee0
PJ
16933 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16934 keyword].
16935
2f147815 16936See ChangeLog.9 for earlier changes.
6922b018
KH
16937
16938;; Local Variables:
49b3bd82 16939;; coding: iso-2022-7bit
6922b018 16940;; End:
2a34a036 16941
2f147815 16942 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16943 Copying and distribution of this file, with or without modification,
16944 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16945
16946;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4