(back_to_previous_visible_line_start):
[bpt/emacs.git] / src / ChangeLog
CommitLineData
93fdf45f
RS
12004-12-28 Richard M. Stallman <rms@gnu.org>
2
3 * xdisp.c (back_to_previous_visible_line_start):
4 Don't call handle_display_prop.
5
5bdca8af
DN
62004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7
8 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
9 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10 (decode_coding_iso2022, encode_designation_at_bol)
11 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12 (decode_coding): Constify arguments and local vars.
13
33385c6f
JD
142004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15
16 * xmenu.c (popup_get_selection): Only pop down dialogs
17 on C-g and Escape.
95bdef2e
JD
18 (popup_get_selection): Remove parameter down_on_keypress.
19 (create_and_show_popup_menu, create_and_show_dialog): Remove
20 parameter down_on_keypress to popup_get_selection.
33385c6f 21
b15325b2
ST
222004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23
24 * dispextern.h: Change HAVE_CARBON to MAC_OS.
25 (struct glyph_string): Likewise.
26 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
27 mac_initialize.
28 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
29 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
30 * fns.c (vector): Change MAC_OSX to MAC_OS.
31 * frame.c (x_set_frame_parameters, x_report_frame_params)
32 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
33 (x_set_border_width, Vdefault_frame_scroll_bars): Change
34 HAVE_CARBON to MAC_OS.
35 * image.c [MAC_OS]: Include sys/stat.h.
36 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
37 QuickTimeComponents.h.
38 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
39 [!MAC_OSX] (select): Use mac_wait_next_event.
40 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
41 Vexec_suffixes.
42 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
43 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
44 (mac_clear_font_name_table): Add extern.
45 (Fmac_clear_font_name_table): New defun.
46 (syms_of_mac): Defsubr it.
47 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
48 [MAC_OSX] (select_and_poll_event): New function.
49 [MAC_OSX] (sys_select): Use it.
50 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
51 [MAC_OSX && SELECT_USE_CFSOCKET]
52 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
53 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
54 RunLoop for simultaneously monitoring two kinds of inputs, window
55 events and process outputs, without periodically polling.
56 * macfns.c (mac_initialized): Remove extern.
57 (stricmp): Put in #if 0. All callers changed to use xstricmp in
58 xfaces.c.
59 (strnicmp): Decrement `n' at the end of each loop, not the
60 beginning.
61 (check_mac): Use the term "Mac native windows" instead of "Mac
62 OS".
63 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
64 (mac_get_rdb_resource): New function (from w32reg.c).
65 (x_get_string_resource): Use it.
66 (install_window_handler): Add extern.
67 (mac_window): New function.
68 (Fx_create_frame): Use it instead of make_mac_frame. Set
69 parameter for Qfullscreen. Call x_wm_set_size_hint.
70 (Fx_open_connection, Fx_close_connection): New defuns.
71 (syms_of_macfns): Defsubr them.
72 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
73 kWindowNoUpdatesAttribute to the window attribute.
74 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
75 (x_create_tip_frame): Don't call ShowWindow.
76 (Fx_show_tip): Call ShowWindow.
77 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
78 TARGET_API_MAC_CARBON'.
79 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
80 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
81 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
82 Windows.h.
83 (Window): Typedef to WindowPtr and move outside `#if
84 TARGET_API_MAC_CARBON'.
85 (XSizeHints): New struct.
86 * macterm.c (x_update_begin, x_update_end)
87 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
88 frame.
89 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
90 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
91 (construct_mouse_click): Put in #if 0.
92 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
93 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
94 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
95 (activate_scroll_bars, deactivate_scroll_bars)
96 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
97 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
98 if the position is neither user-specified nor program-specified.
99 (x_free_frame_resources): Free size_hints.
100 (x_wm_set_size_hint): Allocate size_hints if needed. Set
101 size_hints.
102 (mac_clear_font_name_table): New function.
103 (mac_do_list_fonts): Initialize font_name_table if needed.
104 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
105 around mac_do_list_fonts.
106 (mac_unload_font): New function.
107 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
108 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
109 and definitions with #if TARGET_API_MAC_CARBON.
110 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
111 (install_window_handler): Add decl.
112 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
113 window. Use UpdateControls. Get the rectangle that should be
114 updated and restrict the target of expose_frame to it.
115 (do_grow_window): Set minimum height/width according to
116 size_hints.
117 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
118 (do_zoom_window): Don't use x_set_window_size.
119 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
120 (install_window_handler): New function.
121 [!USE_CARBON_EVENTS] (mouse_region): New variable.
122 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
123 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
124 GetEventDispatcherTarget inside BLOCK_INPUT.
125 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
126 Update mouse_region when mouse is moved.
127 (make_mac_frame): Remove.
128 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
129 mouse pointer shapes. Change values of f->left_pos and
130 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
131 call ShowWindow.
132 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
133 Vinvocation_name and Vsystem_name.
134 (mac_make_rdb): New function (from w32term.c).
135 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
136 already been opened. Don't pass argument to
137 mac_initialize_display_info. Don't set dpyinfo->height/width.
138 Add entries to x_display_list and x_display_name_list.
139 (x_delete_display): New function.
140 (mac_initialize): Don't call mac_initialize_display_info.
141 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
142 * macterm.h (check_mac): Add extern.
143 (struct mac_output): New member size_hints.
144 (FRAME_SIZE_HINTS): New macro.
145 (mac_unload_font): Add extern.
146 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
147 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
148
92d2947b
RS
1492004-12-27 Richard M. Stallman <rms@gnu.org>
150
ebbd14f1
RS
151 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
152 (syms_of_buffer): Don't defsubr it.
153
154 * process.c (list_processes_1): Set undo_list instead
155 of calling Fbuffer_disable_undo.
156
92d2947b
RS
157 * xdisp.c (single_display_spec_string_p): Renamed from
158 single_display_prop_string_p.
159 (single_display_spec_intangible_p): Renamed from
160 single_display_prop_intangible_p.
161 (handle_single_display_spec): Renamed from handle_single_display_prop.
162 Rewritten to be easier to understand.
163
164 * Change in load-history format. Functions now get (defun . NAME),
165 and variables get just NAME.
166
167 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
168
169 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
170 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
171 (Qdefvar): Var deleted.
172 (syms_of_eval): Don't initialze it.
173
174 * lread.c (syms_of_lread) <load-history>: Doc fix.
175
9f6fcdc5
JD
1762004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
177
178 * xmenu.c (popup_get_selection): Pop down on C-g.
179 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
180 pops down menu on C-g.
181 (xdialog_show): If dialog popped down and no button in the dialog was
182 pushed, call Fsignal to quit.
183 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
184 Fsignal to quit.
185
186 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
187
188 * gtkutil.c (xg_initialize): Install bindings for C-g so that
189 dialogs and menus pop down.
190
857ae68b
JD
1912004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
192
133c0116
JD
193 * gtkutil.c (update_frame_tool_bar): Make the value of
194 tool-bar-button-margin control margins of images in tool bar.
195
857ae68b
JD
196 * alloc.c (check_depth): New variable.
197 (overrun_check_malloc, overrun_check_realloc): Only add
198 overhead and write check pattern if check_depth is 1 (to handle
199 recursive calls). Increase/decrease check_depth in entry/exit.
200 (overrun_check_free): Only check for overhead if check_depth is 1.
201 Increase/decrease check_depth in entry/exit.
202
bd55c35c
JD
2032004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
204
205 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
206 before touching input_available_clear_time, to avoid accessing it
207 from multiple threads.
208
66354420
JR
2092004-12-23 Jason Rumney <jasonr@gnu.org>
210
211 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
212 of JPEG library.
213
55f4edbc
RS
2142004-12-22 Richard M. Stallman <rms@gnu.org>
215
216 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
217
218 * lisp.h (Vundo_outer_limit): Fix decl.
219
220 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
221 Uses changed.
222 (syms_of_undo): Initialize appropriately.
223 (truncate_undo_list): If it's nil, there's no limit.
224
7a0ea9e3
KH
2252004-12-22 Kenichi Handa <handa@m17n.org>
226
227 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
228
fda2922a
RS
2292004-12-21 Richard M. Stallman <rms@gnu.org>
230
231 * eval.c (unwind_to_catch): Clear immediate_quit.
232
233 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
234 specially as `\ ' and `\-'.
235
236 * keyboard.c (kbd_buffer_store_event_hold):
237 In the code for while-no-input, handle immediate_quit.
238
239 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
240 Call that at the very start.
241 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
242 (syms_of_alloc): Don't define undo-limit,
243 undo-strong-limit and undo-outer-limit here.
244
245 * undo.c (truncate_undo_list): Return void.
246 Take just one argument, the buffer.
247 Make it current, and inhibit recursive GC.
248 Access and update the undo list directly; return void.
249 Refer to the undo...limit variables directly.
250 Test undo_outer_limit only after counting the whole current command.
251 When it's exceeded, call the function in undo-outer-limit-function.
252 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
253 (Vundo_outer_limit_function): New variable.
254 (syms_of_undo): Define undo-limit, undo-strong-limit
255 and undo-outer-limit here, and undo-outer-limit-function.
256 Doc fixes.
257
258 * lisp.h (truncate_undo_list): Update decl.
259
2602004-12-21 Piet van Oostrum <piet@cs.uu.nl>
261
262 * fileio.c (Fread_file_name): Delete duplicates in
263 file-name-history when history_delete_duplicates is true.
264
68c69027
ST
2652004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266
267 * macterm.c (mac_do_list_fonts): Fix memory leak
268
134579f2
RS
2692004-12-20 Richard M. Stallman <rms@gnu.org>
270
271 * regex.c (re_match_2_internal) <symend, wordend>:
272 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
273
fbe6152f
ST
2742004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
275
276 * macterm.c (endif, x_font_name_to_mac_font_name): Use
277 maccentraleurroman instead of maccentraleuropean
278 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
279 quickly finding a specific font without needing regexps.
280
fecad3f6
JD
2812004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
282
333f1b6f
JD
283 * syssignal.h: Declare main_thread.
284 (SIGNAL_THREAD_CHECK): New macro.
285
286 * keyboard.c (input_available_signal): Move thread checking code
287 to macro SIGNAL_THREAD_CHECK and call that macro.
288 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
289
290 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
291
292 * emacs.c: Define main_thread.
293 (main): Initialize main_thread.
294 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
295 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
296
297 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
298
299 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
300
301 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
302
303 * process.c (send_process_trap, sigchld_handler): Call
304 SIGNAL_THREAD_CHECK.
305
306 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
307
308 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
309
fecad3f6
JD
310 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
311 returning when xg_ignore_gtk_scrollbar is true.
312
2a84c6da
KS
3132004-12-14 Kim F. Storm <storm@cua.dk>
314
315 * keyboard.c (read_char): Save and restore echo_string when
316 handling input method.
317
d9c1ce9d
RS
3182004-12-13 Richard M. Stallman <rms@gnu.org>
319
320 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
321
322 * keyboard.c (Vthrow_on_input): New variable.
323 (syms_of_keyboard): Defvar and initialize it.
324 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
325
326 * lisp.h (QUIT): Check for Vthrow_on_input.
327 (Vthrow_on_input): Declare it.
328
a6495ed5
KS
3292004-12-13 Kim F. Storm <storm@cua.dk>
330
331 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
332 vector.
333
24a0e22f
RS
3342004-12-12 Richard M. Stallman <rms@gnu.org>
335
336 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
337
338 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
339 (Ftry_completion): Really use outer `zero'; eliminate inner one.
340
d6d31e57
KH
3412004-12-12 Kenichi Handa <handa@m17n.org>
342
343 * term.c (encode_terminal_code): Fix previous change.
344
6f8ffb88
SM
3452004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
346
fb6f5cbf
SM
347 * keyboard.c (handle_async_input): Remove pthread mutex handling.
348 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
349
6f8ffb88
SM
350 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
351 in macro arguments.
352
353 * minibuf.c (Ftry_completion, Fall_completions): Don't use
354 XFASTINT blindly.
355
356 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
357
c83c9f9d
JD
3582004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
359
2f25767f
JD
360 * w32term.c (x_calc_absolute_position): Remove calculation of
361 difference between inner and outer window. Don't subtract difference
362 for left and top calculations.
363
c83c9f9d
JD
364 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
365 for left and top calculations. Remove call to x_real_positions.
24a0e22f 366 [Bug report by Drew Adams in November]
c83c9f9d
JD
367 (x_check_expected_move): Do not set change_gravity to 1 when calling
368 x_set_offset.
369
cc1caa4e
RS
3702004-12-08 Richard M. Stallman <rms@gnu.org>
371
372 * xdisp.c (get_next_display_element): Use `escape-glyph' for
373 control chars and escaped octal codes.
374 (Qescape_glyph): New variable.
375 (syms_of_xdisp): Initialize it.
376 (escape_glyph_face): New variable.
377 (redisplay_window): Initialize it.
378
e0e30823
RS
3792004-12-07 Paul Eggert <eggert@cs.ucla.edu>
380
381 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
382 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
383
f415cacd
JD
3842004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
385
cf435f39
JD
386 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
387 reset_malloc_hooks.
388
6f8ffb88
SM
389 * keyboard.c (handle_async_input, input_available_signal):
390 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 391
f415cacd
JD
392 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
393
19b1f29a
SM
3942004-12-07 Stefan <monnier@iro.umontreal.ca>
395
396 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
397
398 * config.in: Regenerate.
399
ded997c1
JD
4002004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
401
453a4f1b
JD
402 * xmenu.c (Fx_popup_menu): Correct documentation about position.
403 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
404 if not given by a mouse click to correspond with x-popup-menu
405 documentation.
406
9a38524c
JD
407 * config.in: Regenerate.
408
aa477689
JD
409 * gtkutil.c: Include signal.h and syssignal.h.
410 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
411
412 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
413 new variables main_thread and alloc_mutex,
414 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
415 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
416 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
417 (UN)BLOCK_INPUT.
418 (emacs_blocked_free, emacs_blocked_malloc)
419 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
420 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
421 (reset_malloc_hooks): New function.
422
423 * lisp.h: Declare reset_malloc_hooks.
424
425 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
426
427 * keyboard.c: Conditionally include pthread.h
6f8ffb88 428 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
429 thread, block signal, send signal to main thread and return.
430
ded997c1 431 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 432 Set current folder in file chooser if default_filename is a directory.
ded997c1 433
c72b0edd
SM
4342004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
435
436 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
437 Remove redundant correctness checks.
438 (regex_compile): Fix up error codes for \{..\} expressions.
439
c721eee5
RS
4402004-12-05 Richard M. Stallman <rms@gnu.org>
441
442 * regex.c (regex_compile): Fix end-of-pattern case for space.
443
d8f96db8
ST
4442004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
445
6108209e
KS
446 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
447 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 448 crashes with invalid characters.
6108209e
KS
449 * macmenu.c (add_menu_item): Use it.
450 * image.c (image_load_quartz2d): Likewise.
451 * macfns.c (x_set_name, x_set_title): Likewise.
452 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
453 creating them each time for labels.
d8f96db8 454
ab67e8b6
RS
4552004-12-02 Richard M. Stallman <rms@gnu.org>
456
457 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
458 don't use it here.
459
460 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
461 (interactive_p): Skip Scalled_interactively_p frames
462 like Sinteractive_p frames.
b8217ea6 463 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
464
465 * data.c (Fmake_variable_buffer_local): Doc fix.
466 (Fmake_local_variable): Doc fix.
467
468 * insdel.c (insert_from_string_before_markers)
469 (insert_from_string): Don't modify buffer on empty insertion.
470
471 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
472
f86bdc80
ST
4732004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
474
475 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
476 menu text as UTF8 fails.
477
1cae6d39
KS
4782004-12-01 Kim F. Storm <storm@cua.dk>
479
480 * alloc.c: Add commentary for last change.
481 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
482 sizeof(size_t) != 4.
483 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
484 Use them. Also clear header and trailer of freed memory.
485 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
486 (string_overrun_cookie): Rename from string_overrun_pattern.
487 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
488
77ea0764
AS
4892004-12-01 Andreas Schwab <schwab@suse.de>
490
491 * lisp.h: Declare string_to_multibyte.
492
2d5cd4e6
KH
4932004-12-01 Kenichi Handa <handa@m17n.org>
494
495 * w32console.c (w32con_write_glyphs): Decide coding here.
496 Adjusted for the change of encode_terminal_code.
497
498 * term.c (encode_terminal_code): Don't make it "static".
499
25a0994a
KH
5002004-11-30 Kenichi Handa <handa@m17n.org>
501
19b1f29a 502 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 503 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
504 characters at once, and return a pointer to the result of encoding.
505 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
506 (insert_glyphs): Likewise.
507 (term_init): Initialize encode_terminal_bufsize to 0.
508
509 * coding.c (Vcode_conversion_workbuf_name): New variable.
510 (syms_of_coding): Initialize and staticpro it.
511 (set_conversion_work_buffer): New function.
512 (run_pre_post_conversion_on_str): Use it.
513 (run_pre_write_conversin_on_c_str): New function.
514
515 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
516
fc7a70cc
ST
5172004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
518
519 * keyboard.c: Don't undef SIGIO
520 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
521 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
522 (macfns.o): Don't depend on ccl.h.
523 * macfns.c (mac_frame_parm_handlers): Set handlers for
524 Qleft_fringe and Qright_fringe.
525 * macterm.c (mac_fill_rectangle_to_pixmap)
526 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
527 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
528 Put in #if 0.
529 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
530 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
531 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
532 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
533 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
534 XDrawImageString. Always draw background and foreground separately.
535 (x_draw_image_foreground): Use clipping instead of computing the
536 intersection rectangle.
537 (x_draw_image_glyph_string): Don't draw an image with mask to a
538 pixmap.
539 (x_redisplay_interface): Set flush_display_optional member to 0.
540 (XTread_socket): Correctly reset the TEConverter
541 object.
542
fc368889
KS
5432004-11-30 Kim F. Storm <storm@cua.dk>
544
545 * lisp.h: New defines to enable buffer overrun checking.
546 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
547 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
548
549 * alloc.c: Add more checks for buffer overruns.
550 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
551 xmalloc_overrun_check_trailer, overrun_check_malloc)
552 overrun_check_realloc, overrun_check_free): Add.
553 (GC_STRING_EXTRA, string_overrun_pattern): Add.
554 (check_sblock, allocate_string_data, compact_small_strings):
555 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
556 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
557 (check_string_free_list): Add.
558 (allocate_string, sweep_strings): Call check_string_free_list.
559
560 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
561 XMALLOC_OVERRUN_CHECK to avoid crash during load.
562
0af8cfe1
KS
5632004-11-29 Kim F. Storm <storm@cua.dk>
564
565 * fns.c (concat): Use SAFE_ALLOCA.
566
77220eeb
SM
5672004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
568
569 * sysdep.c (emacs_write): Don't use QUIT.
570
a778cf63
KH
5712004-11-29 Kenichi Handa <handa@m17n.org>
572
573 * buffer.c (init_buffer): Set current_buffer->directory to a
574 multibyte string made by string_to_multibyte.
575
77220eeb 576 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 577
e3177e43
AS
5782004-11-27 Andreas Schwab <schwab@suse.de>
579
580 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
581
582 * s/gnu-linux.h: Enable no-op gcpros on ia64.
583 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
584
77220eeb
SM
585 * filelock.c (lock_file_1): Call get_boot_time early.
586 Increase buffer size.
e3177e43 587
ca5e6fef
EZ
5882004-11-27 Eli Zaretskii <eliz@gnu.org>
589
590 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
591 is not defined.
592
e2811828
KS
5932004-11-27 Kim F. Storm <storm@cua.dk>
594
595 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
596 marker out of doc string.
597
7a262394
SM
5982004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
601 which was not mentioned in the log.
602
f33cc5a9
KS
6032004-11-26 Kim F. Storm <storm@cua.dk>
604
048bb03f
KS
605 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
606 angle bitmaps at top/bottom line.
607
f33cc5a9
KS
608 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
609 set it when it->method is set to next_element_from_display_vector.
610 (setup_for_ellipsis): Add LEN argument. Callers changed.
611 Set it->saved_face_id.
612 (get_next_display_element): Use loop instead of recursion.
613 Set it->saved_face_id. Combine duplicate code for ctr chars.
614 (next_element_from_display_vector): Do not set it->saved_face_id.
615 (next_element_from_ellipsis): Use setup_for_ellipsis.
616
670e8906
EZ
6172004-11-26 Eli Zaretskii <eliz@gnu.org>
618
619 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
620 prevent compiler warnings.
621
275464e7
SM
6222004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
623
1bf0e604
SM
624 * keyboard.c (command_loop_1): Print a message describing the key
625 the user just pressed when this key has no binding.
626
275464e7
SM
627 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
628 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
629
630 * lread.c (readchar): Check QUIT when `getc' is interrupted.
631
261b01c6
RS
6322004-11-24 Richard M. Stallman <rms@gnu.org>
633
634 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
635
636 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
637
a5bd504e
KS
6382004-11-24 Kim F. Storm <storm@cua.dk>
639
640 * xdisp.c (move_it_in_display_line_to, display_line):
641 Restore saved_face_id also when truncate-lines or hscrolled.
642
255e4140
JD
6432004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
644
645 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
646 x-use-old-gtk-file-dialog.
647
648 * xfns.c: Define x_use_old_gtk_file_dialog.
649 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
650 outside ifdef USE_GTK.
651
cab27d04
SM
6522004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
653
654 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
655 Don't use XFASTINT blindly.
656
657 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
658
659 * indent.c (skip_invisible): Avoid non-idempotent side-effects
660 in macro arguments.
661
662 * keymap.c (Flookup_key): Check INTEGERP before XINT.
663
664 * lread.c (oblookup): Don't use XFASTINT blindly.
665
666 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
667 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
668
11e0be49
KS
6692004-11-23 Kim F. Storm <storm@cua.dk>
670
4d721114
KS
671 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
672 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
673
11e0be49
KS
674 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
675 signal_p is zero and face name is unknown.
676 (Fx_list_fonts): Don't signal error in lookup_named_face.
677 (Fface_font): Signal error in lookup_named_face.
678 (ascii_face_of_lisp_face): Likewise.
679
680 * dispextern.h (lookup_named_face): Fix prototype.
681
682 * xdisp.c (handle_single_display_prop): Don't signal error in
683 lookup_named_face for unknown fringe face name.
684 (highlight_trailing_whitespace): Don't signal error in
685 lookup_named_face if trailing-whitespace face unknown.
686 (calc_line_height_property): Don't signal error in
687 lookup_named_face if specified face name is unknown.
688
689 * fringe.c (update_window_fringes): Show top row indicator if
690 window has header-line. Don't show arrow at bob and eob
691 if the boundary indicators are not used.
692 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
693
694 * window.c (set_window_buffer): Clear display_error_modiff.
695
0960a582
KS
6962004-11-22 Kim F. Storm <storm@cua.dk>
697
698 * fringe.c (update_window_fringes): Provide sensible fall-back
699 value for non-nil indicate-buffer-boundaries setting.
700
b0e9bb28
MR
7012004-11-22 Markus Rost <rost@ias.edu>
702
703 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
704
d0bce91e
SM
7052004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
706
707 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
708
e1814672
KS
7092004-11-21 Kim F. Storm <storm@cua.dk>
710
b7fd3518
KS
711 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
712
713 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
714 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
715
716 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
717 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
718
719 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
720 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
721
d0bce91e
SM
722 * xdisp.c (move_it_in_display_line_to, display_line):
723 Restore saved_face_id if overflow-newline-into-fringe is enabled and
724 line is continued before or in middle of element from display vector.
f01d4d05 725
f1a61389
KS
726 * indent.c (Fvertical_motion): Fix last change. Use another
727 method to detect if iterator moved too far ahead after reseat.
728
e1814672
KS
729 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
730 expand matrix width for overflow in zero-width area.
731 (append_glyph, append_composite_glyph, produce_image_glyph)
732 (append_stretch_glyph): Use it to avoid loop in redisplay.
733 (note_mode_line_or_margin_highlight): Don't let help-echo from
734 string override help-echo from image map.
735
2dafe1c9
LT
7362004-11-20 Luc Teirlinck <teirllm@auburn.edu>
737
d0bce91e 738 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
739 * callint.c (Fcall_interactively): Ditto.
740
fd6866c8 7412004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
742
743 * minibuf.c (Fminibuffer_complete_and_exit):
744 Fixup the case of the completed value, for case-indep completion.
745
dedbac89
RS
7462004-11-20 Richard M. Stallman <rms@gnu.org>
747
fd6866c8
RS
748 * lisp.h (Fread_from_minibuffer): Add arg in decl.
749
9d00469f 750 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 751 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 752
dedbac89 753 * search.c (Vsearch_spaces_regexp):
d0bce91e 754 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 755
2f672bb5
TTN
7562004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
757
758 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
759
f31a9a68
RS
7602004-11-19 Richard M. Stallman <rms@gnu.org>
761
762 * search.c (Vsearch_whitespace_regexp): New variable.
763 (syms_of_search): Defvar it.
764 (compile_pattern_1): Call re_set_whitespace_regexp with it.
765 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
766 is non-nil.
6de891db
RS
767 (struct regexp_cache): New element whitespace_regexp.
768 (syms_of_search): Initialize whitespace_regexp elements.
769 (compile_pattern): Compare whitespace_regexp elements.
770 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
771
772 * regex.c (regex_compile): Substitute whitespace_regexp
773 for spaces, if it is nonzero.
774 (whitespace_regexp): New variable.
775 (re_set_whitespace_regexp): New function.
776
cbc34cb3
KS
7772004-11-19 Kim F. Storm <storm@cua.dk>
778
779 * indent.c (Fvertical_motion): Fix last change.
780
b54a7539
KS
7812004-11-18 Kim F. Storm <storm@cua.dk>
782
783 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
784 Instead, move back again if reseating moves too far ahead.
785
7862004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
787
788 * xdisp.c (message3): Call clear_message.
789
5ff504fe
KS
7902004-11-17 Kim F. Storm <storm@cua.dk>
791
792 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
793
5ae53dcf
JD
7942004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
795
d0bce91e 796 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 797
6abf3a27 798 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
799 (x_menu_set_in_use): Also set popup_activated_flag.
800
5ff504fe 801 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
802 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
803
6abf3a27 804 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 805
ee31cd78
RS
8062004-11-16 Richard M. Stallman <rms@gnu.org>
807
6abf3a27
SM
808 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
809 Use map-keymap-internal to implement that.
ee31cd78
RS
810
811 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
812
6abf3a27
SM
8132004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
814
815 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
816 a window before using XWINDOW.
817
818 * window.c (make_window, Fselect_window, make_dummy_parent)
819 (save_window_save):
820 * frame.c (make_frame):
821 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
822
823 * lisp.h (NILP): Use EQ rather than XFASTINT.
824
b4d61105
KS
8252004-11-16 Kim F. Storm <storm@cua.dk>
826
6abf3a27 827 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 828
b4d61105
KS
829 * indent.c (Fvertical_motion): Fix last change. Only reseat when
830 moving backwards.
831
8322004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
833
834 * dispextern.h: Extern reseat_at_previous_visible_line_start.
835
ab5b02b0
KH
8362004-11-16 Kenichi Handa <handa@m17n.org>
837
838 * xdisp.c (display_mode_element): Fix previous change (calculate
839 end position of substring to display correctly).
840
c482cf97
KS
8412004-11-16 Kim F. Storm <storm@cua.dk>
842
843 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
844 Reported by Andrew M. Scott.
845
9f89426b
KS
8462004-11-15 Kim F. Storm <storm@cua.dk>
847
848 * fns.c (Fsafe_plist_get): New defun.
849 (syms_of_fns): Defsubr it.
850
851 * lisp.h (Fsafe_plist_get): Add EXFUN.
852
853 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
854 Use Fsafe_plist_get.
855 (note_mode_line_or_margin_highlight, note_mouse_highlight):
856 Fix image map element parsing. Use Fsafe_plist_get.
857
27418463
RS
8582004-11-15 Richard M. Stallman <rms@gnu.org>
859
860 * xdisp.c (get_next_display_element): Fix previous change.
861
a130b901
JD
8622004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
863
ef614e04
JD
864 * window.c (shrink_windows): Handle special case of one window left
865 when trying to shrink the final reminder. Grow windows if
866 total_removed is less than total_shrink.
867
a130b901
JD
868 * xmenu.c (pop_down_menu): Remove global variable current_menu,
869 extract pointer from arg with XSAVE_VALUE.
46303896
KS
870 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
871 Construct arg to record_unwind_protect with make_save_value.
a130b901 872
d9a03ad2
RS
8732004-11-13 Richard M. Stallman <rms@gnu.org>
874
875 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
876 (get_next_display_element): Fix previous change to apply only to \n.
877
878 * indent.c (Fvertical_motion): Scan to PT from start of line to
879 make iterator consistent.
880
881 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
882
b3935289
JD
8832004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
884
885 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
886
887 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
888 Record unwind with clean_up_file_dialog.
889
78819ebb
KS
890 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
891 Declare.
b3935289
JD
892
893 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
894
af89e871
JD
8952004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
896
457a8155 897 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 898 (xg_file_sel_destroy): Remove.
46303896
KS
899 (xg_file_response_cb, pop_down_file_dialog)
900 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 901 New functions.
6abf3a27
SM
902 (xg_get_file_with_chooser, xg_get_file_with_selection):
903 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
904 Move common code to xg_get_file_name. Return widget created.
905 (xg_get_file_name): Set name, transient for, modal and destroy
906 with parent here. Connect response signal to xg_file_response_cb,
907 connect delete-event to gtk_true. Record pop_down_file_dialog
908 for unwind. Do event loop and call x_menu_wait_for_event in loop.
909 (xg_create_widget): Make dialogs modal.
910
af89e871
JD
911 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
912 Lisp_Object.
913 (popup_get_selection): Move unwind protect ...
914 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
915 Move destroy of widget to pop_down_menu.
916 (popup_widget_loop): Move unwind protect ...
917 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
918 Move destroy of widget to pop_down_menu.
919 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 920 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
921 x_mouse_leave and grabbed = 0 to pop_down_menu.
922
5596fbf1
KS
9232004-11-13 Kim F. Storm <storm@cua.dk>
924
925 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
926 (syms_of_xdisp): DEFVAR_BOOL it.
927 (make_cursor_line_fully_visible, try_cursor_movement)
928 (try_window_id): Use it.
929
b9de078a
KS
9302004-11-12 Kim F. Storm <storm@cua.dk>
931
381f7091
KS
932 * dispextern.h (struct glyph_row): New member extra_line_spacing.
933 (struct it): New member max_extra_line_spacing.
934 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
935 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
936 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
937 part of last line is only extra line spacing (so the text on the
938 line is fully visible). Use helper macros.
939 Add W arg (to use them). All callers changed.
940 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
941 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
942
6abf3a27
SM
943 * window.c (window_scroll_pixel_based, Frecenter):
944 Use move_it_vertically_backward directly.
381f7091
KS
945 (Frecenter): Fix calculation of new start pos for negative arg.
946 Before, the new start pos was sometimes chosen too far back, so
947 the last line became only partially visible, and thus would be
948 either only semi-visible or automatically scrolled to the middle
949 of the window by redisplay.
950
951 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
952 (move_it_vertically_backward): Don't recure to move further back.
953 (move_it_vertically): Remove superfluous condition.
954 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 955 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
956 (display_tool_bar_line): Clear row->extra_line_spacing.
957 (try_scrolling): Use move_it_vertically_backward directly.
958 (redisplay_window): Likewise.
959 (compute_line_metrics): Set row->extra_line_spacing.
960 (display_line, display_string): Likewise.
961 (x_produce_glyphs): Update it->max_extra_line_spacing.
962
b9de078a
KS
963 * xmenu.c (pop_down_menu): Return nil.
964
c3438661
JD
9652004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
966
967 * xmenu.c (x_menu_wait_for_event): New function.
968 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
969 to handle timers.
df00f436
JD
970 (popup_widget_loop): Add argument do_timers.
971 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
972 do_timers to popup_widget_loop.
c3438661
JD
973 (xmenu_show): Call XMenuActivateSetWaitFunction so that
974 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 975 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 976 popup_get_selection.
f1d1cd24
JD
977 (pop_down_menu): New function.
978 (popup_get_selection, popup_widget_loop): Unwind protect to
979 pop_down_menu.
980 (popup_widget_loop): Add argument widget.
981 (create_and_show_popup_menu, create_and_show_dialog): Pass new
982 argument widget to popup_widget_loop.
c3438661 983
32e2fb04
SM
9842004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
985
986 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
987
0faf6806
KS
9882004-11-09 Kim F. Storm <storm@cua.dk>
989
990 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
991 Fix various comments referring to XEvents instead of input events.
992 (x_queue_event): Fix format strings.
993 (x_stop_queuing_selection_requests): Likewise.
994
995 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
996 (pint2hrstr): Add extra braces to silence compiler.
997
998 * print.c (print_object): Fix format string.
999
1000 * lread.c (read1): Fix next_char matching.
1001
1002 * lisp.h (Fdelete): Add EXFUN.
1003 (replace_range_2): Add prototype.
1004
1005 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1006
1007 * intervals.h (NULL_INTERVAL_P): Add separate version when
1008 ENABLE_CHECKING is not defined to silence compiler.
1009 (compare_string_intervals): Add prototype.
1010
1011 * fringe.c (destroy_fringe_bitmap): Fix return type.
1012 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1013
1014 * emacs.c (Fdump_emacs): Fix format string.
1015
1016 * doc.c: Include <ctype.h>.
1017 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1018
1019 * data.c (store_symval_forwarding): Remove unused variables.
1020
1021 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1022
16bf4e32
JD
10232004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1024
1025 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1026 to ${OLDXMENU}.
1027
cdb805a9
KS
10282004-11-09 Kim F. Storm <storm@cua.dk>
1029
1030 * process.c (Fmake_network_process): Remove kludge for interrupted
1031 connects on BSD. If connect is interrupted, just close socket and
1032 start over rather than sleeping and retry with same socket.
1033
d87a9ab8 10342004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1035
a8b16c80
JD
1036 * .cvsignore: Add buildobj.lst.
1037
d87a9ab8
JD
1038 * doc.c: New variable Vbuild_files.
1039 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1040 file names from buildobh.lst. Only attach docstrings from files
1041 that are in Vbuild_files.
1042 (syms_of_doc): Defvar Vbuild_files.
1043
1044 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1045 and w32*.o.
1046 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1047 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1048
1049 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1050 is linked.
1051
b6709e77
KS
10522004-11-09 Kim F. Storm <storm@cua.dk>
1053
1054 * fringe.c (update_window_fringes): Update fringe bitmaps if
1055 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1056 also update previous row to get rid of misc. artifacts.
1057
bae9677d
KS
10582004-11-08 Kim F. Storm <storm@cua.dk>
1059
1060 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1061 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1062
3f8ea68c
EZ
10632004-11-08 Eli Zaretskii <eliz@gnu.org>
1064
1065 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1066 Don't include <sys/time.h> explicitly.
1067 Include <stdio.h> unconditionally, not just on MacOS.
1068
a653f812
KH
10692004-11-08 Kenichi Handa <handa@m17n.org>
1070
1071 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1072 don't pay attention to '\' before '*'.
1073 (fontset_pattern_regexp): Change the meaning of the second arg.
1074 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1075 (check_fontset_name): Try NAME as literal at first, and if it
1076 failes, try NAME as pattern.
1077
c37caf9d
JD
10782004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1079
1080 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1081
b72915a7
AS
10822004-11-07 Andreas Schwab <schwab@suse.de>
1083
78819ebb
KS
1084 * lisp.h (Fmsdos_downcase_filename): Declare.
1085 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1086 * fileio.c: Likewise.
1087
238a44a8
JD
10882004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1089
1090 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1091 comparisons with integers instead of Lisp_Object address.
1092 (Fmsdos_set_keyboard): Declare argument allkeys.
1093
1094 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1095
78819ebb 1096 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1097 int/Lisp_Object mixup.
1098
1099 * fileio.c: Ditto.
1100
31141c13
ST
11012004-11-06 Steven Tamm <steventamm@mac.com>
1102
1103 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1104
f28c1bd9
RS
11052004-11-06 Richard M. Stallman <rms@gnu.org>
1106
1107 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1108
1109 * xfaces.c (merge_named_face): GCPRO the face_name in the
1110 named_merge_point struct that we make.
1111 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1112
1113 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1114 before deciding whether to inactivate mark.
1115
59dede22
EZ
11162004-11-06 Lars Brinkhoff <lars@nocrew.org>
1117
1118 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1119 * editfns.c (Fget_internal_run_time): New function.
1120 (syms_of_data): Defsubr it.
1121 * fns.c (sxhash): As far as possible, merge calculation of
1122 hash code for symbols and strings.
59dede22 1123
27540e81
EZ
11242004-11-06 Eli Zaretskii <eliz@gnu.org>
1125
1126 * frame.c (syms_of_frame): Fix the example in the doc string.
1127
df470e3b
JD
11282004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1129
1130 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1131
1132 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1133 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1134
4cc8522c
LT
11352004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1136
1137 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1138
d4a42098
KS
11392004-11-05 Kim F. Storm <storm@cua.dk>
1140
a8490886
KS
1141 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1142
d4a42098
KS
1143 * fileio.c (Ffile_modes): Doc fix.
1144 (auto_save_1): Check for Ffile_modes nil value.
1145
36a2b04c
KS
11462004-11-05 Kim F. Storm <storm@cua.dk>
1147
1148 * xselect.c (struct selection_event_queue, selection_queue)
1149 (x_queue_selection_requests, x_queue_event)
1150 (x_start_queuing_selection_requests)
1151 (x_stop_queuing_selection_requests): Add new queue for selection
1152 input events to replace previous XEvent queue in xterm.c.
1153 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1154 (x_reply_selection_request): Adapt to new queue.
1155 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1156 (x_handle_selection_request, x_handle_selection_clear): Make static.
1157 (x_handle_selection_event): New function. May queue selection events.
1158 (wait_for_property_change_unwind): Use save_value instead of cons.
1159 Clear property_change_reply_object.
1160 (wait_for_property_change): Abort if already waiting.
1161 Use save_value instead of cons for unwind data.
1162 (x_handle_property_notify): Skip events already arrived, but don't
1163 free them, as "arrived" field is checked by wait_for_property_change,
1164 and it will be freed by unwind or explicit unexpect_property_change.
1165 (x_get_foreign_selection): Add to new queue.
1166 (receive_incremental_selection): Don't unexpect wait_object when done
1167 as it has already been freed by previous wait_for_property_change.
1168
1169 * xterm.h (x_start_queuing_selection_requests)
1170 (x_stop_queuing_selection_requests, x_handle_selection_request)
1171 (x_handle_selection_clear): Remove prototypes.
1172 (x_handle_selection_event): Add prototype.
1173
1174 * xterm.c (handle_one_xevent): Don't queue X selection events
1175 here, it may be too late if we start queuing after we have already
1176 stored some selection events into the kbd buffer.
1177 (struct selection_event_queue, queue, x_queue_selection_requests)
1178 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1179 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1180 (x_catch_errors_unwind): Block input around final XSync.
1181
1182 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1183
1184 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1185 (kbd_buffer_unget_event): New function.
1186 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1187 and use x_handle_selection_event.
1188 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1189
9c3ad9e1
JD
11902004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1191
1192 * xselect.c (TRACE3): New debug macro.
1193 (x_reply_selection_request): Use it.
1194 (receive_incremental_selection): In call to TRACE0, the name of
1195 a symbol is in xname.
1196
a33b89de
KS
11972004-11-05 Kim F. Storm <storm@cua.dk>
1198
1199 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1200
a872928c
JD
12012004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1202
88208bb8
JD
1203 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1204
78819ebb 1205 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1206
1207 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1208 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1209 * xfns.c (syms_of_xfns): ... to here.
1210
a872928c
JD
1211 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1212 it doesn't start with /.
1213
b912921c
KH
12142004-11-04 Kenichi Handa <handa@m17n.org>
1215
1216 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1217 treat it as a literal character.
1218
c524d9a6
KS
12192004-11-03 Kim F. Storm <storm@cua.dk>
1220
1221 * .gdbinit (ppt): New function.
1222
8cfd0f36
JD
12232004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1224
a11e1dce
JD
1225 * xterm.c (x_window_to_scroll_bar): Only call
1226 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1227
8cfd0f36
JD
1228 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1229 of save.
1230
a93563fd
AS
12312004-11-02 Andreas Schwab <schwab@suse.de>
1232
1233 * window.c (Fscroll_right): Fix last change.
1234
2b2d59d8
KS
12352004-11-02 Kim F. Storm <storm@cua.dk>
1236
1237 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1238
12392004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1240
1241 * callproc.c (Fcall_process): Block input around vfork.
1242
ca28104d
KS
12432004-11-02 Kim F. Storm <storm@cua.dk>
1244
1245 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1246 (syms_of_eval): Defsubr it.
1247
29bb7127
RS
12482004-11-02 Richard M. Stallman <rms@gnu.org>
1249
1250 * insdel.c (replace_range_2): New function.
1251
1252 * casefiddle.c (casify_region): Handle changes in byte-length
1253 using replace_range_2.
1254
1255 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1256
b6189c3b 1257 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1258 Subtract 1 from pos when checking previous newline for invisibility.
1259
1260 * window.c (window_scroll_pixel_based): Update preserve_y
1261 for header line if any.
1262 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1263 use a new second argument instead.
1264
1265 * eval.c (Fcall_interactive_p): New function.
1266 (interactive_p): Don't test INTERACTIVE here.
1267 (Finteractive_p): Doc fix.
1268
1269 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1270
b6189c3b 12712004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1272
1273 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1274 comparing font names.
a3fe4aaf 1275
2a00cdb4
JD
12762004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1277
f9d64bb3
JD
1278 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1279 Fx_file_dialog if only directories should be read.
1280
1281 * lisp.h: Fx_file_dialog takes 5 parameters.
1282
32e2fb04
SM
1283 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1284 Add parameter only_dir_p.
f9d64bb3
JD
1285 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1286 dialog, just text field part. Do not add DEFAULT_FILENAME
1287 to list of files if it isn't there.
1288 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1289
32e2fb04
SM
1290 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1291 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1292 a save dialog, add option kNavDontConfirmReplacement, change title
1293 to "Enter name", change text for save button to "Ok".
1294
32e2fb04
SM
1295 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1296 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1297
1298 * gtkutil.c (xg_get_file_with_chooser)
1299 (xg_get_file_with_selection): New functions, only defined ifdef
1300 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1301 respectively.
1302 (xg_get_file_name): Add parameter only_dir_p.
1303 Call xg_get_file_with_chooser or xg_get_file_with_selection
1304 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1305 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1306
1307 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1308
2a00cdb4
JD
1309 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1310
f6749d5d
KS
13112004-11-01 Kim F. Storm <storm@cua.dk>
1312
32e2fb04
SM
1313 * process.c (connect_wait_mask, num_pending_connects):
1314 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1315 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1316 (IF_NON_BLOCKING_CONNECT): New helper macro.
1317 (wait_reading_process_output): Only declare and use local vars
1318 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1319
1a99fe1a
JR
13202004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1321
1322 * w32term.c (x_scroll_run): Delete region objects after use.
1323
fcdb28b4
JD
13242004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1325
495ef86b
JD
1326 * xmenu.c: Add prototypes for forward function declarations.
1327 (popup_get_selection): Remove parameter do_timers, remove call to
1328 timer_check.
32e2fb04
SM
1329 (create_and_show_popup_menu, create_and_show_dialog):
1330 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1331
12e6566a
JD
1332 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1333 tool_bar_items and assign the result to f->tool_bar_items if
1334 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1335 tool_bar_items to assignment of result.
1336
fcdb28b4
JD
1337 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1338 pending_atmers is non-zero.
1339
1a1a0c4c
KS
13402004-10-31 Kim F. Storm <storm@cua.dk>
1341
1342 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1343
a36f1680
JW
13442004-10-28 Will <will@glozer.net>
1345
1346 * macterm.c: allow user to assign key modifiers to the Mac Option
1347 key via a 'mac-option-modifier' variable.
1348
32e2fb04 13492004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1350
1351 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1352 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1353 (x_handle_selection_request, x_handle_selection_clear)
1354 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1355
4f71c13f
RS
13562004-10-28 Richard M. Stallman <rms@gnu.org>
1357
1358 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1359
1360 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1361
068f3848
SM
13622004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1363
1364 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1365 comment-starter over a 1-char one.
1366
4660a9e3
RS
13672004-10-27 Richard M. Stallman <rms@gnu.org>
1368
1369 * xdisp.c (get_next_display_element): In mode lines,
1370 treat newline and tab like other control characters.
1371
1372 * editfns.c (Fmessage): Doc fix.
1373
1374 * indent.c (vmotion): When moving up, check the newline before.
1375 Make prevline an int, not a Lisp_Object.
1376
233f3db6
KS
13772004-10-27 Kim F. Storm <storm@cua.dk>
1378
1379 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1380 Only allocate info and discarded tables once.
1381
1382 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1383 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1384 (SAFE_FREE): Test it to determine if we need to unwind to free.
1385 Remove size arg. All users changed.
1386 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1387
1442465d
JD
13882004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1389
1390 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1391 (xg_destroy_widgets): Rename from remove_from_container.
1392 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1393 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1394 instead of remove_from_container.
1395 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1396 (free_frame_tool_bar): Add comment.
1397
1398 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1399 is not NULL before strcmp.
1400
c8636435
KS
14012004-10-26 Kim F. Storm <storm@cua.dk>
1402
1403 * callint.c (Fcall_interactively): Add 'U' code to get the
1404 up-event discarded by a previous 'k' or 'K' argument.
1405
5629f29b
DK
14062004-10-26 David Kastrup <dak@gnu.org>
1407
1408 * buffer.c (syms_of_buffer): Fix a few typos.
1409
4f2f546e
JD
14102004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1411
1412 * xsmfns.c: Put empty line between comment and function body.
1413 Use two spaces before comment end.
1414
fc1062f5
KH
14152004-10-25 Kenichi Handa <handa@m17n.org>
1416
1417 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1418 PATTERN is full XLFD.
1419
be13f5e5
KH
14202004-10-24 Kenichi Handa <handa@m17n.org>
1421
1422 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1423
1424 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1425 (regex_compile): Return REG_ERANGEX if appropriate.
1426
d0ee2ed3
KH
14272004-10-22 Kenichi Handa <handa@m17n.org>
1428
1429 * editfns.c (Ftranslate_region_internal): New function.
1430 (syms_of_editfns): Defsubr it.
1431
63ea8ea5
JD
14322004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1433
1434 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1435
c27ed90a
JD
14362004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1437
068f3848
SM
1438 * xterm.h (x_output): New member `xic_base_fontname'.
1439 (FRAME_XIC_BASE_FONTNAME): New macro.
1440 (xic_free_xfontset): Declare.
c27ed90a 1441
068f3848
SM
1442 * xfns.c (xic_create_xfontset): Share fontsets between frames
1443 based on base_fontname.
1444 (xic_free_xfontset): New function.
1445 (free_frame_xic): Use it.
1446 (xic_set_xfontset): Ditto.
c27ed90a 1447
068f3848 1448 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1449
1450
59508699
JR
14512004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1452
1453 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1454
dede2792
JD
14552004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1456
3aca2078
JD
1457 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1458 XSync.
1459
dede2792
JD
1460 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1461 New variables and constant.
1462 (main): Calculate heap_bss_diff. If we are dumping and the
1463 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1464 and exec ourself again.
1465 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1466 print a warning.
1467
1468 * lastfile.c: Make my_endbss and my_endbss_static available on all
1469 platforms.
1470
1471 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1472 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1473
1dc5ba01
LT
14742004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1475
1476 * data.c (Flocal_variable_if_set_p): Doc fix.
1477
950090be
JR
14782004-10-19 Jason Rumney <jasonr@gnu.org>
1479
1480 * w32.c (init_environment): Set emacs_dir correctly when running
1481 emacs from the build directory.
1482
8550b998
RS
14832004-10-19 Richard M. Stallman <rms@gnu.org>
1484
1485 * editfns.c (Fdelete_and_extract_region):
1486 If region is empty, return null string.
1487
08dedea6
JD
14882004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1489
1dc5ba01 1490 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1491 and canon_width.
068f3848 1492 (xg_frame_cleared): Remove.
08dedea6 1493
068f3848
SM
1494 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1495 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1496 (xg_create_scroll_bar): Put an event box widget between
1497 the scroll bar widget and the edit widget.
1498 (xg_show_scroll_bar): Show the parent widget (the event box).
1499 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1500 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1501 Move the parent (the event box) widget inside the fixed widget.
1502 Move window clear to xterm.c.
1503
068f3848 1504 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1505
08dedea6 1506 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1507 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1508 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1509 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1510
8550b998 15112004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1512
1513 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1514
84338890
JD
15152004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1516
1517 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1518 gdk_window_clear and move gdk_window_process_all_updates after
1519 clear so events are sent to the X server in correct order.
1520
6e1b0d8c
KH
15212004-10-18 Kenichi Handa <handa@m17n.org>
1522
1523 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1524 comparing font names.
8550b998 1525 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1526 (list_fontsets): Likewise.
1527
1528 * search.c (fast_string_match_ignore_case): New function.
1529
1530 * lisp.h (fast_string_match_ignore_case): Extern it.
1531
345e75a8
KS
15322004-10-17 Kim F. Storm <storm@cua.dk>
1533
1534 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1535 than bitmap if there is not left fringe.
1536 (get_overlay_arrow_glyph_row): Also used on windows system.
1537 (display_line): Display overlay string if no left fringe.
1538
be13cbb7
JR
15392004-10-16 Jason Rumney <jasonr@gnu.org>
1540
1541 * w32fns.c (w32_font_match): Encode font name being matched.
1542
c2e2ede7
RS
15432004-10-16 Richard M. Stallman <rms@gnu.org>
1544
1545 * window.c (Fspecial_display_p): Doc fix.
1546
3584d95d
SM
15472004-10-15 Stefan <monnier@iro.umontreal.ca>
1548
1549 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1550 Don't ignore menus, because where-is-internal already does it for us.
1551
699a0392
KS
15522004-10-15 Kim F. Storm <storm@cua.dk>
1553
b3c7a89b
KS
1554 * xdisp.c (redisplay_window): Only update fringes and vertical
1555 border on window frames.
699a0392 1556
4e382b0f
AS
15572004-10-14 Andreas Schwab <schwab@suse.de>
1558
1559 * m/ia64.h (DATA_SEG_BITS): Don't define.
1560
329a7be2
KS
15612004-10-14 Kim F. Storm <storm@cua.dk>
1562
1563 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1564 in some X versions.
329a7be2 1565
982241b1
SM
15662004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1567
1568 * fns.c (map_char_table): Add missing gcpros.
1569
9238467d
SM
15702004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1571
1572 * keymap.c (get_keymap): An autoload form is not a keymap.
1573
1574 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1575
4440e3ca
KS
15762004-10-13 Kim F. Storm <storm@cua.dk>
1577
7cfdabde
KS
1578 * callproc.c (Fcall_process): Simplify handling of display arg.
1579 Resume `display_on_the_fly' once a coding system is determined.
1580
4440e3ca
KS
1581 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1582
1c8dec6a
KS
15832004-10-12 Kim F. Storm <storm@cua.dk>
1584
1585 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1586 caller, such as call-process, is not going to poll for input.
1587 (calc_line_height_property): Handle case where it->object is nil.
1588
1589 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1590
170b174c
KH
15912004-10-12 Kenichi Handa <handa@m17n.org>
1592
9238467d
SM
1593 * xdisp.c (get_next_display_element):
1594 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1595 chars in octal in unibyte buffer.
1596
b583964c
KS
15972004-10-12 Kim F. Storm <storm@cua.dk>
1598
1599 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1600 are no ordinary bindings.
1601
29fabd8c
JD
16022004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1603
9238467d 1604 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1605
c3f4c690
ST
16062004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1607
9238467d
SM
1608 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1609 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1610 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1611 terminal frame.
1612 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1613 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1614 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1615 Make a cancel file-open dialog be like C-g.
9238467d
SM
1616 * mac.c (mktime): Use emacs_mktime.
1617 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1618 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1619
9688f9eb
KS
16202004-10-10 Kim F. Storm <storm@cua.dk>
1621
1622 * keyboard.c (timer_resume_idle): New function to resume idle
1623 timer without resetting timers on the idle list.
1624 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1625 (timer_start_idle, timer_stop_idle): Declare static.
1626 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1627
1628 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1629
f7f3a65f
ST
16302004-10-08 Steven Tamm <steventamm@mac.com>
1631
9238467d 1632 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1633 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1634 NULL where 0 should be used.
f7f3a65f
ST
1635 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1636 objc/malloc.h
9238467d 1637 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1638
3c7d999a
KS
16392004-10-07 Kim F. Storm <storm@cua.dk>
1640
1641 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1642 windows. Update vertical line after drawing window fringes, but
1643 only if actually drawing any bitmaps--or there is no fringe.
1644
1645 * xterm.c (x_update_window_end): Likewise.
1646 * macterm.c (x_update_window_end): Likewise.
1647 * w32term.c (x_update_window_end): Likewise.
1648
1649 * fringe.c (draw_window_fringes): Return value now indicates if
1650 any fringe bitmaps were redrawn (or there are no fringes).
1651
1652 * dispextern.h (draw_window_fringes): Update prototype.
1653
bf06c82f
ST
16542004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1655
1656 * macfns.c (mac_get_window_bounds): Add extern.
1657 (x_real_positions): Use mac_get_window_bounds.
1658
1659 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1660 xmenu.c (YAILOM).
3c7d999a 1661
bf06c82f
ST
1662 * macterm.c [!MAC_OSX]: Include Windows.h.
1663 (front_emacs_window): Rename from mac_front_window. All uses
1664 changed. Return the frontmost non-tooltip emacs window.
1665 (mac_get_window_bounds): New function.
1666 (x_calc_absolute_position): Use the difference of width and height
1667 between the inner and outer window.
1668 (x_set_offset): Specify window position by the coordinae of the
1669 outer window. Adjust the position if the title bar is completely
1670 outside the screen.
1671 (app_is_suspended, app_sleep_time): Remove unused variables.
1672 (do_app_resume, do_app_suspend): Remove their contents because
1673 window-activate/deactivate events will do the job.
1674 (do_zoom_window): Remove unused variables. Make compliant to the
1675 standard way of zooming. Set f->left_pos and f->top_pos.
1676 (XTread_socket): Don't use argument `expected'. Don't use
1677 FrontWindow to determine the clicked window. Exclude unprocessed
1678 mouseUp cases in the early stage. Add parentheses to fix operator
1679 precedence.
1680 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1681
4cbbf6b7 16822004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1683
1684 * config.in: Regenerate.
1685
1686 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1687 HAVE_EXECSHIELD.
1688
b90ee8b5
JD
16892004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1690
1691 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1692 a row if Alt or Meta has been found for that row. Also stop scanning
1693 for Keysyms for that row.
1694
904db1a2
KS
16952004-10-04 Kim F. Storm <storm@cua.dk>
1696
0207b8ad
KS
1697 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1698 to list. Include overlay arrow bitmap in return value.
1699
25f7220c
KS
1700 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1701 bars with fractional column width. If scroll bar separates two
1702 windows, move it towards the window it belongs to. Only update
1703 the padding area below the scroll bar widget when necessary,
1704 i.e. when scroll bar widget is created, moved, or resized.
1705
562020fe
KS
1706 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1707 while tracking/dragging mouse.
1708 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1709
37e34af7
KS
1710 * window.c (coordinates_in_window): Relax check for cursor
1711 on vertial border between mode lines.
1712 (Fset_window_fringes): Do not allow negative widths.
1713 (Fset_window_scroll_bars): Likewise.
1714
904db1a2
KS
1715 * .gdbinit (pp): Shorthand for p ARG + pr.
1716 (ff): New command: flush frame updates (X only).
1717
38fe4f64
MA
17182004-10-03 Michael Albinus <michael.albinus@gmx.de>
1719
1720 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1721
9de36315
KH
17222004-09-30 Kenichi Handa <handa@m17n.org>
1723
07c381ad 1724 * process.c (send_process): Free composition data.
9de36315 1725
07c381ad 1726 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1727
1728 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1729 compositions to encode.
1730 (encode_coding_string): Likewise. Free composition data.
1731
b6189c3b 17322004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1733
1734 * coding.c (code_convert_region): Free composition data.
9de36315 1735
f2a54fbc
KS
17362004-09-29 Kim F. Storm <storm@cua.dk>
1737
dc5d6435
KS
1738 * fringe.c: Remove limit on number of bitmaps.
1739 (fringe_bitmaps, fringe_faces): Change to pointers.
1740 (max_fringe_bitmaps): New var.
1741 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1742 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1743
1744 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1745 (struct glyph_row): Reorder fringe_bitmap related fields.
1746 (struct it): Likewise.
1747
1748 * w32term.c (fringe_bmp): Change to pointer.
1749 (max_fringe_bmp): New var.
1750 (w32_define_fringe_bitmap): Expand fringe_bmp.
1751 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1752 (w32_destroy_fringe_bitmap): Likewise.
1753
17542004-09-29 Kim F. Storm <storm@cua.dk>
1755
1756 * fringe.c: Simplify last change.
f2a54fbc
KS
1757 (lookup_fringe_bitmap): New function.
1758 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1759 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1760 Keep standard bitmaps in Vfringe_bitmaps.
1761 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1762 (Fset_fringe_bitmap_face): Likewise.
1763
1764 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1765 (valid_fringe_bitmap_p): Remove prototype.
1766
1767 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1768
841a8bca
KS
17692004-09-29 Kim F. Storm <storm@cua.dk>
1770
1f2da365
KS
1771 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1772 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1773
841a8bca
KS
1774 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1775
1776 * fringe.c (Vfringe_bitmaps): New variable.
1777 (syms_of_fringe): DEFVAR_LISP it.
1778 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1779 Change arg to Lisp_Object and fail if not an integer.
1780 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1781 (destroy_fringe_bitmap): New functions.
9238467d
SM
1782 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1783 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1784 clear its fringe property.
1785 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1786 Fdestroy_fringe_bitmap.
1787 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1788 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1789 and set fringe property. Signal error if no free slots.
1790 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1791 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1792
1793 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1794 symbols with a fringe property.
1795
4d965590
KS
17962004-09-27 Kim F. Storm <storm@cua.dk>
1797
1798 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1799 Doc fix. Format may now be a symbol or alist, not a cons.
1800
1801 * fringe.c (update_window_fringes): Handle new formats of
1802 indicate-buffer-boundaries (symbol or alist). No longer
1803 allow a simple cons.
1804 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1805
e888c2b3
JD
18062004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1807
9238467d 1808 * config.in: Rebuild.
e888c2b3 1809
83f1cb94
JD
18102004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1811
1812 * config.in: Rebuild.
1813
dd3b1d60 1814 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1815
2c51754c
SM
18162004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1817
1818 * xterm.c (x_term_init): Work around a bug in some X servers.
1819
3df5f8aa
RS
18202004-09-18 Richard M. Stallman <rms@gnu.org>
1821
557ca2c1
RS
1822 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1823
3df5f8aa
RS
1824 * xdisp.c (try_window_reusing_current_matrix):
1825 Handle the case where we reach the old displayed text,
1826 out of sync with the old line boundary.
1827
9238467d 18282004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1829
1830 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1831 narrowed buffer.
1832
bfa02563
KS
18332004-09-14 Kim F. Storm <storm@cua.dk>
1834
a25fe164
KS
1835 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1836
bfa02563
KS
1837 * xfaces.c (Qface_no_inherit): New var.
1838 (syms_of_xfaces): Intern and staticpro it.
1839 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1840 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1841 Don't increment face_change_count when face has non-nil
1842 face-no-inherit property.
1843
126f9c02
SM
18442004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1845
892a8eb5
SM
1846 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1847 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1848
126f9c02 1849 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1850 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1851
c0ad3b38
KS
18522004-09-12 Kim F. Storm <storm@cua.dk>
1853
1854 * editfns.c (Fformat): Handle format strings with multiple text
1855 properties. Reverse text property list from the format string,
1856 so the positions are in increasing order.
1857
844fc085
JD
18582004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1859
1860 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1861 x_uncatch_errors so that possible protocol errors are delivered.
1862
b106731c
EZ
18632004-09-10 Eli Zaretskii <eliz@gnu.org>
1864
21065c92
EZ
1865 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1866 blockinput.h.
1867 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1868 charset.h, and coding.h
9238467d 1869 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1870 (term.o): Depend on window.h and keymap.h.
1871 (abbrev.o): Depend on syntax.h.
1872 (callint.o): Depend on keymap.h.
1873 (casefiddle.o): Depend on charset.h and keymap.h.
1874 (category.o): Depend on keymap.h.
1875 (coding.o): Depend on dispextern.h.
1876 (cmds.o): Depend on keyboard.h and keymap.h.
1877 (dispnew.o): Depend on indent.h and intervals.h.
1878 (doc.o): Depend on keymap.h.
1879 (editfns.o): Depend on frame.h.
1880 (emacs.o): Depend on dispextern.h.
1881 (fileio.o): Don't depend on ccl.h.
1882 (filelock.o): Depend on charset.h and coding.h.
1883 (frame.o): Depend on w32term.h and macterm.h.
1884 (insdel.o): Depend on region-cache.h.
1885 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1886 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1887 (search.o): Depend on $(INTERVALS_SRC).
1888 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1889 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1890 xterm.h, w32term.h, and macterm.h.
1891 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1892 w32term.h, and macterm.h.
1893 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1894 region-cache.h, xterm.h, w32term.h, and macterm.h.
1895 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1896 (data.o): Depend on frame.h.
1897 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1898 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1899 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1900 (intervals.o): Depend on keymap.h.
1901
9238467d
SM
1902 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1903 Add debugging print-out to termscript.
b106731c 1904
64b7122d
RS
19052004-09-09 Richard M. Stallman <rms@gnu.org>
1906
1907 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1908
5670531e
RS
19092004-09-08 Richard M. Stallman <rms@gnu.org>
1910
6cb4a892
RS
1911 * window.c (Fset_window_buffer): Doc fix.
1912
5670531e
RS
1913 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1914
7e388eb7
JL
19152004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1916
1917 * minibuf.c (history_delete_duplicates): New variable.
1918 (read_minibuf): Use it.
1919 (syms_of_minibuf): Create the corresponding lisp variable.
1920
370e3587
KS
19212004-09-08 Kim F. Storm <storm@cua.dk>
1922
1923 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1924 overlay just before point.
1925
f844ba4e
LT
19262004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1927
1928 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1929 * buffer.c (reset_buffer, init_buffer_once):
1930 Handle auto_save_file_format field.
f844ba4e
LT
1931 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1932 `buffer-auto-save-file-format'.
f844ba4e
LT
1933 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1934 (build_annotations): Adapt to replacement of
1935 `auto-save-file-format' with the new buffer-local variable
1936 `buffer-auto-save-file-format'.
1937 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1938
f0f90717
JR
19392004-09-07 Jason Rumney <jasonr@gnu.org>
1940
1941 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1942
9238467d
SM
1943 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1944 Handle Unicode menu titles.
f0f90717 1945
4e14f66c
KS
19462004-09-07 Kim F. Storm <storm@cua.dk>
1947
1948 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1949 property from text property or overlay strings at point.
1950
9238467d 19512004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
1952
1953 * xmenu.c (update_submenu_strings): YAILOM.
1954 (set_frame_menubar): Make sure last_i is initialized.
1955
1f06d367
JR
19562004-09-03 Jason Rumney <jasonr@gnu.org>
1957
1806714a 1958 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
1959 (digest_single_submenu): Set lname and lkey in widget_value
1960 instead of name and key.
1961 (update_submenu_strings): New function.
1962 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1963 call update_submenu_strings.
1964
1965 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1966 (digest_single_submenu, w32_menu_show): Encode menu strings as
1967 UTF-8 if Unicode API is available.
1968 (utf8to16): New function.
1969 (add_menu_item): Use it when calling Unicode API.
1806714a 1970
46540080
KS
19712004-09-03 Kim F. Storm <storm@cua.dk>
1972
1973 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1974 in overlay or text-property strings; set cursor on corresponding
1975 glyph rather than at end of the string.
1976
9277ba61 19772004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 1978
9277ba61 1979 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
1980 set a new one before obtaining the global coordinate.
1981 Use FRAME_MAC_WINDOW.
1982 (x_set_name, x_set_title): Encode title to UTF8.
1983 Use SetWindowTitleWithCFString.
9277ba61
ST
1984 (Fx_server_version): Get correct OS version.
1985
1806714a
SM
1986 * macmenu.c (add_menu_item): Remove unused variable `i'.
1987 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
1988
1989 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1990 BLOCK_INPUT.
1991 (x_set_offset): Use FRAME_MAC_WINDOW.
1992
1993 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1994 nontext_cursor if it is on a scroll bar.
1995
1996 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1997 Carbon support.
1806714a
SM
1998 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
1999 Use LIBS_CARBON.
9277ba61 2000
b10daec7
JD
20012004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2002
2003 * xfns.c (x_set_name_internal): New function. Check if we shall call
2004 xfree before ENCODE_UTF_8.
2005 (x_set_name, x_set_title): Call x_set_name_internal.
2006
f7e22385
JR
20072004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2008
2009 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2010 reload it.
2011
2bf436c3
JD
20122004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2013
1806714a 2014 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2015 (single_submenu): Set lname and lkey in widget_value
2016 instead of name and key.
2017 (update_submenu_strings): New function.
2018 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2019 call update_submenu_strings.
2020
2bf436c3
JD
2021 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2022 instead of name and key.
2023 (update_submenu_strings): New function.
2024 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2025 call update_submenu_strings.
2bf436c3
JD
2026
2027 * gtkutil.h (_widget_value): Added lname and lkey.
2028
11715f92
ST
20292004-08-30 Steven Tamm <steventamm@mac.com>
2030
2031 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2032 by using different names for inner loop variables.
2033
5500be54
JD
20342004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2035
059cd329
JD
2036 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2037 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2038
5500be54
JD
2039 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2040 tool bar items is 0.
2041
383418e5
ST
20422004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2043
2044 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2045 strings in menu items.
2046 (single_submenu): Use ENCODE_MENU_STRING
2047 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2048 button release isn't passed to event loop
2049 (add_menu_item): Use SetMenuItemWithCFString
2050
6eb3ee72
ST
20512004-08-26 Steven Tamm <steventamm@mac.com>
2052
2053 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2054 tool-bar/menu click
2055 * macfns.c (Fx_file_dialog): Implemented using NavServices
2056
10b43ac3
JD
20572004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2058
2728b5d0
JD
2059 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2060
10b43ac3
JD
2061 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2062 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2063 (x_top_window_to_frame): Return 0 if wdesc is None.
2064
2ee3b79e
RS
20652004-08-22 Richard M. Stallman <rms@gnu.org>
2066
2067 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2068 HAVE_TERMIOS]: If there's no char for this signal, drop through
2069 and use system calls.
2070
2071 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2072
9a1ba2ea
KS
20732004-08-20 Kim F. Storm <storm@cua.dk>
2074
2075 * process.c (wait_reading_process_output): Rename from
2076 wait_reading_process_input. All uses changed.
2077 (wait_reading_process_output_1): Rename from
2078 wait_reading_process_input_1. All uses changed.
2079
2080 * dispnew.c (Fsleep_for): Remove obsolete code.
2081
295f3b30
KH
20822004-08-20 Kenichi Handa <handa@m17n.org>
2083
2084 * syntax.c (skip_chars): Fix for unibyte case.
2085
27615979
SM
20862004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2087
2088 * syntax.c (char_quoted): Mixup byte/char pos.
2089 (back_comment): Fixup globals in all cases.
2090
00267f94
JD
20912004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2092
2093 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2094 passing it to gtk_window_set_title.
2095
2439909e
KS
20962004-08-19 Kim F. Storm <storm@cua.dk>
2097
6ba0f14c
KS
2098 * process.c (wait_reading_process_input): Clean up.
2099 Add wait_for_cell, wait_proc, and just_wait_proc args
2100 to avoid overloading `read_kbd' and `do_display' args.
2101 Change read_kbd arg to int. All callers changed.
2102
2439909e
KS
2103 * process.c (process_send_signal): Use CDISABLE.
2104
2105 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2106
101c421e
KS
21072004-08-18 Kim F. Storm <storm@cua.dk>
2108
2109 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2110 forward to wait_reading_process_input via DO_DISPLAY arg.
2111 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2112 object, only process output from that process; also inhibit
2113 running timers if DO_DISPLAY==-2.
2114
c438dc33
KS
21152004-08-17 Kim F. Storm <storm@cua.dk>
2116
2117 * process.c (process_send_signal): Fix last change--use
2118 _POSIX_VDISABLE instead of CVDISABLE when available.
2119
8afc13c6
RS
21202004-08-16 Richard M. Stallman <rms@gnu.org>
2121
2122 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2123 Set VQUIT and VINTR chars to the standard ones if they are unset.
2124 [AIX]: Don't do that here. And don't force VINTR to standard
2125 when SIGNALS_VIA_CHARACTERS.
2126
c438dc33 2127 * process.c (process_send_signal)
8afc13c6
RS
2128 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2129 Do nothing if the character is CVDISABLE.
2130
2131 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2132
c438dc33 2133 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2134 Force POSITION to be between BEGV and ZV.
2135
6dad1714
JPW
21362004-08-14 John Paul Wallington <jpw@gnu.org>
2137
2138 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2139
2140 * fileio.c (Fread_file_name): Doc fix.
2141
2142 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2143
2bd77330
LT
21442004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2145
2146 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2147
c90e7e43
LT
21482004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2149
2150 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2151 Qdisabled_command_hook.
c90e7e43 2152 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2153 Qdisabled_command_hook.
c90e7e43
LT
2154 (syms_of_keyboard): Ditto.
2155
81909a1a
LT
21562004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2157
2158 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2159 (syms_of_keymap) <key-translation-map>: Doc fixes.
2160
0cedd530
SM
21612004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2162
1725a7c9
SM
2163 * window.c (window_list_1): YAILOM.
2164
0cedd530
SM
2165 * fileio.c (make_temp_name): Handle multibyte prefixes.
2166
2515a131
LT
21672004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2168
2169 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2170 Doc fix.
2171
c8b20fb7
KH
21722004-08-03 Kenichi Handa <handa@m17n.org>
2173
2174 * coding.c (decode_coding_string): Adjust coding->consumed, and
2175 etc. with shrinked_bytes.
2176
fb8b092b
KS
21772004-08-03 Kim F. Storm <storm@cua.dk>
2178
2179 * indent.c (compute_motion): Fix check for full width window
2180 in non-window case. Do not count left truncation glyph on
2181 window systems.
2182
df133612
LT
21832004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2184
2185 * data.c (Finteractive_form): Doc fix.
2186
0f7a93c1
KS
21872004-08-02 Kim F. Storm <storm@cua.dk>
2188
2189 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2190 properly accounting for continuation glyph on non-window systems.
2191 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2192 actual window width/height if TOPOS is nil, properly accounting for
2193 continuation glyphs on non-window systems, and optional header lines.
2194 (vmotion): Let compute_motion calculate actual window width.
2195
2196 * window.c (window_scroll_line_based): Let compute_motion
2197 calculate actual window width.
2198
f491e1ed
KS
21992004-08-02 Kim F. Storm <storm@cua.dk>
2200
2201 * process.c (read_process_output): Use whole read buffer.
2202 Don't trigger adaptive read buffering on errors.
2203
83f64226
LT
22042004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2205
2206 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2207
2208 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2209
2210 * callint.c (Fcall_interactively): Doc fix.
2211
8afc13c6
RS
22122004-07-30 Richard M. Stallman <rms@gnu.org>
2213
2214 * abbrev.c (Fexpand_abbrev): Undo previous change.
2215
7c111482
KS
22162004-07-30 Kim F. Storm <storm@cua.dk>
2217
2218 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2219
ee945d08
LT
22202004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2221
2222 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2223
3f911c94
KS
22242004-07-27 Kim F. Storm <storm@cua.dk>
2225
2226 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2227 we have ensured that the glyph fits on the current line (or returned
2228 MOVE_LINE_CONTINUED otherwise).
2229
f29ff8c7
KS
22302004-07-26 Kim F. Storm <storm@cua.dk>
2231
2232 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2233 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2234 if target position is at end of display line but char is not a newline.
2235
81159bb9
RS
22362004-07-25 Richard M. Stallman <rms@gnu.org>
2237
ab431b61
RS
2238 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2239 instead of ON_VERTICAL_BORDER, when on scroll bar.
2240 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2241
2242 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2243
f29ff8c7 2244 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2245 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2246
2247 * alloc.c (check_cons_list): New function (contents commented out).
2248
fc820cc5
LT
22492004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2250
2251 * xfaces.c (Fcolor_supported_p): Doc fix.
2252
2253 * frame.c (Fselect_frame, Fset_frame_selected_window)
2254 (Fframe_visible_p, Fraise_frame): Doc fixes.
2255
289978b5
LT
22562004-07-24 Richard M. Stallman <rms@gnu.org>
2257
78819ebb 2258 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2259
2260 * fileio.c (Fwrite_region): Doc fix.
2261
2262 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2263
2264 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2265 only when a real abbrev is present.
2266
289978b5
LT
2267 * xfns.c (x_icon_verify): New function.
2268 (Fx_create_frame): Use it.
2269
63cc10ae
KS
22702004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2271
2272 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2273
36f826d4
KS
22742004-07-21 Kim F. Storm <storm@cua.dk>
2275
2276 * window.h (struct glyph_matrix): New members nrows_scale_factor
2277 and ncols_scale_factor.
2278
2279 * window.c (make_window): Initialize nrows_scale_factor and
2280 ncols_scale_factor members.
2281
2282 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2283 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2284 (required_matrix_height): Apply nrows_scale_factor.
2285 (required_matrix_width): Apply ncols_scale_factor.
2286
2287 * xdisp.c (display_line): Increment nrows_scale_factor and set
2288 fonts_changed_p if past last allocated row.
2289 (append_glyph, append_composite_glyph, produce_image_glyph)
2290 (append_stretch_glyph): Increment ncols_scale_factor and set
2291 fonts_changed_p if current area is full.
2292
5fc1c546
JD
22932004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2294
2295 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2296
cb7516e5
LT
22972004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2298
2299 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2300 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2301 (Fset_window_start, Fscroll_up, Fscroll_down)
2302 (Fother_window_for_scrolling, Fscroll_other_window)
2303 (Fsave_window_excursion, Fset_window_vscroll)
2304 (syms_of_window) <window-size-fixed>: Doc fixes.
2305
b6189c3b 23062004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2307
2308 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2309 ENCODE_SYSTEM for filenames.
2310
bfcf6608
ST
23112004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
2313 * mac.c (sys_select): Block input around call to
2314 ReceiveNextEvent to prevent breakage. Correctly handle
2315 blocking on event queue only by calling ReceiveNextEvent
2316 instead of select (since GUI events aren't on an fd).
2317 (sys_read): Remove function
2318 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2319
e082ac9d
ST
23202004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2321
2322 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2323 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2324
cb7516e5 2325 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2326 frame creation.
2327
2328 * keyboard.c: Undef SIGIO on Carbon
2329
2330 * atimer.c (alarm_signal_handler): Call alarm handlers after
2331 scheduling.
2332
2333 * eval.c (Feval): Remove quit_char test
2334
2335 * process.c (wait_reading_process_input): Remove clearing
2336 stdin for select call on process input.
2337
4b9da0fb
LT
23382004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2339
1204e81c
LT
2340 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2341 capitalization error in docstring.
4b9da0fb 2342
26503ad2
JB
23432004-07-17 Juanma Barranquero <lektu@terra.es>
2344
2345 * keyboard.c (not_single_kboard_state): Do nothing unless
2346 MULTI_KBOARD is defined.
2347
3751eb00
RS
23482004-07-17 Richard M. Stallman <rms@gnu.org>
2349
2350 * window.c (coordinates_in_window): Inside the window but outside
2351 its box to the L or R, return ON_VERTICAL_BORDER.
2352 (window_list_1): Rotate the list to start with WINDOW.
2353
2354 * print.c (print_preprocess): Test for print_depth at limit
2355 before entering in being_printed.
2356
2357 * keyboard.c (not_single_kboard_state): New function.
2358 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2359
2360 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2361 this kboard, and we delete its last frame, go to any_kboard_state.
2362
2363 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2364
b6189c3b 23652004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2366
2367 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2368 system before passing them to OS functions for display.
2369
0f6af254
DK
23702004-07-15 David Kastrup <dak@gnu.org>
2371
f9253326
KS
2372 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2373 Apparently fixes an abort condition.
0f6af254 2374
386c8f42
LT
23752004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2376
2377 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2378 instead of a cons.
2379
366511da
MB
23802004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2381
2382 * keyboard.c (echo_dash): Do nothing if there already is a dash
2383 at the end of the echo string.
2384
f85409d3
KS
23852004-07-12 Kim F. Storm <storm@cua.dk>
2386
2387 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2388 if GC_MARK_STACK.
2389
0ba2e87b
LT
23902004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2391
da38045d
LT
2392 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2393
0ba2e87b
LT
2394 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2395 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2396 (Freplace_buffer_in_windows, Fset_window_buffer)
2397 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2398 (syms_of_window): Expand docstring of `display-buffer-function'.
2399
5668fbb8
LT
24002004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2401
2402 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2403 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2404 that time values of the type (HIGH . LOW) are considered obsolete.
2405
a085bf9d
LT
24062004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2407
669de2fb
LT
2408 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2409 docstring.
2410
bac66325 2411 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2412
8e975df9
JPW
24132004-07-06 John Paul Wallington <jpw@gnu.org>
2414
2415 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2416
fa164e6a
JPW
2417 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2418
2bac9bb1
JD
24192004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2420
2421 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2422 instead of CGMainDisplayID (only in OSX 10.2 and later).
2423
316ef0dc
JPW
24242004-07-04 John Paul Wallington <jpw@gnu.org>
2425
2426 * fileio.c (read_file_name_completion_ignore_case): New variable.
2427 (syms_of_fileio): Declare and initialise it.
2428 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2429
2a1a35c6
EZ
24302004-07-03 Eli Zaretskii <eliz@gnu.org>
2431
2432 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2433 for event.x and event.y.
2434
33a72331
KH
24352004-07-01 Kenichi Handa <handa@m17n.org>
2436
2437 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2438 after getting a new string by pre-write-conversion.
2439
9238467d 24402004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2441
2442 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2443 (x_calc_absolute_position): Remove unused var `child'.
2444
2445 * xfaces.c (x_supports_face_attributes_p)
2446 (Fdisplay_supports_face_attributes_p): YAILOM.
2447 (tty_supports_face_attributes_p): Remove unused var `i'.
2448
2449 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2450 back_unibyte_ok.
2451
2452 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2453
2454 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2455
2456 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2457
f96ec754
AS
24582004-06-30 Andreas Schwab <schwab@suse.de>
2459
2460 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2461 (Finit_image_library): Pass LIBRARIES through to
2462 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2463 (lookup_image_type): Pass Qnil as second argument to
2464 Finit_image_library.
2465
78819ebb 2466 * lisp.h (Finit_image_library): Declare.
f96ec754 2467
59feca74 24682004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2469
31983645
AS
2470 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2471 (XTread_socket): Send mouse button events to the toolbox
2472 dispatcher even when the mouse is grabbed. Don't process window
2473 activate events for non-Emacs windows. Replace function calls to
2474 do_window_activate and do_window_deactivate with their contents.
2475 Reset mouse grabbing status when a window is deactivated.
59feca74 2476
c61278bb
ST
24772004-06-29 Steven Tamm <steventamm@mac.com>
2478
2479 * macterm.c (mac_get_emulated_btn)
2480 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2481 support to correctly mask out modifiers.
2482
c3762cbd
DK
24832004-06-29 David Kastrup <dak@gnu.org>
2484
2485 * search.c (Fset_match_data): Allow buffer before end of list
2486 which can happen if set-match-data is using a pre-consed list.
2487
c61278bb 24882004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2489
2490 * macterm.c (XTread_socket): Correctly set the frame position
2491 after the window is moved.
2492
74cdfe05
JD
24932004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2494
2495 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2496 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2497 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2498 so insensitive and activated icons look ok.
74cdfe05 2499
ef544dc8
JR
25002004-06-27 Jason Rumney <jasonr@gnu.org>
2501
2502 * w32fns.c (file_dialog_callback): Disable edit control if set
2503 to directories only on CDN_INITDONE message.
2504 (Fx_file_dialog): Default to directories only when prompt starts
2505 with "Dired".
2506
7b7990cc
KS
25072004-06-25 Kim F. Storm <storm@cua.dk>
2508
2509 * alloc.c (allocate_misc): Update total_free_markers.
2510 (free_misc): New function.
2511 (safe_alloca_unwind, free_marker): Use it.
2512
2513 * lisp.h (free_misc): Add prototype.
2514
2515 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2516
d8c379f8
RS
25172004-06-24 Richard M. Stallman <rms@gnu.org>
2518
2519 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2520 (syms_of_emacs): Lisp variables deleted.
2521
559cdd07
DK
25222004-06-23 David Kastrup <dak@gnu.org>
2523
94939b84
DK
2524 * search.c (Freplace_match): Adjust the match-data more thoroughly
2525 when replacing strings in the buffer.
2526 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2527 a buffer, add the buffer as last element to the match data.
2528 (Fset_match_data): If an additional element of the match-data is a
2529 buffer, restore it to last_thing_searched.
c8d09ad8 2530 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2531 (restore_match_data): Restore it again.
2532
dce417e7
LT
25332004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2534
2535 * keymap.c (Ftext_char_description): Doc fix.
2536 * doc.c (Fsnarf_documentation): Doc fix.
2537
ef54b2d0
KS
25382004-06-22 Kim F. Storm <storm@cua.dk>
2539
b5bc4d05
KS
2540 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2541
ef54b2d0
KS
2542 * lisp.h (struct Lisp_Save_Value): New member dogc.
2543 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2544 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2545 (SAFE_FREE_LISP): New macro.
2546
2547 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2548 (make_save_value): Init new dogc member.
2549 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2550
2551 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2552 SAFE_FREE_LISP macros.
2553
3d33d993
KS
25542004-06-22 Kim F. Storm <storm@cua.dk>
2555
2556 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2557 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2558 in that memory area are unknown to GC. Add comments.
2559
2560 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2561
5c917f98
KS
25622004-06-21 Kim F. Storm <storm@cua.dk>
2563
2564 * lisp.h (MAX_ALLOCA): Define here.
2565 (safe_alloca_unwind): Add prototype.
2566 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2567
2568 * alloc.c (safe_alloca_unwind): New function.
2569
2570 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2571
2572 * charset.c (Fstring): Use SAFE_ALLOCA.
2573
2574 * coding.c (MAX_ALLOCA): Remove define.
2575
2576 * data.c (MAX_ALLOCA): Remove define.
2577 (Faset): Use SAFE_ALLOCA.
2578
2579 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2580
2581 * fns.c (string_make_multibyte, string_to_multibyte)
2582 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2583 (MAX_ALLOCA): Remove define.
2584 (Fbase64_encode_region, Fbase64_encode_string)
2585 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2586 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2587 memory leak if encoding fails.
2588
2589 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2590
9a09408e
EZ
25912004-06-21 Eli Zaretskii <eliz@gnu.org>
2592
2593 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2594
376de739
RS
25952004-06-20 Richard M. Stallman <rms@gnu.org>
2596
2597 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2598
2599 * search.c (match_limit): Cleaner err msg when no match data available.
2600
2601 * window.c (syms_of_window): Doc fix.
2602
2603 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2604 for Vtransient_mark_mode.
2605
2606 * buffer.c (syms_of_buffer): Doc fix.
2607
acd81db9
DK
26082004-06-21 David Kastrup <dak@gnu.org>
2609
2610 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2611 and unbinding of `case-fold-search' according to
2612 `completion-ignore-case' around calls of string-match and
2613 predicates, respectively. Should give satisfactory performance
2614 in all relevant cases.
2615
f303762d
JD
26162004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2617
95911c74
JD
2618 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2619 clip_x/y_origin.
2620
a6cb6b78
JD
2621 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2622
f303762d
JD
2623 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2624
2625 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2626 on Mac OSX.
2627
bbdb2684
LT
26282004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2629
2630 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2631
5ea48b1c
KS
26322004-06-16 Kim F. Storm <storm@cua.dk>
2633
2634 * dispextern.h (Vimage_types): Remove extern.
2635
803aac3e
MB
26362004-06-16 Miles Bader <miles@gnu.org>
2637
2638 * image.c (lookup_image_type): Initialize image type if necessary.
2639
cdc97764
KS
26402004-06-15 Kim F. Storm <storm@cua.dk>
2641
c4a5739c
KS
2642 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2643 margin at top of window.
2644 (try_window_reusing_current_matrix): Calculate proper cursor position
2645 after scrolling up with non-zero scroll margin, as the old cursor
2646 position corresponds to value of PT before executing this command.
2647 (try_window_id): Consider scroll margin at bottom of window too;
2648 otherwise we fail to scroll when hl-line-mode is enabled.
2649
cdc97764
KS
2650 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2651 proper format and class is a lower-case word.
2652
5b166323
JD
26532004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2654
2655 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2656 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2657 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2658 xg_get_gdk_pixmap_and_mask.
cdc97764 2659
5b166323
JD
2660 * xterm.h (struct x_display_info): Typo in comment fixed.
2661
1ebd4f78
JB
26622004-06-14 Juanma Barranquero <lektu@terra.es>
2663
2664 * dispextern.h (Vimage_types): Make it conditional on
2665 HAVE_WINDOW_SYSTEM.
2666
2667 * image.c (Vimage_types): Move from xdisp.c.
2668 (Vimage_type_cache): New variable.
2669 (define_image_type): New argument indicating whether an image
2670 library was loaded; cache loaded status and return t on success,
2671 nil otherwise.
2672 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2673 (w32_delayed_load): New function to load an image library from a
2674 list of possible filenames.
2675 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2676 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2677 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2678 (Finit_image_library): New function, extracted from `init_image'.
2679 Try to initialize an image library on demand and cache whether we
2680 were successful or not.
2681 (syms_of_image): Initialize `Vimage_types' and
2682 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2683 Export `init-image-library'.
2684 (init_image): Remove initialization of all image types, except xbm
2685 and pbm.
2686
2687 * xdisp.c (Vimage_types): Delete (moved to image.c).
2688
904ee128
AS
26892004-06-14 Andreas Schwab <schwab@suse.de>
2690
2691 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2692 Avoid calling specbind when completion-regexp-list is empty.
2693
092de21d
RS
26942004-06-13 Richard M. Stallman <rms@gnu.org>
2695
2696 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2697 (re_wctype, re_iswctype, re_wctype_to_bit):
2698 Non-function definitions moved here from regex.c.
1ebd4f78 2699
092de21d
RS
2700 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2701 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2702 (re_wctype, re_iswctype, re_wctype_to_bit):
2703 Non-function definitions moved to regex.h.
2704
2705 * window.c (Fselect_window): Doc fix.
2706
2707 * syntax.c: Include regex.h.
2708 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2709 If requested, make a list of classes, then check the scanned
2710 chars for membership in them.
2711 (in_classes): New function.
2712 Doc fix.
2713
2714 * keyboard.c (cmd_error): Don't call any_kboard_state
2715 if inside a recursive edit level.
2716
27172004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2718
2719 * keyboard.c (command_loop): Call any_kboard_state before
2720 command_loop_2 when at top level.
2721
3ebc0939
AS
27222004-06-13 Andreas Schwab <schwab@suse.de>
2723
cea5d0d4
AS
2724 * print.c (print_object): Always use %ld for printing EMACS_INT.
2725
2726 * keyboard.c (cancel_hourglass_unwind): Return a value.
2727 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2728 (Fexecute_extended_command): Likewise.
2729
2730 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2731 avoid clashes.
2732 (SYNTAX): Likewise.
2733 (SYNTAX_WITH_FLAGS): Likewise.
2734 (SYNTAX_MATCH): Likewise.
2735
2736 * syntax.c (char_quoted): Avoid warning about undefined operation.
2737 (find_defun_start): Likewise.
2738 (scan_lists): Likewise.
2739 (INC_FROM): Likewise.
2740 (scan_sexps_forward): Likewise.
2741
be8c4ce4
AS
2742 * image.c: Include <ctype.h>.
2743
3ebc0939
AS
2744 * xfaces.c (face_attr_equal_p): Declare parameters.
2745
6fb41b5b
KH
27462004-06-13 Kenichi Handa <handa@m17n.org>
2747
2748 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2749
fc3095ce
EZ
27502004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2751
2752 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2753
66189a40
KH
27542004-06-12 Kenichi Handa <handa@m17n.org>
2755
2756 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2757 ccl_prog_stack_struct and update it.
2758 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2759 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2760 ccl->eof_ic on EOF.
2761 (ccl_debug_hook): New function.
2762 (struct ccl_prog_stack): New member eof_ic.
2763 (ccl_driver): Handle EOF in subrountine call correctly.
2764
27652004-06-11 Kenichi Handa <handa@m17n.org>
2766
2767 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2768
1da71023
KS
27692004-06-11 Kim F. Storm <storm@cua.dk>
2770
2771 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2772
e9efcef4
JB
27732004-06-11 Juanma Barranquero <lektu@terra.es>
2774
2775 * keyboard.c (Fposn_at_point): Doc fix.
2776
9b9ceb61
DK
27772004-06-11 David Kastrup <dak@gnu.org>
2778
2779 * search.c (match_limit): Don't flag an error if match-data
2780 exceeding the allocated search_regs.num_regs gets requested, just
2781 return Qnil.
2782
6e87ac8f
MB
27832004-06-08 Miles Bader <miles@gnu.org>
2784
2785 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2786
0b0dea7b
JB
27872004-06-07 Juanma Barranquero <lektu@terra.es>
2788
2789 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2790 (Fcurrent_time_string, Fcurrent_time_zone)
2791 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2792
a0a23346
MB
27932004-06-07 Miles Bader <miles@gnu.org>
2794
08384afd 2795 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2796 (push_named_merge_point): New function.
2797 (merge_named_face): New function.
2798 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2799 Use `merge_named_face'.
2800 (merge_face_inheritance): Function removed.
c8d09ad8 2801 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2802 Add new `err_msgs' and `named_merge_points' args. Return error
2803 status. Only print error messages if ERR_MSGS is true. Don't try to
2804 do :inherit attribute validation.
2805 (merge_face_heights): Handle `unspecified' in both directions.
2806 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2807 Call `merge_face_ref' instead of `merge_face_inheritance'.
2808 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2809 (compute_char_face, face_at_buffer_position)
2810 (face_at_string_position): Call `merge_face_ref' instead of
2811 `merge_face_vector_with_property'.
2812
12d5b185
KH
28132004-06-07 Kenichi Handa <handa@m17n.org>
2814
2815 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2816 the necessary places.
2817
2e2d7ee6
KS
28182004-06-07 Kim F. Storm <storm@cua.dk>
2819
2820 * process.c (Fdelete_process): Undo 2004-05-28 change.
2821 Instead, call status_notify also for network process.
2822 (status_message): Use process instead of status as arg.
2823 Give messages "deleted" or "connection broken by remote peer" for
2824 an exited network process.
2825 (status_notify): Change call to status_message.
2826 (read_process_output): Increase readmax to 4096. Do not increase
2827 buffer size for datagram channels (default is now large enough).
2828
fcf0d299
ST
28292004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2830
2831 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2832 problem due to newly defined variable.
2833
0722292b
MB
28342004-06-06 Miles Bader <miles@gnu.org>
2835
2836 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2837 immediately if non-interactive or not initialized.
2838
ddfb8369
RS
28392004-06-05 Richard M. Stallman <rms@gnu.org>
2840
2841 * minibuf.c (Fcompleting_read): Doc fix.
2842
57015754
AS
28432004-06-05 Andreas Schwab <schwab@suse.de>
2844
2845 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2846
23715ea6
JB
28472004-06-05 Juanma Barranquero <lektu@terra.es>
2848
2849 * keymap.c (Fdescribe_vector): Fix docstring.
2850 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2851
8e330b22
MB
28522004-06-05 Miles Bader <miles@gnu.org>
2853
2854 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2855 attributes have different values than the default face.
2856
9742a3a6
EZ
28572004-06-04 Eli Zaretskii <eliz@gnu.org>
2858
2859 * xfaces.c (x_supports_face_attributes_p): Make this function
2860 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2861 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2862 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2863
9717e36c
MB
28642004-06-04 Miles Bader <miles@gnu.org>
2865
2866 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2867 from Ftty_supports_face_attributes_p.
2868 (x_supports_face_attributes_p): New function.
2869 (Ftty_supports_face_attributes_p): Function deleted.
2870 (Fdisplay_supports_face_attributes_p): New function.
2871 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2872 (face_attr_equal_p): New function.
9717e36c
MB
2873 (lface_equal_p): Use it.
2874
52deb19f
JB
28752004-06-03 Juanma Barranquero <lektu@terra.es>
2876
2877 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2878 (Vw32_color_map): Fix typo in docstring.
2879 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2880 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2881 Make argument names match their use in docstring.
2882
86d373e6
JB
28832004-06-02 Juanma Barranquero <lektu@terra.es>
2884
2885 Work around bugs/problems with MinGW builds of graphics libraries
2886 called from MSVC builds of Emacs.
2887
2888 * image.c (lookup_image): Make pointer to img static.
2889 (png_read_from_memory): Disable "global" optimization.
2890
2fb0ce67
SM
28912004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2892
c8d09ad8
SM
2893 * eval.c (Fcondition_case): Fix usage. Simplify.
2894
2fb0ce67
SM
2895 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2896
50bf7673
ST
28972004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2898
2899 * macfns.c: Don't include ccl.h.
2900 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2901 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2902 TextUtils.h.
c8d09ad8 2903 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
2904 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2905 display height/width.
2906 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2907 (unwind_create_tip_frame, compute_tip_xy): New functions.
2908 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2909 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2910 and last_show_tip_args.
2fb0ce67 2911
50bf7673
ST
2912 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2913 (Cursor, No_Cursor): New defines.
c8d09ad8 2914 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
2915 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2916
2917 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2918
2919 * macterm.c: Don't include Gestalt.h.
2920 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2921 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2922 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2923 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2924 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2925 (construct_mouse_click, XTmouse_position)
2926 (x_scroll_bar_report_motion, x_calc_absolute_position)
2927 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2928 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2929 (note_mouse_movement): Clear the mouse face and reset the pointer
2930 shape when the pointer goes outside the frame without grabbing.
2931 (mac_front_window): New function.
2932 (mac_window_to_frame): New macro.
2933 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2934 (do_window_activate, do_window_deactivate, do_app_resume)
2935 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2936 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2937 (mac_check_for_quit_char): Use mac_front_window and/or
2938 mac_window_to_frame.
2939 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2940 scroll-bar click event.
2941 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2942 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2943 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2944 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2945 (do_window_update): Don't do anything if the updated window is the
2946 tooltip window.
2947 (do_mouse_moved): Handle mouse movement events here (previously in
2948 XTread_socket). Clear the mouse face if
2949 dpyinfo->mouse_face_hidden is set.
2950 (do_os_event, do_events): Remove (now in XTread_socket).
2951 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
2952 Loop until all the events in the queue are processed.
2953 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
2954 contents of do_os_event and do_events. Remove mouse movement
2955 handling (now in do_mouse_moved). Add the case where
2956 Vmouse_highlight has an integer value.
2957 (NewMacWindow): Remove.
2958 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2959 excess initializations.
2960 (make_mac_terminal_frame): Previous initializations in
2961 make_mac_frame are moved here.
c8d09ad8
SM
2962 (mac_initialize_display_info):
2963 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
2964
2965 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2966 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2967
08fd1251
RS
29682004-05-29 Richard M. Stallman <rms@gnu.org>
2969
2970 * lisp.h (truncate_undo_list): Update decl.
2971
2972 * alloc.c (undo_outer_limit): New variable.
2973 (syms_of_alloc): Defvar it.
2974 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2975
2976 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2977
2978 * alloc.c (lisp_align_malloc): Check for base == 0
2979 regardless of HAVE_POSIX_MEMALIGN.
2980 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2981
227ef0ff
SM
29822004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2983
2984 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2985 (marker_blocks_pending_free): Remove.
2986 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2987 Mark the undo lists after claning them up.
2988 Don't free block in marker_blocks_pending_free.
2989 (mark_buffer): Don't mark undo_list.
2990 (gc_sweep): Sweep hash-tables and strings first.
2991 Do free marker blocks that are empty.
2992
034a6113
SM
29932004-05-28 Jim Blandy <jimb@redhat.com>
2994
2995 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2996 after 'case wordend'. For symbeg and symend, print to stderr,
2997 like the other cases.
2998
33594a8d
NF
29992004-05-28 Noah Friedman <friedman@splode.com>
3000
3001 * process.c (Fdelete_process): Do not call remove_process.
3002
ce50a847
SM
30032004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3004
3005 * alloc.c (struct backtrace): Remove.
3006 (Fgarbage_collect): Use the new mark_backtrace.
3007
3008 * eval.c (mark_backtrace): New function.
3009
3010 * minibuf.c (run_exit_minibuf_hook): New function.
3011 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3012 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3013
1e8dae36
KS
30142004-05-27 Kim F. Storm <storm@cua.dk>
3015
3016 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3017 over display properties, e.g. images, that replace buffer text.
3018
846faa3b
KS
30192004-05-25 Kim F. Storm <storm@cua.dk>
3020
3021 * alloc.c (marker_blocks_pending_free): New var.
3022 (gc_sweep): Store free marker blocks on that list.
3023 (Fgarbage_collect): Free them after undo-list cleanup.
3024
3025 * process.c (wait_reading_process_input): Check connect_wait_mask
3026 before actually accepting connection in case it has already been
3027 accepted due to recursion.
3028
b6189c3b 30292004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3030
ce50a847
SM
3031 * coding.c (Fset_safe_terminal_coding_system_internal):
3032 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3033
71d5a208
RS
30342004-05-22 Richard M. Stallman <rms@gnu.org>
3035
3036 * alloc.c (Fmake_string): Doc fix.
3037
3038 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3039 and the alist pairs too.
3040
3041 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3042
3043 * emacs.c (main): Update copyright year.
3044
3045 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3046
3047 * insdel.c (del_range_2, replace_range): Don't write an anchor
3048 if the gap is empty.
3049
3050 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3051 scroll-down-aggressively is small but positive, put point
3052 near the screen edge.
3053
f63fd14e
JB
30542004-05-22 Juanma Barranquero <lektu@terra.es>
3055
3056 * keymap.c (Fdefine_key): Doc fix.
3057
4d12067c
KS
30582004-05-22 Kim F. Storm <storm@cua.dk>
3059
3060 * alloc.c (struct backtrace): Add debug_on_exit member.
3061 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3062 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3063 the removed cons cells.
3064 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3065 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3066 any cons cells pointing to unallocated stings.
3067 Do not lisp_free any marker blocks, as there may still be pointers
3068 to them from buffer undo lists at this stage of GC.
3069
3070 * keyboard.c (struct backtrace): Add debug_on_exit member.
3071 (Fcommand_execute): Clear it.
3072
931285e2
LT
30732004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3074
3075 * intervals.c (lookup_char_property): Do not prematurely return nil.
3076
669fa600
SM
30772004-05-19 Jim Blandy <jimb@redhat.com>
3078
3079 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3080 beginning and end of symbols.
4d12067c 3081
669fa600
SM
3082 * regex.c (enum syntaxcode): Add Ssymbol.
3083 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3084 (re_opcode_t): New opcodes `symbeg' and `symend'.
3085 (print_partial_compiled_pattern): Print the new opcodes properly.
3086 (regex_compile): Parse the new operators.
ce50a847 3087 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3088 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3089 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3090 (re_match_2_internal): Match symbeg and symend.
3091
3092 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3093
0d8c2e5c
KS
30942004-05-19 Kim F. Storm <storm@cua.dk>
3095
3096 * .gdbinit (xsymbol): Fix last change.
3097
669fa600
SM
30982004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3099
3100 * .gdbinit (xprintstr): New fun.
3101 (xstring, xprintsym): Use it.
3102
3103 * w32proc.c (create_child): Use INTMASK.
3104
3105 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3106 unmarked elements of the undo list.
3107
9a6a4c40
DP
31082004-05-18 David Ponce <david@dponce.com>
3109
3110 * print.c (print): Reset print_depth before to call print_object.
3111
f3c4ec74
JR
31122004-05-18 Jason Rumney <jasonr@gnu.org>
3113
3114 * w32console.c: Prefix RIF functions with w32con_ to avoid
3115 namespace clash with functions in term.c and w32term.c.
3116
3117 * w32menu.c (add_menu_item, w32_menu_display_help)
3118 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3119
0d8c2e5c 3120 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3121
6be49c3a
EZ
31222004-05-18 Eli Zaretskii <eliz@gnu.org>
3123
4d0b9a0a
EZ
3124 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3125
6be49c3a
EZ
3126 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3127 with make_number.
3128 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3129 with XINT.
3130
0bc90bba
KS
31312004-05-18 Kim F. Storm <storm@cua.dk>
3132
89d19988
KS
3133 * blockinput.h (INPUT_BLOCKED_P): New macros.
3134
3135 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3136 (Ftop_level): Unblock input if blocked.
3137
0bc90bba
KS
3138 * buffer.h (GET_OVERLAYS_AT): New macro.
3139 * msdos.c (IT_note_mouse_highlight): Use it.
3140 * textprop.c (get_char_property_and_overlay): Use it.
3141 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3142 * xfaces.c (face_at_buffer_position): Use it.
3143
3144 * print.c (print_object): Increase buf size.
3145
653bd0f6
JR
31462004-05-17 Jason Rumney <jasonr@gnu.org>
3147
3148 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3149 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3150 Lisp_Object using i member.
3151 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3152 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3153 consistently.
3154
3155 * w32proc.c (create_child): Use make_number instead of masking pid.
3156
3157 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3158 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3159 Use EQ to compare Lisp_Objects.
3160 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3161
3162 * w32term.c (w32_num_mouse_buttons): Rename from
3163 Vw32_num_mouse_buttons and make it an int.
3164
3165 * w32.c (init_environment): Use it.
3166
3167 * w32fns.c (w32_wnd_proc): Likewise.
3168
3169 * w32proc.c (w32_pipe_read_delay): Rename from
3170 Vw32_pipe_read_delay and make it an int.
3171
3172 * w32.c (_sys_read_ahead): Use it.
3173
3174 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3175
3176 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3177
3178 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3179 (key_event): Don't mix Lisp_Object and int.
3180
3181 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3182
3183 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3184 modifiers in language change event.
3185
54b53ba7
KS
31862004-05-17 Kim F. Storm <storm@cua.dk>
3187
3188 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3189 Such objects may be freed markers which still exist on an undo list.
3190
6e86a75d
JB
31912004-05-16 Juanma Barranquero <lektu@terra.es>
3192
3193 * data.c (Fset_default): Make argument names match their use in
3194 docstring.
3195
fc80da24
AS
31962004-05-15 Andreas Schwab <schwab@suse.de>
3197
3198 * emacs.c (gdb_array_mark_flag): Define.
3199 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3200
c1380aa6
EZ
32012004-05-15 Eli Zaretskii <eliz@gnu.org>
3202
3203 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3204 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3205 defined for the MS-DOS build.
3206
89458937
SM
32072004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3208
3209 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3210
08020f9a
KH
32112004-05-14 Kenichi Handa <handa@m17n.org>
3212
3213 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3214
a433994a
ST
32152004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3216
3217 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3218 section to frame.c section.
3219 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3220 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3221
a433994a 3222 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3223
a433994a 3224 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3225
a433994a
ST
3226 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3227 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3228 (XTread_socket): Fix int/Lisp_Object mixup.
3229 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3230
a433994a
ST
3231 * macterm.h (struct frame, struct face, struct image)
3232 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3233 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3234 Add prototypes.
a433994a 3235
b51a51b9
KS
32362004-05-14 Kim F. Storm <storm@cua.dk>
3237
3238 * process.c (wait_reading_process_input): Make reentrant.
3239 Make Available and Connecting non-static. Save and restore value
3240 of waiting_for_user_input_p.
3241
2bde1dd8
KS
32422004-05-13 Kim F. Storm <storm@cua.dk>
3243
3244 * keyboard.c (mark_kboards): Don't mark x and y members
3245 that are overloaded in selection request events.
3246
a267ab4d
SM
32472004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3248
3249 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3250
eb15ce9e
GM
32512004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3252
3253 * window.c (Fdisplay_buffer, Fsplit_window)
3254 (split-height-threshold): Doc fix.
3255
7fc92635
JB
32562004-05-13 Juanma Barranquero <lektu@terra.es>
3257
3258 * xfaces.c (Ftty_supports_face_attributes_p)
3259 (Finternal_copy_lisp_face): Fix typo in docstring.
3260 (Finternal_get_lisp_face_attribute): Fix docstring.
3261
1ec2a572
JD
32622004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3263
3264 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3265
ae9292e0
ST
32662004-05-11 Steven Tamm <steventamm@mac.com>
3267
3268 * macfns.c (Fx_create_frame): Default to using tool-bar by
3269 setting tool-bar-lines to 1 in default-frame-alist.
3270
32712004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3272
3273 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3274 (xpm_get_color_table_v, xpm_make_color_table_h)
3275 (xpm_put_color_table_h, xpm_get_color_table_h)
3276 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3277 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3278 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3279
fe97e8df
ST
32802004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3281
a267ab4d 3282 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3283 instead of FRAME_X_P
3284
b47e779e
KS
32852004-05-11 Kim F. Storm <storm@cua.dk>
3286
3287 * process.c (read_process_output): Grow decoding_buf when needed;
3288 this could cause a crash in allocate_string and compact_small_strings.
3289
cdc9b845
EZ
32902004-04-29 Jim Blandy <jimb@redhat.com>
3291
3292 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3293 against proper opcode.
3294
aa7094ba
JB
32952004-05-10 Juanma Barranquero <lektu@terra.es>
3296
3297 * process.c (Fstart_process): Fix docstring.
3298
3299 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3300 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3301 (Fsplit_char, Fchar_charset): Make argument names match their use
3302 in docstring.
3303
e109331a
RS
33042004-05-10 Richard M. Stallman <rms@gnu.org>
3305
3306 * print.c (print_preprocess): Use being_printed, loop_count and
3307 halftail to detect overdeep nesting and cyclic cdr chains.
3308
9a28b921
AS
33092004-05-10 Andreas Schwab <schwab@suse.de>
3310
78819ebb 3311 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3312
3313 * fileio.c (Frename_file): Remove extra argument in call to
3314 Fmake_symbolic_link.
3315
e2c02c1a
KS
33162004-05-10 Kim F. Storm <storm@cua.dk>
3317
3318 * xdisp.c (calc_line_height_property): Use string position when
3319 object is a string.
3320
cfe9d13e
KH
33212004-05-10 Kenichi Handa <handa@m17n.org>
3322
a57e8159
KH
3323 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3324 inhibit-modification-hooks to t temporarily before calling
3325 Ferase_buffer.
3326
3327 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3328 inhibit-modification-hooks to t temporarily before calling
3329 Ferase_buffer.
3330
3331 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3332 inhibit-modification-hooks to t temporarily before calling
3333 Ferase_buffer.
3334
cfe9d13e
KH
3335 * fns.c (count_combining): Delete it.
3336 (concat): Don't check combining bytes.
3337
ceb96489
JR
33382004-05-09 Jason Rumney <jasonr@gnu.org>
3339
3340 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3341 (globals_of_w32fns): Set it.
3342
b6189c3b 33432004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3344
3345 * data.c (Fquo): Simplify.
3346
28712a21
JB
33472004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3348
3349 * data.c (Fquo): If any argument is float, do the computation in
3350 floating point.
3351
0f0af7a8
JB
33522004-05-08 Juanma Barranquero <lektu@terra.es>
3353
88214ef6
JB
3354 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3355 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3356 Fix spelling of Emacs on docstring.
3357 (Fset_process_coding_system, Fprocess_coding_system)
3358 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3359 Make argument names match their use in docstring.
3360 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3361 Fix docstring.
3362
0f0af7a8
JB
3363 * editfns.c (Finsert_buffer_substring): Make argument names match their
3364 use in docstring.
3365
3366 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3367
2a316a84
ST
33682004-05-07 Steven Tamm <steventamm@mac.com>
3369
3370 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3371 around call to ReceiveEvent to avoid certain crashes.
3372
33732004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3374
2a316a84
ST
3375 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3376 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3377 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3378 Save/restore the current graphics port and device handle when
3379 drawing into an offscreen graphics world.
3380
3381 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3382 (gif_load): Likewise.
3383
ab80314b
JB
33842004-05-07 Juanma Barranquero <lektu@terra.es>
3385
3386 * window.c (Fset_window_buffer): Fix docstring.
3387
70646bb5
TTN
33882004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3389
3390 * emacs.c (main) [VMS]: Fix var ref.
3391
b6189c3b 33922004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3393
3394 * data.c (Fsetq_default): Fix docstring.
3395
279d3293
JR
33962004-05-06 Jason Rumney <jasonr@gnu.org>
3397
3398 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3399 to avoid name clash.
3400
f72b5416
JD
34012004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3402
3403 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3404 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3405 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3406
6ab66799
KS
34072004-05-04 Kim F. Storm <storm@cua.dk>
3408
3409 * xdisp.c (Qtotal): New var.
3410 (syms_of_xdisp): Intern and staticpro it.
3411 (calc_line_height_property): New arg total. Set it if
3412 line-spacing property has format (total . VALUE).
3413 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3414 Handle total line-spacing property.
3415
ab2d724b
JD
34162004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3417
3418 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3419 "under" scroll bar when size/position changes.
3420
238add5e
JR
34212004-05-03 Jason Rumney <jasonr@gnu.org>
3422
3423 * makefile.nt: Remove.
3424
1644f4e4
EZ
34252004-05-02 Eli Zaretskii <eliz@gnu.org>
3426
a267ab4d
SM
3427 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3428 Avoid compiler warnings.
05fdbeb8 3429
1644f4e4
EZ
3430 * Makefile.in (region-cache.o): Depend on config.h.
3431
b6189c3b 34322004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3433
3434 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3435 with continuation lines, too.
3436
2b98b088
TTN
34372004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3438
3439 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3440
d9bf7950
SM
34412004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3442
3443 * xdisp.c (calc_line_height_property): YAILOM (yet another
3444 int/Lisp_Object mixup).
3445
affa509c
EZ
34462004-05-01 Eli Zaretskii <eliz@gnu.org>
3447
3448 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3449 undo bad effect of pack(4) in some versions of system headers.
3450
07c07cfe
JR
34512004-05-01 Jason Rumney <jasonr@gnu.org>
3452
3453 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3454
e71caa4e
KS
34552004-04-30 Kim F. Storm <storm@cua.dk>
3456
3457 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3458 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3459
3460 * dispextern.h (struct it): Remove member use_default_face.
3461 Add members override_ascent, override_descent, override_boff.
3462
3463 * xdisp.c (init_iterator): Handle line-spacing float value.
3464 Initialize override_ascent member.
3465 (append_space_for_newline): Reset override_ascent.
3466 Remove use_default_face.
3467 (calc_line_height_property): New function to calculate value of
3468 line-height and line-spacing properties. Look at overlays, too.
3469 Set override_ascent, override_descent, override_boff members when
3470 using another face than the current face. Float values are now
3471 relative to the frame default font, by default; accept a cons
3472 of ratio and face name to specify value relative to a specific face.
3473 (x_produce_glyphs): Use calc_line_height_property.
3474 Use override_ascent etc. when set to handle different face heights.
3475 A negative line-spacing property value is interpreted as a total
3476 line height, rather than inter-line spacing.
3477 (note_mouse_highlight): Allocate room for 40 overlays initially.
3478
0fddae66
SM
34792004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3480
3481 * data.c (Fsubr_name): New fun.
3482 (syms_of_data): Defsubr it.
3483
712d23dc
KS
34842004-04-29 Kim F. Storm <storm@cua.dk>
3485
3486 * xdisp.c (null_glyph_slice): New var.
3487 (append_glyph, append_composite_glyph, append_stretch_glyph):
3488 Use it to initialize glyph slice.
3489
033ad8c6
SM
34902004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3491
3492 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3493 (on_hot_spot_p): Make sure we always return a value.
3494 (Flookup_image_map): Remove unused var ix and iy.
3495 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3496
93397360
EZ
34972004-04-27 Eli Zaretskii <eliz@gnu.org>
3498
3499 * msdos.c (init_environment): If one of the TMP... environment
3500 variables is set to a drive letter without a trailing slash,
3501 append a slash.
3502
0c54865e
EZ
35032004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3504
3505 * editfns.c (lisp_time_argument): Provide externally.
3506
3507 * fileio.c (Fset_file_times): New function.
3508 (syms_of_fileio): Intern and staticpro it.
3509
d3b111bd
KS
35102004-04-27 Kim F. Storm <storm@cua.dk>
3511
07dc1231
KS
3512 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3513 header line strings.
3514
360fe9d2
KS
3515 * dispextern.h (struct it): New member use_default_face.
3516
d3b111bd
KS
3517 * xdisp.c (Qline_height): New variable.
3518 (syms_of_xdisp): Intern and staticpro it.
3519 (append_space_for_newline): Partially undo 2004-04-25 change;
3520 add default_face_p arg, and restore callers.
3521 Clear it->use_default_face after use.
3522 (x_produce_glyphs): Set default font for ascii char if
3523 it->use_default_font is set. Change line-spacing property to set
3524 just extra line spacing. Handle new line-height property.
3525
0448588b
AS
35262004-04-26 Andreas Schwab <schwab@suse.de>
3527
3528 * print.c (print_object): Print non-ascii characters in bool
3529 vector representation as octal escapes.
3530
3531 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3532 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3533 bool vectors.
3534 * lread.c (read1): Likewise.
3535 * alloc.c (Fmake_bool_vector): Likewise.
3536 * data.c (Faref, Faset): Likewise.
3537 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3538 (mapcar1): Likewise.
d3b111bd 3539
536d6baa
ST
35402004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3541
3542 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3543
ae11577a
MB
35442004-04-26 Miles Bader <miles@gnu.org>
3545
3546 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3547
e198ba87
JB
35482004-04-26 Juanma Barranquero <lektu@terra.es>
3549
3550 * buffer.c (Fpop_to_buffer): Fix docstring.
3551
f3d5f92d 35522004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3553
f3d5f92d
ST
3554 * lread.c (init_lread): Don't display missing lisp directory
3555 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3556 may be built without correct installation path.
f3d5f92d 3557
03e35edc
KS
35582004-04-25 Kim F. Storm <storm@cua.dk>
3559
9ff3aa31
KS
3560 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3561
3562 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3563
03e35edc
KS
3564 * xdisp.c (append_space_for_newline): Rename from append_space.
3565 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3566 (x_produce_glyphs): Handle line-spacing property on newline char.
3567 If value is t, adjust ascent and descent to fit current row height.
3568 If value is an integer or float, set extra_line_spacing to integer
3569 value, or to float value x current line height.
3570
f24814e0
KH
35712004-04-23 Kenichi Handa <handa@m17n.org>
3572
3573 * fontset.c (Finternal_char_font): If POSITION is nil, return
3574 font for displaying CH with the default face.
3575
d814862a
JB
35762004-04-23 Juanma Barranquero <lektu@terra.es>
3577
3578 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3579
063a45c5
SM
35802004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3583 Don't make assumptions about the relative place of i and val.
3584 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3585
ae7ab2d3
KS
35862004-04-21 Kim F. Storm <storm@cua.dk>
3587
3588 * dispextern.h (struct glyph_slice): New struct.
3589 (struct glyph): New member slice.
3590 (GLYPH_SLICE_EQUAL_P): New macro.
3591 (GLYPH_EQUAL_P): Use it.
3592 (struct glyph_string): New member slice.
3593 (struct it_slice): New struct.
3594 (struct it): New member slice, add member to stack too.
3595 New member constrain_row_ascent_descent_p.
3596 (image_ascent): Add prototype.
3597
3598 * dispnew.c (buffer_posn_from_coords): Return full image width
3599 and height even for image slices (posn is relative to full image).
3600 (marginal_area_string): Adjust x0,y0 for image slice.
3601
3602 * image.c (image_ascent): Add slice arg; calculate ascent for
3603 image slice (or full image).
3604
3605 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3606 (syms_of_keyboard): Defsubr them.
3607
3608 * lisp.h (pos_visible_p): Fix prototype.
3609
c62aec78 3610 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3611 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3612 (x_draw_image_foreground, x_draw_image_relief)
3613 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3614 Draw sliced images.
3615
3616 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3617 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3618 (x_draw_image_foreground, x_draw_image_relief)
3619 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3620 Draw sliced images.
3621
3622 * w32term.h (image_ascent): Remove prototype.
3623
3624 * window.c (Fpos_visible_in_window_p): Return pixel position if
3625 PARTIALLY arg is non-nil. Simplify. Doc fix.
3626 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3627 to return/set vscroll in pixels.
3628
3629 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3630
3631 * xdisp.c (Qslice): New variable.
3632 (syms_of_xdisp): Intern and staticpro it.
3633 (pos_visible_p): Return pixel position in new x and y args.
3634 (init_iterator): Reset it->slice info.
3635 (handle_display_prop): Parse (slice ...) property.
3636 (push_it, pop_it): Save/restore slice info.
3637 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3638 force repositioning of tall row if window is vscrolled, as that
3639 would reset vscroll.
3640 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3641 increasing row height if row is non-empty.
3642 (fill_image_glyph_string): Copy slice info.
3643 (take_vertical_position_into_account): Simplify.
3644 (produce_image_glyph): Handle iterator slice info, setup glyph
3645 slice info. Do not force minimum line height.
3646 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3647 do not increase height (ascent/descent) of non-empty row when
3648 adding normal character glyph; instead reduce glyph ascent/descent
3649 appropriately; if row is higher than current glyph, adjust glyph
3650 descent/ascent to reposition glyph within the existing row.
3651 Likewise, when char is newline, only set ascent/descent if row is
3652 currently empty.
3653 (note_mouse_highlight): Handle hotspots with sliced image.
3654
3655 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3656 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3657 (x_draw_image_foreground, x_draw_image_relief)
3658 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3659 Draw sliced images.
3660
3661 * xterm.h (image_ascent): Remove prototype.
3662
d58f8753
SM
36632004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3664
3665 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3666
4ce2719d
JPW
36672004-04-20 John Paul Wallington <jpw@gnu.org>
3668
3669 * fns.c (Fassoc, Feql): Fix indentation.
3670
d58f8753 3671 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3672
95f8c3b9
JPW
36732004-04-19 John Paul Wallington <jpw@gnu.org>
3674
3675 * fns.c (Feql): New function.
d58f8753 3676 (syms_of_fns): Defsubr it.
95f8c3b9 3677
b7e85537
JR
36782004-04-18 Jason Rumney <jasonr@gnu.org>
3679
3680 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3681 after closing the clipboard.
3682
5a72efd4
LT
36832004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3684
3685 * buffer.c (Fbuffer_base_buffer): Doc fix.
3686
20dc8583
KS
36872004-04-17 Kim F. Storm <storm@cua.dk>
3688
60962ec4
KS
3689 * keymap.c (Fkey_description): Add optional PREFIX arg.
3690 Combine prefix with KEYS to make up the full key sequence to describe.
3691 Correlate meta_prefix_char and following (simple) key to describe
3692 as meta modifier. All callers changed.
3693 (describe_map): Rename arg `keys' to `prefix'. Remove local
3694 `elt_prefix' var. Use Fkey_description with prefix instead of
3695 elt_prefix combined with Fsingle_key_description.
3696 (describe_vector): Declare static. Replace arg `elt_prefix' with
3697 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3698 if !KEYMAP_P. Use Fkey_description with prefix instead of
3699 Fsingle_key_description.
3700
3701 * keymap.h (Fkey_description): Fix prototype.
3702 (describe_vector): Remove prototype.
3703
409368b9
KS
3704 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3705
20dc8583
KS
3706 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3707 (png_load): Fix calculation of transparent background color on X
3708 and W32 platforms.
3709
75c5501b
JB
37102004-04-16 Juanma Barranquero <lektu@terra.es>
3711
3712 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3713 not too large before computing how much to scroll.
3714
da879ae8
SM
37152004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3716
3717 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3718
d01ca4a8
LT
37192004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3720
3721 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3722 Add hyperlink to Elisp manual to the docstring.
3723
572943b3
SM
37242004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3725
3726 * callint.c (fix_command): Use XDCR.
3727
5e30a0fb
NR
37282004-04-14 Nick Roberts <nick@nick.uklinux.net>
3729
3730 * window.c (Fget_lru_window): Doc fix.
3731
a27ddfaf
KS
37322004-04-14 Kim F. Storm <storm@cua.dk>
3733
3734 * editfns.c (Fformat): Fix allocation size of precision array.
3735
3736 * dispnew.c (update_window): Only set changed_p if
3737 scrolling_window actually did scroll.
3738 (scrolling_window): Only return 1 if we actually did scroll.
3739
3740 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3741 height to glyph height when cursor row is not fully visible.
3742 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3743 failure in case row is higher than window. Callers changed.
3744 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3745 Try to scroll partially visible, higher-than-window cursor row.
3746 (redisplay_window): Always try to scroll partially visible,
3747 higher-than-window cursor row - both initially and again with
3748 centering_position = 0.
3749 Clear desired matrix before retrying with centering_position = 0.
3750
da879ae8
SM
37512004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3752
3753 * syntax.c (scan_lists): Simplify backward string scan.
3754 Fix off-by-one boundary check for string and comment fences.
3755
5fc16e8e
SM
37562004-04-13 Joe Buehler <jbuehler@hekimian.com>
3757
3758 * sheap.c, unexcw.c: New files.
3759
c9aac8e6
LT
37602004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3761
3762 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3763 base buffer has been killed. Correct the error message if the
3764 base buffer does not exist.
3765
1e88a355
SM
37662004-04-12 Joe Buehler <jbuehler@hekimian.com>
3767
3768 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3769 Cygwin itself. Add support for Xaw3d scrollbars.
3770
3771 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3772
3773 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3774
3775 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3776 before Cygwin unexec.
3777
3778 * Makefile.in: Link changes for Cygwin unexec() support.
3779
8dbff9a0
AS
37802004-04-12 Andreas Schwab <schwab@suse.de>
3781
3782 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3783
54dffe35
LT
37842004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3785
3786 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3787 IGNORE argument equals NAME. Doc fix.
3788
99a72bdf
MY
37892004-04-11 Masatake YAMATO <jet@gyve.org>
3790
1e88a355 3791 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3792 empty if they are backwards.
3793
40899d7b
SM
37942004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3795
3796 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3797
f8f853de
SM
37982004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3799
3800 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3801
c953fe1b
KS
38022004-04-06 Kim F. Storm <storm@cua.dk>
3803
661e85c1
KS
3804 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3805 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3806
3807 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3808 clearing highlight.
3809
3810 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3811
3812 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3813 clearing highlight.
3814
c953fe1b
KS
3815 * indent.c (vmotion): Do not reserve one column for continuation
3816 marks on window frames.
3817
c1994268
EZ
38182004-04-04 Eli Zaretskii <eliz@gnu.org>
3819
3820 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3821 from GCC.
3822
9f691b0d
SM
38232004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3824
3825 * .gdbinit-union: Remove.
3826
3827 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3828 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3829 ($nonvalbits): Remove.
3830 ($valmask): Set it by calling xreload to avoid redundancy.
3831
3832 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3833 (gdb_emacs_intbits): Remove.
3834
7a8560d7
JD
38352004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3836
9f691b0d 3837 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3838
3c8111fc
KH
38392004-03-30 Kenichi Handa <handa@m17n.org>
3840
3841 * editfns.c (Fformat): Fix initialization of the array info.
3842
48a0bce4
KS
38432004-03-30 Kim F. Storm <storm@cua.dk>
3844
3845 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3846 (syms_of_xterm): DEFVAR_BOOL it.
3847 (ignore_next_mouse_click_timeout): New var.
3848 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3849 Use it to filter mouse clicks following focus event.
3850
1cd0066c
KS
38512004-03-29 David Ponce <david@dponce.com>
3852
3853 * callint.c (Fcall_interactively): Fix last change.
3854
adb3b353
SM
38552004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3856
3857 * eval.c (Fcommandp): Simplify.
3858
3859 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3860 Extend to handle all kinds of functions.
3861
3862 * lisp.h (Finteractive_form): Declare.
3863
3864 * callint.c (Fcall_interactively): Use it.
3865
6fc4c9c9
KS
38662004-03-26 Kim F. Storm <storm@cua.dk>
3867
3868 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3869 to catch errors in calc_pixel_width_or_height during redisplay.
3870
abdb9b83
MY
38712004-03-26 Masatake YAMATO <jet@gyve.org>
3872
b17856dd 3873 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3874
b17856dd 3875 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3876
b17856dd 3877 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3878
b17856dd 3879 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3880
e8a84b6c
JD
38812004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3882
b17856dd 3883 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3884
36a3fd05
RS
38852004-03-19 Richard M. Stallman <rms@gnu.org>
3886
3887 * s/sol2-6.h: Delete previous change.
3888
ab24c127
KS
38892004-03-19 Kim F. Storm <storm@cua.dk>
3890
3891 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3892 to_charpos corresponds to newline in right fringe. Use local
3893 BUFFER_POS_REACHED_P macro.
3894
992126de
JD
38952004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3896
3897 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3898 to compile on non-window system.
3899
45dbfc84
KS
39002004-03-19 Kim F. Storm <storm@cua.dk>
3901
3902 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3903
3904 * image.c (Qcenter): Move to xdisp.c.
3905
3906 * xdisp.c (Qcenter): Declare here.
adb3b353 3907 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
3908 (handle_single_display_prop): Allow space display property on all
3909 platforms.
3910 (display_mode_line): Set mode_line_p before displaying line.
3911 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3912 handling. Remove complex cases for fringes and scroll-bars.
3913 Add left, right, and center alignment positions. Add text (area)
3914 width/height. Return width or height for image specs.
3915 (produce_stretch_glyph): Improve handling of :align-to. Is now
3916 relative to left of text area by default, but other base offsets
3917 can be specified -- also for text lines.
3918
3919 * term.c (produce_glyphs): Handle IT_STRETCH.
3920 (produce_stretch_glyph): New function to handle space width and
3921 align-to display properties on non-window systems.
3922
37264101
SM
39232004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3924
3925 * fileio.c (Fread_file_name): Set completion-ignore-case for
3926 case-insensitive systems.
3927
73bc43da
MY
39282004-03-14 Masatake YAMATO <jet@gyve.org>
3929
3930 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3931 when keymap and cursor are setup.
3932
9062aa89
ST
39332004-03-14 Steven Tamm <steventamm@mac.com>
3934
b17856dd 3935 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3936
e4b1b5ab
KS
39372004-03-14 Kim F. Storm <storm@cua.dk>
3938
3939 * dispextern.h (x_find_image_file): Add prototype.
3940
3941 * image.c (x_find_image_file): Make extern.
3942
3943 * xfns.c (x_find_image_file): Remove prototype.
3944
a6eeaa81 39452004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3946
37264101 3947 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 3948
37264101 3949 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 3950
e69cfac2
RS
39512004-03-12 Richard M. Stallman <rms@gnu.org>
3952
3953 * fns.c (internal_equal): New arg PROPS controls comparing
3954 text properties. All callers changed.
3955 (Fequal_including_properties): New function.
3956 (syms_of_fns): defsubr it.
3957
45034953
KS
39582004-03-12 Kim F. Storm <storm@cua.dk>
3959
3960 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 3961
45034953
KS
3962 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3963 (image_background, image_background_transparent): Fix prototypes.
3964
37264101 3965 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
3966
3967 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3968 (x_query_font, x_find_ccl_program, x_set_window_size)
3969 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3970 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3971 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3972
3973 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3974 (x_query_font, x_find_ccl_program, x_set_window_size)
3975 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3976 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3977 (mac_draw_line_to_pixmap): Add prototypes.
3978
39792004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3980
3981 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3982
a12d3d87
KS
39832004-03-11 Kim F. Storm <storm@cua.dk>
3984
d3ab1cf1
KS
3985 * dispextern.h: Move image related prototypes from xfns.c section
3986 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3987 HAVE_X_WINDOWS.
37264101 3988
37de9f51 3989 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 3990 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
3991 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3992 (GTK_OBJ) [USE_GTK]: New declaration.
3993 (obj): Add $(GTK_OBJ) to list.
3994
5243c06a 39952004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 3996
5243c06a
ST
3997 * image.c [MAC_OSX]: Include sys/stat.h
3998
3999 * macfns.c (syms_of_macfns): Remove definitions of things now
4000 defined in image.c
4001
c0f97789
KS
40022004-03-11 Kim F. Storm <storm@cua.dk>
4003
4004 The following changes consolidates the identical/similar image
4005 support code previously found in xfns.c, w32fns.c, and macfns.c
4006 into a new file image.c.
4007
4008 * makefile.w32-in (OBJ1): Add image.o.
4009 ($(BLD)/image.$(O)): Add dependencies.
4010
4011 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4012 (image.o): Add dependencies.
37264101 4013
c0f97789
KS
4014 * image.c: New file with consolidated image support code.
4015 (COLOR_TABLE_SUPPORT): New define to control whether
4016 color table support is available (X only).
4017 (Bitmap_Record): Common name for x_bitmap_record,
4018 w32_bitmap_record, and mac_bitmap_record.
4019 (XImagePtr): Common name for pointer to XImage or equivalent.
4020 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4021 to XImagePtr on X+MAC, and to HDC on W32.
4022 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4023 (NO_PIXMAP): Common name for "None" or equivalent.
4024 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4025 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4026 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4027 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4028 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4029 (XDrawLine): Define on MAC for code sharing.
4030 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4031 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4032 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4033 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4034 (x_reference_bitmap, x_create_bitmap_from_data)
4035 (x_create_bitmap_from_file, x_destroy_bitmap)
4036 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4037 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4038 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4039 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4040 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4041 (define_image_type, lookup_image_type, valid_image_p)
4042 (image_error, enum image_value_type, struct image_keyword)
4043 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4044 (make_image, free_image, prepare_image_for_display, image_ascent)
4045 (four_corners_best, image_background, image_background_transparent)
4046 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4047 (make_image_cache, free_image_cache, clear_image_cache)
4048 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4049 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4050 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4051 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4052 (init_image_func_pointer, image_load_quartz2d)
4053 (struct ct_color, init_color_table, free_color_table)
4054 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4055 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4056 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4057 (x_disable_image, x_build_heuristic_mask)
4058 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4059 (TIFF support, GIF support, Ghostscript support): Consolidate image
4060 code from xfns.c, w32fns.c, and macfns.c.
4061 (syms_of_image): Consolidate image related symbol setup here.
4062 (init_image): Consolidate image related initializations here.
37264101 4063
c0f97789
KS
4064 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4065 and init_image. Remove call to init_xfns.
4066
37264101
SM
4067 * macterm.h (struct mac_bitmap_record): Add file member.
4068 Not currently used, but simplifies code sharing.
c0f97789
KS
4069
4070 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4071 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4072 (x_reference_bitmap, x_create_bitmap_from_data)
4073 (x_create_bitmap_from_file, x_destroy_bitmap)
4074 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4075 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4076 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4077 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4078 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4079 (define_image_type, lookup_image_type, valid_image_p)
4080 (image_error, enum image_value_type, struct image_keyword)
4081 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4082 (make_image, free_image, prepare_image_for_display, image_ascent)
4083 (four_corners_best, image_background, image_background_transparent)
4084 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4085 (make_image_cache, free_image_cache, clear_image_cache)
4086 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4087 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4088 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4089 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4090 (init_image_func_pointer, image_load_quartz2d)
4091 (struct ct_color, init_color_table, free_color_table)
4092 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4093 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4094 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4095 (x_disable_image, x_build_heuristic_mask)
4096 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4097 (TIFF support, GIF support, Ghostscript support): Merge with image
4098 code from xfns.c and macfns.c into image.c.
4099 (syms_of_xfns): Move image related symbols to image.c.
4100 (init_external_image_libraries, init_xfns): Remove; initialization
4101 moved to init_image in image.c.
4102
4103 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4104 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4105 (x_reference_bitmap, x_create_bitmap_from_data)
4106 (x_create_bitmap_from_file, x_destroy_bitmap)
4107 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4108 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4109 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4110 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4111 (define_image_type, lookup_image_type, valid_image_p)
4112 (image_error, enum image_value_type, struct image_keyword)
4113 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4114 (make_image, free_image, prepare_image_for_display, image_ascent)
4115 (four_corners_best, image_background, image_background_transparent)
4116 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4117 (make_image_cache, free_image_cache, clear_image_cache)
4118 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4119 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4120 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4121 (struct ct_color, init_color_table, free_color_table)
4122 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4123 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4124 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4125 (x_disable_image, x_build_heuristic_mask)
4126 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4127 (TIFF support, GIF support, Ghostscript support): Merge with image
4128 code from xfns.c and macfns.c into image.c.
4129 (syms_of_xfns): Move image related symbols to image.c.
4130 (init_external_image_libraries, init_xfns): Remove; initialization
4131 moved to init_image in image.c.
4132
4133 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4134 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4135 (x_reference_bitmap, x_create_bitmap_from_data)
4136 (x_create_bitmap_from_file, x_destroy_bitmap)
4137 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4138 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4139 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4140 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4141 (define_image_type, lookup_image_type, valid_image_p)
4142 (image_error, enum image_value_type, struct image_keyword)
4143 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4144 (make_image, free_image, prepare_image_for_display, image_ascent)
4145 (four_corners_best, image_background, image_background_transparent)
4146 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4147 (make_image_cache, free_image_cache, clear_image_cache)
4148 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4149 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4150 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4151 (struct ct_color, init_color_table, free_color_table)
4152 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4153 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4154 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4155 (x_disable_image, x_build_heuristic_mask)
4156 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4157 (TIFF support, GIF support, Ghostscript support): Merge with
4158 w32fns.c and macfns.c image code into image.c.
4159 (syms_of_xfns): Move image related symbols to image.c.
4160 (init_xfns): Remove; initialization moved to init_image in image.c.
4161
4162 * lisp.h (syms_of_image, init_image): Add protoypes.
4163 (init_xfns): Remove prototype.
4164
4165 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4166 (x_reference_bitmap, x_create_bitmap_from_data)
4167 (x_create_bitmap_from_file, x_destroy_bitmap)
4168 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4169 (gamma_correct) [MAC_OS]: Add prototype.
4170
4171 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4172 (x_reference_bitmap, x_create_bitmap_from_data)
4173 (x_create_bitmap_from_file, x_destroy_bitmap)
4174 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4175
6eced09c
KH
41762004-03-09 Kenichi Handa <handa@etlken2>
4177
4178 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4179 correctly.
4180
9a7e95f3
RS
41812004-03-04 Richard M. Stallman <rms@gnu.org>
4182
04a6e76b
RS
4183 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4184
9a7e95f3
RS
4185 * window.c (Fdisplay_buffer): Doc fix.
4186
4187 * buffer.c (Fpop_to_buffer): Doc fix.
4188
6c2488df
KS
41892004-03-03 Kim F. Storm <storm@cua.dk>
4190
4191 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4192
d8d95bc7
SM
41932004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4194
4195 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4196
357589bf
RS
41972004-03-02 Richard M. Stallman <rms@gnu.org>
4198
4199 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4200
409949b5
KH
42012004-03-02 Kenichi Handa <handa@m17n.org>
4202
4203 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4204
d24bc50f
KS
42052004-03-02 Kim F. Storm <storm@cua.dk>
4206
4207 * window.h (struct window): New member overlay_arrow_bitmap.
4208
4209 * window.c (make_window): Initialize overlay_arrow_bitmap.
4210
4211 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4212 implement and integrate multiple overlay arrows with redisplay.
4213 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4214 (last_arrow_position, last_arrow_string): Replace by properties.
4215 (Qlast_arrow_position, Qlast_arrow_string)
4216 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4217 (syms_of_xdisp): Intern and staticpro them.
4218 (overlay_arrow_string_or_property, update_overlay_arrows)
4219 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4220 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4221 (redisplay_internal): Use them instead of directly accessing
4222 Voverlay_arrow_position etc. for multiple overlay arrows.
4223 (mark_window_display_accurate): Use update_overlay_arrows.
4224 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4225 (try_window_id): Use overlay_arrows_changed_p.
4226 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4227 (display_line): Use overlay_arrow_at_row to check multiple
4228 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4229 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4230 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4231 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4232
4233 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4234 (update_window_fringes): Remove unused code.
4235
c1464661
JR
42362004-03-01 Jason Rumney <jasonr@gnu.org>
4237
4238 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4239
a64387ee
JB
42402004-03-01 Juanma Barranquero <lektu@terra.es>
4241
4242 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4243
4244 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4245
334faa08
JD
42462004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4247
4248 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4249 how many colors can be displayed.
4250
bb62616f
KH
42512004-03-01 Kenichi Handa <handa@m17n.org>
4252
4253 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4254 correctly.
4255
0fd16104
KS
42562004-02-28 Kim F. Storm <storm@cua.dk>
4257
4258 * dispnew.c (update_window): Update header line also if there are
4259 no other changes in window (move code after set_cursor label).
4260
4261 * lisp.h (mark_window_display_accurate): Remove prototype.
4262
4263 * window.c (window_loop, Fforce_window_update): Force mode line
4264 updates by setting prevent_redisplay_optimizations_p and
4265 update_mode_lines.
4266
b59dd9c8
JD
42672004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4268
d8d95bc7 4269 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4270
4271 * xterm.c (x_calc_absolute_position): Call x_real_positions
4272 to get WM window sizes and use those to calculate position.
d8d95bc7 4273 (x_set_offset): Remove code commented out.
b59dd9c8 4274
a874691c
MB
42752004-02-28 Miles Bader <miles@gnu.org>
4276
4277 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4278
3e0c6482
KS
42792004-02-28 Kim F. Storm <storm@cua.dk>
4280
4281 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4282 an event into kbd fifo, but with special handling of quit event;
4283 a quit event is saved for later, and further events are discarded
4284 until the saved quit event has been processed.
4285 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4286 (gen_help_event): Store help event in kbd fifo.
4287 (NREAD_INPUT_EVENTS): Remove.
4288 (read_avail_input): Adapt to new read_socket_hook interface.
4289 Remove allocation and initialization of local input_event buffer,
4290 as read_socket_hook stores events directly in fifo. Allocate and
4291 initialize local hold_quit event to handle postponed quit event
4292 (and store it if set by kbd_buffer_store_event_hold).
4293
4294 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4295 (gen_help_event): Fix prototype.
4296
a64387ee 4297 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4298 numcharsp args. Add hold_quit arg.
f63fd14e 4299 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4300 directly in fifo using kbd_buffer_store_event_hold.
4301
4302 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4303 (read_input_waiting): Adapt to new read_socket_hook interface.
4304 Remove allocation and initialization of local input_event buffer,
4305 as read_socket_hook stores events directly in fifo. Allocate and
4306 initialize local hold_quit event to handle postponed quit event
4307 (and store it if set by kbd_buffer_store_event_hold).
4308
a64387ee 4309 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4310
4311 * termhooks.h (read_socket_hook): Fix prototype.
4312
4313 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
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 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4319
4320 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4321 Add hold_quit arg. Rework to use just one, local, inev
4322 input_event. Store inev directly in fifo using
3e0c6482
KS
4323 kbd_buffer_store_event_hold. Update count in one place.
4324 Postpone call to gen_help_event until inev is stored; use new
4325 local do_help for this.
4326 Remove local emacs_event in handing of ButtonPress event; just use
4327 inev instead (so no reason to copy it later).
4328
4329 * xsmfns.c (x_session_check_input): Remove numchars arg.
4330
d8d95bc7
SM
4331 * xterm.c (x_focus_changed, x_detect_focus_change):
4332 Remove numchars arg. Always store event into bufp arg.
4333 Return nothing. Callers changed accordingly.
3e0c6482
KS
4334 (glyph_rect): Simplify.
4335 (STORE_KEYSYM_FOR_DEBUG): New macro.
4336 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4337 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4338 (current_hold_quit) [USE_GTK]: Add.
4339 (event_handler_gdk): Adapt to new handle_one_xevent.
4340 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4341 Add hold_quit arg. Rework to use just one, local, inev
4342 input_event. Store inev directly in fifo using
3e0c6482
KS
4343 kbd_buffer_store_event_hold. Update count in one place.
4344 Postpone call to gen_help_event until inev is stored; use new
4345 local do_help for this.
4346 Simplify handling of keysyms (consolidate common code). Fix bug
4347 where count was updated with nchars instead of nbytes.
4348 Remove local emacs_event in handing of ButtonPress event; just use
4349 inev instead (so no reason to copy it later).
4350 Remove `out' label. Rename label `ret' to `done'; add various
4351 `goto done' to clarify code flow in deeply nested blocks.
4352 (x_dispatch_event): Simplify as handle_one_xevent now calls
4353 kbd_buffer_store_event itself.
f63fd14e 4354 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4355 arg. Call handle_one_xevent with new arglist. Store event from
4356 x_session_check_input in fifo.
4357 [USE_GTK]: Setup current_hold_quit.
4358 Decrement handling_signal before unblocking input.
4359 (x_initialize) [USE_GTK]: Initialize current_count.
4360
4361 * xterm.h (x_session_check_input): Fix prototype.
4362
e3564461 43632004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4364
d8d95bc7 4365 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4366
e3564461
ST
4367 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4368 macgui.h).
a64387ee 4369
e3564461 4370 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4371
e3564461
ST
4372 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4373 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4374 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4375 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4376 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4377 (Bitmap): Remove typedef.
4378 (Pixmap): Change int to GWorldPtr.
4379
d8d95bc7 4380 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4381
d8d95bc7
SM
4382 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4383 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4384 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4385 long representation.
4386 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4387 colors used for masks.
4388 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4389
e3564461
ST
4390 * macfns.c: Include sys/types.h and sys/stat.h.
4391 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4392 Include QuickTime/QuickTime.h.
4393 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4394 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4395 functions defined in macterm.c.
4396 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4397 (ZPixmap): New #define for compatibility with xfns.c.
4398 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4399 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4400 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4401 New functions.
e3564461 4402 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4403 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4404 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4405 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4406 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4407 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4408 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4409 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4410 long mixup.
4411 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4412 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4413 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4414 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4415 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4416 (x_alloc_image_color, clear_image_cache, lookup_image)
4417 (x_find_image_file, xbm_read_bitmap_file_data)
4418 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4419 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4420 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4421 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4422 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4423 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4424 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4425 #if 0.
4426 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4427 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4428 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4429 New functions (from xfns.c).
e3564461
ST
4430 (Fx_create_frame): Record unwind_create_frame.
4431 (Fxw_display_color_p): Use dpyinfo->color_p.
4432 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4433 dpyinfo->n_cbits.
4434 (Fx_display_color_cells): Use dpyinfo->n_planes;
4435 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4436 (Qheuristic, cross_disabled_images, emboss_matrix)
4437 (laplace_matrix): New variables (from xfns.c).
4438 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4439 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4440 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4441 (image_background_transparent): New function (from xfns.c).
4442 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4443 (image_load_quicktime): Add declaration.
4444 [MAC_OSX] (image_load_quartz2d): Likewise.
4445 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4446 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4447 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4448 (xbm_load_image_from_file, x_laplace_read_row)
4449 (x_laplace_write_row, pbm_read_file): Remove functions.
4450 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4451 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4452 (colors_in_color_table): Sync with xfns.c (although not used).
4453 (lookup_rgb_color): Don't lookup color table. Just do gamma
4454 correction.
4455 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4456 (x_disable_image): New function (from xfns.c).
4457 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4458 (x_build_heuristic_mask): Sync with xfns.c.
4459 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4460 (HAVE_PBM): Remove #ifdef.
4461 (pbm_load): Sync with xfns.c. Set img->width and img->height
4462 before IMAGE_BACKGROUND.
d8d95bc7 4463 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4464 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4465 Don't enclose with #if HAVE_PNG.
4466 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4467 symbol _CGImageCreateWithPNGDataProvider is defined.
4468 Otherwise use image_load_quicktime.
e3564461 4469 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4470 [HAVE_PNG] (png_load): Sync with xfns.c.
4471 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4472 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4473 HAVE_JPEG.
4474 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4475 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4476 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4477 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4478 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4479 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4480 HAVE_TIFF.
4481 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4482 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4483 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4484 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4485 New functions (from xfns.c).
e3564461 4486 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4487 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4488 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4489 Don't enclose with #if HAVE_GIF.
4490 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4491 animated gif. Otherwise use image_load_quicktime.
4492 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4493 gif_DrawText to avoid conflict with QuickdrawText.h.
4494 [HAVE_GIF] (gif_load): Sync with xfns.c.
4495 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4496 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4497 Ghostscript is not supported yet).
4498 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4499 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4500 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4501 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4502 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4503 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4504 HAVE_PNG. Call EnterMovies to support animated gifs.
4505 Call init_image_func_pointer to bind a symbol
e3564461 4506 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4507
d8d95bc7 4508 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4509 (x_draw_bar_cursor): Sync declaration with xterm.c.
4510 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4511 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4512 graphics).
4513 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4514 (mac_draw_line_to_pixmap, XCreatePixmap)
4515 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4516 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4517 New functions.
4518 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4519 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4520 Cast bits to char *.
e3564461
ST
4521 (reflect_byte): New function (from w32fns.c).
4522 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4523 due to byte alignment.
d8d95bc7
SM
4524 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4525 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4526 (XSetForeground): Remove static (now used in macfns.c).
4527 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4528 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4529 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4530 (x_draw_glyph_string_box, x_draw_image_foreground)
4531 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4532 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4533 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4534 Sync with xterm.c.
4535 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4536 than the xterm.c version when a strictly horizontal or vertical
4537 line is drawn.
4538 (XTset_terminal_window): Add static.
4539 (x_make_frame_visible): Add UNBLOCK_INPUT.
4540 (x_free_frame_resources): New funcion (from xterm.c).
4541 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4542 occurs in tool bar area.
d8d95bc7
SM
4543 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4544 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4545 Initialize image cache.
4546 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4547 Enclose unused functions with #if 0.
4548 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4549 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4550 from a mac font name to an XLFD font name according to its script code.
e3564461 4551 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4552 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4553 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4554 whose name starts with `.'.
4555 (init_font_name_table): Use decode_mac_font_name. Add both
4556 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4557 of a font is smJapanese.
4558 (mac_do_list_fonts): New function to list fonts that match a given
4559 pattern.
4560 (x_list_fonts, XLoadQueryFont): Use it.
4561 (XLoadQueryFont): Set rbearing field for each variable width
4562 character to avoid needless redraw.
4563 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4564
446f5f3d
KS
45652004-02-26 Kim F. Storm <storm@cua.dk>
4566
af617d0f
KS
4567 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4568 as read_socket_hook handler on X aborts if buffer is too small
4569 and W32 handler doesn't always check buffer limit.
4570
446f5f3d
KS
4571 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4572 right-fringe similar to a display margin image. Specifically,
4573 the characters having the fringe prop are no longer shown, and
4574 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4575 do this. Set fringe bitmap face_id in it->face_id.
4576 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4577 still realize it->face (i.e. the fringe bitmap face).
4578
7d8a0b55
MB
45792004-02-25 Miles Bader <miles@gnu.org>
4580
4581 * xdisp.c (check_it): Check string/string_pos consistency.
4582 (init_iterator): Initialize string-related fields properly.
4583
45842004-02-11 Miles Bader <miles@gnu.org>
4585
4586 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4587
45882004-02-10 Miles Bader <miles@gnu.org>
4589
4590 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4591 BLOCK_INPUT can be nested, so it doesn't make much sense.
4592
a64387ee 45932004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4594
4595 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4596 (xbm_read_bitmap_data): Use unsigned char for image data.
4597
92f5fba2
LT
45982004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4599
4600 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4601
8565fb3d
JR
46022004-02-22 Jason Rumney <jasonr@gnu.org>
4603
4604 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4605 correctly over other bitmaps.
4606
a6eeaa81 46072004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4608
4609 * emacs.c (USAGE1): Split into two halves.
4610 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4611 (USAGE3): Rename from USAGE2.
4612 (USAGE4): Rename from USAGE3.
f8125c39 4613
4effffca
EZ
46142004-02-21 Juri Linkov <juri@jurta.org>
4615
4616 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4617 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4618 --file. Fix -f, -l. Sort options. Untabify.
4619 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4620
923c1e6f
LT
46212004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4622
4623 * category.c (Fdefine_category, Fcategory_docstring)
4624 (Fget_unused_category, Fset_category_table)
4625 (Fcategory_set_mnemonics): Doc fixes.
4626
b0e225fd
KS
46272004-02-20 Kim F. Storm <storm@cua.dk>
4628
4629 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4630 The following changes are relative to the 2004-01-21 revision.
4631 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4632 in one call to read_socket_hook. Value is 8.
4633 (read_avail_input): Separate and rework handling of read_socket_hook
4634 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4635 in read_socket_hook case, and repeat if full buffer is read.
4636 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4637 In non-read_socket_hook case, just use a single input_event, and
4638 call kbd_buffer_store_event on the fly for each character.
4639
b15aa9f9
SM
46402004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4641
4642 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4643 Remove unused `gu' alternative.
4644
83c9aa95
AS
46452004-02-19 Andreas Schwab <schwab@suse.de>
4646
4647 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4648 warning.
4649
cc808173
KS
46502004-02-18 Kim F. Storm <storm@cua.dk>
4651
4652 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4653 Fix last change.
4654
ab90a54d
KS
46552004-02-17 Kim F. Storm <storm@cua.dk>
4656
b26f249f
KS
4657 * xdisp.c (fast_find_position): Fix return value of new version;
4658 it was inverted compared to the 21.1 version.
4659 (get_window_cursor_type): Don't look at glyph if NULL.
4660 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4661
ab90a54d
KS
4662 * keyboard.c: Rework previous change; it didn't consider that the
4663 buf array was allocated on the stack.
4664 (prev_read): Remove variable.
4665 (read_avail_input_buf): New static event buffer array.
b9568dfc 4666 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4667 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4668 Use in_read_avail_input to handle re-entrance; when re-entered,
4669 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4670 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4671 is always cleared on entry. To ensure that, we clear (just) the
4672 entries that were used before we return.
4673 (init_keyboard): Initialize read_avail_input_buf here.
4674
b6189c3b 46752004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4676
4677 * cmds.c (Fend_of_line): Doc fix.
4678
7b5368c1
EZ
46792004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4680
4681 * keyboard.c (prev_read): New static variable.
4682 (read_avail_input): Use it to zero out only those slots in buf[]
4683 that were used last time we were called.
4684
a6eeaa81 46852004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4686
4687 * Makefile.in (obj): Move fringe.o from here...
4688 (XOBJ, MAC_OBJ): ...to here.
4689
159c348e
SE
46902004-02-16 Stephen Eglen <stephen@gnu.org>
4691
4692 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4693
d2f14999
SM
46942004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4695
b15aa9f9
SM
4696 * data.c (Fbyteorder):
4697 * fringe.c (Fdefine_fringe_bitmap):
4698 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4699 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4700
8d50508a
JR
47012004-02-16 Jason Rumney <jasonr@gnu.org>
4702
4703 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4704
dd4497dc
ST
47052004-02-15 Steven Tamm <steventamm@mac.com>
4706
4707 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4708 controlling emulation of a three button mouse with option and
4709 command keys.
4710 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4711 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4712
c9159cb3
KS
47132004-02-15 Kim F. Storm <storm@cua.dk>
4714
2cc52658
KS
4715 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4716
c9159cb3
KS
4717 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4718 Perform byte-swapping.
4719
12fde2dc
KS
47202004-02-14 Kim F. Storm <storm@cua.dk>
4721
4722 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4723 bits from char to short to facilitate wider bitmaps.
4724 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4725 member.
4726
4727 * fringe.c (struct fringe_bitmap): Change member bits from char to
4728 short to facilitate 16 bits wide bitmaps. Modify all standard
4729 bitmaps accordingly.
4730 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4731 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4732 (draw_fringe_bitmap): Ditto.
4733 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4734 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4735 handle up to 16 bits wide bitmaps.
4736 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4737 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4738
4739 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4740 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4741 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4742
4743 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4744 so it is no longer necessary to expand them here.
4745
4746 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4747
9d7271e8
KS
47482004-02-12 Kim F. Storm <storm@cua.dk>
4749
4750 * window.c (Fwindow_fringes): Doc fix.
4751
706c1e4f
JD
47522004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4753
4754 * xselect.c (x_get_foreign_selection): Add new optional parameter
4755 time_stamp.
4756 (Fx_get_selection_internal): Ditto, pass time_stamp to
4757 x_get_foreign_selection.
4758
4759 * data.c (Fbyteorder): New function.
4760
c2d12b5d
JD
47612004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4762
4763 * atimer.c: Move include stdio.h to same place as in other files.
4764
4765 * region-cache.c: Ditto.
4766
4767 * sysdep.c: Ditto.
4768
4769 * xfaces.c: Ditto.
4770
4c1947b9
SS
47712004-02-09 Sam Steingold <sds@gnu.org>
4772
89458937 4773 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4774
82722af3
KS
47752004-02-09 Kim F. Storm <storm@cua.dk>
4776
4777 * fringe.c: New file. Move original fringe related declarations
4778 and code from dispextern.h and xdisp.c here.
4779 Rework code to support user defined fringe bitmaps, redefining
4780 standard bitmaps, ability to overlay user defined bitmap with
4781 overlay arrow bitmap, and add faces to bitmaps.
4782 (Voverflow_newline_into_fringe): Declare here.
4783 (enum fringe_bitmap_align): New enum.
4784 (..._bits): All bitmaps are now defined without bitswapping; that
4785 is now done in init_fringe_once (if necessary).
4786 (standard_bitmaps): New array with specifications for the
4787 standard fringe bitmaps.
4788 (fringe_faces): New array.
4789 (valid_fringe_bitmap_id_p): New function.
4790 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4791 (draw_fringe_bitmap): New function which draws fringe bitmap,
4792 possibly overlaying bitmap with cursor in right fringe or the
4793 overlay arrow in the left fringe.
4794 (update_window_fringes): Do not handle overlay arrow here.
4795 Compare and copy fringe bitmap faces.
4796 (init_fringe_bitmap): New function.
4797 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4798 define and destroy user defined fringe bitmaps.
4799 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4800 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4801 (syms_of_fringe): New function. Defsubr new DEFUNs.
4802 DEFVAR_LISP Voverflow_newline_into_fringe.
4803 (init_fringe_once, init_fringe): New functions.
4804 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4805
82722af3
KS
4806 * Makefile.in (obj): Add fringe.o.
4807 (fringe.o): New dependencies.
4808
4809 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4810 bits allocated to hold a fringe number. Increase number of bits
4811 from 4 to 8 to allow user defined fringe bitmaps.
4812 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4813 left_user_fringe_face_id, right_user_fringe_bitmap,
4814 right_user_fringe_face_id.
4815 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4816 Move to new file fringe.c.
4817 (MAX_FRINGE_BITMAPS): Define here.
4818 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4819 and overlay_p. Change member which to int.
4820 (struct redisplay_interface): New members define_fringe_bitmap
4821 and destroy_fringe_bitmap.
4822 (valid_fringe_bitmap_id_p): Add prototype.
4823 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4824
4825 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4826 arrows.
4827 (update_frame): Do flush_display if force_flush_display_p to
4828 ensure display (specifically fringes) are updated in a timely
4829 manner when resizing the frame by dragging the mouse.
4830 (update_window_line): Update row if overlay arrow changed.
4831 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4832 or overlay arrow changed.
4833
4834 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4835 syms_of_fringe, and init_fringe.
4836
4837 * frame.h (struct frame): New member force_flush_display_p.
4838
4839 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4840 Add prototypes.
4841
a3993cc8 4842 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4843 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4844 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4845 Use cursor color for displaying cursor in fringe.
82722af3
KS
4846 (x_redisplay_interface): Add null handlers for
4847 define_fringe_bitmap and destroy_fringe_bitmap functions.
4848
4849 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4850 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4851 for displaying cursor in fringe.
4852 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4853 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4854 (w32_redisplay_interface): Add them to redisplay_interface.
4855 (w32_term_init): Call w32_init_fringe instead of explicitly
4856 defining fringe bitmaps in fringe_bmp array.
4857 (x_delete_display): Call w32_reset_fringes instead of explicitly
4858 destroying fringe bitmaps in fringe_bmp array.
4859
4860 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4861 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4862 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4863 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4864 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4865 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4866 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4867 Move fringe handling vars and code to new file fringe.c.
4868 (handle_display_prop): Handle left-fringe and right-fringe
4869 display properties; store user fringe bitmaps in iterator.
4870 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4871 (clear_garbaged_frames): Set force_flush_display_p if resized.
4872 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4873 (display_line): Handle cursor in fringe at eob.
4874 (display_line): Set row user fringe bitmaps from iterator.
4875
4876 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4877 Use cursor color for displaying cursor in fringe.
4878 (x_redisplay_interface): Add null handlers for
4879 define_fringe_bitmap and destroy_fringe_bitmap functions.
4880
030400eb
JD
48812004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4882
4883 * macfns.c (Fx_change_window_property): Make doc string and
4884 parameters same as for X version.
4885
4886 * w32fns.c (Fx_change_window_property): Ditto.
4887
3af55251
KS
48882004-02-07 Kim F. Storm <storm@cua.dk>
4889
ec110e9e
KS
4890 * xdisp.c (hscroll_window_tree): Position cursor near to right
4891 margin in hscrolled window when jumping to end of line (rather
4892 than centering cursor).
4893
3af55251
KS
4894 * process.c (wait_reading_process_input): Don't do adaptive read
4895 buffering if waiting for a specific process.
4896
b0c138ce
LT
48972004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4898
4899 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4900 (Fread_minibuffer, Feval_minibuffer)
4901 (Fread_string, Fread_no_blanks_input)
4902 (Fcompleting_read): Doc fixes.
4903 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4904 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4905 (read_minibuf): Fix initial comment.
4906 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 4907 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
4908 checking completion-regexp-list.
4909 (Fdisplay_completion_list): Make it handle arguments that are
4910 symbols. Doc fix.
4911
9676f5ad 49122004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 4913
9676f5ad 4914 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 4915
9676f5ad
JD
4916 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4917 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 4918 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 4919 format. Remove unused variable cons.
5b698285
JD
4920
4921 * xselect.c: Include stdio,h.
4922
fc1d15f6
KH
49232004-02-05 Kenichi Handa <handa@m17n.org>
4924
ebaff4af
KH
4925 * fns.c (Fset_char_table_range): Fix previous change.
4926
fc1d15f6
KH
4927 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4928
9676f5ad
JD
49292004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4930
4931 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4932
da75761f
SM
49332004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4934
4935 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4936 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4937
13c5d120
KH
49382004-02-04 Kenichi Handa <handa@m17n.org>
4939
4940 * fns.c (Fset_char_table_range): Handle charsets ascii,
4941 eight-bit-control, and eight-bit-graphic correctly.
4942
2883d842
JR
49432004-02-03 Jason Rumney <jasonr@gnu.org>
4944
4945 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4946
4947 * w32fns.c (x_to_w32_font): Likewise.
4948
69eff41f
JD
49492004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4950
4951 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4952 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4953
4954 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4955 ClientMessages.
4956
4957 * xselect.c: Include termhooks.h and X11/Xproto.h
4958 (x_check_property_data, x_fill_property_data)
4959 (x_property_data_to_lisp, mouse_position_for_drop)
4960 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 4961 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
4962 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4963
da75761f 4964 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
4965 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4966 OUTER_P.
4967 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4968 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4969 if vector_ret_p is true.
4970 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 4971
a6eeaa81 49722004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
4973
4974 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4975 basename of FILE relative to it, not FILE itself.
4976
09721b31
KH
49772004-02-02 Kenichi Handa <handa@m17n.org>
4978
4979 * coding.c (coding_restore_composition): Check invalid
4980 composition data more rigidly.
4981
eb996101
LT
49822004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4983
4984 * fileio.c (Fread_file_name_internal): Correctly handle the case
4985 where insert-default-directory is nil.
4986 (Fread_file_name): Always return an empty string if the user exits
4987 with an empty minibuffer. Adapt the docstring accordingly.
4988 (syms_of_fileio): Adapt the docstring of insert-default-directory
4989 to the change in Fread_file_name.
4990
a6eeaa81 49912004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
4992
4993 * alloca.c [!alloca]: Fix the prototype for xfree.
4994
13f52ed8
KH
49952004-01-29 Kenichi Handa <handa@m17n.org>
4996
4997 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4998 (string_byte_to_char): Likewise.
4999
d57625a0
JR
50002004-01-28 Peter Runestig <peter@runestig.com>
5001
5002 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5003
a64387ee 50042004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5005
5006 * unexmacosx.c (unexec_copy): Do not copy more than was
5007 requested to prevent overwriting during unexec.
5008
eb37b8fd
JD
50092004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5010
ce38070a
JD
5011 * process.c (sigchld_handler): Add comment about not calling malloc.
5012
eb37b8fd
JD
5013 * process.h: Add extern to synch_process_termsig.
5014
a64387ee 50152004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5016
da75761f
SM
5017 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5018 Move setting of scroll bars from make_mac_frame to
5019 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5020
d62a265d
RS
50212004-01-26 Richard M. Stallman <rms@gnu.org>
5022
5023 * search.c (Freplace_match): Handle nonexistent
5024 back-references properly.
5025
50262004-01-03 Richard M. Stallman <rms@gnu.org>
5027
5028 * window.c (decode_any_window): New function.
5029 (Fwindow_height, Fwindow_width, Fwindow_edges)
5030 (Fwindow_pixel_edges, Fwindow_inside_edges)
5031 (Fwindow_inside_pixel_edges): Use decode_any_window.
5032
ff236419
JD
50332004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5034
5035 * process.h: synch_process_termsig new variable.
5036
5037 * callproc.c: Define synch_process_termsig.
5038 (Fcall_process): Initiate synch_process_termsig to zero and
5039 check if non-zero and get signal name after subprocess has ended.
5040
5041 * process.c (sigchld_handler): Set synch_process_termsig
5042 if terminated by a signal. synch_process_death setting removed.
5043
5044 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5045
41b867ea
AS
50462004-01-26 Andreas Schwab <schwab@suse.de>
5047
5048 * print.c (print_preprocess): Declare size as EMACS_INT to not
5049 lose bits.
5050 (print_object): Likewise.
5051 * alloc.c (Fpurecopy): Likewise.
5052
a08084ff
LT
50532004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5054
5055 * window.c (Fwindow_minibuffer_p): Doc fix.
5056
b19ac475
JY
50572004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5058
5059 * editfns.c (Fformat): Make both passes accept the same set of flags.
5060
fe905025
KH
50612004-01-23 Kenichi Handa <handa@m17n.org>
5062
5063 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5064 one, set buffer to OBJECT temporarily.
5065
438fc6c0
SM
50662004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5067
455316e2
SM
5068 * keyboard.c (kbd_buffer_gcpro): Remove.
5069 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5070 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5071 Don't initialize and/or maintain the variable any more. It was made
5072 redundant by my commit of 2003-06-15.
5073
438fc6c0
SM
5074 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5075
5335a4ee
JD
50762004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5077
5078 * lisp.h: Add undef DECL_ALIGN.
5079
dcdaeebc
SM
50802004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5083 Check interrupt_input_pending explicitly.
5084
5085 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5086
5087 * keyboard.c (handle_async_input): New fun,
5088 extracted from input_available_signal.
5089 (input_available_signal, reinvoke_input_signal): Use it.
5090
9076a823
SM
50912004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5092
d7107586
SM
5093 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5094
5095 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5096 manipulation macros for when tags are in the lower bits.
5097 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5098 (DECL_ALIGN): New macro.
5099 (DEFUN): Use it.
5100
5101 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5102
5103 * s/darwin.h (__attribute__): Remove outdated workaround.
5104
5105 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5106
5107 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5108 Don't check range of malloc address.
5109 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5110
9076a823
SM
5111 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5112
5113 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5114
ba029065
KH
51152004-01-19 Kenichi Handa <handa@m17n.org>
5116
5117 * fontset.c (fontset_font_pattern): Fix previous change.
5118
7af0e8d7
MB
51192004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5120
5121 * xdisp.c (Voverflow_newline_into_fringe)
5122 (move_it_in_display_line_to, redisplay_internal)
5123 (update_window_fringes, redisplay_window, display_line, window):
5124 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5125 that it compiles without a window-system.
5126 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5127
77a9cf69
KS
51282004-01-16 Kim F. Storm <storm@cua.dk>
5129
5130 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5131
a64387ee 5132 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5133 buffer_local_flags for indicate_buffer_boundaries.
5134 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5135 default- variable for it.
5136
5137 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5138 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5139 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5140 overflowing newlines into right fringe.
5141 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5142 and indicate_bottom_line_p for buffer boundaries and scrolling.
5143 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5144 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5145 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5146 and HOLLOW_SQUARE_BITMAP.
5147 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5148 Add prototypes.
5149
5150 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5151 instead of related indicator fields.
5152 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5153 (direct_output_for_insert): Handle exact width lines like
5154 contined lines. Call update_window_fringes.
5155 (update_window): Call update_window_fringes.
5156 (scrolling_window): Don't skip desired rows with changed bitmaps.
5157 Check if fringe bitmaps changes when assigning scrolled rows.
5158
5159 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5160 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5161 (move_it_in_display_line_to): Overflow newline into fringe for
5162 rows that are exactly as wide as the window.
5163 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5164 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5165 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5166 (fringe_bitmaps): Add new bitmaps.
5167 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5168 Select proper bitmap for cursor in fringe when appropriate.
5169 Handle alignment of bitmap to top or bottom of row.
5170 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5171 done by update_window_fringes.
5172 (update_window_fringes, draw_window_fringes): New functions.
5173 (redisplay_internal): Call update_window_fringes in case only
5174 cursor row is updated.
5175 (redisplay_window): Call update_window_fringes.
5176 Explicitly call draw_window_fringes if redisplay was done using
5177 the current matrix or the overlay arrow is in the window.
5178 (try_window_reusing_current_matrix): Mark scrolled rows for
5179 fringe update (to update buffer-boundaries / scrolling icons).
5180 (find_last_unchanged_at_beg_row): Handle exact width lines line
5181 continued lines.
5182 (display_line): Overflow newline into fringe for rows that are
5183 exactly as wide as the window. Don't append space for newline
d7107586 5184 in this case.
77a9cf69
KS
5185 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5186 in fringe as if it had been overwritten.
5187 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5188 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5189 void-text-area-pointer as user options.
5190 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5191
77a9cf69
KS
5192 * xterm.c (x_update_window_end): Call draw_window_fringes.
5193 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5194 in row instead of actually drawing fringe bitmaps.
5195 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5196 (x_draw_window_cursor): Draw cursor in fringe.
5197
5198 * w32term.c (x_update_window_end): Call draw_window_fringes.
5199 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5200 in row instead of actually drawing fringe bitmaps.
5201 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5202 (w32_draw_window_cursor): Draw cursor in fringe.
5203
5204 * macterm.c (x_update_window_end): Call draw_window_fringes.
5205 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5206 in row instead of actually drawing fringe bitmaps.
5207 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5208 (mac_draw_window_cursor): Draw cursor in fringe.
5209
a633a954
JD
52102004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5211
5212 * xterm.c (handle_one_xevent): Don't handle characters that are part
5213 of an old style (XLookupString) compose sequence.
5214
80460525
KH
52152004-01-15 Kenichi Handa <handa@m17n.org>
5216
5217 * search.c (Freplace_match): Use make_multibyte_string or
5218 make_unibyte_string according to the buffer multibyteness.
5219
7fc34f85
SM
52202004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5221
5222 * alloc.c (struct interval_block, struct string_block)
5223 (struct symbol_block, struct marker_block, live_string_p)
5224 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5225 Better preserve alignment for objects in blocks.
5226 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5227
5228 * lread.c (defvar_per_buffer): Remove dead declaration.
5229
5230 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5231 space size.
5232
66070bd1
JD
52332004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5234
5235 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5236 if a key press should pop down. Only pop down if a key is pressed
5237 outside the menu/dialog.
5238 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5239 popup_get_selection.
5240 (create_and_show_dialog): Pass 1 for down_on_keypress to
5241 popup_get_selection.
5242
de7515d6
JD
52432004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5244
5245 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5246 BLOCK/UNBLOCK_INPUT.
5247
160b1b50
JD
52482004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5249
5250 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5251 specified.
5252
3a9f36e6
KH
52532004-01-08 Kenichi Handa <handa@m17n.org>
5254
5255 * editfns.c (Fformat): Fix '&' to '&&'.
5256
3803eb32
AS
52572004-01-08 Andreas Schwab <schwab@suse.de>
5258
5259 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5260 size if PSEUDOVECTOR_FLAG is set.
5261
9da88f37
KH
52622004-01-07 Kenichi Handa <handa@m17n.org>
5263
74ac5074
KH
5264 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5265
9da88f37
KH
5266 * fontset.c (fontset_ref_via_base): Fix previous change.
5267
05faee07
KS
52682004-01-07 Kim F. Storm <storm@cua.dk>
5269
5270 * process.c (read_process_output): Only activate adaptive
5271 buffering if we read less than 256 bytes at a time.
5272
634910c8
KS
52732004-01-06 Kim F. Storm <storm@cua.dk>
5274
5275 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5276 object and image object. Return glyph width and height.
5277 (mode_line_string, marginal_area_string): Ditto.
5278
5279 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5280 (marginal_area_string): Fix prototypes.
5281
5282 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5283 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5284 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5285
5286 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5287 buffer_posn_from_coords, and marginal_area_string functions to
5288 include both string object and image object in the lispy position.
5289 Also add actual glyph width and height to position.
5290 (read_key_sequence): Use real buffer position from mouse
5291 event to find keymap property even when click is in marginal area.
5292
5293 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5294 mode_line_string and marginal_area_string functions to handle
5295 both string object and image object properties.
d7107586 5296
57951c2e
AS
52972004-01-06 Andreas Schwab <schwab@suse.de>
5298
5299 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5300 character.
5301
181e6a61
AS
53022004-01-02 Andreas Schwab <schwab@suse.de>
5303
d7107586
SM
5304 * macterm.c (emacs_options, x_initialized, same_x_server):
5305 Remove unused (and duplicated) definitions.
181e6a61 5306
31e0fbdd
KS
53072004-01-02 Kim F. Storm <storm@cua.dk>
5308
5309 * process.h (struct Lisp_Process): New members for adaptive read
5310 buffering: adaptive_read_buffering, read_output_delay, and
5311 read_output_skip.
5312
5313 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5314 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5315 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5316 (process_output_delay_count, process_output_skip): New vars.
5317 (Vprocess_adaptive_read_buffering): New variable.
5318 (make_process): Initialize adaptive read buffering members.
5319 (Fstart_process): Set adaptive_read_buffering member.
5320 (deactivate_process): Cleanup adaptive read buffering.
5321 (wait_reading_process_input): Temporarily omit delayed
5322 subprocesses from the set of file descriptors to read from;
5323 adjust the select timeout if we skipped any subprocesses.
5324 (read_process_output): Increase adaptive read buffering delay if
5325 we read less than a full buffer; reduce delay when we read a
5326 full buffer.
5327 (send_process): Simplify using local Lisp_Process var.
5328 Reset adaptive read buffering delay after write.
5329 (init_process): Initialize process_output_delay_count and
5330 process_output_skip.
5331 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5332
68c6a789
JR
53332004-01-01 Jason Rumney <jasonr@gnu.org>
5334
d7107586 5335 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5336
3f70fe82
LT
53372003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5338
5339 * print.c (Ferror_message_string): Add hyperlink in the docstring
5340 to the definition of `signal' in the Elisp manual.
5341 * eval.c (Fsignal): Ditto.
5342
b6189c3b 53432003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5344
5345 * fns.c (internal_equal): Return t for two NaN arguments.
5346
7abd90ea
RS
53472003-12-29 Richard M. Stallman <rms@gnu.org>
5348
5349 * data.c (store_symval_forwarding): Handle setting
5350 default-fill-column, etc., by changing the value in
5351 buffers that use the default.
5352
5353 * minibuf.c (Fset_minibuffer_window): Doc fix.
5354
5355 * fileio.c (choose_write_coding_system): Ignore auto_saving
5356 if using the visited file for auto saves.
5357 (Fwrite_region): Don't update SAVE_MODIFF
5358 if auto-saving in visited file.
5359
3e7cfcdc
KH
53602003-12-29 Kenichi Handa <handa@m17n.org>
5361
5362 * dispextern.h (face_font_available_p): Extern it.
5363
5364 * fontset.c (Voverriding_fontspec_alist): New variable.
5365 (lookup_overriding_fontspec): New function.
d7107586 5366 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5367 (fontset_font_pattern): Likewise.
5368 (regulalize_fontname): New function.
5369 (Fset_fontset_font): Call regulalize_fontname.
5370 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5371 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5372 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5373
5374 * xfaces.c (face_font_available_p): New function.
5375
7abd90ea
RS
53762003-12-28 Richard M. Stallman <rms@gnu.org>
5377
5378 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5379 or if its name is nil.
5380
5381 * buffer.c (Fkill_buffer): Don't delete auto-save file
5382 if it's the same as the visited file.
5383
de1d1a40
LT
53842003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5385
5386 * coding.c (Fcheck_coding_system): Doc fix.
5387
204fb75e
KS
53882003-12-28 Kim F. Storm <storm@cua.dk>
5389
5390 * Makefile.in (eval.o): Depend on dispextern.h.
5391
5392 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5393 image glyph using image's ascent.
5394 (mode_line_string): Return image glyph as object clicked on.
5395 Adjust y0 for image glyph using image's ascent.
5396
5397 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5398 (struct glyph): New members, ascent and descent. Used to save
5399 this glyph's ascent and descent, instead of having.
5400 (struct glyph): Declare member face_id using FACE_ID_BITS.
5401 (find_hot_spot): Add prototype.
5402
5403 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5404 (QCmap): Declare extern.
5405 (make_lispy_position): When position is inside image hot-spot,
5406 use hot-spot element's id as posn element.
5407
5408 * lisp.h (IMAGEP): New macro to test for image object type.
5409 (Qimage): Declare extern.
5410
5411 * macfns.c (Qimage): Remove extern (now in lisp.h).
5412 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5413
5414 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5415
5416 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5417 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5418
5419 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5420
5421 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5422
5423 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5424 pointer types.
5425 (Qrelative_width, Qalign_to): Remove unused variables.
5426 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5427 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5428 image maps.
d7107586 5429 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5430 new dx and dy args.
5431 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5432 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5433 than row's ascent and height, to get sensible height on tall rows.
5434 (build_desired_tool_bar_string): Remove Qimage extern.
5435 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5436 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5437 image glyph is alone on the last line.
5438 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5439 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5440 (on_hot_spot_p): New function to check if position is inside an
d7107586 5441 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5442 (find_hot_spot): New function to search for image hot-spot.
5443 (Flookup_image_map): New defun to search for image hot-spot.
5444 (define_frame_cursor1): New aux function to determine frame pointer.
5445 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5446 Handle `pointer' text property and :pointer image property to
5447 control frame pointer shape. Detect image hot-spots for pointer
5448 and help_echo properties. Use define_frame_cursor1.
5449 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5450 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5451 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5452
5453 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5454
5455 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5456 (Qimage): Remove extern (now in lisp.h).
5457 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5458
5459 * xmenu.c (show_help_event): Remove unused code.
5460
5461 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5462 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5463 row's ascent and descent, to get a sensible height on tall rows.
5464
fc052137
LT
54652003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5466
5467 * minibuf.c (Fcompleting_read): Undo previous change.
5468
a64387ee 54692003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5470
5471 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5472 Arguments GCPRO'ed in call to file name handler.
5473
56ffd194
TTN
54742003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5475
5476 * termcap.c (tgetst1): Scan for "%pN"; if all
5477 N are continuous in [1,9], remove all "%pN".
5478
5202d23d
JD
54792003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5480
f26fab36
JD
5481 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5482
5202d23d
JD
5483 * xfaces.c (lface_fully_specified_p): Take into account that
5484 MAC OS always have unspecified stipple.
5485
8babaa59
TTN
54862003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5487
5488 * tparam.c (tparam1): Add handling for `%pN', which
5489 means use param N for the next substitution.
5490
2d176448
TTN
54912003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5492
5493 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5494 In case `frame' is nil, consult the selected frame.
5495 (Fcolor_supported_p): Likewise.
5496
adb0708c
LT
54972003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5498
000eeb15
LT
5499 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5500 Doc fixes.
0dc72b11
LT
5501
5502 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5503 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5504 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5505 Doc fix.
5506 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5507 read_minibuf.
5508 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5509 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5510
2e4d132b
KH
55112003-12-03 Kenichi Handa <handa@m17n.org>
5512
5513 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5514 encoding sequence.
5515
3999c705
KH
55162003-12-01 Kenichi Handa <handa@m17n.org>
5517
5518 * composite.c (syms_of_composite): Don't make the compostion hash
5519 table week.
5520
d344ecbb
LT
55212003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5522
5523 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5524 * textprop.c (Fget_char_property_and_overlay): New function.
5525 (syms_of_textprop): Defsubr it.
5526
03d6484e
JD
55272003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5528
019b1f0e
JD
5529 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5530 to compile on terminal configuration.
5531
03d6484e
JD
5532 * fileio.c (Fread_file_name): Check use_file_dialog also before
5533 calling Fx_file_dialog.
5534
5535 * fns.c: use_file_dialog: New variable.
5536 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5537
442d3fd0
KS
55382003-11-29 Kim F. Storm <storm@cua.dk>
5539
5540 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5541 (syms_of_msdos): Don't intern and staticpro them.
5542
0f6a07a8
KS
55432003-11-27 Kim F. Storm <storm@cua.dk>
5544
5545 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5546 coordinates relative to glyph at posn. If glyph is an image,
5547 return that as object at posn. Callers changed.
5548 (mode_line_string, marginal_area_string): Calculate and return
5549 pixel coordinates relative to glyph. Callers changed.
5550
5551 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5552 (marginal_area_string): Fix prototypes.
5553 (window_box_left_offset, window_box_right_offset): Add prototypes.
5554
5555 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5556 Remove prototypes.
5557
5558 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5559
5560 * keyboard.c (make_lispy_position): Add x and y coordinates
5561 relative to the current glyph as 7th element of position.
5562 If glyph is an image, return it in the object element.
5563 (read_key_sequence): Skip checks for keymap property in cases
5564 where POSN_STRING is not a string (e.g. an image).
5565
5566 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5567 (Vshow_text_cursor_in_void): New variable.
5568 (glyph_to_pixel_coords): Don't use negative hpos.
5569 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5570 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5571 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5572 (calc_pixel_width_or_height): New aux function, implementing
5573 pixel based artihmetic for glyph widths and heights.
5574 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5575 :width, :height, :align-to, and :ascent, thus allowing these to
5576 be specified in pixels as well as multiples of characters.
5577 Don't produce stretch glyphs with zero width or height.
5578 (get_specified_cursor_type): Declare static.
5579 (get_window_cursor_type): Declare static. Add glyph arg to be
5580 able to know when cursor is on an image; always substitute
5581 hollow-box cursor for filled-box cursor on images, to avoid
5582 negative images and flicker when blinking the cursor.
5583 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5584 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5585 than vertical scroll-bar cursor in display margins.
5586 (note_mouse_highlight): Use non-text cursor rather than text
5587 cursor in fringes and over images in the text area.
5588 Use non-text cursor when mouse pointer is outside editable text,
5589 i.e. in the void after end-of-line or end-of-buffer; this was
5590 already done for W32, but is now standard for all systems --
5591 user can toggle show-text-cursor-in-void to get old behaviour.
5592 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5593 Vdisplay_pixels_per_inch.
5594
00498bfc
AS
55952003-11-25 Andreas Schwab <schwab@suse.de>
5596
5597 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5598 EMACS_INT to not lose bits.
5599 (Ffillarray): Don't set bits beyond the size of a bool vector.
5600
edaa824d
KS
56012003-11-25 Kim F. Storm <storm@cua.dk>
5602
5603 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5604 define this defun on systems that cannot use stderr as lvalue.
5605
74d6f539
GM
56062003-11-24 Gerd Moellmann <gerd@gnu.org>
5607
5608 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5609 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5610 ld's default is incompatible with unexec.
5611
6a1ff3ba
KS
56122003-11-23 Kim F. Storm <storm@cua.dk>
5613
63dc7c6b
KS
5614 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5615 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5616 (Fforce_window_update): New defun.
5617 (syms_of_window): Defsubr it.
5618 (Fset_window_margins, Fset_window_fringes): Doc fix.
5619
6a1ff3ba
KS
5620 * print.c (Fredirect_debugging_output): New defun.
5621 (syms_of_print): Defsubr it.
5622
aef109b7
LT
56232003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5624
5625 * fns.c (Fset_char_table_parent): Doc fix.
5626
6a1ff3ba 56272003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5628
5629 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5630 for glyph clicked on, rather than (unused) pixel positions.
5631 (mode_line_string, marginal_area_string): Change X and Y args to
5632 pointers for returning actual row/column for glyph clicked on.
5633 Simplify and optimize loops.
5634
aef109b7
LT
5635 * dispextern.h (mode_line_string, marginal_area_string):
5636 Update prototypes.
63ccbe21
KS
5637
5638 * keyboard.c (make_lispy_position): New function for generating
5639 mouse click positions from frame and pixel coordinates.
5640 Enhanced to return buffer position and actual row/column for
5641 events outside the text area using updated mode_line_string and
5642 marginal_area_string functions.
5643 Return left-fringe and right-fringe clicks as such, rather than
5644 clicks in text area.
5645 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5646 pixel_to_glyph_coords, as we never use the results.
5647 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5648 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5649 Eliminate unused code in WHEEL_EVENT handling.
5650 (make_lispy_movement): Use make_lispy_position.
5651
5652 * window.c (coordinates_in_window): Remove redundant tests.
5653 Fix returned X pixel value for left-margin.
5654
5655 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5656 mode_line_string and marginal_area_string parameters.
5657
a64387ee 56582003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5659
d7107586
SM
5660 * w32.c (struct the_group, getgrgid): Add.
5661 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5662
3dbf3426
LT
56632003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5664
5665 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5666
cae8ddbb 56672003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5668
d7107586
SM
5669 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5670 include in call to file name handler. Optionally translate numeric
5671 UID and GID to strings. Update docstring.
5672 (directory_files_internal): Add parameter ID-FORMAT.
5673 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5674 include in call to file name handler and call to
5675 directory_files_internal. Update Docstring.
5676 (Fdirectory_files): Add dummy parameter in call to
5677 directory_files_internal.
5678 * lisp.h (Qinteger): Add.
5679 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5680 (Ffile_attributes): Add parameter.
5681 * data.c (Qinteger): Export.
cae8ddbb 5682
2550b848
LT
56832003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5684
3dbf3426 5685 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5686
88380018
KS
56872003-11-19 Kim F. Storm <storm@cua.dk>
5688
5689 * xdisp.c (init_iterator): Initialize it->start to position
5690 before reseating (in case start position is invisible).
5691 (init_to_row_start): Set it->start to row-start.
5692 (redisplay_window): Accept optional_new_start if start position
5693 is invisible (in which case IT_CHARPOS overshoots PT).
5694 (display_line): Setup row->start from it->start (rather than
5695 it->current which is wrong if first char on line is invisible).
5696 When done, reseat it->start to it->current (= start of next row).
5697 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5698 is only partially visible.
5699
5700 * dispextern.h (struct it): New member start.
5701
854c1a59
SM
57022003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5703
455316e2
SM
5704 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5705 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5706 of block_index outside of the macro call.
5707 (Fgarbage_collect): Remove null code.
5708
5709 * m/amdx86-64.h: Don't redefine XPNTR.
5710
854c1a59
SM
5711 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5712 of VALMASK.
5713
5714 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5715 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5716 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5717
5718 * lisp.h (VALMASK): Only define for non-union type.
5719 (MARKBIT): Remove.
5720 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5721 (XTYPE): Define unconditionally.
5722 (XSETTYPE): Remove one more remnant.
5723 (EQ): Define differently for the union and non-union cases.
5724 (INTMASK): New bit mask.
5725 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5726 (GC_EQ): Delegate to EQ.
5727
5728 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5729
a0c6ef2d
JD
57302003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5731
5732 * xterm.c (x_window_to_scroll_bar): Move check of display to
5733 where window_id is compared.
5734
859492c4
KS
57352003-11-17 Kim F. Storm <storm@cua.dk>
5736
5737 * dispextern.h (struct it): New member first_vpos.
5738
5739 * xdisp.c (start_display): Set it->first_vpos.
5740 (try_window_id): Use first_vpos to start display in first _text_
5741 line if no reusable lines at start of window with header line.
5742
810f2256
JD
57432003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5744
7c402969 5745 * w32fns.c (XPutPixel):
854c1a59
SM
5746 * w32bdf.c (w32_init_bdf_font):
5747 * sunfns.c (sel_read):
5748 * process.c (Fmake_network_process):
5749 * frame.c (store_frame_param):
5750 * fontset.c (Fset_fontset_font):
5751 * emacs.c (shut_down_emacs):
a64387ee 5752 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5753
a32e9bfd
JD
5754 * config.in: Regenerate.
5755
810f2256
JD
5756 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5757 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5758 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5759 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5760 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5761
5762 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5763
5764 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5765 (XTmouse_position, handle_one_xevent): Pass Display* to
5766 x_window_to_scroll_bar.
5767 (x_window_to_scroll_bar): Take a Display* argument.
5768 Check that display for frame is equal to Display* argument.
854c1a59 5769 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5770 x_display_info_for_display instead. Use Display in xev instead
5771 of GDK_DISPLAY.
5772 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5773 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5774 (x_connection_closed): Call xg_display_close for GTK.
5775 (x_term_init): Call xg_display_open for additional displays.
5776 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5777 for GTK.
5778
5779 * xmenu.c (single_menu_item, mouse_position_for_popup)
5780 (x_activate_menubar): Formatting adjustments.
5781
5782 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5783 adjustments.
5784
5785 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5786 (xg_display_close, xg_create_default_cursor)
5787 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5788 handling.
854c1a59
SM
5789 (xg_left_ptr_cursor): Remove.
5790 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5791 cursor here.
5792 (xg_win_to_widget): Take Display* argument, call
5793 gdk_xid_table_lookup_for_display.
5794 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5795 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5796 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5797 in FRAME_X_DISPLAY_INFO.
5798 (xg_get_scroll_id_for_window): Take Display* argument.
5799 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5800 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5801
78819ebb
KS
5802 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5803 Display* argument.
5804 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5805
0b03cc78
JD
58062003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5807
5808 * xterm.c (x_detect_focus_change): Do not change focus frame for
5809 Enter/LeaveNotify if the current focus frame has explicit focus.
5810
77e688fa
KS
58112003-11-14 Kim F. Storm <storm@cua.dk>
5812
5813 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5814 is active and first glyph is only partially visible.
854c1a59 5815
dd429b03
KH
58162003-11-13 Kenichi Handa <handa@m17n.org>
5817
5818 * xdisp.c (select_frame_for_redisplay): New function.
5819 (redisplay_internal): Record also selected_frame for
5820 unwind_redisplay. Call select_frame_for_redisplay before
5821 redrawing each frame.
5822 (unwind_redisplay): Argument changed to a cons.
5823
6d9266f4
LT
58242003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5825
5826 * fns.c (Fstring_to_multibyte): Doc fix.
5827
80060eb3
KH
58282003-11-11 Kenichi Handa <handa@m17n.org>
5829
5830 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5831
74305183
JD
58322003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5833
5834 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5835 program specified positions.
5836
cfda993e
JD
58372003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5838
5839 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5840
df211069
KH
58412003-11-08 Kenichi Handa <handa@m17n.org>
5842
5843 * Makefile.in (lisp): Add kannada.el.
5844 (shortlisp): Likewise.
5845
4307d534
KH
58462003-11-07 Kenichi Handa <handa@m17n.org>
5847
854c1a59
SM
5848 * coding.c (coding_allocate_composition_data):
5849 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5850 (coding_restore_composition): Detect invalid composition data.
5851 Give Fstring and Fvector a Lispy integer, not C int.
5852
854c1a59
SM
58532003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5854
5855 * floatfns.c (Flogb): Don't use VALMASK.
5856
5857 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5858 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5859
5860 * lisp.h (XINT): Move the cast to clarify what is going on.
5861 (GCTYPEMASK, XSETTYPE): Remove.
5862 (XGCTYPE): Make it an alias of XTYPE.
5863
d04103a1
JD
58642003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5865
5866 * xterm.c (x_term_init): Fix formatting.
5867
da18b5ac
JD
58682003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5869
78819ebb
KS
5870 * gtkutil.h (xg_have_tear_offs): Declare.
5871 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5872
5873 * gtkutil.c: Remove variable xg_did_tearoff.
5874 (xg_have_tear_offs): New function.
5875 (tearoff_remove): Just decrease xg_detached_menus.
5876 (tearoff_activate): Increase xg_detached_menus and call
5877 tearoff_remove when tearoff is removed.
854c1a59 5878 (xg_keep_popup): Remove function.
da18b5ac
JD
5879 (create_menus): Give add_tearoff_p as argument to recursive
5880 call to create_menus.
5881 (xg_create_widget): Use variables instead of multiple
5882 strcmp. Tell create_menus to create tear off only for
5883 menu bar menus.
5884 (xg_update_menubar): Change title for a detached menu also.
5885 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5886 of deep_p.
5887 (xg_initialize): Initialize xg_detached_menus, remove
5888 initialization of xg_did_tearoff.
5889
5890 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5891 xg_have_tear_offs returns non-zero.
5892 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5893 call to xg_keep_popup.
5894
64d4923e
AC
58952003-11-01 Andrew Choi <akochoi@shaw.ca>
5896
5897 * macterm.c (XTread_socket): Handle menubar selection and grow
5898 window only for mouseDown events.
854c1a59 5899
6cc8bc07
JD
59002003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5901
5902 * xterm.c (x_term_init): For GTK part, increase x_initialized
5903 to check for more than one display. Use error instead of return 0.
5904
043131c4
AC
59052003-10-31 Andrew Choi <akochoi@shaw.ca>
5906
854c1a59 5907 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
5908 (copy_dysymtab): Call it.
5909
bdda99a1
LT
59102003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5911
5912 * eval.c (Fdefvaralias): Doc fix.
5913
800f42ff 59142003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
5915
5916 * data.c (Fsetplist): Doc fix.
5917
ef35b389
LK
59182003-10-14 Lute Kamstra <lute@gnu.org>
5919
5920 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 5921
ef35b389 59222003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 5923
07107abc
KS
5924 * window.c (Fset_window_margins): Simplify arg checking.
5925
f7005886
RS
59262003-10-13 Richard M. Stallman <rms@gnu.org>
5927
5928 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5929 (print_partial_compiled_pattern): Replace assert with a printout.
5930 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5931
5932 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5933
5934 * window.c (Fset_window_margins): Allow only integers as args.
5935 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5936 Doc fixes.
5937
9c0c2af5
LK
59382003-10-13 Lute Kamstra <lute@gnu.org>
5939
5940 * window.c (Fset_window_fringes): Elaborate docstring.
5941
3f080e4e
AC
59422003-10-12 Andrew Choi <akochoi@shaw.ca>
5943
854c1a59 5944 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5945
3f080e4e
AC
5946 * s/darwin.h (GC_MARK_STACK): Define.
5947
0aa513ed
JD
59482003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5949
5950 * window.c (shrink_windows): New function.
5951 (size_window): Call shrink_windows to calculate window sizes when
5952 shrinking frame with more than one window.
5953
6aa8858a
KS
59542003-10-12 Kim F. Storm <storm@cua.dk>
5955
5956 * xdisp.c (compute_fringe_widths): Doc fix.
5957
c2164d91
KH
59582003-10-08 Kenichi Handa <handa@m17n.org>
5959
854c1a59 5960 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 5961
f82ac129
KH
59622003-10-07 Kenichi Handa <handa@m17n.org>
5963
5964 * coding.c (Qcoding_system_define_form): New variable.
5965 (syms_of_coding): Intern and staticpro it.
5966 (Fcheck_coding_system): Try to autoload the definition of
5967 CODING-SYSTEM.
5968
9296c947
LT
59692003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5970
5971 * fns.c (Frequire): Doc fix.
5972
c1f0671a
JD
59732003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5974
3d8c3826
JD
5975 * xfns.c (Fx_send_client_event): New function as a base for
5976 manipulating extended window manager hints.
6dc15d98 5977 (Fx_send_client_event): Remove unused variable s.
3d8c3826 5978
068ae0fd
JD
5979 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5980 that function is removed.
5981
5982 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5983 x/y_pixels_outer_diff.
5984 (x_check_expected_move): Calculate move_offset_left/top.
5985
5986 * xterm.h (struct x_output): New members: move_offset_top/left.
5987
854c1a59 5988 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
5989 call x_set_offset directly.
5990
5991 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5992
96f09305
JD
5993 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5994
5995 * xterm.c (x_delete_display): Free font names and font_encoder
5996 in dpyinfo->font_table.
5997
854c1a59
SM
5998 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5999 Move xfree of font names to x_delete_display.
96f09305 6000
c1f0671a
JD
6001 * xterm.h (struct x_display_info): New member, wm_type.
6002 (struct x_output): New members, expected_top/left and
6003 check_expected_move.
6004
6005 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6006 is received.
854c1a59
SM
6007 (handle_one_xevent): Rename x_check_expected_move from
6008 x_check_fullscreen_move.
c1f0671a
JD
6009 (x_set_offset): Only add WM decoration sizes to modified_top/left
6010 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6011 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6012 Removed fullscreen specific code. Use check_expected_move,
6013 expected_left/top instead. Also, set wm_type.
6014 (x_term_init): Initialize wm_type to unknown.
6015
6016 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6017 sizes to move_x/y.
6018
be2fdba9
KH
60192003-10-03 Kenichi Handa <handa@m17n.org>
6020
6021 * macterm.c (x_load_font): Clear all members of FONTP before start
6022 filling them.
6023
60242003-10-02 Kenichi Handa <handa@m17n.org>
6025
6026 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6027 before calling find_ccl_program_func. Call find_ccl_program_func
6028 only when fontp->font_encoder is not NULL.
6029
6030 * xterm.c (x_load_font): Clear all members of FONTP before start
6031 filling them.
6032
26a6e439
JPW
60332003-10-03 John Paul Wallington <jpw@gnu.org>
6034
6035 * keymap.c (map_keymap): Don't abort when binding is a vector.
6036
0d4c2dc2
JR
60372003-10-02 Jason Rumney <jasonr@gnu.org>
6038
854c1a59
SM
6039 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6040 Sync dependencies with Makefile.in.
a63cf46f
JR
6041 (alloca.o): Remove.
6042
0d4c2dc2
JR
6043 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6044 filling them.
6045
6046 * w32bdf.c (w32_load_bdf_font): Likewise.
6047
ab8f7d5c
RS
60482003-09-30 Richard M. Stallman <rms@gnu.org>
6049
6050 * term.c (set_tty_color_mode): Calculate current_mode_spec
6051 regardless of value of VAL.
6052
854c1a59 6053 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6054 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6055 Handle over_used when splitting UNDER.
6056
a64387ee 60572003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6058
6059 * regex.c (regex_compile): Free the stack when returning from function.
6060
3413f972
KH
60612003-09-28 Kenichi Handa <handa@m17n.org>
6062
6063 * fontset.c (Finternal_char_font): Change return value to
6064 cons (FONT-NAME . GLYPH-CODE).
6065
a6eeaa81 60662003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6067
6068 * term.c (tty_setup_colors): Treat any negative argument as -1.
6069
f98ddc99
KH
60702003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6071
6072 * process.c (send_process): Delete unused temp_buf.
6073
66c8f1a8
DL
60742003-09-26 Dave Love <fx@gnu.org>
6075
6076 * xterm.c (x_bitmap_mask): Declare.
6077
ca716c26
DL
60782003-09-25 Dave Love <fx@gnu.org>
6079
6080 * Makefile.in (fns.o): Depend on md5.h.
6081
fbe57420
KS
60822003-09-25 Kim F. Storm <storm@cua.dk>
6083
6084 * window.c (set_window_buffer): Fix redisplay problems when
6085 switching between buffers with different display margin widths.
6086
ef6ae4ff
KS
60872003-09-23 Kim F. Storm <storm@cua.dk>
6088
6089 * process.c (set_socket_option): Fix :bindtodevice option.
6090 (Fset_network_process_option): Update process contact list when
6091 setting option succeeds.
6092 (Fmake_network_process): Doc fix.
6093
68e03c1c
DL
60942003-09-23 Dave Love <fx@gnu.org>
6095
7146d1c1 6096 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6097
a6eeaa81 60982003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6099
6100 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6101 color mode is an integer number (it could be -1).
6102
8fe7d8c8
RS
61032003-09-22 Richard M. Stallman <rms@gnu.org>
6104
6105 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6106 in the case where OVER is longer than UNDER.
6107
2f71b5ea
MY
61082003-09-22 Masatake YAMATO <jet@gyve.org>
6109
7146d1c1 6110 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6111 `vertical_type'.
7146d1c1 6112
0c4da023
KS
61132003-09-21 Kim F. Storm <storm@cua.dk>
6114
6115 * frame.c (Vdefault_frame_scroll_bars): New variable.
6116 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6117 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6118 window-system default scroll bar position.
6119
b648413b
KS
6120 * window.c (Fwindow_scroll_bars): Doc fix.
6121
8f5b9e34
JD
61222003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6123
854c1a59 6124 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6125
b0f23edf
RS
61262003-09-19 Richard M. Stallman <rms@gnu.org>
6127
6128 * atimer.h: Don't include lisp.h.
6129 (P_): Define it here (as well as elsewhere).
6130
6131 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6132 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6133
6134 * data.c (Fvariable_binding_locus): New function.
6135 (syms_of_data): defsubr it.
6136 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6137
e1283999
DL
61382003-09-18 Dave Love <fx@gnu.org>
6139
ad5f3636
DL
6140 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6141
e1283999
DL
6142 * process.c (Fnetwork_interface_info): Fix type error.
6143 (Fnetwork_interface_list): Doc fix.
6144 (read_process_output, read_process_output): Delete unused var.
6145
b8c7fd71
KS
61462003-09-17 Kim F. Storm <storm@cua.dk>
6147
6148 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6149 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6150 (Fnetwork_interface_info): Check that ifreq struct has required
6151 fields before accessing them; this requires that those fields are
6152 defined as macros, which may be too restrictive on some platforms,
6153 but it is better than failing on other platforms.
6154 (syms_of_process): Only defsubr above fns when included.
6155
11e0a411
DL
61562003-09-17 Dave Love <fx@gnu.org>
6157
6158 * unexalpha.c: Don't include varargs.h.
6159
e9c50801
KS
61602003-09-17 Kim F. Storm <storm@cua.dk>
6161
6162 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6163 for network process.
6164 (socket_options): Add `:' prefix to option names. Add optbit field.
6165 (set_socket_option): Remove no_error arg and special handling of s < 0.
6166 Return 1<<optbit for known option, 0 for unknown.
6167 Do not interpret 0 as false for boolean option (only nil).
6168 Pass failed option and value to report_file_error.
7146d1c1 6169 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6170 (Fset_network_process_option): New function to set just one option.
6171 (Fmake_network_process): Allow :coding arg to be a cons.
6172 Allow :server arg to be an integer specifying backlog size.
6173 Remove :options arg, and allow options to be specified directly
6174 as :KEY, VALUE pairs. Parse these options before binding socket.
6175 As before, :reuseaddr t is default for a server process, but this
6176 can now be disabled by specifying :reuseaddr nil.
6177 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6178 (init_process): Availability of network options is now checked with
6179 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6180 setup features.
6181 (syms_of_process): Fix defsubr's for the replaced functions.
6182
a0fc3644
DL
61832003-09-16 Dave Love <fx@gnu.org>
6184
6185 * Makefile.in: Depend on coding.h.
6186
6df2a645
KS
61872003-09-14 Kim F. Storm <storm@cua.dk>
6188
6189 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6190 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6191 (syms_of_process): Defsubr them.
6192
6193 * config.in: Regenerate.
7146d1c1
SM
6194
61952003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6196
6197 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6198 * m/news-r6.h (XUNMARK): Remove.
6199 * m/mips.h (XUNMARK): Remove.
6200 * m/mips-siemens.h (XUNMARK): Remove.
6201 * m/iris4d.h (XUNMARK): Remove.
6202 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6203
0930c1a1
SM
62042003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6205
31003b9e
SM
6206 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6207 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6208 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6209 (XTYPE): Use unsigned right-shift.
6210 (XMARKBIT, XMARK, XUNMARK): Remove.
6211
0930c1a1
SM
6212 * alloc.c (init_intervals, init_symbol, init_marker):
6213 Don't preallocate anything.
6214 (Fgarbage_collect, mark_object): Ignore the markbit.
6215
6216 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6217
19bb0fcd 62182003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6219
6220 * xdisp.c (pint2hrstr): New function.
6221 (decode_mode_spec): Add `%i' and `%I' specs.
6222 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6223 for `mode-line-format'.
6224
03bb6a06
AS
62252003-09-07 Andreas Schwab <schwab@suse.de>
6226
6227 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6228 avoid warning.
6229
a6eeaa81 62302003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6231
0930c1a1 6232 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6233
ed159bbf
KS
62342003-09-03 Kim F. Storm <storm@cua.dk>
6235
6236 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6237 change (superseded by 2002-08-30 change); the default blink-off
6238 cursor is now again "no cursor".
6239
fe64a394
JR
62402003-09-01 Jason Rumney <jasonr@gnu.org>
6241
6242 * makefile.w32-in (alloca.o): Remove.
6243 (coding.o): Depend on intervals.h
6244 (emacs.o, bytecode.o): Depend on window.h
6245
c0175e24
DL
62462003-09-01 Dave Love <fx@gnu.org>
6247
6248 * Makefile.in (alloca.o): Remove commands.
6249 (coding.o): Depend on intervals.h composite.h window.h.
6250 (emacs.o): Depend on window.h keyboard.h keymap.h.
6251 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6252 (bytecode.o): Depend on window.h.
6253
a24d4cb2
JR
62542003-08-31 Jason Rumney <jasonr@gnu.org>
6255
4bc2315e
JR
6256 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6257 returned even when font_type is unknown.
6258
a24d4cb2
JR
6259 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6260
9d35adc7
JD
62612003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6262
6263 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6264
6265 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6266 *_offset.
6267
6268 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6269 calculate pixel value.
6270
6f68b035
GM
62712003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6272
0930c1a1
SM
6273 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6274 Don't tell redisplay display is accurate when it's actually been
6275 paused for pending input.
6f68b035 6276
4828b4d7
RS
62772003-08-29 Richard M. Stallman <rms@gnu.org>
6278
6279 * dispnew.c (adjust_glyph_matrix): Call window_box
6280 whenever W is nonzero.
6281
6282 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6283 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6284 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6285 Use indirect_variable to trace thru variable aliases.
6286
6287 * config.in: Updated.
6288
6289 * callint.c (Fcall_interactively): Save and restore
6290 Vthis_command, Vthis_original_command, real_this_command,
6291 and current_kboard->Vlast_command.
6292
6293 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6294
e019878d
GM
62952003-08-29 Gerd Moellmann <gerd@gnu.org>
6296
6297 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6298
85478bc6
KH
62992003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6300
0930c1a1 6301 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6302 (decode_coding_sjis_big5): Likewise.
6303
07ce82d3
JR
63042003-08-27 Jason Rumney <jasonr@gnu.org>
6305
d3703de3
JR
6306 * w32.c (sys_pipe): Protect against file descriptor overflow.
6307
ee4a01d1
JR
6308 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6309
07ce82d3
JR
6310 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6311
a64387ee 63122003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6313
6314 * xfns.c (Vgtk_version_string): New variable.
6315 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6316
a6eeaa81 63172003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6318
0930c1a1 6319 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6320
5459e42a
EZ
6321 * Makefile.in (msdos.o): Depend on intervals.h.
6322
0930c1a1 6323 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6324
231d6cfb
JD
63252003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6326
6327 * xterm.h (struct x_display_info): New fields: client_leader_window
6328 and Xatom_wm_client_leader.
6329
6330 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6331 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6332
6333 * xsmfns.c (create_client_leader_window): New function.
6334 (x_session_initialize): Call create_client_leader_window, take
6335 dpyinfo as argument.
6336
6337 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6338
6339 * Makefile.in (xsmfns.o): Add more depenedencies.
6340
afa88464
DL
63412003-08-21 Dave Love <fx@gnu.org>
6342
6343 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6344
f730033e
KH
63452003-08-21 Kenichi Handa <handa@m17n.org>
6346
6347 * term.c (term_init): Fix previous change; don't rely on the
6348 length of `buffer' if TERMINFO is defined.
6349
6dca786c
DL
63502003-08-20 Dave Love <fx@gnu.org>
6351
6352 * atimer.h: Include lisp.h.
6353
6354 * lisp.h (EMACS_LISP_H): New.
6355 (popup_activated_flag): Don't declare.
6356
6357 * alloca.c: Some merging with gnulib. Change logic and doc
6358 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6359 [DO_BLOCK_INPUT]: Don't include lisp.h.
6360 (xmalloc, xfree): Declare.
6361 (malloc): Don't declare.
6362
0930c1a1 6363 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6364 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6365 atimer.h, blockinput.h.
6366
6367 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6368
78819ebb 6369 * alloca.s: Remove.
6dca786c 6370
3a06a6d9
RS
63712003-08-19 Gerd Moellmann <gerd@gnu.org>
6372
6373 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6374 use -lncurses.
6375
6376 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6377 FreeBSD returns something longer than 2044. Abort if the end of
6378 the buffer is overwritten.
6379
27eeee55
MB
63802003-08-19 Miles Bader <miles@gnu.org>
6381
6382 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6383
2f297815
GM
63842003-08-19 Gerd Moellmann <gerd@gnu.org>
6385
f4446bbf
GM
6386 * alloc.c (lisp_align_malloc): Check for memory full when
6387 allocating ablocks, which also avoids freeing a pointer into an
6388 ablocks structure.
6389
6390 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6391
0930c1a1 6392 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6393
0e7d7aae
RS
63942003-08-16 Richard M. Stallman <rms@gnu.org>
6395
6396 * editfns.c (Fencode_time): Doc fix.
6397
63982003-08-16 David Ponce <david@dponce.com>
6399
6400 * fileio.c (Fwrite_region): Fix conditional expression to issue
6401 the right message.
6402
b6189c3b 64032003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6404
6405 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6406 Set default value to 1.
0e7d7aae 6407
5d551295
KH
64082003-08-15 Kenichi Handa <handa@m17n.org>
6409
6410 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6411 what autoscaled.
6412 (best_matching_font): Once we find a better scalable font, set
6413 non_scalable_has_exact_height_p to 1.
6414 (try_font_list): Call try_alternative_families to try any family
6415 with the given registry.
6416
1661e56b
AS
64172003-08-09 Andreas Schwab <schwab@suse.de>
6418
f29181dc
AS
6419 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6420
1661e56b
AS
6421 * print.c (print_string): Fix printing of multibyte string with
6422 nontrivial printcharfun.
6423
465aa50a
JD
64242003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6425
6426 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6427
6428 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6429
e430e5ba
KH
64302003-07-31 Kenichi Handa <handa@m17n.org>
6431
6432 * process.c (read_process_output): Return the actually read bytes
6433 instead of the result of decoding.
6434
97e7188e
KH
64352003-07-31 Kenichi Handa <handa@m17n.org>
6436
6437 * xterm.h (struct x_bitmap_record): New member have_mask.
6438
6439 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6440 to 0.
6441 (x_create_bitmap_from_file): Likewise.
6442 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6443 (x_destroy_all_bitmaps): Likewise.
6444 (x_create_bitmap_mask): Set have_mask member to 1.
6445
b53094d6
RS
64462003-07-30 Richard M. Stallman <rms@gnu.org>
6447
6448 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6449
631f2082
JD
64502003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6451
6452 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6453
c855f2ca
RS
64542003-07-29 Richard M. Stallman <rms@gnu.org>
6455
6456 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6457 Conditionalize XIM code on HAVE_XIM.
6458
6459 * fns.c (Fclear_string): New function.
6460 (syms_of_fns): defsubr it.
6461
b6189c3b 64622003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6463
0930c1a1 6464 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6465
29ea8ae9
SM
64662003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6467
6468 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6469
6470 * buffer.c (delete_all_overlays): New function.
6471 * buffer.h (delete_all_overlays): Declare.
6472 * coding.c (run_pre_post_conversion_on_str):
6473 * print.c (temp_output_buffer_setup):
6474 * fileio.c (Finsert_file_contents):
6475 * minibuf.c (get_minibuffer): Use it.
6476
1dd7ccf2
AC
64772003-07-22 Andrew Choi <akochoi@shaw.ca>
6478
6479 * unexmacosx.c (unexec_regions_sort_compare):
6480 (unexec_regions_merge): New functions. Sort and merge unexec
6481 regions before dumping them.
6482
f57bd967
DL
64832003-07-22 Dave Love <fx@gnu.org>
6484
6485 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6486
7cdee936
SM
64872003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6488
6489 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6490 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6491 MARKBIT as the gcmarkbit for strings.
6492
e50886d3
RS
64932003-07-21 Richard M. Stallman <rms@gnu.org>
6494
6495 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6496
29ea8ae9 6497 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6498 (syms_of_fns): Corresponding change.
6499
6500 * alloc.c (syms_of_alloc): Doc fixes.
6501
65022003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6503
6504 * s/netbsd.h: Use -Wl syntax.
6505
fdc39b59
RS
65062003-07-17 Richard M. Stallman <rms@gnu.org>
6507
6508 * xterm.c (xim_initialize): Redo 6/24 change.
6509
9c53385f
SM
65102003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6511
6512 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6513 (Fswitch_to_buffer): Don't signal an error when switching to the same
6514 buffer in a dedicated window.
6515
6516 * alloc.c: Use bitmaps for cons, as was done for floats.
6517 (init_float, init_cons): Let the normal code allocate the first block.
6518 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6519 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6520 New macros.
6521 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6522 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6523 (live_cons_p): Check the pointer is not past the `conses' array.
6524 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6525 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6526 (survives_gc_p): Use CONS_MARKED_P and simplify.
6527 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6528
dde13196
PE
65292003-07-13 Paul Eggert <eggert@twinsun.com>
6530
6531 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6532 puts it into BSS instead, at least on Solaris 8 and 9.
6533 This is a valid optimization, and it may occur on other platforms,
6534 so Emacs should not assume that initializing a static variable to
6535 zero puts it into data.
6536 * alloc.c (pure, staticvec):
6537 Initialize these arrays to nonzero, so that they're not
6538 put into BSS by that optimization.
6539
a801bc34
SM
65402003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6541
6542 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6543 (lisp_align_malloc): Use posix_memalign is available.
6544 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6545 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6546 for consistency. Update users.
6547
0c8b2afa
RS
65482003-07-13 Richard M. Stallman <rms@gnu.org>
6549
6550 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6551
668c2ab0
JB
65522003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6553
6554 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6555 and use the Gtk+ function gtk_window_icon_from_file if available.
6556
6557 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6558 handle mask of bitmaps.
6559 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6560 mask property.
6561 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6562
6563 * xterm.h (xg_set_icon): New function.
6564
800bebe3
RS
65652003-07-12 Paul Eggert <eggert@twinsun.com>
6566
6567 * unexelf.c (unexec): Consider a section to precede the .bss
6568 section if its addresses overlap that of .bss.
6569
69e38995
RS
65702003-07-12 Richard M. Stallman <rms@gnu.org>
6571
6572 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6573
6574 * config.in (HAVE_CRTIN): Add #undef.
6575 (INLINE): Really inline only if OPTIMIZE is defined.
6576
6577 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6578 END_FILES_1.
6579 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6580 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6581
6582 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6583 (TERMINFO): Define.
6584 (LIBS_TERMCAP): Define.
6585 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6586
6587 * xfns.c: Include libpng/png.h instead of png.h.
6588
f1d0c238
AS
65892003-07-11 Andreas Schwab <schwab@suse.de>
6590
6591 * buffer.c (modify_overlay): Update prototype.
6592 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6593 Likewise.
6594
5f6bf5fe
SM
65952003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6596
6597 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6598 (struct interval): Move to intervals.h.
6599 (struct Lisp_Marker): Use EMACS_INT for position info.
6600 (forward_point): Remove prototype of defunct function.
6601 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6602 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6603 (syms_of_textprop, set_text_properties): Remove prototypes that are
6604 already in intervals.h.
6605
6606 * intervals.h (struct interval): Move from lisp.h.
6607 Use EMACS_INT for position and size info.
6608
6609 * coding.c: Include intervals.h for Fset_text_properties.
6610
6611 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6612 position and length information.
6613
2765b457
SM
66142003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6615
6616 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6617 position and length information.
6618
2410d73a
SM
66192003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6620
6621 Change overlays_after and overlays_before so the overlays themselves
6622 are linked into lists, rather than using cons cells. After all each
6623 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6624 Lisp_Overlay for free and save up one cons cell per overlay (not
6625 to mention one indirection when traversing the list of overlay).
6626
6627 * lisp.h (struct Lisp_Overlay): New field `next'.
6628
6629 * buffer.h (struct buffer): Change overlays_before and overlays_after
6630 from Lisp lists of overlays to pointers to overlays.
6631
6632 * buffer.c (overlay_strings, recenter_overlay_lists):
6633 Fix typo in eassert in last commit.
6634 (unchain_overlay): New function.
6635 (add_overlay_mod_hooklist): Use AREF.
6636 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6637 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6638 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6639 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6640 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6641 Adjust to new type of overlays_(before|after).
6642
6643 * alloc.c (mark_object): Mark the new `next' field of overlays.
6644 (mark_buffer): Manually mark the overlays_(after|before) fields.
6645
6646 * coding.c (run_pre_post_conversion_on_str):
6647 * editfns.c (overlays_around):
6648 * xdisp.c (load_overlay_strings):
6649 * fileio.c (Finsert_file_contents):
6650 * indent.c (current_column):
6651 * insdel.c (signal_before_change, signal_after_change):
6652 * intervals.c (set_point_both):
6653 * print.c (temp_output_buffer_setup): Use new type for
6654 overlays_(before|after).
6655
04812929
SM
66562003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6657
6658 * buffer.c (report_overlay_modification): Don't run hooks while
6659 traversing the list of overlays.
6660
6661 * buffer.h (struct buffer): Use an int for overlay_center.
6662 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6663 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6664
6665 * buffer.c (reset_buffer, recenter_overlay_lists)
6666 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6667 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6668 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6669 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6670 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6671
6672 * xdisp.c (fast_find_position): Remove unused var.
6673
6674 * cmds.c (Qexpand_abbrev): New sym.
6675 (syms_of_cmds): Initialize it.
6676 (internal_self_insert): Use it to call expand-abbrev.
6677
2e7ecf15
KS
66782003-07-09 Kim F. Storm <storm@cua.dk>
6679
f9711de4 6680 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6681 was configured with --without-xim.
42f81f64 6682 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6683
c6de56a0
RS
66842003-07-07 Richard M. Stallman <rms@gnu.org>
6685
6686 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6687
6688 * alloc.c (Fgarbage_collect): Doc fix.
6689
b6189c3b 66902003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6691
6692 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6693
bfe1a3f7
SM
66942003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6695
04812929
SM
6696 * minibuf.c (read_minibuf): UNGCPRO before returning.
6697 (Ftry_completion, Fall_completions): Doc fix.
6698
bfe1a3f7
SM
6699 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6700 now that `floats' is not the last element of the struct any more.
6701
ee79d1aa
JR
67022003-07-06 Jason Rumney <jasonr@gnu.org>
6703
6704 * w32term.h (ClipboardSequence_Proc): New type.
6705
6706 * w32fns.c (clipboard_sequence_fn): New variable.
6707 (globals_of_w32fns): Initialize it.
6708
6709 * w32select.c (last_clipboard_sequence_number): New variable.
6710 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6711 number if possible.
6712
49723c04
SM
67132003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6714
4698665f
SM
6715 * m/amdx86-64.h (MARKBIT):
6716 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6717 MARKBIT and ARRAY_MARK_FLAG any more.
6718
6719 * m/hp800.h (XSETMARKBIT):
6720 * m/sr2k.h (XSETMARKBIT):
6721 * lisp.h (XSETMARKBIT): Remove unused macro.
6722
49723c04
SM
6723 * lisp.h (mark_object): Change prototype.
6724
6725 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6726 (last_marked): Change accordingly.
6727 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6728 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6729 (mark_buffer): Update calls to mark_object.
6730
6731 * bytecode.c (mark_byte_stack):
6732 * fns.c (sweep_weak_table):
6733 * keyboard.c (mark_kboards): Update calls to mark_object.
6734
1d660eca
JR
67352003-07-06 Jason Rumney <jasonr@gnu.org>
6736
6737 * alloc.c (struct ablock): Only include padding when there is some.
6738
618b5ae4
SM
67392003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6740
6741 * alloc.c (ALIGN): Add casts to simplify usage.
6742 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6743 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6744 (struct ablock, struct ablocks): New types.
6745 (free_ablock): New global var.
6746 (lisp_align_malloc, lisp_align_free): New functions.
6747 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6748 (struct float_block): Reorder and add gcmarkbits.
6749 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6750 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6751 (init_float, make_float): Use lisp_align_malloc.
6752 (free_float, live_float_p): Don't use `type' any more.
6753 (make_float): Use FLOAT_UNMARK to access to mark bit.
6754 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6755 Use FLOAT_MARKED_P to access the mark bit.
6756 (pure_alloc): Simplify use of ALIGN.
6757 (mark_object): Use FLOAT_MARK to access the mark bit.
6758 (gc_sweep): Use new macros to access the float's mark bit.
6759 (init_alloc_once): Init free_ablock.
6760
6761 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6762
3ef06d12
SM
67632003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6764
6765 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6766 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6767 (allocate_buffer): Move.
6768 (string_bytes): Don't mask markbit of `size_byte'.
6769 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6770 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6771 Use the `size' field of buffers (rather than the `name' field) for
6772 the mark bit, as is done for all other vectorlike objects.
6773 Use the new macros to access the mark bit of vectorlike objects.
6774
e81043aa
RS
67752003-06-26 Richard M. Stallman <rms@gnu.org>
6776
6777 * puresize.h (BASE_PURESIZE): Increment base size.
6778
6779 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6780
6781 * xterm.c (xim_initialize): Undo previous change.
6782
2d0834cc
SM
67832003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6784
6785 * alloc.c (survives_gc_p): Simplify.
6786
6787 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6788
6789 * window.c (Fset_window_dedicated_p): Simplify.
6790 (display_buffer_1): Don't raise the win from which minibuf was entered.
6791 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6792 (Fminibuffer_selected_window): Simplify.
6793
6794 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6795
6796 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6797 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6798
6799 * insdel.c (check_markers, adjust_markers_for_delete)
6800 (adjust_markers_for_insert, adjust_markers_for_replace)
6801 (prepare_to_modify_buffer, RESTORE_VALUE):
6802 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6803 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6804 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6805 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6806 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6807 * editfns.c (save_excursion_restore, transpose_markers):
6808 * window.c (delete_window):
6809 * xdisp.c (message_dolog): Update for new types.
6810
d54ae3d8
JD
68112003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6812
a5f696ac
JD
6813 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6814 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6815 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6816
6817 * frame.c (make_frame): Initialize default_face_done_p.
6818
6819 * frame.h (struct frame): Add default_face_done_p.
6820
d54ae3d8
JD
6821 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6822 will be defined.
6823
2336fe58
SM
68242003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6825
6826 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6827 Initialize the new field `gcmarkbit'.
6828 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6829 (mark_interval_tree): Don't mark the tree separately from the nodes.
6830 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6831 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6832 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6833
6834 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6835 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6836 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6837 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6838 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6839
bcea31c2
DL
68402003-06-24 Dave Love <fx@gnu.org>
6841
6842 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6843
6844 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6845 from gnulib.
6846
2601f59e
RS
68472003-06-21 Richard M. Stallman <rms@gnu.org>
6848
6849 * fileio.c (Fwrite_region): Alternate messages
6850 for append and partial write.
6851
6852 * keyboard.c (read_key_sequence): When converting upcase fn key to
6853 downcase, update fkey and keytran so `backspace' gets translated.
6854
6855 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6856
6857 * process.c (wait_reading_process_input): Don't signal SIGIO
6858 in batch mode.
6859
b5d2c621
KH
68602003-06-17 Kenichi Handa <handa@m17n.org>
6861
6862 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6863 composite.h.
6864
6865 * xselect.c: Don't include charset.h, coding.h, composite.h.
6866 (Qforeign_selection): New variable.
6867 (syms_of_xselect): Intern and static it.
6868 (selection_data_to_lisp_data): Return a unibyte string made from
6869 data with `foreign-selection' text property.
6870
6793bc63
SM
68712003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6872
6873 * termhooks.h (EVENT_INIT): New macro.
6874
6875 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6876
6877 * alloc.c (mark_kboards): Move to keyboard.c.
6878
6879 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6880 * xterm.c (x_dispatch_event):
6881 * xmenu.c (find_and_call_menu_selection):
6882 * xdisp.c (handle_tool_bar_click):
6883 * w32menu.c (menubar_selection_callback):
6884 * sysdep.c (kbd_input_ast, read_input_waiting):
6885 * msdos.c (dos_rawgetc):
6886 * macterm.c (mac_check_for_quit_char):
6887 * macmenu.c (menubar_selection_callback):
6888 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6889 data to kbd_buffer_store_event.
6890
b3ea810c
KS
68912003-06-15 Kim F. Storm <storm@cua.dk>
6892
6893 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6894 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6895
b8f75eda
KG
68962003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6897
6898 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6899
ba92ce48
KH
69002003-06-12 Kenichi Handa <handa@m17n.org>
6901
6902 * fileio.c (Fwrite_region): Save and restore restriction.
6903
b80263be
DL
69042003-06-12 Dave Love <fx@gnu.org>
6905
6906 * alloca.c (alloca): Declare arg as size_t.
6907
6793bc63
SM
6908 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6909 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 6910
b23c0a83
DL
69112003-06-11 Dave Love <fx@gnu.org>
6912
6913 * search.c (shrink_regexp_cache): Use xrealloc.
6914 (syms_of_search): Use xmalloc.
6915
700e47c2
KS
69162003-06-10 Kim F. Storm <storm@cua.dk>
6917
6918 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6919 Adjust phys_cursor.x to be relative to window box, rather than
6920 text area before checking -- to ensure cursor is redrawn when
6921 exposing window.
6922 Note: This also fixes a similar (older) bug if display margins
6923 are present.
6924
f11aa0b2
KH
69252003-06-06 Kenichi Handa <handa@m17n.org>
6926
6927 * coding.c (encoding_buffer_size): If coding->type is
6928 coding_type_ccl, double magnification on CRLF encoding.
6929
3d143690
JR
69302003-06-06 Jason Rumney <jasonr@gnu.org>
6931
6932 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6933 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6934
6935 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6936 Mac too.
6937
f16205ca
DL
69382003-06-05 Dave Love <fx@gnu.org>
6939
b23c0a83
DL
6940 * strftime.c: Merge changes from gnulib.
6941
f16205ca
DL
6942 * mktime.c (__mktime_internal): Merge changes from gnulib
6943 involving year 69 and dst2.
6944
6945 Changes to merge with gnulib version and be consistent with the
6946 autoconf test:
6947
6793bc63
SM
6948 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6949 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
6950 [HAVE_LOCALE_H]: Include locale.h.
6951 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6952
9b87a0bc
KS
69532003-06-05 Kim F. Storm <storm@cua.dk>
6954
6955 * window.c (coordinates_in_window): Convert X and Y to window
6956 relative coordinates inside mode-line and header-line parts.
6957 Convert X and Y to margin area relative coordinates inside left
6958 and right display margin parts.
6959
5a8a15ec
JR
69602003-06-05 Jason Rumney <jasonr@gnu.org>
6961
6962 * w32fns.c (add_system_logical_colors_to_map): New function.
6963 (Fx_open_connection): Use it.
6964
01ed8ff1
SM
69652003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6966
6967 * process.c (allocate_pty): Revert part of the previous patch.
6968 (Faccept_process_output): Simplify.
6969
b427b65d
JR
69702003-06-04 Jason Rumney <jasonr@gnu.org>
6971
6972 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6973
6974 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6975 (lispy_mouse_wheel_names): Remove.
6976 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6977 Always define drag_and_drop_syms.
6978
6979 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6980 WHEEL_EVENT events.
6981
914a8c47
SM
69822003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6983
01ed8ff1
SM
6984 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6985
914a8c47
SM
6986 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6987
adcb132c
JD
69882003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6989
6990 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6991 menu item label.
6992
be781fa7
RS
69932003-06-03 Richard M. Stallman <rms@gnu.org>
6994
6995 * window.c (Fwindow_edges): Doc fix.
6996 (Fwindow_pixel_edges, Fwindow_inside_edges)
6997 (Fwindow_inside_pixel_edges): New functions.
6998 (syms_of_window): defsubr them.
6999
7000 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7001 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7002
914a8c47
SM
70032003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7004
7005 * dispnew.c (Fsit_for): Don't lie about the number of args.
7006
5b07197a
DL
70072003-06-02 Dave Love <fx@gnu.org>
7008
7009 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7010 (syms_of_callproc) <process-environment>: Doc fix.
7011
7012 * doc.c: Use HAVE_FCNTL_H, not USG5.
7013
7014 * xfaces.c (font_rescale_ratio): Fix for K&R.
7015
7016 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7017
7018 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7019
7020 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7021
7022 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7023 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7024
d7107586 7025 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7026
7027 * xmenu.c (ENCODE_MENU_STRING): New.
7028 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7029 Use it.
7030
7031 * coding.h (ENCODE_UTF_8): New.
7032 (Qutf_8): Declare.
7033
7034 * coding.c (Qutf_8): New.
7035 (syms_of_coding): Intern it.
7036
7037 * fns.c: Doc fixes.
7038
7335b336
KH
70392003-06-02 Kenichi Handa <handa@m17n.org>
7040
7041 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7042
914a8c47
SM
70432003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7044
7045 * lread.c (openp): Make sure STR is a string.
7046
9862c135
JR
70472003-06-01 David Ponce <david@dponce.com>
7048
cab27d04 7049 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7050 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7051
7052 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7053 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7054 (discard_mouse_events): Discard WHEEL_EVENT events too.
7055 (lispy_wheel_names, wheel_syms): New.
7056 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7057 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7058 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7059
7060 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7061 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7062 WHEEL_EVENT events.
7063
f984e73e
JPW
70642003-05-31 John Paul Wallington <jpw@gnu.org>
7065
7066 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7067 timer are in lisp/emacs-lisp.
7068
1efcd78f
KH
70692003-05-31 Kenichi Handa <handa@m17n.org>
7070
458c8af4
KH
7071 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7072 region when a buffer is changed to unibyte.
7073
1efcd78f
KH
7074 * charset.h (VALID_LEADING_CODE_P): New macro.
7075 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7076
778e2804
KH
7077 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7078 is nonzero, accept multibyte form of eight-bit-control chars.
7079 (decode_composition_emacs_mule): Likewise.
7080 (decode_coding_emacs_mule): Likewise.
7081 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7082 multibyte form of eight-bit-control chars.
7083
7084 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7085 (Finsert_file_contents): If coding-system-for-read is bound to
7086 Qauto_save_coding, use the coding system emacs-mule with special
7087 setting for recovering a file.
7088 (choose_write_coding_system): On auto saving, use the coding
7089 system emacs-mule with special setting for auto saving.
7090 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7091
034060e4
KH
70922003-05-30 Kenichi Handa <handa@m17n.org>
7093
7094 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7095 properly before calling ccl_driver.
7096
778e2804 7097 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7098
cab27d04 7099 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7100 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7101 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7102
595f5aa5
GM
71032003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7104
7105 * xfaces.c (realize_default_face): Do not abort if lface is
7106 non-existent - reverts change from 2003-05-19.
7107
103e0180
KH
71082003-05-29 Kenichi Handa <handa@m17n.org>
7109
7110 * coding.c (decode_coding_iso2022): Pay attention to the byte
7111 sequence of CTEXT extended segment, and retain those bytes as is.
7112
71132003-05-28 Kenichi Handa <handa@m17n.org>
7114
cab27d04 7115 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7116 of CODING_REPLACEMENT_CHARACTER.
7117 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7118 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7119 check this flag on encoding.
cab27d04
SM
7120 (encode_coding_sjis_big5):
7121 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7122 (Fset_terminal_coding_system_internal):
7123 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7124 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7125
7126 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7127 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7128 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7129
ff6a3bfb 71302003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7131
ff6a3bfb
RS
7132 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7133
7134 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7135
1963c428
KS
71362003-05-28 Kim F. Storm <storm@cua.dk>
7137
7138 * xdisp.c (expose_window): Fix error in calculation of
7139 window relative coordinates of area to redisplay.
7140
2b5d4601
JR
71412003-05-27 Jason Rumney <jasonr@gnu.org>
7142
7143 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7144
1c64a4a2
JB
71452003-05-27 David Ponce <david@dponce.com>
7146
7147 Handle W32 mouse wheel events as mouse click events, like in X.
7148
7149 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7150 MOUSE_WHEEL_EVENT anymore.
7151
7152 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7153 Scrolling down/up the mouse wheel is respectively mapped to mouse
7154 button 4 and 5.
7155 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7156 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7157 WM_MOUSEWHEEL events.
7158
2d031b89
AS
71592003-05-27 Andreas Schwab <schwab@suse.de>
7160
20464fdf
AS
7161 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7162
2d031b89
AS
7163 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7164 partially visible line.
7165
7166 * alloc.c (Fgarbage_collect): Fix last change.
7167
97bc76d4
JPW
71682003-05-26 John Paul Wallington <jpw@gnu.org>
7169
7170 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7171
56613f06
SM
71722003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7173
7174 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7175 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7176
7177 * window.h (window_box_text_cols): Declare.
7178
7179 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7180 (x_draw_vertical_border): Remove unused var `f'.
7181
7182 * xfaces.c (build_scalable_font_name): Remove `unused var
7183 pixel_size' warning.
7184
7185 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7186
7187 * unexelf.c (unexec): Remove `unused var n' warning.
7188
7189 * strftime.c (my_strftime_localtime_r): Remove `defined but
7190 unused' warning.
7191
7192 * process.c (allocate_pty): Remove `unused var stb' and
7193 `cp might be used uninitialized' warnings.
7194
7195 * dispnew.c (mode_line_string): Remove unused var `f'.
7196
7197 * coding.c (find_safe_codings): Remove unused var `i'.
7198
7199 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7200
7201 * buffer.c (Fkill_buffer): Remove unused var `list'.
7202
7203 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7204
93421a1f
JD
72052003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7206
7207 * frame.c (make_frame): Condition want_fullscreen with
7208 HAVE_WINDOW_SYSTEM.
7209
c4b8aebc
JB
72102003-05-25 Juanma Barranquero <lektu@terra.es>
7211
7212 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7213 (Fwindow_scroll_bars): Fix typo in docstring.
7214
0416870b
KS
72152003-05-24 Kim F. Storm <storm@cua.dk>
7216
7217 The following changes serve several purposes:
7218
7219 1) Swap the position of fringes and display margins in windows, i.e.
7220 the fringes are now displayed between the margins and the text area
7221 (by default).
7222
7223 2) Allow fringe and scroll bar parameters to be set per-buffer and
7224 per-window (like display margins). Such settings are now stored
7225 in window configurations, preserved when frames are resized, and
9018a88e 7226 copied when windows are split vertically or horizontally.
0416870b
KS
7227 Several bugs related to display margins have been fixed.
7228
7229 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7230
0416870b
KS
7231 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7232 rather than FRAME_WIDTH (FRAME_FONT (f)).
7233
7234 5) Introduce a consistent naming of variables, members and macros
7235 depending on whether their value is measured in pixels or in
7236 canonical columns/lines. Pixel dimensions are named *_width and
7237 *_height, while canonical columns/lines are named *_cols and
7238 *_lines. Pixel positions are named *_x and *_y, while column/line
7239 positions are named *_col and *_line.
7240
7241 6) Consolidate more of the X, W32, and MAC gui code by moving
7242 common data into struct frame, and generalize it for the non-gui
7243 case by using suitable defaults.
7244
7245 7) Cleanup and consolidate the macros controlling frame and window
7246 layout into frame.h and window.h, and generalize the use of the
7247 various window_box_* functions (enhanced to handle the new fringe
7248 position and the per-window fringe and scroll bar settings).
7249
7250 * frame.h (struct frame): Rename members height to text_lines,
7251 width to text_cols, window_height to total_lines, window_width to
7252 total_cols, new_height to new_text_lines, new_width to
7253 new_text_cols. All uses changed.
7254 (struct frame): New members which consolidate common members of
7255 x_output, w32_output, and mac_output structures: left_pos,
7256 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7257 win_gravity, size_hint_flags, border_width, internal_border_width,
7258 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7259 want_fullscreen. All uses changed.
7260 (struct frame): New member column_width contaning the canonical
7261 column width, analogue to line_height. All uses changed.
7262 (struct frame): Rename members scroll_bar_pixel_width to
7263 config_scroll_bar_width, and scroll_bar_cols to
7264 config_scroll_bar_cols. All uses changed.
7265 (struct frame): New member scroll_bar_actual_width which
7266 consolidates and renames the vertical_scroll_bar_extra member of
7267 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7268 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7269 from x/w32/macterm.h files. All uses changed. Also change code
7270 which referred to f->output_data...->pixel_height.
cab27d04 7271 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7272 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7273 which referred to f->output_data...->pixel_width.
cab27d04 7274 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7275 Also change code which referred to f->height.
cab27d04 7276 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7277 Also change code which referred to f->width.
7278 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7279 to update new_text_lines and new_text_cols members directly.
cab27d04 7280 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7281 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7282 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7283 FRAME_SCROLL_BAR_COLS. All uses changed.
7284 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7285 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7286 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7287 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7288 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7289 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7290 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7291 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7292 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7293 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7294 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7295 Unconditionally return line_height member (it now has proper value
7296 also for non-window frames).
7297 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7298 return new column_width member (rather than the default font width).
7299 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7300 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7301 from x/w32/macterm.h files. Unconditionally return corresponding
7302 member of frame structure (they now have proper values also for
7303 non-window frames).
cab27d04 7304 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7305 Calculate return value from left and right widths.
7306 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7307 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7308 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7309 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7310 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7311 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7312 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7313 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7314 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7315 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7316 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7317 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7318 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7319 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7320 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7321 consolidated from x/mac/w32term.h.
cab27d04 7322 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7323 consolidated from x/mac/w32term.h.
cab27d04 7324 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7325 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7326 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7327 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7328
7329 * window.h (struct window): Rename members left to left_col,
7330 top to top_line, height to total_lines, width to total_cols,
7331 left_margin_width to left_margin_cols, right_margin_width to
7332 right_margin_cols, orig_height to orig_total_lines, orig_top to
7333 orig_top_line. All uses changed.
7334 (struct window): New members left_fringe_width, right_fringe_width,
7335 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7336 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7337 New macros primarily used to simplify other macros.
7338 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7339 referred to XINT (w->width).
7340 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7341 referred to XINT (w->height).
7342 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7343 referred to XINT (w->width) * canon_x_unit.
7344 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7345 referred to XINT (w->height) * canon_y_unit.
7346 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7347 referred to XINT (w->left).
cab27d04 7348 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7349 all uses and code that referred to XINT (w->left) + XINT (w->width).
7350 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7351 referred to XINT (w->top).
7352 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7353 referred to XINT (w->top) + XINT (w->height).
7354 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7355 referred to XINT (w->left) * canon_x_unit.
7356 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7357 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7358 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7359 referred to XINT (w->top) * canon_y_unit.
7360 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7361 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7362 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7363 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7364 All uses changed.
cab27d04 7365 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7366 All uses changed.
cab27d04 7367 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7368 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7369 Do not exclude left fringe width.
cab27d04 7370 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7371 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7372 Do not exclude fringe widths.
7373 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7374 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7375 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7376 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7377 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7378 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7379 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7380 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7381 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7382 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7383 New macros. Change code which referenced corresponding
7384 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7385 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7386 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7387 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7388 allow per-window scroll-bar settings.
7389 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7390 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7391 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7392 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7393 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7394 FRAME_SCROLL_BAR_WIDTH.
7395 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7396 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7397 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7398 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7399 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7400 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7401 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7402 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7403 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7404 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7405 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7406 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7407 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7408 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7409 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7410 (window_from_coordinates): Update prototype.
7411 (Fset_window_buffer): Update EXFUN.
7412 (set_window_buffer): Update prototype.
9018a88e 7413
0416870b 7414 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7415 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7416 changed.
7417 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7418 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7419 internal_border_width is now set to 0 for non-window frames.
7420 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7421 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7422 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7423 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7424 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7425 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7426 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7427 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7428 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7429 Move to window.h and renamed [see window.h changes].
0416870b
KS
7430 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7431 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7432 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7433 Use WINDOW_TOTAL_LINES.
0416870b
KS
7434 (frame_update_line_height): Remove prototype.
7435
7436 * buffer.h (struct buffer): Rename members measured in columns:
7437 left_margin_width to left_margin_cols, right_margin_width to
7438 right_margin_cols. All uses changed.
7439 New members left_fringe_width, right_fringe_width,
7440 fringes_outside_margins for per-buffer fringe settings.
7441 New members scroll_bar_width and vertical_scroll_bar_type for
7442 per-buffer scroll bar settings.
7443
7444 * buffer.c (init_buffer_once): Set buffer_defaults and
7445 buffer_local_flags for new buffer-local variables
7446 left_fringe_width, right_fringe_width, fringes_outside_margins,
7447 scroll_bar_width, and vertical_scroll_bar_type.
7448 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7449 default-* variables for them.
7450
7451 * dispnew.c: Make (many) trivial substitutions for renamed and
7452 new macros in dispextern.h, frame.h and window.h.
7453 (mode_line_string): No need to adjust width for mode lines, as it
7454 is already adjusted by the caller.
7455 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7456
0416870b
KS
7457 * frame.c: Make (many) trivial substitutions for renamed and
7458 new macros in dispextern.h, frame.h and window.h.
7459 (make_frame): Initialize left_fringe_width, right_fringe_width,
7460 fringe_cols, scroll_bar_actual_width, border_width,
7461 internal_border_width, column_width, line_height, x_pixels_diff,
7462 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7463 members with values suitable for a non-window frames.
7464
7465 * gtkutil.c: Make (many) trivial substitutions for renamed and
7466 new macros in dispextern.h, frame.h and window.h.
9018a88e 7467
0416870b
KS
7468 * indent.c: Make (few) trivial substitutions for renamed and
7469 new macros in dispextern.h, frame.h and window.h.
7470
7471 * keyboard.c: Make (many) trivial substitutions for renamed and
7472 new macros in dispextern.h, frame.h and window.h.
7473 (make_lispy_event): Use window positions returned from
7474 window_from_coordinates when constructing the lisp event for
7475 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7476 (incorrect) values locally.
7477 (make_lispy_movement): Use window positions returned from
7478 window_from_coordinates when constructing the lisp event, rather
7479 than calculating (incorrect) values locally.
7480
7481 * scroll.c: Make (some) trivial substitutions for renamed and
7482 new macros in dispextern.h, frame.h and window.h.
7483
7484 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7485 scroll-bars.
7486
7487 * sysdep.c: Make (few) trivial substitutions for renamed and
7488 new macros in dispextern.h, frame.h and window.h.
7489
7490 * term.c: Make (some) trivial substitutions for renamed and
7491 new macros in dispextern.h, frame.h and window.h.
7492
7493 * widget.c: Make (few) trivial substitutions for renamed and
7494 new macros in dispextern.h, frame.h and window.h.
7495
7496 * window.c: Make (many) trivial substitutions for renamed and
7497 new macros in dispextern.h, frame.h and window.h.
7498 (make_window): Initialize new members
7499 left_margin_cols, right_margin_cols, left_fringe_width,
7500 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7501 and vertical_scroll_bar_type.
cab27d04 7502 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7503 and per-window fringes and scroll-bars.
0416870b 7504 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7505 frame's internal_border_width (the effect normally negible since
0416870b
KS
7506 the internal_border_width is typically 0 or 1 pixel, but very
7507 noticeable for an internal_border_width of e.g. 25 pixels).
7508 Upon successful return (other than ON_NOTHING), the coordinates
7509 are now always properly converted to window relative for the
7510 given display element.
7511 (window_from_coordinates): Add new parameters wx and wy to
7512 return the window relative x and y position in the returned
7513 window and part. A null arg means, don't return the position.
7514 All callers changed.
7515 (adjust_window_margins): New function which may reduce the width
7516 of the display margins if a window's text area is too small after
7517 resizing or splitting windows.
7518 (size_window): Fix bug that did not account for display margin
7519 widths when checking the minimum width of a window; use
7520 adjust_window_margins.
7521 (set_window_buffer): Call Fset_window_fringes and
7522 Fset_window_scroll_bars to setup per-window elements.
7523 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7524 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7525 (e.g. after splitting a window or resizing the frame).
7526 All callers changed.
0416870b
KS
7527 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7528 (Fsplit_window): Duplicate original window's display margin,
7529 fringe, and scroll-bar settings; then call Fset_window_buffer with
7530 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7531 window to only preserve the display margins in one of the windows.
c4b8aebc 7532 When splitting horizontally, call adjust_window_margins on both
0416870b 7533 windows to ensure that the text area of the new windows is non too
f9711de4 7534 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7535 width of the split window was less than the width of the display
7536 margins.
cab27d04 7537 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7538 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7539 Fix bug that caused vertical separator to be subtracted also on
7540 window frames. Fix another bug that did not reduce the returned
7541 value by the columns used for display margins.
7542 (window_scroll_line_based): Fix bug related to scrolling too much
7543 when display margins are present (implicitly fixed by the fix to
7544 window_box_text_cols).
7545 (scroll_left, scroll_right): Fix bug related to scrolling too far
7546 by default when display margins are present (implicitly fixed by
7547 the fix to window_box_text_cols).
7548 (struct saved_window): Rename members left to left_col, top to
7549 top_line, width to total_cols, height to total_lines, orig_top to
7550 orig_top_line, orig_height to orig_total_lines. All uses changed.
7551 New members left_margin_cols, right_margin_cols,
7552 left_fringe_width, right_fringe_width, fringes_outside_margins,
7553 scroll_bar_width, and vertical_scroll_bar_type for saving
7554 per-window display elements.
7555 (Fset_window_configuration): Restore display margins, fringes,
7556 and scroll bar settings. This fixes a bug which caused display
7557 margins to be discarded when saving and restoring a window
7558 configuration.
7559 (save_window_save): Save display margins, fringes, and scroll bar
7560 settings. This fixes a bug which caused display margins to be
7561 discarded when saving and restoring a window configuration.
7562 (Fset_window_margins): Do nothing if display margins are not
7563 really changed. Otherwise, call adjust_window_margins to ensure
7564 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7565 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7566 the width of the window.
7567 (Fset_window_fringes): New defun to allow user to specifically set
7568 this window's fringe widths and position vs. display margins.
cab27d04 7569 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7570 (Fset_window_scroll_bars): New defun to allow user to specifically
7571 set this window's scroll bar width and position.
7572 (Fwindow_scroll_bars): New defun to return window's actual scroll
7573 bar settings.
7574 (compare_window_configurations): Also compare display margins,
7575 fringes, and scroll bar settings.
7576 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7577
7578 * xdisp.c: Make (many) trivial substitutions for renamed and
7579 new macros in dispextern.h, frame.h and window.h.
7580 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7581 and new fringe vs. display margin position. Note that returned
0416870b
KS
7582 value is no longer guaranteed to be a whole multiple of the frame
7583 column width, since per-window fringes may now be any width.
7584 (window_box_left_offset): New function like window_box_left, but
7585 value is relative to left border of window (rather than frame).
7586 (window_box_right_offset): New function like window_box_right,
7587 but value is relative to left border of window.
7588 (window_box_left): Adapt to per-window fringes and scroll bars,
7589 and new fringe vs. display margin position. Simplify by using
7590 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7591 (window_box): Allow null args for unnecessary return values;
7592 change/simplify relevant callers.
7593 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7594 and new fringe vs. display margin position.
7595 Use window_box_left_offset and window_box_right_offset
0416870b 7596 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7597 scroll bars, and new fringe vs. display margin position.
7598 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7599 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7600 fringe vs. display margin position.
7601 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7602 (redisplay_window): Adapt to per-window scroll bars.
7603 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7604 bars, and new fringe vs. display margin position.
7605 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7606 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7607 bars, and new fringe vs. display margin position. Fix bug which
7608 increased total width of full_width rows by width of scroll bars
7609 although window's total width already includes that.
7610 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7611 (expose_area): Simplify using window_box_left_offset.
7612 (x_draw_vertical_border): Handle per-window scroll bar settings,
7613 mixing windows with left, right and no scroll bars.
7614
7615 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7616 where it's used in x_list_fonts (for clarity).
7617 (frame_update_line_height): Remove unused function; functionality
7618 is now done directly when setting the default font in x_set_font.
7619
7620 * xfns.c: Make (many) trivial substitutions for renamed and
7621 new macros in dispextern.h, frame.h and window.h.
7622
7623 * xmenu.c: Make (some) trivial substitutions for renamed and
7624 new macros in dispextern.h, frame.h and window.h.
7625
7626 * xterm.h (struct x_output): Move members left_pos, top_pos,
7627 border_width, pixel_height, pixel_width, line_height,
7628 internal_border_width, vertical_scroll_bar_extra,
7629 left_fringe_width, right_fringe_width, fringe_cols,
7630 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7631 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7632 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7633 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7634 (PIXEL_WIDTH, PIXEL_HEIGHT)
7635 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7636 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7637 frame.h and renamed [see frame.h changes].
7638 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7639 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7640 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7641 and renamed [see frame.h changes].
9018a88e 7642
0416870b
KS
7643 * xterm.c: Make (several) trivial substitutions for renamed and
7644 new macros in dispextern.h, frame.h and window.h.
cab27d04 7645 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7646 (scroll_run): Adapt to new fringe position.
7647 (glyph_rect): Use window coordinates returned from
7648 window_from_coordinates rather than frame_to_window_pixel_xy.
7649 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7650 scroll-bars.
7651 (handle_one_xevent): Simplify a USE_GTK conditional.
7652 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7653 (fringes are now inside margins, i.e. always in the clipping area).
7654 All callers changed.
7655 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7656 directly, then call compute_fringe_widths. Don't call
7657 frame_update_line_height.
7658
7659 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7660 border_width, pixel_height, pixel_width, line_height,
7661 internal_border_width, vertical_scroll_bar_extra,
7662 left_fringe_width, right_fringe_width, fringe_cols,
7663 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7664 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7665 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7666 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7667 (PIXEL_WIDTH, PIXEL_HEIGHT)
7668 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7669 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7670 frame.h and renamed [see frame.h changes].
7671 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7672 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7673 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7674 and renamed [see frame.h changes].
9018a88e 7675
0416870b
KS
7676 * w32term.c: Make (several) trivial substitutions for renamed and
7677 new macros in dispextern.h, frame.h and window.h.
cab27d04 7678 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7679 (glyph_rect): Use window coordinates returned from
7680 window_from_coordinates rather than frame_to_window_pixel_xy.
7681 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7682 scroll-bars.
7683 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7684 (fringes are now inside margins, i.e. always in the clipping area).
7685 All callers changed.
7686 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7687 directly, then call compute_fringe_widths. Don't call
7688 frame_update_line_height.
7689
7690 * w32console.c: Make (few) trivial substitutions for renamed and
7691 new macros in dispextern.h, frame.h and window.h.
7692
7693 * w32fns.c: Make (many) trivial substitutions for renamed and
7694 new macros in dispextern.h, frame.h and window.h.
7695
7696 * w32menu.c: Make (few) trivial substitutions for renamed and
7697 new macros in dispextern.h, frame.h and window.h.
7698
7699 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7700 border_width, pixel_height, pixel_width, line_height,
7701 internal_border_width, vertical_scroll_bar_extra,
7702 left_fringe_width, right_fringe_width, fringe_cols,
7703 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7704 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7705 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7706 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7707 (PIXEL_WIDTH, PIXEL_HEIGHT)
7708 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7709 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7710 frame.h and renamed [see frame.h changes].
7711 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7712 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7713 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7714 and renamed [see frame.h changes].
9018a88e 7715
0416870b
KS
7716 * macterm.c: Make (several) trivial substitutions for renamed and
7717 new macros in dispextern.h, frame.h and window.h.
cab27d04 7718 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7719 (glyph_rect): Use window coordinates returned from
7720 window_from_coordinates rather than frame_to_window_pixel_xy.
7721 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7722 scroll-bars.
7723 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7724 (fringes are now inside margins, i.e. always in the clipping area).
7725 All callers changed.
7726 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7727 directly, then call compute_fringe_widths. Don't call
7728 frame_update_line_height.
7729
7730 * macfns.c: Make (several) trivial substitutions for renamed and
7731 new macros in dispextern.h, frame.h and window.h.
9018a88e 7732 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7733
7734 * macmenu.c: Make (few) trivial substitutions for renamed and
7735 new macros in dispextern.h, frame.h and window.h.
7736
7737 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7738 and line_height, and use corresponding new members in struct
7739 frame. All uses changed.
7740 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7741 superseeded by corresponding macros in frame.h.
7742
7743 * msdos.c: Make (several) trivial substitutions for renamed and
7744 new macros in dispextern.h, frame.h and window.h.
7745 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7746 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7747 (internal_terminal_init): No need to initialize line_height here;
7748 it now defaults to 1.
7749
9018a88e
SM
77502003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7751
7752 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7753 dropping `down' events.
7754
016bd3c0
AS
77552003-05-24 Andreas Schwab <schwab@suse.de>
7756
7757 * coding.c (find_safe_codings): Fix last change.
7758
4dacadcc
TTN
77592003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7760
7761 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7762
319830ce
SM
77632003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7764
9018a88e
SM
7765 * xdisp.c (display_mode_element): Increase max depth.
7766 Simplify the error handling code. Use a different error string
7767 for the case where we hit the depth limit.
7768
319830ce
SM
7769 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7770
7771 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7772
77732003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7774
7775 * intervals.c (get_local_map): Don't get char-property of previous
7776 point any more: get_pos_property already does it and better.
7777
c67de8ba
DL
77782003-05-21 Dave Love <fx@gnu.org>
7779
7780 [Merged from unicode branch.]
7781
7782 * xfns.c (x_window, x_window): Use use_xim.
7783
7784 * xterm.c (use_xim): Initialize.
7785 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7786 (x_term_init): Maybe set use_xim.
7787
7788 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7789
edd3ff1d
JR
77902003-05-21 Jason Rumney <jasonr@gnu.org>
7791
7792 * unexw32.c (_start): Remove _fmode initialization.
7793
7794 * emacs.c (main) [WINDOWSNT]: Move it here.
7795
463f55ee
DL
77962003-05-20 Dave Love <fx@gnu.org>
7797
7798 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7799
af253914
RS
78002003-05-19 Richard M. Stallman <rms@gnu.org>
7801
7802 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7803 as value for QCfont attribute.
7804 (realize_default_face): lface should already exist; crash if not.
7805 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7806
7807 * frame.c (Fignore_event): Doc fix.
7808
1d211019
KH
78092003-05-19 Kenichi Handa <handa@m17n.org>
7810
7811 * coding.c (decode_coding_string): Handle post-read-conversion
7812 even if the coding doesn't require decoding.
7813
4dd68254
RS
78142003-05-18 Richard M. Stallman <rms@gnu.org>
7815
7816 * callproc.c (Fcall_process_region): Doc fix.
7817
14d87dc9
SM
78182003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7819
deca5d96
SM
7820 * lread.c (Fload): Print a message if package is obsolete.
7821
14d87dc9
SM
7822 * window.c (Fselect_window): Add optional `norecord' arg.
7823 (select_window_1): Fold into Fselect_window.
7824 (select_window_norecord): New function.
7825 (temp_output_buffer_show): Use it. Preserve current buffer.
7826
7827 * window.h (Fselect_window): Update declaration.
7828
7829 * window.c (delete_window, Fother_window, Fset_window_configuration):
7830 * minibuf.c (read_minibuf):
7831 * macterm.c (x_new_focus_frame):
7832 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7833 * callint.c (Fcall_interactively):
7834 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7835
7836 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7837
78f52183
DK
78382003-05-17 David Kastrup <dak@gnu.org>
7839
7840 * process.c (read_process_output): Back out change from 2003-03-09.
7841
14d87dc9
SM
78422003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7843
7844 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7845
7846 * textprop.c (text_property_stickiness): New arg `buffer'.
7847
7848 * intervals.h (text_property_stickiness): New arg `buffer'.
7849 (get_pos_property): Declare.
7850
7851 * intervals.c (get_local_map): Use get_pos_property, to obey
7852 stickiness and empty overlays.
7853 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7854 (merge_properties, intervals_equal, merge_properties_sticky):
7855 Use XCAR, XCDR.
7856 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7857
1fd1cc2f
RS
78582003-05-17 Richard M. Stallman <rms@gnu.org>
7859
4f9f637a
RS
7860 * minibuf.c (read_minibuf): If buffer is empty, record the default
7861 in the history.
7862 (Fminibuffer_complete_word): When deleting the overlap, take account
7863 of its real position.
7864
7865 * fns.c (map_char_table): Fix previous change.
7866
1fd1cc2f
RS
7867 * syntax.c (find_defun_start):
7868 When open_paren_in_column_0_is_defun_start,
7869 return beginning of buffer.
7870
7871 * lisp.h (map_char_table): Declare added arg.
7872
7873 * fns.c (map_char_table): New arg TABLE gets the master table.
7874 All calls changed.
7875 Process default and inheritance, resorting to Faref if necessary.
7876
7877 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7878 (Faccessible_keymaps): Pass new arg to map_char_table.
7879
7880 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7881
7882 * casetab.c (set_case_table): Pass new arg to map_char_table.
7883
7884 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7885
7886 * lisp.h (specbinding_func): New typedef.
7887 (struct specbinding): Use specbinding_func, to put the `volatile'
7888 in the right place.
7889
7890 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7891 to avoid GCC warning.
14d87dc9 7892
b6189c3b 78932003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7894
14d87dc9 7895 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7896
35fb885d
SM
78972003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7898
7899 * keyboard.c (apply_modifiers): Don't fill the other cache.
7900
9a274fbd
SM
79012003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7902
c55b5fad
SM
7903 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7904
9a274fbd
SM
7905 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7906 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7907 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7908 (Fset_window_configuration, Fcurrent_window_configuration)
7909 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7910 (Fpos_visible_in_window_p, mark_window_cursors_off)
7911 (window_internal_height, window_internal_width, Frecenter)
7912 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7913 (replace_buffer_in_all_windows, init_window_once, init_window)
7914 (syms_of_window, keys_of_window): Move from lisp.h.
7915 * lisp.h: Move window.c declarations to window.h.
7916
7917 * bytecode.c: Include window.h.
7918 * emacs.c: Include window.h.
7919
14d87dc9 7920 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7921 (keyremap): Add `parent' field.
7922 (keyremap_step): Use it. Remove `parent' argument.
7923 (read_key_sequence): Setup and use the new `parent' field.
7924
fd93e331
SM
79252003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7926
7927 * keyboard.c (adjust_point_for_property): Ensure termination.
7928
1c4001a1
SM
79292003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7930
7931 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7932 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7933 duplicated handling of function-key-map and key-translation-map
7934 in read_key_sequence.
7935 (read_key_sequence): Use them.
7936
7937 * keyboard.c (adjust_point_for_property): Try harder to move point
7938 to the non-sticky end of an invisible property.
7939
7940 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7941 property intangible as well.
7942
780379b1
AS
79432003-05-10 Andreas Schwab <schwab@suse.de>
7944
7945 * xmenu.c (single_menu_item): Change last parameter to void* to
7946 avoid warning.
7947
ca2de342
RS
79482003-05-09 Richard M. Stallman <rms@gnu.org>
7949
7950 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7951 Bind Qinhibit_modification_hooks to t so there will be no GC.
7952 Rename local `tem' to `save_deactivate_mark'.
7953
7954 * eval.c (specpdl_ptr): Declare volatile.
7955 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7956 before doing the work of unbinding it.
7957
7958 * lisp.h (struct specbinding): Declare elements volatile.
7959 (specpdl_ptr): Declare volatile.
7960
7961 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7962
7963 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7964 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7965
347003be
DL
79662003-05-08 Dave Love <fx@gnu.org>
7967
7968 * coding.c (Vlast_coding_system_used): Doc fix.
7969
5adcec23
JR
79702003-05-07 Jason Rumney <jasonr@gnu.org>
7971
7972 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7973 when system does not support them.
7974
5fe3b8a4
SM
79752003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7976
7977 * fileio.c (Qwrite_region_annotate_functions): New var.
7978 (build_annotations): Use it to process the global part of the hook.
7979 (syms_of_fileio): Init and staticpro it.
7980
7981 * keyboard.c (safe_run_hooks_error): Display a message instead of
7982 silently ignoring the error.
7983
79842003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7985
7986 * keyboard.c (input_available_signal): Mark static.
7987 (menu_bar_items): Use map_keymap.
7988 (menu_bar_one_keymap): Remove.
7989 (menu_bar_item): Adjust arglist (for use in map_keymap).
7990 Properly hide a second binding when not both are keymaps.
7991
7992 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7993 (single_keymap_panes): Use it and map_keymap.
7994 (single_menu_item): Use skp as well.
7995
7996 * keymap.h (map_keymap_function_t): New type.
7997 (map_keymap): Declare.
7998
7999 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8000 (map_keymap_call, Fmap_keymap): New functions.
8001 (syms_of_keymap): Defsubr map-keymap.
8002
4b1b4443
JD
80032003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8004
8005 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8006 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8007 ..._with_mnemonic functions for menu items.
8008
1f816871
KH
80092003-05-01 Kenichi Handa <handa@m17n.org>
8010
8011 * coding.c (coding_system_accept_latin_extra_p): Delete this
8012 function.
8013 (find_safe_codings): Pay attention to
8014 the property tranlsation-table-for-encode of each codings.
8015 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8016
5ed6ba5b
SM
80172003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8018
8019 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8020
32c06229
SM
80212003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8022
8023 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8024
8025 * lisp.h (CHECK): Wrap args in parenthesis.
8026 (specbind): Fix doc: symbol = Qnil is not supported any more.
8027
8028 * bytecode.c (Fbyte_code) <unwind-protect>:
8029 Use Fprogn rather than 0 and Qnil.
8030
8031 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8032 `double', and `triple' modifiers as well.
8033
ed3c3314
RS
80342003-04-30 Richard M. Stallman <rms@gnu.org>
8035
8036 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8037
8038 * alloc.c (abort_on_gc): New variable.
8039 (Fgarbage_collect): Abort if abort_on_gc is set.
8040
8041 * lisp.h (abort_on_gc): Add decl.
8042
8043 * eval.c (Fsignal): Clear abort_on_gc.
8044
8045 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8046 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8047
8048 * xdisp.c (move_it_vertically_backward): Do the final big else
8049 even if nlines is 0.
8050
8051 * xdisp.c (redisplay_internal): Finish the per-frame loop
8052 even if redisplay is suspended by input.
8053
0b325c12
AC
80542003-04-24 Andrew Choi <akochoi@shaw.ca>
8055
8056 * macterm.c (x_list_fonts): Return all fonts that match if
8057 maxnames = -1.
8058
4e837cd0
KH
80592003-04-25 Kenichi Handa <handa@m17n.org>
8060
8061 * syntax.c (skip_chars): Fix previous change.
8062
9af7511a
KH
80632003-04-24 Kenichi Handa <handa@m17n.org>
8064
8065 * syntax.c (skip_chars): Make the code faster by using the common
8066 technique of *p, *stop, and *endp.
8067
e3b2c21f
JD
80682003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8069
8070 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8071 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8072 being updated.
8073
32c06229
SM
80742003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8075
8076 * eval.c (Fapply): Undo last change and add a comment about why.
8077
c6464167
MB
80782003-04-18 Miles Bader <miles@gnu.org>
8079
8080 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8081 pickier PARSE_MULTIBYTE_SEQ.
8082
e509f168
SM
80832003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8084
8085 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8086 Use XCDR, XCAR, CONSP.
8087 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8088 (Fapply): Remove unnecessary GCPRO.
8089
8090 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8091
8092 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8093
8094 * buffer.h: Don't hardcode BEG==1.
8095
8096 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8097
5ceea398
RS
80982003-04-16 Richard M. Stallman <rms@gnu.org>
8099
8100 * xdisp.c (try_window, try_window_reusing_current_matrix):
8101 When at end of window, set window_end_pos to Z-ZV.
8102
8103 * buffer.c (Foverlay_recenter): Doc fix.
8104
e509f168
SM
81052003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8106
8107 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8108
d243e605
AC
81092003-04-14 Andrew Choi <akochoi@shaw.ca>
8110
8111 * macterm.c (mac_check_for_quit_char): Don't check more often than
8112 once a second.
8113
6901b111
SM
81142003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8115
8116 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8117 specially, so that they can't hide an implicit switch-frame event.
8118 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8119 (head_table): Use switch-frame as event_kind for select-window.
8120 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8121
8122 * editfns.c (Fformat): Lisp_Object/int mixup.
8123 (format2): Remove unused var numargs.
8124
e301806f 81252003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8126
6901b111 8127 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8128 (Qafter_insert_file_set_coding): New variable.
8129 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8130 for after-insert-file-adjust-coding-function.
8131 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8132 instead of Vafter_insert_file_adjust_coding_function.
8133
38914424
KH
81342003-04-11 Kenichi Handa <handa@m17n.org>
8135
8136 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8137
8138 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8139 string. Callers changed.
8140
81412003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8142
6901b111 8143 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8144 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8145 (Finsert_file_contents):
8146 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8147 decode-format.
8148
f979dc05
JD
81492003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8150
8151 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8152 get GtkAdjustment as widget now is a GtkRange.
8153
8154 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8155 GtkRange to avoid memory leak.
8156
f8c6b4c2 81572003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8158
50ebc53d
KH
8159 * xfaces.c (Vface_font_rescale_alist): New variable.
8160 (struct font_name): New member rescale_ratio.
8161 (font_rescale_ratio): New function.
6901b111 8162 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8163 (better_font_p): On comparing point sized, pay attention to
8164 recale_ratio member of fonts.
8165 (build_scalable_font_name): Reflect font->rescale_ratio in the
8166 font name.
6901b111 8167 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8168
cb98871c
KH
8169 * lread.c (read1): Before calling index, check if the 2nd
8170 arguemnt is in ASCII range.
8171
4773b8ca
RS
81722003-04-08 Richard M. Stallman <rms@gnu.org>
8173
b0ada147
RS
8174 * fileio.c (Ffile_symlink_p): Doc fix.
8175
8176 * editfns.c (Fformat): Translate positions of text properties
8177 in the format string to apply them to the result.
8178
4773b8ca
RS
8179 * fileio.c (Finsert_file_contents): Doc fix.
8180 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8181
81822003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8183
4773b8ca
RS
8184 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8185
e8f25745 81862003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8187
e8f25745
ST
8188 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8189 that self-contained application finds libexec files.
8190
f8c6b4c2 81912003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8192
6901b111
SM
8193 * coding.c (code_convert_region_unwind):
8194 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8195 (code_convert_region): If post-read-conversion function changed
8196 the value of last-coding-sytem, keep the new value in
8197 coding->symbol so that it won't be overridden.
8198 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8199 (coding_system_accept_latin_extra_p): New function.
8200 (find_safe_codings): Pay attention to characters registered in
8201 latin-extra-code-table.
2310d84c 8202
39c9a034
TTN
82032003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8204
8205 * Makefile.in (md5.o): Add missing dependency info.
8206
eb67c5d6
RS
82072003-04-06 Richard M. Stallman <rms@gnu.org>
8208
8209 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8210
8211 * marker.c (verify_bytepos): New function.
8212
8213 * intervals.c (set_intervals_multibyte_1): When becoming
8214 multibyte, adjust right and left child sizes to a whole set of
8215 characters. If an interval gets zero total-length, delete it.
8216 If an interval consists of just its children, delete one of them.
8217
8218 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8219 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8220
eb67c5d6
RS
8221 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8222 All calls deleted.
8223 (lisp_malloc): Do the work here directly.
8224
b1f81fc5
JB
82252003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8226
8227 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8228 char tables.
8229
82302003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8231
8232 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8233 destructively change "%S" to "%s".
8234
774666fb
MB
82352003-04-03 Miles Bader <miles@gnu.org>
8236
8237 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8238 always set.
8239
19c37f01
DL
82402003-04-01 Dave Love <fx@gnu.org>
8241
8242 * xfns.c (xpm_lookup_color): Grok "opaque".
8243
2f4b24c3
AC
82442003-03-31 Andrew Choi <akochoi@shaw.ca>
8245
8246 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8247 parent window ID.
8248
8249 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8250
8251 * macterm.h (struct mac_output): Define x_pixels_diff and
8252 y_pixels_diff.
b1f81fc5 8253
9443fcf6
JB
82542003-03-31 Juanma Barranquero <lektu@terra.es>
8255
8256 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8257 blockinput.h and files included from it.
8258
e072891b
KS
82592003-03-31 Kim F. Storm <storm@cua.dk>
8260
8261 The following changes consolidates the common code related to
8262 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8263 files into frame.c.
9443fcf6 8264
e072891b
KS
8265 * frame.c: Include blockinput.h.
8266 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8267 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8268 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8269 related vars here.
8270 (struct frame_parm_table, frame_parms): New table for describing
8271 frame parameters and their associated Q-variable.
8272 The order of the parameters corresponds to the sequence of the
8273 frame_parm_handlers table in redisplay_interface.
8274 (x_fullscreen_move, x_set_frame_parameters)
8275 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8276 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8277 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8278 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8279 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8280 Generic functions for processing of frame parameters.
8281 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8282 (display_x_get_resource, x_get_resource_string): Functions for
8283 generic access to X resources.
8284 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8285 (x_default_parameter, Fx_parse_geometry): Functions for generic
8286 access to frame parameters.
6901b111
SM
8287 (x_figure_window_size): Generic calculation of frame size.
8288 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8289 (syms_of_frame): Intern and staticpro frame parameter variables.
8290 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8291 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8292
e072891b
KS
8293 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8294 parameter related vars defined in frame.c.
8295 (EMACS_CLASS): Define here.
8296 (enum FULLSCREEN_*): Define here.
8297 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8298 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8299 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8300 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8301 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8302 (x_set_visibility, x_set_autoraise, x_set_autolower)
8303 (x_set_unsplittable, x_set_vertical_scroll_bars)
8304 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8305 (x_figure_window_size): Add prototypes.
8306
8307 * dispextern.h (frame_parm_handler): New typedef.
8308 (struct redisplay_interface): New member frame_parm_handlers.
8309 (enum resource_types): Move declaration here.
8310 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8311 (x_default_parameter): Add prototypes.
8312
8313 * window.c: Remove extern decl for frame parameter vars.
8314 (change_window_heights): New generic function;
8315 replaces x_change_window_heights. All users changed.
8316
8317 * window.h (change_window_heights): Add prototype.
8318
8319 * xfaces.c: Remove extern decl for frame parameter vars.
8320
8321 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8322 (struct w32_display_info): Fix type of xrdb member.
8323 (enum FULLSCREEN_*): Remove.
8324 Remove prototypes for generic functions (in frame.h).
8325
8326 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8327 parameters now defined in frame.h and frame.c.
f63fd14e 8328 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8329 (enum x_frame_parms): Remove (bogus, unused enum).
8330 (check_x_display_info): Make non-static (for frame.c).
8331 (struct x_frame_parm_table, x_frame_parms): Remove.
8332 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8333 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8334 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8335 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8336 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8337 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8338 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8339 Remove. Use generic functions instead.
8340 (enum resource_types): Remove.
8341 (x_set_scroll_bar_default_width): New global function (for frame.c).
8342 (Fx_create_frame): Depend on x_figure_window_size to add space for
8343 toolbar and setup size_hint_flags.
8344 (x_frame_parm_handlers): New table for redisplay_interface.
8345 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8346
e072891b 8347 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8348 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8349 (x_redisplay_interface): Add x_frame_parm_handlers member.
8350
8351 * w32gui.h (XrmDatabase): New (dummy) typedef.
8352
8353 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8354 (struct w32_display_info): Fix type of xrdb member.
8355 (enum FULLSCREEN_*): Remove.
8356 (x_fullscreen_adjust): Remove prototype.
8357
8358 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8359 parameters now defined in frame.h and frame.c.
f63fd14e 8360 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8361 (enum x_frame_parms): Remove (bogus, unused enum).
8362 (check_x_display_info): Make non-static (for frame.c).
8363 (struct x_frame_parm_table, x_frame_parms): Remove.
8364 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8365 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8366 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8367 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8368 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8369 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8370 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8371 Remove. Use generic functions instead.
8372 (enum resource_types): Remove.
8373 (x_set_scroll_bar_default_width): New global function (for frame.c).
8374 (Fx_create_frame): Depend on x_figure_window_size to add space for
8375 toolbar and setup size_hint_flags.
8376 (w32_frame_parm_handlers): New table for redisplay_interface.
8377 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8378
e072891b
KS
8379 * w32term.c: Remove unnecessary extern declarations.
8380 (x_fullscreen_adjust): Remove. Use generic instead.
8381 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8382
8383 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8384
8385 * macgui.h (XrmDatabase): New (dummy) typedef.
8386
8387 * macterm.h (EMACS_CLASS): Remove.
8388 (struct mac_display_info): Add xrdb member.
8389 (struct mac_output): Add want_fullscreen member.
8390
8391 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8392 parameters now defined in frame.h and frame.c.
f63fd14e 8393 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8394 (check_x_display_info): Make non-static (for frame.c).
8395 (struct x_frame_parm_table, x_frame_parms): Remove.
8396 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8397 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8398 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8399 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8400 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8401 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8402 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8403 Remove. Use generic functions instead.
8404 (enum resource_types): Remove.
8405 (x_set_scroll_bar_default_width): New global function (for frame.c).
8406 (mac_frame_parm_handlers): New table for redisplay_interface.
8407 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8408
e072891b
KS
8409 * macterm.c: Remove unnecessary extern declarations.
8410 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8411
3e6a560b
KS
8412 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8413 included from it (atimer.h and systime.h).
8414
7b7b454e
AS
84152003-03-30 Andreas Schwab <schwab@suse.de>
8416
8417 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8418 parameters for shift_glyphs_for_insert.
8419
8420 * macterm.c (x_redisplay_interface): Add missing entry for
8421 draw_vertical_window_border.
8422
beb402de
KG
84232003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8424
8425 * fileio.c (Fexpand_file_name): In the no-handler case, after
8426 expanding, look again for a handler and invoke it. This is needed
8427 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8428 expansion produces "/user@host:/bar/../baz" which needs to be
8429 expanded again for the finame result "/user@host:/baz".
8430
b676f356
JD
84312003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8432
8433 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8434 of area to be redrawn for better performance.
8435
3c671a56
SM
84362003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8437
8438 * xterm.c (take_vertical_position_into_account): Remove.
8439 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8440 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8441 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8442 (x_set_toolkit_scroll_bar_thumb): Simplify.
8443 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8444 (XTread_socket): Remove unused var.
8445 (x_make_frame_invisible): Replace goto with else.
8446
8447 * xdisp.c (set_vertical_scroll_bar): New fun.
8448 (redisplay_window): Use it.
8449
84f2e615
RS
84502003-03-26 Richard M. Stallman <rms@gnu.org>
8451
8452 * xdisp.c (update_tool_bar): Recompute tool bar if
8453 update_mode_lines is set. Set w->update_mode_line
8454 only if the tool bar contents actually change.
8455 (update_menu_bar): Undo previous change.
8456
70b6104c
JD
84572003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8458
5fd6f727
JD
8459 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8460 (xg_frame_set_char_size): Calculate scroll bar width before frame
8461 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8462 (xg_separator_p): Check for all documented separator types.
8463 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8464 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8465
70b6104c
JD
8466 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8467 so tool bar gets updated.
8468
d9b36d19
SM
84692003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8470
8471 * data.c (store_symval_forwarding): Re-instate part of the code
8472 that was deleted with too much enthusiasm.
8473
84742003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8475
8476 * data.c (store_symval_forwarding): Delete special read-only
8477 hack for type == -1, since we now use ->constant instead.
8478 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8479
8480 * buffer.c (overlays_in): Declare static.
8481 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8482 `constant' field rather than the variable's `type' field.
8483
365fa1b3
AC
84842003-03-24 Andrew Choi <akochoi@shaw.ca>
8485
8486 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8487
8488 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8489
8490 * fns.c [MAC_OSX]: Do not redefine vector.
8491
8492 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8493
8494 * macgui.h: Remove definition of No_Cursor.
8495
d9b36d19 8496 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8497
8498 * xdisp.c: Define No_Cursor.
8499 (x_write_glyphs, notice_overwritten_cursor)
8500 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8501 (note_mouse_highlight): Remove Mac-specific code.
8502 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8503
c0bcce6f
JPW
85042003-03-24 John Paul Wallington <jpw@gnu.org>
8505
8506 * xdisp.c (redisplay_window): If mini window's buffer is not
8507 empty, then redisplay it like other windows.
8508
a526b96c
KS
85092003-03-23 Kim F. Storm <storm@cua.dk>
8510
8511 * w32term.c (w32_draw_window_cursor): Fix last change.
8512
37ab321e
KH
85132003-03-23 Kenichi Handa <handa@m17n.org>
8514
a526b96c
KS
8515 * alloc.c (make_string_from_bytes, make_specified_string):
8516 Add `const' for the arg CONTENTS.
37ab321e
KH
8517
8518 * lisp.h (make_string_from_bytes, make_specified_string):
8519 Prototypes adjusted.
8520
7863d625
JD
85212003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8522
a526b96c 8523 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8524
7863d625
JD
8525 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8526 (XG_SB_RANGE): New define.
8527
8528 * gtkutil.c (xg_fixed_handle_expose): New function.
8529 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8530 expose events.
8531 (xg_update_scrollbar_pos): Take two more arguments, left and width
8532 of scroll bar including borders.
8533 Clear left and right part outside scroll bar separately as some
8534 themes have bars that are not an even number of pixels.
d9b36d19 8535 Don't set reallocate_redraws, don't call
7863d625
JD
8536 gdk_window_process_all_updates.
8537 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8538 so no need to change it. Calculate size and value with XG_SB_RANGE.
8539
d9b36d19
SM
8540 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8541 Pass left and width of scroll bar including borders to
7863d625
JD
8542 xg_update_scrollbar_pos.
8543
af0ad939
TTN
85442003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8545
8546 * Makefile.in: Make sure space precedes end-of-line backslashes.
8547
b22139fd
KS
85482003-03-22 Kim F. Storm <storm@cua.dk>
8549
8550 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8551 Add generic versions here. Remove system specific versions
8552 defined elsewhere.
8553
8554 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8555 Add prototypes.
8556
6e6410cf
KS
8557 * xterm.h (STORE_NATIVE_RECT): New macro.
8558
5c9cc435
KS
85592003-03-21 Kim F. Storm <storm@cua.dk>
8560
00c64fab
SM
8561 * xdisp.c (get_glyph_string_clip_rect):
8562 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8563
8564 * dispextern.h (struct redisplay_interface): Add active_p
8565 argument to draw_window_cursor member. All uses changed.
8566
acd37560
KS
85672003-03-21 Kim F. Storm <storm@cua.dk>
8568
8569 The following changes consolidate code related to writing and
8570 inserting glyphs, exposing frame, the tool bar, the mouse face,
8571 the output cursor, and help echo from xterm.c, w32term.c and
8572 macterm.c into xdisp.c. It also generalizes the use of the
8573 window_part enum instead of using numeric values throughout.
af0ad939 8574
acd37560
KS
8575 * xdisp.c: Consolidate gui-independent code here.
8576 Include keymap.h.
8577 (Qhelp_echo): Import.
8578 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8579 (help_echo_string, help_echo_window, help_echo_object)
8580 (previous_help_echo_string, help_echo_pos): Declare here.
8581 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8582 (estimate_mode_line_height): Define here. Handle windowing
8583 systems directly (without using estimate_mode_line_height_hook).
8584 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8585 (update_window_cursor, update_cursor_in_window_tree)
8586 (fast_find_position, fast_find_string_pos)
8587 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8588 (expose_area, expose_line, expose_overlaps, expose_window)
8589 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8590 declared static as they are only used locally in xdisp.c.
8591 (draw_glyphs): Rename from x_draw_glyphs and make static.
8592 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8593 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8594 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8595 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8596 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8597 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8598 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8599 (note_mouse_highlight, x_clear_window_mouse_face)
8600 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8601 (x_intersect_rectangles): New generic functions for use by xdisp.c
8602 and GUI front-ends.
8603 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8604 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8605
8606 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8607 (NativeRectangle): Generic typedef for rectangle type.
8608 (enum window_part): Move here from window.c.
8609 (struct redisplay_interface): New members flush_display_optional,
8610 define_frame_cursor, clear_frame_area, draw_window_cursor,
8611 draw_vertical_window_border, shift_glyphs_for_insert.
8612 Rename member clear_mouse_face to clear_window_mouse_face.
8613 (estimate_mode_line_height_hook): Remove hook.
8614 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8615 (tool_bar_item_info): Remove prototype.
8616 (help_echo_string, help_echo_window, help_echo_object)
8617 (previous_help_echo_string, help_echo_pos)
8618 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8619 (x_stretch_cursor_p, output_cursor): Declare extern.
8620 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8621 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8622 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8623 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8624 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8625 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8626 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8627 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8628 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8629 Add prototypes.
8630 (mode_line_string, marginal_area_string): Fix prototypes.
8631
8632 * window.c (enum window_part): Move to dispextern.h.
8633 (coordinates_in_window): Use enum window_part member names
8634 instead of numbers to describe return value.
8635 (struct check_window_data): Change part member to window_part.
8636 (check_window_containing): Return window_part unaltered.
8637 (window_from_coordinates): Change part arg from int to enum
8638 window_part. Allow part arg to be null. All users changed.
8639
8640 * window.h (window_from_coordinates): Fix prototype.
8641
8642 * term.c (estimate_mode_line_height): Move to xdisp.c.
8643
8644 * keyboard.c (make_lispy_event): Use enum window_part.
8645
8646 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8647 window_part instead of int in arg list. Users changed.
8648
8649 * xterm.h (No_Cursor): Declare as None for X.
8650 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8651
acd37560
KS
8652 * xterm.c: Remove consolidated defines and code.
8653 (BETWEEN): Remove unused macro.
8654 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8655 (x_define_frame_cursor, x_clear_frame_area)
8656 (x_draw_window_cursor): New X-specific functions for RIF.
8657 (x_redisplay_interface): Add new members.
8658
8659 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8660
8661 * w32term.h (struct w32_output): Remove cross_cursor member.
8662
8663 * w32term.c: Remove consolidated defines and code.
8664 (BETWEEN): Remove unused macro.
8665 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8666 (w32_define_frame_cursor, w32_clear_frame_area)
8667 (w32_draw_window_cursor): New W32-specific functions for RIF.
8668 (w32_redisplay_interface): Add new members.
8669
a64387ee 8670 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8671 (XRectangle): Add X compatible rectangle type.
8672 (NativeRectangle): Declare as RECT for W32.
8673 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8674
8675 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8676
8677 * w32console.c: Remove consolidated defines and code.
af0ad939 8678
acd37560
KS
8679 * msdos.h (Display_Info): Add generic typedef.
8680
8681 * msdos.c: Remove consolidated defines and code.
8682 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8683
8684 * macterm.h (struct mac_output): Replace member cross_cursor by
8685 hand_cursor.
8686 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8687
8688 * macterm.c: Remove consolidated defines and code.
8689 (BETWEEN): Remove unused macro.
8690 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8691 (mac_define_frame_cursor, mac_clear_frame_area)
8692 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8693 (x_redisplay_interface): Add new members.
8694
8695 * macgui.h (No_Cursor): Define as 0 for Mac.
8696 (XRectangle): Add X compatible rectangle type.
8697 (NativeRectangle): Declare as Rect for Mac.
8698 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8699
204ccab1
KS
8700 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8701 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8702
9443fcf6 8703 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8704 included from it. Add dependency on keymap.h.
8705
8706 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8707
8ba01a70 87082003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8709
8710 * fileio.c (Fexpand_file_name): Fix previous change.
8711
8ba01a70 87122003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8713
8714 * fileio.c (Ffile_name_directory): Reconstruct file name by
8715 make_specified_string.
8716 (Ffile_name_nondirectory, Ffile_name_as_directory)
8717 (Fdirectory_file_name, Fexpand_file_name)
8718 (Fsubstitute_in_file_name): Likewise.
8719 (Fread_file_name): Compare decoded homedir with DIR and
8720 DEFAULT_FILENAME.
8721
8722 * alloc.c (make_specified_string): If NCHARS is negative, count
8723 the number of characters.
8724
19536747
JD
87252003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8726
de38ae5a
JD
8727 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8728 all widgets.
8729
19536747
JD
8730 * gtkutil.h: Removed xg_ignore_next_thumb.
8731
37ab321e 87322003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8733
8734 * coding.c (Vchar_coding_system_table): Remove this variable.
8735 (Vcoding_system_safe_chars): New variable.
8736 (intersection): Remove this function.
8737 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8738 all codings in SAFE_CODINGS.
00c64fab 8739 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8740 find_safe_codings. Get generic coding systems from
8741 Vcoding_system_safe_chars.
8742 (Fdefine_coding_system_internal): New function.
8743 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8744 Initialize and staticpro Vcoding_system_safe_chars.
8745
17097258
JD
87462003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8747
2a2071c3
JD
8748 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8749 equal old values before updating.
8750
17097258
JD
8751 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8752
8753 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8754
87552003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8756
8757 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8758 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8759 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8760 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8761 (xg_create_scroll_bar): Pass bar to button event callback.
8762 (xg_find_top_left_in_fixed): New function.
8763 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8764 whole scroll bar area. Get old position with
8765 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8766 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8767 dragging is in progress. Calculate whole as for Motif.
8768 Remove code that saved last values. Call gtk_range functions to
8769 set scroll bar sizes.
8770
8771 * gtkutil.h: Removed xg_ignore_next_thumb.
8772
8cb9dfbf
JB
87732003-03-17 Juanma Barranquero <lektu@terra.es>
8774
8775 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8776 and files included from it.
8777
00c64fab
SM
87782003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8779
8780 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8781 multiple occurrences of the same keymap under different prefixes.
8782 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8783
c45bb3b2
JR
87842003-03-16 Jason Rumney <jasonr@gnu.org>
8785
8786 * w32gui.h: Use HDC for Display.
8787
8788 * w32term.c (w32_encode_char): Prevent double-byte chars from
8789 crashing Emacs.
8790
8791 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8792 as binary.
8793
2a6d0874
JB
87942003-03-16 Juanma Barranquero <lektu@terra.es>
8795
8796 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8797
03eb5fab
KS
87982003-03-16 Kim F. Storm <storm@cua.dk>
8799
8800 The following changes consolidate some of the gui-independent
8801 parts of the processing and drawing of "glyph strings" from
8802 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8803
03eb5fab
KS
8804 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8805 21 bits (this reduces number of faces from 4M to 2M).
8806 Replace W32 specific w32_font_type member (2 bits) by generic
8807 font_type member (3 bits) for portability.
8808 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8809 (enum draw_glyphs_face): Define here.
8810 (struct glyph_string): Define here. Merge W32 and X versions.
8811 (struct redisplay_interface): New members per_char_metric,
8812 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8813 (VCENTER_BASELINE_OFFSET): Define here.
8814 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8815 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8816
8817 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8818 (dump_glyph_string): Moved here.
8819 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8820 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8821 (fill_composite_glyph_string, fill_glyph_string)
8822 (fill_image_glyph_string, fill_stretch_glyph_string)
8823 (left_overwritten, left_overwriting, right_overwritten)
8824 (right_overwriting, get_char_face_and_encoding)
8825 (set_glyph_string_background_width, compute_overhangs_and_x)
8826 (append_glyph, append_composite_glyph, produce_image_glyph)
8827 (take_vertical_position_into_account, append_stretch_glyph)
8828 (produce_stretch_glyph): New generic functions (based on X version).
8829 Call platform specific functions through rif.
8830 (INIT_GLYPH_STRING): New macro, hides W32 details.
8831 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8832 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8833 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8834 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8835 (notice_overwritten_cursor):
8836 Generic functions exported to platform modules. Users changed.
8837
8838 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8839 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8840 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8841 New macros for consolidated code.
2a6d0874 8842
03eb5fab
KS
8843 * xterm.c: Remove consolidated defines and code.
8844 (x_per_char_metric, x_encode_char)
8845 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8846 (x_redisplay_interface): Add new members.
8847
8848 * w32gui.h (Display): Add dummy typedef for consolidation.
8849 (XChar2b): Define alias for wchar_t for consolidation.
8850 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8851
8852 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8853 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8854 New macros for consolidation.
8855
fad49844 8856 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8857 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8858 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8859 (w32_per_char_metric): Change font_type arg to int for RIF.
8860 (w32_encode_char): Return int according to RIF requirements.
8861 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8862 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8863 x_get_glyph_overhangs.
8864 (w32_redisplay_interface): Add new members.
8865
8866 * macgui.h (XChar2b): Move typedef here for consolidation.
8867 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8868
8869 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8870 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8871 consolidation.
8872
8873 * macterm.c: Remove consolidated defines and code.
8874 (mac_per_char_metric): New function for RIF.
00c64fab 8875 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8876 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8877 (x_redisplay_interface): Add new members.
8878
00c64fab
SM
88792003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8880
8881 * keymap.c (Vmenu_events): New var.
8882 (syms_of_keymap): Initialize it.
8883 (where_is_internal): Check more carefully what is a menu event.
8884
225c7a07
RS
88852003-03-14 Richard M. Stallman <rms@gnu.org>
8886
8887 * lread.c (read1): After #!, exit loop on eof.
8888
cea9be54
JD
88892003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8890
9ea0e54d
JD
8891 * gtkutil.h: Add declaration for xg_frame_cleared.
8892
0cb35f4e
JD
8893 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8894
cea9be54
JD
8895 * gtkutil.c (struct xg_last_sb_pos): New structure.
8896 (handle_fixed_child): New function.
8897 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8898 and force a redraw on them.
8899 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8900 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8901 so we can avoid unneeded redraws.
8902 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8903 and force a redraw on the scroll bar.
8904 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8905 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 8906 (xg_frame_cleared): New function.
cea9be54 8907
20b853f3
KH
89082003-03-13 Kenichi Handa <handa@m17n.org>
8909
8910 * coding.c (Fdetect_coding_region): Fix docstring.
8911 (Fdetect_coding_string): Fix docstring.
8912
7a555aff
AS
89132003-03-13 Andreas Schwab <schwab@suse.de>
8914
25cc0080
AS
8915 * gtkutil.c: Add prototype for create_menus.
8916
30225431
AS
8917 * data.c (long_to_cons): Fix type of top.
8918
8919 * xselect.c (selection_data_to_lisp_data): Use int instead of
8920 long for an integer of size 4.
8921
7a555aff 8922 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8923 (xg_tool_bar_help_callback): Likewise.
7a555aff 8924
a3e4741f
AS
89252003-03-12 Andreas Schwab <schwab@suse.de>
8926
8927 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8928
9668be7c
KS
89292003-03-12 Kim F. Storm <storm@cua.dk>
8930
03eb5fab 8931 The following changes consolidate the fringe handling from
9668be7c 8932 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8933
9668be7c
KS
8934 * xdisp.c: Consolidate fringe handling code here.
8935 (left_bits, right_bits, continued_bits, continuation_bits)
8936 (ov_bits, zv_bits): Define fringe bitmaps.
8937 (fringe_bitmaps): New array holding fringe bitmaps.
8938 (draw_fringe_bitmap): Draw a specific bitmap; call display
8939 specific drawing routine via rif->draw_fringe_bitmap.
8940 (draw_row_fringe_bitmaps): Generic replacement for
8941 x_draw_row_fringe_bitmaps; all callers changed.
8942 (compute_fringe_widths): Generic replacement for
8943 x_compute_fringe_widths; all callers changed.
8944
8945 * dispextern.h (enum fringe_bitmap_type): Define here.
8946 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8947 (fringe_bitmaps): Declare extern.
8948 (struct redisplay_interface): New member draw_fringe_bitmap.
8949 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8950
8951 * xterm.c: Remove generic fringe code.
8952 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8953 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8954
8955 * w32term.c: Remove generic fringe code.
8956 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8957 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 8958
9668be7c
KS
8959 * macterm.c: Remove generic fringe code.
8960 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8961 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8962
00a88f32
SM
89632003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8964
8965 * print.c (Fprin1_to_string): Return unibyte string if possible.
8966
1d1de695
DK
89672003-03-09 David Kastrup <dak@gnu.org>
8968
8969 * process.c (read_process_output): We have allocated enough space
8970 for readmax and carryover, so actually use the alloted space.
8971
257f40f2
JD
89722003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8973
8974 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8975 toolkit scrollbar click.
8976
8977 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8978 for USE_GTK.
8979 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8980 also.
8981 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8982 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 8983
78819ebb 8984 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
8985
8986 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8987 (xg_tool_bar_item_expose_callback): New function.
8988 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8989 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8990 on the tool bar widget.
8991 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8992 to expose on the tool bar item widgets.
8993
15213141
JD
89942003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8995
26b74a0b 8996 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 8997 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
8998 deleted from the image cache).
8999
15213141
JD
9000 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9001 the event isn't for a frame (i.e. for dialogs).
9002
20b853f3 90032003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9004
9005 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9006 composition components reaches the limit, terminate composing.
9007 (COMPOSITION_OK): New macro.
00a88f32 9008 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9009 composition is found.
9010 (coding_restore_composition): Adjust the number of composition
9011 components if it is not sane.
9012
c9029fe5
JB
90132003-03-06 Juanma Barranquero <lektu@terra.es>
9014
9015 * w32term.h (struct w32_display_info): Add xrdb member to support
9016 passing resources via -xrm on Windows.
9017
9018 * w32term.c (w32_make_rdb): New function.
9019 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9020 struct. Delete leftover code.
9021
9022 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9023 for resources passed on the command line.
9024
9025 * w32reg.c (w32_get_rdb_resource): New function.
9026 (x_get_string_resource): Use it, so resources passed with -xrm
9027 supercede the ones in the registry.
9028
9d00001f
JD
90292003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9030
9031 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9032 instead of x_top_window_to_frame.
9033
ca2417b9
JD
90342003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9035
9036 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9037 when restarting Emacs.
9038
5b20caf0
RS
90392003-03-03 Richard M. Stallman <rms@gnu.org>
9040
9041 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9042 to run kill-buffer-query-functions.
9043 (Qkill_buffer_query_functions): New var.
9044 (syms_of_buffer): Init and staticpro it.
9045
58e91b77
JD
90462003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9047
9048 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9049
932357b4
KS
90502003-02-25 Kim F. Storm <storm@cua.dk>
9051
9052 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9053 If centering point failed to make whole line visible and vscroll
9054 is non-zero, disable vscroll and try centering point again.
9055
9056 * lread.c (read1): Accept `single space' syntax like (? x).
9057
bb8db7e1
JD
90582003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9059
9060 * keyboard.c (cancel_hourglass_unwind): Surround with
9061 #ifdef HAVE_X_WINDOWS
9062
47d77aab
KH
90632003-02-25 Kenichi Handa <handa@m17n.org>
9064
9065 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9066 process only when "subprocesses" is defined.
9067
6a097c0c
SM
90682003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9069
9070 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9071
0b063c27
JB
90722003-02-24 Juanma Barranquero <lektu@terra.es>
9073
d1135afc
JB
9074 * callint.c (fix_command): Declare as static void and move before
9075 Fcall_interactively.
9076
0b063c27
JB
9077 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9078 (syms_of_xdisp): Don't initialize Qwhen.
9079
0af912f0
JD
90802003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9081
9082 * keyboard.c (cancel_hourglass_unwind): New function.
9083 (command_loop_1): Cancel hourglass with unwind-protect.
9084
120d0a23
RS
90852003-02-23 Richard M. Stallman <rms@gnu.org>
9086
9087 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9088 Detect (when ... (region-beginning)) etc.
9089 (Fcall_interactively): Call fix_command.
9090 (Qif, Qwhen): New variables.
9091 (syms_of_callint): Init and staticpro them.
0b063c27 9092
120d0a23
RS
9093 * regex.c (print_partial_compiled_pattern): Output to stderr.
9094
4ece81a6
KG
90952003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9096
9097 * dired.c (directory_files_internal): Don't expand directory.
9098 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9099 instead. From Lars Hansen <larsh@math.ku.dk>.
9100
e52bd6b7
SM
91012003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9102
9103 * fns.c (string_to_multibyte): Remove unused var i.
9104 (Flanginfo): Fix int/Lisp_Object mixup.
9105 (void_call2): New fun.
9106 (Fmap_char_table): Use it in place of call2.
9107
9108 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9109
9110 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9111
9112 * keymap.c (copy_keymap_1): Make it static.
9113
9114 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9115
c33ef7c4
JB
91162003-02-22 David Ponce <david@dponce.com>
9117
9118 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9119
16782258
JD
91202003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9121
9122 * process.h: Removed subtty field from struct Lisp_Process.
9123
9124 * process.c (create_process): Remove setting of subtty.
9125 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9126 (Fprocess_running_child_p, process_send_signal):
9127 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9128 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9129
3abeca61
KG
91302003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9131
9132 * keymap.c (Fdefine_key): Doc fix.
9133
92a8ce63
JB
91342003-02-21 Juanma Barranquero <lektu@terra.es>
9135
9136 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9137
9138 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9139 POLLING_PROBLEM_IN_SELECT.
9140
9141 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9142 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9143
9144 * s/hpux10-20.h: New file.
9145
e52bd6b7
SM
9146 * process.c (wait_reading_process_input):
9147 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9148
20f1ef2e
KH
91492003-02-20 Kenichi Handa <handa@m17n.org>
9150
32d0a9dc
KH
9151 * fontset.c (check_fontset_name): If NAME is nil, return the
9152 default fontset.
9153 (override_font_info): New function.
e52bd6b7 9154 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9155 (Ffontset_info): If FONTSET is not the default fontset, merge
9156 FONTSET onto the copy of the default fontset, and work on that
9157 copy. Document that NAME nil means the default fontset.
9158 (Ffontset_font): Document that NAME nil means the default fontset.
9159
20f1ef2e
KH
9160 * process.c (setup_process_coding_systems): If the process's
9161 in/out descriptor is -1, do nothing.
9162
77d1daf2
AS
91632003-02-19 Andreas Schwab <schwab@suse.de>
9164
e52bd6b7
SM
9165 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9166 Add prototypes.
77d1daf2 9167
f9a45bb3
KH
91682003-02-19 Kenichi Handa <handa@m17n.org>
9169
9170 * xfaces.c (try_alternative_families): Try all scalable fonts if
9171 Vscalable_fonts_allowed is not Qt.
9172
72ecb43c
JD
91732003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9174
9175 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9176
ee5be7c3
JD
91772003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9178
9179 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9180 names.
9181
9182 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9183 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9184 x_face_list_fonts.
9185 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9186 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9187
4cd519a7
KS
91882003-02-18 Kim F. Storm <storm@cua.dk>
9189
068f9882
KS
9190 * lread.c (read1): Fix last change.
9191 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9192
7290a344
AC
91932003-02-18 Andrew Choi <akochoi@shaw.ca>
9194
9195 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9196
1f7fa69b
AS
91972003-02-18 Andreas Schwab <schwab@suse.de>
9198
9199 * window.c (window_scroll_pixel_based): Move outside a
9200 multi-glyph character before setting new window start.
9201
9202 * xdisp.c (in_display_vector_p): New function.
9203 * dispextern.h (in_display_vector_p): Declare.
9204
23e21195
KS
92052003-02-18 Kim F. Storm <storm@cua.dk>
9206
9207 * lread.c (read1): Fix and relax read syntax.
9208 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9209 Only recognize "," after dotted-pair dot if inside backquote.
9210 Never include "`" or "," (inside backquote) in a symbol.
9211 Allow dotted-pair dot after a character constant.
9212 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9213
f098b121
JD
92142003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9215
9216 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9217 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9218 icons. Set name of tool bar to emacs-toolbar.
9219 (update_frame_tool_bar): Connect expose event to
9220 xg_tool_bar_expose_callback.
9221
63020c46
RS
92222003-02-17 Richard M. Stallman <rms@gnu.org>
9223
9224 * keyboard.c (this_command_key_count_reset): New variable.
9225 Initiatize to 0 where this_command_key_count is set.
9226 (read_char): Save and restore this_command_key_count_reset
9227 around input method code.
9228 (read_char): If this_command_key_count_reset, echo reread commands.
9229 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9230
fb4452cc
KH
92312003-02-17 Kenichi Handa <handa@m17n.org>
9232
9233 * fns.c (string_to_multibyte): Always return a multibyte string.
9234
bd11cc09
JR
92352003-02-16 Jason Rumney <jasonr@gnu.org>
9236
e52bd6b7
SM
9237 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9238 Negative max_fonts parameter means list all.
bd11cc09 9239
4cdf4bde
DL
92402003-02-14 Dave Love <fx@gnu.org>
9241
9242 * fns.c (Flanginfo): Doc fix.
9243
023b93f6
KS
92442003-02-13 Kim F. Storm <storm@cua.dk>
9245
37cd4238
KS
9246 * lread.c (read_escape): Interpret \s as a SPACE character, except
9247 for \s-X in a character constant which still is the super modifier.
9248 (read1): Signal an `invalid read syntax' error if a character
9249 constant is immediately followed by a digit or symbol character.
9250
140a6b7e
KS
9251 * search.c (Fmatch_data): Doc fix. Explicitly state that
9252 match-data is undefined if last search failed.
9253
023b93f6
KS
9254 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9255 All uses changed.
9256
7d5c86e5
JB
92572003-02-12 Juanma Barranquero <lektu@terra.es>
9258
9259 * eval.c (Fdefmacro): Fix typo.
9260
295fff2c
KS
92612003-02-12 Kim F. Storm <storm@cua.dk>
9262
9263 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9264 macro is a string, convert meta modifiers in string when copying
9265 the string into a vector.
9266
60f3202d
KS
92672003-02-11 Kim F. Storm <storm@cua.dk>
9268
9269 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9270
61cb0b53
KH
92712003-02-11 Kenichi Handa <handa@m17n.org>
9272
9273 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9274
7392e23c
KS
92752003-02-10 Kim F. Storm <storm@cua.dk>
9276
9277 * process.c: Doc fixes.
9278 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9279
ce4254bd
KH
92802003-02-10 Kenichi Handa <handa@m17n.org>
9281
9c7a329a
KH
9282 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9283
ce4254bd
KH
9284 * process.c (QCfilter_multibyte): New variable.
9285 (setup_process_coding_systems): New function.
e52bd6b7
SM
9286 (Fset_process_buffer, Fset_process_filter):
9287 Call setup_process_coding_systems.
ce4254bd
KH
9288 (Fstart_process): Initialize the member `filter_multibyte' of
9289 struct Lisp_Process.
9290 (create_process): Call setup_process_coding_systems.
9291 (Fmake_network_process): New keyward `:filter-multibyte'.
9292 Initialize the member `filter_multibyte' of struct Lisp_Process.
9293 Call setup_process_coding_systems.
9294 (server_accept_connection): Call setup_process_coding_systems.
9295 (read_process_output): If the process has a filter, decide the
9296 multibyteness of a string to given to the filter by
9297 `filter_multibyte' member of the process. If the process doesn't
9298 have a filter and the result of conversion is unibyte, use
9299 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9300 multibyte form.
9301 (Fset_process_coding_system): Call setup_process_coding_systems.
9302 (Fset_process_filter_multibyte): New function.
9303 (Fprocess_filter_multibyte_p): New function.
9304 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9305 Defsubr Sset_process_filter_multibyte and
9306 Sprocess_filter_multibyte_p.
9307
9308 * process.h (struct Lisp_Process): New member filter_multibyte.
9309
9310 * lisp.h (setup_process_coding_systems): Add prototype.
9311
9312 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9313 process, update coding systems for the process.
9314
b08d5f59
KH
93152003-02-09 Kenichi Handa <handa@m17n.org>
9316
9317 * fns.c (string_to_multibyte): New function.
9318 (Fstring_to_multibyte): New function.
9319 (syms_of_fns): Defsubr it.
9320
0dfd93c0
AS
93212003-02-08 Andreas Schwab <schwab@suse.de>
9322
9323 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9324 instead of the substitution.
9325
7b76ca1c
JD
93262003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9327
9328 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9329
9330 * xmenu.c (menu_position_func): Adjust menu popup position so that
9331 the menu is fully visible.
7b76ca1c 9332
2436a4e4
JD
93332003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9334
9335 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9336 (x_make_frame_invisible, x_wm_set_icon_position):
9337 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9338
9339 * xfns.c (x_set_name, x_set_title): Ditto.
9340
37d1e680
RS
93412003-02-04 Richard M. Stallman <rms@gnu.org>
9342
9343 * keyboard.c (echo_now): Update before_command_echo_length.
9344 (Freset_this_command_lengths): Reset this_command_key_count etc.
9345 immediately rather than arranging to do it later.
9346 (before_command_key_count_1, before_command_echo_length_1)
9347 (before_command_restore_flag): Vars deleted.
9348 (add_command_key): Don't handle before_command_restore_flag.
9349 (read_char, record_menu_key): Don't update before_command_key_count or
9350 before_command_echo_length.
9351 (read_char): Don't handle before_command_restore_flag.
9352
9353 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9354 in direct-output clauses if it wouldn't be called in the ordinary case.
9355
578846a3
KS
93562003-02-04 Kim F. Storm <storm@cua.dk>
9357
9358 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9359
49853a4d
JD
93602003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9361
9362 * gtkutil.c (remove_from_container): Copying list is not needed.
9363 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9364 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9365 on list returned from gtk_container_get_children to avoid memory leak.
9366
8b53dc06
JR
93672003-02-01 Jason Rumney <jasonr@gnu.org>
9368
5d54d177
JR
9369 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9370 local malloc.
9371 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9372 definitions in xpm.h.
9373 (init_xpm_functions): New function.
f63fd14e 9374 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9375 (init_external_image_libraries): Try to load libXpm.dll.
9376
8b53dc06
JR
9377 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9378 timestamp.
9379
b222e415
DL
93802003-01-31 Dave Love <fx@gnu.org>
9381
9382 * syntax.c (Fskip_chars_forward)
9383 (open-paren-in-column-0-is-defun-start): Doc fix.
9384
c60ee5e7
JB
93852003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9386
9387 * fileio.c: Support // at start of name for Cygwin (just added proper
9388 preprocessor tests).
9389
9390 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9391
9392 * Makefile.in: Use @EXEEXT@ for Cygwin.
9393
9394 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9395
9396 * s/cygwin.h: Added for Cygwin port.
9397
53b37591
JB
93982003-01-31 Juanma Barranquero <lektu@terra.es>
9399
9400 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9401 when including gif_lib.h.
fe929957 9402 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9403 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9404 Windows. Disable color table lookups. Call library functions
53b37591 9405 through pointers determined at runtime.
fe929957
JB
9406 (init_external_image_libraries): Try to load libungif.dll and
9407 libtiff.dll.
53b37591 9408
45415a8f
KH
94092003-01-31 Kenichi Handa <handa@m17n.org>
9410
9411 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9412 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9413
a97e4138
JD
94142003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9415
e52bd6b7 9416 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9417
6eed9bed
DL
94182003-01-30 Dave Love <fx@gnu.org>
9419
9420 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9421 (Fgarbage_collect): Use them.
9422 (init_alloc, syms_of_alloc): Set them up.
9423
100dcd40
JB
94242003-01-30 Juanma Barranquero <lektu@terra.es>
9425
9426 * w32fns.c (init_external_image_libraries): Add missing operator.
9427
fbd852af
JR
94282003-01-29 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9431 an alternative name for jpeg.dll.
9432
8a2d8020
KH
94332003-01-29 Kenichi Handa <handa@m17n.org>
9434
9435 * xdisp.c (set_cursor_from_row): Pay attention to string display
9436 properties.
9437
058c18c7
AC
94382003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9439
9440 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9441 <escape>.
9442 (keycode_to_xkeysym_table): Reformat and add more comments.
9443 (XTread_socket): Drop special case for backspace.
9444
385f11cf
AC
94452003-01-28 Andrew Choi <akochoi@shaw.ca>
9446
9447 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9448 values in old-style RGB specs.
9449
c922a224
JB
94502003-01-27 Juanma Barranquero <lektu@terra.es>
9451
9452 * w32fns.c (init_external_image_libraries): Try alternate names for the
9453 jpeg dll.
9454
0a1d6de0
JD
94552003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9456
9457 * gtkutil.c (create_dialog, xg_separator_p)
9458 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9459 before calling strcmp or strlen.
9460
a97e4138 94612003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9462
9463 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9464 and handle image load failure.
9465
28908312
JR
94662003-01-26 Jason Rumney <jasonr@gnu.org>
9467
9468 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9469 New functions.
f63fd14e
JB
9470 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9471 Disable color table lookups. Call jpeg library functions
28908312
JR
9472 through pointers determined at runtime.
9473 (init_external_image_libraries): Try to load jpeg.dll.
9474
84e47416
RS
94752003-01-25 Richard M. Stallman <rms@gnu.org>
9476
9477 * lisp.h: Declare format2 instead of format1.
9478
9479 * fileio.c (barf_or_query_if_file_exists):
9480 Call format2 instead of format1.
9481
9482 * editfns.c (format2): New function, replaces format1
9483 but takes exactly two Lisp Objects as format args.
9484
9485 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9486
a97e4138 94872003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9488
9489 * xterm.h: Change to return value of x_dispatch_event to int.
9490
9491 * xterm.c (x_filter_event): New function.
9492 (event_handler_gdk, XTread_socket): Call x_filter_event.
9493 (x_dispatch_event): Change to return value of finish.
9494 (event_handler_gdk): Use return value from x_dispatch_event.
9495
9496 * xfns.c (x_window): Call create_frame_xic for GTK version to
9497 initialize input methods.
9498
9499 * gtkutil.h: Add (void) prototypes.
9500
9501 * gtkutil.c (create_menus): Remove code that puts the help menu to
9502 the right.
9503
54eefef1
JR
95042003-01-25 Jason Rumney <jasonr@gnu.org>
9505
9506 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9507 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9508 (png_load): Adjust colors for Windows. Use Windows
9509 bitmaps. Disable color table lookups.
c262430d
JR
9510 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9511 (init_png_functions): New function.
9512 (png_read_from_memory, png_load): Call png library functions
9513 through pointers determined at runtime.
9514 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9515 (init_external_image_libraries): New function.
9516 (init_xfns): Call it.
54eefef1 9517
1a9e275b
AS
95182003-01-24 Andreas Schwab <schwab@suse.de>
9519
9520 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9521
a97e4138 95222003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9523
9524 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9525 of static initializer.
9526
422eec7e
DL
95272003-01-24 Dave Love <fx@gnu.org>
9528
9529 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9530 architectures.
9531
9532 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9533 Use __alignof__.
9534
2a026b04
KH
95352003-01-24 Kenichi Handa <handa@m17n.org>
9536
9537 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9538 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9539 (command_loop_1): Call adjust_point_for_property with proper
9540 second arg.
9541
a18bb28d
JR
95422003-01-22 Jason Rumney <jasonr@gnu.org>
9543
9544 Sync changes with xterm.c and xfns.c.
9545
9546 * w32term.c (x_draw_glyph_string_foreground)
9547 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9548
9549 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9550 phys_cursor's hpos is overwritten. This is still not completely
9551 correct, as it doesn't really make sense to use hpos at all to
9552 get the cursor glyph (as that is relative to the width of the
9553 characters on the line, which may have changed during the update).
9554
9555 * w32term.c (notice_overwritten_cursor): Handle the special case
9556 of the cursor being in the first blank non-text line at the
9557 end of a window.
9558
9559 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9560 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9561 Compute from the x position returned by x_draw_glyphs.
9562
9563 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9564 except for NO_CURSOR and system caret, to make phys_cursor_width
9565 contain what its name suggests.
9566 (notice_overwritten_cursor): Consider the cursor image erased if
9567 the output area intersects the cursor image in y-direction.
9568
6a097c0c
SM
9569 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9570 note_mode_line_highlight and extend.
a18bb28d
JR
9571
9572 * w32term.c (last_window): New variable.
9573 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9574 (note_mouse_movement): Remove reimplemented code in #if 0.
9575
9576 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9577 not update_mode_lines, and always set it to 1.
9578
ac6e47ef
JR
95792003-01-21 Jason Rumney <jasonr@gnu.org>
9580
9581 * w32fns.c (IDC_HAND): Define it if system headers don't.
9582
95832003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9584
9585 * w32term.h (struct w32_output): New member hand_cursor.
9586 (WM_EMACS_SETCURSOR): New message definition.
9587
9588 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9589 function w32_define_cursor.
9590 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9591 position, change member name output_data.x to output_data.w32 and
9592 add function w32_define_cursor.
9593 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9594 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9595 (w32_initialize_display_info):
9596 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9597
9598 * w32fns.c (Vx_hand_shape): New variable.
9599 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9600 WM_EMACS_SETCURSOR.
9601 (x-create-frame): Setup Cursor types.
9602
ceb39a17
JB
96032003-01-21 David Ponce <david@dponce.com>
9604
ac6e47ef 9605 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9606 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9607 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9608 2002-09-30.)
ac6e47ef
JR
9609 (w32_draw_relief_rect): Declare all args.
9610 (w32_define_cursor): New.
9611
9612 * w32fns.c (w32_load_cursor): New function.
9613 (w32_init_class): Use it.
9614 (x_put_x_image): Declare all args.
9615
b6189c3b 96162003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9617
9618 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9619
a97e4138 96202003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9621
9622 * gtkutil.c: Must include stdio.h before termhooks.h
9623
83fc9c63
DL
96242003-01-21 Dave Love <fx@gnu.org>
9625
9626 * alloc.c (Fgc_status): Print zombie list.
9627 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9628 Fix assignment of zombies.
9629 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9630 Don't take car of non-cons.
9631
9632 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9633
9634 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9635
fe04b8c8
JR
96362003-01-20 David Ponce <david@dponce.com>
9637
9638 * w32menu.c (digest_single_submenu): Declare all args.
9639
9640 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9641 changes in xmenu.c:
9642
9643 (parse_single_submenu): Use individual keymap's prompt
9644 string as pane name, if there is one.
9645 (set_frame_menubar): Save menu_items_n_panes from each call to
9646 parse_single_submenu and use it when calling digest_single_submenu.
9647
539e69a9
ST
96482003-01-20 Steven Tamm <steventamm@mac.com>
9649
9650 * macterm.c (XTread_socket): Checks for valid, visible window
9651 before sending a scroll-wheel event.
9652
675d000f
RS
96532003-01-20 Richard M. Stallman <rms@gnu.org>
9654
9655 * xdisp.c (redisplay_window): If mini window's buffer is not
9656 a minibuffer, then redisplay it like other windows.
9657
a97e4138 96582003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9659
9660 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9661 external tool bar before setting tool bar height.
9662
048addec
JD
96632003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9664
9665 * xterm.c (handle_one_xevent): Surround popup_activated
9666 with #ifdef:s for non-toolkit version.
9667
9668 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9669 (gtkutil.o): New file.
9670 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9671 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9672
9673 * gtkutil.c: New file for GTK version.
9674
9675 * gtkutil.h: New file for GTK version.
9676
9677 * xterm.h: Add xt_or_gtk_widget.
9678 Include gtk files for USE_GTK.
9679 (struct x_output): Add toolbar_height.
9680 (struct x_output): Add GTK widgets and Gdk size_hints.
9681 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9682 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9683 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9684
9685 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9686 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9687 (note_mouse_highlight): Check popup_activated for USE_GTK.
9688 (xt_action_hook): Don't compile if USE_GTK.
9689 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9690 (xg_scroll_callback): New function.
9691 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9692 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9693 for USE_GTK.
9694 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9695 xg_show_scroll_bar for USE_GTK.
9696 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9697 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9698 (event_handler_gdk): New function for USE_GTK.
9699 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9700 (handle_one_xevent): Make sure widget is mapped before
9701 calling x_real_positions for USE_GTK.
9702 (XTread_socket): Add GTK event loop for USE_GTK.
9703 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9704 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9705 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9706 (x_iconify_frame): Add code for USE_GTK.
9707 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9708 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9709 is in gtkutil.c.
9710 (x_term_init): Add initialization for GTK.
9711 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9712
9713 * xmenu.c: Include gtkutil.h for USE_GTK.
9714 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9715 (single_menu_item, single_menu_item, Fx_popup_dialog):
9716 Check for USE_GTK.
048addec
JD
9717 (popup_widget_loop): New function for USE_GTK.
9718 (x_activate_menubar): Add code for USE_GTK.
9719 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9720 (menu_highlight_callback, menubar_selection_callback):
9721 Add USE_GTK versions.
048addec
JD
9722 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9723 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9724 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9725 is in gtkutil.c.
9726 (popup_selection_callback): New version for USE_GTK.
9727 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9728 one USE_X_TOOLKIT version.
048addec
JD
9729 (xmenu_show): Call create_and_show_popup_menu.
9730 (dialog_selection_callback): New version for USE_GTK.
9731 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9732 one USE_X_TOOLKIT version.
048addec
JD
9733 (xdialog_show): Call create_and_show_dialog.
9734
9735 * xfns.c: Include gtkutil for USE_GTK.
9736 (x_window_to_frame, x_any_window_to_frame)
9737 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9738 (x_top_window_to_frame): Add code for USE_GTK.
9739 (x_set_background_color): Call xg_set_background_color for GTK.
9740 (x_set_menu_bar_lines): Check for USE_GTK.
9741 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9742 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9743 (x_window): Call xg_create_frame_widgets for USE_GTK.
9744 (Fx_create_frame): Check for USE_GTK
9745 (Fx_file_dialog): New implementation for USE_GTK.
9746
9747 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9748 (update_menu_bar): Add check for USE_GTK.
9749 (update_tool_bar): Add check for USE_GTK and external tool bar.
9750 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9751 (redisplay_internal): Add check for USE_GTK and popup_activated.
9752 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9753 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9754 (display_menu_bar): Add check for USE_GTK
9755
78819ebb 9756 * lisp.h (Vx_resource_name): Declare extern.
048addec 9757
a64387ee 9758 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9759 for USE_GTK.
9760 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9761
9762 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9763 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9764 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9765
9766 * fileio.c (Fread_file_name): Add check for USE_GTK.
9767
6bdb309a
SM
9768 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9769 Add check for USE_GTK.
048addec
JD
9770
9771 * config.in: Added HAVE_GTK
9772
9773 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9774
97752003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9776
9777 * charset.h (Funibyte_char_to_multibyte): Export.
9778
97792003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9780
9781 * xmenu.c (mouse_position_for_popup): New function.
9782 (Fx_popup_menu): Call mouse_position_for_popup for X and
9783 mouse_position_hook for others.
9784
97852003-01-17 Kim F. Storm <storm@cua.dk>
9786
9787 * editfns.c (Finsert): Mention `string-make-multibyte' and
9788 `string-as-multibyte' in doc string.
9789
97902003-01-17 Kenichi Handa <handa@m17n.org>
9791
9792 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9793
048addec
JD
9794 * editfns.c (Fformat): Convert an unibyte char argument that is
9795 formatted by "%c" to multibyte if the total result must be a
9796 multibyte string.
cd7df9c0 9797
048addec 97982003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9799
048addec
JD
9800 * process.c (set-process-filter): Document unibyte/multibyte-ness
9801 of string argument.
56210ecd 9802
048addec 98032003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9804
048addec 9805 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9806
048addec
JD
9807 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9808 (re_search_2): Likewise.
6df8b9fe 9809
048addec 98102003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9811
048addec
JD
9812 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9813 buffer is unibyte.
292ddc31 9814
048addec 98152003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9816
048addec 9817 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9818
048addec
JD
9819 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9820 (Fprevious_char_property_change)
9821 (Fnext_single_char_property_change)
9822 (Fprevious_single_char_property_change, Fnext_property_change)
9823 (Fnext_single_property_change, Fprevious_property_change)
9824 (Fprevious_single_property_change, Fadd_text_properties)
9825 (Fput_text_property, Fset_text_properties)
9826 (Fremove_text_properties, Fremove_list_of_text_properties)
9827 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9828
048addec 98292003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9830
048addec
JD
9831 * process.h (struct Lisp_Process): New member plist replaces old
9832 member private_vars. All uses changed.
63e4e4c6 9833
048addec 9834 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9835 (QCplist): Rename from QCvars. Change all uses.
048addec 9836 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9837 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9838 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9839 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9840
048addec 98412003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9842
6bdb309a 9843 * m/delta.h: Remove (obsolete).
e833850f 9844
048addec 98452003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9846
048addec
JD
9847 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9848 behaviour in front of symlinks.
9849 (Fdelete_file): Raise an error on directories.
817cb127 9850
048addec 98512003-01-13 Dave Love <fx@gnu.org>
817cb127 9852
048addec 9853 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9854
048addec 98552003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9856
048addec
JD
9857 * minibuf.c (minibuffer_completion_contents):
9858 Error if point is inside prompt.
3e8cf2ea 9859
048addec
JD
9860 * keyboard.c (command_loop_1): Don't redisplay directly
9861 if there's a post-command-hook.
3e8cf2ea 9862
048addec
JD
9863 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9864 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9865
048addec 98662003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9867
048addec 9868 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9869
048addec
JD
9870 * process.c (QCvars): New variable.
9871 (syms_of_process): Intern and staticpro it.
9872 (Fset_process_contact): Removed function.
9873 (Fprocess_variable, Fset_process_variable): New functions.
9874 (syms_of_process): Defsubr them.
9875 (Fstart_process): Initialize private_vars plist to nil.
9876 (Fmake_network_process): New arg :vars to setup the private
9877 variables for new network process.
9878 (server_accept_connection): Copy server's private variables to
9879 client process.
2c10f029 9880
048addec
JD
9881 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9882 crashes). Code rewritten and simplified. Now directly aligns the
9883 pointer and recalculates pure_bytes_used, rather than aligning the
9884 size and adjusting the pointer.
b8a76c6c 9885
048addec 98862003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9887
048addec
JD
9888 * process.c (Fset_process_contact): New function.
9889 (syms_of_process): defsubr it.
9890 (make-network-process): Update doc.
3a8d0899 9891
048addec 98922003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9893
048addec
JD
9894 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9895 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9896
048addec 98972003-01-10 Dave Love <fx@gnu.org>
4abc7470 9898
048addec 9899 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9900
048addec 99012003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9902
048addec
JD
9903 * process.c (Fmake_network_process): Convert new port number
9904 to host byte order for `:service t' case. From Mario Lang.
bf338245 9905
048addec 99062003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 9907
048addec
JD
9908 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9909 instead of XtAppProcessEvent.
bf338245 9910
048addec
JD
9911 * xterm.c (handle_one_xevent): New function.
9912 (x_dispatch_event): New function.
9913 (XTread_socket): Call handle_one_xevent.
bf338245 9914
048addec 9915 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 9916
048addec
JD
9917 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9918 call XQueryPointer to get coordinates.
9919 (popup_get_selection): Do not set popup_activated_flag to zero,
9920 let popup_deactivate_callback do that. Needed for Motif.
9921 Call x_dispatch_event instead of XtDispatchEvent.
9922 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9923
048addec 99242003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9925
6bdb309a 9926 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9927 connection's local address in :local property of contact info.
9928 (Fmake_network_process): Record local network address for new
9929 client processes in :local property of contact info.
6bdb309a 9930 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9931
048addec 99322003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9933
048addec 9934 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9935
048addec 99362003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9937
048addec 9938 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9939
048addec
JD
9940 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9941 use the same test as for custom-variable-p.
8c6d74c6 9942
048addec 99432003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9944
048addec
JD
9945 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9946 Count LAST_LINE_MISFIT in scroll margin for end of window.
9947 Move label too_near_end before setting SCROLL_MARGIN_POS.
9948 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 9949
048addec
JD
9950 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9951 scroll_conservatively case. If scrolling that much doesn't change
9952 STARTP, move it down one line.
e833850f 9953
048addec
JD
9954 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9955 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 9956
048addec
JD
9957 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9958 selected frame.
8c6d74c6 9959
048addec
JD
9960 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9961 (syms_of_keymap): staticpro them.
9962 (Fapropos_internal): Initialize them and clear them out.
9963 Don't GCPRO them.
8c6d74c6 9964
048addec
JD
9965 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9966 Doc fixes.
8c6d74c6 9967
048addec
JD
9968 * lisp.h: New misc type Lisp_Save_Value.
9969 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9970 (XSAVE_VALUE): New macro.
9971 (struct Lisp_Save_Value): New data type.
9972 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 9973 (make_save_value): Declare.
8c6d74c6 9974
048addec 9975 * alloc.c (make_save_value): New function.
8c6d74c6 9976
048addec
JD
9977 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9978 (x_catch_errors_unwind): Call XSync.
8c6d74c6 9979
048addec 99802003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 9981
048addec 9982 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 9983
048addec
JD
9984 * keyboard.c (command_loop_1): Call adjust_point_for_property
9985 in direct action cases for Qforward_char and Qbackward_char.
9986 Set already_adjusted so it won't be done twice.
8c6d74c6 9987
b6189c3b 99882002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 9989
048addec
JD
9990 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9991 type definition of size_t.
8c609cff 9992
048addec 99932003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 9994
048addec
JD
9995 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9996 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 9997
048addec 99982002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 9999
048addec
JD
10000 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10001 to default to t.
fa634a5e 10002
048addec 100032002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10004
048addec 10005 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10006
048addec 100072002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10008
048addec
JD
10009 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10010 allow building in a different directory than source. Uses some
10011 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10012
048addec 100132002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10014
048addec
JD
10015 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10016 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10017 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10018 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10019
048addec 100202002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10021
048addec
JD
10022 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10023 <scroll-down-aggressively>: Doc fix.
2155ecf3 10024
048addec
JD
10025 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10026 string as pane name, if there is one.
10027 (set_frame_menubar): Save menu_items_n_panes from each call to
10028 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10029
048addec
JD
10030 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10031 Don't try to make last line fully visible if it is past end of window.
61f1d295 10032
048addec 100332002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10034
048addec
JD
10035 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10036 (mac_menu_show): Add support for hierarchical popup menus.
10037 (add_menu_item): Remove indentation support.
10038 (fill_submenu, fill_menu): Create hierarchical menus
10039 instead of using indentation.
0b17a217 10040
048addec 100412002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10042
048addec
JD
10043 * xdisp.c (try_cursor_movement): Don't call try_window here.
10044 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10045
048addec 10046 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10047
048addec 100482002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10049
048addec
JD
10050 * macterm.c (XTread_socket): Call KeyTranslate for control and
10051 meta to deal correctly shifted non-alpha characters, like C-S-5
10052 being treated like C-%. Does not look for shift key to deal
10053 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10054
048addec 100552002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10056
048addec
JD
10057 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10058 If it is non-nil, run timers. Use an unwind-protect to requeue
10059 the events that were read ahead.
10060 (popup_get_selection_unwind): New subroutine.
10061 (popup_get_selection_queue): File-scope variable now holds that queue.
10062 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10063 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10064 Use an unwind-protect to pop down the dialog box.
10065 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10066
048addec
JD
10067 * xdisp.c (row_containing_pos): Change exit test using last_y.
10068 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10069
048addec
JD
10070 * lread.c (load_error_handler): New function.
10071 (Fload): Handle errors in Fsubstitute_in_file_name.
10072 Don't expect Fsignal to return.
f02cac82 10073
048addec
JD
10074 * eval.c: Errors and throws work right with interrupt blocking.
10075 (struct catchtag): New elt interrupt_input_blocked.
10076 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10077 (internal_catch, Fcondition_case, internal_condition_case)
10078 (internal_condition_case_1, internal_condition_case_2): Save it.
10079 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10080
048addec 10081 * editfns.c (Fformat): Add parens.
f02cac82 10082
048addec
JD
10083 * dired.c (file_name_completion): Fix that change.
10084 Delete special quit-handling code; just use QUIT.
f02cac82 10085
b6189c3b 100862002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10087
048addec
JD
10088 * dired.c (file_name_completion): Close directory on error
10089 just as in directory_files_internal.
1a590729 10090
048addec 100912002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10092
048addec
JD
10093 * window.c (Fset_window_configuration): Set old_point to correct
10094 value when new_current_buffer == current_buffer.
f02cac82 10095
048addec 100962002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10097
048addec
JD
10098 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10099 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10100 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10101
048addec
JD
10102 These changes were in part based upon suggestions made by Peter
10103 'Luna' Runestig [peter@runestig.com].
9785d95b 10104
048addec
JD
10105 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10106 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10107 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10108 global variables.
9785d95b 10109
048addec
JD
10110 * w32.c (globals_of_w32): New function. Used to initialize those
10111 global variables that must always be initialized on startup even
10112 when the global variable initialized is non zero. Its primary
10113 purpose at this time is to set the global variables
10114 g_b_init_is_windows_9x, g_b_init_open_process_token,
10115 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10116 g_b_init_get_sid_identifier_authority to 0 on startup.
10117 Called from main.
9785d95b 10118
048addec
JD
10119 * w32.c (is_windows_9x): Perform initialization only if
10120 g_b_init_is_windows_9x is equal to 0. On initialization set
10121 g_b_init_is_windows_9x equal to 1.
2308af15 10122
048addec
JD
10123 * w32.c (open_process_token): Perform initialization only if
10124 g_b_init_open_process_token is equal to 0. On initialization set
10125 g_b_init_open_process_token equal to 1.
2308af15 10126
048addec
JD
10127 * w32.c (get_token_information): Perform initialization only if
10128 g_b_init_get_token_information is equal to 0. On initialization
10129 set g_b_init_get_token_information equal to 1.
9785d95b 10130
048addec
JD
10131 * w32.c (lookup_account_sid): Perform initialization only if
10132 g_b_init_lookup_account_sid is equal to 0. On initialization
10133 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10134
048addec
JD
10135 * w32.c (get_sid_identifier_authority): Perform initialization
10136 only if g_b_init_get_sid_identifier_authority is equal to 0.
10137 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10138
f63fd14e 10139 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10140 those global variables that must always be initialized on startup
10141 even when the global variable initialized is non zero.
10142 Its primary purpose at this time is to initialize the global variable
10143 track_mouse_event_fn.
9785d95b 10144
a64387ee 10145 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10146 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10147
048addec 10148 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10149
f63fd14e 10150 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10151 initialize those global variables that must always be initialized
10152 on startup even when the global variable initialized is non zero.
10153 Its primary purpose at this time is to initialize the global
10154 variables get_menu_item_info and set_menu_item_info.
9785d95b 10155
048addec
JD
10156 * w32menu.c (initialize_frame_menubar): Remove initialization of
10157 get_menu_item_info and set_menu_item_info.
9785d95b 10158
048addec 10159 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10160
048addec
JD
10161 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10162 Declare them.
9785d95b 10163
048addec
JD
10164 * emacs.c (main): Call globals_of_w32 prior to calling
10165 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10166 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10167 is defined.
9785d95b 10168
048addec
JD
10169 * w32term.c (x_update_window_begin): Fix Windows API error
10170 detected by BoundsChecker. Test to determine if
10171 w32_system_caret_hwnd is NULL prior to attempting to use
10172 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10173
048addec
JD
10174 * w32term.c (x_update_window_end): Fix Windows API error
10175 detected by BoundsChecker. Test to determine if
10176 w32_system_caret_hwnd is NULL prior to attempting to use
10177 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10178
048addec 101792002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10180
048addec
JD
10181 * coding.c (coding_system_require_warning): New variable.
10182 (syms_of_coding): DEFVAR it.
b6da19ef 10183
048addec 10184 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10185
048addec
JD
10186 * fileio.c (choose_write_coding_system): Even if
10187 Vcoding_system_for_write is non-nil, if
10188 coding_system_require_warning is nonzero, call
10189 Vselect_safe_coding_system_function.
bfcf6dbe 10190
048addec 101912002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10192
048addec
JD
10193 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10194 (lisp): Add font-core.
2c568af5 10195
048addec 101962002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10197
048addec
JD
10198 * textprop.c (text_read_only): New arg `propval'.
10199 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10200 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10201
048addec 102022002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10203
048addec 10204 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10205
048addec 102062002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10207
048addec
JD
10208 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10209 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10210 Be more careful about when help_events are generated.
96720f09 10211
048addec 102122002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10213
048addec
JD
10214 * macterm.c (mac_check_for_quit_char): Correctly set the
10215 modifiers of the event to 0.
10216 * mac.c (sys_select): Duplicate rfds before calling select to
10217 ensure that rfds survive the while loop.
e5ae1c49 10218
048addec 102192002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10220
048addec
JD
10221 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10222 row_containing_pos returned NULL.
2eb46b2d 10223
048addec 102242002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10225
6bdb309a 10226 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10227 non-blocking.
6bdb309a 10228 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10229 the one given.
b11f1d8a 10230
048addec 102312002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10232
048addec 10233 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10234
048addec 102352002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10236
048addec
JD
10237 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10238 as the last thing.
a4ac5b17 10239
048addec 102402002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10241
048addec 10242 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10243
048addec 102442002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10245
048addec
JD
10246 * editfns.c (Fformat): Handle precision in string conversion
10247 specifiers like libc functions do (ie, print at most that many
10248 characters).
85cce843 10249
048addec 102502002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10251
048addec
JD
10252 * xdisp.c (row_containing_pos): Check more carefully
10253 whether charpos is really in the row before returning it.
0d4d26a7 10254
048addec 102552002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10256
048addec 10257 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10258
048addec
JD
10259 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10260 each stack frame. This may change as it could be time consuming.
0d4d26a7 10261
048addec
JD
10262 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10263 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10264 (mac_initialize): Add code to check for pressing of quit_char
048addec 10265 in the OS event queue.
b11f1d8a 10266
048addec
JD
10267 * mac.c (sys_select): Call mac_check_for_quit_char every second
10268 while blocking on select.
0d4d26a7 10269
048addec
JD
10270 * mac.c (sys_read): Use sys_select to test for input first
10271 before calling read, to allow C-g to break.
9252f7bc 10272
048addec 102732002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10274
048addec 10275 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10276
048addec 10277 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10278
048addec 10279 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10280
048addec
JD
10281 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10282 autoload.
9252f7bc 10283
048addec 10284 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10285
048addec 10286 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10287
048addec 102882002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10289
048addec 10290 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10291
048addec 102922002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10293
048addec 10294 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10295
048addec 10296 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10297
048addec 10298 * alloca.c: Don't use #error.
02d588e2 10299
048addec 103002002-12-03 Dave Love <fx@gnu.org>
02d588e2 10301
048addec
JD
10302 * buffer.c (Qucs_set_table_for_input): New.
10303 (Fget_buffer_create): Use it.
10304 (Qset_buffer_major_mode_hook): Deleted.
10305 (Fset_buffer_major_mode): Revert previous change.
10306 (init_buffer_once): Intern ucs-set-table-for-input.
10307 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10308 Add &Qucs_set_table_for_input.
451e2697 10309
048addec 103102002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10311
048addec
JD
10312 * callint.c (Fcall_interactively): Use next_event only if less
10313 than key_count.
72742a99 10314
048addec 103152002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10316
048addec
JD
10317 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10318 names to 255 characters.
72742a99 10319
048addec
JD
10320 * macterm.c (XTread_socket): If all frames have been collapsed,
10321 expand the first one before handling drag-and-drop events.
72742a99 10322
048addec
JD
10323 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10324 which is detected by autoconf.
40e6ff95 10325
048addec 103262002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10327
048addec
JD
10328 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10329 offset in two hints table to allow prebinding to be redone and
10330 allow the executable to be stripped.
c02138c6 10331
048addec 103322002-11-29 Dave Love <fx@gnu.org>
c02138c6 10333
048addec
JD
10334 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10335 already provided.
0e47bbf7 10336
048addec 103372002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10338
048addec
JD
10339 * xdisp.c (start_display): Check more intelligently for
10340 whether the line is continued.
10341 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10342
048addec 103432002-11-28 Dave Love <fx@gnu.org>
44129dcb 10344
048addec
JD
10345 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10346 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10347
048addec 103482002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10349
048addec
JD
10350 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10351 more descriptive error output from lread.c:Fload upon most require
10352 cycles during boostrapping.
1637fd2c 10353
048addec 103542002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10355
048addec
JD
10356 * fileio.c (Finsert_file_contents): Give a more appropriate error
10357 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10358
048addec
JD
10359 * dired.c (Ffile_attributes): Don't return negative file sizes for
10360 files bigger than 2Gb when off_t is 32 bit.
540c2788 10361
048addec 103622002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10363
048addec 10364 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10365
048addec
JD
10366 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10367 Test GETPGRP_VOID instead.
10368 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10369
048addec
JD
10370 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10371 Don't define.
10372 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10373
048addec 10374 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10375
048addec 103762002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10377
048addec
JD
10378 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10379 supported.
4042a81a 10380
048addec 103812002-11-25 Dave Love <fx@gnu.org>
4042a81a 10382
048addec 10383 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10384
048addec 10385 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10386
048addec 103872002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10388
048addec 10389 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10390
048addec 103912002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10392
048addec
JD
10393 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10394 determine the size of pointers alloced in unexed space instead
10395 of using possibly invalid emacs_zone pointers. This fixes the
10396 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10397
048addec 103982002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10399
048addec 10400 * search.c (Fstring_match): Doc fix.
c1ee53bc 10401
048addec
JD
10402 * callint.c (Fcall_interactively): If a command fails because
10403 `*' detects a read-only buffer, but RECORD_FLAG is set,
10404 record it anyway if the args don't actually do tty input.
5598c32e 10405
048addec 104062002-11-22 Dave Love <fx@gnu.org>
5598c32e 10407
048addec 10408 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10409
048addec
JD
10410 * keyboard.c (interrupt_signal): Provide forward declaration.
10411 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10412
048addec 10413 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10414
048addec 104152002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10416
048addec
JD
10417 * eval.c (interactive_p): Skip any number of bytecode
10418 and special form frames, in any order.
516eea8e 10419
048addec 104202002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10421
048addec
JD
10422 * w32fns.c (convert_mono_to_color_image): New function.
10423 (xbm_load, xbm_load_image): Use it when foreground or background
10424 is explicitly set.
04dbfa08 10425
048addec 104262002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10427
048addec 10428 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10429
048addec 104302002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10431
048addec
JD
10432 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10433 (XPutPixel): Swap blue and red.
10434 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10435 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10436 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10437 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10438
048addec 104392002-11-18 Dave Love <fx@gnu.org>
d824beee 10440
048addec 10441 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10442
048addec 10443 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10444
048addec 10445 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10446
048addec
JD
10447 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10448 malloc, realloc, calloc.
d824beee 10449
048addec
JD
10450 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10451 (bcmp): Don't define.
d824beee 10452
048addec 10453 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10454
048addec 10455 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10456
048addec 10457 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10458
048addec 10459 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10460
048addec
JD
10461 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10462 Don't include alloca.h.
d824beee 10463
048addec 10464 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10465
048addec 10466 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10467
048addec 10468 * process.c (_GNU_SOURCE): Don't define.
1998560a 10469
048addec 10470 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10471
048addec 104722002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10473
048addec 10474 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10475
048addec 104762002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10477
048addec
JD
10478 * dispextern.h (struct face): Add `overstrike' field.
10479 * xterm.c (x_draw_glyph_string_foreground)
10480 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10481 * xfaces.c (load_face_font): Set `face->overstrike' based on
10482 result from choose_face_font.
10483 (best_matching_font, choose_face_font): Add `needs_overstrike'
10484 argument, and use it to return whether overstriking is desirable
10485 for this face/font combo.
10486 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10487
048addec 104882002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10489
048addec
JD
10490 This change is my fix for the following entry in etc/PROBLEMS:
10491 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10492 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10493
048addec
JD
10494 * w32.c: Added wrapper functions around the win32 API functions
10495 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10496 GetSidIdentifierAuthority. These wrapper functions serve two
10497 purposes:
10498 1. They ensure that the wrapped function can never be called
10499 when Emacs is running on an operating system on which they are
10500 not supported (Microsoft Windows 95 / 98 / ME).
10501 2. They call the wrapped functions via function pointers rather
10502 than calling them directly. This avoids taking advantage of the
10503 undocumented fact that although these functions are not supported
10504 in the 9x branch of Microsoft Windows, the functions do exist in
10505 the version of advapi32.dll that is found in the 9x branch of
10506 Microsoft Windows.
f60ae425 10507
6bdb309a 10508 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10509 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10510 and GetSidIdentifierAuthority with calls to the newly added
10511 wrapper functions.
f60ae425 10512
048addec
JD
10513 * w32.h: Added extern declarations for the following functions:
10514 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10515 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10516
6bdb309a 10517 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10518 function pointer track_mouse_event_fn in the handler for the
10519 WM_SETFOCUS message.
3582b6a3 10520
6bdb309a 10521 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10522 reinitialize the function pointers set_menu_item_info and
10523 get_menu_item_info.
f60ae425 10524
048addec 105252002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10526
048addec
JD
10527 * sound.c: Added a partial implementation of play-sound-internal
10528 for Microsoft Windows. Added various #ifdef / #else / #endif
10529 code blocks to separate the code that will compile under
10530 Microsoft Windows from the code that is specific to Gnu/Linux.
10531 Moved several blocks of code around to make this separation of code
10532 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10533
048addec 10534 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10535
048addec
JD
10536 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10537 added support for play-sound-internal under Windows would be
10538 included in the build of Emacs.
517f42a0 10539
048addec 105402002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10541
048addec 10542 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10543
048addec 10544 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10545
048addec 105462002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10547
048addec
JD
10548 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10549 (adjust_point_for_property): Move out of display and invisible even if
10550 we were already inside before (in case a property was added while
10551 we weren't looking). Be more careful when handling invisible props.
10552 Skip invisible text as if it really wasn't there at all.
aab83f91 10553
048addec 105542002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10555
048addec
JD
10556 * w32term.c (x_draw_image_foreground)
10557 (w32_draw_image_foreground_1): Use standard copy and invert
10558 operations to draw images.
aab83f91 10559
048addec
JD
10560 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10561 depth of 1.
10562 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10563 (XPutPixel): Don't invert bits here.
a4478a76 10564
048addec 105652002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10566
048addec
JD
10567 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10568 (w32_draw_image_foreground_1): Handle image masks.
10569 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10570
048addec
JD
10571 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10572 (x_from_xcolors): Adjust RGB values for W32.
10573 (image_background, image_background_transparent)
10574 (postprocess_image, x_to_xcolors, x_disable_image)
10575 (x_build_heuristic_mask): Adapt for W32 and enable.
10576 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10577 (xbm_load): Remove unused variable.
03670a65 10578
048addec 105792002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10580
048addec 10581 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10582
048addec 105832002-11-14 Dave Love <fx@gnu.org>
59daa29a 10584
048addec 10585 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10586
048addec
JD
10587 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10588 * xmenu.c (unuse_menu_items, digest_single_submenu):
10589 * xfns.c (x_put_x_image):
10590 * xdisp.c (message2_nolog, set_message):
10591 * undo.c (record_point):
10592 * terminfo.c (tparam):
10593 * syntax.c (scan_sexps_forward):
10594 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10595 * composite.c (update_compositions):
10596 * cm.c (calccost, cmgoto):
10597 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10598
048addec 10599 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10600
048addec
JD
10601 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10602 Don't declare.
59daa29a 10603
048addec 10604 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10605
048addec
JD
10606 * fns.c (Fcopy_sequence): Doc fix.
10607 (Fmap_char_table): Cast `call2'.
3947677c 10608
048addec
JD
106092002-11-14 Francesco Potorti` <pot@gnu.org>
10610
10611 * s/sol2-8.h: New file.
10612
106132002-11-14 Kim F. Storm <storm@cua.dk>
10614
10615 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10616 dependency on `risky-local-variable' and the :propertize form.
10617
106182002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10619
10620 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10621
10622 * syntax.c (scan_sexps_forward): Undo last patch.
10623 Use a more obvious fix: check eob before updating the syntax table.
10624
106252002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10626
10627 * syntax.c (scan_sexps_forward): Update syntax table before reading
10628 a char rather than after so we don't update the table past eob.
10629
106302002-11-09 Dave Love <fx@gnu.org>
10631
10632 * buffer.c (Fset_buffer_major_mode): Fix last change.
10633
10634 * regex.c (regexec): Fix pmatch declaration.
10635
10636 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10637
10638 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10639 to self-inserting characters.
10640 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10641
10642 * coding.c (Vtranslation_table_for_input): New.
10643 (syms_of_coding): DEFVAR it.
10644
106452002-11-08 Juanma Barranquero <lektu@terra.es>
10646
10647 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10648 window.
10649
106502002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10651
6bdb309a 10652 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10653 cp, and i.
10654
106552002-11-06 Dave Love <fx@gnu.org>
10656
10657 * buffer.c (Qset_buffer_major_mode_hook): New.
10658 (Fset_buffer_major_mode): Use it.
10659
106602002-11-06 Richard M. Stallman <rms@gnu.org>
10661
10662 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10663 and stop_polling.
10664
10665 * process.c (wait_reading_process_input):
10666 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10667 Avoid initialization for auto Lisp_Object var.
10668
10669 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10670
10671 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10672
106732002-11-05 Richard M. Stallman <rms@gnu.org>
10674
10675 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10676
10677 * callint.c (Fcall_interactively): New local filter_specs.
10678 (Fcall_interactively): Check for progn as well as let.
10679 Add a gcpro.
10680 (Qprogn): New variable.
10681 (syms_of_callint): Staticpro and init Qprogn.
10682
106832002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10684
10685 * lread.c (Feval_buffer): Doc fix.
10686
106872002-11-04 Dave Love <fx@gnu.org>
10688
10689 * keyboard.c (read_char): Always translate iff
10690 Vkeyboard_translate_table is a char table and c is valid.
10691
10692 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10693 and fix C types.
10694
106952002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10696
10697 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10698
10699 * editfns.c (get_pos_property): Don't hardcode Qfield.
10700
10701 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10702 overlays. Also handle `invisible' prop.
10703
107042002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10705
10706 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10707 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10708
107092002-11-01 Andreas Schwab <schwab@suse.de>
10710
10711 * editfns.c (Fmessage): Revert last change to properly handle %%.
10712
107132002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10714
10715 * xmenu.c (unuse_menu_items): New fun.
10716 (menu_items_inuse): New var.
10717 (syms_of_xmenu): Initialize it.
10718 (init_menu_items): Use it to detect re-entrance.
10719 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10720 (Fx_popup_menu): Remove spurious XSETFRAME.
10721
10722 * editfns.c (find_field): Make an exception for nil fields.
10723
107242002-11-01 Dave Love <fx@gnu.org>
10725
10726 * m/gec63.h: Deleted.
10727
107282002-10-31 Dave Love <fx@gnu.org>
10729
10730 * xterm.c (XTread_socket): Fix last change.
10731 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10732
107332002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10734
10735 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10736
107372002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10738
10739 * editfns.c (overlays_around, get_pos_property): New funs.
10740 (find_field): Use them.
10741 Also be careful not to modify POS before its last use.
10742 (Fmessage): Don't Fformat if there's nothing to format.
10743
107442002-10-30 Dave Love <fx@gnu.org>
10745
10746 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10747 [HAVE_PTY_H]; Include pty.h.
10748
10749 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10750
10751 * xterm.c (Qeql): Declare.
10752 (Vx_keysym_table): New.
10753 (syms_of_xterm): Initialize it.
10754 (XTread_socket): Use it. Deal with ASCII keysyms.
10755 (XSetIMValues) [HAVE_X11R6]: Prototype.
10756
10757 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10758 (lispy_kana_keys): Comment out.
10759 (make_lispy_event) [XK_kana_A]: Comment out.
10760 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10761 Fix sprintf call.
10762
10763 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10764 regexp.h change).
10765 (TERMINFO, LIBS_TERMCAP): Define.
10766
10767 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10768 (bcmp): Define conditional on HAVE_BCMP.
10769 (NO_SIOCTL_H): Don't define.
10770 (TIOCSIGSEND): Don't make conditional on IRIX6.
10771
10772 * s/sol2-5.h: Don't include strings.h.
10773 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10774
10775 * s/irix6-0.h (IRIX6): Don't define.
10776 (bcopy, bcmp, bzero): Don't undef.
10777
10778 * s/irix6-5.h: Don't include strings.h.
10779 (IRIX6): Don't define.
10780 (bcopy, bcmp, bzero): Don't undef.
10781
10782 * syntax.c (Fforward_comment): Doc fix.
10783
107842002-10-29 Kim F. Storm <storm@cua.dk>
10785
10786 * process.c (Fsignal_process): Allow PROCESS to be specified by
10787 name in addition to pid (as integer or string).
10788
107892002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10790
10791 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10792 environments.
10793
107942002-10-27 Kim F. Storm <storm@cua.dk>
10795
10796 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10797
10798 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10799
10800 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10801
10802 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10803
108042002-10-26 Richard M. Stallman <rms@gnu.org>
10805
10806 * editfns.c (Fformat): Detect invalid format letters for floats.
10807
108082002-10-25 Kenichi Handa <handa@m17n.org>
10809
10810 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10811 (x_set_title): Likewise.
10812
108132002-10-25 Juanma Barranquero <lektu@terra.es>
10814
10815 * macgui.h:
10816 * w32gui.h: Remove definition of XColor.
10817
10818 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10819
108202002-10-24 Kim F. Storm <storm@cua.dk>
10821
10822 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10823 Callers changed (supply dummy arg).
10824
10825 * lisp.h (get_window_cursor_type): Update prototype.
10826
10827 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10828 get_window_cursor_type to track system caret.
10829
108302002-10-24 Kim F. Storm <storm@cua.dk>
10831
10832 * process.c (Fformat_network_address): New function.
10833 (syms_of_process): Defsubr it.
10834 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10835 service/host is not set; before Emacs would crash in that case.
048addec
JD
10836 (Fmake_network_process): Don't use Ffind_operation_coding_system
10837 to setup coding system if host or service is not set.
10838
108392002-10-23 Juanma Barranquero <lektu@terra.es>
10840
10841 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10842
10843 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10844 COLORREF.
10845
10846 * macgui.h:
10847 * w32gui.h: Add definition of XColor.
10848
10849 * macfns.c:
10850 * w32fns.c:
10851 * xfaces.c: Remove definition of XColor.
10852
108532002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10854
10855 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10856
10857 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10858 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10859 window if it is dedicated.
10860 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10861 (Vspecial_display_function): Update docstring.
10862
10863 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10864 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10865 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10866
108672002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10868
10869 * casefiddle.c (casify_region): Don't treat a prefix char as part
10870 of a word when at the beginning.
10871
108722002-10-17 Juanma Barranquero <lektu@terra.es>
10873
10874 * lread.c (syms_of_lread): Fix typos.
10875
108762002-10-17 Dave Love <fx@gnu.org>
10877
10878 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10879
108802002-10-16 Richard M. Stallman <rms@gnu.org>
10881
10882 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10883
108842002-10-14 Juanma Barranquero <lektu@terra.es>
10885
10886 * w16select.c (syms_of_win16select): Fix docstring for
10887 `selection-coding-system'.
10888
10889 * w32select.c (syms_of_w32select): Likewise.
10890
108912002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10892
10893 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10894 a backslash-quoted char.
10895 (scan_lists, scan_sexps_forward): Pacify the compiler.
10896
108972002-10-13 Richard M. Stallman <rms@gnu.org>
10898
10899 * window.c (window_scroll): Set immediate_quit.
10900
10901 * print.c (print): When backquote form is the car of a list,
10902 output in old style. Use old_backquote_output to output all
10903 comma forms inside it in old style too.
10904
10905 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10906
109072002-10-11 Markus Rost <rost@math.ohio-state.edu>
10908
10909 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10910 batch mode).
10911
10912 * lread.c (Fload): Doc fix (load-suffixes).
10913
109142002-10-10 Steven Tamm <steventamm@mac.com>
10915
10916 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10917 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10918 Also switch the default to Qnil from Qt.
10919
109202002-10-08 Kenichi Handa <handa@m17n.org>
10921
10922 * coding.c (code_convert_region): When we need more GAP for
10923 conversion, pay attention to the case that coding->produced is not
10924 greater than coding->consumed.
10925
109262002-10-07 Richard M. Stallman <rms@gnu.org>
10927
10928 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10929
109302002-10-06 Andrew Choi <akochoi@shaw.ca>
10931
10932 * macmenu.c (mac_menu_show): Add j to count menu items; match
10933 menu_item_selection to it to find selected item.
10934
109352002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10936
10937 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10938 cases. The correct fix is to pass ReparentNotify to Xt.
10939 The shell widget interprets ConfigureNotify differently depending
10940 on if it has been reparented or not.
10941
109422002-10-05 Markus Rost <rost@math.ohio-state.edu>
10943
10944 * editfns.c (Fformat_time_string): Doc fix.
10945
109462002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10947
10948 * fns.c (Flength): Doc fix.
10949
109502002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10951
10952 * keyboard.c (keyremap): New struct.
10953 (read_key_sequence): Use it: globally replace keytran_foo with
10954 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10955 keytran_next and fkey_next to just `next'.
10956
109572002-10-04 Steven Tamm <steventamm@mac.com>
10958
10959 * macterm.c (keycode_to_xkeysym_table): Change return to be
10960 treated like an X keysym.
10961
109622002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10963
10964 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10965 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10966 This is to also handle x/y changes that occur because of a resize.
10967
109682002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10969
10970 * frame.c (Vdelete_frame_functions): New variable.
10971 (syms_of_frame): Initialize and defvar it.
10972 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10973 it when frame's `tooltip' parameter is non-nil.
10974
10975 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10976
10977 * w32fns.c (x_create_tip_frame): Likewise.
10978
10979 * macfns.c (x_create_tip_frame): Likewise.
10980
109812002-09-30 Kenichi Handa <handa@m17n.org>
10982
10983 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10984 -1 before calling ccl_driver.
10985
10986 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10987 Only when it is non-nil, handle composition sequence.
10988 (setup_coding_system) <0>: Don't force composition handling.
10989
10990 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10991
109922002-09-29 Richard M. Stallman <rms@gnu.org>
10993
10994 * search.c (Freplace_match): Adjust match data for the substitution
10995 just made in the buffer.
10996
10997 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10998 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
10999
110002002-09-27 Richard M. Stallman <rms@gnu.org>
11001
11002 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11003 (read_char): Use them. Do all exits thru the end of the function.
11004
110052002-09-27 Kenichi Handa <handa@etl.go.jp>
11006
11007 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11008 is nil.
11009
110102002-09-26 Richard M. Stallman <rms@gnu.org>
11011
11012 * regex.h (__restrict_arr): Don't define if already defined.
11013
11014 * coding.c (run_pre_post_conversion_on_str):
11015 Save and restore Vdeactivate_mark.
11016
110172002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11018
11019 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11020
110212002-09-26 Kenichi Handa <handa@etl.go.jp>
11022
11023 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11024 nonzero, try face's family at first. Otherwise try FAMILY at first.
11025 (choose_face_font): If C is a single byte char or latin-1, call
11026 try_font_list with PREFER_FACE_FAMILY 1.
11027
110282002-09-21 Richard M. Stallman <rms@gnu.org>
11029
11030 * window.c (select_window_1): Don't select frame.
11031 Set frame's selected window only when frame itself is selected.
11032 (Fselect_window): Doc fix.
11033
110342002-09-18 Kim F. Storm <storm@cua.dk>
11035
11036 * process.c (make-network-process): Doc fix (there is no
11037 network-server-log-function hook).
11038
110392002-09-18 Richard M. Stallman <rms@gnu.org>
11040
11041 * print.c (print): Clear out the unused parts of Vprint_number_table.
11042 (syms_of_print): Doc fix for `print-number-table'.
11043
11044 * unexelf.c (unexec): Undo previous change.
11045
110462002-09-17 Andreas Schwab <schwab@suse.de>
11047
11048 * m/alpha.h [LINUX]: Don't define DATA_START.
11049
110502002-09-16 Dave Love <fx@gnu.org>
11051
11052 * unexelf.c (unexec): Deal with .got, reinstating change from
11053 25-08-1999.
11054
110552002-09-13 Richard M. Stallman <rms@gnu.org>
11056
11057 * s/sol2-6.h (UNEXEC): Comment out definition.
11058
11059 * unexsol.c (unexec): Don't downcase first letter of error msg.
11060
11061 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11062
110632002-09-12 Markus Rost <rost@math.ohio-state.edu>
11064
11065 * unexsol.c: Include buffer.h, charset.h, coding.h.
11066
110672002-09-11 Richard M. Stallman <rms@gnu.org>
11068
11069 * unexsol.c: Don't use report_file_error; do it by hand
11070 using dlerror.
11071
11072 * process.c (wait_reading_process_input, both versions):
11073 Before calling turn_on_atimers, call stop_polling.
11074
11075 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11076
11077 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11078 we go to too_near_end, call clear_glyph_matrix.
11079 (redisplay_window): After make_cursor_line_fully_visible,
11080 call clear_glyph_matrix and bypass `goto done'.
11081
11082 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11083 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11084
110852002-09-10 Richard M. Stallman <rms@gnu.org>
11086
11087 * fileio.c (Fdo_auto_save): Catch error making directory.
11088 Only call push_message if we need to.
11089 At the same time, make an unwind-protect to pop it.
11090 Rename local message_p to old_message_p.
11091 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11092 (do_auto_save_unwind): Don't call pop_message.
11093
11094 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11095
11096 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11097
11098 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11099
11100 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11101
111022002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11103
11104 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11105 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11106 (re_match_2_internal): Be more careful with infinite loops.
11107
111082002-09-10 Kim F. Storm <storm@cua.dk>
11109
11110 * macros.c (end_kbd_macro): New function.
11111 (Fend_kbd_macro): Use it.
11112
11113 * macros.h (end_kbd_macro): Declare extern.
11114
11115 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11116 end and save it instead of discarding it.
11117
111182002-09-09 Markus Rost <rost@math.ohio-state.edu>
11119
11120 * s/sol2-6.h: Fix typo. Add comment.
11121
111222002-09-09 Richard M. Stallman <rms@gnu.org>
11123
11124 * regex.c (regnum_t): Use signed int, not unsigned int.
11125
11126 * s/sol2-6.h: New file.
11127
11128 * s/sol2-5.h (UNEXEC): Definition deleted.
11129
111302002-09-08 Kim F. Storm <storm@cua.dk>
11131
11132 * macros.c (executing_macro_index): Change type to EMACS_INT.
11133 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11134
11135 * macros.h (executing_macro_index): Change type to EMACS_INT.
11136
111372002-09-06 Richard M. Stallman <rms@gnu.org>
11138
11139 * casetab.c (set_case_table): Make canon table point to eqv table.
11140
111412002-09-06 Juanma Barranquero <lektu@terra.es>
11142
11143 * coding.c (syms_of_coding): Fix spacing.
11144
11145 * composite.c (Fcompose_region_internal)
11146 (Fcompose_string_internal): Likewise.
11147
11148 * data.c (Flsh): Likewise.
11149
11150 * fontset.c (Fset_fontset_font): Likewise.
11151
11152 * macfns.c (Fx_server_max_request_size): Likewise.
11153
11154 * w16select.c (syms_of_win16select): Likewise.
11155
11156 * w32select.c (syms_of_w32select): Likewise.
11157
11158 * xselect.c (syms_of_xselect): Likewise.
11159
111602002-09-05 Richard M. Stallman <rms@gnu.org>
11161
11162 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11163 call EXTEND_RANGE_TABLE and return a proper value.
11164 (set_image_of_range): Don't call set_image_of_range_1
11165 if no TRANSLATE or if range includes all of Latin-1.
11166 Only call it for the Latin-1 part of the range.
11167 For other cases, make two separate ranges,
11168 one for the original specified characters and one for
11169 their case-conversions.
11170
111712002-09-04 Richard M. Stallman <rms@gnu.org>
11172
11173 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11174
11175 * window.c (displayed_window_lines): Correct for one-off bug
11176 in HEIGHT on non-window displays.
11177
11178 * regex.c (set_image_of_range_1): New function.
11179 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11180 Return a value to indicate running out of memory.
11181 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11182 (extend_range_table_work_area): New subroutine.
11183 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11184 Different calling conventions, and used from set_image_of_range{,_1}.
11185 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11186
111872002-09-04 Juanma Barranquero <lektu@terra.es>
11188
11189 * makefile.w32-in: All dependencies updated.
11190
111912002-09-01 Richard M. Stallman <rms@gnu.org>
11192
11193 * unexsol.c: New file.
11194
11195 * xfns.c (Qbox): Declare external, don't define.
11196
11197 * xdisp.c (redisplay_window) <force-start case>:
11198 If point is on semi-visible last line, reposition
11199 it at previous line.
11200
11201 * alloc.c (display_malloc_warning): Use display-warning.
11202 (malloc_warning_1): Function deleted.
11203
11204 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11205
11206 * lread.c (read1): Handle #! by skipping the line.
11207
112082002-08-31 Richard M. Stallman <rms@gnu.org>
11209
11210 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11211 Don't include LDFLAGS.
11212 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11213
112142002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11215
11216 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11217 member of x_display_info unless we compile for some window system.
11218
112192002-08-31 Kim F. Storm <storm@cua.dk>
11220
11221 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11222 (get_window_cursor_type): Don't use them.
11223 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11224
112252002-08-30 Kenichi Handa <handa@etl.go.jp>
11226
11227 * xdisp.c (get_next_display_element): Fix previous change.
11228
112292002-08-30 Andrew Choi <akochoi@shaw.ca>
11230
11231 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11232 (expose_window): Use it to fix the display of overlapping
11233 rows (merge code from xterm.c).
11234
11235 * macfns.c (Qbox): Add extern declaration.
11236
112372002-08-30 Juanma Barranquero <lektu@terra.es>
11238
11239 * w32fns.c (Qbox): Make extern.
11240 (syms_of_w32fns): Remove initialization of Qbox.
11241
112422002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11243
11244 * xfns.c (Fx_open_connection): Fix error message.
11245
112462002-08-30 Kim F. Storm <storm@cua.dk>
11247
11248 The following changes consolidates the handling of the cursor
11249 type in xdisp.c, moving duplicate code and functionality from
11250 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11251
11252 * frame.h (enum text_cursor_kinds): Consolidated here.
11253 Added DEFAULT_CURSOR value.
11254 (struct frame) <desired_cursor, cursor_width>
11255 <blink_off_cursor, blink_off_cursor_width>: New fields.
11256 Consolidated from output_x, output_w32 and output_mac structs.
11257 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11258 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11259
11260 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11261 Variables consolidated here.
11262 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11263 (Vcursor_in_non_selected_windows): Renamed from
11264 cursor_in_non_selected_windows and changed to Lisp_Object.
11265 (syms_of_xdisp): Define and staticpro new and moved variables.
11266 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11267 consolidated here. Recognize Qhollow setting.
11268 (set_frame_cursor_types): New function to set frame cursor types
11269 based on the frame parameters.
11270 (get_window_cursor_type): New function to calculate new cursor
11271 type and width for the specified window. Based on duplicated
11272 code consolidated here.
11273 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11274 check buffer-local alternate-cursor-type and blink-cursor-alist
11275 before using built-in blink off methods.
11276
11277 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11278
11279 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11280 (get_specified_cursor_type, get_window_cursor_type)
11281 (set_frame_cursor_types): Added prototypes.
11282
11283 * macfns.c (x_specified_cursor_type): Removed.
11284 (x_set_cursor_type): Use set_frame_cursor_types.
11285 (Qbar, Qbox): Removed.
11286 (syms_of_macfns): Don't intern or staticpro them.
11287
11288 * macterm.c (x_specified_cursor_type): Remove prototype.
11289 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11290 (x_display_and_set_cursor): Use get_window_cursor_type.
11291 Remove unused local variables cursor_non_selected, active_cursor.
11292 Redraw cursor if hbar cursor width changes.
11293 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11294
11295 * macterm.h (enum text_cursor_kinds): Removed.
11296 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11297 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11298 (FRAME_DESIRED_CURSOR): Macro removed.
11299
11300 * w32fns.c (Vblink_cursor_alist): Removed.
11301 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11302 (syms_of_w32fns): Don't intern, staticpro, or define them.
11303 (x_specified_cursor_type): Removed.
11304 (x_set_cursor_type): Use set_frame_cursor_types.
11305
11306 * w32term.c (x_specified_cursor_type): Remove prototype.
11307 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11308 (x_display_and_set_cursor): Use get_window_cursor_type.
11309 Remove unused local variables cursor_off_state.
11310 Redraw cursor if hbar cursor width changes.
11311 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11312
11313 * w32term.h (enum text_cursor_kinds): Removed.
11314 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11315 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11316 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11317 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11318 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11319 w32_highlight_frame.
11320
11321 * xfns.c (Vblink_cursor_alist): Removed.
11322 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11323 (syms_of_xfns): Don't intern, staticpro, or define them.
11324 (x_specified_cursor_type): Removed.
11325 (x_set_cursor_type): Use set_frame_cursor_types.
11326
11327 * xterm.c (x_specified_cursor_type): Remove prototype.
11328 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11329 (x_display_and_set_cursor): Use get_window_cursor_type.
11330 Remove unused local variables cursor_off_state.
11331 Redraw cursor if hbar cursor width changes.
11332
11333 * xterm.h (enum text_cursor_kinds): Removed.
11334 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11335 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11336 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11337 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11338 (x_specified_cursor_type): Remove prototype.
11339
113402002-08-28 Richard M. Stallman <rms@gnu.org>
11341
11342 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11343 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11344 (Vblink_cursor_alist): New variable.
11345 (syms_of_w32fns): Initialize and defvar it.
11346 (x_specified_cursor_type): Recognize Qbox for filled box.
11347 Exceptions are hollow boxes.
11348 (Qbox, Qhollow): New variables.
11349 (syms_of_w32fns): Initialize and staticpro them.
11350
11351 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11352 New macros.
11353 (struct w32_output): New fields blink_off_cursor,
11354 blink_off_cursor_width.
11355 (FRAME_CURSOR_WIDTH): New macro.
11356
11357 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11358 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11359
11360 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11361 for bar cursor.
11362
11363 * w32term.c (expose_overlaps): New function.
11364 (expose_window): Use it to fix the display of overlapping rows.
11365
113662002-08-28 Simon Josefsson <jas@extundo.com>
11367
11368 * xfns.c (Fx_open_connection): Improve help when X connection
11369 fails, xhost is insecure and xauth is better.
11370
113712002-08-28 Juanma Barranquero <lektu@terra.es>
11372
11373 * makefile.w32-in: Add missing dependencies on w32term.h and
11374 composite.h.
11375
11376 * emacs.c (USAGE1): Add missing newline.
11377
113782002-08-27 Andrew Choi <akochoi@shaw.ca>
11379
11380 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11381
113822002-08-27 Richard M. Stallman <rms@gnu.org>
11383
11384 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11385 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11386 (Vblink_cursor_alist): New variable.
11387 (syms_of_xfns): Initialize and defvar it.
11388 (x_specified_cursor_type): Recognize Qbox for filled box.
11389 Exceptions are hollow boxes.
11390 (Qbox, Qhollow): New variables.
11391 (syms_of_xfns): Initialize and staticpro them.
11392
11393 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11394 New macros.
11395 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11396
11397 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11398 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11399
11400 * emacs.c (main): Handle --script.
11401 (USAGE1): Mention --script.
11402 (standard_args): Define sort order for --script.
11403
114042002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11405
11406 * xdisp.c (redisplay_updating_p): Variable removed.
11407 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11408 New variables.
11409 (init_iterator): Don't free realized faces if
11410 inhibit_free_realized_faces is set.
11411 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11412 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11413 initialize Qinhibit_free_realized_faces.
11414
11415 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11416 when iterator is adding glyphs to a glyph matrix.
11417
114182002-08-27 Kenichi Handa <handa@etl.go.jp>
11419
11420 * xdisp.c (get_next_display_element): In unibyte case, don't use
11421 octal form for such eight-bit characters that can be converted to
11422 multibyte char.
11423
114242002-08-26 Kim F. Storm <storm@cua.dk>
11425
b6189c3b
KS
11426 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11427 foreground and background colors. From Joe Buehler.
048addec
JD
11428
114292002-08-26 Miles Bader <miles@gnu.org>
11430
11431 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11432
114332002-08-25 Andrew Choi <akochoi@shaw.ca>
11434
11435 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11436 defined instead of MAC_OSX.
11437
11438 * s/darwin.h (select): Define select to sys_select only if
11439 HAVE_CARBON is defined.
11440 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11441 (DONT_REOPEN_PTY): #def it.
11442
11443 * macterm.c (XTread_socket): Remove code to call
11444 SendEventToEventTarget for keys with command modifiers when
11445 mac_command_key_is_meta is nil.
11446
114472002-08-24 Andreas Schwab <schwab@suse.de>
11448
11449 * eval.c (Fdefvar): Fix last change.
11450
114512002-08-23 Richard M. Stallman <rms@gnu.org>
11452
11453 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11454 Record variables in load history as (defvar . VAR).
11455 (Fdefvar): Don't record in load history if no initial value.
11456 (Qdefvar): New variable.
11457 (syms_of_eval): Init and staticpro it.
11458
11459 * lread.c (syms_of_lread): Doc fix.
11460 (build_load_history): Use Fmember to see if a definition
11461 is already in the Vload_history element.
11462
11463 * process.c (Fstart_process): Remove /: from program name.
11464
11465 * emacs.c (decode_env_path): Don't add /: if file name handler
11466 has a `safe-magic' property.
11467
11468 * callproc.c (Fcall_process): Remove /: from program name.
11469
114702002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11471
11472 * regex.c (PATFETCH): Remove the translating fetch.
11473 (PATFETCH_RAW): Rename to PATFETCH.
11474 (set_image_of_range): New fun.
11475 (SET_RANGE_TABLE_WORK_AREA): Use it.
11476 (regex_compile): Don't translate the pattern chars so eagerly.
11477 Only do it when inserting an `exactn' bytecode or when handling
11478 a char-range.
11479 (mutually_exclusive_p): Avoid empty statement.
11480
114812002-08-22 Kim F. Storm <storm@cua.dk>
11482
11483 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11484 end up on a partially visible line; this reverts a specific part
11485 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11486 display error which has been reported several times now.
11487 However it introduces the problem that changes was supposed to fix.
11488 See my comments in the source if you want to debug this further.
11489
114902002-08-20 Kenichi Handa <handa@etl.go.jp>
11491
11492 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11493
114942002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11495
11496 * msdos.c (croak): Add `void' to definition.
11497
c1380aa6 11498 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11499 Don't define them, they are defined in msdos.c.
11500
11501 * mem-limits.h [MSDOS]: Declare etext.
11502
11503 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11504 `const' since CORRECT_DIR_SEPS modifies its target.
11505
115062002-08-19 Kim F. Storm <storm@cua.dk>
11507
2fb0ce67 11508 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11509 KEEP-RECORD to avoid clearing lossage when we just want to clear
11510 the current key sequence (kmacro needs this).
11511
115122002-08-19 Kenichi Handa <handa@localhost>
11513
11514 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11515
11516 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11517 cons, return Qnil.
11518
115192002-08-17 Richard M. Stallman <rms@gnu.org>
11520
11521 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11522
11523 * sysdep.c [!VMS]: Include sys/files.h.
11524
11525 * editfns.c (save_restriction_restore): Defend from unchained marker.
11526
11527 * buffer.c (overlays_at): Handle extending vec uniformly.
11528 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11529
115302002-08-15 Andrew Choi <akochoi@shaw.ca>
11531
11532 * mac.c (init_mac_osx_environment): New function.
11533
11534 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11535
115362002-08-14 Kim F. Storm <storm@cua.dk>
11537
11538 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11539 executing macro before appending to it (when used from Lisp).
11540 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11541 which is called prior to each iteration of macro (for kmacro.el).
11542 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11543
11544 * lisp.h (Fexecute_kbd_macro): Update prototype.
11545
11546 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11547
115482002-08-14 Kenichi Handa <handa@etl.go.jp>
11549
11550 * xselect.c (QUTF8_STRING): New variable.
11551 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11552 (x_atom_to_symbol): Likewise.
11553 (x_get_local_selection): New argument local_request. If it is
11554 nonzero, call handler_fn with the second arg nil.
11555 (x_handle_selection_request): Call x_get_local_selection with
11556 local_request 0.
11557 (lisp_data_to_selection_data): Don't encode the string here.
11558 (Fx_get_selection_internal): Call x_get_local_selection with
11559 local_request 1.
11560 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11561
11562 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11563
11564 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11565
115662002-08-13 Richard M. Stallman <rms@gnu.org>
11567
11568 * minibuf.c (Fminibufferp): New function.
11569 (syms_of_minibuf): Defsubr it.
11570 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11571
115722002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11573
11574 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11575
115762002-08-12 Richard M. Stallman <rms@gnu.org>
11577
11578 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11579 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11580 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11581 already.
11582
11583 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11584
115852002-08-11 Andrew Choi <akochoi@shaw.ca>
11586
11587 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11588 (Vmac_pass_command_to_system): New variable.
11589 (Vmac_pass_control_to_system): New variable.
11590 (do_mouse_moved): Check wp with is_emacs_window.
11591 (XTread_socket): Check window_ptr with is_emacs_window.
11592 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11593 events back to Mac Toolbox for processing, depending on values of
11594 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11595 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11596 Vmac_pass_control_to_system.
11597
115982002-08-10 Kenichi Handa <handa@etl.go.jp>
11599
11600 * coding.c (unencodable_char_position): New function.
11601 (Funencodable_char_position): New function.
11602 (syms_of_coding): Defsubr Funencodable_char_position.
11603
116042002-08-10 Andrew Choi <akochoi@shaw.ca>
11605
11606 * mac.c (sys_select) [MAC_OSX]: New function.
11607
11608 * macterm.c (MakeMeTheFrontProcess): New function.
11609 (mac_initialize): Call MakeMeTheFrontProcess.
11610
11611 * s/darwin.h: Define select to sys_select.
11612
116132002-08-09 Richard M. Stallman <rms@gnu.org>
11614
11615 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11616
116172002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11618
11619 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11620 end of the buffer.
11621
116222002-08-08 Ken Raeburn <raeburn@mit.edu>
11623
11624 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11625
11626 * puresize.h (BASE_PURESIZE): Increase to 910000.
11627
116282002-08-08 Kenichi Handa <handa@etl.go.jp>
11629
11630 * coding.c (Ffind_operation_coding_system): For write-region, if
11631 VISIT is a filename, make it the target.
11632
116332002-08-07 Richard M. Stallman <rms@gnu.org>
11634
11635 * alloc.c (mark_object): Detect long lists for debugging.
11636 (mark_object_loop_halt): New variable.
11637
11638 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11639
11640 * data.c (Fmake_variable_frame_local): Doc fix.
11641
116422002-08-01 David Ponce <david@dponce.com>
11643
11644 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11645 (malloc_widget_value, free_widget_value)
11646 (w32_free_submenu_strings): Use them.
11647
11648 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11649 (push_menu_pane, push_menu_item, single_keymap_panes)
11650 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11651 (single_submenu, set_frame_menubar)
11652 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11653
11654 (Fx_popup_menu): Don't show pop up menu until preceding one is
11655 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11656
11657 * w32menu.c: Changes adapted from xmenu.c
11658 (set_frame_menubar): First parse all submenus,
11659 then make widget_value trees from them.
11660 Don't allocate any widget_value objects
11661 until we are done with the parsing.
11662 (parse_single_submenu): New function.
11663 (digest_single_submenu): New function.
11664 (single_submenu): Function deleted, replaced by those two.
11665
116662002-08-04 Andrew Choi <akochoi@shaw.ca>
11667
11668 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11669 returns a valid window pointer before proceeding for keyDown and
11670 autoKey events.
11671
116722002-08-03 Andrew Choi <akochoi@shaw.ca>
11673
11674 * macterm.c (USE_CARBON_EVENTS): New macro.
11675 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11676 (x_iconify_frame): Call CollapseWindow.
11677 (Vmac_reverse_ctrl_meta): New variable.
11678 (Vmac_wheel_button_is_mouse_2): New variable.
11679 (init_mac_drag_n_drop): New function.
11680 (mac_do_receive_drag): New function.
11681 (mac_handle_service_event): New function.
11682 (init_service_handler): New function.
11683 (mac_to_emacs_modifiers): New function.
11684 (mac_event_to_emacs_modifiers): New function.
11685 (mac_get_mouse_btn): New function.
11686 (mac_convert_event_ref): New function.
11687 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11688 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11689 mac_get_mouse_btn.
11690 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11691
11692 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11693 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11694 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11695 TOOL_BAR_EVENT for MAC_OS as well.
11696 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11697 as for WINDOWS_NT.
11698 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11699
11700 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11701
117022002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11703
11704 * xdisp.c (forward_to_next_line_start): Fix a condition that
11705 lead to a newline being skipped.
11706
117072002-08-02 Andrew Choi <akochoi@shaw.ca>
11708
11709 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11710
117112002-08-01 Richard M. Stallman <rms@gnu.org>
11712
11713 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11714
117152002-07-31 Andrew Choi <akochoi@shaw.ca>
11716
11717 * macfns.c: #undef init_process before #define-ing it.
11718
11719 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11720 HAVE_CARBON is defined.
11721
117222002-07-31 Richard M. Stallman <rms@gnu.org>
11723
11724 * xmenu.c (set_frame_menubar): First parse all submenus,
11725 then make widget_value trees from them.
11726 Don't allocate any widget_value objects
11727 until we are done with the parsing.
11728 (parse_single_submenu): New function.
11729 (digest_single_submenu): New function.
11730 (single_submenu): Function deleted, replaced by those two.
11731
117322002-07-30 Juanma Barranquero <lektu@terra.es>
11733
11734 * w32proc.c (syms_of_ntproc): Fix docstring of
11735 `w32-get-true-file-attributes'.
11736
117372002-07-28 Richard M. Stallman <rms@gnu.org>
11738
11739 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11740 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11741
11742 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11743
11744 * keyboard.c (make_lispy_event):
11745 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11746 Explicitly clear up_modifier in event->modifiers.
11747
117482002-07-27 Richard M. Stallman <rms@gnu.org>
11749
11750 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11751
11752 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11753 for bar cursor.
11754
117552002-07-26 Kenichi Handa <handa@etl.go.jp>
11756
11757 * coding.c (detect_coding_iso2022): While checking a byte sequence
11758 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11759 it in the normal loop.
11760
117612002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11762
11763 * xterm.c (expose_overlaps): New function.
11764 (expose_window): Use it to fix the display of overlapping rows.
11765
11766 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11767
117682002-07-23 Ken Raeburn <raeburn@gnu.org>
11769
11770 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11771 since it only depends on XUINT.
11772
11773 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11774 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11775 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11776 Macros deleted.
3947677c 11777
77d1daf2
AS
11778 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11779 its value over other approaches.
11780 * sysdep.c (start_of_data): Don't define the function if a macro
11781 form has been defined.
8a8e19a3 11782
048addec
JD
117832002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11784
11785 * xdisp.c (redisplay_updating_p): New variable.
11786 (init_iterator): Don't free realized faces when
11787 redisplay_updating_p is set.
11788 (redisplay_internal): Set redisplay_updating_p while updating
11789 the display.
11790
117912002-07-23 Richard M. Stallman <rms@gnu.org>
11792
11793 * editfns.c (Fmessage): Treat "" like nil.
11794
117952002-07-23 Kenichi Handa <handa@etl.go.jp>
11796
11797 * xdisp.c (face_before_or_after_it_pos):
11798 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11799
118002002-07-22 Juanma Barranquero <lektu@terra.es>
11801
11802 * callproc.c (init_callproc) [DOS_NT]:
11803 Initialize Vshared_game_score_directory to nil.
11804 (syms_of_callproc) [DOS_NT]: Likewise.
11805
118062002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11807
11808 * xdisp.c (display_line): Replace an abort with xassert.
11809
118102002-07-21 Richard M. Stallman <rms@gnu.org>
11811
11812 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11813 and END_UNCHANGED when setting buffer_unchanged_p.
11814 Use current_matrix_up_to_date_p to decide whether to use
11815 try_cursor_movement.
11816
11817 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11818
11819 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11820
11821 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11822 Set to nil if dir does not exist.
11823 (syms_of_callproc): Init unconditionally and simply.
11824
11825 * buffer.c (Fbuffer_list): Doc fix.
11826
118272002-07-21 Ken Raeburn <raeburn@gnu.org>
11828
11829 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11830
11831 * buffer.c (mmap_realloc): When shrinking, make sure number of
11832 pages to unmap is rounded towards zero.
11833
11834 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11835 (XSETINT): Deleted.
11836
11837 * m/att3b.h (XINT): Don't define.
11838 (VALBITS, VALMASK, XTYPE): Deleted.
11839 (DATA_SEG_BITS): Define.
11840 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11841 ARRAY_MARK_FLAG): Deleted.
11842 (DATA_SEG_BITS): Define.
11843 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11844 (DATA_SEG_BITS): Define.
11845
118462002-07-20 Richard M. Stallman <rms@gnu.org>
11847
11848 * print.c (print_error_message): New args CONTEXT and CALLER.
11849 Calls changed.
11850
11851 * lisp.h (print_error_message): Declare new args.
11852
11853 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11854 and CONTEXT to print_error_message, don't print them here.
11855 For a Quit, don't use Vsignaling_function.
11856 Call message_log_maybe_newline.
11857
11858 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11859
118602002-07-20 Kim F. Storm <storm@cua.dk>
11861
11862 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11863
118642002-07-19 Ken Raeburn <raeburn@gnu.org>
11865
11866 * bytecode.c (struct byte_stack): Pointers into byte string now
11867 point to const.
11868 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11869 const.
11870 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11871 * coding.c (encode_eol, detect_coding, detect_eol):
11872 (decode_coding, encode_coding, detect_coding_system):
11873 Source strings now treated as const.
11874 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11875 modify Lisp string contents.
11876 * coding.h (decode_coding, encode_coding, detect_coding,
11877 detect_eol): Declarations updated.
11878 * composite.c (compose_chars_in_text): Treat Lisp string contents
11879 as const.
11880 * dispnew.c (safe_bcopy): Source pointer now points to const.
11881 * lisp.h (STRING_COPYIN): New macro.
11882 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11883 (internal_with_output_to_temp_buffer): Declarations updated.
11884 * print.c (temp_output_buffer_setup):
11885 (internal_with_output_to_temp_buffer): Buffer name argument is now
11886 pointer to const.
11887 * sound.c (struct sound_device): Function pointer field "write"
11888 buffer argument now points to const.
11889 (vox_write): Buffer argument points to const.
11890 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11891 contents as const.
11892 * sysdep.c (emacs_write): Buffer pointer now const.
11893 * term.c (encode_terminal_code): Buffer pointer now const.
11894 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11895 (x_face_list_fonts, x_update_menu_appearance):
11896 (hash_string_case_insensitive): Treat Lisp string contents as const.
11897
118982002-07-19 Juanma Barranquero <lektu@terra.es>
11899
048addec
JD
11900 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11901
11902 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
11903 (Ffile_name_as_directory): Fix argument name in docstring.
11904 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
11905
119062002-07-18 Richard M. Stallman <rms@gnu.org>
11907
11908 * data.c (Fdefalias): Doc fix.
11909
119102002-07-17 Dave Love <fx@gnu.org>
11911
11912 * intervals.h (text_property_stickiness): Use P_.
11913
11914 * ccl.c: Remove `emacs' conditionals.
11915 (ccl_backtrace_table): Fix size spec.
11916 (ccl_driver): Fix type errors.
11917
119182002-07-16 Ken Raeburn <raeburn@gnu.org>
11919
11920 * alloc.c (xstrdup, make_string, make_unibyte_string)
11921 (make_multibyte_string, build_string): String pointer args now
11922 point to const.
11923 * charset.c (find_charset_in_text, c_string_width):
11924 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11925 * fileio.c (report_file_error):
11926 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11927 (count_combining_before, count_combining_after, insert_1_both):
11928 (insert, insert_and_inherit, insert_string):
11929 (insert_before_markers, insert_before_markers_and_inherit):
11930 * lread.c (intern, oblookup, hash_string):
11931 * minibuf.c (temp_echo_area_glyphs):
11932 * search.c (fast_c_string_match_ignore_case):
11933 * sysdep.c (emacs_open, set_file_times):
11934 * xfaces.c (xstricmp):
11935 * xdisp.c (store_frame_title, string_char_and_length):
11936 (message_dolog, message2, message2_nolog, set_message): Likewise.
11937 (set_message_1): Cast message string argument to const pointer.
11938 * editfns.c (general_insert_function): Insertion function now
11939 takes pointer to const for input data.
11940 * charset.h (find_charset_in_text, c_string_width):
11941 (parse_str_as_multibyte): Declarations updated.
11942 * dispextern.h (xstricmp): Declaration updated.
11943 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11944 (count_size_as_multibyte, count_combining_before):
11945 (count_combining_after, insert_1, insert_1_both, message_dolog):
11946 (insert, insert_and_inherit, insert_before_markers)
11947 (insert_before_markers_and_inherit, set_message, message2):
11948 (message2_dolog, build_string, make_string, make_unibyte_string):
11949 (make_multibyte_string, intern, oblookup, report_file_error):
11950 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11951 (emacs_open, xstrdup): Declarations updated.
11952 * systime.h (set_file_times): Declaration updated.
11953
11954 * charset.c (find_charset_in_text, lisp_string_width): Use const
11955 for pointer to lisp string data.
11956 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11957 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11958 * coding.c (Ffind_coding_systems_region_interval):
11959 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11960 (Fmake_directory_internal, Fdelete_directory):
11961 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11962 * fontset.c (font_family_registry, fs_query_fontset):
11963 (list_fontsets):
11964 * frame.c (Fframe_parameter):
11965 * keyboard.c (cmd_error_internal):
11966 * keymap.c (Fdescribe_buffer_bindings):
11967 * lread.c (complete_filename_p, openp):
11968 * minibuf.c (Fminibuffer_complete_word):
11969 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11970 (face_before_or_after_it_pos, next_element_from_string):
11971 (get_overlay_arrow_glyph_row, display_mode_element):
11972 (decode_mode_spec_coding):
11973 * xterm.c (same_x_server): Likewise.
11974
11975 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11976 settings of non-existent fields.
11977
11978 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11979 copy a lisp value.
11980
11981 * lread.c (Fintern_soft): Use string macros instead of
11982 Lisp_String fields.
11983 * keyboard.c (echo_char, parse_modifiers_uncached):
11984 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11985 * textprop.c (validate_interval_range, interval_of): Likewise.
11986
11987 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11988
11989 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11990 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11991 XSTRING()->size_byte.
11992
11993 * lisp.h (SDATA, SREF): Produce rvalue.
11994 (SSET): New macro.
11995 * alloc.c (make_event_array): Use SSET for storing into a string.
11996 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11997 a string.
11998 * casefiddle.c (casify_object): Use SSET.
11999 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12000 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12001 address of string contents.
12002 * data.c (Faref): Use SDATA.
12003 (Faset): Use SDATA, SSET.
12004 * dired.c (directory_files_internal): Use SSET.
12005 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12006 (Fread_file_name): Use SREF, SSET.
12007 * fns.c (concat): Use SSET.
12008 (concat, Fdelete): Use SDATA.
12009 * insdel.c (insert_from_string_1): Use SDATA.
12010 * keyboard.c (Fevent_convert_list): Use SREF.
12011 * lread.c (Fload): Use SDATA, SSET.
12012 * macfns.c (validate_x_resource_name): Use SSET.
12013 * process.c (status_message): Use SSET.
12014 * search.c (wordify): Use SDATA.
12015 (Freplace_match): Use SREF.
12016 * w32fns.c (validate_x_resource_name): Use SSET.
12017 * xfns.c (validate_x_resource_name): Use SSET.
12018 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12019
120202002-07-16 Richard M. Stallman <rms@gnu.org>
12021
12022 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12023
12024 * xdisp.c (reconsider_clip_changes):
12025 Don't test prevent_redisplay_optimizations_p.
12026 (redisplay_internal): Test prevent_redisplay_optimizations_p
12027 along with clip_changed in some cases.
12028 (try_window_id): Likewise.
12029 (redisplay_window): New local var buffer_unchanged_p.
12030
12031 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12032
12033 * process.c (create_process): Test USG_SUBTTY_WORKS.
12034 (process_send_signal): Clean up handling of GID.
12035 Detect errors in ioctls meant to set GID.
12036
12037 * window.c (temp_output_buffer_show):
12038 Don't set prevent_redisplay_optimizations_p.
12039
120402002-07-15 Juanma Barranquero <lektu@terra.es>
12041
12042 * eval.c (Fdefvaralias): Add docstring argument.
12043
120442002-07-15 Ken Raeburn <raeburn@gnu.org>
12045
12046 * lisp.h (STRING_INTERVALS): Produce rvalue.
12047 (STRING_SET_INTERVALS): New macro.
12048 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12049 * fns.c (Fstring_as_multibyte): Likewise.
12050 * intervals.c (balance_possible_root_interval, delete_interval)
12051 (create_root_interval, copy_intervals_to_string): Likewise.
12052 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12053 instead of 0.
12054
120552002-07-14 Ken Raeburn <raeburn@gnu.org>
12056
12057 * lisp.h (STRING_SET_CHARS): New macro.
12058 (SCHARS, SBYTES): Produce rvalues.
12059 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12060 * fns.c (concat): Likewise.
12061 * lread.c (read_vector): Likewise.
12062
12063 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12064 (STRING_SET_UNIBYTE): New macro.
12065 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12066 length of -1) changed to use STRING_SET_UNIBYTE.
12067 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12068 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12069 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12070 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12071 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12072 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12073 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12074 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12075 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12076 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12077 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12078 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12079 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12080 unchanged for now.
12081
120822002-07-13 Kim F. Storm <storm@cua.dk>
12083
12084 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12085
120862002-07-12 Richard M. Stallman <rms@gnu.org>
12087
12088 * fileio.c (Fwrite_region): Doc fix.
12089
12090 * print.c (print_error_message): Don't handle Vsignaling_function here.
12091
12092 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12093 (command_loop_1): Avoid certain actions after memory-full error.
12094
12095 * eval.c (Fsignal): Don't call cancel_hourglass.
12096 For a memory-full error, don't call Vsignal_hook_function
12097 and don't set Vsignaling_function.
12098
12099 * process.c (process_send_signal): Add abort call.
12100
121012002-07-11 Markus Rost <rost@math.ohio-state.edu>
12102
12103 * keymap.c (Fkey_binding): Fix typo.
12104
121052002-07-11 Richard M. Stallman <rms@gnu.org>
12106
12107 * alloc.c (Vmemory_full): New variable.
12108 (Vmemory_signal_data): Renamed from memory_signal_data.
12109 Uses changed.
12110 (syms_of_alloc): Defvar them.
12111 (memory_full, buffer_memory_full): Set Vmemory_full.
12112
12113 * lisp.h (Vmemory_full): Add declaration.
12114 (current_column, indented_beyond_p): Change declaration.
12115
12116 * indent.c (last_known_column): Declare as double, not float.
12117 (current_column, current_column_1, string_display_width)
12118 (position_indentation): Return `double'.
12119 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12120
12121 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12122 (back_to_previous_visible_line_start)
12123 (reseat_at_next_visible_line_start, next_element_from_buffer):
12124 Use `double', not `float', when calling indented_beyond_p.
12125
12126 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12127
12128 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12129
121302002-07-11 Juanma Barranquero <lektu@terra.es>
12131
12132 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12133 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12134 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12135 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12136 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12137 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12138
121392002-07-10 Juanma Barranquero <lektu@terra.es>
12140
d814862a
JB
12141 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12142 All callers changed.
048addec
JD
12143
121442002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12145
12146 * data.c (Fdefalias): Add an optional `docstring' argument.
12147 (set_internal, Fsetq_default): Use XCAR/XCDR.
12148
12149 * composite.c (HASH_VALUE, HASH_KEY):
12150 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12151
121522002-07-09 Kenichi Handa <handa@etl.go.jp>
12153
12154 * callproc.c (Fcall_process): Fix previous change.
12155
121562002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12157
12158 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12159 Add support for hash-tables.
12160 (Ftry_completion): Return t even if the string appears multiple times.
12161
12162 * fns.c (Fnconc): Use XCDR.
12163 (Fprovide): Use CONSP and XCDR.
12164 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12165 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12166 (Fmake_hash_table): Accept `:size nil'.
12167 (Fmakehash): Delete: moved to subr.el.
12168 (syms_of_fns): Don't defsubr makehash.
12169
12170 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12171 (HASH_TABLE_SIZE): Move from fns.c.
12172
121732002-07-07 Richard M. Stallman <rms@gnu.org>
12174
12175 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12176 Instead just return 0 when there is something to be done.
12177 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12178 retry scrolling as if cursor were off the bottom.
12179 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12180 return CURSOR_MOVEMENT_MUST_SCROLL.
12181 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12182 go to try_to_scroll.
12183
12184 * buffer.c (Fbuffer_local_value): Store current value into its binding
12185 so we get the up-to-date value for the binding that is loaded.
12186
12187 * eval.c (Fdefmacro): Doc fix.
12188
121892002-07-05 Dave Love <fx@gnu.org>
12190
12191 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12192 correctly.
12193
12194 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12195 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12196 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12197 CCL_LookupCharConstTbl.
12198 (syms_of_ccl): Defvar translation-hash-table-vector.
12199
122002002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12201
12202 * xdisp.c: Remove unused variable `face'.
12203
122042002-07-04 Juanma Barranquero <lektu@terra.es>
12205
12206 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12207 obsolescence information.
12208
122092002-07-03 Andrew Choi <akochoi@shaw.ca>
12210
12211 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12212 pattern. Search cache first.
12213 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12214 for Japanese font.
12215 (XLoadQueryFont): Use it.
12216
122172002-07-02 Richard M. Stallman <rms@gnu.org>
12218
12219 * keymap.c (Fdefine_key): Doc fix.
12220
12221 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12222
122232002-07-02 Juanma Barranquero <lektu@terra.es>
12224
12225 * keymap.c (syms_of_keymap): Fix typo.
12226
122272002-07-01 Andrew Choi <akochoi@shaw.ca>
12228
12229 * s/darwin.h: Define POSIX_SIGNALS.
12230
12231 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12232 and FSRefMakePath to convert FSSpec returned with Apple Event to
12233 Posix pathname.
12234 (mac_initialize) [TARGET_API_MAC_CARBON]:
12235 Call init_required_apple_events and disable the `Quit' menu item
12236 provided automatically by the Carbon Toolbox.
12237
122382002-07-01 Dave Love <fx@gnu.org>
12239
12240 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12241 for K&R.
12242
12243 * xterm.c: Fix prototype for K&R.
12244
12245 * term.c (costs_set): Declare static, non-initialized for pcc.
12246
122472002-07-01 Richard M. Stallman <rms@gnu.org>
12248
12249 * keyboard.c (timer_last_idleness_start_time): New variable.
12250 (timer_start_idle): Set that.
12251 (read_key_sequence): Use that to reset timer_idleness_start_time
12252 to previous value.
12253
12254 * window.c (Frecenter): With arg, set optional_new_start.
12255
12256 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12257
12258 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12259 buffer for completion.
12260
122612002-06-29 Ken Raeburn <raeburn@gnu.org>
12262
12263 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12264
122652002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12266
12267 * keyboard.c (readable_filtered_events): New function that filters
12268 FOCUS_IN_EVENT depending on parameter.
12269 (readable_events): Calls readable_filtered_events, not filtering
12270 FOCUS_IN_EVENT.
12271 (get_filtered_input_pending): New function, filtering parameter passed
12272 to readable_filtered_events.
12273 (get_input_pending): Calls get_filtered_input_pending, not filtering
12274 FOCUS_IN_EVENT.
12275 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12276 FOCUS_IN_EVENT.
12277
12278 * xterm.h (struct x_output): Add focus_state.
12279
12280 * xterm.c (x_focus_changed): New function.
12281 (x_detect_focus_change): New function.
12282 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12283 EnterNotify and LeaveNotify to track X focus changes.
12284
122852002-06-28 Andreas Schwab <schwab@suse.de>
12286
12287 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12288
122892002-06-27 Kim F. Storm <storm@cua.dk>
12290
12291 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12292 (mode_line_string_face_prop): New variables.
12293 (store_mode_line_string): New function.
12294 (display_mode_element): Use store_mode_line_string to
12295 add mode-line string elements to mode_line_string_list
12296 when mode_line_string_list is non-nil.
12297 (Fformat_mode_line): Now returns propertized string by
12298 default. New arg NO-PROPS to ignore properties.
12299 (decode_mode_spec): Only add two dashes for %- in propertized
12300 mode-line string.
12301 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12302
123032002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12304
12305 * minibuf.c (minibuffer_completion_contents): Add return type.
12306
123072002-06-27 Juanma Barranquero <lektu@terra.es>
12308
12309 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12310
123112002-06-26 Juanma Barranquero <lektu@terra.es>
12312
12313 * fileio.c (read_file_name_cleanup): Add missing return.
12314
123152002-06-26 Richard M. Stallman <rms@gnu.org>
12316
12317 * window.c (Frecenter): Don't set force_start flag.
12318
12319 * minibuf.c (do_completion, Fminibuffer_complete_word)
12320 (Fminibuffer_completion_help): Complete just the text before point.
12321 (minibuffer_completion_contents): New function.
12322
12323 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12324
12325 * frame.c (frames_bury_buffer): Function deleted.
12326
123272002-06-25 Miles Bader <miles@gnu.org>
12328
12329 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12330 the end of callint_message, allow for a terminating '\0'.
12331
123322002-06-24 Juanma Barranquero <lektu@terra.es>
12333
12334 * w32select.c: Include composite.h
12335
12336 * w16select.c: Likewise.
12337
123382002-06-24 Kenichi Handa <handa@etl.go.jp>
12339
12340 * callproc.c (Fcall_process): If code detection is necessary,
12341 call detect_coding directly here.
12342
12343 * coding.c (detect_eol): Preserve coding->cmp_data.
12344
12345 * w16select.c (Fw16_get_clipboard_data):
12346 * w32fns.c (w32_to_x_font):
12347 * w32select.c (Fw32_get_clipboard_data):
12348 * xselect.c (selection_data_to_lisp_data):
12349 * xterm.c (XTread_socket): Disable composition handling.
12350
123512002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12352
12353 * print.c (temp_output_buffer_setup): Kill all local variables.
12354
123552002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12356
12357 * lread.c (Fread): Remove redundant and imprecise declaration.
12358
12359 * xfns.c (check_x_display_info): Use check_x_frame.
12360
12361 * .gdbinit (xprintsym): Use the new `xname' field.
12362 (xsymbol): Use it.
12363
123642002-06-22 Jason Rumney <jasonr@gnu.org>
12365
12366 * w32fns.c (file_dialog_callback): New function.
12367 (Fx_file_dialog): Allow selecting directories as well as files.
12368
123692002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12370
12371 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12372 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12373
123742002-06-17 Andrew Choi <akochoi@shaw.ca>
12375
12376 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12377 black and white before scrolling. Restore frame background and
12378 foreground color after scrolling.
12379 (do_window_update): Call XClearWindow before calling expose_frame.
12380 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12381 FRAME_FOREGROUND_PIXEL of frame.
12382
12383 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12384 test Mac command key as <ALT> key.
12385
123862002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12387
12388 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12389
12390 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12391 Lookup keys in function-key-map immediately so that key-translation-map
12392 can be applied earlier.
12393 Remove function_key_possible and key_translation_possible, replaced
12394 by checking `keytran_start < t'.
12395
12396 * .gdbinit (xsymbol): Use the new `xname' field.
12397
123982002-06-17 Andrew Choi <akochoi@shaw.ca>
12399
12400 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12401 test Mac command key as <ALT> key.
12402
12403 * mac.c (do_applescript): Call initialize_applescript if necessary
12404 when first called. Dispose of result_desc only when there is no error.
12405 (Fdo_applescript): Use %d format specifier instead of %ld.
12406
124072002-06-16 Andrew Choi <akochoi@shaw.ca>
12408
12409 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12410 of FrontWindow for cases keyDown and autoKey.
12411
12412 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12413 Vdefault_fontset to Monaco with mac-roman coding.
12414
12415 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12416 init_process before and after inclusion of Carbon/Carbon.h, resp.
12417
12418 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12419 cursor_gc.
12420 (add_font_name_table_entry): New function.
12421 (init_font_name_table): Use add_font_name_table_entry; add italic,
12422 bold, and bold-italic entries for truetype fonts.
12423
12424 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12425 for Mac too.
12426 (try_font_list) [MAC_OS]: If no font matches given registry, try
12427 fonts with any registry matching face_family.
12428 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12429
12430 * s/darwin.h: If autoconf detects the Ncurses library, define
12431 LIBS_TERMCAP to -lncurses to use it.
12432
124332002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12434
12435 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12436
124372002-06-15 Richard M. Stallman <rms@gnu.org>
12438
12439 * window.c (Fset_window_configuration): Explicitly preserve
12440 the point value that new_current_buffer had at the start.
12441
124422002-06-14 Juanma Barranquero <lektu@terra.es>
12443
12444 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12445 Fix typos.
12446
124472002-06-14 Kim F. Storm <storm@cua.dk>
12448
12449 * insdel.c (insert_1_both, insert_from_string_1)
12450 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12451 insert happened in the end_unchanged region. Otherwise, the
12452 redisplay may be confused and duplicate the last line in the
12453 buffer [seen after save-buffer when require-final-newline==t].
12454
124552002-06-13 Jason Rumney <jasonr@gnu.org>
12456
12457 * w32.c (init_environment): Remove EMACSLOCKDIR.
12458 (stat): Swap _S_IFDIR and _S_IFREG.
12459
124602002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12461
12462 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12463 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12464 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12465 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12466 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12467 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12468 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12469 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12470 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12471 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12472 SELECTION_REQUEST_EVENT, selection_clear_event to
12473 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12474 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12475 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12476 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12477 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12478 no_event to NO_EVENT.
12479
124802002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12481
12482 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12483
124842002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12485
12486 * intervals.c (textget): Don't forget to `return'.
12487 (lookup_char_property): Use XCAR/XCDR.
12488
124892002-06-12 Juanma Barranquero <lektu@terra.es>
12490
12491 * xdisp.c (Fformat_mode_line): Fix typo.
12492
124932002-06-12 Kim F. Storm <storm@cua.dk>
12494
12495 * xdisp.c (Fformat_mode_line): New function.
12496 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12497 (store_frame_title_char, store_frame_title): Use unconditionally.
12498 (init_xdisp): Defsubr Fformat_mode_line.
12499 Initialize frame_title_buf etc. unconditionally.
12500
125012002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12502
12503 * keyboard.c (read_key_sequence):
12504 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12505 things through those maps after downcasing events.
12506 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12507 applies after function-key-map.
12508 Make sure that keytran can be done in the middle in the sequence.
12509 Be careful not to throw away events past the one we downcase.
12510
12511 * lread.c (read_integer): Remove unused var `tem'.
12512 (read1): Fix int/Lisp_Object mixup.
12513
12514 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12515
125162002-06-11 Richard M. Stallman <rms@gnu.org>
12517
12518 * keyboard.c (readable_events): Ignore any number of
12519 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12520
125212002-06-09 Miles Bader <miles@gnu.org>
12522
12523 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12524 (parse_rgb_list, tty_lookup_color): New functions.
12525 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12526 (color_distance, Fcolor_distance): New functions.
12527 (TTY_SAME_COLOR_THRESHOLD): New macro.
12528 (Qtty_color_standard_values): New variable.
12529 (syms_of_xfaces): Initialize new vars & functions.
12530
125312002-06-08 Colin Walters <walters@verbum.org>
12532
12533 * textprop.c (Vchar_property_alias_alist): New variable.
12534 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12535
12536 * intervals.c (lookup_char_property): New function for looking up
12537 overlay and text properties, created from textget.
12538 (textget): Use it.
12539
12540 * intervals.h (lookup_char_property): Declare.
12541 (Vchar_property_alias_alist): Declare.
12542
12543 * buffer.c (Foverlay_get): Use lookup_char_property.
12544
125452002-06-07 Sam Steingold <sds@gnu.org>
12546
12547 * xselect.c (lisp_data_to_selection_data): Fix last change:
12548 *data_ret is not a Lisp string, while unibyte_string is.
12549
125502002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12551
12552 * xselect.c (lisp_data_to_selection_data): Fix last change:
12553 set size_ret.
12554
125552002-06-07 Andreas Schwab <schwab@suse.de>
12556
12557 * m/amdx86-64.h: New file.
12558
125592002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12560
12561 * fns.c (Fstring_make_unibyte): Doc fix.
12562
12563 * xselect.c (lisp_data_to_selection_data): If the requested type
12564 is STRING, call string_make_unibyte to encode the selected text
12565 as a string.
12566
12567 * window.c (Fset_window_hscroll): Doc fix.
12568
125692002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12570
12571 * fileio.c (choose_write_coding_system):
12572 Call select-safe-coding-system properly.
12573
125742002-06-03 Richard M. Stallman <rms@gnu.org>
12575
12576 * xdisp.c (message_with_string): Error if STRING is not a string.
12577
12578 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12579
12580 * fileio.c (choose_write_coding_system): Pass FILE arg to
12581 Vselect_safe_coding_system_function.
12582
125832002-06-03 Ken Raeburn <raeburn@gnu.org>
12584
12585 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12586
125872002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12588
12589 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12590 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12591 * keymap.c (describe_command): Likewise.
12592 * minibuf.c (read_minibuf): Likewise.
12593
12594 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12595 Cast `current_column' return value to int.
12596 (back_to_previous_visible_line_start)
12597 (reseat_at_next_visible_line_start, next_element_from_buffer):
12598 Cast `indented_beyond_p' 3rd arg to float.
12599
12600 * indent.c (last_known_column): Now a float.
12601 (current_column_1, position_indentation, current_column)
12602 (string_display_width): Return float.
12603 (Fcurrent_column): Cast `current_column' return value to int.
12604 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12605 (indented_beyond_p): Third arg now a float.
12606 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12607
12608 * lisp.h (current_column): Now returns float.
12609 (indented_beyond_p): 3rd arg now a float.
12610
126112002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12612
12613 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12614 is Qcompound_text_with_extensions.
12615
12616 * xselect.c (lisp_data_to_selection_data): Always set selection
12617 type as string if x_encode_text returns streingp non-NULL.
12618
12619 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12620
126212002-05-30 Richard M. Stallman <rms@gnu.org>
12622
12623 * window.c (Fset_window_configuration): Correct the handling
12624 of point in current buffer, to work with multiple windows.
12625
126262002-05-29 Colin Walters <walters@verbum.org>
12627
12628 * lread.c (Fread_from_string): Don't depend on order of evaluation
12629 for C function parameters.
12630
126312002-05-28 Richard M. Stallman <rms@gnu.org>
12632
12633 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12634 way for blinked-off state and for a nonselected window.
12635
12636 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12637 instead, see if the new start pos is at beginning of line.
12638
12639 * fileio.c (Fwrite_region): If START is a string, don't
12640 make any annotations.
12641
12642 * eval.c (syms_of_eval): Doc fix.
12643
126442002-05-28 Colin Walters <walters@debian.org>
12645
12646 * emacs.c (USAGE1): Add --no-splash.
12647 (standard_args): Ditto.
12648
126492002-05-28 Colin Walters <walters@gnu.org>
12650
12651 * lread.c (readchar_count): New variable.
12652 (readchar): Increment it.
12653 (unreadchar): Decrement it.
12654 (read_multibyte): Decrement it.
12655 (Vread_with_symbol_positions): New variable.
12656 (Vread_symbol_positions_list): New variable.
12657 (read_internal_start): New function, created from Fread and
12658 Fread_from_string. Handle Vread_symbol_positions_list and
12659 Vread_with_symbol_positions.
12660 (readevalloop, Fread, Fread_from_string): Use it.
12661 (read1): Use readchar_count to add symbol positions to
12662 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12663 (syms_of_lread): DEFVAR_LISP and initialize them.
12664
12665 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12666 (substitute_object_recurse, substitute_object_in_subtree)
12667 (substitute_in_interval): Prototype.
12668 (read_multibyte): Return c if it's less than zero.
12669
126702002-05-28 Kim F. Storm <storm@cua.dk>
12671
12672 * fileio.c (Fread_file_name_internal): Added brute-force
12673 speed up for using predicate file-directory-p.
12674
126752002-05-28 Kim F. Storm <storm@cua.dk>
12676
12677 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12678 New variables.
12679 (syms_of_fileio): DEFVAR_LISP them.
12680 (read_file_name_cleanup): New unwind function.
12681 (Fread_file_name_internal): Only return completions satifying
12682 Vread_file_name_predicate. Temporarily unwind protect and rebind
12683 default-directory while checking completions against the predicate.
12684 (Fread_file_name): Added PREDICATE argument. Specbind it to
12685 Vread_file_name_predicate during completion.
12686 Call Vread_file_name_function to read the file name if non-nil.
12687
12688 * lisp.h (Fread_file_name): Now has 6 args.
12689
12690 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12691 predicate for Fread_file_name when reading directory name.
12692 Supply Qnil for predicate in other calls to Fread_file_name.
12693
126942002-05-26 Miles Bader <miles@gnu.org>
12695
12696 * term.c (tty_capable_p): New function.
12697 * dispextern.h (tty_capable_p): New function declaration.
12698 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12699 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12700
127012002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12702
12703 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12704 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12705 (Vwrite_region_annotate_functions): Docstring fix.
12706
127072002-05-23 Kim F. Storm <storm@cua.dk>
12708
12709 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12710 phys_cursor's hpos is overwritten. This is still not completely
12711 correct, as it doesn't really make sense to use hpos at all to
12712 get the cursor glyph (as that is relative to the width of the
12713 characters on the line, which may have changed during the update).
12714
127152002-05-22 Jason Rumney <jasonr@gnu.org>
12716
12717 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12718 Lisp_Object.
12719 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12720 Use modified enumfont_t struct.
12721
12722 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12723
12724 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12725 Handle the `hbar' cursor type.
12726 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12727
12728 * w32fns.c (Qhbar): New variable.
12729 (x_specified_cursor_type): Use it.
12730
127312002-05-21 Ken Raeburn <raeburn@gnu.org>
12732
12733 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12734 now, when the address is needed.
12735
127362002-05-21 Colin Walters <walters@gnu.org>
12737
12738 * Makefile.in (shortlisp): Add font-core.el.
12739
127402002-05-20 Richard M. Stallman <rms@gnu.org>
12741
12742 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12743
12744 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12745 equivalent key bindings here.
12746
127472002-05-20 Ken Raeburn <raeburn@gnu.org>
12748
12749 Change symbol structure to contain a lisp object for the symbol
12750 name:
12751 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12752 object field named "xname".
12753 (SYMBOL_NAME): New macro.
12754 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12755 name field.
12756 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12757 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12758 instead of name field.
12759 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12760 SYMBOL_NAME instead of XSYMBOL and name field.
12761 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12762 instead of XSYMBOL and name field.
12763 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12764 and SYMBOL_NAME instead of XSYMBOL and name field.
12765 * coding.c (Fread_coding_system, code_convert_region1)
12766 (code_convert_string1, code_convert_string_norecord)
12767 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12768 XSYMBOL and name field.
12769 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12770 (Fmake_variable_buffer_local, Fmake_local_variable)
12771 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12772 of XSYMBOL and name field.
12773 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12774 XSYMBOL and name field.
12775 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12776 instead of XSYMBOL and name field.
12777 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12778 XSYMBOL and name field.
12779 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12780 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12781 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12782 instead of XSYMBOL and name field.
12783 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12784 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12785 (parse_solitary_modifier, Fexecute_extended_command):
12786 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12787 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12788 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12789 of XSYMBOL and name field.
12790 (describe_command, describe_translation): Use SYMBOL_NAME and
12791 assignment instead of XSYMBOL and name field and XSETSTRING.
12792 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12793 instead of XSYMBOL and name field.
12794 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12795 name field and XSETSTRING.
12796 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12797 of XSYMBOL and name field.
12798 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12799 assignment instead of XSYMBOL and name field and XSETSTRING.
12800 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12801 XSTRING instead of XSYMBOL and name field.
12802 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12803 and XSTRING instead of XSYMBOL and name field.
12804 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12805 and XSTRING instead of XSYMBOL and name field.
12806 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12807 XSTRING instead of XSYMBOL and name field.
12808 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12809 of XSYMBOL and name field.
12810 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12811 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12812
128132002-05-19 Ken Raeburn <raeburn@gnu.org>
12814
12815 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12816 and XCDR real rvalues in most configurations.
12817
12818 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12819 Don't take the address of the cdr part of a cons cell; instead, track
12820 the parent cell and call XSETCDR, or set the variable for the head
12821 of the list if we haven't started down the list yet.
12822
128232002-05-19 Richard M. Stallman <rms@gnu.org>
12824
12825 * doc.c (reread_doc_file): Don't ask for confirmation.
12826
128272002-05-18 Jason Rumney <jasonr@gnu.org>
12828
12829 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12830 (xbm_load_image): Use it.
12831 (xbm_load): Ditto.
12832 (xbm_read_bitmap_data): Reverted to xfns.c version.
12833 From David Ponce <david@dponce.com>.
12834
128352002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12836
12837 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12838 2.02 and later.
12839
128402002-05-16 Juanma Barranquero <lektu@terra.es>
12841
12842 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12843
128442002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12845
12846 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12847 meaningful test.
12848 (read_char_minibuf_menu_prompt): Fix typo.
12849
128502002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12851
12852 * eval.c (Fcommandp): Doc fix.
12853
128542002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12855
12856 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12857 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12858 (Fset_keymap_parent): Gcpro a bit more.
12859 (access_keymap): Gcpro around meta_map call and around the main loop.
12860 (get_keyelt): Gcpro when following indirect references.
12861 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12862 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12863 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12864 Remove useless ad-hoc remap code.
12865
128662002-05-13 Richard M. Stallman <rms@gnu.org>
12867
12868 * search.c (search_buffer): Give up boyer moore search if inverse
12869 translation change charset_base.
12870
128712002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12872
12873 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12874 characters is carried over from the previous block of text, adjust
12875 coding->produced to account for the extra character.
12876
128772002-05-11 Andreas Schwab <schwab@suse.de>
12878
12879 * coding.c (intersection): Keep the elements of the returned list
12880 in the same order as in the first list.
12881
128822002-05-11 Kim F. Storm <storm@cua.dk>
12883
12884 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12885 only update cmm_size if realloc actually succeeds.
12886 Testing with initial size of 2 elements revealed that using
12887 realloc on GNU/Linux would cause a random trap in xmalloc
12888 later on, so I rewrote the code to use malloc/bcopy/free instead
12889 of realloc.
12890
128912002-05-10 Jason Rumney <jasonr@gnu.org>
12892
12893 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12894
128952002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12896
12897 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12898 parens, to ensure correct evaluation order.
12899
129002002-05-10 Kim F. Storm <storm@cua.dk>
12901
12902 * keymap.c (Vemulation_mode_map_alists): New variable.
12903 (syms_of_keymap): DEFVAR_LISP it.
12904 (current_minor_maps): Process keymap alists in that list before
12905 minor-mode-overriding-map-alist and minor-mode-map-alist.
12906
129072002-05-09 Richard M. Stallman <rms@gnu.org>
12908
12909 * search.c (Freplace_match): Doc fix.
12910
129112002-05-09 Kim F. Storm <storm@cua.dk>
12912
12913 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12914 Enlarge cursor rectangle drawn around image with non-zero relief.
12915
12916 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12917 Enlarge cursor rectangle drawn around image with non-zero relief.
12918
12919 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12920 Enlarge cursor rectangle drawn around image with non-zero relief.
12921
129222002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12923
12924 * xselect.c (lisp_data_to_selection_data): Don't set selection
12925 type if comes from the Lisp object's car. If the selection
12926 contains a pure ASCII text, always return QSTRING as its type.
12927
129282002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12929
12930 * mac.c (mac-cut-function): Doc fix.
12931
129322002-05-05 Richard M. Stallman <rms@gnu.org>
12933
12934 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12935
129362002-05-04 Jason Rumney <jasonr@gnu.org>
12937
12938 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12939 for event-click-count.
12940
12941 * process.c (init_process): Only add server subfeature if we can
12942 use non-blocking I/O.
12943
129442002-05-04 Andrew Choi <akochoi@shaw.ca>
12945
12946 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12947 repeatedly.
12948
129492002-05-03 Jason Rumney <jasonr@gnu.org>
12950
12951 * process.c (Fmake_network_process): Only support server sockets
12952 when we can make them non-blocking.
12953
12954 * s/ms-w32.h (HAVE_SELECT): Define.
12955
12956 * w32.h (FILE_NDELAY): New flag.
12957
12958 * w32.c (sys_getpeername, fcntl): New functions.
12959 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12960
12961 * w32proc.c: include sys/file.h.
12962
129632002-05-03 Colin Walters <walters@verbum.org>
12964
12965 * callproc.c (Vgame_score_directory): Renamed to
12966 Vshared_game_score_directory.
12967
129682002-04-30 Richard M. Stallman <rms@gnu.org>
12969
12970 * s/gnu.h [emacs]: Include stdio.h.
12971 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12972
12973 * eval.c (do_autoload): Error if called while preparing to dump.
12974
12975 * fns.c (Frequire): Error if need to load while preparing to dump.
12976
129772002-04-28 Colin Walters <walters@verbum.org>
12978
12979 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12980 Default to "~/.emacs.d/games".
12981
129822002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12983
12984 * lread.c (openp): Change arg exec_only to predicate.
12985 (build_load_history): Use XCAR/XCDR.
12986 (Flocate_file_internal): New fun.
12987 (syms_of_lread): Defsubr it.
12988 (Fload): Update call to openp.
12989
12990 * lisp.h (openp): Update prototype.
12991
12992 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12993 * w32proc.c (sys_spawnve):
12994 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12995 * w32.c (check_windows_init_file):
12996 * sound.c (Fplay_sound_internal):
12997 * process.c (Fstart_process):
12998 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12999 * mac.c (run_mac_command):
13000 * emacs.c (init_cmdargs):
13001 * callproc.c (Fcall_process): Update call to openp.
13002
13003 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13004
13005 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13006
130072002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13008
13009 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13010 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13011
130122002-04-28 Richard M. Stallman <rms@gnu.org>
13013
13014 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13015
13016 * eval.c (Fcommandp): New arg for_call_interactively.
13017 * lisp.h (Fcommandp): Declare new arg.
13018
130192002-04-28 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13022
13023 * w32.c (stat, fstat): Use file index information to generate
13024 inodes for directories where available.
13025
130262002-04-26 Andrew Choi <akochoi@shaw.ca>
13027
13028 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13029 [HAVE_CARBON]: Include Mac object files.
13030
13031 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13032 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13033 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13034 MAC_OSX, and MAC_OS instead of macintosh.
13035
13036 * editfns.c [MAC_OS8]: Include stdio.h.
13037
13038 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13039
13040 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13041 Apple Monaco.
13042
78819ebb 13043 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13044 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13045 calling select.
13046
13047 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13048
13049 * tparam.c [MAC_OSX]: Don't define BC and UP.
13050
13051 * config.in [HAVE_CARBON]: Add.
13052
13053 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13054 Move here from mac/src and mac/inc.
13055
13056 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13057
130582002-04-26 Gerd Moellmann <gerd@gnu.org>
13059
13060 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13061 Compute phys_cursor_width from the x position returned
13062 by x_draw_glyhs, which is cheaper.
13063 (x_display_and_set_cursor): Compute the buffer-local value
13064 of `cursor-in-non-selected-windows' only when needed.
13065
130662002-04-25 Gerd Moellmann <gerd@gnu.org>
13067
13068 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13069 cursor on a stretch glyph has a width that depends on
13070 x_stretch_cursor_p.
13071
130722002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13073
13074 * abbrev.c (abbrev-start-location): Doc fix.
13075
13076 * indent.c (Fvertical_motion): Fix last change.
13077
130782002-04-25 Gerd Moellmann <gerd@gnu.org>
13079
13080 * indent.c (Fvertical_motion): Move to the start of the line
13081 containing PT before moving up or down.
13082
130832002-04-24 Gerd Moellmann <gerd@gnu.org>
13084
13085 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13086 case of writing a whole row, more or less analogous to the case of
13087 writing only parts of a row.
13088
13089 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13090 0 for NO_CURSOR.
13091
13092 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13093
130942002-04-23 Colin Walters <walters@verbum.org>
13095
13096 * buffer.c (syms_of_buffer): Doc fix.
13097
130982002-04-23 Gerd Moellmann <gerd@gnu.org>
13099
13100 * xterm.c (notice_overwritten_cursor): Handle the special case
13101 of the cursor being in the first blank non-text line at the
13102 end of a window.
13103
13104 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13105 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13106 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13107 bar cursors only, to make phys_cursor_width contain what its name
13108 suggests.
13109 (notice_overwritten_cursor): Consider the cursor image erased if
13110 the output area intersects the cursor image in y-direction.
13111
131122002-04-23 Simon Marshall <simon@gnu.org>
13113
13114 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13115 to XC_hand2.
13116
131172002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13118
13119 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13120
131212002-04-22 Kim F. Storm <storm@cua.dk>
13122
13123 * textprop.c (remove_properties): Fixed trap for malformed plist.
13124
131252002-04-22 Richard M. Stallman <rms@gnu.org>
13126
13127 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13128
13129 * window.c (make_window): Initialize height_fixed_p,
13130 last_cursor_off_p, and p->cursor_off_p slots.
13131
131322002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13133
13134 * fns.c (use-dialog-box): Doc fix.
13135
131362002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13137
13138 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13139 variables `row', `i' and `area'.
13140 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13141 toolkit library.
13142
131432002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13144
13145 * xfaces.c (clear_font_table): Don't free the default font of
13146 a frame even if it's on another display.
13147 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13148 that could be Qt.
13149
131502002-04-19 Juanma Barranquero <lektu@terra.es>
13151
13152 * indent.c (Fmove_to_column): Remove unused local variable
13153 `next_boundary_byte'.
13154 (current_column_1): Likewise.
13155
131562002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13157
13158 * msdos.c (Qhbar): New variable.
13159 (syms_of_msdos): Intern and staticpro it.
13160 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13161 cursor type.
13162
131632002-04-19 Dave Lambert <dlambert@acm.org>
13164
13165 Theses change implement an underscore-like (`hbar') cursor.
13166
13167 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13168
13169 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13170 Handle the `hbar' cursor type.
13171 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13172
13173 * xfns.c (Qhbar): New variable.
13174 (syms_of_xfns): Intern and staticpro it.
13175 (x_specified_cursor_type): Handle `hbar' cursor.
13176
13177 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13178 not defined.
13179
131802002-04-18 Richard M. Stallman <rms@gnu.org>
13181
13182 * textprop.c (remove_properties): New arg LIST allows scanning
13183 either a list or a plist.
13184 (interval_has_some_properties_list): New function, like
13185 interval_has_some_properties using list instead of plist.
13186 All callers changed.
13187 (Fremove_list_of_text_properties): New function.
13188 (syms_of_textprop): Defsubr it.
13189
131902002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13191
13192 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13193
131942002-04-17 Juanma Barranquero <lektu@terra.es>
13195
13196 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13197
131982002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13199
13200 * window.c (coordinates_in_window): Don't report on margin area
13201 if its width is zero.
13202
132032002-04-16 Jason Rumney <jasonr@gnu.org>
13204
13205 * w32fns.c (Fx_file_dialog): Decode file name before using.
13206
13207 * w32term.c (construct_drag_n_drop): Likewise.
13208
132092002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13210
13211 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13212 store load-history in pure space.
13213
13214 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13215
132162002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13217
13218 * xterm.c (Qlatin_1, Qutf_8): New vars.
13219 (syms_of_xterm): Initialize them.
13220 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13221 decoding the output of X*LookupString.
13222 Always use latin-1 to decode the output of XLookupString.
13223 Try Xutf8LookupString if XmbLookupString failed.
13224
13225 * region-cache.c (new_region_cache): Use BEG.
13226
132272002-04-16 Gerd Moellmann <gerd@gnu.org>
13228
13229 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13230 configuration files.
13231 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13232 returns 0.
13233
132342002-04-15 Andreas Schwab <schwab@suse.de>
13235
13236 * config.in: Regenerated using autoheader.
13237
13238 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13239 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13240 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13241 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13242 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13243 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13244 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13245 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13246 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13247 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13248 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13249 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13250 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13251 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13252 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13253 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13254 STACK_DIRECTION, now set by autoconf.
13255
132562002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13257
13258 * dispnew.c (marginal_area_string): Sort arguments.
13259
13260 * dispextern.h (marginal_area_string): Add prototype.
13261
132622002-04-13 Richard M. Stallman <rms@gnu.org>
13263
13264 * fileio.c (Finsert_file_contents):
13265 Don't call temp_output_buffer_setup--do just part, by hand.
13266
13267 * coding.c (run_pre_post_conversion_on_str):
13268 Don't call temp_output_buffer_setup--do just part, by hand.
13269
13270 * keyboard.c (command_loop_1): Don't call start_hourglass
13271 or cancel_hourglass when executing a macro.
13272
13273 * marker.c (count_markers): New function.
13274
13275 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13276 grow without limit. Move recently used elements to the front.
13277
132782002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13279
13280 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13281
132822002-04-12 Gerd Moellmann <gerd@gnu.org>
13283
13284 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13285 rows marginal areas.
13286 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13287 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13288
13289 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13290
132912002-04-12 Dave Love <fx@gnu.org>
13292
13293 * dispnew.c (marginal_area_string): New.
13294
13295 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13296 (Qleft_margin, Qright_margin): Declare.
13297 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13298
13299 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13300 note_mode_line_highlight and extended.
13301
13302 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13303 (make_lispy_event): Deal with mouse events in margins.
13304
133052002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13306
13307 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13308
13309 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13310 than deactivating the mark if tmm is set to `lambda'.
13311 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13312 Use a single event for HELP_EVENT.
13313 (Fexecute_extended_command): Save last_point_position.
13314
133152002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13316
13317 * lisp.h (Fpropertize): Add prototype.
13318
13319 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13320
133212002-04-10 Colin Walters <walters@verbum.org>
13322
13323 * config.in: Add HAVE_SHARED_GAME_DIR.
13324
13325 * callproc.c: (Vgame_score_directory): New variable.
13326 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13327
133282002-04-10 Richard M. Stallman <rms@gnu.org>
13329
13330 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13331
133322002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13333
13334 * minibuf.c (read_minibuf): Use empty_string.
13335 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13336 Short-circuit the search as soon as it "failed".
13337 (Fall_completions): Allow lambda forms and lists of strings for alist.
13338 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13339 when require_match is nil.
13340 (Ftest_completion): Rename from `test_completion' and export to elisp.
13341 Call the predicate also when alist is a list.
13342 Obey Vcompletion_regexp_list.
13343 (do_completion, Fminibuffer_complete_and_exit): Use it.
13344 (Fassoc_string): Rename from `assoc_for_completion'.
13345 Allow list of strings as well and export to elisp.
13346
133472002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13348
13349 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13350
133512002-04-08 Juanma Barranquero <lektu@terra.es>
13352
13353 * w32.c (sys_accept): Don't hide variable `s'.
13354
133552002-04-05 Gerd Moellmann <gerd@gnu.org>
13356
13357 * callint.c (Fcall_interactively): Use INTEGERP instead of
13358 NUMBERP for checking Vhistory_length.
13359
133602002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13361
13362 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13363 Doc fix to reflect it.
13364
133652002-04-04 Richard M. Stallman <rms@gnu.org>
13366
13367 * xdisp.c (display_mode_element): New arg RISKY.
13368 Disregard text props found or specified within a variable
13369 that isn't marked risky-local-variable.
13370 (Qrisky_local_variable): New variable.
13371 (syms_of_xdisp): Init and staticpro it.
13372
133732002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13374
13375 * undo.c (record_point): New fun.
13376 (record_delete, record_insert): Use it.
13377
133782002-04-03 Juanma Barranquero <lektu@terra.es>
13379
13380 * doc.c (Fdocumentation): Add missing parentheses.
13381 (Fdocumentation_property): Likewise.
13382
133832002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13384
13385 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13386 data is 0, just return nil.
13387
133882002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13389
13390 * msdos.c (syms_of_msdos): Fix last change with
13391 mouse_autoselect_window.
13392
133932002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13394
13395 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13396 mouse_autoselect_window.
13397
133982002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13399
13400 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13401 with system-specific keysyms. Use it also for unknown function keys.
13402
13403 * doc.c (reread_doc_file): Return whether reload was attempted.
13404 (Fdocumentation, Fdocumentation_property): Don't try to reload
13405 if the doc is 0 and only ask once.
13406
13407 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13408
134092002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13410
13411 * keyboard.c (read_char): If the event was Qselect_window,
13412 restore timer_idleness_start_time to its previous value.
13413
13414 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13415
134162002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13417
13418 * region-cache.c (new_region_cache): Use BEG.
13419
13420 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13421 Use BEG and BEG_BYTE.
13422
13423 * doc.c (get_doc_string): Return nil if the location is wrong.
13424 (reread_doc_file): New fun.
13425 (Fdocumentation, Fdocumentation_property):
13426 Call it if get_doc_string fails.
13427 (Fsnarf_documentation): Make it work for a dumped Emacs.
13428
13429 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13430 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13431
13432 * charset.c (Fstring): Allow 0 arguments.
13433
13434 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13435
13436 * process.c (DATAGRAM_CONN_P, list_processes_1)
13437 (Fprocess_datagram_address, Fset_process_datagram_address)
13438 (Fset_network_process_options, server_accept_connection):
13439 Fix some int/Lisp_Object confusions (thank you union types).
13440
134412002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13442
13443 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13444
13445 * w32term.c: Likewise.
13446 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13447
13448 * keyboard.c (Qselect_window): New symbol.
13449 (head_table): Use it.
13450 (keys_of_keyboard): Bound select-window event to handle-select-window.
13451 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13452
13453 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13454 (last_window): New variable.
13455 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13456 (note_mouse_movement): Remove reimplemented code in #if 0.
13457 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13458 Emacs windows.
13459
13460 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13461
134622002-03-31 Gerd Moellmann <gerd@gnu.org>
13463
13464 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13465 Callers changed.
13466
134672002-03-30 Richard M. Stallman <rms@gnu.org>
13468
13469 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13470 loop whenever it stops making progress.
13471
13472 * widget.c (set_frame_size): Don't call change_frame_size.
13473
134742002-03-30 Gerd Moellmann <gerd@gnu.org>
13475
13476 * dispnew.c (direct_output_for_insert):
13477 Call mark_window_display_accurate.
13478
134792002-03-29 Jason Rumney <jasonr@gnu.org>
13480
13481 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13482
134832002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13484
13485 * Makefile.in (lread.o): Depend on coding.h.
13486
13487 * lread.c (openp, Fload): Encode the file name before passing it
13488 to `stat', `access', and `emacs_open'.
13489 (openp): GCPRO the encoded file name. Don't recompute Lisp
13490 strings unnecessarily.
13491
134922002-03-29 Kim F. Storm <storm@cua.dk>
13493
13494 * fns.c (Flax_plist_put): Doc fix.
13495
134962002-03-28 Miles Bader <miles@gnu.org>
13497
13498 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13499
135002002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13501
13502 * process.c (set-network-process-options): Add usage.
13503 (make-network-process): Doc fix.
13504
135052002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13506
13507 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13508
135092002-03-26 Richard M. Stallman <rms@gnu.org>
13510
13511 * fns.c (Fsubstring_no_properties): New function.
13512 (Flax_plist_get, Flax_plist_put): New functions.
13513 (syms_of_fns): defsubr them.
13514
13515 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13516 don't test or alter w->update_mode_line.
13517
13518 * window.c (Fdisplay_buffer): Doc fix.
13519
135202002-03-24 Richard M. Stallman <rms@gnu.org>
13521
13522 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13523
135242002-03-24 Gerd Moellmann <gerd@gnu.org>
13525
13526 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13527 (Fdefmacro): Handle `(declare ...)'.
13528 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13529 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13530
135312002-03-24 Jason Rumney <jasonr@gnu.org>
13532
13533 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13534 (xbm_file_p): Add prototypes.
13535 (xbm_format, xbm_image_p): Sync with xfns.c.
13536 (reflect_byte): New function.
13537 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13538 (xbm_load_image): Create bitmaps with a depth of 1.
13539 (init_xfns): Enable XBM images.
13540
135412002-03-23 Jason Rumney <jasonr@gnu.org>
13542
13543 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13544 correctly. Do not pass up_modifier to keyboard buffer.
13545
13546 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13547
135482002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13549
13550 * Makefile.in (bootstrapclean): New target.
13551 (bootstrap-temacs, bootstrap-doc): Remove.
13552 (bootstrap-emacs): Use a bog-standard `temacs'.
13553 Don't bother to build a DOC file.
13554
13555 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13556
13557 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13558 in temacs even if !CANNOT_DUMP.
13559 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13560
13561 * alloc.c (check_pure_size): Only output a warning.
13562
135632002-03-22 Jason Rumney <jasonr@gnu.org>
13564
13565 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13566 supported.
13567
13568 * w32term.c (zv_bits): Declare as short, for word alignment.
13569 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13570 (syms_of_w32term): Define x-use-underline-position-properties.
13571
13572 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13573 (clear_image_cache): Block input, fix logic, clear matrices in
13574 all frames that share this cache.
13575
135762002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13577
13578 * emacs.c (main): Update the Copyright year in the blurb printed
13579 by "emacs --version".
13580
13581 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13582
13583 * xterm.c (XTread_socket): If XK_ISO_Lock and
13584 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13585 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13586
135872002-03-21 Kim F. Storm <storm@cua.dk>
13588
13589 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13590 menu-bar bindings in keymap and local-map properties _are_ used.
13591 But try keymap property first in accordance with 2002-01-03 patch.
13592 Added comment describing why this is not always reliable.
13593 (tool_bar_items): Ditto for tool-bar.
13594
135952002-03-21 Jason Rumney <jasonr@gnu.org>
13596
13597 * w32fns.c (x_clear_image_1): Disable color table code.
13598
135992002-03-21 Kim F. Storm <storm@cua.dk>
13600
13601 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13602 removed the wrong version of the DEFUN macro; fixed it.
13603
13604 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13605 Fmember rather than Fmemq).
13606 (Fprovide): Check that subfeatures is a list.
13607
13608 * process.c (QCfeature, QCdatagram): Removed variables.
13609 (QCtype, Qdatagram): New variables.
13610 (network_process_featurep): Removed function.
13611 (Fmake_network_process): Removed :feature check.
13612 Use :type 'datagram instead of :datagram t to create a datagram
13613 socket. This allows us to add other connection types (e.g. raw
13614 sockets) later in a consistent manner.
13615 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13616 supported subfeatures for feature make-network-process.
13617 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13618 Intern and staticpro QCtype and Qdatagram.
13619 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13620
13621 * xfns.c: (QCtype): Remove duplicate declaration and
13622 initialization (is now declared in process.c).
13623
13624 * w32fns.c: (QCtype): Remove duplicate declaration and
13625 initialization (is now declared in process.c).
13626
136272002-03-21 Richard M. Stallman <rms@gnu.org>
13628
13629 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13630 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13631 when jumping to `fail' to avoid undoing reg changes in the
13632 last iteration of the loop.
13633 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13634
13635 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13636 Depend on process.h.
13637
136382002-03-20 Jason Rumney <jasonr@gnu.org>
13639
13640 Most of the following changes are still conditional on HAVE_IMAGES
13641 which is not set by default on Windows.
13642
13643 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13644
13645 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13646 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13647 (four_corners_best, x_clear_image_1, x_clear_image)
13648 (x_alloc_image_color, postprocess_image)
13649 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13650 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13651 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13652
13653 * w32gui.h (struct XImage): Define.
13654
13655 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13656 extract mouse co-ordinates.
13657
136582002-03-20 Jason Rumney <jasonr@gnu.org>
13659
13660 * w32.c (init_winsock): Dynamically load new server and UDP
13661 socket functions.
13662 (socket_to_fd): New function.
13663 (sys_socket): Use it.
13664 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13665 (sys_recvfrom, sys_sendto): New wrapper functions.
13666
13667 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13668 and initialization.
13669
13670 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13671
136722002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13673
13674 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13675 Don't use "sun" as a variable, it's a predefined constant on Sun
13676 machines.
13677
136782002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13679
13680 * bytecode.c (Fbyte_code): Revert last change.
13681
136822002-03-19 Kim F. Storm <storm@cua.dk>
13683
13684 * makefile.w32-in (LIBS): Add $(WSOCK32).
13685 From David Ponce <dponce@voila.fr>.
13686
136872002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13688
13689 * process.c (wait_reading_process_input): Move variables `pname'
13690 and `pnamelen' down where they are used.
13691
13692 * bytecode.c (Fbyte_code): Discard unused computed value to
13693 prevent gcc warning.
13694
13695 * lisp.h (Fplist_member): Add prototype.
13696
136972002-03-18 Kim F. Storm <storm@cua.dk>
13698
13699 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13700 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13701
13702 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13703 Remove explicit GNU_LINUX settings for datagram support.
13704
137052002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13706
13707 * process.c (Fmake_network_process): Remove unused variable `sa'.
13708 Doc fix. Add usage:.
13709 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13710
137112002-03-17 Richard M. Stallman <rms@gnu.org>
13712
13713 * xdisp.c (cursor_type_changed): New variable.
13714 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13715 Clear it when clearing windows_or_buffers_changed.
13716 (try_cursor_movement, redisplay_window, try_window_id)
13717 (try_window_reusing_current_matrix): Test cursor_type_changed
13718 along with windows_or_buffers_changed.
13719
13720 * window.h (cursor_type_changed): New variable.
13721
13722 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13723 not update_mode_lines, and always set it to 1.
13724
13725 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13726 if no frames needed redrawing.
13727
137282002-03-17 Kim F. Storm <storm@cua.dk>
13729
13730 The following changes add support for network server processes,
13731 datagram connections, and local (unix) sockets.
13732
13733 * process.h (struct Lisp_Process): New member log.
13734 Doc fix: Member command used to indicate stopped network process.
13735 Doc fix: Member childp contains plist for network process.
13736 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13737
13738 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13739 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13740 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13741 New variables.
13742 (NETCONN1_P): New macro.
13743 (DATAGRAM_SOCKETS): New conditional symbol.
13744 (datagram_address): New array.
13745 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13746 (status_message): Use concat3.
13747 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13748 for a stopped network process.
13749 (Fset_process_buffer): Update contact plist for network process.
13750 (Fset_process_filter): Ditto. Don't enable input for stopped
13751 network processes. Server must listen, even if filter is t.
13752 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13753 New functions.
13754 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13755 (Fprocess_contact): Added KEY argument. Handle datagrams.
13756 (list_processes_1): Optionally show only processes with the query
13757 on exit flag set. Dynamically adjust column widths. Omit tty
13758 column if not needed. Report stopped network processes.
13759 Identify server and datagram network processes.
13760 (Flist_processes): New optional arg `query-only'.
13761 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13762 (conv_lisp_to_sockaddr, set_socket_options)
13763 (network_process_featurep, unwind_request_sigio): New helper functions.
13764 (Fprocess_datagram_address, Fset_process_datagram_address):
13765 (Fset_network_process_options): New lisp functions.
13766 (Fopen_network_stream): Removed. Now defined in simple.el.
13767 (Fmake_network_process): New lisp function. Code is based on previous
13768 Fopen_network_stream, but heavily reworked with new property list based
13769 argument list, support for datagrams, server processes, and local
13770 sockets in addition to old client-only functionality.
13771 (server_accept_connection): New function.
13772 (wait_reading_process_input): Use it to handle incoming connects.
13773 Do not enable input on a new connection if process is stopped.
f63fd14e 13774 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13775 (send_process): Handle datagram sockets.
13776 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13777 network process is indicated by setting command field to t .
13778 (Fprocess_send_eof): No-op if datagram connection.
13779 (Fstatus_notify): Don't read input for a stream server socket or a
13780 stopped network process.
13781 (init_process): Initialize datagram_address array.
13782 (syms_of_process): Intern and staticpro new variables, defsubr new
13783 functions.
13784
137852002-03-16 Jason Rumney <jasonr@gnu.org>
13786
13787 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13788 startup case.
13789
137902002-03-16 Richard M. Stallman <rms@gnu.org>
13791
13792 * xdisp.c (redisplay_internal, redisplay_windows):
13793 Use list_of_error to call internal_condition_case_1.
13794 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13795 so as to catch all errors with no possibility of debugger redisplay.
13796 (list_of_error): New variable.
13797 (syms_of_xdisp): Init and staticpro it.
13798
13799 * print.c (print_object): Delete `\ ' from printed rep of frame.
13800
138012002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13802
13803 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13804 until its implementation is fixed.
13805
138062002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13807
13808 * xfns.c (png_load): Remove unused variable `gamma_str'.
13809
138102002-03-14 Richard M. Stallman <rms@gnu.org>
13811
13812 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13813
138142002-03-14 Miles Bader <miles@gnu.org>
13815
13816 * intervals.c (adjust_for_invis_intang): New function.
13817 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13818 work for dealing with invisible+intangible regions. Do so before
13819 and after both forward and backward movements, to handle both
13820 front-sticky and rear-sticky cases.
13821 * textprop.c (text_property_stickiness): Function moved here from
13822 `editfns.c'.
13823 * intervals.h (text_property_stickiness): New declaration.
13824 * editfns.c (char_property_eq): Function removed.
13825 (text_property_stickiness): Function moved to `textprop.c'.
13826
138272002-03-13 Jason Rumney <jasonr@gnu.org>
13828
13829 * config.in: Add STRFTIME_NO_POSIX2.
13830
13831 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13832 and %OX when underlying strftime does not.
13833
138342002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13835
13836 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13837 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13838 line) to avoid annoying flicker.
13839 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13840 (XTread_socket): Mark it static.
13841
13842 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13843
138442002-03-13 Kim F. Storm <storm@cua.dk>
13845
13846 * puresize.h (BASE_PURESIZE): Increase to 775000.
13847
138482002-03-12 Juanma Barranquero <lektu@terra.es>
13849
13850 * editfns.c (syms_of_editfns): Fix typo.
13851
138522002-03-12 Gerd Moellmann <gerd@gnu.org>
13853
13854 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13855 Include termopt.h for interrupt_input.
13856
138572002-03-11 Andreas Schwab <schwab@suse.de>
13858
13859 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13860
138612002-03-11 Gerd Moellmann <gerd@gnu.org>
13862
13863 * xterm.c (note_mouse_movement): Put code for
13864 x_autoselect_window_p in #if 0.
13865
13866 * lread.c (Fload): Don't assume that message_with_string uses the
13867 string it is given like a C string.
13868
138692002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13870
78819ebb 13871 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13872
13873 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13874 x_session_have_connection.
13875 (x_initialize): Add call to x_session_initialize.
13876
13877 * termhooks.h (enum event_kind): Add save_session_event.
13878
13879 * keyboard.c: Add Emacs event save_session_event.
13880
13881 * emacs.c (main): Add call to syms_of_xsmfns.
13882
78819ebb 13883 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13884
13885 * config.in: Add HAVE_X_SM.
13886
13887 * Makefile.in (LIBXT): Add -lSM -lICE
13888 if HAVE_X_SM and not USE_X_TOOLKIT.
13889 (XOBJ): New file xsmfns.c added.
13890
13891 * xsmfns.c: New file for X session management.
13892
138932002-03-09 Jason Rumney <jasonr@gnu.org>
13894
13895 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13896 read-only when setting modified time.
13897
138982002-03-08 Gerd Moellmann <gerd@gnu.org>
13899
13900 * xdisp.c (move_it_vertically_backward): At the end of the function,
13901 when moving forward by lines, treat terminal frames specially.
13902
13903 * keyboard.c (echo_char): Make sure to add a separator between
13904 keys even if echo_dash hasn't been called.
13905
13906 * xdisp.c: Use new string macros.
13907 (update_echo_area): Pass number of bytes to message3 instead of
13908 number of chars.
13909 (set_message_1): Don't access a string's size_byte directly.
13910 (decode_mode_spec_coding): Use number of bytes of eoltype string
13911 instead number of chars.
13912
13913 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13914
139152002-03-08 Juanma Barranquero <lektu@terra.es>
13916
13917 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13918 24-bit.
13919
139202002-03-06 Jason Rumney <jasonr@gnu.org>
13921
13922 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13923
139242002-03-06 Gerd Moellmann <gerd@gnu.org>
13925
13926 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13927 (cancel_echoing, echo_length, echo_truncate): Changed to
13928 work with new kboard definition.
13929 (echo_now): Use message3_nolog instead of message2_nolog.
13930
13931 * alloc.c (mark_kboards): Mark echo_string.
13932
13933 * keyboard.h (ECHOBUFSIZE): Removed.
13934 (struct kboard): Member echoptr removed, member echobuf renamed
13935 to echo_string.
13936
13937 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13938 message3 instead of message2 to display the message using STRING's
13939 text properties.
13940
139412002-03-05 Andreas Schwab <schwab@suse.de>
13942
13943 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13944
139452002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13946
13947 * frame.c (default-frame-alist): Explain that setting it doesn't
13948 affect existing frames.
13949
139502002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13951
13952 * indent.c (skip_invisible): Fix my brain fart.
13953
13954 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13955
139562002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13957
13958 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13959 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13960 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13961 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13962 and variables to use EMACS_INT instead of just int.
13963
13964 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13965
139662002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13967
13968 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13969 environment, pass it down with corrected value.
13970
139712002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13972
13973 * lread.c (read_filtered_event): Do not call start_hourglass
13974 before returning.
13975
139762002-03-04 Juanma Barranquero <lektu@terra.es>
13977
13978 * w32term.c (x_display_and_set_cursor): Fix typo.
13979
139802002-03-03 Richard M. Stallman <rms@gnu.org>
13981
13982 * fileio.c (Fmake_temp_name): Doc fix.
13983
139842002-03-03 Gary Wong <gtw@gnu.org>
13985
13986 * termcap.c [!emacs]: Replace ospeed for building standalone
13987 libtermcap, for binary compatibility.
13988
13989 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13990
139912002-03-03 Richard M. Stallman <rms@gnu.org>
13992
13993 * xrdb.c (file_p): Rename arg `path' to `filename'.
13994
13995 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13996 only if it is an integer.
13997
13998 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13999 If png_get_sRGB gives an answer, call png_set_gamma
14000 using the default image gamma value.
14001
14002 * lread.c (read1): When reading from a file, default string to
14003 multibyte only if it has some multibyte characters.
14004
14005 * print.c (print_object): Output multibyte chars 128...255
14006 using \x even if ! print_escape_multibyte.
14007
14008 * xdisp.c (display_mode_element): Move the places where
14009 bytepos, charpos, this, and lisp_string are set.
14010 Use lisp_string to set bytepos.
14011
14012 * xdisp.c (redisplay_internal):
14013 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14014
14015 * xdisp.c (display_mode_element): Merge properties specified with
14016 :propertize onto those that come with the string.
14017
140182002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14019
14020 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14021 automatic-hscrolling. Users changed.
14022 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14023 Users changed.
14024 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14025
140262002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14027
14028 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14029
140302002-03-02 Kim F. Storm <storm@cua.dk>
14031
14032 * window.c (Fminibuffer_selected_window): New function.
14033 (syms_of_window): Defsubr it.
14034
140352002-03-01 Kim F. Storm <storm@cua.dk>
14036
14037 * window.h (struct window): New member phys_cursor_width.
14038
14039 * window.c (make_window, replace_window): Init phys_cursor_width.
14040
14041 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14042 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14043
14044 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14045 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14046
14047 * lisp.h (GCPRO6): New macro.
14048
14049 * process.c (Fopen_network_stream): Use GCPRO6.
14050
140512002-03-01 Kim F. Storm <storm@cua.dk>
14052
14053 * process.c (Qconnect, Qfailed): New variables.
14054 (syms_of_process): Intern and staticpro them.
14055 (Fprocess_status): Document connect and failed return values.
14056 [NON_BLOCKING_CONNECT]: New conditional.
14057 (connect_wait_mask, num_pending_connects): New variables.
14058 (status_message): Convert Qfailed status.
14059 (Fopen_network_stream): Added support for non-blocking connect.
14060 New optional args: filter, sentinel, non_blocking. Doc updated.
14061 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14062 (deactivate_process): Handle pending non-blocking connect.
14063 (wait_reading_process_input): Poll for status of non-blocking
14064 connects. Exec sentinel directly when connect succeeds.
14065 (status_notify): Don't read process output if not yet connected.
14066
140672002-02-28 Kim F. Storm <storm@cua.dk>
14068
14069 * window.c: (minibuf_selected_window): Renamed from
14070 Vminibuf_selected_window. Users changed.
14071 (syms_of_window): Staticpro it.
14072
140732002-02-26 Kim F. Storm <storm@cua.dk>
14074
14075 The following changes add a new Vminibuf_selected_window variable
14076 which is similar to Vminibuf_scroll_window, but which is only set
14077 on entry to the minibuffer (from a non-minibuffer window):
14078
14079 * window.c: (Vminibuf_selected_window): New variable.
14080 (struct save_window_data): New member minibuf_selected_window.
14081 (Fset_window_configuration): Restore Vminibuf_selected_window.
14082 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14083 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14084 (compare_window_configurations): Compare minibuf_selected_window.
14085
14086 * window.h: (Vminibuf_selected_window): Declare extern.
14087
14088 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14089 entry to minibuffer or on entry from a non-minibuffer window.
14090
14091 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14092 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14093
14094 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14095 instead of Vminibuf_scroll_window when deciding in which window
14096 the region should be highlighted. Consequently, the region remains
14097 highlighteded even when a completion buffer is also displayed.
14098
140992002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14100
14101 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14102
14103 * xselect.c (Qcompound_text_with_extensions): Renamed from
14104 Qcompound_text_no_extensions.
14105 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14106
141072002-02-26 Juanma Barranquero <lektu@terra.es>
14108
14109 * w32proc.c (syms_of_ntproc): Doc fix.
14110
141112002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14112
14113 * intervals.h: Include "dispextern.h" unconditionally.
14114
141152002-02-24 Jason Rumney <jasonr@gnu.org>
14116
14117 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14118 and disp-table.elc.
14119 (lisp): Add emacs-lisp/backquote.elc.
14120
141212002-02-24 Kim F. Storm <storm@cua.dk>
14122
14123 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14124 The validation of the event type was too strict as it didn't
14125 allow string events; buffer names are used in bindings for
14126 menu-bar-select-buffer (see `menu-bar-update-buffers').
14127
141282002-02-23 Kim F. Storm <storm@cua.dk>
14129
14130 The following changes rework my patch of 2002-02-06 which
14131 added command remapping by entering the commands directly into
14132 the keymaps. Now, command remapping uses an explicit `remap'
14133 prefix in the keymaps, i.e. [remap COMMAND].
14134
14135 * keymap.c (Qremap, remap_command_vector): New variables.
14136 (is_command_symbol): Removed function.
14137 (Fdefine_key): No longer accept a symbol for KEY.
14138 Added validation of [remap COMMAND] argument for KEY.
14139 The DEF is no longer required to be a symbol when remapping a command.
14140 (Fremap_command): New function to remap command through keymaps.
14141 (Flookup_key): Perform command remapping initiated by
14142 Fremap_command directly for speed.
14143 (Fkey_binding): Use Fremap_command for command remapping.
14144 (where_is_internal): Handle new command remapping representation.
14145 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14146 staticpro them. Defsubr Fremap_command.
14147
14148 * keymap.h (Fremap_command): Declare extern.
14149 (is_command_symbol): Remove extern.
14150
14151 * keyboard.c (command_loop_1): Use Fremap_command for command
14152 remapping; now try command remapping for all symbols.
14153
141542002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14155
14156 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14157
141582002-02-23 Jason Rumney <jasonr@gnu.org>
14159
14160 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14161 on the string before encoding it.
14162 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14163 after decoding it.
14164
14165 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14166
141672002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14168
14169 * w32term.c (enter_timestamp): Remove unused static variable to
14170 prevent warning.
14171
14172 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14173
141742002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14175
14176 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14177
14178 * xselect.c (selection_data_to_lisp_data): Fix last change.
14179
141802002-02-22 Jason Rumney <jasonr@gnu.org>
14181
14182 * w32term.h (struct w32_output): New member menu_command_in_progress.
14183
14184 * w32menu.c (menubar_selection_callback): Free the menu and
14185 clear the menu_command_in_progress flag.
14186
14187 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14188 (menu_free_timer): New variable.
14189 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14190 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14191 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14192 menu command is in progress.
14193 <WM_COMMAND>: Set the menu_command_in_progress flag.
14194 Kill any menu_free_timer that is running.
14195
14196 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14197 Call ExtTextOutA rather than ExtTextOut.
14198
141992002-02-22 Eli Zaretskii <eliz@gnu.org>
14200
14201 * puresize.h (BASE_PURESIZE): Increase to 755000.
14202
142032002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14204
14205 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14206 on the string before encoding it.
14207 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14208 after decoding it.
14209
142102002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14211
14212 Support for ICCCM Extended Segments in X selections:
14213
14214 * xselect.c <Qcompound_text_no_extensions>: New variable.
14215 (syms_of_xselect): Intern and staticpro it.
14216 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14217 selection text.
14218 (lisp_data_to_selection_data): If next-selection-coding-system is
14219 compound-text-no-extensions, set the type of selection to be
14220 compound-text.
14221
14222 * xterm.h (x_encode_text): Update prototype.
14223
14224 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14225 callers changed. If SELECTIONP is non-zero, run the
14226 pre-write-conversion function before encoding the selection text.
14227
142282002-02-21 Kim F. Storm <storm@cua.dk>
14229
14230 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14231
14232 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14233 Correct composing of language-change event.
14234
142352002-02-20 Kim F. Storm <storm@cua.dk>
14236
14237 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14238 bindings at PT when building menu (the menu is not updated often
14239 enough for this to work reliable).
14240 (tool_bar_items): Likewise.
14241 (current_active_maps): Removed unused (and buggy) function.
14242
142432002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14244
14245 * xfns.c (gif_load): Use correct width and height for GIF images.
14246
142472002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14248
14249 * floatfns.c (Fatan): Accept an optional second arg and call
14250 atan2 if passed 2 args.
14251
142522002-02-18 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14255
142562002-02-17 Jason Rumney <jasonr@gnu.org>
14257
14258 * w32term.c (x_autoselect_window_p): New variable.
14259 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14260 (note_mouse_movement): Use it.
14261
14262 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14263
14264 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14265
14266 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14267 New variables.
14268 (syms_of_w32fns): Intern and staticpro them.
14269 (x_frame_parms) <"fullscreen">: New parameter.
14270 (x_fullscreen_move, x_set_fullscreen): New functions.
14271 (x_set_frame_parameters): Support Qfullscreen.
14272 (x_real_positions): Save x/y_pixels_diff frame params.
14273 (x_figure_window_size): Support full-screen frames.
14274 (Fx_create_frame): Default the fullscreen parameter.
14275
14276 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14277 (x_fullscreen_adjust): New functions.
14278 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14279 fullscreen. Call x_check_fullscreen_move, and set the
14280 want_fullscreen member of output_data.w32
14281 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14282
14283 * w32term.h: New enum for FULLSCREEN_* constants.
14284 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14285 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14286 (x-fullscreen-adjust): New prototype.
14287
142882002-02-17 Kim F. Storm <storm@cua.dk>
14289
14290 * frame.c: (Vmouse_highlight): New variable.
14291 (syms_of_frame): DEFVAR_LISP it.
14292
14293 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14294
048addec 14295 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14296
048addec
JD
14297 * xterm.c (disable_mouse_highlight): Removed variable.
14298 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14299 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14300 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14301 and on after keyboard input.
14302 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14303
048addec 14304 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14305
048addec
JD
14306 * msdos.c (disable_mouse_highlight): Removed variable.
14307 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14308 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14309 (internal_terminal_init): Initialize mouse_face_hidden.
14310 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14311 and on after keyboard input.
4f1b1854 14312
048addec 14313 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14314
048addec
JD
14315 * w32term.c (disable_mouse_highlight): Removed variable.
14316 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14317 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14318 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14319 and on after keyboard input.
14320 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14321
048addec 143222002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14323
048addec
JD
14324 * msdos.c (last_mouse_window): New variable.
14325 (dos_rawgetc): Fix last change--if the mouse is in the same window
14326 as recorded in last_mouse_window, don't select this window.
5cb6905d 14327
048addec 14328 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14329
048addec
JD
14330 * msdos.c (x_autoselect_window_p): New variable.
14331 (syms_of_msdos): Defvar it.
14332 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14333 which the last mouse movement occured, unless it is already selected.
437dfb9f 14334
048addec
JD
14335 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14336 New variables.
14337 (syms_of_xdisp): DEVFAR them.
14338 (hscroll_window_tree): Use automatic_hscroll_margin and
14339 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14340
048addec 143412002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14342
048addec
JD
14343 * xterm.c (x-autoselect-window): New variable.
14344 (note_mouse_movement): Use it.
9f696a00 14345
048addec 14346 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14347
048addec 143482002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14349
bfa02563 14350 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14351
048addec 14352 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14353
048addec 143542002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14355
048addec 14356 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14357
048addec
JD
14358 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14359 (Vx_super_keysym): New variables.
14360 (syms_of_xterm): DEFVAR_LISP them.
14361 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14362 variables to determine which keys to use for the various modifiers.
a474d59c 14363
048addec 143642002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14365
048addec
JD
14366 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14367 (mode_line_in_non_selected_windows): New variable.
14368 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14369
048addec
JD
14370 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14371 Use mode_line_in_non_selected_windows.
14372 (mode_line_in_non_selected_windows): Declare extern.
14373 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14374
048addec 143752002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14376
048addec
JD
14377 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14378 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14379 (Fclear_this_command_keys): Doc fixes.
2d10309f 14380
048addec
JD
14381 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14382 (update_face_from_frame_parameter): Increment face_change_count
14383 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14384
048addec
JD
14385 * xdisp.c (QCpropertize): New variable.
14386 (mode_line_proptrans_alist): New variable.
14387 (display_mode_element): New arg PROPS; all calls changed.
14388 Implement this, for strings.
14389 Handle literal output of strings by sharing the
14390 main-line code for strings, using local var `literal'.
14391 Handle :propertize feature.
14392 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14393 mode_line_proptrans_alist.
0b1e6b54 14394
048addec 143952002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14396
048addec
JD
14397 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14398 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14399
048addec
JD
14400 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14401 (CURRENT_MODE_LINE_FACE_ID): Use it.
14402 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14403
048addec
JD
14404 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14405 to get mode line face.
e17144de 14406
048addec 144072002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14408
048addec
JD
14409 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14410 variables; cus-start.el doesn't need them anymore.
44368f8f 14411
048addec 144122002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14413
048addec
JD
14414 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14415 reduction. This fixes a display problem where stray newlines were
14416 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14417
048addec 144182002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14419
048addec 14420 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14421
048addec 14422 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14423
048addec 144242002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14425
048addec
JD
14426 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14427 match each other.
14428 (w32_load_system_font): Prevent Cleartype fonts from loading.
14429 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14430
048addec 144312002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14432
048addec
JD
14433 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14434 (CURRENT_MODE_LINE_HEIGHT): Use it.
14435 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14436
048addec
JD
14437 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14438 (pos_visible_p, handle_face_prop): Likewise.
14439 (display_mode_lines): Likewise, but for the real selected window.
14440 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14441
048addec
JD
14442 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14443 in non-selected windows.
14444 (realize_basic_faces): Realize it.
14445 (syms_of_term): Intern and staticpro it.
308dd672 14446
048addec 144472002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14448
048addec
JD
14449 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14450 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14451
048addec 144522002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14453
048addec
JD
14454 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14455 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14456
048addec 14457 * floatfns.c (Fround): Doc fix.
3c1e6b46 14458
048addec 144592002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14460
048addec 14461 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14462
048addec 144632002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14464
048addec 14465 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14466
048addec 144672002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14468
048addec
JD
14469 * keymap.c (where_is_internal): Only check whether definition is
14470 remapped if it fulfills is_command_symbol.
0065bb74 14471
048addec 144722002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14473
048addec 14474 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14475
048addec 14476 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14477
048addec 144782002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14479
048addec
JD
14480 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14481 defining command remapping. Doc updated.
14482 (Flookup_key): Remap command through keymap if KEY is a symbol.
14483 (is_command_symbol): New function.
14484 (Fkey_binding): Use it. New optional argument NO-REMAP.
14485 Doc updated. Callers changed. Perform command remapping via
14486 recursive call unless that arg is non-nil.
14487 (where_is_internal): New argument no_remap. Callers changed.
14488 Call recursively to find original key bindings for a remapped
14489 comand unless that arg is non-nil.
14490 (Fwhere_is_internal): New optional argument NO-REMAP.
14491 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14492
048addec
JD
14493 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14494 (is_command_symbol): Added prototype.
0d8466cc 14495
048addec
JD
14496 * keyboard.c (Vthis_original_command): New variable.
14497 (syms_of_keyboard): DEFVAR_LISP it.
14498 (command_loop_1): Set it, and perform command remapping.
15fff01d 14499
048addec 145002002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14501
048addec 14502 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14503
048addec 145042002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14505
048addec 14506 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14507
048addec 145082002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14509
048addec 14510 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14511
048addec 145122002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14513
048addec 14514 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14515
048addec 145162002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14517
048addec 14518 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14519
048addec
JD
14520 * lread.c (read1): Redesign strategy for force_multibyte and
14521 force_singlebyte. Now is_multibyte records whether read_buffer
14522 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14523
048addec 145242002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14525
048addec
JD
14526 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14527 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14528
048addec 145292002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14530
048addec
JD
14531 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14532 latter never being defined on GNU/Linux.
749f499f 14533
048addec 145342002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14535
048addec
JD
14536 * xfaces.c (realize_default_face): Don't set the weight and slant of
14537 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14538
048addec 145392002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14540
048addec
JD
14541 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14542 Call cancel_hourglass unconditionally.
d0fd26dd 14543
048addec
JD
14544 * eval.c (Fsignal): Remove duplicated declaration of
14545 the variable `display_hourglass_p'.
b4c45162 14546
048addec 145472002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14548
048addec 14549 * editfns.c (region_limit): Nicer error message.
c95eaa61 14550
048addec
JD
14551 * coding.c (decode_composition_emacs_mule):
14552 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14553
048addec
JD
14554 * callint.c (check_mark): New arg to specify clearer error message.
14555 Callers changed.
c95eaa61 14556
048addec 145572002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14558
048addec 14559 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14560
048addec 145612002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14562
048addec
JD
14563 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14564 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14565 Fix doc-strings.
c95eaa61 14566
048addec 145672002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14568
048addec 14569 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14570
048addec
JD
14571 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14572 and scroll_up_aggressively.
c95eaa61 14573
048addec 145742002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14575
048addec 14576 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14577
048addec 145782002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14579
048addec
JD
14580 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14581 (Fprevious_property_change, Fprevious_single_property_change):
14582 Stay within the narrowed-buffer boundaries.
e2c3786a 14583
048addec 145842002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14585
048addec
JD
14586 * term.c (Ftty_display_color_cells): New function.
14587 (syms_of_term): Defsubr it.
14588 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14589 argument name to DISPLAY. Doc fix.
bf794306 14590
048addec
JD
14591 * dispextern.h: Add prototype for set_tty_color_mode and
14592 tty_setup_colors.
bf794306 14593
048addec 145942002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14595
048addec
JD
14596 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14597 If region left to draw is not what was expected, mark the frame as
14598 garbaged.
62582985 14599
048addec
JD
14600 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14601 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14602
048addec 146032002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14604
048addec
JD
14605 * w32term.c (x_update_window_begin): Only hide caret if
14606 w32_use_visible_system_caret is set.
14607 (x_update_window_end): Only show caret if
14608 w32_use_visible_system_caret is set.
14609 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14610
048addec 14611 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14612
048addec 146132002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14614
048addec
JD
14615 * unexelf.c (unexec): Define n so as to cause compilation error
14616 for the code where people have often written n instead of nn.
1e9a6186 14617
048addec 14618 * .gdbinit (hookpost-run): Defined.
1e9a6186 14619
048addec 146202002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14621
048addec 14622 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14623
048addec 146242002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14625
048addec
JD
14626 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14627 if fullscreen is being set.
7c75be36 14628
048addec 146292002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14630
048addec
JD
14631 * minibuf.c (Fminibuffer_contents)
14632 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14633 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14634
048addec 146352002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14636
048addec 14637 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14638
048addec 146392002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14640
048addec
JD
14641 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14642 height before comparison.
14643 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14644
048addec 146452002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14646
048addec
JD
14647 * w32term.c (w32_system_caret_width): Remove.
14648 (w32_use_visible_system_caret): New user flag.
14649 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14650 Windows reports a screen reader running.
14651 (x_update_window_begin): Hide the system caret.
14652 (x_update_window_end): Show the system caret.
14653 (x_display_and_set_cursor): Don't draw a cursor when
14654 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14655
048addec
JD
14656 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14657 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14658 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14659 the user requests it. Use system default width when creating.
14660 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14661
048addec
JD
14662 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14663 New window messages.
905cc05a 14664
048addec 146652002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14666
048addec 14667 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14668
048addec 146692002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14670
048addec 14671 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14672
048addec 146732002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14674
048addec 14675 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14676
048addec 146772002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14678
048addec
JD
14679 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14680 that Windows returns. If a double check fails, try to guess how
14681 ExtTextOut is going to act.
4d0fa4f3 14682
048addec
JD
14683 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14684 in place of stricmp.
14685 (w32_list_synthesized_fonts): Removed.
14686 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14687 (struct enumfont_t): New element; list.
14688 (enum_font_cb2): List all style and charset variations of a font.
14689 (Fw32_select_font): New optional argument; include_proportional.
14690 Exclude vertical fonts. Exclude proportional fonts unless
14691 include_proportional is non-nil.
14692 (w32_enable_synthesized_fonts): Change to a boolean.
14693 (Fw32_send_sys_command): Doc fix.
493faf20 14694
048addec 146952002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14696
048addec
JD
14697 * dispnew.c (update_frame): Move the variable `tem' to the block
14698 where it is used.
4971e491 14699
048addec 147002002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14701
048addec
JD
14702 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14703 call to face-set-after-frame-default.
4971e491 14704
048addec 147052002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14706
048addec
JD
14707 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14708 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14709
048addec 147102002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14711
048addec
JD
14712 * window.c (enlarge_window): When exceeding size of parent,
14713 directly delete all the siblings instead of trying to resize it.
201c831a 14714
048addec 147152002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14716
048addec 14717 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14718
048addec 147192002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14720
048addec 14721 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14722
048addec 147232002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14724
048addec
JD
14725 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14726 is invisible. This can happen if cursor is on top line of a
14727 window, and we switch to a buffer with a header line.
d77fbc16 14728
048addec 14729 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14730
048addec 147312002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14732
048addec
JD
14733 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14734 `dont_resize' only when used.
61e3b944 14735
048addec 14736 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14737
048addec 147382002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14739
048addec
JD
14740 * xdisp.c (display_mode_element): When computing charpos, depend
14741 on multibyteness of elt, not the text in field.
8af01033 14742
048addec 147432002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14744
048addec
JD
14745 * buffer.c (Fkill_all_local_variables):
14746 Increment `update_mode_lines' only once.
7363986a 14747
048addec 147482002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14749
048addec
JD
14750 * lisp.h (adjust_after_replace_noundo)
14751 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14752
048addec 14753 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14754
048addec 147552002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14756
048addec
JD
14757 Support for the --color command-line argument and tty-color-mode
14758 frame parameter:
f1a85b89 14759
048addec
JD
14760 * term.c (tty_default_color_capabilities, tty_setup_colors)
14761 (set_tty_color_mode): New functions.
14762 (term_init): Call tty_default_color_capabilities.
14763 (Qtty_color_mode_alist): New variable.
14764 (syms_of_term): Intern and staticpro it.
f1a85b89 14765
048addec
JD
14766 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14767 frames.
14768 (do_switch_frame): For termcap frames, switch the tty
14769 color mode as specified by the frame's parameters.
14770 (Qtty_color_mode): New variable.
14771 (syms_of_frame): Intern and staticpro it.
3a62677f 14772
048addec
JD
14773 * emacs.c (USAGE2): Add the --color option.
14774 (standard_args): Ditto.
72244db2 14775
048addec
JD
147762002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14777
14778 * xterm.h (struct x_output): New members want_fullscreen,
14779 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14780 y_pixels_outer_diff.
14781 New enum for FULLSCREEN_* constants.
14782 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14783 is NULL.
14784 (x_fullscreen_adjust): Add prototype.
3a62677f 14785
048addec
JD
14786 * emacs.c (USAGE2): Add the new full-screen arguments.
14787 (standard_args): Ditto.
3a62677f 14788
048addec
JD
14789 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14790 New variables.
14791 (syms_of_xfns): Intern and staticpro them.
14792 (x_frame_parms) <"fullscreen">: New parameter.
14793 (x_fullscreen_move, x_set_fullscreen): New functions.
14794 (x_set_frame_parameters): Support for Qfullscreen.
14795 (x_real_positions): More accurate computation of the frame position.
14796 (x_figure_window_size): Support full-screen frames.
14797 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14798
048addec
JD
14799 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14800 (XTread_socket) <Expose>: Call x_check_fullscreen.
14801 <ConfigureNotify>: Don't resize to fullscreen.
14802 Call x_check_fullscreen_move, and set the want_fullscreen member of
14803 output_data.x.
3a62677f 14804
048addec 148052002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14806
048addec
JD
14807 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14808 for mice with more than 3 buttons.
b8523839 14809
048addec
JD
14810 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14811 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14812
048addec
JD
14813 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14814 (syms_of_w32fns): DEFVAR_BOOL it.
14815 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14816
048addec 148172002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14818
048addec 14819 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14820
048addec 148212002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14822
048addec 14823 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14824
048addec 148252002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14826
048addec
JD
14827 * .gdbinit (xbuffer): Remove address operator since data is now a
14828 pointer.
c93674bb 14829
048addec 148302002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14831
048addec 14832 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14833
048addec 14834 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14835
048addec 148362002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14837
048addec
JD
14838 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14839 when checking for multiple frames.
91175673 14840
048addec 148412002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14842
048addec
JD
14843 * window.c (delete_window): Rewrite the code for changing the
14844 selected window to handle the case where WINDOW is not a leaf.
91175673 14845
048addec 148462002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14847
048addec
JD
14848 * process.c (send_process): Set src_multibyte to 1 after the call
14849 top setup_coding_system, not before the call.
e0fead5d 14850
048addec 148512002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14852
048addec
JD
14853 * xmenu.c (set_frame_menubar, xmenu_show):
14854 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14855
048addec
JD
14856 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14857 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14858
048addec 148592002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14860
048addec 14861 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14862
048addec 14863 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14864
048addec 14865 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14866
048addec 148672002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14868
048addec
JD
14869 * insdel.c (make_gap_larger): Make sure buffer size does not
14870 overflow range of int.
62854fe2 14871
048addec 148722002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14873
048addec
JD
14874 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14875 OVERLAPS_P.
656f46bb 14876
048addec 14877 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14878
048addec
JD
14879 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14880 to the left or to the right of the pointer, put it against
14881 the left screen edge.
14882 (x_frame_parms): Add missing braces around initializer.
036e218d 14883
048addec
JD
14884 * w32term.c (x_setup_relief_colors): Don't compute an image's
14885 background color if it doesn't have a Pixmap.
14886 (notice_overwritten_cursor): Don't depend on
14887 output_cursor and updated_area. Compare pixel coordinates with
14888 window's cursor pixel coordinates.
14889 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14890 Call notice_overwritten_cursor with new arg list.
14891 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14892 unconditionally.
14893 (x_draw_image_relief): Use predefined macro instead of
14894 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14895
048addec 14896 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14897
048addec 148982002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14899
048addec 14900 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14901
048addec 149022002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 14903
048addec
JD
14904 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14905 (Fkey_binding): Try the `keymap' property map first.
14906 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14907 minor mode bindings.
90647b07 14908
048addec 149092002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 14910
048addec 14911 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 14912
048addec 149132002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 14914
048addec
JD
14915 * keyboard.c (read_key_sequence): Handle the keymap property
14916 before minor mode maps.
9fbc32aa 14917
048addec
JD
14918 * editfns.c (Fformat): Update thissize from field_width
14919 based on the actual width, in the string case.
036e218d 14920
048addec 149212002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14922
048addec
JD
14923 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14924 when used as truth value to prevent gcc warnings.
9fbc32aa 14925
048addec
JD
14926 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14927 * w32proc.c: Include <config.h>.
9fbc32aa 14928
048addec 149292002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14930
048addec
JD
14931 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14932 not EMACS_INT, to make them compatible with DEFVAR_INT.
14933 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14934
048addec 149352002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14936
048addec
JD
14937 * print.c (print_object): Test print_escape_nonascii only for
14938 unibyte strings.
14939 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14940 when outputting to a multibyte buffer.
9fbc32aa 14941
048addec 149422001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14943
048addec
JD
14944 * print.c (print_object): In multibyte string, use hex escapes.
14945 Use octal only for unibyte strings.
14946 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14947
048addec
JD
14948 * lread.c (read_escape): New arg BYTEREP for reporting whether
14949 escape forces unibyte or multibyte.
14950 (read1): When reading a string, take note of that info.
0142178a 14951
048addec 149522001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 14953
048addec
JD
14954 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14955 comparison to test lisp value returned by Fget.
d4824a5d 14956
048addec 149572001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 14958
048addec 14959 * lisp.h (max_specpdl_size): Add declaration.
b1356234 14960
048addec 14961 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 14962
048addec
JD
14963 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14964 Handle modifier bits. Correct typo in error message.
99e380ee 14965
048addec 149662001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 14967
048addec
JD
14968 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14969 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14970 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14971 Update calls to Fdefine_abbrev.
14972 (write_abbrev): Update for changed data format.
14973 Don't list "system" abbrevs.
14974 (Fexpand_abbrev): Update use count with new data format.
14975 (describe_abbrev): Update for changed data format.
14976 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 14977
048addec 14978 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 14979
048addec 14980 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 14981
048addec
JD
14982 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14983 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 14984
048addec
JD
14985 * keymap.c (Flookup_key): Error message if key has wrong data type.
14986 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14987 (exclude_key): New variable.
59a86c99 14988
048addec 149892001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 14990
048addec
JD
14991 * xterm.c (x_setup_relief_colors): Don't compute an image's
14992 background color if it doesn't have a Pixmap.
eb77a5f4 14993
048addec
JD
14994 * xterm.c (notice_overwritten_cursor): Don't depend on
14995 output_cursor and updated_area. Compare pixel coordinates with
14996 window's cursor pixel coordinates.
14997 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14998 Call notice_overwritten_cursor with new arg list.
14999 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15000 unconditionally.
eb77a5f4 15001
048addec
JD
15002 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15003 height of the cursor line to the amount to scroll.
eb77a5f4 15004
048addec 150052001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15006
048addec
JD
15007 * intervals.c (set_point_both): The position after an invisible,
15008 intangible character is not an acceptable stopping point.
bb313871 15009
048addec 150102001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15011
048addec
JD
15012 * window.c (enlarge_window): In new preserve_before code, convert
15013 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15014
048addec 150152001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15016
048addec 15017 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15018
048addec 150192001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15020
048addec
JD
15021 * keyboard.c (record_char): Ignore duplicate help-echo events only
15022 separated by mouse-movement. When tracking mouse, only record
15023 first and last mouse-movement event in same window.
15024 Don't record mouse-movement events in keyboard macros.
3ce081f5 15025
048addec 150262001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15027
048addec
JD
15028 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15029 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15030
048addec
JD
15031 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15032 instead of Fstring_as_unibyte.
9fabb2f5 15033
048addec 150342001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15035
048addec 15036 The following changes remove mocklisp support:
9fabb2f5 15037
048addec 15038 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15039
048addec
JD
15040 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15041 `Qmocklisp' and `Qmocklisp_arguments'.
15042 Remove prototype of syms_of_mocklisp.
2fa0eedf 15043
048addec 15044 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15045
048addec
JD
15046 * callint.c: Do not include mocklisp.h.
15047 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15048
048addec
JD
15049 * eval.c: Remove variables `Qmocklisp_arguments',
15050 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15051 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15052 Do not test for mocklisp case.
15053 (Fwhile): Remove unused variable `tem'.
15054 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15055
048addec 15056 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15057
048addec 15058 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15059
048addec 15060 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15061
048addec 150622001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15063
048addec
JD
15064 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15065 to the left or to the right of the pointer, put it against
15066 the left screen edge.
6108b49c 15067
048addec 150682001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15069
048addec
JD
15070 * Makefile.in (distclean): Remove .gdbinit if we are building
15071 outside the source tree.
5eea19a4 15072
048addec 150732001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15074
048addec 15075 * w32.c (emacs_root_dir): New function.
5eea19a4 15076
048addec 15077 * msdos.c (emacs_root_dir): New function.
5eea19a4 15078
048addec
JD
15079 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15080 of the current drive as the fallback for default_directory.
438e57dd 15081
048addec
JD
15082 * dired.c (file_name_completion): Run the elements of
15083 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15084
048addec
JD
15085 * lisp.h (scmp): Remove prototype, since it's now a static
15086 function private to dired.c.
c88e5347 15087
048addec 150882001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15089
048addec
JD
15090 * dired.c (scmp): Function moved from minibuf.c.
15091 Delete multibyte handling--used only on encoded strings.
59ce1461 15092
048addec 15093 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15094
048addec 15095 * fns.c (merge): Add QUIT call.
59ce1461 15096
048addec 150972001-12-18 Dave Love <fx@gnu.org>
8727d588 15098
048addec
JD
15099 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15100 language/georgian.el.
8727d588 15101
048addec 151022001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15103
048addec
JD
15104 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15105 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15106
048addec 151072001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15108
048addec
JD
15109 * xdisp.c (window_box_height): Do not return negative values.
15110 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15111
048addec 15112 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15113
048addec 15114 * term.c (keys): Likewise.
deece6f5 15115
048addec 15116 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15117
048addec 151182001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15119
048addec
JD
15120 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15121 patch (COMPOSING_P, not COMPOSING).
28ff4293 15122
048addec 151232001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15124
048addec 15125 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15126
048addec
JD
15127 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15128 before calling decode_coding.
9b46de40 15129
048addec 15130 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15131
048addec
JD
15132 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15133 instead of only for COMPOSITION_DISABLED.
9b46de40 15134
048addec 151352001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15136
048addec 15137 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15138
048addec 15139 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15140
048addec
JD
15141 * buffer.h (struct buffer): New field `display_error_modiff'.
15142 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15143
048addec 15144 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15145
048addec
JD
15146 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15147 Call redisplay_window, but not if display_error_modiff field says no.
15148 (redisplay_window_error): New function.
15149 (displayed_buffer): New variable.
15150 (redisplay_internal, redisplay_windows): Call the new functions
15151 instead of redisplay_window directly.
2cd23960 15152
048addec 151532001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15154
048addec 15155 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15156
048addec 151572001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15158
048addec 15159 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15160 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15161 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15162
048addec 151632001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15164
048addec
JD
15165 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15166 parameter have a numeric value all the time.
f6fa0866 15167
048addec 15168 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15169
048addec 151702001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15171
048addec 15172 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15173
048addec
JD
15174 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15175 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15176
048addec 151772001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15178
048addec
JD
15179 * xdisp.c (move_it_vertically_backward): Change heuristic
15180 for the case that we didn't move far enough initially.
91c153e2 15181
048addec
JD
15182 * window.c (Frecenter): Simplify computation in the case of window
15183 system frames and ARG < 0; use window_box_height.
65b7d3e7 15184
048addec 151852001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15186
048addec
JD
15187 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15188 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15189
048addec 151902001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15191
048addec
JD
15192 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15193 arg is negative.
be676094 15194
048addec 151952001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15196
048addec
JD
15197 * m/hp800.h: Split the __hpux conditional into the parts
15198 that are right for GNU/Linux too and the parts that are not.
15199 Use the former if GNU_LINUX.
15200 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15201
048addec 15202 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15203
048addec 152042001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15205
048addec
JD
15206 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15207 `new style' [w/`doc:' keyword].
032a857d 15208
048addec 152092001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15210
048addec
JD
15211 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15212 before using.
b6270150 15213
048addec 152142001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15215
048addec
JD
15216 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15217 keyword].
98cbb9fa 15218
048addec 152192001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15220
048addec 15221 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15222
048addec 15223 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15224
048addec 152252001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15226
048addec 15227 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15228 Add comment to explain where the struct came from.
048addec
JD
15229 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15230 (add_menu_item): Process pop-up menus first to avoid memory leak.
15231 (add_menu_item, w32_menu_display_help): Use `help' field as
15232 Lisp_Object.
15233 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15234
048addec 152352001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15236
048addec 15237 * COPYING: Moved back.
fa336b91 15238
048addec
JD
15239 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15240 Add parentheses around && within ||.
077907d4 15241
048addec 15242 * indent.c (compute_motion): Likewise.
aa2af83a 15243
048addec 15244 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15245
048addec
JD
15246 * coding.c (setup_coding_system, shrink_encoding_region)
15247 (Fdecode_sjis_char): Likewise.
60a653f1 15248
048addec 152492001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15250
048addec
JD
15251 * xdisp.c (display_mode_element): Don't read past end of string if
15252 it ends with '%'.
60a653f1 15253
048addec
JD
15254 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15255 can hold.
60a653f1 15256
048addec
JD
15257 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15258 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15259 type changed to Lisp_Object.
15260 (syms_of_data): DEFVAR_LISP them.
60a653f1 15261
048addec 152622001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15263
048addec
JD
15264 * callproc.c (init_callproc): Set Vdata_directory based on the source
15265 location whenever Emacs was run uninstalled.
60a653f1 15266
048addec 152672001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15268
048addec
JD
15269 * config.in (HAVE_WORKING_VFORK): New #undefs.
15270 * process.c (create_process):
15271 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15272 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15273 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15274 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15275 * m/intel386.h (HAVE_VFORK): Likewise.
15276 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15277 * m/mips.h (HAVE_VFORK): Likewise.
15278 * s/freebsd.h (vfork): Remove #define.
15279 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15280 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15281
048addec 152822001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15283
048addec
JD
15284 * s/hpux10.h (random): Add undef.
15285 (HAVE_RANDOM): Define it just once.
60a653f1 15286
048addec 152872001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15288
048addec 15289 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15290
048addec 152912001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15292
048addec
JD
15293 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15294 scroll bars of the frame before deleting the frame itself. If the
15295 frame has a widget, delete the frame with XtDestroyWidget, and do
15296 not call XDestroyWindow before that.
60a653f1 15297
048addec 152982001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15299
048addec 15300 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15301
048addec 15302 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15303
048addec 153042001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15305
048addec
JD
15306 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15307 excessively large.
60a653f1 15308
048addec
JD
15309 * insdel.c (make_gap_larger): New function.
15310 (make_gap_smaller): New function.
15311 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15312 Call make_gap_smaller if arg is negative.
60a653f1 15313
048addec 153142001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15315
048addec
JD
15316 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15317 Pass a dummy argument when calling interrupt_signal.
15318 (parse_menu_item): Mark disabled items before checking for empty def.
15319 (read_char_minibuf_menu_prompt): Make safety more visible.
15320 (read_key_sequence): Add a `first_unbound' variable.
15321 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15322 unbound prefix as soon as we can detect it.
60a653f1 15323
048addec
JD
15324 * doc.c (Fsnarf_documentation): Add prototype.
15325 (get_doc_string): Handle negative arguments.
15326 (Fdocumentation): Use AREF and ASIZE.
15327 Move the calls to get_doc_string to a single place.
15328 Don't confuse an interactive-spec for a docstring reference.
15329 (Fdocumentation_property): Take advantage of the fact that
15330 get_doc_string now ignores the sign of the docstring position.
60a653f1 15331
048addec 15332 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15333
048addec 153342001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15335
a64387ee 15336 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15337
048addec 153382001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15339
048addec
JD
15340 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15341 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15342
048addec 153432001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15344
048addec
JD
15345 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15346 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15347
048addec 15348 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15349
048addec 153502001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15351
048addec 15352 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15353
048addec 153542001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15355
048addec 15356 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15357
048addec 153582001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15359
f63fd14e 15360 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15361
048addec
JD
15362 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15363 [!WM_MOUSELEAVE]: Define.
60a653f1 15364
048addec
JD
15365 * w32menu.c (current_popup_menu, get_menu_item_info):
15366 (set_menu_item_info): New vars.
15367 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15368 (w32_menu_show): Set current_popup_menu.
15369 (add_menu_item): Allocate new strings for owner-drawn menu items
15370 and help strings.
15371 Use owner-draw for disabled menu items again.
15372 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15373 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15374
048addec
JD
15375 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15376 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15377 <WM_EXITMENULOOP>: Free menu strings.
15378 <WM_MOUSELEAVE>: Stop tracking mouse.
15379 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15380
048addec
JD
15381 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15382 and mouse face.
60a653f1 15383
048addec 153842001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15385
048addec
JD
15386 The following changes add left-fringe and right-fringe
15387 frame parameters to adjust fringe widths, or remove one or
15388 both fringes.
60a653f1 15389
048addec
JD
15390 * frame.h (struct frame): Remove trunc_area_pixel_width and
15391 trunc_area_cols fields.
15392 (Qleft_fringe, Qright_fringe): Declare.
15393 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15394
048addec
JD
15395 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15396 (syms_of_frame): Initialize them.
60a653f1 15397
048addec
JD
15398 * window.c (coordinates_in_window): Handle separate left and right
15399 fringe widths.
60a653f1 15400
048addec
JD
15401 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15402 and fringe_cols fields.
15403 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15404 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15405 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15406 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15407 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15408 (x_compute_fringe_widths): Add prototype.
60a653f1 15409
048addec
JD
15410 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15411 fill fringe evenly with small dashes.
f63fd14e 15412 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15413 clip the new ZV bitmap to avoid jitter between rows.
15414 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15415 background. Don't draw fringe bitmaps if fringe width is zero.
15416 (x_compute_fringe_widths): New function.
15417 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15418
048addec
JD
15419 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15420 (x_set_frame_parameters): Process `font' parameter before other
15421 parameters as fringe widths depend on it.
15422 (x_set_fringe_width): New function.
15423 (x_figure_window_size): Use x_compute_fringe_widths.
15424 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15425 parameters.
60a653f1 15426
048addec
JD
15427 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15428 (EmacsFrameSetCharSize): Ditto.
60a653f1 15429
048addec
JD
15430 * w32term.h: Merged changes from xterm.h.
15431 * w32term.c: Merged changes from xterm.c.
15432 * w32fns.c: Merged changes from xfns.c.
60a653f1 15433
048addec 154342001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15435
048addec 15436 * COPYING: Removed.
60a653f1 15437
048addec 154382001-11-29 Dave Love <fx@gnu.org>
60a653f1 15439
048addec
JD
15440 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15441 extra extra slot.
15442 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15443
048addec 154442001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15445
048addec
JD
15446 * fileio.c (file-name-coding-system)
15447 (default-file-name-coding-system): Doc fix (links to referenced
15448 variables added).
60a653f1 15449
048addec 154502001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15451
048addec
JD
15452 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15453 Add dummy uses of gcproN variables.
60a653f1 15454
048addec
JD
15455 * category.c (describe_category, describe_category_1)
15456 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15457 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15458
048addec 154592001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15460
048addec 15461 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15462
048addec
JD
15463 * Makefile.in (lispdir): New variable, referring to build dir.
15464 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15465
048addec 154662001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15467
048addec
JD
15468 * w32menu.c (w32_menu_display_help): Actually add the new argument
15469 OWNER.
60a653f1 15470
048addec 154712001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15472
048addec
JD
15473 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15474 menu items. From David Ponce <dponce@wanadoo.fr>.
15475 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15476 conditionally.
f63fd14e 15477 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15478 help event in the owner frame's keyboard buffer.
60a653f1 15479
048addec
JD
15480 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15481 (Fx_show_tip): Don't subtract last width from row width.
15482
15483 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15484 (w32_read_socket): Use EQ to compare frames.
60a653f1 15485
048addec 154862001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15487
048addec
JD
15488 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15489 OVERLAPS_P.
60a653f1 15490
048addec 154912001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15492
048addec
JD
15493 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15494 `gcpro3' and `gcpro4'.
60a653f1 15495
048addec 15496 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15497
048addec 154982001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15499
048addec 15500 * ccl.c: Use AREF and ASIZE.
60a653f1 15501
048addec 155022001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15503
048addec
JD
15504 * lisp.h (run_hook_list_with_args): Remove.
15505 (LIST_END_P): Fix call to wrong_type_argument.
15506 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15507
048addec 155082001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15509
048addec
JD
15510 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15511 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15512
048addec
JD
15513 * eval.c: Use AREF and ASIZE.
15514 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15515
048addec
JD
15516 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15517 which match the end of the file-name.
15518 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15519 is not a valid env var, but leave it as is instead.
60a653f1 15520
048addec
JD
15521 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15522 Make nil bindings in char-tables transparent.
15523 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15524
048addec 155252001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15526
048addec
JD
15527 * textprop.c (set_text_properties_1): Allow START, END in either order.
15528 Do nothing if range is empty.
60a653f1 15529
048addec 15530 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15531
048addec
JD
15532 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15533 (clean): Not here.
60a653f1 15534
048addec 155352001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15536
048addec
JD
15537 * textprop.c (set_text_properties_1): Clearly mark that the
15538 interval should not be empty.
60a653f1 15539
048addec
JD
15540 * intervals.c (graft_intervals_into_buffer):
15541 Don't call set_text_properties_1 on an empty interval.
60a653f1 15542
048addec 155432001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15544
048addec 15545 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15546
048addec
JD
15547 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15548 don't lose the data in it.
60a653f1 15549
048addec 155502001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15551
048addec 15552 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15553
c62aec78 15554 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15555
c62aec78 15556 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15557
048addec 155582001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15559
048addec 15560 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15561
048addec 155622001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15563
048addec
JD
15564 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15565 Niemitalo <kon@iki.fi>.
60a653f1 15566
048addec 155672001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15568
048addec 15569 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15570
048addec
JD
15571 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15572 (Fx_show_tip): Block input during frame creation.
15573 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15574
048addec 155752001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15576
048addec
JD
15577 * lread.c (Fload): Detect recursive load error for more than 3
15578 nestings of the same file.
15579 (Vrecursive_load_depth_limit): Variable deleted.
15580 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15581
048addec 155822001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15583
048addec
JD
15584 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15585 mouse position if either left or top is not specified.
60a653f1 15586
048addec
JD
15587 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15588 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15589 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15590 (my_create_tip_window): Assign tip_window.
15591 (x_create_tip_frame): Use same defaults as X.
15592 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15593 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15594
048addec
JD
15595 * w32term.c (x_after_update_window_line): Doc fix.
15596 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15597 frames.
15598 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15599
048addec
JD
15600 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15601 for all Windowed systems.
60a653f1 15602
048addec 156032001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15604
048addec
JD
15605 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15606 realized, use the initial screen colors to clear the screen.
60a653f1 15607
048addec 156082001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15609
048addec
JD
15610 * textprop.c (Fset_text_properties): Remove unused variables
15611 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15612
048addec
JD
15613 * search.c (Freplace_match): Remove unused variable `inslen'.
15614
15615 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15616
156172001-11-22 Jason Rumney <jasonr@gnu.org>
15618
15619 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15620 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15621 (my_create_tip_window): New function.
15622 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15623 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15624
156252001-11-20 Jason Rumney <jasonr@gnu.org>
15626
15627 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15628 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15629
15630 * w32fns.c (Vw32_system_coding_system): Remove.
15631 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15632
156332001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15634
15635 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15636 after build_annotations.
15637
15638 * syntax.c (describe_syntax): Add dummy arg.
15639 (describe_syntax_1): Update call to describe_vector.
15640
15641 * category.c (describe_category): Add dummy arg.
15642 (describe_category_1): Update call to describe_vector.
15643
15644 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15645 (describe_command, describe_translation): Add dummy second param.
15646 (describe_map): Call elt_describer with two arguments.
15647 (describe_vector_princ): Add `fun' parameter.
15648 Call it instead of the hardcoded `princ'.
15649 (describe_vector): Add arg `args'.
15650 Pass it as a new second argument to elt_describer.
60a653f1 15651
048addec 15652 * keymap.h (describe_vector): Update prototype.
60a653f1 15653
048addec
JD
15654 * frame.c: Don't include keymap.h any more.
15655 (keys_of_frame): Remove.
60a653f1 15656
048addec 15657 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15658
048addec 15659 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15660
048addec 156612001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15662
048addec
JD
15663 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15664 if defined, 0 otherwise.
15665 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15666 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15667
048addec 156682001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15669
048addec 15670 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15671
048addec 156722001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15673
048addec
JD
15674 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15675 (x_draw_bar_cursor): If the background color of the glyph under
15676 the cursor equals the frame's cursor color, use the glyph's
15677 foreground color for drawing the bar cursor.
15678 (x_after_update_window_line): Clear internal border in different
15679 circumstances.
15680 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15681 (w32_draw_relief_rect): Correct relief by 1 pixel.
15682 (x_set_glyph_string_background_width):
15683 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15684 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15685 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15686 if cursor_in_non_selected_windows is false.
15687 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15688 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15689 Notice if cursor gets overwritten.
15690 (notice_overwritten_cursor): Renamed from
15691 note_overwritten_text_cursor. Rewritten to take glyph widths
15692 into account, and to take X positions as parameters.
15693 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15694 around call to x_draw_glyphs.
15695 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15696 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15697 color to use for image glyph reliefs.
15698 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15699 (glyph_rect): Remove unused variable `area'.
60a653f1 15700
048addec
JD
15701 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15702 some items.
15703 (x_set_internal_border_width): Set frame garbaged when window
15704 doesn't exist yet.
15705 (Fx_create_frame): Accept zero tool_bar_button_relief.
15706 (x_clear_image_1, four_corners_best, image_background)
15707 (image_background_transparent): New functions.
15708 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15709 (gs_format): Add `:background' entry.
15710 (lookup_image): Set IMG's background color if specified.
15711 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15712 when appropriate.
15713 (x_clear_image_1): Reset `background_valid' and
15714 `background_transparent_valid' fields.
15715 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15716 calculating it here. Set IMG's background_transparent field.
15717 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15718 (enum png_keyword_index): Add PNG_BACKGROUND.
15719 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15720 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15721 (enum gif_keyword_index): Add GIF_BACKGROUND.
15722 (enum gs_keyword_index): Add GS_BACKGROUND.
15723 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15724 Pre-calculate image background color where necessary.
15725 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15726 Use display info's n_cbits entry for screen depth.
15727 (Fx_show_tip): Remove unused variables `buffer', `top',
15728 `left', `max_width' and `max_height'.
60a653f1 15729
048addec 15730 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15731
048addec 157322001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15733
048addec 15734 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15735
048addec 157362001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15737
048addec 15738 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15739
048addec 157402001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15741
048addec
JD
15742 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15743 (message_dolog_marker3): New static variables hold three markers.
15744 (syms_of_xdisp): Initialize and staticpro them.
15745 (message_dolog): Use message_dolog_marker1..3 instead of
15746 allocating markers each time. Unchain them when done.
60a653f1 15747
048addec 157482001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15749
048addec 15750 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15751
048addec 157522001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15753
048addec 15754 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15755
048addec 157562001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15757
048addec 15758 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15759
048addec 157602001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15761
048addec 15762 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15763
048addec 157642001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15765
048addec
JD
15766 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15767 with invalid position.
60a653f1 15768
048addec 157692001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15770
048addec 15771 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15772
048addec
JD
15773 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15774 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15775 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15776
048addec 15777 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15778
048addec 157792001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15780
048addec
JD
15781 * fileio.c (build_annotations): Split off the tail.
15782 (build_annotations_2): New fun. Extracted from build_annotations.
15783 (Fwrite_region): Split the call to build_annotations into two
15784 calls to build_annotations and build_annotations_2.
077907d4 15785
048addec 157862001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15787
048addec
JD
15788 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15789 clear_waiting_for_input with argument.
1756e2fb 15790
048addec 15791 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15792
048addec 15793 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15794
048addec 15795 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15796
048addec 15797 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15798
048addec 157992001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15800
048addec
JD
15801 * fileio.c (choose_write_coding_system): New fun, extracted
15802 from Fwrite_region.
15803 (Fwrite_region): Use it.
fa336b91 15804
048addec
JD
15805 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15806 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15807 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15808
048addec 158092001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15810
048addec 15811 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15812
048addec
JD
15813 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15814 Required for ISC 4.1.
fa336b91 15815
048addec 158162001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15817
048addec
JD
15818 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15819 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15820
048addec 158212001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15822
048addec
JD
15823 The following changes are made to clean up the various internal
15824 references to the fringes to actually use the term `fringe' for
15825 them. Previously, they were called `flags areas', `bitmap areas',
15826 `left/right side of windows', or implicitly as `flags' or
15827 `bitmaps':
fa336b91 15828
048addec 15829 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15830 Comments fixed. Use renamed symbols.
06e8f738 15831
f63fd14e 15832 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15833
048addec
JD
15834 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15835 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15836 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15837
048addec 15838 * msdos.c: Comment fix.
9ce647f4 15839
048addec 15840 * w32fns.c: Use renamed symbols.
9b784ab8 15841
f63fd14e 15842 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15843 (fringe_bitmap_type): Renamed from bitmap_type.
15844 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15845 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15846 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15847
f63fd14e 15848 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15849 (fringes_extra): Renamed from flags_areas_extra.
15850 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15851 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15852 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15853 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15854 (FRAME_X_LEFT_FRINGE_WIDTH):
15855 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15856 (FRAME_X_RIGHT_FRINGE_WIDTH):
15857 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15858
048addec 15859 * widget.c: Use renamed symbols.
9f7e52b4 15860
f63fd14e 15861 * window.c: Comment fixes. Use renamed symbols.
048addec 15862 (coordinates-in-window-p): Doc fix.
fa336b91 15863
f63fd14e 15864 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15865
048addec 15866 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15867
048addec 15868 * xfns.c: Use renamed symbols.
89512fcd 15869
f63fd14e 15870 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15871 (fringe_bitmap_type): Renamed from bitmap_type.
15872 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15873 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15874 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15875
f63fd14e 15876 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15877 (fringes_extra): Renamed from flags_areas_extra.
15878 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15879 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15880 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15881 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15882 (FRAME_X_LEFT_FRINGE_WIDTH):
15883 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15884 (FRAME_X_RIGHT_FRINGE_WIDTH):
15885 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15886
158872001-11-15 Jason Rumney <jasonr@gnu.org>
15888
15889 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15890 work for most menu items. From David Ponce
15891 <david.ponce@wanadoo.fr>.
15892
158932001-11-15 Gerd Moellmann <gerd@gnu.org>
15894
15895 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15896 Some x_set_* function expect to be called even if old and new
15897 value are equal.
15898
15899 * xdisp.c (build_desired_tool_bar_string): Accept zero
15900 tool_bar_button_relief.
15901
15902 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15903
15904 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15905
15906 * xterm.c (x_draw_bar_cursor): If the background color of the
15907 glyph under the cursor equals the frame's cursor color, use
15908 the glyph's foreground color for drawing the bar cursor.
15909
15910 * dispnew.c (direct_output_forward_char): Fix character/byte
15911 position comparison.
7d18891d 15912
048addec 159132001-11-15 Miles Bader <miles@gnu.org>
d2936d21 15914
048addec
JD
15915 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15916 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15917 Update arguments to find_field.
15918 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15919 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15920 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15921 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15922
048addec 159232001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15924
048addec 15925 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15926
048addec
JD
15927 * dispextern.h (image_background, image_background_transparent):
15928 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15929
048addec 159302001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15931
048addec 15932 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15933
048addec 15934 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15935
048addec 15936 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15937
048addec 15938 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15939
048addec 15940 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15941
048addec 15942 * eval.c (syms_of_eval): Doc fix.
7d18891d 15943
048addec 15944 * coding.c (syms_of_coding): Doc fix.
7d18891d 15945
048addec 15946 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15947
048addec 15948 * dispnew.c (syms_of_display): Doc fix.
9474c847 15949
048addec 15950 * category.c (Fget_unused_category): Doc fix.
9474c847 15951
048addec 15952 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 15953
048addec 159542001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 15955
048addec 15956 * print.c (prin1, print): Doc fix.
e3059a5d 15957
048addec 159582001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 15959
048addec
JD
15960 * fontset.h: Remove declarations of variables
15961 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 15962
048addec
JD
15963 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15964 `Vclip_large_size_font'.
eae936e2 15965
048addec 159662001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 15967
048addec 15968 * w32fns.c: Doc fix.
ddb67bdc 15969
048addec 159702001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 15971
048addec 15972 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 15973
048addec 15974 * fns.c: Doc fix.
6e1b91d7 15975
048addec 15976 * emacs.c: Doc fix.
1c1d3d69 15977
048addec 15978 * coding.c: Doc fix.
1c1d3d69 15979
048addec
JD
15980 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15981 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15982 `new style' [w/`doc:' keyword].
b6f4c7ba 15983
048addec 159842001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 15985
048addec
JD
15986 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15987 LeaveNotify events. Only FocusIn and FocusOut do that now.
15988 (x_display_and_set_cursor): Do display hollow cursors in active
15989 minibuffer windows when they are not selected.
b6f4c7ba 15990
048addec 159912001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 15992
048addec 15993 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
15994 * w32term.c: Change doc-string comments to `new style'
15995 [w/`doc:' keyword]. Doc fixes.
a89f435d 15996
048addec
JD
15997 * w32fns.c: Don't define max.
15998 (Fx_open_connection): Only execute once.
a4cd0cd7 15999
048addec 160002001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16001
048addec
JD
16002 * ccl.c: Change macros to use do-while block instead of if-else.
16003 Use braces to follow GNU Coding Standards.
eafb659a 16004
048addec 160052001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16006
048addec 16007 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16008
048addec 16009 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16010
048addec
JD
16011 * insdel.c (replace_range): Use adjust_markers_for_replace
16012 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16013
78819ebb 16014 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16015
048addec
JD
16016 * textprop.c (set_text_properties_1): New subroutine
16017 broken out of set_text_properties.
16018 (set_text_properties): Use set_text_properties_1.
91823618 16019
048addec
JD
16020 * intervals.c (graft_intervals_into_buffer):
16021 Use set_text_properties_1 to clear out properties.
91823618 16022
048addec
JD
16023 * search.c (Freplace_match): Use replace_range to insert
16024 and delete. Don't request property inheritance from
16025 surrounding text.
86928dfb 16026
048addec 160272001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16028
048addec 16029 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16030 vertical fonts. Allow them if face name is explicitly specified.
048addec 16031 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16032
048addec 160332001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16034
048addec
JD
16035 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16036 instead of malloc/free.
a78e0303 16037
048addec 160382001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16039
048addec
JD
16040 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16041 Coding Standards.
16042 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16043
048addec 16044 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16045
048addec 16046 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16047
048addec
JD
16048 * coding.c (encode_coding): Use precomputed value of `src'.
16049 (encode_coding): Remove unused variable `src_end'.
16050 (code_convert_region): Remove unused variables `count'.
830ddd77 16051
048addec 160522001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16053
048addec
JD
16054 * w32term.c (x_display_and_set_cursor): Do not move system caret
16055 if cursor_glyph is NULL.
55c6d645 16056
048addec 160572001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16058
048addec 16059 * keymap.c (access_keymap): Fix compilation error.
5de38842 16060
048addec 160612001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16062
048addec 16063 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16064
048addec 160652001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16066
048addec
JD
16067 * intervals.c (graft_intervals_into_buffer):
16068 Remove #ifdef'd-out code.
16069 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16070
048addec
JD
16071 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16072 code (eval-current-buffer).
16073 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16074
048addec 160752001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16076
048addec 16077 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16078
048addec 160792001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16080
048addec 16081 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16082
048addec
JD
16083 * keyboard.c (make_lispy_event): Check integerness and fix
16084 Lisp_Object/int mixup.
17893c65 16085
048addec 160862001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16087
048addec 16088 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16089
048addec
JD
16090 * fontset.c (fontset_font_pattern): Remove unused variable
16091 `family_registry'.
d5360cc7 16092
048addec 16093 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16094
048addec 160952001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16096
048addec 16097 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16098
048addec
JD
16099 * buffer.c (Fkill_buffer): Don't delete auto save file
16100 if buffer is modified.
d9d54213 16101
048addec 161022001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16103
048addec
JD
16104 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16105 CHECK_NUMBER_CDR.
b116830b 16106
048addec 161072001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16108
048addec 16109 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16110
048addec 161112001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16112
048addec 16113 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16114
048addec 161152001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16116
048addec 16117 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16118
048addec 161192001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16120
048addec
JD
16121 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16122 the program image directly.
982f6c7e 16123
048addec 161242001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16125
048addec 16126 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16127
048addec 161282001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16129
048addec
JD
16130 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16131 and CHECK_BUFFER.
d31053f9 16132
048addec
JD
16133 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16134 (record_char): Likewise.
d31053f9 16135
048addec
JD
16136 * keyboard.c (make_lispy_event): Don't insist a drag event must
16137 move to a different buffer position. Instead, check for moving at
16138 least double_click_fuzz.
982f6c7e 16139
048addec 16140 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16141
048addec 16142 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16143
048addec
JD
16144 * indent.c (current_column_1, Fmove_to_column): Separate the code
16145 for display-table glyphs from the code for buffer text, to fix
16146 bugs in the former.
830047fd 16147
048addec 161482001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16149
048addec
JD
16150 * buffer.c (Fbuffer_local_value): New function.
16151 (syms_of_buffer): Defsubr it.
2df5238c 16152
048addec
JD
16153 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16154 value of `cursor-in-non-selected-windows'.
4e397688 16155
048addec
JD
16156 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16157 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16158 (syms_of_xdisp): Initialize it.
48b0f3ae 16159
048addec 161602001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16161
048addec 16162 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16163
048addec
JD
16164 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16165 keyword].
3ecaf7e5 16166
048addec
JD
16167 * eval.c (top_level_value, top_level_set): Remove commented and
16168 #ifdef'd-out code.
16169 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16170
048addec 161712001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16172
048addec 16173 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16174
048addec 16175 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16176
048addec 16177 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16178
048addec 161792001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16180
048addec
JD
16181 * lisp.h (CHECK_STRING_CAR): New macro.
16182 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16183 treating XCAR and XCDR as lvalues.
16184 (openp): Use CHECK_STRING_CAR.
16185 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16186
048addec 161872001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16188
048addec
JD
16189 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16190 (SIGMASKTYPE): Define.
1b1acc13 16191
048addec 16192 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16193
048addec 161942001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16195
048addec
JD
16196 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16197 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16198 Fix typos in comments.
6cb16f95 16199
048addec
JD
16200 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16201 and #ifdef'd-out code.
16202 Fix and reindent comments.
6cb16f95 16203
048addec 16204 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16205
048addec
JD
16206 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16207 argument `i' in macros.
6cb16f95 16208
048addec
JD
16209 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16210 `i' in macros.
7e9d3c2f 16211
048addec
JD
16212 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16213 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16214 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16215 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16216 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16217 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16218 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16219 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16220 in macros.
7e9d3c2f 16221
048addec
JD
16222 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16223 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16224 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16225 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16226 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16227 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16228 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16229 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16230 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16231 (remove unused second argument).
7e9d3c2f 16232
048addec 162332001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16234
048addec
JD
16235 * syntax.c (describe_syntax): New wrapper.
16236 (Finternal_describe_syntax_value): Rename from describe_syntax.
16237 Don't insert space at front and \n at the end.
16238 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16239
048addec
JD
16240 * regex.c (re_wctype): Try to fix some warnings.
16241 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16242
048addec 162432001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16244
048addec 16245 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16246
048addec 162472001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16248
048addec 16249 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16250
048addec 16251 * data.c (Fsetq_default): Ditto.
c22e59e1 16252
048addec 16253 * callint.c (Finteractive): Ditto.
9271ed2c 16254
048addec 162552001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16256
048addec
JD
16257 * macros.c: Don't include keymap.h any more.
16258
162592001-11-01 Richard M. Stallman <rms@gnu.org>
16260
16261 * data.c (Fmake_local_variable): Doc fix.
16262
16263 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16264 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16265
048addec 16266 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16267 bindings along with or instead of the buffer local map.
16268 Make the overriding maps override what they should.
16269
f00691a3 162702001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16271
16272 * window.c (grow_mini_window): Fix typo in comment.
16273
27188d11
GM
162742001-11-01 Gerd Moellmann <gerd@gnu.org>
16275
7b49b9d2
GM
16276 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16277 (XTset_vertical_scroll_bar): Likewise.
16278
43f7c3ea
GM
16279 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16280 instead of IMAGE_BACKGROUND.
c22e59e1 16281
b350c2e5
GM
16282 * xfns.c (four_corners_best): Reindent.
16283
c22e59e1 16284 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16285 Handle :box so that it is possible to specify sexprs.
16286
bf00d461
EZ
162872001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16288
16289 * s/hpux11.h: New file.
16290
f00691a3 162912001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16292
2b209b97
PJ
16293 * emacs.c (USAGE1): Show command line option --no-window-system
16294 instead of --no-windows in usage.
16295 (standard_args): Rename --no-windows to --no-window-system.
16296 (bug_reporting_address): Follow Emacs coding conventions.
16297
9dbc9081
PJ
16298 * eval.c (Fcommandp): Doc fix.
16299 Change doc-string comments to `new style' [w/`doc:' keyword].
16300
4e10df59
PJ
16301 * frame.c (Fframe_live_p): Doc fix.
16302
16303 * buffer.c (selective-display-ellipses): Doc fix.
16304
dd387b25
GM
163052001-10-31 Gerd Moellmann <gerd@gnu.org>
16306
fe957e65
GM
16307 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16308
dd387b25
GM
16309 * xfaces.c (realize_x_face): If C is not a single-byte character,
16310 set the face's colors_copied_bitwise_p instead of the defaulted_p
16311 members which have a different meaning.
16312 (free_face_colors): Do nothing for a face whose colors have been
16313 copied bitwise.
16314
c22e59e1 16315 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16316
f00691a3 163172001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16318
687784e8
PJ
16319 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16320 [w/`doc:' keyword].
2e1280f8 16321
b9d9a9b9
GM
163222001-10-31 Gerd Moellmann <gerd@gnu.org>
16323
16324 * fns.c (require_unwind): Return Lisp_Object.
16325
f00691a3 163262001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16327
fa1361cb
PJ
16328 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16329 (last-input-char): Revert doc-string to be the same as the
16330 doc-string of `last-input-event'.
16331
6c465a15 16332 * xdisp.c: Fix typos in comments.
48400103 16333
eafa3196
GM
163342001-10-31 Gerd Moellmann <gerd@gnu.org>
16335
16336 * window.c (grow_mini_window): Handle case that the root
16337 window is already smaller than the nominal mininum height.
16338
747d3f2a
SM
163392001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16340
bf9bb76f
SM
16341 * emacs.c (main): Don't call keys_of_macros any more.
16342
16343 * lisp.h (keys_of_macros): Remove.
16344
16345 * macros.c (keys_of_macros): Remove.
16346
747d3f2a
SM
16347 * xfaces.c (Fface_attribute_relative_p): Declare args.
16348
5e905a57
JR
163492001-10-30 Jason Rumney <jasonr@gnu.org>
16350
16351 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16352 (enum_font_cb2): Ignore fonts with vertical orientation.
16353
3a426197
RS
163542001-10-30 Richard M. Stallman <rms@gnu.org>
16355
16356 * keyboard.c (Finput_pending_p): Doc fix.
16357
a742d646
GM
163582001-10-30 Gerd Moellmann <gerd@gnu.org>
16359
259cf6bc
GM
16360 * xterm.c (x_after_update_window_line): Don't run the code
16361 clearing in borders for rows whose visible height is 0.
16362
3f99f948
GM
16363 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16364 resized_p flag is set. If not set, use the much less flickering
16365 method previously used.
16366
16367 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16368
16369 * frame.h (struct frame) <resized_p>: New member.
16370
b4a3be43
GM
16371 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16372 as large as the number of bytes to convert.
747d3f2a 16373
a742d646
GM
16374 * lread.c (to_multibyte): New function.
16375 (read1): Use it.
16376
cacbb9e9
EZ
163772001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16378
16379 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16380
99cb6b2f
GM
163812001-10-30 Gerd Moellmann <gerd@gnu.org>
16382
327f42ee 16383 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16384 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16385 if the row's fill_line_p is set and drawing the last glyph with
16386 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16387
99cb6b2f
GM
16388 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16389
8e8223e2
SM
163902001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16391
16392 * xmenu.c: Include coding.h and charset.h.
16393 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16394 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16395 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16396 Explicitly set wv->help. Use `TRUE' rather than `True'.
16397 (menu_help_callback): Use empty_string.
16398
16399 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16400 (Fx_popup_dialog): Explicitly init f.
16401 (w32_menu_display_help): Use empty_string.
16402
4d083a8f
RS
164032001-10-29 Richard M. Stallman <rms@gnu.org>
16404
b2304472
RS
16405 * fns.c (Frequire): Detect recursive try to require the same
16406 feature 3 or more levels deep, and get error.
16407 (require_unwind): New subroutine.
16408 (require_nesting_list): New variable.
16409 (syms_of_fns): Init and staticpro it.
16410
4d083a8f
RS
16411 * print.c (print_object): Clarify indication of insertion type.
16412
2fe41216
EZ
164132001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16414
90480000
EZ
16415 * coding.c (syms_of_coding): Document that locale-coding-system is
16416 used for decoding input on X.
16417
2fe41216
EZ
16418 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16419
f00691a3 164202001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16421
16422 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16423 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16424
60ebcfe8
GM
164252001-10-29 Gerd Moellmann <gerd@gnu.org>
16426
9a7bdceb
GM
16427 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16428 use NO_CURSOR if cursor_in_non_selected_windows is false.
16429
3f08fcd2
GM
16430 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16431 the slant attribute if FRAME is t.
16432
0ccfdad2
GM
16433 * xfns.c (x_set_internal_border_width): Set frame garbaged
16434 when X window doesn't exist yet.
16435
ef253080
GM
16436 * xterm.c (x_after_update_window_line): Clear internal border
16437 in different circumstances.
b116830b 16438
60ebcfe8
GM
16439 * xterm.c (XTread_socket) <KeyPress>: Don't use
16440 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16441 <handa@etl.go.jp>.
16442
73d25f9c
EZ
164432001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16444
16445 * m/ibms390.h: New file. From Adam Thornton
16446 <athornton@sinenomine.net>.
16447
cac1daf0
GM
164482001-10-28 Gerd Moellmann <gerd@gnu.org>
16449
053b3256 16450 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16451
cac1daf0
GM
16452 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16453 a loop counter.
16454
f00691a3 164552001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16456
f9711de4 16457 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16458
4707d2d0
PJ
16459 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16460 keyword].
16461 Fix typos in comments.
b116830b 16462
d883731c
PJ
16463 * emacs.c (bug_reporting_address): New function.
16464 Use it when displaying usage message.
16465
04012254
PJ
16466 * minibuf.c (read_minibuf): Remove unused external declaration of
16467 variable `Qread_only'.
16468
13b1a09c
PJ
16469 * keymap.c (access_keymap): Remove unused variable `charset'.
16470
5bbf4378
MB
164712001-10-28 Miles Bader <miles@gnu.org>
16472
16473 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16474 Remove #ifdef'd-out code.
16475 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16476 (syms_of_xfaces): Initialize them.
16477
1ce1e4ee
JR
164782001-10-27 Jason Rumney <jasonr@gnu.org>
16479
16480 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16481 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16482 position using the system caret.
16483
16484 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16485 (w32_system_caret_height, w32_system_caret_x)
16486 (w32_system_caret_y): New variables for tracking system caret.
16487 (w32_initialize): Initialize them.
c2d53558 16488 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16489
c2d53558
SM
16490 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16491 New messages types.
1ce1e4ee
JR
16492
16493 * w32term.c (note_mouse_highlight): Clear old help_echo.
16494
f00691a3 164952001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16496
bb4600a4
PJ
16497 * xterm.c: Fix typo in a comment.
16498
7db35a48
PJ
16499 * emacs.c: Fix typos in comments.
16500 Remove unnecessary spaces.
16501 Change doc-string comments to `new style' [w/`doc:' keyword].
16502 (USAGE2): Fix typos in usage string.
16503
a7248e4f
PJ
16504 * xterm.c: Fix typo in a comment.
16505
4e30ce42
PJ
16506 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16507 emacs.c.
16508
62725a92
GM
165092001-10-27 Gerd Moellmann <gerd@gnu.org>
16510
798dbe1f 16511 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16512 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16513 farther backward when target_y was not reached.
16514
62725a92
GM
16515 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16516 Display errno only if non-zero.
16517 (sound_warning): New function.
16518 (vox_configure): Don't treat failing to set sample rate as error.
16519 (various places): Improve error messages.
16520
d4e34d24
EZ
165212001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16522
944e6f60
EZ
16523 * fileio.c (Faccess_file): Run the argument filename through
16524 Fexpand_file_name, before using it.
16525
d4e34d24
EZ
16526 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16527 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16528
38d2af0c
GM
165292001-10-26 Gerd Moellmann <gerd@gnu.org>
16530
da80a8d5
GM
16531 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16532
38d2af0c
GM
16533 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16534 Fix clearing in the case of scroll bars on the right.
c2d53558 16535
45de4a6f 165362001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16537
16538 * w32gui.h (XImage): Add a dummy typedef.
16539
fbd5ceb2
GM
165402001-10-26 Gerd Moellmann <gerd@gnu.org>
16541
c2d53558 16542 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16543
b23236fb
EZ
165442001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16545
16546 * frame.c (Fframe_parameter): Fix last change.
16547
5d991fc4
EZ
16548 * fileio.c: Revert last change (which removed old commented-out
16549 version of expand-file-name). Add a comment that explains why
16550 this old version should not be removed.
16551
879eadc3
GM
165522001-10-25 Gerd Moellmann <gerd@gnu.org>
16553
75700ff2
GM
16554 * frame.c (Fframe_parameter): Fix a bug whereby some
16555 ``artificial'' frame parameters, like `minibuffer' were not
16556 obtained by calling Fframe_parameters.
16557
dfe92a6a
GM
16558 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16559 cursor differently.
16560
879eadc3
GM
16561 * xdisp.c (move_it_vertically_backward): Compute line height
16562 differently. Add heuristic to try to be more compatible to 20.x.
16563
e1010ebe
SM
165642001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16565
d73a471b
SM
16566 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16567
d6da5a06
GM
16568 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16569 boolean.
e1010ebe 16570
f66bd220
MB
165712001-10-25 Miles Bader <miles@gnu.org>
16572
16573 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16574 BG is a pointer to a structure, not a structure.
16575 (gif_format, png_format): Add missing commas.
16576
d436d538
RS
165772001-10-24 Richard M. Stallman <rms@gnu.org>
16578
16579 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16580 (syms_of_xfaces): Defsubr it.
d436d538 16581
f00691a3 165822001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16583
16584 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16585 variable `area'.
16586
f00691a3 165872001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16588
c2d53558 16589 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16590
e2a57b34
MB
165912001-10-25 Miles Bader <miles@gnu.org>
16592
16593 * dispextern.h (struct image): Add `background',
16594 `background_valid', and `background_transparent' fields.
16595 (image_background, image_background_transparent): New declarations.
16596 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16597 * xfns.c (image_background, image_background_transparent)
16598 (four_corners_best): New functions.
c2d53558 16599 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16600 (gs_format): Add `:background' entry.
16601 (lookup_image): Set IMG's background color if specified.
16602 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16603 when appropriate.
16604 (x_clear_image_1): Reset `background_valid' and
16605 `background_transparent_valid' fields.
16606 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16607 calculating it here. Set IMG's background_transparent field.
16608 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16609 (enum png_keyword_index): Add PNG_BACKGROUND.
16610 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16611 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16612 (enum gif_keyword_index): Add GIF_BACKGROUND.
16613 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16614 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16615 Pre-calculate image background color where necessary.
16616 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16617 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16618 color to use for image glyph reliefs.
16619
b547b6e8
GM
166202001-10-24 Gerd Moellmann <gerd@gnu.org>
16621
d9e3b8c6
GM
16622 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16623 in full-width rows.
c2d53558 16624
b547b6e8
GM
16625 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16626 Fix clearing of area not covered by scroll bar.
16627
f00691a3 166282001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16629
16630 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16631 and `real_start'.
c2d53558 16632 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16633 (glyph_rect): Remove unused variable `area'.
16634
76cb5e06
GM
166352001-10-24 Gerd Moellmann <gerd@gnu.org>
16636
bdbdebff 16637 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16638
16639 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16640 (row_containing_pos): Take additional argument DY.
16641 Treat rows ending in middle of char differently.
62e33982
GM
16642 (display_line): Handle tabs on window systems differently.
16643
16644 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16645 with additional argument.
16646
16647 * dispextern.h (row_containing_pos): Adjust prototype.
16648
76cb5e06
GM
16649 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16650 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16651 (try_window_id, try_window_reusing_current_matrix)
16652 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16653 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16654
f00691a3 166552001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16656
c9e60620
PJ
16657 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16658 gnuemacs).
16659 (HAVE_BOXES): Fix typo in comment.
16660 (push_menu_pane): Fix typo in comment.
16661
3b552d56
PJ
16662 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16663 of `Qwhen'.
16664 (single_display_prop_string_p): Remove unused local declarations
16665 of `Qwhen' and `Qmargin'.
16666 (string_buffer_position): Remove unused variable `around'.
16667 (store_frame_title): Remove unused variable `width'.
16668
15c565ac
PJ
16669 * window.c: Don't define max.
16670 (coordinates_in_window): Remove unused variable `uy'.
16671
a8818eb9
PJ
16672 * widget.c: Don't define max.
16673
996fee11
PJ
16674 * process.c: Don't define max.
16675 (create_process): Remove unused variable `buffer'.
16676
496e1a5b
GM
166772001-10-23 Gerd Moellmann <gerd@gnu.org>
16678
c2d53558 16679 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16680
5905ae8b
EZ
166812001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16682
16683 * xfaces.c (Finternal_set_lisp_face_attribute)
16684 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16685 frame is on a windowed display.
16686
24db49fb
GM
166872001-10-23 Gerd Moellmann <gerd@gnu.org>
16688
c2d53558
SM
16689 * dispnew.c (sync_window_with_frame_matrix_rows):
16690 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16691 of marginal areas.
16692
c2d53558 16693 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16694
f0487f05
EZ
166952001-10-23 Andreas Schwab <schwab@suse.de>
16696
16697 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16698 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16699
f0a48a01
GM
167002001-10-23 Gerd Moellmann <gerd@gnu.org>
16701
c2d53558 16702 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16703 REAL_END. Notice if cursor gets overwritten.
16704 (notice_overwritten_cursor): Take X positions as parameters.
16705 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16706 around call to x_draw_glyphs.
16707
f00691a3 167082001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16709
fc11dff0
PJ
16710 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16711 instead of C) and usage.
a50a10a0 16712
fc11dff0
PJ
16713 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16714 of C) and usage.
a50a10a0
PJ
16715
16716 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16717 `left', `max_width' and `max_height'.
16718
8738febd
GM
167192001-10-23 Gerd Moellmann <gerd@gnu.org>
16720
16721 * xdisp.c (display_line): For a tab continued to the next line,
16722 set row's ends_in_middle_of_char_p.
16723
653c329b
GM
167242001-10-22 Gerd Moellmann <gerd@gnu.org>
16725
16726 * xdisp.c (display_line): Fix computation of continuation lines
16727 width for TABs.
16728
f00691a3 167292001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16730
7ba51063
PJ
16731 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16732 `Qlaplace'.
16733
f958c5ac
PJ
16734 * fileio.c: Remove unused code.
16735
eb360291
MB
167362001-10-22 Miles Bader <miles@gnu.org>
16737
16738 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16739 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16740 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16741
98515cf0
JR
167422001-10-21 Jason Rumney <jasonr@gnu.org>
16743
16744 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16745
93026d88
EZ
167462001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16747
16748 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16749 (Finsert_string): Avoid the multi-line string literals warning.
16750
c9a95b79
MB
167512001-10-22 Miles Bader <miles@gnu.org>
16752
16753 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16754 (Fdocumentation): Don't use it.
16755 (syms_of_doc): Don't initialize it.
16756
16757 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16758 * print.c (Fwith_output_to_temp_buffer): Likewise.
16759 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16760 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16761 (Fsave_restriction): Likewise.
c2d53558
SM
16762 * eval.c (Frun_hooks, Frun_hook_with_args)
16763 (Frun_hook_with_args_until_failure)
16764 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16765 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16766 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16767 (Funwind_protect, Fcondition_case): Likewise.
16768 * coding.c (Ffind_operation_coding_system): Likewise.
16769 * keyboard.c (Ftrack_mouse): Likewise.
16770
a3b10252
MB
167712001-10-21 Miles Bader <miles@gnu.org>
16772
c2d53558 16773 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16774 (Fmake_hash_table): Add usage: string to doc string.
16775 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16776 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16777 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16778 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16779 (Fml_prefix_argument_loop): Likewise.
16780
f00691a3 167812001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16782
c2d53558 16783 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16784
c6f73eec
PJ
16785 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16786 style' [w/`doc:' keyword].
16787
16788 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16789 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16790 comments to `new style' [w/`doc:' keyword].
16791
3cf3436e
JR
167922001-10-21 Jason Rumney <jasonr@gnu.org>
16793
16794 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16795
c169b8f1
JR
16796 * w32term.c (remember_mouse_glyph): New function.
16797 (w32_mouse_position): Use it.
16798 (note_mouse_movement): If the mouse moved off the glyph, remember
16799 its new position.
c2d53558 16800
4fdd691b
JR
16801 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16802 (w32_display_info): Add mouse_face_overlay.
16803
c169b8f1
JR
16804 * w32term.c (notice_overwritten_cursor): Renamed from
16805 note_overwritten_text_cursor. Rewritten to take glyph widths into
16806 account.
16807 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16808 (fast_find_string_pos): New function.
16809 (fast_find_position): Return the correct vpos. Add parameter
16810 STOP. In the final row, stop before glyphs having STOP as object.
16811 Don't consider glyphs that are not from a buffer.
16812 (fast_find_position) [0]: Add a presumably more correct version
16813 for after 21.1.
16814 (expose_window_tree, expose_frame): Don't compute intersections here.
16815 (expose_window): Do it here instead.
16816 (expose_window_tree, expose_window, expose_line): Return 1 when
16817 overwriting mouse-face.
16818 (expose_window): If W is the window currently being updated, mark
16819 the frame garbaged.
16820 (expose_frame): If mouse-face was overwritten, redo it.
16821 (x_use_underline_position_properties): New variable.
16822 (syms_of_xterm): DEFVAR_BOOL it.
16823 (x_draw_glyph_string): Add comment to use it in future.
16824 (x_draw_glyph_string): Restore clipping after drawing box.
16825 Fix a computation of the underline position.
16826 (w32_get_glyph_string_clip_rect): Minor cleanup.
16827 (x_fill_stretch_glyph_string): Remove an assertion.
16828 (x_produce_glyphs): Don't convert multibyte characters
16829 to unibyte characters in unibyte buffers.
16830 (cursor_in_mouse_face_p): New function.
16831 (x_draw_stretch_glyph_string): Use it to choose a different GC
16832 when drawing a cursor within highlighted text. Don't draw
16833 background again if it has already been drawn.
16834 (x_draw_glyph_string_box): Don't draw a full-width
16835 box just because the glyph row's full_width_p flag is set.
16836 (x_draw_glyphs): Fix computation of rightmost x for
16837 full-width rows.
16838 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16839 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16840 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16841 (x_update_window_end): Handle overwritten mouse face
16842 also for tool bar windows.
16843 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16844 DRAW is DRAW_IMAGE_RAISED.
16845 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16846 actually redrawn. Make the function static.
16847 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16848 optimize away highlighting if we pass over that same overlay again.
16849 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16850 to detect a case where we have to highlight a different region
16851 despite not having left the currently highlighted region.
16852 Set mouse_face_overlay in the x_display_info. Avoid changing the
16853 mouse pointer shape when show_mouse_face has already done it, or
16854 there is no need. Handle mouse-face and help-echo in strings.
16855 (glyph_rect): New function.
16856 (w32_mouse_position): Use it to raise the threshold for mouse
16857 movement event generation.
16858 (w32_initialize_display_info): Initialize the x_display_info's
16859 mouse_face_overlay.
16860 (w32_set_vertical_scroll_bar): Don't clear a zero height
16861 or width area.
16862 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16863 a widget to zero height.
16864
3cf3436e 16865 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16866 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16867 equivalents in menu_items.
16868 (w32_menu_show): Don't overwrite an item's name with its key
16869 description in case the description is a multibyte string.
16870 (single_submenu): Some cleanup.
16871
16872 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16873 (postprocess_image): New function.
16874 (lookup_image): Call it for all image types except PostScript.
16875 (x_kill_gs_process): Call postprocess_image.
16876 (tiff_error_handler, tiff_warning_handler): New functions.
16877 (tiff_load): Install them as handlers.
16878 (x_kill_gs_process): Recognize if someone has cleared the image
16879 cache under us.
16880 (valid_image_p): Protect better against invalid image
16881 specifications. Previous code could signal an error.
16882 (Fx_hide_tip, Fshow_tip): Doc fix.
16883 (Fv_max_tooltip_size): New variable.
16884 (syns_of_xfns): DEFVAR_LISP it.
16885 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16886 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16887 window_width. Use a maximum tooltip size specified by
16888 Vx_max_tooltip_size, if that has valid contents.
16889 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16890 Make sure the tooltip is completely visible.
16891 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16892 (Fx_create_frame): Adjust the frame's height for presence
16893 of the tool bar before calling x_figure_window_size.
16894 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16895 when the window gets smaller.
16896 (x_set_foreground_color): Set frame's cursor_pixel.
16897 (x_set_foreground_color, x_set_background_color): Cleaned up.
16898 (x_set_font): Handle case of x_new_fontset returning the same name
16899 as before, although there was a change in fontsets.
16900
386ca361
MB
169012001-10-21 Miles Bader <miles@gnu.org>
16902
c2d53558 16903 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
16904 (Flogxor): Add usage: string to doc string.
16905 * charset.c (Fstring): Likewise.
16906 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16907 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16908
f00691a3 169092001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 16910
03be2694
PJ
16911 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16912
16913 * alloc.c: Reindent DEFUNs with doc: keywords.
16914
16915 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16916
14ff1ee0
PJ
16917 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16918 keyword].
16919
2f147815 16920See ChangeLog.9 for earlier changes.
6922b018
KH
16921
16922;; Local Variables:
49b3bd82 16923;; coding: iso-2022-7bit
6922b018 16924;; End:
2a34a036 16925
2f147815 16926 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16927 Copying and distribution of this file, with or without modification,
16928 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16929
16930;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4