(basic-save-buffer-1): Set
[bpt/emacs.git] / src / ChangeLog
CommitLineData
456e761b
ST
12004-12-29 Sanghyuk Suh <han9kin@mac.com>
2
3 * macterm.c (SelectionRange): Add Xcode position apple event struct.
4 (do_ae_open_documents): Handle Xcode-style file position open
5 events.
6
188577ce
LT
72004-12-29 Luc Teirlinck <teirllm@auburn.edu>
8
9 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10
99ec74b9
RS
112004-12-29 Richard M. Stallman <rms@gnu.org>
12
13 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
14
30c92fab
ST
152004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16
17 * macfns.c (install_window_handler): Modify extern to return OSErr
18 value.
19 (mac_window): Handle return value of install_window_handler.
20
21 * macterm.c (reflect_byte): Remove function.
22 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
23 Lookup table instead.
24 (mac_do_font_lists): Simplify calculation of the longest
25 nonspecial string.
26 (init_mac_drag_n_drop): Remove function and declaration.
27 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28 init_mac_drag_n_drop.
29 (mac_do_track_drag): New function and declaration.
30 (install_window_handler): Return OSErr value.
31 (install_window_handler) [TARGET_API_MAC_CARBON]: Register
32 handlers for tracking/receiving drag-and-drop items.
33 (do_ae_open_documents): Generate unibyte strings for filenames.
34 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. Reject
35 only non-filename items. Set event modifiers. Set return value.
36
4b982924
DN
372004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
38
39 * coding.c (decode_coding): Fix previous change.
40
93fdf45f
RS
412004-12-28 Richard M. Stallman <rms@gnu.org>
42
43 * xdisp.c (back_to_previous_visible_line_start):
44 Don't call handle_display_prop.
45
5bdca8af
DN
462004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
47
48 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
49 (decode_coding_emacs_mule, encode_coding_emacs_mule)
50 (decode_coding_iso2022, encode_designation_at_bol)
51 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
52 (decode_coding): Constify arguments and local vars.
53
33385c6f
JD
542004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
55
56 * xmenu.c (popup_get_selection): Only pop down dialogs
57 on C-g and Escape.
95bdef2e 58 (popup_get_selection): Remove parameter down_on_keypress.
a2c7e69a 59 (create_and_show_popup_menu, create_and_show_dialog): Remove
95bdef2e 60 parameter down_on_keypress to popup_get_selection.
33385c6f 61
b15325b2
ST
622004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
63
64 * dispextern.h: Change HAVE_CARBON to MAC_OS.
65 (struct glyph_string): Likewise.
a2c7e69a 66
b15325b2
ST
67 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
68 mac_initialize.
a2c7e69a 69
b15325b2
ST
70 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
71 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 72
b15325b2 73 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 74
b15325b2
ST
75 * frame.c (x_set_frame_parameters, x_report_frame_params)
76 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
77 (x_set_border_width, Vdefault_frame_scroll_bars): Change
78 HAVE_CARBON to MAC_OS.
a2c7e69a 79
b15325b2
ST
80 * image.c [MAC_OS]: Include sys/stat.h.
81 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
82 QuickTimeComponents.h.
a2c7e69a 83
b15325b2
ST
84 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
85 [!MAC_OSX] (select): Use mac_wait_next_event.
86 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
87 Vexec_suffixes.
88 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
89 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
90 (mac_clear_font_name_table): Add extern.
91 (Fmac_clear_font_name_table): New defun.
92 (syms_of_mac): Defsubr it.
93 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
94 [MAC_OSX] (select_and_poll_event): New function.
95 [MAC_OSX] (sys_select): Use it.
96 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
97 [MAC_OSX && SELECT_USE_CFSOCKET]
98 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
99 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
100 RunLoop for simultaneously monitoring two kinds of inputs, window
101 events and process outputs, without periodically polling.
a2c7e69a 102
b15325b2
ST
103 * macfns.c (mac_initialized): Remove extern.
104 (stricmp): Put in #if 0. All callers changed to use xstricmp in
105 xfaces.c.
106 (strnicmp): Decrement `n' at the end of each loop, not the
107 beginning.
108 (check_mac): Use the term "Mac native windows" instead of "Mac
109 OS".
110 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
111 (mac_get_rdb_resource): New function (from w32reg.c).
112 (x_get_string_resource): Use it.
113 (install_window_handler): Add extern.
114 (mac_window): New function.
115 (Fx_create_frame): Use it instead of make_mac_frame. Set
116 parameter for Qfullscreen. Call x_wm_set_size_hint.
117 (Fx_open_connection, Fx_close_connection): New defuns.
118 (syms_of_macfns): Defsubr them.
119 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
120 kWindowNoUpdatesAttribute to the window attribute.
121 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
122 (x_create_tip_frame): Don't call ShowWindow.
123 (Fx_show_tip): Call ShowWindow.
124 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
125 TARGET_API_MAC_CARBON'.
126 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
127 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 128
b15325b2
ST
129 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
130 Windows.h.
131 (Window): Typedef to WindowPtr and move outside `#if
132 TARGET_API_MAC_CARBON'.
133 (XSizeHints): New struct.
a2c7e69a 134
b15325b2
ST
135 * macterm.c (x_update_begin, x_update_end)
136 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
137 frame.
138 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
139 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
140 (construct_mouse_click): Put in #if 0.
141 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
142 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
143 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
144 (activate_scroll_bars, deactivate_scroll_bars)
145 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
146 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
147 if the position is neither user-specified nor program-specified.
148 (x_free_frame_resources): Free size_hints.
149 (x_wm_set_size_hint): Allocate size_hints if needed. Set
150 size_hints.
151 (mac_clear_font_name_table): New function.
152 (mac_do_list_fonts): Initialize font_name_table if needed.
153 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
154 around mac_do_list_fonts.
155 (mac_unload_font): New function.
156 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
157 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
158 and definitions with #if TARGET_API_MAC_CARBON.
159 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
160 (install_window_handler): Add decl.
161 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
162 window. Use UpdateControls. Get the rectangle that should be
163 updated and restrict the target of expose_frame to it.
164 (do_grow_window): Set minimum height/width according to
165 size_hints.
166 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
167 (do_zoom_window): Don't use x_set_window_size.
168 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
169 (install_window_handler): New function.
170 [!USE_CARBON_EVENTS] (mouse_region): New variable.
171 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
172 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
173 GetEventDispatcherTarget inside BLOCK_INPUT.
174 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
175 Update mouse_region when mouse is moved.
176 (make_mac_frame): Remove.
177 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
178 mouse pointer shapes. Change values of f->left_pos and
179 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
180 call ShowWindow.
181 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
182 Vinvocation_name and Vsystem_name.
183 (mac_make_rdb): New function (from w32term.c).
184 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
185 already been opened. Don't pass argument to
186 mac_initialize_display_info. Don't set dpyinfo->height/width.
187 Add entries to x_display_list and x_display_name_list.
188 (x_delete_display): New function.
189 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
190 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
191
b15325b2
ST
192 * macterm.h (check_mac): Add extern.
193 (struct mac_output): New member size_hints.
194 (FRAME_SIZE_HINTS): New macro.
195 (mac_unload_font): Add extern.
a2c7e69a 196
b15325b2 197 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 198
b15325b2
ST
199 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
200
92d2947b
RS
2012004-12-27 Richard M. Stallman <rms@gnu.org>
202
ebbd14f1
RS
203 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
204 (syms_of_buffer): Don't defsubr it.
205
206 * process.c (list_processes_1): Set undo_list instead
207 of calling Fbuffer_disable_undo.
208
92d2947b
RS
209 * xdisp.c (single_display_spec_string_p): Renamed from
210 single_display_prop_string_p.
211 (single_display_spec_intangible_p): Renamed from
212 single_display_prop_intangible_p.
213 (handle_single_display_spec): Renamed from handle_single_display_prop.
214 Rewritten to be easier to understand.
215
a2c7e69a 216 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
217 and variables get just NAME.
218
219 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
220
221 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
222 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
223 (Qdefvar): Var deleted.
224 (syms_of_eval): Don't initialze it.
225
226 * lread.c (syms_of_lread) <load-history>: Doc fix.
227
9f6fcdc5
JD
2282004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
229
230 * xmenu.c (popup_get_selection): Pop down on C-g.
231 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
232 pops down menu on C-g.
233 (xdialog_show): If dialog popped down and no button in the dialog was
234 pushed, call Fsignal to quit.
235 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
236 Fsignal to quit.
237
238 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
239
240 * gtkutil.c (xg_initialize): Install bindings for C-g so that
241 dialogs and menus pop down.
242
857ae68b
JD
2432004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
244
133c0116
JD
245 * gtkutil.c (update_frame_tool_bar): Make the value of
246 tool-bar-button-margin control margins of images in tool bar.
247
857ae68b
JD
248 * alloc.c (check_depth): New variable.
249 (overrun_check_malloc, overrun_check_realloc): Only add
250 overhead and write check pattern if check_depth is 1 (to handle
251 recursive calls). Increase/decrease check_depth in entry/exit.
252 (overrun_check_free): Only check for overhead if check_depth is 1.
253 Increase/decrease check_depth in entry/exit.
254
bd55c35c
JD
2552004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
256
257 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
258 before touching input_available_clear_time, to avoid accessing it
259 from multiple threads.
260
66354420
JR
2612004-12-23 Jason Rumney <jasonr@gnu.org>
262
263 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
264 of JPEG library.
265
55f4edbc
RS
2662004-12-22 Richard M. Stallman <rms@gnu.org>
267
268 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
269
270 * lisp.h (Vundo_outer_limit): Fix decl.
271
272 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
273 Uses changed.
274 (syms_of_undo): Initialize appropriately.
275 (truncate_undo_list): If it's nil, there's no limit.
276
7a0ea9e3
KH
2772004-12-22 Kenichi Handa <handa@m17n.org>
278
279 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
280
fda2922a
RS
2812004-12-21 Richard M. Stallman <rms@gnu.org>
282
283 * eval.c (unwind_to_catch): Clear immediate_quit.
284
285 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
286 specially as `\ ' and `\-'.
287
288 * keyboard.c (kbd_buffer_store_event_hold):
289 In the code for while-no-input, handle immediate_quit.
290
291 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
292 Call that at the very start.
293 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
294 (syms_of_alloc): Don't define undo-limit,
295 undo-strong-limit and undo-outer-limit here.
296
297 * undo.c (truncate_undo_list): Return void.
298 Take just one argument, the buffer.
299 Make it current, and inhibit recursive GC.
300 Access and update the undo list directly; return void.
301 Refer to the undo...limit variables directly.
302 Test undo_outer_limit only after counting the whole current command.
303 When it's exceeded, call the function in undo-outer-limit-function.
304 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
305 (Vundo_outer_limit_function): New variable.
306 (syms_of_undo): Define undo-limit, undo-strong-limit
307 and undo-outer-limit here, and undo-outer-limit-function.
308 Doc fixes.
309
310 * lisp.h (truncate_undo_list): Update decl.
311
3122004-12-21 Piet van Oostrum <piet@cs.uu.nl>
313
314 * fileio.c (Fread_file_name): Delete duplicates in
315 file-name-history when history_delete_duplicates is true.
316
68c69027
ST
3172004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
318
319 * macterm.c (mac_do_list_fonts): Fix memory leak
320
134579f2
RS
3212004-12-20 Richard M. Stallman <rms@gnu.org>
322
323 * regex.c (re_match_2_internal) <symend, wordend>:
324 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
325
fbe6152f
ST
3262004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
327
328 * macterm.c (endif, x_font_name_to_mac_font_name): Use
329 maccentraleurroman instead of maccentraleuropean
330 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
331 quickly finding a specific font without needing regexps.
332
fecad3f6
JD
3332004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
334
333f1b6f
JD
335 * syssignal.h: Declare main_thread.
336 (SIGNAL_THREAD_CHECK): New macro.
337
338 * keyboard.c (input_available_signal): Move thread checking code
339 to macro SIGNAL_THREAD_CHECK and call that macro.
340 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
341
342 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
343
344 * emacs.c: Define main_thread.
345 (main): Initialize main_thread.
346 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
347 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
348
349 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
350
351 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
352
353 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
354
a2c7e69a 355 * process.c (send_process_trap, sigchld_handler): Call
333f1b6f
JD
356 SIGNAL_THREAD_CHECK.
357
358 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
359
360 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
361
fecad3f6
JD
362 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
363 returning when xg_ignore_gtk_scrollbar is true.
364
2a84c6da
KS
3652004-12-14 Kim F. Storm <storm@cua.dk>
366
367 * keyboard.c (read_char): Save and restore echo_string when
368 handling input method.
369
d9c1ce9d
RS
3702004-12-13 Richard M. Stallman <rms@gnu.org>
371
372 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
373
374 * keyboard.c (Vthrow_on_input): New variable.
375 (syms_of_keyboard): Defvar and initialize it.
376 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
377
378 * lisp.h (QUIT): Check for Vthrow_on_input.
379 (Vthrow_on_input): Declare it.
380
a6495ed5
KS
3812004-12-13 Kim F. Storm <storm@cua.dk>
382
383 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
384 vector.
385
24a0e22f
RS
3862004-12-12 Richard M. Stallman <rms@gnu.org>
387
388 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
389
390 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
391 (Ftry_completion): Really use outer `zero'; eliminate inner one.
392
d6d31e57
KH
3932004-12-12 Kenichi Handa <handa@m17n.org>
394
395 * term.c (encode_terminal_code): Fix previous change.
396
6f8ffb88
SM
3972004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
398
fb6f5cbf
SM
399 * keyboard.c (handle_async_input): Remove pthread mutex handling.
400 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
401
6f8ffb88
SM
402 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
403 in macro arguments.
404
405 * minibuf.c (Ftry_completion, Fall_completions): Don't use
406 XFASTINT blindly.
407
408 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
409
c83c9f9d
JD
4102004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
411
2f25767f
JD
412 * w32term.c (x_calc_absolute_position): Remove calculation of
413 difference between inner and outer window. Don't subtract difference
414 for left and top calculations.
415
c83c9f9d
JD
416 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
417 for left and top calculations. Remove call to x_real_positions.
24a0e22f 418 [Bug report by Drew Adams in November]
c83c9f9d
JD
419 (x_check_expected_move): Do not set change_gravity to 1 when calling
420 x_set_offset.
421
cc1caa4e
RS
4222004-12-08 Richard M. Stallman <rms@gnu.org>
423
424 * xdisp.c (get_next_display_element): Use `escape-glyph' for
425 control chars and escaped octal codes.
426 (Qescape_glyph): New variable.
427 (syms_of_xdisp): Initialize it.
428 (escape_glyph_face): New variable.
429 (redisplay_window): Initialize it.
430
e0e30823
RS
4312004-12-07 Paul Eggert <eggert@cs.ucla.edu>
432
433 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
434 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
435
f415cacd
JD
4362004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
437
cf435f39
JD
438 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
439 reset_malloc_hooks.
440
6f8ffb88
SM
441 * keyboard.c (handle_async_input, input_available_signal):
442 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 443
f415cacd
JD
444 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
445
19b1f29a
SM
4462004-12-07 Stefan <monnier@iro.umontreal.ca>
447
448 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
449
450 * config.in: Regenerate.
451
ded997c1
JD
4522004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
453
453a4f1b
JD
454 * xmenu.c (Fx_popup_menu): Correct documentation about position.
455 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
456 if not given by a mouse click to correspond with x-popup-menu
457 documentation.
458
9a38524c
JD
459 * config.in: Regenerate.
460
aa477689
JD
461 * gtkutil.c: Include signal.h and syssignal.h.
462 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
463
464 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
465 new variables main_thread and alloc_mutex,
466 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
467 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
468 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
469 (UN)BLOCK_INPUT.
470 (emacs_blocked_free, emacs_blocked_malloc)
471 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
472 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
473 (reset_malloc_hooks): New function.
474
475 * lisp.h: Declare reset_malloc_hooks.
476
477 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
478
479 * keyboard.c: Conditionally include pthread.h
6f8ffb88 480 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
481 thread, block signal, send signal to main thread and return.
482
ded997c1 483 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 484 Set current folder in file chooser if default_filename is a directory.
ded997c1 485
c72b0edd
SM
4862004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
487
488 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
489 Remove redundant correctness checks.
490 (regex_compile): Fix up error codes for \{..\} expressions.
491
c721eee5
RS
4922004-12-05 Richard M. Stallman <rms@gnu.org>
493
494 * regex.c (regex_compile): Fix end-of-pattern case for space.
495
d8f96db8
ST
4962004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
497
6108209e
KS
498 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
499 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 500 crashes with invalid characters.
6108209e
KS
501 * macmenu.c (add_menu_item): Use it.
502 * image.c (image_load_quartz2d): Likewise.
503 * macfns.c (x_set_name, x_set_title): Likewise.
504 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
505 creating them each time for labels.
d8f96db8 506
ab67e8b6
RS
5072004-12-02 Richard M. Stallman <rms@gnu.org>
508
509 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
510 don't use it here.
511
512 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
513 (interactive_p): Skip Scalled_interactively_p frames
514 like Sinteractive_p frames.
b8217ea6 515 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
516
517 * data.c (Fmake_variable_buffer_local): Doc fix.
518 (Fmake_local_variable): Doc fix.
519
520 * insdel.c (insert_from_string_before_markers)
521 (insert_from_string): Don't modify buffer on empty insertion.
522
523 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
524
f86bdc80
ST
5252004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
526
527 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
528 menu text as UTF8 fails.
529
1cae6d39
KS
5302004-12-01 Kim F. Storm <storm@cua.dk>
531
532 * alloc.c: Add commentary for last change.
533 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
534 sizeof(size_t) != 4.
535 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
536 Use them. Also clear header and trailer of freed memory.
537 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
538 (string_overrun_cookie): Rename from string_overrun_pattern.
539 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
540
77ea0764
AS
5412004-12-01 Andreas Schwab <schwab@suse.de>
542
543 * lisp.h: Declare string_to_multibyte.
544
2d5cd4e6
KH
5452004-12-01 Kenichi Handa <handa@m17n.org>
546
547 * w32console.c (w32con_write_glyphs): Decide coding here.
548 Adjusted for the change of encode_terminal_code.
549
550 * term.c (encode_terminal_code): Don't make it "static".
551
25a0994a
KH
5522004-11-30 Kenichi Handa <handa@m17n.org>
553
19b1f29a 554 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 555 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
556 characters at once, and return a pointer to the result of encoding.
557 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
558 (insert_glyphs): Likewise.
559 (term_init): Initialize encode_terminal_bufsize to 0.
560
561 * coding.c (Vcode_conversion_workbuf_name): New variable.
562 (syms_of_coding): Initialize and staticpro it.
563 (set_conversion_work_buffer): New function.
564 (run_pre_post_conversion_on_str): Use it.
565 (run_pre_write_conversin_on_c_str): New function.
566
567 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
568
fc7a70cc
ST
5692004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
570
571 * keyboard.c: Don't undef SIGIO
572 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
573 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
574 (macfns.o): Don't depend on ccl.h.
575 * macfns.c (mac_frame_parm_handlers): Set handlers for
576 Qleft_fringe and Qright_fringe.
577 * macterm.c (mac_fill_rectangle_to_pixmap)
578 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
579 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
580 Put in #if 0.
581 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
582 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
583 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
584 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
585 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
586 XDrawImageString. Always draw background and foreground separately.
587 (x_draw_image_foreground): Use clipping instead of computing the
588 intersection rectangle.
589 (x_draw_image_glyph_string): Don't draw an image with mask to a
590 pixmap.
591 (x_redisplay_interface): Set flush_display_optional member to 0.
592 (XTread_socket): Correctly reset the TEConverter
593 object.
594
fc368889
KS
5952004-11-30 Kim F. Storm <storm@cua.dk>
596
597 * lisp.h: New defines to enable buffer overrun checking.
598 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
599 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
600
601 * alloc.c: Add more checks for buffer overruns.
602 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
603 xmalloc_overrun_check_trailer, overrun_check_malloc)
604 overrun_check_realloc, overrun_check_free): Add.
605 (GC_STRING_EXTRA, string_overrun_pattern): Add.
606 (check_sblock, allocate_string_data, compact_small_strings):
607 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
608 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
609 (check_string_free_list): Add.
610 (allocate_string, sweep_strings): Call check_string_free_list.
611
612 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
613 XMALLOC_OVERRUN_CHECK to avoid crash during load.
614
0af8cfe1
KS
6152004-11-29 Kim F. Storm <storm@cua.dk>
616
617 * fns.c (concat): Use SAFE_ALLOCA.
618
77220eeb
SM
6192004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
620
621 * sysdep.c (emacs_write): Don't use QUIT.
622
a778cf63
KH
6232004-11-29 Kenichi Handa <handa@m17n.org>
624
625 * buffer.c (init_buffer): Set current_buffer->directory to a
626 multibyte string made by string_to_multibyte.
627
77220eeb 628 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 629
e3177e43
AS
6302004-11-27 Andreas Schwab <schwab@suse.de>
631
632 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
633
634 * s/gnu-linux.h: Enable no-op gcpros on ia64.
635 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
636
77220eeb
SM
637 * filelock.c (lock_file_1): Call get_boot_time early.
638 Increase buffer size.
e3177e43 639
ca5e6fef
EZ
6402004-11-27 Eli Zaretskii <eliz@gnu.org>
641
642 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
643 is not defined.
644
e2811828
KS
6452004-11-27 Kim F. Storm <storm@cua.dk>
646
647 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
648 marker out of doc string.
649
7a262394
SM
6502004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
651
652 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
653 which was not mentioned in the log.
654
f33cc5a9
KS
6552004-11-26 Kim F. Storm <storm@cua.dk>
656
048bb03f
KS
657 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
658 angle bitmaps at top/bottom line.
659
f33cc5a9
KS
660 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
661 set it when it->method is set to next_element_from_display_vector.
662 (setup_for_ellipsis): Add LEN argument. Callers changed.
663 Set it->saved_face_id.
664 (get_next_display_element): Use loop instead of recursion.
665 Set it->saved_face_id. Combine duplicate code for ctr chars.
666 (next_element_from_display_vector): Do not set it->saved_face_id.
667 (next_element_from_ellipsis): Use setup_for_ellipsis.
668
670e8906
EZ
6692004-11-26 Eli Zaretskii <eliz@gnu.org>
670
671 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
672 prevent compiler warnings.
673
275464e7
SM
6742004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
675
1bf0e604
SM
676 * keyboard.c (command_loop_1): Print a message describing the key
677 the user just pressed when this key has no binding.
678
275464e7
SM
679 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
680 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
681
682 * lread.c (readchar): Check QUIT when `getc' is interrupted.
683
261b01c6
RS
6842004-11-24 Richard M. Stallman <rms@gnu.org>
685
686 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
687
688 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
689
a5bd504e
KS
6902004-11-24 Kim F. Storm <storm@cua.dk>
691
692 * xdisp.c (move_it_in_display_line_to, display_line):
693 Restore saved_face_id also when truncate-lines or hscrolled.
694
255e4140
JD
6952004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
696
697 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
698 x-use-old-gtk-file-dialog.
699
700 * xfns.c: Define x_use_old_gtk_file_dialog.
701 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
702 outside ifdef USE_GTK.
703
cab27d04
SM
7042004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
705
706 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
707 Don't use XFASTINT blindly.
708
709 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
710
711 * indent.c (skip_invisible): Avoid non-idempotent side-effects
712 in macro arguments.
713
714 * keymap.c (Flookup_key): Check INTEGERP before XINT.
715
716 * lread.c (oblookup): Don't use XFASTINT blindly.
717
718 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
719 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
720
11e0be49
KS
7212004-11-23 Kim F. Storm <storm@cua.dk>
722
4d721114
KS
723 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
724 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
725
11e0be49
KS
726 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
727 signal_p is zero and face name is unknown.
728 (Fx_list_fonts): Don't signal error in lookup_named_face.
729 (Fface_font): Signal error in lookup_named_face.
730 (ascii_face_of_lisp_face): Likewise.
731
732 * dispextern.h (lookup_named_face): Fix prototype.
733
734 * xdisp.c (handle_single_display_prop): Don't signal error in
735 lookup_named_face for unknown fringe face name.
736 (highlight_trailing_whitespace): Don't signal error in
737 lookup_named_face if trailing-whitespace face unknown.
738 (calc_line_height_property): Don't signal error in
739 lookup_named_face if specified face name is unknown.
740
741 * fringe.c (update_window_fringes): Show top row indicator if
742 window has header-line. Don't show arrow at bob and eob
743 if the boundary indicators are not used.
744 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
745
746 * window.c (set_window_buffer): Clear display_error_modiff.
747
0960a582
KS
7482004-11-22 Kim F. Storm <storm@cua.dk>
749
750 * fringe.c (update_window_fringes): Provide sensible fall-back
751 value for non-nil indicate-buffer-boundaries setting.
752
b0e9bb28
MR
7532004-11-22 Markus Rost <rost@ias.edu>
754
755 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
756
d0bce91e
SM
7572004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
758
759 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
760
e1814672
KS
7612004-11-21 Kim F. Storm <storm@cua.dk>
762
b7fd3518
KS
763 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
764
765 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
766 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
767
768 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
769 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
770
771 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
772 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
773
d0bce91e
SM
774 * xdisp.c (move_it_in_display_line_to, display_line):
775 Restore saved_face_id if overflow-newline-into-fringe is enabled and
776 line is continued before or in middle of element from display vector.
f01d4d05 777
f1a61389
KS
778 * indent.c (Fvertical_motion): Fix last change. Use another
779 method to detect if iterator moved too far ahead after reseat.
780
e1814672
KS
781 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
782 expand matrix width for overflow in zero-width area.
783 (append_glyph, append_composite_glyph, produce_image_glyph)
784 (append_stretch_glyph): Use it to avoid loop in redisplay.
785 (note_mode_line_or_margin_highlight): Don't let help-echo from
786 string override help-echo from image map.
787
2dafe1c9
LT
7882004-11-20 Luc Teirlinck <teirllm@auburn.edu>
789
d0bce91e 790 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
791 * callint.c (Fcall_interactively): Ditto.
792
fd6866c8 7932004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
794
795 * minibuf.c (Fminibuffer_complete_and_exit):
796 Fixup the case of the completed value, for case-indep completion.
797
dedbac89
RS
7982004-11-20 Richard M. Stallman <rms@gnu.org>
799
fd6866c8
RS
800 * lisp.h (Fread_from_minibuffer): Add arg in decl.
801
9d00469f 802 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 803 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 804
dedbac89 805 * search.c (Vsearch_spaces_regexp):
d0bce91e 806 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 807
2f672bb5
TTN
8082004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
809
810 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
811
f31a9a68
RS
8122004-11-19 Richard M. Stallman <rms@gnu.org>
813
814 * search.c (Vsearch_whitespace_regexp): New variable.
815 (syms_of_search): Defvar it.
816 (compile_pattern_1): Call re_set_whitespace_regexp with it.
817 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
818 is non-nil.
6de891db
RS
819 (struct regexp_cache): New element whitespace_regexp.
820 (syms_of_search): Initialize whitespace_regexp elements.
821 (compile_pattern): Compare whitespace_regexp elements.
822 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
823
824 * regex.c (regex_compile): Substitute whitespace_regexp
825 for spaces, if it is nonzero.
826 (whitespace_regexp): New variable.
827 (re_set_whitespace_regexp): New function.
828
cbc34cb3
KS
8292004-11-19 Kim F. Storm <storm@cua.dk>
830
831 * indent.c (Fvertical_motion): Fix last change.
832
b54a7539
KS
8332004-11-18 Kim F. Storm <storm@cua.dk>
834
835 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
836 Instead, move back again if reseating moves too far ahead.
837
8382004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
839
840 * xdisp.c (message3): Call clear_message.
841
5ff504fe
KS
8422004-11-17 Kim F. Storm <storm@cua.dk>
843
844 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
845
5ae53dcf
JD
8462004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
847
d0bce91e 848 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 849
6abf3a27 850 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
851 (x_menu_set_in_use): Also set popup_activated_flag.
852
5ff504fe 853 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
854 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
855
6abf3a27 856 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 857
ee31cd78
RS
8582004-11-16 Richard M. Stallman <rms@gnu.org>
859
6abf3a27
SM
860 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
861 Use map-keymap-internal to implement that.
ee31cd78
RS
862
863 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
864
6abf3a27
SM
8652004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
868 a window before using XWINDOW.
869
870 * window.c (make_window, Fselect_window, make_dummy_parent)
871 (save_window_save):
872 * frame.c (make_frame):
873 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
874
875 * lisp.h (NILP): Use EQ rather than XFASTINT.
876
b4d61105
KS
8772004-11-16 Kim F. Storm <storm@cua.dk>
878
6abf3a27 879 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 880
b4d61105
KS
881 * indent.c (Fvertical_motion): Fix last change. Only reseat when
882 moving backwards.
883
8842004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
885
886 * dispextern.h: Extern reseat_at_previous_visible_line_start.
887
ab5b02b0
KH
8882004-11-16 Kenichi Handa <handa@m17n.org>
889
890 * xdisp.c (display_mode_element): Fix previous change (calculate
891 end position of substring to display correctly).
892
c482cf97
KS
8932004-11-16 Kim F. Storm <storm@cua.dk>
894
895 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
896 Reported by Andrew M. Scott.
897
9f89426b
KS
8982004-11-15 Kim F. Storm <storm@cua.dk>
899
900 * fns.c (Fsafe_plist_get): New defun.
901 (syms_of_fns): Defsubr it.
902
903 * lisp.h (Fsafe_plist_get): Add EXFUN.
904
905 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
906 Use Fsafe_plist_get.
907 (note_mode_line_or_margin_highlight, note_mouse_highlight):
908 Fix image map element parsing. Use Fsafe_plist_get.
909
27418463
RS
9102004-11-15 Richard M. Stallman <rms@gnu.org>
911
912 * xdisp.c (get_next_display_element): Fix previous change.
913
a130b901
JD
9142004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
915
ef614e04
JD
916 * window.c (shrink_windows): Handle special case of one window left
917 when trying to shrink the final reminder. Grow windows if
918 total_removed is less than total_shrink.
919
a130b901
JD
920 * xmenu.c (pop_down_menu): Remove global variable current_menu,
921 extract pointer from arg with XSAVE_VALUE.
46303896
KS
922 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
923 Construct arg to record_unwind_protect with make_save_value.
a130b901 924
d9a03ad2
RS
9252004-11-13 Richard M. Stallman <rms@gnu.org>
926
927 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
928 (get_next_display_element): Fix previous change to apply only to \n.
929
930 * indent.c (Fvertical_motion): Scan to PT from start of line to
931 make iterator consistent.
932
933 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
934
b3935289
JD
9352004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
936
937 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
938
939 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
940 Record unwind with clean_up_file_dialog.
941
78819ebb
KS
942 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
943 Declare.
b3935289
JD
944
945 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
946
af89e871
JD
9472004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
948
457a8155 949 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 950 (xg_file_sel_destroy): Remove.
46303896
KS
951 (xg_file_response_cb, pop_down_file_dialog)
952 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 953 New functions.
6abf3a27
SM
954 (xg_get_file_with_chooser, xg_get_file_with_selection):
955 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
956 Move common code to xg_get_file_name. Return widget created.
957 (xg_get_file_name): Set name, transient for, modal and destroy
958 with parent here. Connect response signal to xg_file_response_cb,
959 connect delete-event to gtk_true. Record pop_down_file_dialog
960 for unwind. Do event loop and call x_menu_wait_for_event in loop.
961 (xg_create_widget): Make dialogs modal.
962
af89e871
JD
963 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
964 Lisp_Object.
965 (popup_get_selection): Move unwind protect ...
966 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
967 Move destroy of widget to pop_down_menu.
968 (popup_widget_loop): Move unwind protect ...
969 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
970 Move destroy of widget to pop_down_menu.
971 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 972 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
973 x_mouse_leave and grabbed = 0 to pop_down_menu.
974
5596fbf1
KS
9752004-11-13 Kim F. Storm <storm@cua.dk>
976
977 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
978 (syms_of_xdisp): DEFVAR_BOOL it.
979 (make_cursor_line_fully_visible, try_cursor_movement)
980 (try_window_id): Use it.
981
b9de078a
KS
9822004-11-12 Kim F. Storm <storm@cua.dk>
983
381f7091
KS
984 * dispextern.h (struct glyph_row): New member extra_line_spacing.
985 (struct it): New member max_extra_line_spacing.
986 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
987 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
988 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
989 part of last line is only extra line spacing (so the text on the
990 line is fully visible). Use helper macros.
991 Add W arg (to use them). All callers changed.
992 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
993 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
994
6abf3a27
SM
995 * window.c (window_scroll_pixel_based, Frecenter):
996 Use move_it_vertically_backward directly.
381f7091
KS
997 (Frecenter): Fix calculation of new start pos for negative arg.
998 Before, the new start pos was sometimes chosen too far back, so
999 the last line became only partially visible, and thus would be
1000 either only semi-visible or automatically scrolled to the middle
1001 of the window by redisplay.
1002
1003 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1004 (move_it_vertically_backward): Don't recure to move further back.
1005 (move_it_vertically): Remove superfluous condition.
1006 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1007 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1008 (display_tool_bar_line): Clear row->extra_line_spacing.
1009 (try_scrolling): Use move_it_vertically_backward directly.
1010 (redisplay_window): Likewise.
1011 (compute_line_metrics): Set row->extra_line_spacing.
1012 (display_line, display_string): Likewise.
1013 (x_produce_glyphs): Update it->max_extra_line_spacing.
1014
b9de078a
KS
1015 * xmenu.c (pop_down_menu): Return nil.
1016
c3438661
JD
10172004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1018
1019 * xmenu.c (x_menu_wait_for_event): New function.
1020 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1021 to handle timers.
df00f436
JD
1022 (popup_widget_loop): Add argument do_timers.
1023 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1024 do_timers to popup_widget_loop.
c3438661
JD
1025 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1026 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1027 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1028 popup_get_selection.
f1d1cd24
JD
1029 (pop_down_menu): New function.
1030 (popup_get_selection, popup_widget_loop): Unwind protect to
1031 pop_down_menu.
1032 (popup_widget_loop): Add argument widget.
1033 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1034 argument widget to popup_widget_loop.
c3438661 1035
32e2fb04
SM
10362004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1037
1038 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1039
0faf6806
KS
10402004-11-09 Kim F. Storm <storm@cua.dk>
1041
1042 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1043 Fix various comments referring to XEvents instead of input events.
1044 (x_queue_event): Fix format strings.
1045 (x_stop_queuing_selection_requests): Likewise.
1046
1047 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1048 (pint2hrstr): Add extra braces to silence compiler.
1049
1050 * print.c (print_object): Fix format string.
1051
1052 * lread.c (read1): Fix next_char matching.
1053
1054 * lisp.h (Fdelete): Add EXFUN.
1055 (replace_range_2): Add prototype.
1056
1057 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1058
1059 * intervals.h (NULL_INTERVAL_P): Add separate version when
1060 ENABLE_CHECKING is not defined to silence compiler.
1061 (compare_string_intervals): Add prototype.
1062
1063 * fringe.c (destroy_fringe_bitmap): Fix return type.
1064 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1065
1066 * emacs.c (Fdump_emacs): Fix format string.
1067
1068 * doc.c: Include <ctype.h>.
1069 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1070
1071 * data.c (store_symval_forwarding): Remove unused variables.
1072
1073 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1074
16bf4e32
JD
10752004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1076
1077 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1078 to ${OLDXMENU}.
1079
cdb805a9
KS
10802004-11-09 Kim F. Storm <storm@cua.dk>
1081
1082 * process.c (Fmake_network_process): Remove kludge for interrupted
1083 connects on BSD. If connect is interrupted, just close socket and
1084 start over rather than sleeping and retry with same socket.
1085
d87a9ab8 10862004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1087
a8b16c80
JD
1088 * .cvsignore: Add buildobj.lst.
1089
d87a9ab8
JD
1090 * doc.c: New variable Vbuild_files.
1091 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1092 file names from buildobh.lst. Only attach docstrings from files
1093 that are in Vbuild_files.
1094 (syms_of_doc): Defvar Vbuild_files.
1095
1096 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1097 and w32*.o.
1098 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1099 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1100
1101 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1102 is linked.
1103
b6709e77
KS
11042004-11-09 Kim F. Storm <storm@cua.dk>
1105
1106 * fringe.c (update_window_fringes): Update fringe bitmaps if
1107 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1108 also update previous row to get rid of misc. artifacts.
1109
bae9677d
KS
11102004-11-08 Kim F. Storm <storm@cua.dk>
1111
1112 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1113 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1114
3f8ea68c
EZ
11152004-11-08 Eli Zaretskii <eliz@gnu.org>
1116
1117 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1118 Don't include <sys/time.h> explicitly.
1119 Include <stdio.h> unconditionally, not just on MacOS.
1120
a653f812
KH
11212004-11-08 Kenichi Handa <handa@m17n.org>
1122
1123 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1124 don't pay attention to '\' before '*'.
1125 (fontset_pattern_regexp): Change the meaning of the second arg.
1126 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1127 (check_fontset_name): Try NAME as literal at first, and if it
1128 failes, try NAME as pattern.
1129
c37caf9d
JD
11302004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1131
1132 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1133
b72915a7
AS
11342004-11-07 Andreas Schwab <schwab@suse.de>
1135
78819ebb
KS
1136 * lisp.h (Fmsdos_downcase_filename): Declare.
1137 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1138 * fileio.c: Likewise.
1139
238a44a8
JD
11402004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1141
1142 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1143 comparisons with integers instead of Lisp_Object address.
1144 (Fmsdos_set_keyboard): Declare argument allkeys.
1145
1146 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1147
78819ebb 1148 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1149 int/Lisp_Object mixup.
1150
1151 * fileio.c: Ditto.
1152
31141c13
ST
11532004-11-06 Steven Tamm <steventamm@mac.com>
1154
1155 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1156
f28c1bd9
RS
11572004-11-06 Richard M. Stallman <rms@gnu.org>
1158
1159 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1160
1161 * xfaces.c (merge_named_face): GCPRO the face_name in the
1162 named_merge_point struct that we make.
1163 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1164
1165 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1166 before deciding whether to inactivate mark.
1167
59dede22
EZ
11682004-11-06 Lars Brinkhoff <lars@nocrew.org>
1169
1170 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1171 * editfns.c (Fget_internal_run_time): New function.
1172 (syms_of_data): Defsubr it.
1173 * fns.c (sxhash): As far as possible, merge calculation of
1174 hash code for symbols and strings.
59dede22 1175
27540e81
EZ
11762004-11-06 Eli Zaretskii <eliz@gnu.org>
1177
1178 * frame.c (syms_of_frame): Fix the example in the doc string.
1179
df470e3b
JD
11802004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1181
1182 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1183
1184 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1185 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1186
4cc8522c
LT
11872004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1188
1189 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1190
d4a42098
KS
11912004-11-05 Kim F. Storm <storm@cua.dk>
1192
a8490886
KS
1193 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1194
d4a42098
KS
1195 * fileio.c (Ffile_modes): Doc fix.
1196 (auto_save_1): Check for Ffile_modes nil value.
1197
36a2b04c
KS
11982004-11-05 Kim F. Storm <storm@cua.dk>
1199
1200 * xselect.c (struct selection_event_queue, selection_queue)
1201 (x_queue_selection_requests, x_queue_event)
1202 (x_start_queuing_selection_requests)
1203 (x_stop_queuing_selection_requests): Add new queue for selection
1204 input events to replace previous XEvent queue in xterm.c.
1205 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1206 (x_reply_selection_request): Adapt to new queue.
1207 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1208 (x_handle_selection_request, x_handle_selection_clear): Make static.
1209 (x_handle_selection_event): New function. May queue selection events.
1210 (wait_for_property_change_unwind): Use save_value instead of cons.
1211 Clear property_change_reply_object.
1212 (wait_for_property_change): Abort if already waiting.
1213 Use save_value instead of cons for unwind data.
1214 (x_handle_property_notify): Skip events already arrived, but don't
1215 free them, as "arrived" field is checked by wait_for_property_change,
1216 and it will be freed by unwind or explicit unexpect_property_change.
1217 (x_get_foreign_selection): Add to new queue.
1218 (receive_incremental_selection): Don't unexpect wait_object when done
1219 as it has already been freed by previous wait_for_property_change.
1220
1221 * xterm.h (x_start_queuing_selection_requests)
1222 (x_stop_queuing_selection_requests, x_handle_selection_request)
1223 (x_handle_selection_clear): Remove prototypes.
1224 (x_handle_selection_event): Add prototype.
1225
1226 * xterm.c (handle_one_xevent): Don't queue X selection events
1227 here, it may be too late if we start queuing after we have already
1228 stored some selection events into the kbd buffer.
1229 (struct selection_event_queue, queue, x_queue_selection_requests)
1230 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1231 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1232 (x_catch_errors_unwind): Block input around final XSync.
1233
1234 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1235
1236 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1237 (kbd_buffer_unget_event): New function.
1238 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1239 and use x_handle_selection_event.
1240 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1241
9c3ad9e1
JD
12422004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1243
1244 * xselect.c (TRACE3): New debug macro.
1245 (x_reply_selection_request): Use it.
1246 (receive_incremental_selection): In call to TRACE0, the name of
1247 a symbol is in xname.
1248
a33b89de
KS
12492004-11-05 Kim F. Storm <storm@cua.dk>
1250
1251 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1252
a872928c
JD
12532004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1254
88208bb8
JD
1255 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1256
78819ebb 1257 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1258
1259 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1260 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1261 * xfns.c (syms_of_xfns): ... to here.
1262
a872928c
JD
1263 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1264 it doesn't start with /.
1265
b912921c
KH
12662004-11-04 Kenichi Handa <handa@m17n.org>
1267
1268 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1269 treat it as a literal character.
1270
c524d9a6
KS
12712004-11-03 Kim F. Storm <storm@cua.dk>
1272
1273 * .gdbinit (ppt): New function.
1274
8cfd0f36
JD
12752004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1276
a11e1dce
JD
1277 * xterm.c (x_window_to_scroll_bar): Only call
1278 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1279
8cfd0f36
JD
1280 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1281 of save.
1282
a93563fd
AS
12832004-11-02 Andreas Schwab <schwab@suse.de>
1284
1285 * window.c (Fscroll_right): Fix last change.
1286
2b2d59d8
KS
12872004-11-02 Kim F. Storm <storm@cua.dk>
1288
1289 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1290
12912004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1292
1293 * callproc.c (Fcall_process): Block input around vfork.
1294
ca28104d
KS
12952004-11-02 Kim F. Storm <storm@cua.dk>
1296
1297 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1298 (syms_of_eval): Defsubr it.
1299
29bb7127
RS
13002004-11-02 Richard M. Stallman <rms@gnu.org>
1301
1302 * insdel.c (replace_range_2): New function.
1303
1304 * casefiddle.c (casify_region): Handle changes in byte-length
1305 using replace_range_2.
1306
1307 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1308
b6189c3b 1309 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
1310 Subtract 1 from pos when checking previous newline for invisibility.
1311
1312 * window.c (window_scroll_pixel_based): Update preserve_y
1313 for header line if any.
1314 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1315 use a new second argument instead.
1316
1317 * eval.c (Fcall_interactive_p): New function.
1318 (interactive_p): Don't test INTERACTIVE here.
1319 (Finteractive_p): Doc fix.
1320
1321 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1322
b6189c3b 13232004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
1324
1325 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 1326 comparing font names.
a3fe4aaf 1327
2a00cdb4
JD
13282004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1329
f9d64bb3
JD
1330 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1331 Fx_file_dialog if only directories should be read.
1332
1333 * lisp.h: Fx_file_dialog takes 5 parameters.
1334
32e2fb04
SM
1335 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1336 Add parameter only_dir_p.
f9d64bb3
JD
1337 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1338 dialog, just text field part. Do not add DEFAULT_FILENAME
1339 to list of files if it isn't there.
1340 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1341
32e2fb04
SM
1342 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1343 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
1344 a save dialog, add option kNavDontConfirmReplacement, change title
1345 to "Enter name", change text for save button to "Ok".
1346
32e2fb04
SM
1347 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1348 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
1349
1350 * gtkutil.c (xg_get_file_with_chooser)
1351 (xg_get_file_with_selection): New functions, only defined ifdef
1352 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1353 respectively.
1354 (xg_get_file_name): Add parameter only_dir_p.
1355 Call xg_get_file_with_chooser or xg_get_file_with_selection
1356 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1357 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1358
1359 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1360
2a00cdb4
JD
1361 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1362
f6749d5d
KS
13632004-11-01 Kim F. Storm <storm@cua.dk>
1364
32e2fb04
SM
1365 * process.c (connect_wait_mask, num_pending_connects):
1366 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 1367 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
1368 (IF_NON_BLOCKING_CONNECT): New helper macro.
1369 (wait_reading_process_output): Only declare and use local vars
1370 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 1371
1a99fe1a
JR
13722004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1373
1374 * w32term.c (x_scroll_run): Delete region objects after use.
1375
fcdb28b4
JD
13762004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1377
495ef86b
JD
1378 * xmenu.c: Add prototypes for forward function declarations.
1379 (popup_get_selection): Remove parameter do_timers, remove call to
1380 timer_check.
32e2fb04
SM
1381 (create_and_show_popup_menu, create_and_show_dialog):
1382 Remove parameter do_timers from call to popup_get_selection.
495ef86b 1383
12e6566a
JD
1384 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1385 tool_bar_items and assign the result to f->tool_bar_items if
1386 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1387 tool_bar_items to assignment of result.
1388
fcdb28b4
JD
1389 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1390 pending_atmers is non-zero.
1391
1a1a0c4c
KS
13922004-10-31 Kim F. Storm <storm@cua.dk>
1393
1394 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1395
a36f1680
JW
13962004-10-28 Will <will@glozer.net>
1397
1398 * macterm.c: allow user to assign key modifiers to the Mac Option
1399 key via a 'mac-option-modifier' variable.
1400
32e2fb04 14012004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
1402
1403 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1404 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1405 (x_handle_selection_request, x_handle_selection_clear)
1406 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1407
4f71c13f
RS
14082004-10-28 Richard M. Stallman <rms@gnu.org>
1409
1410 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1411
1412 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1413
068f3848
SM
14142004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1415
1416 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1417 comment-starter over a 1-char one.
1418
4660a9e3
RS
14192004-10-27 Richard M. Stallman <rms@gnu.org>
1420
1421 * xdisp.c (get_next_display_element): In mode lines,
1422 treat newline and tab like other control characters.
1423
1424 * editfns.c (Fmessage): Doc fix.
1425
1426 * indent.c (vmotion): When moving up, check the newline before.
1427 Make prevline an int, not a Lisp_Object.
1428
233f3db6
KS
14292004-10-27 Kim F. Storm <storm@cua.dk>
1430
1431 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1432 Only allocate info and discarded tables once.
1433
1434 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1435 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1436 (SAFE_FREE): Test it to determine if we need to unwind to free.
1437 Remove size arg. All users changed.
1438 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1439
1442465d
JD
14402004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1441
1442 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
1443 (xg_destroy_widgets): Rename from remove_from_container.
1444 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
1445 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1446 instead of remove_from_container.
1447 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1448 (free_frame_tool_bar): Add comment.
1449
1450 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1451 is not NULL before strcmp.
1452
c8636435
KS
14532004-10-26 Kim F. Storm <storm@cua.dk>
1454
1455 * callint.c (Fcall_interactively): Add 'U' code to get the
1456 up-event discarded by a previous 'k' or 'K' argument.
1457
5629f29b
DK
14582004-10-26 David Kastrup <dak@gnu.org>
1459
1460 * buffer.c (syms_of_buffer): Fix a few typos.
1461
4f2f546e
JD
14622004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1463
1464 * xsmfns.c: Put empty line between comment and function body.
1465 Use two spaces before comment end.
1466
fc1062f5
KH
14672004-10-25 Kenichi Handa <handa@m17n.org>
1468
1469 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1470 PATTERN is full XLFD.
1471
be13f5e5
KH
14722004-10-24 Kenichi Handa <handa@m17n.org>
1473
1474 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1475
1476 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1477 (regex_compile): Return REG_ERANGEX if appropriate.
1478
d0ee2ed3
KH
14792004-10-22 Kenichi Handa <handa@m17n.org>
1480
1481 * editfns.c (Ftranslate_region_internal): New function.
1482 (syms_of_editfns): Defsubr it.
1483
63ea8ea5
JD
14842004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1485
1486 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1487
c27ed90a
JD
14882004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1489
068f3848
SM
1490 * xterm.h (x_output): New member `xic_base_fontname'.
1491 (FRAME_XIC_BASE_FONTNAME): New macro.
1492 (xic_free_xfontset): Declare.
c27ed90a 1493
068f3848
SM
1494 * xfns.c (xic_create_xfontset): Share fontsets between frames
1495 based on base_fontname.
1496 (xic_free_xfontset): New function.
1497 (free_frame_xic): Use it.
1498 (xic_set_xfontset): Ditto.
c27ed90a 1499
068f3848 1500 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1501
1502
59508699
JR
15032004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1504
1505 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1506
dede2792
JD
15072004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1508
3aca2078
JD
1509 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1510 XSync.
1511
dede2792
JD
1512 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1513 New variables and constant.
1514 (main): Calculate heap_bss_diff. If we are dumping and the
1515 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1516 and exec ourself again.
1517 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1518 print a warning.
1519
1520 * lastfile.c: Make my_endbss and my_endbss_static available on all
1521 platforms.
1522
1523 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1524 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1525
1dc5ba01
LT
15262004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1527
1528 * data.c (Flocal_variable_if_set_p): Doc fix.
1529
950090be
JR
15302004-10-19 Jason Rumney <jasonr@gnu.org>
1531
1532 * w32.c (init_environment): Set emacs_dir correctly when running
1533 emacs from the build directory.
1534
8550b998
RS
15352004-10-19 Richard M. Stallman <rms@gnu.org>
1536
1537 * editfns.c (Fdelete_and_extract_region):
1538 If region is empty, return null string.
1539
08dedea6
JD
15402004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1541
1dc5ba01 1542 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1543 and canon_width.
068f3848 1544 (xg_frame_cleared): Remove.
08dedea6 1545
068f3848
SM
1546 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1547 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1548 (xg_create_scroll_bar): Put an event box widget between
1549 the scroll bar widget and the edit widget.
1550 (xg_show_scroll_bar): Show the parent widget (the event box).
1551 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1552 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1553 Move the parent (the event box) widget inside the fixed widget.
1554 Move window clear to xterm.c.
1555
068f3848 1556 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1557
08dedea6 1558 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1559 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1560 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1561 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1562
8550b998 15632004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1564
1565 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1566
84338890
JD
15672004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1568
1569 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1570 gdk_window_clear and move gdk_window_process_all_updates after
1571 clear so events are sent to the X server in correct order.
1572
6e1b0d8c
KH
15732004-10-18 Kenichi Handa <handa@m17n.org>
1574
1575 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1576 comparing font names.
8550b998 1577 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1578 (list_fontsets): Likewise.
1579
1580 * search.c (fast_string_match_ignore_case): New function.
1581
1582 * lisp.h (fast_string_match_ignore_case): Extern it.
1583
345e75a8
KS
15842004-10-17 Kim F. Storm <storm@cua.dk>
1585
1586 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1587 than bitmap if there is not left fringe.
1588 (get_overlay_arrow_glyph_row): Also used on windows system.
1589 (display_line): Display overlay string if no left fringe.
1590
be13cbb7
JR
15912004-10-16 Jason Rumney <jasonr@gnu.org>
1592
1593 * w32fns.c (w32_font_match): Encode font name being matched.
1594
c2e2ede7
RS
15952004-10-16 Richard M. Stallman <rms@gnu.org>
1596
1597 * window.c (Fspecial_display_p): Doc fix.
1598
3584d95d
SM
15992004-10-15 Stefan <monnier@iro.umontreal.ca>
1600
1601 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1602 Don't ignore menus, because where-is-internal already does it for us.
1603
699a0392
KS
16042004-10-15 Kim F. Storm <storm@cua.dk>
1605
b3c7a89b
KS
1606 * xdisp.c (redisplay_window): Only update fringes and vertical
1607 border on window frames.
699a0392 1608
4e382b0f
AS
16092004-10-14 Andreas Schwab <schwab@suse.de>
1610
1611 * m/ia64.h (DATA_SEG_BITS): Don't define.
1612
329a7be2
KS
16132004-10-14 Kim F. Storm <storm@cua.dk>
1614
1615 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1616 in some X versions.
329a7be2 1617
982241b1
SM
16182004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1619
1620 * fns.c (map_char_table): Add missing gcpros.
1621
9238467d
SM
16222004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * keymap.c (get_keymap): An autoload form is not a keymap.
1625
1626 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1627
4440e3ca
KS
16282004-10-13 Kim F. Storm <storm@cua.dk>
1629
7cfdabde
KS
1630 * callproc.c (Fcall_process): Simplify handling of display arg.
1631 Resume `display_on_the_fly' once a coding system is determined.
1632
4440e3ca
KS
1633 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1634
1c8dec6a
KS
16352004-10-12 Kim F. Storm <storm@cua.dk>
1636
1637 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1638 caller, such as call-process, is not going to poll for input.
1639 (calc_line_height_property): Handle case where it->object is nil.
1640
1641 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1642
170b174c
KH
16432004-10-12 Kenichi Handa <handa@m17n.org>
1644
9238467d
SM
1645 * xdisp.c (get_next_display_element):
1646 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1647 chars in octal in unibyte buffer.
1648
b583964c
KS
16492004-10-12 Kim F. Storm <storm@cua.dk>
1650
1651 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1652 are no ordinary bindings.
1653
29fabd8c
JD
16542004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1655
9238467d 1656 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1657
c3f4c690
ST
16582004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1659
9238467d
SM
1660 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1661 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1662 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1663 terminal frame.
1664 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1665 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1666 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1667 Make a cancel file-open dialog be like C-g.
9238467d
SM
1668 * mac.c (mktime): Use emacs_mktime.
1669 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1670 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1671
9688f9eb
KS
16722004-10-10 Kim F. Storm <storm@cua.dk>
1673
1674 * keyboard.c (timer_resume_idle): New function to resume idle
1675 timer without resetting timers on the idle list.
1676 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1677 (timer_start_idle, timer_stop_idle): Declare static.
1678 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1679
1680 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1681
f7f3a65f
ST
16822004-10-08 Steven Tamm <steventamm@mac.com>
1683
9238467d 1684 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1685 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1686 NULL where 0 should be used.
f7f3a65f
ST
1687 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1688 objc/malloc.h
9238467d 1689 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1690
3c7d999a
KS
16912004-10-07 Kim F. Storm <storm@cua.dk>
1692
1693 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1694 windows. Update vertical line after drawing window fringes, but
1695 only if actually drawing any bitmaps--or there is no fringe.
1696
1697 * xterm.c (x_update_window_end): Likewise.
1698 * macterm.c (x_update_window_end): Likewise.
1699 * w32term.c (x_update_window_end): Likewise.
1700
1701 * fringe.c (draw_window_fringes): Return value now indicates if
1702 any fringe bitmaps were redrawn (or there are no fringes).
1703
1704 * dispextern.h (draw_window_fringes): Update prototype.
1705
bf06c82f
ST
17062004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1707
1708 * macfns.c (mac_get_window_bounds): Add extern.
1709 (x_real_positions): Use mac_get_window_bounds.
1710
1711 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1712 xmenu.c (YAILOM).
3c7d999a 1713
bf06c82f
ST
1714 * macterm.c [!MAC_OSX]: Include Windows.h.
1715 (front_emacs_window): Rename from mac_front_window. All uses
1716 changed. Return the frontmost non-tooltip emacs window.
1717 (mac_get_window_bounds): New function.
1718 (x_calc_absolute_position): Use the difference of width and height
1719 between the inner and outer window.
1720 (x_set_offset): Specify window position by the coordinae of the
1721 outer window. Adjust the position if the title bar is completely
1722 outside the screen.
1723 (app_is_suspended, app_sleep_time): Remove unused variables.
1724 (do_app_resume, do_app_suspend): Remove their contents because
1725 window-activate/deactivate events will do the job.
1726 (do_zoom_window): Remove unused variables. Make compliant to the
1727 standard way of zooming. Set f->left_pos and f->top_pos.
1728 (XTread_socket): Don't use argument `expected'. Don't use
1729 FrontWindow to determine the clicked window. Exclude unprocessed
1730 mouseUp cases in the early stage. Add parentheses to fix operator
1731 precedence.
1732 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1733
4cbbf6b7 17342004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1735
1736 * config.in: Regenerate.
1737
1738 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1739 HAVE_EXECSHIELD.
1740
b90ee8b5
JD
17412004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1742
1743 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1744 a row if Alt or Meta has been found for that row. Also stop scanning
1745 for Keysyms for that row.
1746
904db1a2
KS
17472004-10-04 Kim F. Storm <storm@cua.dk>
1748
0207b8ad
KS
1749 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1750 to list. Include overlay arrow bitmap in return value.
1751
25f7220c
KS
1752 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1753 bars with fractional column width. If scroll bar separates two
1754 windows, move it towards the window it belongs to. Only update
1755 the padding area below the scroll bar widget when necessary,
1756 i.e. when scroll bar widget is created, moved, or resized.
1757
562020fe
KS
1758 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1759 while tracking/dragging mouse.
1760 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1761
37e34af7
KS
1762 * window.c (coordinates_in_window): Relax check for cursor
1763 on vertial border between mode lines.
1764 (Fset_window_fringes): Do not allow negative widths.
1765 (Fset_window_scroll_bars): Likewise.
1766
904db1a2
KS
1767 * .gdbinit (pp): Shorthand for p ARG + pr.
1768 (ff): New command: flush frame updates (X only).
1769
38fe4f64
MA
17702004-10-03 Michael Albinus <michael.albinus@gmx.de>
1771
1772 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1773
9de36315
KH
17742004-09-30 Kenichi Handa <handa@m17n.org>
1775
07c381ad 1776 * process.c (send_process): Free composition data.
9de36315 1777
07c381ad 1778 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1779
1780 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1781 compositions to encode.
1782 (encode_coding_string): Likewise. Free composition data.
1783
b6189c3b 17842004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1785
1786 * coding.c (code_convert_region): Free composition data.
9de36315 1787
f2a54fbc
KS
17882004-09-29 Kim F. Storm <storm@cua.dk>
1789
dc5d6435
KS
1790 * fringe.c: Remove limit on number of bitmaps.
1791 (fringe_bitmaps, fringe_faces): Change to pointers.
1792 (max_fringe_bitmaps): New var.
1793 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1794 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1795
1796 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1797 (struct glyph_row): Reorder fringe_bitmap related fields.
1798 (struct it): Likewise.
1799
1800 * w32term.c (fringe_bmp): Change to pointer.
1801 (max_fringe_bmp): New var.
1802 (w32_define_fringe_bitmap): Expand fringe_bmp.
1803 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1804 (w32_destroy_fringe_bitmap): Likewise.
1805
18062004-09-29 Kim F. Storm <storm@cua.dk>
1807
1808 * fringe.c: Simplify last change.
f2a54fbc
KS
1809 (lookup_fringe_bitmap): New function.
1810 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1811 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1812 Keep standard bitmaps in Vfringe_bitmaps.
1813 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1814 (Fset_fringe_bitmap_face): Likewise.
1815
1816 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1817 (valid_fringe_bitmap_p): Remove prototype.
1818
1819 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1820
841a8bca
KS
18212004-09-29 Kim F. Storm <storm@cua.dk>
1822
1f2da365
KS
1823 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1824 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1825
841a8bca
KS
1826 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1827
1828 * fringe.c (Vfringe_bitmaps): New variable.
1829 (syms_of_fringe): DEFVAR_LISP it.
1830 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1831 Change arg to Lisp_Object and fail if not an integer.
1832 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1833 (destroy_fringe_bitmap): New functions.
9238467d
SM
1834 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1835 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1836 clear its fringe property.
1837 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1838 Fdestroy_fringe_bitmap.
1839 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1840 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1841 and set fringe property. Signal error if no free slots.
1842 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1843 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1844
1845 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1846 symbols with a fringe property.
1847
4d965590
KS
18482004-09-27 Kim F. Storm <storm@cua.dk>
1849
1850 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1851 Doc fix. Format may now be a symbol or alist, not a cons.
1852
1853 * fringe.c (update_window_fringes): Handle new formats of
1854 indicate-buffer-boundaries (symbol or alist). No longer
1855 allow a simple cons.
1856 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1857
e888c2b3
JD
18582004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1859
9238467d 1860 * config.in: Rebuild.
e888c2b3 1861
83f1cb94
JD
18622004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1863
1864 * config.in: Rebuild.
1865
dd3b1d60 1866 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1867
2c51754c
SM
18682004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1869
1870 * xterm.c (x_term_init): Work around a bug in some X servers.
1871
3df5f8aa
RS
18722004-09-18 Richard M. Stallman <rms@gnu.org>
1873
557ca2c1
RS
1874 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1875
3df5f8aa
RS
1876 * xdisp.c (try_window_reusing_current_matrix):
1877 Handle the case where we reach the old displayed text,
1878 out of sync with the old line boundary.
1879
9238467d 18802004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1881
1882 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1883 narrowed buffer.
1884
bfa02563
KS
18852004-09-14 Kim F. Storm <storm@cua.dk>
1886
a25fe164
KS
1887 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1888
bfa02563
KS
1889 * xfaces.c (Qface_no_inherit): New var.
1890 (syms_of_xfaces): Intern and staticpro it.
1891 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1892 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1893 Don't increment face_change_count when face has non-nil
1894 face-no-inherit property.
1895
126f9c02
SM
18962004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1897
892a8eb5
SM
1898 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1899 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1900
126f9c02 1901 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1902 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1903
c0ad3b38
KS
19042004-09-12 Kim F. Storm <storm@cua.dk>
1905
1906 * editfns.c (Fformat): Handle format strings with multiple text
1907 properties. Reverse text property list from the format string,
1908 so the positions are in increasing order.
1909
844fc085
JD
19102004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1911
1912 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1913 x_uncatch_errors so that possible protocol errors are delivered.
1914
b106731c
EZ
19152004-09-10 Eli Zaretskii <eliz@gnu.org>
1916
21065c92
EZ
1917 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1918 blockinput.h.
1919 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1920 charset.h, and coding.h
9238467d 1921 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1922 (term.o): Depend on window.h and keymap.h.
1923 (abbrev.o): Depend on syntax.h.
1924 (callint.o): Depend on keymap.h.
1925 (casefiddle.o): Depend on charset.h and keymap.h.
1926 (category.o): Depend on keymap.h.
1927 (coding.o): Depend on dispextern.h.
1928 (cmds.o): Depend on keyboard.h and keymap.h.
1929 (dispnew.o): Depend on indent.h and intervals.h.
1930 (doc.o): Depend on keymap.h.
1931 (editfns.o): Depend on frame.h.
1932 (emacs.o): Depend on dispextern.h.
1933 (fileio.o): Don't depend on ccl.h.
1934 (filelock.o): Depend on charset.h and coding.h.
1935 (frame.o): Depend on w32term.h and macterm.h.
1936 (insdel.o): Depend on region-cache.h.
1937 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1938 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1939 (search.o): Depend on $(INTERVALS_SRC).
1940 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1941 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1942 xterm.h, w32term.h, and macterm.h.
1943 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1944 w32term.h, and macterm.h.
1945 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1946 region-cache.h, xterm.h, w32term.h, and macterm.h.
1947 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1948 (data.o): Depend on frame.h.
1949 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1950 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1951 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1952 (intervals.o): Depend on keymap.h.
1953
9238467d
SM
1954 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1955 Add debugging print-out to termscript.
b106731c 1956
64b7122d
RS
19572004-09-09 Richard M. Stallman <rms@gnu.org>
1958
1959 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1960
5670531e
RS
19612004-09-08 Richard M. Stallman <rms@gnu.org>
1962
6cb4a892
RS
1963 * window.c (Fset_window_buffer): Doc fix.
1964
5670531e
RS
1965 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1966
7e388eb7
JL
19672004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1968
1969 * minibuf.c (history_delete_duplicates): New variable.
1970 (read_minibuf): Use it.
1971 (syms_of_minibuf): Create the corresponding lisp variable.
1972
370e3587
KS
19732004-09-08 Kim F. Storm <storm@cua.dk>
1974
1975 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1976 overlay just before point.
1977
f844ba4e
LT
19782004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1979
1980 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1981 * buffer.c (reset_buffer, init_buffer_once):
1982 Handle auto_save_file_format field.
f844ba4e
LT
1983 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1984 `buffer-auto-save-file-format'.
f844ba4e
LT
1985 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1986 (build_annotations): Adapt to replacement of
1987 `auto-save-file-format' with the new buffer-local variable
1988 `buffer-auto-save-file-format'.
1989 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1990
f0f90717
JR
19912004-09-07 Jason Rumney <jasonr@gnu.org>
1992
1993 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1994
9238467d
SM
1995 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1996 Handle Unicode menu titles.
f0f90717 1997
4e14f66c
KS
19982004-09-07 Kim F. Storm <storm@cua.dk>
1999
2000 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2001 property from text property or overlay strings at point.
2002
9238467d 20032004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2004
2005 * xmenu.c (update_submenu_strings): YAILOM.
2006 (set_frame_menubar): Make sure last_i is initialized.
2007
1f06d367
JR
20082004-09-03 Jason Rumney <jasonr@gnu.org>
2009
1806714a 2010 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2011 (digest_single_submenu): Set lname and lkey in widget_value
2012 instead of name and key.
2013 (update_submenu_strings): New function.
2014 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2015 call update_submenu_strings.
2016
2017 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2018 (digest_single_submenu, w32_menu_show): Encode menu strings as
2019 UTF-8 if Unicode API is available.
2020 (utf8to16): New function.
2021 (add_menu_item): Use it when calling Unicode API.
1806714a 2022
46540080
KS
20232004-09-03 Kim F. Storm <storm@cua.dk>
2024
2025 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2026 in overlay or text-property strings; set cursor on corresponding
2027 glyph rather than at end of the string.
2028
9277ba61 20292004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2030
9277ba61 2031 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2032 set a new one before obtaining the global coordinate.
2033 Use FRAME_MAC_WINDOW.
2034 (x_set_name, x_set_title): Encode title to UTF8.
2035 Use SetWindowTitleWithCFString.
9277ba61
ST
2036 (Fx_server_version): Get correct OS version.
2037
1806714a
SM
2038 * macmenu.c (add_menu_item): Remove unused variable `i'.
2039 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2040
2041 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2042 BLOCK_INPUT.
2043 (x_set_offset): Use FRAME_MAC_WINDOW.
2044
2045 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2046 nontext_cursor if it is on a scroll bar.
2047
2048 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2049 Carbon support.
1806714a
SM
2050 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2051 Use LIBS_CARBON.
9277ba61 2052
b10daec7
JD
20532004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2054
2055 * xfns.c (x_set_name_internal): New function. Check if we shall call
2056 xfree before ENCODE_UTF_8.
2057 (x_set_name, x_set_title): Call x_set_name_internal.
2058
f7e22385
JR
20592004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2060
2061 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2062 reload it.
2063
2bf436c3
JD
20642004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2065
1806714a 2066 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2067 (single_submenu): Set lname and lkey in widget_value
2068 instead of name and key.
2069 (update_submenu_strings): New function.
2070 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2071 call update_submenu_strings.
2072
2bf436c3
JD
2073 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2074 instead of name and key.
2075 (update_submenu_strings): New function.
2076 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2077 call update_submenu_strings.
2bf436c3
JD
2078
2079 * gtkutil.h (_widget_value): Added lname and lkey.
2080
11715f92
ST
20812004-08-30 Steven Tamm <steventamm@mac.com>
2082
2083 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2084 by using different names for inner loop variables.
2085
5500be54
JD
20862004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2087
059cd329
JD
2088 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2089 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2090
5500be54
JD
2091 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2092 tool bar items is 0.
2093
383418e5
ST
20942004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2095
2096 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2097 strings in menu items.
2098 (single_submenu): Use ENCODE_MENU_STRING
2099 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2100 button release isn't passed to event loop
2101 (add_menu_item): Use SetMenuItemWithCFString
2102
6eb3ee72
ST
21032004-08-26 Steven Tamm <steventamm@mac.com>
2104
2105 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2106 tool-bar/menu click
2107 * macfns.c (Fx_file_dialog): Implemented using NavServices
2108
10b43ac3
JD
21092004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2110
2728b5d0
JD
2111 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2112
10b43ac3
JD
2113 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2114 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2115 (x_top_window_to_frame): Return 0 if wdesc is None.
2116
2ee3b79e
RS
21172004-08-22 Richard M. Stallman <rms@gnu.org>
2118
2119 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2120 HAVE_TERMIOS]: If there's no char for this signal, drop through
2121 and use system calls.
2122
2123 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2124
9a1ba2ea
KS
21252004-08-20 Kim F. Storm <storm@cua.dk>
2126
2127 * process.c (wait_reading_process_output): Rename from
2128 wait_reading_process_input. All uses changed.
2129 (wait_reading_process_output_1): Rename from
2130 wait_reading_process_input_1. All uses changed.
2131
2132 * dispnew.c (Fsleep_for): Remove obsolete code.
2133
295f3b30
KH
21342004-08-20 Kenichi Handa <handa@m17n.org>
2135
2136 * syntax.c (skip_chars): Fix for unibyte case.
2137
27615979
SM
21382004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2139
2140 * syntax.c (char_quoted): Mixup byte/char pos.
2141 (back_comment): Fixup globals in all cases.
2142
00267f94
JD
21432004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2144
2145 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2146 passing it to gtk_window_set_title.
2147
2439909e
KS
21482004-08-19 Kim F. Storm <storm@cua.dk>
2149
6ba0f14c
KS
2150 * process.c (wait_reading_process_input): Clean up.
2151 Add wait_for_cell, wait_proc, and just_wait_proc args
2152 to avoid overloading `read_kbd' and `do_display' args.
2153 Change read_kbd arg to int. All callers changed.
2154
2439909e
KS
2155 * process.c (process_send_signal): Use CDISABLE.
2156
2157 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2158
101c421e
KS
21592004-08-18 Kim F. Storm <storm@cua.dk>
2160
2161 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2162 forward to wait_reading_process_input via DO_DISPLAY arg.
2163 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2164 object, only process output from that process; also inhibit
2165 running timers if DO_DISPLAY==-2.
2166
c438dc33
KS
21672004-08-17 Kim F. Storm <storm@cua.dk>
2168
2169 * process.c (process_send_signal): Fix last change--use
2170 _POSIX_VDISABLE instead of CVDISABLE when available.
2171
8afc13c6
RS
21722004-08-16 Richard M. Stallman <rms@gnu.org>
2173
2174 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2175 Set VQUIT and VINTR chars to the standard ones if they are unset.
2176 [AIX]: Don't do that here. And don't force VINTR to standard
2177 when SIGNALS_VIA_CHARACTERS.
2178
c438dc33 2179 * process.c (process_send_signal)
8afc13c6
RS
2180 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2181 Do nothing if the character is CVDISABLE.
2182
2183 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2184
c438dc33 2185 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2186 Force POSITION to be between BEGV and ZV.
2187
6dad1714
JPW
21882004-08-14 John Paul Wallington <jpw@gnu.org>
2189
2190 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2191
2192 * fileio.c (Fread_file_name): Doc fix.
2193
2194 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2195
2bd77330
LT
21962004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2197
2198 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2199
c90e7e43
LT
22002004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2201
2202 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2203 Qdisabled_command_hook.
c90e7e43 2204 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2205 Qdisabled_command_hook.
c90e7e43
LT
2206 (syms_of_keyboard): Ditto.
2207
81909a1a
LT
22082004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2209
2210 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2211 (syms_of_keymap) <key-translation-map>: Doc fixes.
2212
0cedd530
SM
22132004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2214
1725a7c9
SM
2215 * window.c (window_list_1): YAILOM.
2216
0cedd530
SM
2217 * fileio.c (make_temp_name): Handle multibyte prefixes.
2218
2515a131
LT
22192004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2220
2221 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2222 Doc fix.
2223
c8b20fb7
KH
22242004-08-03 Kenichi Handa <handa@m17n.org>
2225
2226 * coding.c (decode_coding_string): Adjust coding->consumed, and
2227 etc. with shrinked_bytes.
2228
fb8b092b
KS
22292004-08-03 Kim F. Storm <storm@cua.dk>
2230
2231 * indent.c (compute_motion): Fix check for full width window
2232 in non-window case. Do not count left truncation glyph on
2233 window systems.
2234
df133612
LT
22352004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2236
2237 * data.c (Finteractive_form): Doc fix.
2238
0f7a93c1
KS
22392004-08-02 Kim F. Storm <storm@cua.dk>
2240
2241 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2242 properly accounting for continuation glyph on non-window systems.
2243 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2244 actual window width/height if TOPOS is nil, properly accounting for
2245 continuation glyphs on non-window systems, and optional header lines.
2246 (vmotion): Let compute_motion calculate actual window width.
2247
2248 * window.c (window_scroll_line_based): Let compute_motion
2249 calculate actual window width.
2250
f491e1ed
KS
22512004-08-02 Kim F. Storm <storm@cua.dk>
2252
2253 * process.c (read_process_output): Use whole read buffer.
2254 Don't trigger adaptive read buffering on errors.
2255
83f64226
LT
22562004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2257
2258 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2259
2260 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2261
2262 * callint.c (Fcall_interactively): Doc fix.
2263
8afc13c6
RS
22642004-07-30 Richard M. Stallman <rms@gnu.org>
2265
2266 * abbrev.c (Fexpand_abbrev): Undo previous change.
2267
7c111482
KS
22682004-07-30 Kim F. Storm <storm@cua.dk>
2269
2270 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2271
ee945d08
LT
22722004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2273
2274 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2275
3f911c94
KS
22762004-07-27 Kim F. Storm <storm@cua.dk>
2277
2278 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2279 we have ensured that the glyph fits on the current line (or returned
2280 MOVE_LINE_CONTINUED otherwise).
2281
f29ff8c7
KS
22822004-07-26 Kim F. Storm <storm@cua.dk>
2283
2284 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2285 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2286 if target position is at end of display line but char is not a newline.
2287
81159bb9
RS
22882004-07-25 Richard M. Stallman <rms@gnu.org>
2289
ab431b61
RS
2290 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2291 instead of ON_VERTICAL_BORDER, when on scroll bar.
2292 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2293
2294 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2295
f29ff8c7 2296 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
2297 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2298
2299 * alloc.c (check_cons_list): New function (contents commented out).
2300
fc820cc5
LT
23012004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2302
2303 * xfaces.c (Fcolor_supported_p): Doc fix.
2304
2305 * frame.c (Fselect_frame, Fset_frame_selected_window)
2306 (Fframe_visible_p, Fraise_frame): Doc fixes.
2307
289978b5
LT
23082004-07-24 Richard M. Stallman <rms@gnu.org>
2309
78819ebb 2310 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
2311
2312 * fileio.c (Fwrite_region): Doc fix.
2313
2314 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2315
2316 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2317 only when a real abbrev is present.
2318
289978b5
LT
2319 * xfns.c (x_icon_verify): New function.
2320 (Fx_create_frame): Use it.
2321
63cc10ae
KS
23222004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2323
2324 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2325
36f826d4
KS
23262004-07-21 Kim F. Storm <storm@cua.dk>
2327
2328 * window.h (struct glyph_matrix): New members nrows_scale_factor
2329 and ncols_scale_factor.
2330
2331 * window.c (make_window): Initialize nrows_scale_factor and
2332 ncols_scale_factor members.
2333
2334 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2335 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2336 (required_matrix_height): Apply nrows_scale_factor.
2337 (required_matrix_width): Apply ncols_scale_factor.
2338
2339 * xdisp.c (display_line): Increment nrows_scale_factor and set
2340 fonts_changed_p if past last allocated row.
2341 (append_glyph, append_composite_glyph, produce_image_glyph)
2342 (append_stretch_glyph): Increment ncols_scale_factor and set
2343 fonts_changed_p if current area is full.
2344
5fc1c546
JD
23452004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2346
2347 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2348
cb7516e5
LT
23492004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2350
2351 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2352 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2353 (Fset_window_start, Fscroll_up, Fscroll_down)
2354 (Fother_window_for_scrolling, Fscroll_other_window)
2355 (Fsave_window_excursion, Fset_window_vscroll)
2356 (syms_of_window) <window-size-fixed>: Doc fixes.
2357
b6189c3b 23582004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
2359
2360 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2361 ENCODE_SYSTEM for filenames.
2362
bfcf6608
ST
23632004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2364
2365 * mac.c (sys_select): Block input around call to
2366 ReceiveNextEvent to prevent breakage. Correctly handle
2367 blocking on event queue only by calling ReceiveNextEvent
2368 instead of select (since GUI events aren't on an fd).
2369 (sys_read): Remove function
2370 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2371
e082ac9d
ST
23722004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2373
2374 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 2375 polling instead of 1 sec timeouts (like solaris).
e082ac9d 2376
cb7516e5 2377 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
2378 frame creation.
2379
2380 * keyboard.c: Undef SIGIO on Carbon
2381
2382 * atimer.c (alarm_signal_handler): Call alarm handlers after
2383 scheduling.
2384
2385 * eval.c (Feval): Remove quit_char test
2386
2387 * process.c (wait_reading_process_input): Remove clearing
2388 stdin for select call on process input.
2389
4b9da0fb
LT
23902004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2391
1204e81c
LT
2392 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2393 capitalization error in docstring.
4b9da0fb 2394
26503ad2
JB
23952004-07-17 Juanma Barranquero <lektu@terra.es>
2396
2397 * keyboard.c (not_single_kboard_state): Do nothing unless
2398 MULTI_KBOARD is defined.
2399
3751eb00
RS
24002004-07-17 Richard M. Stallman <rms@gnu.org>
2401
2402 * window.c (coordinates_in_window): Inside the window but outside
2403 its box to the L or R, return ON_VERTICAL_BORDER.
2404 (window_list_1): Rotate the list to start with WINDOW.
2405
2406 * print.c (print_preprocess): Test for print_depth at limit
2407 before entering in being_printed.
2408
2409 * keyboard.c (not_single_kboard_state): New function.
2410 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2411
2412 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2413 this kboard, and we delete its last frame, go to any_kboard_state.
2414
2415 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2416
b6189c3b 24172004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
2418
2419 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2420 system before passing them to OS functions for display.
2421
0f6af254
DK
24222004-07-15 David Kastrup <dak@gnu.org>
2423
f9253326
KS
2424 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2425 Apparently fixes an abort condition.
0f6af254 2426
386c8f42
LT
24272004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2428
2429 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2430 instead of a cons.
2431
366511da
MB
24322004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2433
2434 * keyboard.c (echo_dash): Do nothing if there already is a dash
2435 at the end of the echo string.
2436
f85409d3
KS
24372004-07-12 Kim F. Storm <storm@cua.dk>
2438
2439 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2440 if GC_MARK_STACK.
2441
0ba2e87b
LT
24422004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2443
da38045d
LT
2444 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2445
0ba2e87b
LT
2446 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2447 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2448 (Freplace_buffer_in_windows, Fset_window_buffer)
2449 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2450 (syms_of_window): Expand docstring of `display-buffer-function'.
2451
5668fbb8
LT
24522004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2453
2454 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2455 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2456 that time values of the type (HIGH . LOW) are considered obsolete.
2457
a085bf9d
LT
24582004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2459
669de2fb
LT
2460 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2461 docstring.
2462
bac66325 2463 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 2464
8e975df9
JPW
24652004-07-06 John Paul Wallington <jpw@gnu.org>
2466
2467 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2468
fa164e6a
JPW
2469 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2470
2bac9bb1
JD
24712004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2472
2473 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2474 instead of CGMainDisplayID (only in OSX 10.2 and later).
2475
316ef0dc
JPW
24762004-07-04 John Paul Wallington <jpw@gnu.org>
2477
2478 * fileio.c (read_file_name_completion_ignore_case): New variable.
2479 (syms_of_fileio): Declare and initialise it.
2480 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2481
2a1a35c6
EZ
24822004-07-03 Eli Zaretskii <eliz@gnu.org>
2483
2484 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2485 for event.x and event.y.
2486
33a72331
KH
24872004-07-01 Kenichi Handa <handa@m17n.org>
2488
2489 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2490 after getting a new string by pre-write-conversion.
2491
9238467d 24922004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2493
2494 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2495 (x_calc_absolute_position): Remove unused var `child'.
2496
2497 * xfaces.c (x_supports_face_attributes_p)
2498 (Fdisplay_supports_face_attributes_p): YAILOM.
2499 (tty_supports_face_attributes_p): Remove unused var `i'.
2500
2501 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2502 back_unibyte_ok.
2503
2504 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2505
2506 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2507
2508 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2509
f96ec754
AS
25102004-06-30 Andreas Schwab <schwab@suse.de>
2511
2512 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2513 (Finit_image_library): Pass LIBRARIES through to
2514 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2515 (lookup_image_type): Pass Qnil as second argument to
2516 Finit_image_library.
2517
78819ebb 2518 * lisp.h (Finit_image_library): Declare.
f96ec754 2519
59feca74 25202004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2521
31983645
AS
2522 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2523 (XTread_socket): Send mouse button events to the toolbox
2524 dispatcher even when the mouse is grabbed. Don't process window
2525 activate events for non-Emacs windows. Replace function calls to
2526 do_window_activate and do_window_deactivate with their contents.
2527 Reset mouse grabbing status when a window is deactivated.
59feca74 2528
c61278bb
ST
25292004-06-29 Steven Tamm <steventamm@mac.com>
2530
2531 * macterm.c (mac_get_emulated_btn)
2532 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2533 support to correctly mask out modifiers.
2534
c3762cbd
DK
25352004-06-29 David Kastrup <dak@gnu.org>
2536
2537 * search.c (Fset_match_data): Allow buffer before end of list
2538 which can happen if set-match-data is using a pre-consed list.
2539
c61278bb 25402004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2541
2542 * macterm.c (XTread_socket): Correctly set the frame position
2543 after the window is moved.
2544
74cdfe05
JD
25452004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2546
2547 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2548 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2549 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2550 so insensitive and activated icons look ok.
74cdfe05 2551
ef544dc8
JR
25522004-06-27 Jason Rumney <jasonr@gnu.org>
2553
2554 * w32fns.c (file_dialog_callback): Disable edit control if set
2555 to directories only on CDN_INITDONE message.
2556 (Fx_file_dialog): Default to directories only when prompt starts
2557 with "Dired".
2558
7b7990cc
KS
25592004-06-25 Kim F. Storm <storm@cua.dk>
2560
2561 * alloc.c (allocate_misc): Update total_free_markers.
2562 (free_misc): New function.
2563 (safe_alloca_unwind, free_marker): Use it.
2564
2565 * lisp.h (free_misc): Add prototype.
2566
2567 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2568
d8c379f8
RS
25692004-06-24 Richard M. Stallman <rms@gnu.org>
2570
2571 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2572 (syms_of_emacs): Lisp variables deleted.
2573
559cdd07
DK
25742004-06-23 David Kastrup <dak@gnu.org>
2575
94939b84
DK
2576 * search.c (Freplace_match): Adjust the match-data more thoroughly
2577 when replacing strings in the buffer.
2578 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2579 a buffer, add the buffer as last element to the match data.
2580 (Fset_match_data): If an additional element of the match-data is a
2581 buffer, restore it to last_thing_searched.
c8d09ad8 2582 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2583 (restore_match_data): Restore it again.
2584
dce417e7
LT
25852004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2586
2587 * keymap.c (Ftext_char_description): Doc fix.
2588 * doc.c (Fsnarf_documentation): Doc fix.
2589
ef54b2d0
KS
25902004-06-22 Kim F. Storm <storm@cua.dk>
2591
b5bc4d05
KS
2592 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2593
ef54b2d0
KS
2594 * lisp.h (struct Lisp_Save_Value): New member dogc.
2595 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2596 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2597 (SAFE_FREE_LISP): New macro.
2598
2599 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2600 (make_save_value): Init new dogc member.
2601 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2602
2603 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2604 SAFE_FREE_LISP macros.
2605
3d33d993
KS
26062004-06-22 Kim F. Storm <storm@cua.dk>
2607
2608 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2609 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2610 in that memory area are unknown to GC. Add comments.
2611
2612 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2613
5c917f98
KS
26142004-06-21 Kim F. Storm <storm@cua.dk>
2615
2616 * lisp.h (MAX_ALLOCA): Define here.
2617 (safe_alloca_unwind): Add prototype.
2618 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2619
2620 * alloc.c (safe_alloca_unwind): New function.
2621
2622 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2623
2624 * charset.c (Fstring): Use SAFE_ALLOCA.
2625
2626 * coding.c (MAX_ALLOCA): Remove define.
2627
2628 * data.c (MAX_ALLOCA): Remove define.
2629 (Faset): Use SAFE_ALLOCA.
2630
2631 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2632
2633 * fns.c (string_make_multibyte, string_to_multibyte)
2634 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2635 (MAX_ALLOCA): Remove define.
2636 (Fbase64_encode_region, Fbase64_encode_string)
2637 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2638 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2639 memory leak if encoding fails.
2640
2641 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2642
9a09408e
EZ
26432004-06-21 Eli Zaretskii <eliz@gnu.org>
2644
2645 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2646
376de739
RS
26472004-06-20 Richard M. Stallman <rms@gnu.org>
2648
2649 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2650
2651 * search.c (match_limit): Cleaner err msg when no match data available.
2652
2653 * window.c (syms_of_window): Doc fix.
2654
2655 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2656 for Vtransient_mark_mode.
2657
2658 * buffer.c (syms_of_buffer): Doc fix.
2659
acd81db9
DK
26602004-06-21 David Kastrup <dak@gnu.org>
2661
2662 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2663 and unbinding of `case-fold-search' according to
2664 `completion-ignore-case' around calls of string-match and
2665 predicates, respectively. Should give satisfactory performance
2666 in all relevant cases.
2667
f303762d
JD
26682004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2669
95911c74
JD
2670 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2671 clip_x/y_origin.
2672
a6cb6b78
JD
2673 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2674
f303762d
JD
2675 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2676
2677 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2678 on Mac OSX.
2679
bbdb2684
LT
26802004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2681
2682 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2683
5ea48b1c
KS
26842004-06-16 Kim F. Storm <storm@cua.dk>
2685
2686 * dispextern.h (Vimage_types): Remove extern.
2687
803aac3e
MB
26882004-06-16 Miles Bader <miles@gnu.org>
2689
2690 * image.c (lookup_image_type): Initialize image type if necessary.
2691
cdc97764
KS
26922004-06-15 Kim F. Storm <storm@cua.dk>
2693
c4a5739c
KS
2694 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2695 margin at top of window.
2696 (try_window_reusing_current_matrix): Calculate proper cursor position
2697 after scrolling up with non-zero scroll margin, as the old cursor
2698 position corresponds to value of PT before executing this command.
2699 (try_window_id): Consider scroll margin at bottom of window too;
2700 otherwise we fail to scroll when hl-line-mode is enabled.
2701
cdc97764
KS
2702 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2703 proper format and class is a lower-case word.
2704
5b166323
JD
27052004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2706
2707 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2708 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2709 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2710 xg_get_gdk_pixmap_and_mask.
cdc97764 2711
5b166323
JD
2712 * xterm.h (struct x_display_info): Typo in comment fixed.
2713
1ebd4f78
JB
27142004-06-14 Juanma Barranquero <lektu@terra.es>
2715
2716 * dispextern.h (Vimage_types): Make it conditional on
2717 HAVE_WINDOW_SYSTEM.
2718
2719 * image.c (Vimage_types): Move from xdisp.c.
2720 (Vimage_type_cache): New variable.
2721 (define_image_type): New argument indicating whether an image
2722 library was loaded; cache loaded status and return t on success,
2723 nil otherwise.
2724 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2725 (w32_delayed_load): New function to load an image library from a
2726 list of possible filenames.
2727 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2728 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2729 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2730 (Finit_image_library): New function, extracted from `init_image'.
2731 Try to initialize an image library on demand and cache whether we
2732 were successful or not.
2733 (syms_of_image): Initialize `Vimage_types' and
2734 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2735 Export `init-image-library'.
2736 (init_image): Remove initialization of all image types, except xbm
2737 and pbm.
2738
2739 * xdisp.c (Vimage_types): Delete (moved to image.c).
2740
904ee128
AS
27412004-06-14 Andreas Schwab <schwab@suse.de>
2742
2743 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2744 Avoid calling specbind when completion-regexp-list is empty.
2745
092de21d
RS
27462004-06-13 Richard M. Stallman <rms@gnu.org>
2747
2748 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2749 (re_wctype, re_iswctype, re_wctype_to_bit):
2750 Non-function definitions moved here from regex.c.
1ebd4f78 2751
092de21d
RS
2752 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2753 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2754 (re_wctype, re_iswctype, re_wctype_to_bit):
2755 Non-function definitions moved to regex.h.
2756
2757 * window.c (Fselect_window): Doc fix.
2758
2759 * syntax.c: Include regex.h.
2760 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2761 If requested, make a list of classes, then check the scanned
2762 chars for membership in them.
2763 (in_classes): New function.
2764 Doc fix.
2765
2766 * keyboard.c (cmd_error): Don't call any_kboard_state
2767 if inside a recursive edit level.
2768
27692004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2770
2771 * keyboard.c (command_loop): Call any_kboard_state before
2772 command_loop_2 when at top level.
2773
3ebc0939
AS
27742004-06-13 Andreas Schwab <schwab@suse.de>
2775
cea5d0d4
AS
2776 * print.c (print_object): Always use %ld for printing EMACS_INT.
2777
2778 * keyboard.c (cancel_hourglass_unwind): Return a value.
2779 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2780 (Fexecute_extended_command): Likewise.
2781
2782 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2783 avoid clashes.
2784 (SYNTAX): Likewise.
2785 (SYNTAX_WITH_FLAGS): Likewise.
2786 (SYNTAX_MATCH): Likewise.
2787
2788 * syntax.c (char_quoted): Avoid warning about undefined operation.
2789 (find_defun_start): Likewise.
2790 (scan_lists): Likewise.
2791 (INC_FROM): Likewise.
2792 (scan_sexps_forward): Likewise.
2793
be8c4ce4
AS
2794 * image.c: Include <ctype.h>.
2795
3ebc0939
AS
2796 * xfaces.c (face_attr_equal_p): Declare parameters.
2797
6fb41b5b
KH
27982004-06-13 Kenichi Handa <handa@m17n.org>
2799
2800 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2801
fc3095ce
EZ
28022004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2803
2804 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2805
66189a40
KH
28062004-06-12 Kenichi Handa <handa@m17n.org>
2807
2808 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2809 ccl_prog_stack_struct and update it.
2810 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2811 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2812 ccl->eof_ic on EOF.
2813 (ccl_debug_hook): New function.
2814 (struct ccl_prog_stack): New member eof_ic.
2815 (ccl_driver): Handle EOF in subrountine call correctly.
2816
28172004-06-11 Kenichi Handa <handa@m17n.org>
2818
2819 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2820
1da71023
KS
28212004-06-11 Kim F. Storm <storm@cua.dk>
2822
2823 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2824
e9efcef4
JB
28252004-06-11 Juanma Barranquero <lektu@terra.es>
2826
2827 * keyboard.c (Fposn_at_point): Doc fix.
2828
9b9ceb61
DK
28292004-06-11 David Kastrup <dak@gnu.org>
2830
2831 * search.c (match_limit): Don't flag an error if match-data
2832 exceeding the allocated search_regs.num_regs gets requested, just
2833 return Qnil.
2834
6e87ac8f
MB
28352004-06-08 Miles Bader <miles@gnu.org>
2836
2837 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2838
0b0dea7b
JB
28392004-06-07 Juanma Barranquero <lektu@terra.es>
2840
2841 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2842 (Fcurrent_time_string, Fcurrent_time_zone)
2843 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2844
a0a23346
MB
28452004-06-07 Miles Bader <miles@gnu.org>
2846
08384afd 2847 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2848 (push_named_merge_point): New function.
2849 (merge_named_face): New function.
2850 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2851 Use `merge_named_face'.
2852 (merge_face_inheritance): Function removed.
c8d09ad8 2853 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2854 Add new `err_msgs' and `named_merge_points' args. Return error
2855 status. Only print error messages if ERR_MSGS is true. Don't try to
2856 do :inherit attribute validation.
2857 (merge_face_heights): Handle `unspecified' in both directions.
2858 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2859 Call `merge_face_ref' instead of `merge_face_inheritance'.
2860 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2861 (compute_char_face, face_at_buffer_position)
2862 (face_at_string_position): Call `merge_face_ref' instead of
2863 `merge_face_vector_with_property'.
2864
12d5b185
KH
28652004-06-07 Kenichi Handa <handa@m17n.org>
2866
2867 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2868 the necessary places.
2869
2e2d7ee6
KS
28702004-06-07 Kim F. Storm <storm@cua.dk>
2871
2872 * process.c (Fdelete_process): Undo 2004-05-28 change.
2873 Instead, call status_notify also for network process.
2874 (status_message): Use process instead of status as arg.
2875 Give messages "deleted" or "connection broken by remote peer" for
2876 an exited network process.
2877 (status_notify): Change call to status_message.
2878 (read_process_output): Increase readmax to 4096. Do not increase
2879 buffer size for datagram channels (default is now large enough).
2880
fcf0d299
ST
28812004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2882
2883 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2884 problem due to newly defined variable.
2885
0722292b
MB
28862004-06-06 Miles Bader <miles@gnu.org>
2887
2888 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2889 immediately if non-interactive or not initialized.
2890
ddfb8369
RS
28912004-06-05 Richard M. Stallman <rms@gnu.org>
2892
2893 * minibuf.c (Fcompleting_read): Doc fix.
2894
57015754
AS
28952004-06-05 Andreas Schwab <schwab@suse.de>
2896
2897 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2898
23715ea6
JB
28992004-06-05 Juanma Barranquero <lektu@terra.es>
2900
2901 * keymap.c (Fdescribe_vector): Fix docstring.
2902 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2903
8e330b22
MB
29042004-06-05 Miles Bader <miles@gnu.org>
2905
2906 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2907 attributes have different values than the default face.
2908
9742a3a6
EZ
29092004-06-04 Eli Zaretskii <eliz@gnu.org>
2910
2911 * xfaces.c (x_supports_face_attributes_p): Make this function
2912 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2913 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2914 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2915
9717e36c
MB
29162004-06-04 Miles Bader <miles@gnu.org>
2917
2918 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2919 from Ftty_supports_face_attributes_p.
2920 (x_supports_face_attributes_p): New function.
2921 (Ftty_supports_face_attributes_p): Function deleted.
2922 (Fdisplay_supports_face_attributes_p): New function.
2923 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2924 (face_attr_equal_p): New function.
9717e36c
MB
2925 (lface_equal_p): Use it.
2926
52deb19f
JB
29272004-06-03 Juanma Barranquero <lektu@terra.es>
2928
2929 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2930 (Vw32_color_map): Fix typo in docstring.
2931 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2932 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2933 Make argument names match their use in docstring.
2934
86d373e6
JB
29352004-06-02 Juanma Barranquero <lektu@terra.es>
2936
2937 Work around bugs/problems with MinGW builds of graphics libraries
2938 called from MSVC builds of Emacs.
2939
2940 * image.c (lookup_image): Make pointer to img static.
2941 (png_read_from_memory): Disable "global" optimization.
2942
2fb0ce67
SM
29432004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2944
c8d09ad8
SM
2945 * eval.c (Fcondition_case): Fix usage. Simplify.
2946
2fb0ce67
SM
2947 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2948
50bf7673
ST
29492004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2950
2951 * macfns.c: Don't include ccl.h.
2952 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2953 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2954 TextUtils.h.
c8d09ad8 2955 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
2956 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2957 display height/width.
2958 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2959 (unwind_create_tip_frame, compute_tip_xy): New functions.
2960 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2961 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2962 and last_show_tip_args.
2fb0ce67 2963
50bf7673
ST
2964 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2965 (Cursor, No_Cursor): New defines.
c8d09ad8 2966 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
2967 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2968
2969 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2970
2971 * macterm.c: Don't include Gestalt.h.
2972 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2973 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2974 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2975 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2976 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2977 (construct_mouse_click, XTmouse_position)
2978 (x_scroll_bar_report_motion, x_calc_absolute_position)
2979 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2980 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2981 (note_mouse_movement): Clear the mouse face and reset the pointer
2982 shape when the pointer goes outside the frame without grabbing.
2983 (mac_front_window): New function.
2984 (mac_window_to_frame): New macro.
2985 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2986 (do_window_activate, do_window_deactivate, do_app_resume)
2987 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2988 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2989 (mac_check_for_quit_char): Use mac_front_window and/or
2990 mac_window_to_frame.
2991 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2992 scroll-bar click event.
2993 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2994 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2995 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2996 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2997 (do_window_update): Don't do anything if the updated window is the
2998 tooltip window.
2999 (do_mouse_moved): Handle mouse movement events here (previously in
3000 XTread_socket). Clear the mouse face if
3001 dpyinfo->mouse_face_hidden is set.
3002 (do_os_event, do_events): Remove (now in XTread_socket).
3003 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3004 Loop until all the events in the queue are processed.
3005 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3006 contents of do_os_event and do_events. Remove mouse movement
3007 handling (now in do_mouse_moved). Add the case where
3008 Vmouse_highlight has an integer value.
3009 (NewMacWindow): Remove.
3010 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3011 excess initializations.
3012 (make_mac_terminal_frame): Previous initializations in
3013 make_mac_frame are moved here.
c8d09ad8
SM
3014 (mac_initialize_display_info):
3015 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3016
3017 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3018 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3019
08fd1251
RS
30202004-05-29 Richard M. Stallman <rms@gnu.org>
3021
3022 * lisp.h (truncate_undo_list): Update decl.
3023
3024 * alloc.c (undo_outer_limit): New variable.
3025 (syms_of_alloc): Defvar it.
3026 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3027
3028 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3029
3030 * alloc.c (lisp_align_malloc): Check for base == 0
3031 regardless of HAVE_POSIX_MEMALIGN.
3032 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3033
227ef0ff
SM
30342004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3035
3036 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3037 (marker_blocks_pending_free): Remove.
3038 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3039 Mark the undo lists after claning them up.
3040 Don't free block in marker_blocks_pending_free.
3041 (mark_buffer): Don't mark undo_list.
3042 (gc_sweep): Sweep hash-tables and strings first.
3043 Do free marker blocks that are empty.
3044
034a6113
SM
30452004-05-28 Jim Blandy <jimb@redhat.com>
3046
3047 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3048 after 'case wordend'. For symbeg and symend, print to stderr,
3049 like the other cases.
3050
33594a8d
NF
30512004-05-28 Noah Friedman <friedman@splode.com>
3052
3053 * process.c (Fdelete_process): Do not call remove_process.
3054
ce50a847
SM
30552004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * alloc.c (struct backtrace): Remove.
3058 (Fgarbage_collect): Use the new mark_backtrace.
3059
3060 * eval.c (mark_backtrace): New function.
3061
3062 * minibuf.c (run_exit_minibuf_hook): New function.
3063 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3064 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3065
1e8dae36
KS
30662004-05-27 Kim F. Storm <storm@cua.dk>
3067
3068 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3069 over display properties, e.g. images, that replace buffer text.
3070
846faa3b
KS
30712004-05-25 Kim F. Storm <storm@cua.dk>
3072
3073 * alloc.c (marker_blocks_pending_free): New var.
3074 (gc_sweep): Store free marker blocks on that list.
3075 (Fgarbage_collect): Free them after undo-list cleanup.
3076
3077 * process.c (wait_reading_process_input): Check connect_wait_mask
3078 before actually accepting connection in case it has already been
3079 accepted due to recursion.
3080
b6189c3b 30812004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3082
ce50a847
SM
3083 * coding.c (Fset_safe_terminal_coding_system_internal):
3084 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3085
71d5a208
RS
30862004-05-22 Richard M. Stallman <rms@gnu.org>
3087
3088 * alloc.c (Fmake_string): Doc fix.
3089
3090 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3091 and the alist pairs too.
3092
3093 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3094
3095 * emacs.c (main): Update copyright year.
3096
3097 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3098
3099 * insdel.c (del_range_2, replace_range): Don't write an anchor
3100 if the gap is empty.
3101
3102 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3103 scroll-down-aggressively is small but positive, put point
3104 near the screen edge.
3105
f63fd14e
JB
31062004-05-22 Juanma Barranquero <lektu@terra.es>
3107
3108 * keymap.c (Fdefine_key): Doc fix.
3109
4d12067c
KS
31102004-05-22 Kim F. Storm <storm@cua.dk>
3111
3112 * alloc.c (struct backtrace): Add debug_on_exit member.
3113 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3114 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3115 the removed cons cells.
3116 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3117 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3118 any cons cells pointing to unallocated stings.
3119 Do not lisp_free any marker blocks, as there may still be pointers
3120 to them from buffer undo lists at this stage of GC.
3121
3122 * keyboard.c (struct backtrace): Add debug_on_exit member.
3123 (Fcommand_execute): Clear it.
3124
931285e2
LT
31252004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3126
3127 * intervals.c (lookup_char_property): Do not prematurely return nil.
3128
669fa600
SM
31292004-05-19 Jim Blandy <jimb@redhat.com>
3130
3131 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3132 beginning and end of symbols.
4d12067c 3133
669fa600
SM
3134 * regex.c (enum syntaxcode): Add Ssymbol.
3135 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3136 (re_opcode_t): New opcodes `symbeg' and `symend'.
3137 (print_partial_compiled_pattern): Print the new opcodes properly.
3138 (regex_compile): Parse the new operators.
ce50a847 3139 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3140 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3141 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3142 (re_match_2_internal): Match symbeg and symend.
3143
3144 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3145
0d8c2e5c
KS
31462004-05-19 Kim F. Storm <storm@cua.dk>
3147
3148 * .gdbinit (xsymbol): Fix last change.
3149
669fa600
SM
31502004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3151
3152 * .gdbinit (xprintstr): New fun.
3153 (xstring, xprintsym): Use it.
3154
3155 * w32proc.c (create_child): Use INTMASK.
3156
3157 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3158 unmarked elements of the undo list.
3159
9a6a4c40
DP
31602004-05-18 David Ponce <david@dponce.com>
3161
3162 * print.c (print): Reset print_depth before to call print_object.
3163
f3c4ec74
JR
31642004-05-18 Jason Rumney <jasonr@gnu.org>
3165
3166 * w32console.c: Prefix RIF functions with w32con_ to avoid
3167 namespace clash with functions in term.c and w32term.c.
3168
3169 * w32menu.c (add_menu_item, w32_menu_display_help)
3170 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3171
0d8c2e5c 3172 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3173
6be49c3a
EZ
31742004-05-18 Eli Zaretskii <eliz@gnu.org>
3175
4d0b9a0a
EZ
3176 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3177
6be49c3a
EZ
3178 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3179 with make_number.
3180 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3181 with XINT.
3182
0bc90bba
KS
31832004-05-18 Kim F. Storm <storm@cua.dk>
3184
89d19988
KS
3185 * blockinput.h (INPUT_BLOCKED_P): New macros.
3186
3187 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3188 (Ftop_level): Unblock input if blocked.
3189
0bc90bba
KS
3190 * buffer.h (GET_OVERLAYS_AT): New macro.
3191 * msdos.c (IT_note_mouse_highlight): Use it.
3192 * textprop.c (get_char_property_and_overlay): Use it.
3193 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3194 * xfaces.c (face_at_buffer_position): Use it.
3195
3196 * print.c (print_object): Increase buf size.
3197
653bd0f6
JR
31982004-05-17 Jason Rumney <jasonr@gnu.org>
3199
3200 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3201 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3202 Lisp_Object using i member.
3203 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3204 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3205 consistently.
3206
3207 * w32proc.c (create_child): Use make_number instead of masking pid.
3208
3209 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3210 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3211 Use EQ to compare Lisp_Objects.
3212 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3213
3214 * w32term.c (w32_num_mouse_buttons): Rename from
3215 Vw32_num_mouse_buttons and make it an int.
3216
3217 * w32.c (init_environment): Use it.
3218
3219 * w32fns.c (w32_wnd_proc): Likewise.
3220
3221 * w32proc.c (w32_pipe_read_delay): Rename from
3222 Vw32_pipe_read_delay and make it an int.
3223
3224 * w32.c (_sys_read_ahead): Use it.
3225
3226 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3227
3228 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3229
3230 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3231 (key_event): Don't mix Lisp_Object and int.
3232
3233 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3234
3235 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3236 modifiers in language change event.
3237
54b53ba7
KS
32382004-05-17 Kim F. Storm <storm@cua.dk>
3239
3240 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3241 Such objects may be freed markers which still exist on an undo list.
3242
6e86a75d
JB
32432004-05-16 Juanma Barranquero <lektu@terra.es>
3244
3245 * data.c (Fset_default): Make argument names match their use in
3246 docstring.
3247
fc80da24
AS
32482004-05-15 Andreas Schwab <schwab@suse.de>
3249
3250 * emacs.c (gdb_array_mark_flag): Define.
3251 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3252
c1380aa6
EZ
32532004-05-15 Eli Zaretskii <eliz@gnu.org>
3254
3255 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3256 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3257 defined for the MS-DOS build.
3258
89458937
SM
32592004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3260
3261 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3262
08020f9a
KH
32632004-05-14 Kenichi Handa <handa@m17n.org>
3264
3265 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3266
a433994a
ST
32672004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3268
3269 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3270 section to frame.c section.
3271 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3272 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3273
a433994a 3274 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3275
a433994a 3276 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3277
a433994a
ST
3278 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3279 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3280 (XTread_socket): Fix int/Lisp_Object mixup.
3281 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3282
a433994a
ST
3283 * macterm.h (struct frame, struct face, struct image)
3284 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3285 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3286 Add prototypes.
a433994a 3287
b51a51b9
KS
32882004-05-14 Kim F. Storm <storm@cua.dk>
3289
3290 * process.c (wait_reading_process_input): Make reentrant.
3291 Make Available and Connecting non-static. Save and restore value
3292 of waiting_for_user_input_p.
3293
2bde1dd8
KS
32942004-05-13 Kim F. Storm <storm@cua.dk>
3295
3296 * keyboard.c (mark_kboards): Don't mark x and y members
3297 that are overloaded in selection request events.
3298
a267ab4d
SM
32992004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3300
3301 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3302
eb15ce9e
GM
33032004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3304
3305 * window.c (Fdisplay_buffer, Fsplit_window)
3306 (split-height-threshold): Doc fix.
3307
7fc92635
JB
33082004-05-13 Juanma Barranquero <lektu@terra.es>
3309
3310 * xfaces.c (Ftty_supports_face_attributes_p)
3311 (Finternal_copy_lisp_face): Fix typo in docstring.
3312 (Finternal_get_lisp_face_attribute): Fix docstring.
3313
1ec2a572
JD
33142004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3315
3316 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3317
ae9292e0
ST
33182004-05-11 Steven Tamm <steventamm@mac.com>
3319
3320 * macfns.c (Fx_create_frame): Default to using tool-bar by
3321 setting tool-bar-lines to 1 in default-frame-alist.
3322
33232004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
3324
3325 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3326 (xpm_get_color_table_v, xpm_make_color_table_h)
3327 (xpm_put_color_table_h, xpm_get_color_table_h)
3328 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3329 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 3330 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 3331
fe97e8df
ST
33322004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3333
a267ab4d 3334 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
3335 instead of FRAME_X_P
3336
b47e779e
KS
33372004-05-11 Kim F. Storm <storm@cua.dk>
3338
3339 * process.c (read_process_output): Grow decoding_buf when needed;
3340 this could cause a crash in allocate_string and compact_small_strings.
3341
cdc9b845
EZ
33422004-04-29 Jim Blandy <jimb@redhat.com>
3343
3344 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3345 against proper opcode.
3346
aa7094ba
JB
33472004-05-10 Juanma Barranquero <lektu@terra.es>
3348
3349 * process.c (Fstart_process): Fix docstring.
3350
3351 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3352 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3353 (Fsplit_char, Fchar_charset): Make argument names match their use
3354 in docstring.
3355
e109331a
RS
33562004-05-10 Richard M. Stallman <rms@gnu.org>
3357
3358 * print.c (print_preprocess): Use being_printed, loop_count and
3359 halftail to detect overdeep nesting and cyclic cdr chains.
3360
9a28b921
AS
33612004-05-10 Andreas Schwab <schwab@suse.de>
3362
78819ebb 3363 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
3364
3365 * fileio.c (Frename_file): Remove extra argument in call to
3366 Fmake_symbolic_link.
3367
e2c02c1a
KS
33682004-05-10 Kim F. Storm <storm@cua.dk>
3369
3370 * xdisp.c (calc_line_height_property): Use string position when
3371 object is a string.
3372
cfe9d13e
KH
33732004-05-10 Kenichi Handa <handa@m17n.org>
3374
a57e8159
KH
3375 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3376 inhibit-modification-hooks to t temporarily before calling
3377 Ferase_buffer.
3378
3379 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3380 inhibit-modification-hooks to t temporarily before calling
3381 Ferase_buffer.
3382
3383 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3384 inhibit-modification-hooks to t temporarily before calling
3385 Ferase_buffer.
3386
cfe9d13e
KH
3387 * fns.c (count_combining): Delete it.
3388 (concat): Don't check combining bytes.
3389
ceb96489
JR
33902004-05-09 Jason Rumney <jasonr@gnu.org>
3391
3392 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3393 (globals_of_w32fns): Set it.
3394
b6189c3b 33952004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
3396
3397 * data.c (Fquo): Simplify.
3398
28712a21
JB
33992004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3400
3401 * data.c (Fquo): If any argument is float, do the computation in
3402 floating point.
3403
0f0af7a8
JB
34042004-05-08 Juanma Barranquero <lektu@terra.es>
3405
88214ef6
JB
3406 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3407 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3408 Fix spelling of Emacs on docstring.
3409 (Fset_process_coding_system, Fprocess_coding_system)
3410 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3411 Make argument names match their use in docstring.
3412 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3413 Fix docstring.
3414
0f0af7a8
JB
3415 * editfns.c (Finsert_buffer_substring): Make argument names match their
3416 use in docstring.
3417
3418 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3419
2a316a84
ST
34202004-05-07 Steven Tamm <steventamm@mac.com>
3421
3422 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3423 around call to ReceiveEvent to avoid certain crashes.
3424
34252004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 3426
2a316a84
ST
3427 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3428 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3429 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3430 Save/restore the current graphics port and device handle when
3431 drawing into an offscreen graphics world.
3432
3433 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3434 (gif_load): Likewise.
3435
ab80314b
JB
34362004-05-07 Juanma Barranquero <lektu@terra.es>
3437
3438 * window.c (Fset_window_buffer): Fix docstring.
3439
70646bb5
TTN
34402004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3441
3442 * emacs.c (main) [VMS]: Fix var ref.
3443
b6189c3b 34442004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
3445
3446 * data.c (Fsetq_default): Fix docstring.
3447
279d3293
JR
34482004-05-06 Jason Rumney <jasonr@gnu.org>
3449
3450 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3451 to avoid name clash.
3452
f72b5416
JD
34532004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3454
3455 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3456 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 3457 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 3458
6ab66799
KS
34592004-05-04 Kim F. Storm <storm@cua.dk>
3460
3461 * xdisp.c (Qtotal): New var.
3462 (syms_of_xdisp): Intern and staticpro it.
3463 (calc_line_height_property): New arg total. Set it if
3464 line-spacing property has format (total . VALUE).
3465 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3466 Handle total line-spacing property.
3467
ab2d724b
JD
34682004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3469
3470 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3471 "under" scroll bar when size/position changes.
3472
238add5e
JR
34732004-05-03 Jason Rumney <jasonr@gnu.org>
3474
3475 * makefile.nt: Remove.
3476
1644f4e4
EZ
34772004-05-02 Eli Zaretskii <eliz@gnu.org>
3478
a267ab4d
SM
3479 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3480 Avoid compiler warnings.
05fdbeb8 3481
1644f4e4
EZ
3482 * Makefile.in (region-cache.o): Depend on config.h.
3483
b6189c3b 34842004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3485
3486 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3487 with continuation lines, too.
3488
2b98b088
TTN
34892004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3490
3491 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3492
d9bf7950
SM
34932004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * xdisp.c (calc_line_height_property): YAILOM (yet another
3496 int/Lisp_Object mixup).
3497
affa509c
EZ
34982004-05-01 Eli Zaretskii <eliz@gnu.org>
3499
3500 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3501 undo bad effect of pack(4) in some versions of system headers.
3502
07c07cfe
JR
35032004-05-01 Jason Rumney <jasonr@gnu.org>
3504
3505 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3506
e71caa4e
KS
35072004-04-30 Kim F. Storm <storm@cua.dk>
3508
3509 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3510 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3511
3512 * dispextern.h (struct it): Remove member use_default_face.
3513 Add members override_ascent, override_descent, override_boff.
3514
3515 * xdisp.c (init_iterator): Handle line-spacing float value.
3516 Initialize override_ascent member.
3517 (append_space_for_newline): Reset override_ascent.
3518 Remove use_default_face.
3519 (calc_line_height_property): New function to calculate value of
3520 line-height and line-spacing properties. Look at overlays, too.
3521 Set override_ascent, override_descent, override_boff members when
3522 using another face than the current face. Float values are now
3523 relative to the frame default font, by default; accept a cons
3524 of ratio and face name to specify value relative to a specific face.
3525 (x_produce_glyphs): Use calc_line_height_property.
3526 Use override_ascent etc. when set to handle different face heights.
3527 A negative line-spacing property value is interpreted as a total
3528 line height, rather than inter-line spacing.
3529 (note_mouse_highlight): Allocate room for 40 overlays initially.
3530
0fddae66
SM
35312004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3532
3533 * data.c (Fsubr_name): New fun.
3534 (syms_of_data): Defsubr it.
3535
712d23dc
KS
35362004-04-29 Kim F. Storm <storm@cua.dk>
3537
3538 * xdisp.c (null_glyph_slice): New var.
3539 (append_glyph, append_composite_glyph, append_stretch_glyph):
3540 Use it to initialize glyph slice.
3541
033ad8c6
SM
35422004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3543
3544 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3545 (on_hot_spot_p): Make sure we always return a value.
3546 (Flookup_image_map): Remove unused var ix and iy.
3547 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3548
93397360
EZ
35492004-04-27 Eli Zaretskii <eliz@gnu.org>
3550
3551 * msdos.c (init_environment): If one of the TMP... environment
3552 variables is set to a drive letter without a trailing slash,
3553 append a slash.
3554
0c54865e
EZ
35552004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3556
3557 * editfns.c (lisp_time_argument): Provide externally.
3558
3559 * fileio.c (Fset_file_times): New function.
3560 (syms_of_fileio): Intern and staticpro it.
3561
d3b111bd
KS
35622004-04-27 Kim F. Storm <storm@cua.dk>
3563
07dc1231
KS
3564 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3565 header line strings.
3566
360fe9d2
KS
3567 * dispextern.h (struct it): New member use_default_face.
3568
d3b111bd
KS
3569 * xdisp.c (Qline_height): New variable.
3570 (syms_of_xdisp): Intern and staticpro it.
3571 (append_space_for_newline): Partially undo 2004-04-25 change;
3572 add default_face_p arg, and restore callers.
3573 Clear it->use_default_face after use.
3574 (x_produce_glyphs): Set default font for ascii char if
3575 it->use_default_font is set. Change line-spacing property to set
3576 just extra line spacing. Handle new line-height property.
3577
0448588b
AS
35782004-04-26 Andreas Schwab <schwab@suse.de>
3579
3580 * print.c (print_object): Print non-ascii characters in bool
3581 vector representation as octal escapes.
3582
3583 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3584 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3585 bool vectors.
3586 * lread.c (read1): Likewise.
3587 * alloc.c (Fmake_bool_vector): Likewise.
3588 * data.c (Faref, Faset): Likewise.
3589 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3590 (mapcar1): Likewise.
d3b111bd 3591
536d6baa
ST
35922004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3593
3594 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3595
ae11577a
MB
35962004-04-26 Miles Bader <miles@gnu.org>
3597
3598 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3599
e198ba87
JB
36002004-04-26 Juanma Barranquero <lektu@terra.es>
3601
3602 * buffer.c (Fpop_to_buffer): Fix docstring.
3603
f3d5f92d 36042004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3605
f3d5f92d
ST
3606 * lread.c (init_lread): Don't display missing lisp directory
3607 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3608 may be built without correct installation path.
f3d5f92d 3609
03e35edc
KS
36102004-04-25 Kim F. Storm <storm@cua.dk>
3611
9ff3aa31
KS
3612 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3613
3614 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3615
03e35edc
KS
3616 * xdisp.c (append_space_for_newline): Rename from append_space.
3617 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3618 (x_produce_glyphs): Handle line-spacing property on newline char.
3619 If value is t, adjust ascent and descent to fit current row height.
3620 If value is an integer or float, set extra_line_spacing to integer
3621 value, or to float value x current line height.
3622
f24814e0
KH
36232004-04-23 Kenichi Handa <handa@m17n.org>
3624
3625 * fontset.c (Finternal_char_font): If POSITION is nil, return
3626 font for displaying CH with the default face.
3627
d814862a
JB
36282004-04-23 Juanma Barranquero <lektu@terra.es>
3629
3630 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3631
063a45c5
SM
36322004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3633
3634 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3635 Don't make assumptions about the relative place of i and val.
3636 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3637
ae7ab2d3
KS
36382004-04-21 Kim F. Storm <storm@cua.dk>
3639
3640 * dispextern.h (struct glyph_slice): New struct.
3641 (struct glyph): New member slice.
3642 (GLYPH_SLICE_EQUAL_P): New macro.
3643 (GLYPH_EQUAL_P): Use it.
3644 (struct glyph_string): New member slice.
3645 (struct it_slice): New struct.
3646 (struct it): New member slice, add member to stack too.
3647 New member constrain_row_ascent_descent_p.
3648 (image_ascent): Add prototype.
3649
3650 * dispnew.c (buffer_posn_from_coords): Return full image width
3651 and height even for image slices (posn is relative to full image).
3652 (marginal_area_string): Adjust x0,y0 for image slice.
3653
3654 * image.c (image_ascent): Add slice arg; calculate ascent for
3655 image slice (or full image).
3656
3657 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3658 (syms_of_keyboard): Defsubr them.
3659
3660 * lisp.h (pos_visible_p): Fix prototype.
3661
c62aec78 3662 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3663 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3664 (x_draw_image_foreground, x_draw_image_relief)
3665 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3666 Draw sliced images.
3667
3668 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3669 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3670 (x_draw_image_foreground, x_draw_image_relief)
3671 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3672 Draw sliced images.
3673
3674 * w32term.h (image_ascent): Remove prototype.
3675
3676 * window.c (Fpos_visible_in_window_p): Return pixel position if
3677 PARTIALLY arg is non-nil. Simplify. Doc fix.
3678 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3679 to return/set vscroll in pixels.
3680
3681 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3682
3683 * xdisp.c (Qslice): New variable.
3684 (syms_of_xdisp): Intern and staticpro it.
3685 (pos_visible_p): Return pixel position in new x and y args.
3686 (init_iterator): Reset it->slice info.
3687 (handle_display_prop): Parse (slice ...) property.
3688 (push_it, pop_it): Save/restore slice info.
3689 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3690 force repositioning of tall row if window is vscrolled, as that
3691 would reset vscroll.
3692 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3693 increasing row height if row is non-empty.
3694 (fill_image_glyph_string): Copy slice info.
3695 (take_vertical_position_into_account): Simplify.
3696 (produce_image_glyph): Handle iterator slice info, setup glyph
3697 slice info. Do not force minimum line height.
3698 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3699 do not increase height (ascent/descent) of non-empty row when
3700 adding normal character glyph; instead reduce glyph ascent/descent
3701 appropriately; if row is higher than current glyph, adjust glyph
3702 descent/ascent to reposition glyph within the existing row.
3703 Likewise, when char is newline, only set ascent/descent if row is
3704 currently empty.
3705 (note_mouse_highlight): Handle hotspots with sliced image.
3706
3707 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3708 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3709 (x_draw_image_foreground, x_draw_image_relief)
3710 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3711 Draw sliced images.
3712
3713 * xterm.h (image_ascent): Remove prototype.
3714
d58f8753
SM
37152004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3716
3717 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3718
4ce2719d
JPW
37192004-04-20 John Paul Wallington <jpw@gnu.org>
3720
3721 * fns.c (Fassoc, Feql): Fix indentation.
3722
d58f8753 3723 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3724
95f8c3b9
JPW
37252004-04-19 John Paul Wallington <jpw@gnu.org>
3726
3727 * fns.c (Feql): New function.
d58f8753 3728 (syms_of_fns): Defsubr it.
95f8c3b9 3729
b7e85537
JR
37302004-04-18 Jason Rumney <jasonr@gnu.org>
3731
3732 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3733 after closing the clipboard.
3734
5a72efd4
LT
37352004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3736
3737 * buffer.c (Fbuffer_base_buffer): Doc fix.
3738
20dc8583
KS
37392004-04-17 Kim F. Storm <storm@cua.dk>
3740
60962ec4
KS
3741 * keymap.c (Fkey_description): Add optional PREFIX arg.
3742 Combine prefix with KEYS to make up the full key sequence to describe.
3743 Correlate meta_prefix_char and following (simple) key to describe
3744 as meta modifier. All callers changed.
3745 (describe_map): Rename arg `keys' to `prefix'. Remove local
3746 `elt_prefix' var. Use Fkey_description with prefix instead of
3747 elt_prefix combined with Fsingle_key_description.
3748 (describe_vector): Declare static. Replace arg `elt_prefix' with
3749 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3750 if !KEYMAP_P. Use Fkey_description with prefix instead of
3751 Fsingle_key_description.
3752
3753 * keymap.h (Fkey_description): Fix prototype.
3754 (describe_vector): Remove prototype.
3755
409368b9
KS
3756 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3757
20dc8583
KS
3758 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3759 (png_load): Fix calculation of transparent background color on X
3760 and W32 platforms.
3761
75c5501b
JB
37622004-04-16 Juanma Barranquero <lektu@terra.es>
3763
3764 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3765 not too large before computing how much to scroll.
3766
da879ae8
SM
37672004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3768
3769 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3770
d01ca4a8
LT
37712004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3772
3773 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3774 Add hyperlink to Elisp manual to the docstring.
3775
572943b3
SM
37762004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3777
3778 * callint.c (fix_command): Use XDCR.
3779
5e30a0fb
NR
37802004-04-14 Nick Roberts <nick@nick.uklinux.net>
3781
3782 * window.c (Fget_lru_window): Doc fix.
3783
a27ddfaf
KS
37842004-04-14 Kim F. Storm <storm@cua.dk>
3785
3786 * editfns.c (Fformat): Fix allocation size of precision array.
3787
3788 * dispnew.c (update_window): Only set changed_p if
3789 scrolling_window actually did scroll.
3790 (scrolling_window): Only return 1 if we actually did scroll.
3791
3792 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3793 height to glyph height when cursor row is not fully visible.
3794 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3795 failure in case row is higher than window. Callers changed.
3796 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3797 Try to scroll partially visible, higher-than-window cursor row.
3798 (redisplay_window): Always try to scroll partially visible,
3799 higher-than-window cursor row - both initially and again with
3800 centering_position = 0.
3801 Clear desired matrix before retrying with centering_position = 0.
3802
da879ae8
SM
38032004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3804
3805 * syntax.c (scan_lists): Simplify backward string scan.
3806 Fix off-by-one boundary check for string and comment fences.
3807
5fc16e8e
SM
38082004-04-13 Joe Buehler <jbuehler@hekimian.com>
3809
3810 * sheap.c, unexcw.c: New files.
3811
c9aac8e6
LT
38122004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3813
3814 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3815 base buffer has been killed. Correct the error message if the
3816 base buffer does not exist.
3817
1e88a355
SM
38182004-04-12 Joe Buehler <jbuehler@hekimian.com>
3819
3820 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3821 Cygwin itself. Add support for Xaw3d scrollbars.
3822
3823 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3824
3825 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3826
3827 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3828 before Cygwin unexec.
3829
3830 * Makefile.in: Link changes for Cygwin unexec() support.
3831
8dbff9a0
AS
38322004-04-12 Andreas Schwab <schwab@suse.de>
3833
3834 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3835
54dffe35
LT
38362004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3837
3838 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3839 IGNORE argument equals NAME. Doc fix.
3840
99a72bdf
MY
38412004-04-11 Masatake YAMATO <jet@gyve.org>
3842
1e88a355 3843 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3844 empty if they are backwards.
3845
40899d7b
SM
38462004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3847
3848 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3849
f8f853de
SM
38502004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3851
3852 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3853
c953fe1b
KS
38542004-04-06 Kim F. Storm <storm@cua.dk>
3855
661e85c1
KS
3856 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3857 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3858
3859 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3860 clearing highlight.
3861
3862 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3863
3864 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3865 clearing highlight.
3866
c953fe1b
KS
3867 * indent.c (vmotion): Do not reserve one column for continuation
3868 marks on window frames.
3869
c1994268
EZ
38702004-04-04 Eli Zaretskii <eliz@gnu.org>
3871
3872 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3873 from GCC.
3874
9f691b0d
SM
38752004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3876
3877 * .gdbinit-union: Remove.
3878
3879 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3880 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3881 ($nonvalbits): Remove.
3882 ($valmask): Set it by calling xreload to avoid redundancy.
3883
3884 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3885 (gdb_emacs_intbits): Remove.
3886
7a8560d7
JD
38872004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3888
9f691b0d 3889 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3890
3c8111fc
KH
38912004-03-30 Kenichi Handa <handa@m17n.org>
3892
3893 * editfns.c (Fformat): Fix initialization of the array info.
3894
48a0bce4
KS
38952004-03-30 Kim F. Storm <storm@cua.dk>
3896
3897 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3898 (syms_of_xterm): DEFVAR_BOOL it.
3899 (ignore_next_mouse_click_timeout): New var.
3900 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3901 Use it to filter mouse clicks following focus event.
3902
1cd0066c
KS
39032004-03-29 David Ponce <david@dponce.com>
3904
3905 * callint.c (Fcall_interactively): Fix last change.
3906
adb3b353
SM
39072004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3908
3909 * eval.c (Fcommandp): Simplify.
3910
3911 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3912 Extend to handle all kinds of functions.
3913
3914 * lisp.h (Finteractive_form): Declare.
3915
3916 * callint.c (Fcall_interactively): Use it.
3917
6fc4c9c9
KS
39182004-03-26 Kim F. Storm <storm@cua.dk>
3919
3920 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3921 to catch errors in calc_pixel_width_or_height during redisplay.
3922
abdb9b83
MY
39232004-03-26 Masatake YAMATO <jet@gyve.org>
3924
b17856dd 3925 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3926
b17856dd 3927 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3928
b17856dd 3929 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3930
b17856dd 3931 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3932
e8a84b6c
JD
39332004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3934
b17856dd 3935 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3936
36a3fd05
RS
39372004-03-19 Richard M. Stallman <rms@gnu.org>
3938
3939 * s/sol2-6.h: Delete previous change.
3940
ab24c127
KS
39412004-03-19 Kim F. Storm <storm@cua.dk>
3942
3943 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3944 to_charpos corresponds to newline in right fringe. Use local
3945 BUFFER_POS_REACHED_P macro.
3946
992126de
JD
39472004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3948
3949 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3950 to compile on non-window system.
3951
45dbfc84
KS
39522004-03-19 Kim F. Storm <storm@cua.dk>
3953
3954 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3955
3956 * image.c (Qcenter): Move to xdisp.c.
3957
3958 * xdisp.c (Qcenter): Declare here.
adb3b353 3959 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
3960 (handle_single_display_prop): Allow space display property on all
3961 platforms.
3962 (display_mode_line): Set mode_line_p before displaying line.
3963 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3964 handling. Remove complex cases for fringes and scroll-bars.
3965 Add left, right, and center alignment positions. Add text (area)
3966 width/height. Return width or height for image specs.
3967 (produce_stretch_glyph): Improve handling of :align-to. Is now
3968 relative to left of text area by default, but other base offsets
3969 can be specified -- also for text lines.
3970
3971 * term.c (produce_glyphs): Handle IT_STRETCH.
3972 (produce_stretch_glyph): New function to handle space width and
3973 align-to display properties on non-window systems.
3974
37264101
SM
39752004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3976
3977 * fileio.c (Fread_file_name): Set completion-ignore-case for
3978 case-insensitive systems.
3979
73bc43da
MY
39802004-03-14 Masatake YAMATO <jet@gyve.org>
3981
3982 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3983 when keymap and cursor are setup.
3984
9062aa89
ST
39852004-03-14 Steven Tamm <steventamm@mac.com>
3986
b17856dd 3987 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3988
e4b1b5ab
KS
39892004-03-14 Kim F. Storm <storm@cua.dk>
3990
3991 * dispextern.h (x_find_image_file): Add prototype.
3992
3993 * image.c (x_find_image_file): Make extern.
3994
3995 * xfns.c (x_find_image_file): Remove prototype.
3996
a6eeaa81 39972004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3998
37264101 3999 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4000
37264101 4001 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4002
e69cfac2
RS
40032004-03-12 Richard M. Stallman <rms@gnu.org>
4004
4005 * fns.c (internal_equal): New arg PROPS controls comparing
4006 text properties. All callers changed.
4007 (Fequal_including_properties): New function.
4008 (syms_of_fns): defsubr it.
4009
45034953
KS
40102004-03-12 Kim F. Storm <storm@cua.dk>
4011
4012 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4013
45034953
KS
4014 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4015 (image_background, image_background_transparent): Fix prototypes.
4016
37264101 4017 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4018
4019 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4020 (x_query_font, x_find_ccl_program, x_set_window_size)
4021 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4022 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4023 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4024
4025 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4026 (x_query_font, x_find_ccl_program, x_set_window_size)
4027 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4028 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4029 (mac_draw_line_to_pixmap): Add prototypes.
4030
40312004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4032
4033 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4034
a12d3d87
KS
40352004-03-11 Kim F. Storm <storm@cua.dk>
4036
d3ab1cf1
KS
4037 * dispextern.h: Move image related prototypes from xfns.c section
4038 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4039 HAVE_X_WINDOWS.
37264101 4040
37de9f51 4041 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4042 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4043 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4044 (GTK_OBJ) [USE_GTK]: New declaration.
4045 (obj): Add $(GTK_OBJ) to list.
4046
5243c06a 40472004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4048
5243c06a
ST
4049 * image.c [MAC_OSX]: Include sys/stat.h
4050
4051 * macfns.c (syms_of_macfns): Remove definitions of things now
4052 defined in image.c
4053
c0f97789
KS
40542004-03-11 Kim F. Storm <storm@cua.dk>
4055
4056 The following changes consolidates the identical/similar image
4057 support code previously found in xfns.c, w32fns.c, and macfns.c
4058 into a new file image.c.
4059
4060 * makefile.w32-in (OBJ1): Add image.o.
4061 ($(BLD)/image.$(O)): Add dependencies.
4062
4063 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4064 (image.o): Add dependencies.
37264101 4065
c0f97789
KS
4066 * image.c: New file with consolidated image support code.
4067 (COLOR_TABLE_SUPPORT): New define to control whether
4068 color table support is available (X only).
4069 (Bitmap_Record): Common name for x_bitmap_record,
4070 w32_bitmap_record, and mac_bitmap_record.
4071 (XImagePtr): Common name for pointer to XImage or equivalent.
4072 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4073 to XImagePtr on X+MAC, and to HDC on W32.
4074 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4075 (NO_PIXMAP): Common name for "None" or equivalent.
4076 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4077 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4078 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4079 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4080 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4081 (XDrawLine): Define on MAC for code sharing.
4082 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4083 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4084 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4085 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4086 (x_reference_bitmap, x_create_bitmap_from_data)
4087 (x_create_bitmap_from_file, x_destroy_bitmap)
4088 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4089 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4090 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4091 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4092 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4093 (define_image_type, lookup_image_type, valid_image_p)
4094 (image_error, enum image_value_type, struct image_keyword)
4095 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4096 (make_image, free_image, prepare_image_for_display, image_ascent)
4097 (four_corners_best, image_background, image_background_transparent)
4098 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4099 (make_image_cache, free_image_cache, clear_image_cache)
4100 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4101 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4102 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4103 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4104 (init_image_func_pointer, image_load_quartz2d)
4105 (struct ct_color, init_color_table, free_color_table)
4106 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4107 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4108 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4109 (x_disable_image, x_build_heuristic_mask)
4110 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4111 (TIFF support, GIF support, Ghostscript support): Consolidate image
4112 code from xfns.c, w32fns.c, and macfns.c.
4113 (syms_of_image): Consolidate image related symbol setup here.
4114 (init_image): Consolidate image related initializations here.
37264101 4115
c0f97789
KS
4116 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4117 and init_image. Remove call to init_xfns.
4118
37264101
SM
4119 * macterm.h (struct mac_bitmap_record): Add file member.
4120 Not currently used, but simplifies code sharing.
c0f97789
KS
4121
4122 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4123 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4124 (x_reference_bitmap, x_create_bitmap_from_data)
4125 (x_create_bitmap_from_file, x_destroy_bitmap)
4126 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4127 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4128 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4129 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4130 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4131 (define_image_type, lookup_image_type, valid_image_p)
4132 (image_error, enum image_value_type, struct image_keyword)
4133 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4134 (make_image, free_image, prepare_image_for_display, image_ascent)
4135 (four_corners_best, image_background, image_background_transparent)
4136 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4137 (make_image_cache, free_image_cache, clear_image_cache)
4138 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4139 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4140 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4141 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4142 (init_image_func_pointer, image_load_quartz2d)
4143 (struct ct_color, init_color_table, free_color_table)
4144 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4145 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4146 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4147 (x_disable_image, x_build_heuristic_mask)
4148 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4149 (TIFF support, GIF support, Ghostscript support): Merge with image
4150 code from xfns.c and macfns.c into image.c.
4151 (syms_of_xfns): Move image related symbols to image.c.
4152 (init_external_image_libraries, init_xfns): Remove; initialization
4153 moved to init_image in image.c.
4154
4155 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4156 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4157 (x_reference_bitmap, x_create_bitmap_from_data)
4158 (x_create_bitmap_from_file, x_destroy_bitmap)
4159 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4160 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4161 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4162 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4163 (define_image_type, lookup_image_type, valid_image_p)
4164 (image_error, enum image_value_type, struct image_keyword)
4165 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4166 (make_image, free_image, prepare_image_for_display, image_ascent)
4167 (four_corners_best, image_background, image_background_transparent)
4168 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4169 (make_image_cache, free_image_cache, clear_image_cache)
4170 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4171 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4172 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4173 (struct ct_color, init_color_table, free_color_table)
4174 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4175 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4176 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4177 (x_disable_image, x_build_heuristic_mask)
4178 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4179 (TIFF support, GIF support, Ghostscript support): Merge with image
4180 code from xfns.c and macfns.c into image.c.
4181 (syms_of_xfns): Move image related symbols to image.c.
4182 (init_external_image_libraries, init_xfns): Remove; initialization
4183 moved to init_image in image.c.
4184
4185 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4186 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4187 (x_reference_bitmap, x_create_bitmap_from_data)
4188 (x_create_bitmap_from_file, x_destroy_bitmap)
4189 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4190 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4191 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4192 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4193 (define_image_type, lookup_image_type, valid_image_p)
4194 (image_error, enum image_value_type, struct image_keyword)
4195 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4196 (make_image, free_image, prepare_image_for_display, image_ascent)
4197 (four_corners_best, image_background, image_background_transparent)
4198 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4199 (make_image_cache, free_image_cache, clear_image_cache)
4200 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4201 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4202 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4203 (struct ct_color, init_color_table, free_color_table)
4204 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4205 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4206 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4207 (x_disable_image, x_build_heuristic_mask)
4208 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4209 (TIFF support, GIF support, Ghostscript support): Merge with
4210 w32fns.c and macfns.c image code into image.c.
4211 (syms_of_xfns): Move image related symbols to image.c.
4212 (init_xfns): Remove; initialization moved to init_image in image.c.
4213
4214 * lisp.h (syms_of_image, init_image): Add protoypes.
4215 (init_xfns): Remove prototype.
4216
4217 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4218 (x_reference_bitmap, x_create_bitmap_from_data)
4219 (x_create_bitmap_from_file, x_destroy_bitmap)
4220 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4221 (gamma_correct) [MAC_OS]: Add prototype.
4222
4223 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4224 (x_reference_bitmap, x_create_bitmap_from_data)
4225 (x_create_bitmap_from_file, x_destroy_bitmap)
4226 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4227
6eced09c
KH
42282004-03-09 Kenichi Handa <handa@etlken2>
4229
4230 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4231 correctly.
4232
9a7e95f3
RS
42332004-03-04 Richard M. Stallman <rms@gnu.org>
4234
04a6e76b
RS
4235 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4236
9a7e95f3
RS
4237 * window.c (Fdisplay_buffer): Doc fix.
4238
4239 * buffer.c (Fpop_to_buffer): Doc fix.
4240
6c2488df
KS
42412004-03-03 Kim F. Storm <storm@cua.dk>
4242
4243 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4244
d8d95bc7
SM
42452004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4246
4247 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4248
357589bf
RS
42492004-03-02 Richard M. Stallman <rms@gnu.org>
4250
4251 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4252
409949b5
KH
42532004-03-02 Kenichi Handa <handa@m17n.org>
4254
4255 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4256
d24bc50f
KS
42572004-03-02 Kim F. Storm <storm@cua.dk>
4258
4259 * window.h (struct window): New member overlay_arrow_bitmap.
4260
4261 * window.c (make_window): Initialize overlay_arrow_bitmap.
4262
4263 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4264 implement and integrate multiple overlay arrows with redisplay.
4265 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4266 (last_arrow_position, last_arrow_string): Replace by properties.
4267 (Qlast_arrow_position, Qlast_arrow_string)
4268 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4269 (syms_of_xdisp): Intern and staticpro them.
4270 (overlay_arrow_string_or_property, update_overlay_arrows)
4271 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4272 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4273 (redisplay_internal): Use them instead of directly accessing
4274 Voverlay_arrow_position etc. for multiple overlay arrows.
4275 (mark_window_display_accurate): Use update_overlay_arrows.
4276 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4277 (try_window_id): Use overlay_arrows_changed_p.
4278 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4279 (display_line): Use overlay_arrow_at_row to check multiple
4280 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4281 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4282 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4283 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4284
4285 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4286 (update_window_fringes): Remove unused code.
4287
c1464661
JR
42882004-03-01 Jason Rumney <jasonr@gnu.org>
4289
4290 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4291
a64387ee
JB
42922004-03-01 Juanma Barranquero <lektu@terra.es>
4293
4294 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4295
4296 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4297
334faa08
JD
42982004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4299
4300 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4301 how many colors can be displayed.
4302
bb62616f
KH
43032004-03-01 Kenichi Handa <handa@m17n.org>
4304
4305 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4306 correctly.
4307
0fd16104
KS
43082004-02-28 Kim F. Storm <storm@cua.dk>
4309
4310 * dispnew.c (update_window): Update header line also if there are
4311 no other changes in window (move code after set_cursor label).
4312
4313 * lisp.h (mark_window_display_accurate): Remove prototype.
4314
4315 * window.c (window_loop, Fforce_window_update): Force mode line
4316 updates by setting prevent_redisplay_optimizations_p and
4317 update_mode_lines.
4318
b59dd9c8
JD
43192004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4320
d8d95bc7 4321 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
4322
4323 * xterm.c (x_calc_absolute_position): Call x_real_positions
4324 to get WM window sizes and use those to calculate position.
d8d95bc7 4325 (x_set_offset): Remove code commented out.
b59dd9c8 4326
a874691c
MB
43272004-02-28 Miles Bader <miles@gnu.org>
4328
4329 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4330
3e0c6482
KS
43312004-02-28 Kim F. Storm <storm@cua.dk>
4332
4333 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4334 an event into kbd fifo, but with special handling of quit event;
4335 a quit event is saved for later, and further events are discarded
4336 until the saved quit event has been processed.
4337 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4338 (gen_help_event): Store help event in kbd fifo.
4339 (NREAD_INPUT_EVENTS): Remove.
4340 (read_avail_input): Adapt to new read_socket_hook interface.
4341 Remove allocation and initialization of local input_event buffer,
4342 as read_socket_hook stores events directly in fifo. Allocate and
4343 initialize local hold_quit event to handle postponed quit event
4344 (and store it if set by kbd_buffer_store_event_hold).
4345
4346 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4347 (gen_help_event): Fix prototype.
4348
a64387ee 4349 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 4350 numcharsp args. Add hold_quit arg.
f63fd14e 4351 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4352 directly in fifo using kbd_buffer_store_event_hold.
4353
4354 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4355 (read_input_waiting): Adapt to new read_socket_hook interface.
4356 Remove allocation and initialization of local input_event buffer,
4357 as read_socket_hook stores events directly in fifo. Allocate and
4358 initialize local hold_quit event to handle postponed quit event
4359 (and store it if set by kbd_buffer_store_event_hold).
4360
a64387ee 4361 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
4362
4363 * termhooks.h (read_socket_hook): Fix prototype.
4364
4365 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4366 numcharsp args. Add hold_quit arg.
f63fd14e 4367 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
4368 directly in fifo using kbd_buffer_store_event_hold.
4369
4370 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4371
4372 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
4373 Add hold_quit arg. Rework to use just one, local, inev
4374 input_event. Store inev directly in fifo using
3e0c6482
KS
4375 kbd_buffer_store_event_hold. Update count in one place.
4376 Postpone call to gen_help_event until inev is stored; use new
4377 local do_help for this.
4378 Remove local emacs_event in handing of ButtonPress event; just use
4379 inev instead (so no reason to copy it later).
4380
4381 * xsmfns.c (x_session_check_input): Remove numchars arg.
4382
d8d95bc7
SM
4383 * xterm.c (x_focus_changed, x_detect_focus_change):
4384 Remove numchars arg. Always store event into bufp arg.
4385 Return nothing. Callers changed accordingly.
3e0c6482
KS
4386 (glyph_rect): Simplify.
4387 (STORE_KEYSYM_FOR_DEBUG): New macro.
4388 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4389 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4390 (current_hold_quit) [USE_GTK]: Add.
4391 (event_handler_gdk): Adapt to new handle_one_xevent.
4392 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
4393 Add hold_quit arg. Rework to use just one, local, inev
4394 input_event. Store inev directly in fifo using
3e0c6482
KS
4395 kbd_buffer_store_event_hold. Update count in one place.
4396 Postpone call to gen_help_event until inev is stored; use new
4397 local do_help for this.
4398 Simplify handling of keysyms (consolidate common code). Fix bug
4399 where count was updated with nchars instead of nbytes.
4400 Remove local emacs_event in handing of ButtonPress event; just use
4401 inev instead (so no reason to copy it later).
4402 Remove `out' label. Rename label `ret' to `done'; add various
4403 `goto done' to clarify code flow in deeply nested blocks.
4404 (x_dispatch_event): Simplify as handle_one_xevent now calls
4405 kbd_buffer_store_event itself.
f63fd14e 4406 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
4407 arg. Call handle_one_xevent with new arglist. Store event from
4408 x_session_check_input in fifo.
4409 [USE_GTK]: Setup current_hold_quit.
4410 Decrement handling_signal before unblocking input.
4411 (x_initialize) [USE_GTK]: Initialize current_count.
4412
4413 * xterm.h (x_session_check_input): Fix prototype.
4414
e3564461 44152004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 4416
d8d95bc7 4417 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 4418
e3564461
ST
4419 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4420 macgui.h).
a64387ee 4421
e3564461 4422 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 4423
e3564461
ST
4424 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4425 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4426 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4427 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4428 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4429 (Bitmap): Remove typedef.
4430 (Pixmap): Change int to GWorldPtr.
4431
d8d95bc7 4432 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 4433
d8d95bc7
SM
4434 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4435 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4436 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
4437 long representation.
4438 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4439 colors used for masks.
4440 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 4441
e3564461
ST
4442 * macfns.c: Include sys/types.h and sys/stat.h.
4443 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4444 Include QuickTime/QuickTime.h.
4445 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4446 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4447 functions defined in macterm.c.
4448 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4449 (ZPixmap): New #define for compatibility with xfns.c.
4450 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4451 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
4452 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4453 New functions.
e3564461 4454 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
4455 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4456 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
4457 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4458 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4459 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4460 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4461 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4462 long mixup.
4463 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4464 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4465 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4466 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4467 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4468 (x_alloc_image_color, clear_image_cache, lookup_image)
4469 (x_find_image_file, xbm_read_bitmap_file_data)
4470 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4471 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4472 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4473 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4474 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 4475 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
4476 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4477 #if 0.
4478 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4479 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
4480 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4481 New functions (from xfns.c).
e3564461
ST
4482 (Fx_create_frame): Record unwind_create_frame.
4483 (Fxw_display_color_p): Use dpyinfo->color_p.
4484 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4485 dpyinfo->n_cbits.
4486 (Fx_display_color_cells): Use dpyinfo->n_planes;
4487 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4488 (Qheuristic, cross_disabled_images, emboss_matrix)
4489 (laplace_matrix): New variables (from xfns.c).
4490 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4491 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4492 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4493 (image_background_transparent): New function (from xfns.c).
4494 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4495 (image_load_quicktime): Add declaration.
4496 [MAC_OSX] (image_load_quartz2d): Likewise.
4497 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4498 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4499 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4500 (xbm_load_image_from_file, x_laplace_read_row)
4501 (x_laplace_write_row, pbm_read_file): Remove functions.
4502 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4503 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4504 (colors_in_color_table): Sync with xfns.c (although not used).
4505 (lookup_rgb_color): Don't lookup color table. Just do gamma
4506 correction.
4507 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4508 (x_disable_image): New function (from xfns.c).
4509 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4510 (x_build_heuristic_mask): Sync with xfns.c.
4511 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4512 (HAVE_PBM): Remove #ifdef.
4513 (pbm_load): Sync with xfns.c. Set img->width and img->height
4514 before IMAGE_BACKGROUND.
d8d95bc7 4515 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4516 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4517 Don't enclose with #if HAVE_PNG.
4518 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4519 symbol _CGImageCreateWithPNGDataProvider is defined.
4520 Otherwise use image_load_quicktime.
e3564461 4521 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4522 [HAVE_PNG] (png_load): Sync with xfns.c.
4523 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4524 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4525 HAVE_JPEG.
4526 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4527 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4528 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4529 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4530 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4531 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4532 HAVE_TIFF.
4533 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4534 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4535 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4536 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4537 New functions (from xfns.c).
e3564461 4538 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4539 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4540 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4541 Don't enclose with #if HAVE_GIF.
4542 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4543 animated gif. Otherwise use image_load_quicktime.
4544 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4545 gif_DrawText to avoid conflict with QuickdrawText.h.
4546 [HAVE_GIF] (gif_load): Sync with xfns.c.
4547 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4548 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4549 Ghostscript is not supported yet).
4550 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4551 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4552 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4553 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4554 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4555 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4556 HAVE_PNG. Call EnterMovies to support animated gifs.
4557 Call init_image_func_pointer to bind a symbol
e3564461 4558 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4559
d8d95bc7 4560 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4561 (x_draw_bar_cursor): Sync declaration with xterm.c.
4562 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4563 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4564 graphics).
4565 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4566 (mac_draw_line_to_pixmap, XCreatePixmap)
4567 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4568 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4569 New functions.
4570 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4571 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4572 Cast bits to char *.
e3564461
ST
4573 (reflect_byte): New function (from w32fns.c).
4574 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4575 due to byte alignment.
d8d95bc7
SM
4576 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4577 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4578 (XSetForeground): Remove static (now used in macfns.c).
4579 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4580 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4581 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4582 (x_draw_glyph_string_box, x_draw_image_foreground)
4583 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4584 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4585 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4586 Sync with xterm.c.
4587 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4588 than the xterm.c version when a strictly horizontal or vertical
4589 line is drawn.
4590 (XTset_terminal_window): Add static.
4591 (x_make_frame_visible): Add UNBLOCK_INPUT.
4592 (x_free_frame_resources): New funcion (from xterm.c).
4593 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4594 occurs in tool bar area.
d8d95bc7
SM
4595 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4596 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4597 Initialize image cache.
4598 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4599 Enclose unused functions with #if 0.
4600 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4601 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4602 from a mac font name to an XLFD font name according to its script code.
e3564461 4603 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4604 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4605 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4606 whose name starts with `.'.
4607 (init_font_name_table): Use decode_mac_font_name. Add both
4608 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4609 of a font is smJapanese.
4610 (mac_do_list_fonts): New function to list fonts that match a given
4611 pattern.
4612 (x_list_fonts, XLoadQueryFont): Use it.
4613 (XLoadQueryFont): Set rbearing field for each variable width
4614 character to avoid needless redraw.
4615 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4616
446f5f3d
KS
46172004-02-26 Kim F. Storm <storm@cua.dk>
4618
af617d0f
KS
4619 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4620 as read_socket_hook handler on X aborts if buffer is too small
4621 and W32 handler doesn't always check buffer limit.
4622
446f5f3d
KS
4623 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4624 right-fringe similar to a display margin image. Specifically,
4625 the characters having the fringe prop are no longer shown, and
4626 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4627 do this. Set fringe bitmap face_id in it->face_id.
4628 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4629 still realize it->face (i.e. the fringe bitmap face).
4630
7d8a0b55
MB
46312004-02-25 Miles Bader <miles@gnu.org>
4632
4633 * xdisp.c (check_it): Check string/string_pos consistency.
4634 (init_iterator): Initialize string-related fields properly.
4635
46362004-02-11 Miles Bader <miles@gnu.org>
4637
4638 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4639
46402004-02-10 Miles Bader <miles@gnu.org>
4641
4642 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4643 BLOCK_INPUT can be nested, so it doesn't make much sense.
4644
a64387ee 46452004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4646
4647 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4648 (xbm_read_bitmap_data): Use unsigned char for image data.
4649
92f5fba2
LT
46502004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4651
4652 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4653
8565fb3d
JR
46542004-02-22 Jason Rumney <jasonr@gnu.org>
4655
4656 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4657 correctly over other bitmaps.
4658
a6eeaa81 46592004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4660
4661 * emacs.c (USAGE1): Split into two halves.
4662 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4663 (USAGE3): Rename from USAGE2.
4664 (USAGE4): Rename from USAGE3.
f8125c39 4665
4effffca
EZ
46662004-02-21 Juri Linkov <juri@jurta.org>
4667
4668 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4669 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4670 --file. Fix -f, -l. Sort options. Untabify.
4671 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4672
923c1e6f
LT
46732004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4674
4675 * category.c (Fdefine_category, Fcategory_docstring)
4676 (Fget_unused_category, Fset_category_table)
4677 (Fcategory_set_mnemonics): Doc fixes.
4678
b0e225fd
KS
46792004-02-20 Kim F. Storm <storm@cua.dk>
4680
4681 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4682 The following changes are relative to the 2004-01-21 revision.
4683 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4684 in one call to read_socket_hook. Value is 8.
4685 (read_avail_input): Separate and rework handling of read_socket_hook
4686 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4687 in read_socket_hook case, and repeat if full buffer is read.
4688 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4689 In non-read_socket_hook case, just use a single input_event, and
4690 call kbd_buffer_store_event on the fly for each character.
4691
b15aa9f9
SM
46922004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4693
4694 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4695 Remove unused `gu' alternative.
4696
83c9aa95
AS
46972004-02-19 Andreas Schwab <schwab@suse.de>
4698
4699 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4700 warning.
4701
cc808173
KS
47022004-02-18 Kim F. Storm <storm@cua.dk>
4703
4704 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4705 Fix last change.
4706
ab90a54d
KS
47072004-02-17 Kim F. Storm <storm@cua.dk>
4708
b26f249f
KS
4709 * xdisp.c (fast_find_position): Fix return value of new version;
4710 it was inverted compared to the 21.1 version.
4711 (get_window_cursor_type): Don't look at glyph if NULL.
4712 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4713
ab90a54d
KS
4714 * keyboard.c: Rework previous change; it didn't consider that the
4715 buf array was allocated on the stack.
4716 (prev_read): Remove variable.
4717 (read_avail_input_buf): New static event buffer array.
b9568dfc 4718 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4719 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4720 Use in_read_avail_input to handle re-entrance; when re-entered,
4721 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4722 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4723 is always cleared on entry. To ensure that, we clear (just) the
4724 entries that were used before we return.
4725 (init_keyboard): Initialize read_avail_input_buf here.
4726
b6189c3b 47272004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4728
4729 * cmds.c (Fend_of_line): Doc fix.
4730
7b5368c1
EZ
47312004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4732
4733 * keyboard.c (prev_read): New static variable.
4734 (read_avail_input): Use it to zero out only those slots in buf[]
4735 that were used last time we were called.
4736
a6eeaa81 47372004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4738
4739 * Makefile.in (obj): Move fringe.o from here...
4740 (XOBJ, MAC_OBJ): ...to here.
4741
159c348e
SE
47422004-02-16 Stephen Eglen <stephen@gnu.org>
4743
4744 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4745
d2f14999
SM
47462004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4747
b15aa9f9
SM
4748 * data.c (Fbyteorder):
4749 * fringe.c (Fdefine_fringe_bitmap):
4750 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4751 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4752
8d50508a
JR
47532004-02-16 Jason Rumney <jasonr@gnu.org>
4754
4755 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4756
dd4497dc
ST
47572004-02-15 Steven Tamm <steventamm@mac.com>
4758
4759 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4760 controlling emulation of a three button mouse with option and
4761 command keys.
4762 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4763 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4764
c9159cb3
KS
47652004-02-15 Kim F. Storm <storm@cua.dk>
4766
2cc52658
KS
4767 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4768
c9159cb3
KS
4769 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4770 Perform byte-swapping.
4771
12fde2dc
KS
47722004-02-14 Kim F. Storm <storm@cua.dk>
4773
4774 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4775 bits from char to short to facilitate wider bitmaps.
4776 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4777 member.
4778
4779 * fringe.c (struct fringe_bitmap): Change member bits from char to
4780 short to facilitate 16 bits wide bitmaps. Modify all standard
4781 bitmaps accordingly.
4782 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4783 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4784 (draw_fringe_bitmap): Ditto.
4785 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4786 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4787 handle up to 16 bits wide bitmaps.
4788 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4789 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4790
4791 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4792 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4793 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4794
4795 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4796 so it is no longer necessary to expand them here.
4797
4798 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4799
9d7271e8
KS
48002004-02-12 Kim F. Storm <storm@cua.dk>
4801
4802 * window.c (Fwindow_fringes): Doc fix.
4803
706c1e4f
JD
48042004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4805
4806 * xselect.c (x_get_foreign_selection): Add new optional parameter
4807 time_stamp.
4808 (Fx_get_selection_internal): Ditto, pass time_stamp to
4809 x_get_foreign_selection.
4810
4811 * data.c (Fbyteorder): New function.
4812
c2d12b5d
JD
48132004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4814
4815 * atimer.c: Move include stdio.h to same place as in other files.
4816
4817 * region-cache.c: Ditto.
4818
4819 * sysdep.c: Ditto.
4820
4821 * xfaces.c: Ditto.
4822
4c1947b9
SS
48232004-02-09 Sam Steingold <sds@gnu.org>
4824
89458937 4825 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4826
82722af3
KS
48272004-02-09 Kim F. Storm <storm@cua.dk>
4828
4829 * fringe.c: New file. Move original fringe related declarations
4830 and code from dispextern.h and xdisp.c here.
4831 Rework code to support user defined fringe bitmaps, redefining
4832 standard bitmaps, ability to overlay user defined bitmap with
4833 overlay arrow bitmap, and add faces to bitmaps.
4834 (Voverflow_newline_into_fringe): Declare here.
4835 (enum fringe_bitmap_align): New enum.
4836 (..._bits): All bitmaps are now defined without bitswapping; that
4837 is now done in init_fringe_once (if necessary).
4838 (standard_bitmaps): New array with specifications for the
4839 standard fringe bitmaps.
4840 (fringe_faces): New array.
4841 (valid_fringe_bitmap_id_p): New function.
4842 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4843 (draw_fringe_bitmap): New function which draws fringe bitmap,
4844 possibly overlaying bitmap with cursor in right fringe or the
4845 overlay arrow in the left fringe.
4846 (update_window_fringes): Do not handle overlay arrow here.
4847 Compare and copy fringe bitmap faces.
4848 (init_fringe_bitmap): New function.
4849 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4850 define and destroy user defined fringe bitmaps.
4851 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4852 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4853 (syms_of_fringe): New function. Defsubr new DEFUNs.
4854 DEFVAR_LISP Voverflow_newline_into_fringe.
4855 (init_fringe_once, init_fringe): New functions.
4856 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4857
82722af3
KS
4858 * Makefile.in (obj): Add fringe.o.
4859 (fringe.o): New dependencies.
4860
4861 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4862 bits allocated to hold a fringe number. Increase number of bits
4863 from 4 to 8 to allow user defined fringe bitmaps.
4864 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4865 left_user_fringe_face_id, right_user_fringe_bitmap,
4866 right_user_fringe_face_id.
4867 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4868 Move to new file fringe.c.
4869 (MAX_FRINGE_BITMAPS): Define here.
4870 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4871 and overlay_p. Change member which to int.
4872 (struct redisplay_interface): New members define_fringe_bitmap
4873 and destroy_fringe_bitmap.
4874 (valid_fringe_bitmap_id_p): Add prototype.
4875 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4876
4877 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4878 arrows.
4879 (update_frame): Do flush_display if force_flush_display_p to
4880 ensure display (specifically fringes) are updated in a timely
4881 manner when resizing the frame by dragging the mouse.
4882 (update_window_line): Update row if overlay arrow changed.
4883 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4884 or overlay arrow changed.
4885
4886 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4887 syms_of_fringe, and init_fringe.
4888
4889 * frame.h (struct frame): New member force_flush_display_p.
4890
4891 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4892 Add prototypes.
4893
a3993cc8 4894 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4895 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4896 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4897 Use cursor color for displaying cursor in fringe.
82722af3
KS
4898 (x_redisplay_interface): Add null handlers for
4899 define_fringe_bitmap and destroy_fringe_bitmap functions.
4900
4901 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4902 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4903 for displaying cursor in fringe.
4904 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4905 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4906 (w32_redisplay_interface): Add them to redisplay_interface.
4907 (w32_term_init): Call w32_init_fringe instead of explicitly
4908 defining fringe bitmaps in fringe_bmp array.
4909 (x_delete_display): Call w32_reset_fringes instead of explicitly
4910 destroying fringe bitmaps in fringe_bmp array.
4911
4912 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4913 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4914 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4915 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4916 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4917 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4918 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4919 Move fringe handling vars and code to new file fringe.c.
4920 (handle_display_prop): Handle left-fringe and right-fringe
4921 display properties; store user fringe bitmaps in iterator.
4922 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4923 (clear_garbaged_frames): Set force_flush_display_p if resized.
4924 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4925 (display_line): Handle cursor in fringe at eob.
4926 (display_line): Set row user fringe bitmaps from iterator.
4927
4928 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4929 Use cursor color for displaying cursor in fringe.
4930 (x_redisplay_interface): Add null handlers for
4931 define_fringe_bitmap and destroy_fringe_bitmap functions.
4932
030400eb
JD
49332004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4934
4935 * macfns.c (Fx_change_window_property): Make doc string and
4936 parameters same as for X version.
4937
4938 * w32fns.c (Fx_change_window_property): Ditto.
4939
3af55251
KS
49402004-02-07 Kim F. Storm <storm@cua.dk>
4941
ec110e9e
KS
4942 * xdisp.c (hscroll_window_tree): Position cursor near to right
4943 margin in hscrolled window when jumping to end of line (rather
4944 than centering cursor).
4945
3af55251
KS
4946 * process.c (wait_reading_process_input): Don't do adaptive read
4947 buffering if waiting for a specific process.
4948
b0c138ce
LT
49492004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4950
4951 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4952 (Fread_minibuffer, Feval_minibuffer)
4953 (Fread_string, Fread_no_blanks_input)
4954 (Fcompleting_read): Doc fixes.
4955 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4956 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4957 (read_minibuf): Fix initial comment.
4958 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 4959 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
4960 checking completion-regexp-list.
4961 (Fdisplay_completion_list): Make it handle arguments that are
4962 symbols. Doc fix.
4963
9676f5ad 49642004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 4965
9676f5ad 4966 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 4967
9676f5ad
JD
4968 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4969 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 4970 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 4971 format. Remove unused variable cons.
5b698285
JD
4972
4973 * xselect.c: Include stdio,h.
4974
fc1d15f6
KH
49752004-02-05 Kenichi Handa <handa@m17n.org>
4976
ebaff4af
KH
4977 * fns.c (Fset_char_table_range): Fix previous change.
4978
fc1d15f6
KH
4979 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4980
9676f5ad
JD
49812004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4982
4983 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4984
da75761f
SM
49852004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4986
4987 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4988 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4989
13c5d120
KH
49902004-02-04 Kenichi Handa <handa@m17n.org>
4991
4992 * fns.c (Fset_char_table_range): Handle charsets ascii,
4993 eight-bit-control, and eight-bit-graphic correctly.
4994
2883d842
JR
49952004-02-03 Jason Rumney <jasonr@gnu.org>
4996
4997 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4998
4999 * w32fns.c (x_to_w32_font): Likewise.
5000
69eff41f
JD
50012004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5002
5003 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5004 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5005
5006 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5007 ClientMessages.
5008
5009 * xselect.c: Include termhooks.h and X11/Xproto.h
5010 (x_check_property_data, x_fill_property_data)
5011 (x_property_data_to_lisp, mouse_position_for_drop)
5012 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5013 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5014 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5015
da75761f 5016 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5017 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5018 OUTER_P.
5019 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5020 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5021 if vector_ret_p is true.
5022 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5023
a6eeaa81 50242004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5025
5026 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5027 basename of FILE relative to it, not FILE itself.
5028
09721b31
KH
50292004-02-02 Kenichi Handa <handa@m17n.org>
5030
5031 * coding.c (coding_restore_composition): Check invalid
5032 composition data more rigidly.
5033
eb996101
LT
50342004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5035
5036 * fileio.c (Fread_file_name_internal): Correctly handle the case
5037 where insert-default-directory is nil.
5038 (Fread_file_name): Always return an empty string if the user exits
5039 with an empty minibuffer. Adapt the docstring accordingly.
5040 (syms_of_fileio): Adapt the docstring of insert-default-directory
5041 to the change in Fread_file_name.
5042
a6eeaa81 50432004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5044
5045 * alloca.c [!alloca]: Fix the prototype for xfree.
5046
13f52ed8
KH
50472004-01-29 Kenichi Handa <handa@m17n.org>
5048
5049 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5050 (string_byte_to_char): Likewise.
5051
d57625a0
JR
50522004-01-28 Peter Runestig <peter@runestig.com>
5053
5054 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5055
a64387ee 50562004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5057
5058 * unexmacosx.c (unexec_copy): Do not copy more than was
5059 requested to prevent overwriting during unexec.
5060
eb37b8fd
JD
50612004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5062
ce38070a
JD
5063 * process.c (sigchld_handler): Add comment about not calling malloc.
5064
eb37b8fd
JD
5065 * process.h: Add extern to synch_process_termsig.
5066
a64387ee 50672004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5068
da75761f
SM
5069 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5070 Move setting of scroll bars from make_mac_frame to
5071 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5072
d62a265d
RS
50732004-01-26 Richard M. Stallman <rms@gnu.org>
5074
5075 * search.c (Freplace_match): Handle nonexistent
5076 back-references properly.
5077
50782004-01-03 Richard M. Stallman <rms@gnu.org>
5079
5080 * window.c (decode_any_window): New function.
5081 (Fwindow_height, Fwindow_width, Fwindow_edges)
5082 (Fwindow_pixel_edges, Fwindow_inside_edges)
5083 (Fwindow_inside_pixel_edges): Use decode_any_window.
5084
ff236419
JD
50852004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5086
5087 * process.h: synch_process_termsig new variable.
5088
5089 * callproc.c: Define synch_process_termsig.
5090 (Fcall_process): Initiate synch_process_termsig to zero and
5091 check if non-zero and get signal name after subprocess has ended.
5092
5093 * process.c (sigchld_handler): Set synch_process_termsig
5094 if terminated by a signal. synch_process_death setting removed.
5095
5096 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5097
41b867ea
AS
50982004-01-26 Andreas Schwab <schwab@suse.de>
5099
5100 * print.c (print_preprocess): Declare size as EMACS_INT to not
5101 lose bits.
5102 (print_object): Likewise.
5103 * alloc.c (Fpurecopy): Likewise.
5104
a08084ff
LT
51052004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5106
5107 * window.c (Fwindow_minibuffer_p): Doc fix.
5108
b19ac475
JY
51092004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5110
5111 * editfns.c (Fformat): Make both passes accept the same set of flags.
5112
fe905025
KH
51132004-01-23 Kenichi Handa <handa@m17n.org>
5114
5115 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5116 one, set buffer to OBJECT temporarily.
5117
438fc6c0
SM
51182004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5119
455316e2
SM
5120 * keyboard.c (kbd_buffer_gcpro): Remove.
5121 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5122 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5123 Don't initialize and/or maintain the variable any more. It was made
5124 redundant by my commit of 2003-06-15.
5125
438fc6c0
SM
5126 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5127
5335a4ee
JD
51282004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5129
5130 * lisp.h: Add undef DECL_ALIGN.
5131
dcdaeebc
SM
51322004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5133
5134 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5135 Check interrupt_input_pending explicitly.
5136
5137 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5138
5139 * keyboard.c (handle_async_input): New fun,
5140 extracted from input_available_signal.
5141 (input_available_signal, reinvoke_input_signal): Use it.
5142
9076a823
SM
51432004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5144
d7107586
SM
5145 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5146
5147 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5148 manipulation macros for when tags are in the lower bits.
5149 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5150 (DECL_ALIGN): New macro.
5151 (DEFUN): Use it.
5152
5153 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5154
5155 * s/darwin.h (__attribute__): Remove outdated workaround.
5156
5157 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5158
5159 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5160 Don't check range of malloc address.
5161 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5162
9076a823
SM
5163 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5164
5165 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5166
ba029065
KH
51672004-01-19 Kenichi Handa <handa@m17n.org>
5168
5169 * fontset.c (fontset_font_pattern): Fix previous change.
5170
7af0e8d7
MB
51712004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5172
5173 * xdisp.c (Voverflow_newline_into_fringe)
5174 (move_it_in_display_line_to, redisplay_internal)
5175 (update_window_fringes, redisplay_window, display_line, window):
5176 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5177 that it compiles without a window-system.
5178 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5179
77a9cf69
KS
51802004-01-16 Kim F. Storm <storm@cua.dk>
5181
5182 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5183
a64387ee 5184 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5185 buffer_local_flags for indicate_buffer_boundaries.
5186 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5187 default- variable for it.
5188
5189 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5190 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5191 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5192 overflowing newlines into right fringe.
5193 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5194 and indicate_bottom_line_p for buffer boundaries and scrolling.
5195 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5196 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5197 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5198 and HOLLOW_SQUARE_BITMAP.
5199 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5200 Add prototypes.
5201
5202 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5203 instead of related indicator fields.
5204 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5205 (direct_output_for_insert): Handle exact width lines like
5206 contined lines. Call update_window_fringes.
5207 (update_window): Call update_window_fringes.
5208 (scrolling_window): Don't skip desired rows with changed bitmaps.
5209 Check if fringe bitmaps changes when assigning scrolled rows.
5210
5211 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5212 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5213 (move_it_in_display_line_to): Overflow newline into fringe for
5214 rows that are exactly as wide as the window.
5215 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5216 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5217 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5218 (fringe_bitmaps): Add new bitmaps.
5219 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5220 Select proper bitmap for cursor in fringe when appropriate.
5221 Handle alignment of bitmap to top or bottom of row.
5222 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5223 done by update_window_fringes.
5224 (update_window_fringes, draw_window_fringes): New functions.
5225 (redisplay_internal): Call update_window_fringes in case only
5226 cursor row is updated.
5227 (redisplay_window): Call update_window_fringes.
5228 Explicitly call draw_window_fringes if redisplay was done using
5229 the current matrix or the overlay arrow is in the window.
5230 (try_window_reusing_current_matrix): Mark scrolled rows for
5231 fringe update (to update buffer-boundaries / scrolling icons).
5232 (find_last_unchanged_at_beg_row): Handle exact width lines line
5233 continued lines.
5234 (display_line): Overflow newline into fringe for rows that are
5235 exactly as wide as the window. Don't append space for newline
d7107586 5236 in this case.
77a9cf69
KS
5237 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5238 in fringe as if it had been overwritten.
5239 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5240 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5241 void-text-area-pointer as user options.
5242 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5243
77a9cf69
KS
5244 * xterm.c (x_update_window_end): Call draw_window_fringes.
5245 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5246 in row instead of actually drawing fringe bitmaps.
5247 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5248 (x_draw_window_cursor): Draw cursor in fringe.
5249
5250 * w32term.c (x_update_window_end): Call draw_window_fringes.
5251 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5252 in row instead of actually drawing fringe bitmaps.
5253 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5254 (w32_draw_window_cursor): Draw cursor in fringe.
5255
5256 * macterm.c (x_update_window_end): Call draw_window_fringes.
5257 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5258 in row instead of actually drawing fringe bitmaps.
5259 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5260 (mac_draw_window_cursor): Draw cursor in fringe.
5261
a633a954
JD
52622004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5263
5264 * xterm.c (handle_one_xevent): Don't handle characters that are part
5265 of an old style (XLookupString) compose sequence.
5266
80460525
KH
52672004-01-15 Kenichi Handa <handa@m17n.org>
5268
5269 * search.c (Freplace_match): Use make_multibyte_string or
5270 make_unibyte_string according to the buffer multibyteness.
5271
7fc34f85
SM
52722004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5273
5274 * alloc.c (struct interval_block, struct string_block)
5275 (struct symbol_block, struct marker_block, live_string_p)
5276 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5277 Better preserve alignment for objects in blocks.
5278 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5279
5280 * lread.c (defvar_per_buffer): Remove dead declaration.
5281
5282 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5283 space size.
5284
66070bd1
JD
52852004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5286
5287 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5288 if a key press should pop down. Only pop down if a key is pressed
5289 outside the menu/dialog.
5290 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5291 popup_get_selection.
5292 (create_and_show_dialog): Pass 1 for down_on_keypress to
5293 popup_get_selection.
5294
de7515d6
JD
52952004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5296
5297 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5298 BLOCK/UNBLOCK_INPUT.
5299
160b1b50
JD
53002004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5301
5302 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5303 specified.
5304
3a9f36e6
KH
53052004-01-08 Kenichi Handa <handa@m17n.org>
5306
5307 * editfns.c (Fformat): Fix '&' to '&&'.
5308
3803eb32
AS
53092004-01-08 Andreas Schwab <schwab@suse.de>
5310
5311 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5312 size if PSEUDOVECTOR_FLAG is set.
5313
9da88f37
KH
53142004-01-07 Kenichi Handa <handa@m17n.org>
5315
74ac5074
KH
5316 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5317
9da88f37
KH
5318 * fontset.c (fontset_ref_via_base): Fix previous change.
5319
05faee07
KS
53202004-01-07 Kim F. Storm <storm@cua.dk>
5321
5322 * process.c (read_process_output): Only activate adaptive
5323 buffering if we read less than 256 bytes at a time.
5324
634910c8
KS
53252004-01-06 Kim F. Storm <storm@cua.dk>
5326
5327 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5328 object and image object. Return glyph width and height.
5329 (mode_line_string, marginal_area_string): Ditto.
5330
5331 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5332 (marginal_area_string): Fix prototypes.
5333
5334 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 5335 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
5336 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5337
5338 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5339 buffer_posn_from_coords, and marginal_area_string functions to
5340 include both string object and image object in the lispy position.
5341 Also add actual glyph width and height to position.
5342 (read_key_sequence): Use real buffer position from mouse
5343 event to find keymap property even when click is in marginal area.
5344
5345 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5346 mode_line_string and marginal_area_string functions to handle
5347 both string object and image object properties.
d7107586 5348
57951c2e
AS
53492004-01-06 Andreas Schwab <schwab@suse.de>
5350
5351 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5352 character.
5353
181e6a61
AS
53542004-01-02 Andreas Schwab <schwab@suse.de>
5355
d7107586
SM
5356 * macterm.c (emacs_options, x_initialized, same_x_server):
5357 Remove unused (and duplicated) definitions.
181e6a61 5358
31e0fbdd
KS
53592004-01-02 Kim F. Storm <storm@cua.dk>
5360
5361 * process.h (struct Lisp_Process): New members for adaptive read
5362 buffering: adaptive_read_buffering, read_output_delay, and
5363 read_output_skip.
5364
5365 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5366 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5367 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5368 (process_output_delay_count, process_output_skip): New vars.
5369 (Vprocess_adaptive_read_buffering): New variable.
5370 (make_process): Initialize adaptive read buffering members.
5371 (Fstart_process): Set adaptive_read_buffering member.
5372 (deactivate_process): Cleanup adaptive read buffering.
5373 (wait_reading_process_input): Temporarily omit delayed
5374 subprocesses from the set of file descriptors to read from;
5375 adjust the select timeout if we skipped any subprocesses.
5376 (read_process_output): Increase adaptive read buffering delay if
5377 we read less than a full buffer; reduce delay when we read a
5378 full buffer.
5379 (send_process): Simplify using local Lisp_Process var.
5380 Reset adaptive read buffering delay after write.
5381 (init_process): Initialize process_output_delay_count and
5382 process_output_skip.
5383 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5384
68c6a789
JR
53852004-01-01 Jason Rumney <jasonr@gnu.org>
5386
d7107586 5387 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 5388
3f70fe82
LT
53892003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5390
5391 * print.c (Ferror_message_string): Add hyperlink in the docstring
5392 to the definition of `signal' in the Elisp manual.
5393 * eval.c (Fsignal): Ditto.
5394
b6189c3b 53952003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
5396
5397 * fns.c (internal_equal): Return t for two NaN arguments.
5398
7abd90ea
RS
53992003-12-29 Richard M. Stallman <rms@gnu.org>
5400
5401 * data.c (store_symval_forwarding): Handle setting
5402 default-fill-column, etc., by changing the value in
5403 buffers that use the default.
5404
5405 * minibuf.c (Fset_minibuffer_window): Doc fix.
5406
5407 * fileio.c (choose_write_coding_system): Ignore auto_saving
5408 if using the visited file for auto saves.
5409 (Fwrite_region): Don't update SAVE_MODIFF
5410 if auto-saving in visited file.
5411
3e7cfcdc
KH
54122003-12-29 Kenichi Handa <handa@m17n.org>
5413
5414 * dispextern.h (face_font_available_p): Extern it.
5415
5416 * fontset.c (Voverriding_fontspec_alist): New variable.
5417 (lookup_overriding_fontspec): New function.
d7107586 5418 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
5419 (fontset_font_pattern): Likewise.
5420 (regulalize_fontname): New function.
5421 (Fset_fontset_font): Call regulalize_fontname.
5422 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
5423 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5424 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
5425
5426 * xfaces.c (face_font_available_p): New function.
5427
7abd90ea
RS
54282003-12-28 Richard M. Stallman <rms@gnu.org>
5429
5430 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5431 or if its name is nil.
5432
5433 * buffer.c (Fkill_buffer): Don't delete auto-save file
5434 if it's the same as the visited file.
5435
de1d1a40
LT
54362003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5437
5438 * coding.c (Fcheck_coding_system): Doc fix.
5439
204fb75e
KS
54402003-12-28 Kim F. Storm <storm@cua.dk>
5441
5442 * Makefile.in (eval.o): Depend on dispextern.h.
5443
5444 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5445 image glyph using image's ascent.
5446 (mode_line_string): Return image glyph as object clicked on.
5447 Adjust y0 for image glyph using image's ascent.
5448
5449 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5450 (struct glyph): New members, ascent and descent. Used to save
5451 this glyph's ascent and descent, instead of having.
5452 (struct glyph): Declare member face_id using FACE_ID_BITS.
5453 (find_hot_spot): Add prototype.
5454
5455 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5456 (QCmap): Declare extern.
5457 (make_lispy_position): When position is inside image hot-spot,
5458 use hot-spot element's id as posn element.
5459
5460 * lisp.h (IMAGEP): New macro to test for image object type.
5461 (Qimage): Declare extern.
5462
5463 * macfns.c (Qimage): Remove extern (now in lisp.h).
5464 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5465
5466 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5467
5468 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5469 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5470
5471 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5472
5473 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5474
5475 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5476 pointer types.
5477 (Qrelative_width, Qalign_to): Remove unused variables.
5478 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5479 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5480 image maps.
d7107586 5481 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
5482 new dx and dy args.
5483 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5484 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5485 than row's ascent and height, to get sensible height on tall rows.
5486 (build_desired_tool_bar_string): Remove Qimage extern.
5487 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5488 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5489 image glyph is alone on the last line.
5490 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5491 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5492 (on_hot_spot_p): New function to check if position is inside an
d7107586 5493 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5494 (find_hot_spot): New function to search for image hot-spot.
5495 (Flookup_image_map): New defun to search for image hot-spot.
5496 (define_frame_cursor1): New aux function to determine frame pointer.
5497 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5498 Handle `pointer' text property and :pointer image property to
5499 control frame pointer shape. Detect image hot-spots for pointer
5500 and help_echo properties. Use define_frame_cursor1.
5501 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5502 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5503 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5504
5505 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5506
5507 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5508 (Qimage): Remove extern (now in lisp.h).
5509 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5510
5511 * xmenu.c (show_help_event): Remove unused code.
5512
5513 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5514 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5515 row's ascent and descent, to get a sensible height on tall rows.
5516
fc052137
LT
55172003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5518
5519 * minibuf.c (Fcompleting_read): Undo previous change.
5520
a64387ee 55212003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5522
5523 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5524 Arguments GCPRO'ed in call to file name handler.
5525
56ffd194
TTN
55262003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5527
5528 * termcap.c (tgetst1): Scan for "%pN"; if all
5529 N are continuous in [1,9], remove all "%pN".
5530
5202d23d
JD
55312003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5532
f26fab36
JD
5533 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5534
5202d23d
JD
5535 * xfaces.c (lface_fully_specified_p): Take into account that
5536 MAC OS always have unspecified stipple.
5537
8babaa59
TTN
55382003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5539
5540 * tparam.c (tparam1): Add handling for `%pN', which
5541 means use param N for the next substitution.
5542
2d176448
TTN
55432003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5544
5545 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5546 In case `frame' is nil, consult the selected frame.
5547 (Fcolor_supported_p): Likewise.
5548
adb0708c
LT
55492003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5550
000eeb15
LT
5551 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5552 Doc fixes.
0dc72b11
LT
5553
5554 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5555 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5556 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5557 Doc fix.
5558 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5559 read_minibuf.
5560 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5561 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5562
2e4d132b
KH
55632003-12-03 Kenichi Handa <handa@m17n.org>
5564
5565 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5566 encoding sequence.
5567
3999c705
KH
55682003-12-01 Kenichi Handa <handa@m17n.org>
5569
5570 * composite.c (syms_of_composite): Don't make the compostion hash
5571 table week.
5572
d344ecbb
LT
55732003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5574
5575 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5576 * textprop.c (Fget_char_property_and_overlay): New function.
5577 (syms_of_textprop): Defsubr it.
5578
03d6484e
JD
55792003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5580
019b1f0e
JD
5581 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5582 to compile on terminal configuration.
5583
03d6484e
JD
5584 * fileio.c (Fread_file_name): Check use_file_dialog also before
5585 calling Fx_file_dialog.
5586
5587 * fns.c: use_file_dialog: New variable.
5588 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5589
442d3fd0
KS
55902003-11-29 Kim F. Storm <storm@cua.dk>
5591
5592 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5593 (syms_of_msdos): Don't intern and staticpro them.
5594
0f6a07a8
KS
55952003-11-27 Kim F. Storm <storm@cua.dk>
5596
5597 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5598 coordinates relative to glyph at posn. If glyph is an image,
5599 return that as object at posn. Callers changed.
5600 (mode_line_string, marginal_area_string): Calculate and return
5601 pixel coordinates relative to glyph. Callers changed.
5602
5603 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5604 (marginal_area_string): Fix prototypes.
5605 (window_box_left_offset, window_box_right_offset): Add prototypes.
5606
5607 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5608 Remove prototypes.
5609
5610 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5611
5612 * keyboard.c (make_lispy_position): Add x and y coordinates
5613 relative to the current glyph as 7th element of position.
5614 If glyph is an image, return it in the object element.
5615 (read_key_sequence): Skip checks for keymap property in cases
5616 where POSN_STRING is not a string (e.g. an image).
5617
5618 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5619 (Vshow_text_cursor_in_void): New variable.
5620 (glyph_to_pixel_coords): Don't use negative hpos.
5621 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5622 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5623 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5624 (calc_pixel_width_or_height): New aux function, implementing
5625 pixel based artihmetic for glyph widths and heights.
5626 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5627 :width, :height, :align-to, and :ascent, thus allowing these to
5628 be specified in pixels as well as multiples of characters.
5629 Don't produce stretch glyphs with zero width or height.
5630 (get_specified_cursor_type): Declare static.
5631 (get_window_cursor_type): Declare static. Add glyph arg to be
5632 able to know when cursor is on an image; always substitute
5633 hollow-box cursor for filled-box cursor on images, to avoid
5634 negative images and flicker when blinking the cursor.
5635 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5636 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5637 than vertical scroll-bar cursor in display margins.
5638 (note_mouse_highlight): Use non-text cursor rather than text
5639 cursor in fringes and over images in the text area.
5640 Use non-text cursor when mouse pointer is outside editable text,
5641 i.e. in the void after end-of-line or end-of-buffer; this was
5642 already done for W32, but is now standard for all systems --
5643 user can toggle show-text-cursor-in-void to get old behaviour.
5644 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5645 Vdisplay_pixels_per_inch.
5646
00498bfc
AS
56472003-11-25 Andreas Schwab <schwab@suse.de>
5648
5649 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5650 EMACS_INT to not lose bits.
5651 (Ffillarray): Don't set bits beyond the size of a bool vector.
5652
edaa824d
KS
56532003-11-25 Kim F. Storm <storm@cua.dk>
5654
5655 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5656 define this defun on systems that cannot use stderr as lvalue.
5657
74d6f539
GM
56582003-11-24 Gerd Moellmann <gerd@gnu.org>
5659
5660 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5661 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5662 ld's default is incompatible with unexec.
5663
6a1ff3ba
KS
56642003-11-23 Kim F. Storm <storm@cua.dk>
5665
63dc7c6b
KS
5666 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5667 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5668 (Fforce_window_update): New defun.
5669 (syms_of_window): Defsubr it.
5670 (Fset_window_margins, Fset_window_fringes): Doc fix.
5671
6a1ff3ba
KS
5672 * print.c (Fredirect_debugging_output): New defun.
5673 (syms_of_print): Defsubr it.
5674
aef109b7
LT
56752003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5676
5677 * fns.c (Fset_char_table_parent): Doc fix.
5678
6a1ff3ba 56792003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5680
5681 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5682 for glyph clicked on, rather than (unused) pixel positions.
5683 (mode_line_string, marginal_area_string): Change X and Y args to
5684 pointers for returning actual row/column for glyph clicked on.
5685 Simplify and optimize loops.
5686
aef109b7
LT
5687 * dispextern.h (mode_line_string, marginal_area_string):
5688 Update prototypes.
63ccbe21
KS
5689
5690 * keyboard.c (make_lispy_position): New function for generating
5691 mouse click positions from frame and pixel coordinates.
5692 Enhanced to return buffer position and actual row/column for
5693 events outside the text area using updated mode_line_string and
5694 marginal_area_string functions.
5695 Return left-fringe and right-fringe clicks as such, rather than
5696 clicks in text area.
5697 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5698 pixel_to_glyph_coords, as we never use the results.
5699 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5700 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5701 Eliminate unused code in WHEEL_EVENT handling.
5702 (make_lispy_movement): Use make_lispy_position.
5703
5704 * window.c (coordinates_in_window): Remove redundant tests.
5705 Fix returned X pixel value for left-margin.
5706
5707 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5708 mode_line_string and marginal_area_string parameters.
5709
a64387ee 57102003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5711
d7107586
SM
5712 * w32.c (struct the_group, getgrgid): Add.
5713 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5714
3dbf3426
LT
57152003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5716
5717 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5718
cae8ddbb 57192003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5720
d7107586
SM
5721 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5722 include in call to file name handler. Optionally translate numeric
5723 UID and GID to strings. Update docstring.
5724 (directory_files_internal): Add parameter ID-FORMAT.
5725 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5726 include in call to file name handler and call to
5727 directory_files_internal. Update Docstring.
5728 (Fdirectory_files): Add dummy parameter in call to
5729 directory_files_internal.
5730 * lisp.h (Qinteger): Add.
5731 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5732 (Ffile_attributes): Add parameter.
5733 * data.c (Qinteger): Export.
cae8ddbb 5734
2550b848
LT
57352003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5736
3dbf3426 5737 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5738
88380018
KS
57392003-11-19 Kim F. Storm <storm@cua.dk>
5740
5741 * xdisp.c (init_iterator): Initialize it->start to position
5742 before reseating (in case start position is invisible).
5743 (init_to_row_start): Set it->start to row-start.
5744 (redisplay_window): Accept optional_new_start if start position
5745 is invisible (in which case IT_CHARPOS overshoots PT).
5746 (display_line): Setup row->start from it->start (rather than
5747 it->current which is wrong if first char on line is invisible).
5748 When done, reseat it->start to it->current (= start of next row).
5749 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5750 is only partially visible.
5751
5752 * dispextern.h (struct it): New member start.
5753
854c1a59
SM
57542003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5755
455316e2
SM
5756 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5757 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5758 of block_index outside of the macro call.
5759 (Fgarbage_collect): Remove null code.
5760
5761 * m/amdx86-64.h: Don't redefine XPNTR.
5762
854c1a59
SM
5763 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5764 of VALMASK.
5765
5766 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5767 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5768 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5769
5770 * lisp.h (VALMASK): Only define for non-union type.
5771 (MARKBIT): Remove.
5772 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5773 (XTYPE): Define unconditionally.
5774 (XSETTYPE): Remove one more remnant.
5775 (EQ): Define differently for the union and non-union cases.
5776 (INTMASK): New bit mask.
5777 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5778 (GC_EQ): Delegate to EQ.
5779
5780 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5781
a0c6ef2d
JD
57822003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5783
5784 * xterm.c (x_window_to_scroll_bar): Move check of display to
5785 where window_id is compared.
5786
859492c4
KS
57872003-11-17 Kim F. Storm <storm@cua.dk>
5788
5789 * dispextern.h (struct it): New member first_vpos.
5790
5791 * xdisp.c (start_display): Set it->first_vpos.
5792 (try_window_id): Use first_vpos to start display in first _text_
5793 line if no reusable lines at start of window with header line.
5794
810f2256
JD
57952003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5796
7c402969 5797 * w32fns.c (XPutPixel):
854c1a59
SM
5798 * w32bdf.c (w32_init_bdf_font):
5799 * sunfns.c (sel_read):
5800 * process.c (Fmake_network_process):
5801 * frame.c (store_frame_param):
5802 * fontset.c (Fset_fontset_font):
5803 * emacs.c (shut_down_emacs):
a64387ee 5804 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5805
a32e9bfd
JD
5806 * config.in: Regenerate.
5807
810f2256
JD
5808 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5809 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5810 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5811 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5812 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5813
5814 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5815
5816 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5817 (XTmouse_position, handle_one_xevent): Pass Display* to
5818 x_window_to_scroll_bar.
5819 (x_window_to_scroll_bar): Take a Display* argument.
5820 Check that display for frame is equal to Display* argument.
854c1a59 5821 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5822 x_display_info_for_display instead. Use Display in xev instead
5823 of GDK_DISPLAY.
5824 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5825 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5826 (x_connection_closed): Call xg_display_close for GTK.
5827 (x_term_init): Call xg_display_open for additional displays.
5828 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5829 for GTK.
5830
5831 * xmenu.c (single_menu_item, mouse_position_for_popup)
5832 (x_activate_menubar): Formatting adjustments.
5833
5834 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5835 adjustments.
5836
5837 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5838 (xg_display_close, xg_create_default_cursor)
5839 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5840 handling.
854c1a59
SM
5841 (xg_left_ptr_cursor): Remove.
5842 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5843 cursor here.
5844 (xg_win_to_widget): Take Display* argument, call
5845 gdk_xid_table_lookup_for_display.
5846 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5847 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5848 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5849 in FRAME_X_DISPLAY_INFO.
5850 (xg_get_scroll_id_for_window): Take Display* argument.
5851 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5852 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5853
78819ebb
KS
5854 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5855 Display* argument.
5856 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5857
0b03cc78
JD
58582003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5859
5860 * xterm.c (x_detect_focus_change): Do not change focus frame for
5861 Enter/LeaveNotify if the current focus frame has explicit focus.
5862
77e688fa
KS
58632003-11-14 Kim F. Storm <storm@cua.dk>
5864
5865 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5866 is active and first glyph is only partially visible.
854c1a59 5867
dd429b03
KH
58682003-11-13 Kenichi Handa <handa@m17n.org>
5869
5870 * xdisp.c (select_frame_for_redisplay): New function.
5871 (redisplay_internal): Record also selected_frame for
5872 unwind_redisplay. Call select_frame_for_redisplay before
5873 redrawing each frame.
5874 (unwind_redisplay): Argument changed to a cons.
5875
6d9266f4
LT
58762003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5877
5878 * fns.c (Fstring_to_multibyte): Doc fix.
5879
80060eb3
KH
58802003-11-11 Kenichi Handa <handa@m17n.org>
5881
5882 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5883
74305183
JD
58842003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5885
5886 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5887 program specified positions.
5888
cfda993e
JD
58892003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5890
5891 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5892
df211069
KH
58932003-11-08 Kenichi Handa <handa@m17n.org>
5894
5895 * Makefile.in (lisp): Add kannada.el.
5896 (shortlisp): Likewise.
5897
4307d534
KH
58982003-11-07 Kenichi Handa <handa@m17n.org>
5899
854c1a59
SM
5900 * coding.c (coding_allocate_composition_data):
5901 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5902 (coding_restore_composition): Detect invalid composition data.
5903 Give Fstring and Fvector a Lispy integer, not C int.
5904
854c1a59
SM
59052003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5906
5907 * floatfns.c (Flogb): Don't use VALMASK.
5908
5909 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5910 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5911
5912 * lisp.h (XINT): Move the cast to clarify what is going on.
5913 (GCTYPEMASK, XSETTYPE): Remove.
5914 (XGCTYPE): Make it an alias of XTYPE.
5915
d04103a1
JD
59162003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5917
5918 * xterm.c (x_term_init): Fix formatting.
5919
da18b5ac
JD
59202003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5921
78819ebb
KS
5922 * gtkutil.h (xg_have_tear_offs): Declare.
5923 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5924
5925 * gtkutil.c: Remove variable xg_did_tearoff.
5926 (xg_have_tear_offs): New function.
5927 (tearoff_remove): Just decrease xg_detached_menus.
5928 (tearoff_activate): Increase xg_detached_menus and call
5929 tearoff_remove when tearoff is removed.
854c1a59 5930 (xg_keep_popup): Remove function.
da18b5ac
JD
5931 (create_menus): Give add_tearoff_p as argument to recursive
5932 call to create_menus.
5933 (xg_create_widget): Use variables instead of multiple
5934 strcmp. Tell create_menus to create tear off only for
5935 menu bar menus.
5936 (xg_update_menubar): Change title for a detached menu also.
5937 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5938 of deep_p.
5939 (xg_initialize): Initialize xg_detached_menus, remove
5940 initialization of xg_did_tearoff.
5941
5942 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5943 xg_have_tear_offs returns non-zero.
5944 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5945 call to xg_keep_popup.
5946
64d4923e
AC
59472003-11-01 Andrew Choi <akochoi@shaw.ca>
5948
5949 * macterm.c (XTread_socket): Handle menubar selection and grow
5950 window only for mouseDown events.
854c1a59 5951
6cc8bc07
JD
59522003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5953
5954 * xterm.c (x_term_init): For GTK part, increase x_initialized
5955 to check for more than one display. Use error instead of return 0.
5956
043131c4
AC
59572003-10-31 Andrew Choi <akochoi@shaw.ca>
5958
854c1a59 5959 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
5960 (copy_dysymtab): Call it.
5961
bdda99a1
LT
59622003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5963
5964 * eval.c (Fdefvaralias): Doc fix.
5965
800f42ff 59662003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
5967
5968 * data.c (Fsetplist): Doc fix.
5969
ef35b389
LK
59702003-10-14 Lute Kamstra <lute@gnu.org>
5971
5972 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 5973
ef35b389 59742003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 5975
07107abc
KS
5976 * window.c (Fset_window_margins): Simplify arg checking.
5977
f7005886
RS
59782003-10-13 Richard M. Stallman <rms@gnu.org>
5979
5980 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5981 (print_partial_compiled_pattern): Replace assert with a printout.
5982 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5983
5984 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5985
5986 * window.c (Fset_window_margins): Allow only integers as args.
5987 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5988 Doc fixes.
5989
9c0c2af5
LK
59902003-10-13 Lute Kamstra <lute@gnu.org>
5991
5992 * window.c (Fset_window_fringes): Elaborate docstring.
5993
3f080e4e
AC
59942003-10-12 Andrew Choi <akochoi@shaw.ca>
5995
854c1a59 5996 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5997
3f080e4e
AC
5998 * s/darwin.h (GC_MARK_STACK): Define.
5999
0aa513ed
JD
60002003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6001
6002 * window.c (shrink_windows): New function.
6003 (size_window): Call shrink_windows to calculate window sizes when
6004 shrinking frame with more than one window.
6005
6aa8858a
KS
60062003-10-12 Kim F. Storm <storm@cua.dk>
6007
6008 * xdisp.c (compute_fringe_widths): Doc fix.
6009
c2164d91
KH
60102003-10-08 Kenichi Handa <handa@m17n.org>
6011
854c1a59 6012 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6013
f82ac129
KH
60142003-10-07 Kenichi Handa <handa@m17n.org>
6015
6016 * coding.c (Qcoding_system_define_form): New variable.
6017 (syms_of_coding): Intern and staticpro it.
6018 (Fcheck_coding_system): Try to autoload the definition of
6019 CODING-SYSTEM.
6020
9296c947
LT
60212003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6022
6023 * fns.c (Frequire): Doc fix.
6024
c1f0671a
JD
60252003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6026
3d8c3826
JD
6027 * xfns.c (Fx_send_client_event): New function as a base for
6028 manipulating extended window manager hints.
6dc15d98 6029 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6030
068ae0fd
JD
6031 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6032 that function is removed.
6033
6034 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6035 x/y_pixels_outer_diff.
6036 (x_check_expected_move): Calculate move_offset_left/top.
6037
6038 * xterm.h (struct x_output): New members: move_offset_top/left.
6039
854c1a59 6040 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6041 call x_set_offset directly.
6042
6043 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6044
96f09305
JD
6045 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6046
6047 * xterm.c (x_delete_display): Free font names and font_encoder
6048 in dpyinfo->font_table.
6049
854c1a59
SM
6050 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6051 Move xfree of font names to x_delete_display.
96f09305 6052
c1f0671a
JD
6053 * xterm.h (struct x_display_info): New member, wm_type.
6054 (struct x_output): New members, expected_top/left and
6055 check_expected_move.
6056
6057 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6058 is received.
854c1a59
SM
6059 (handle_one_xevent): Rename x_check_expected_move from
6060 x_check_fullscreen_move.
c1f0671a
JD
6061 (x_set_offset): Only add WM decoration sizes to modified_top/left
6062 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6063 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6064 Removed fullscreen specific code. Use check_expected_move,
6065 expected_left/top instead. Also, set wm_type.
6066 (x_term_init): Initialize wm_type to unknown.
6067
6068 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6069 sizes to move_x/y.
6070
be2fdba9
KH
60712003-10-03 Kenichi Handa <handa@m17n.org>
6072
6073 * macterm.c (x_load_font): Clear all members of FONTP before start
6074 filling them.
6075
60762003-10-02 Kenichi Handa <handa@m17n.org>
6077
6078 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6079 before calling find_ccl_program_func. Call find_ccl_program_func
6080 only when fontp->font_encoder is not NULL.
6081
6082 * xterm.c (x_load_font): Clear all members of FONTP before start
6083 filling them.
6084
26a6e439
JPW
60852003-10-03 John Paul Wallington <jpw@gnu.org>
6086
6087 * keymap.c (map_keymap): Don't abort when binding is a vector.
6088
0d4c2dc2
JR
60892003-10-02 Jason Rumney <jasonr@gnu.org>
6090
854c1a59
SM
6091 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6092 Sync dependencies with Makefile.in.
a63cf46f
JR
6093 (alloca.o): Remove.
6094
0d4c2dc2
JR
6095 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6096 filling them.
6097
6098 * w32bdf.c (w32_load_bdf_font): Likewise.
6099
ab8f7d5c
RS
61002003-09-30 Richard M. Stallman <rms@gnu.org>
6101
6102 * term.c (set_tty_color_mode): Calculate current_mode_spec
6103 regardless of value of VAL.
6104
854c1a59 6105 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6106 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6107 Handle over_used when splitting UNDER.
6108
a64387ee 61092003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6110
6111 * regex.c (regex_compile): Free the stack when returning from function.
6112
3413f972
KH
61132003-09-28 Kenichi Handa <handa@m17n.org>
6114
6115 * fontset.c (Finternal_char_font): Change return value to
6116 cons (FONT-NAME . GLYPH-CODE).
6117
a6eeaa81 61182003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6119
6120 * term.c (tty_setup_colors): Treat any negative argument as -1.
6121
f98ddc99
KH
61222003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6123
6124 * process.c (send_process): Delete unused temp_buf.
6125
66c8f1a8
DL
61262003-09-26 Dave Love <fx@gnu.org>
6127
6128 * xterm.c (x_bitmap_mask): Declare.
6129
ca716c26
DL
61302003-09-25 Dave Love <fx@gnu.org>
6131
6132 * Makefile.in (fns.o): Depend on md5.h.
6133
fbe57420
KS
61342003-09-25 Kim F. Storm <storm@cua.dk>
6135
6136 * window.c (set_window_buffer): Fix redisplay problems when
6137 switching between buffers with different display margin widths.
6138
ef6ae4ff
KS
61392003-09-23 Kim F. Storm <storm@cua.dk>
6140
6141 * process.c (set_socket_option): Fix :bindtodevice option.
6142 (Fset_network_process_option): Update process contact list when
6143 setting option succeeds.
6144 (Fmake_network_process): Doc fix.
6145
68e03c1c
DL
61462003-09-23 Dave Love <fx@gnu.org>
6147
7146d1c1 6148 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6149
a6eeaa81 61502003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6151
6152 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6153 color mode is an integer number (it could be -1).
6154
8fe7d8c8
RS
61552003-09-22 Richard M. Stallman <rms@gnu.org>
6156
6157 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6158 in the case where OVER is longer than UNDER.
6159
2f71b5ea
MY
61602003-09-22 Masatake YAMATO <jet@gyve.org>
6161
7146d1c1 6162 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6163 `vertical_type'.
7146d1c1 6164
0c4da023
KS
61652003-09-21 Kim F. Storm <storm@cua.dk>
6166
6167 * frame.c (Vdefault_frame_scroll_bars): New variable.
6168 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6169 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6170 window-system default scroll bar position.
6171
b648413b
KS
6172 * window.c (Fwindow_scroll_bars): Doc fix.
6173
8f5b9e34
JD
61742003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6175
854c1a59 6176 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6177
b0f23edf
RS
61782003-09-19 Richard M. Stallman <rms@gnu.org>
6179
6180 * atimer.h: Don't include lisp.h.
6181 (P_): Define it here (as well as elsewhere).
6182
6183 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6184 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6185
6186 * data.c (Fvariable_binding_locus): New function.
6187 (syms_of_data): defsubr it.
6188 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6189
e1283999
DL
61902003-09-18 Dave Love <fx@gnu.org>
6191
ad5f3636
DL
6192 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6193
e1283999
DL
6194 * process.c (Fnetwork_interface_info): Fix type error.
6195 (Fnetwork_interface_list): Doc fix.
6196 (read_process_output, read_process_output): Delete unused var.
6197
b8c7fd71
KS
61982003-09-17 Kim F. Storm <storm@cua.dk>
6199
6200 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6201 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6202 (Fnetwork_interface_info): Check that ifreq struct has required
6203 fields before accessing them; this requires that those fields are
6204 defined as macros, which may be too restrictive on some platforms,
6205 but it is better than failing on other platforms.
6206 (syms_of_process): Only defsubr above fns when included.
6207
11e0a411
DL
62082003-09-17 Dave Love <fx@gnu.org>
6209
6210 * unexalpha.c: Don't include varargs.h.
6211
e9c50801
KS
62122003-09-17 Kim F. Storm <storm@cua.dk>
6213
6214 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6215 for network process.
6216 (socket_options): Add `:' prefix to option names. Add optbit field.
6217 (set_socket_option): Remove no_error arg and special handling of s < 0.
6218 Return 1<<optbit for known option, 0 for unknown.
6219 Do not interpret 0 as false for boolean option (only nil).
6220 Pass failed option and value to report_file_error.
7146d1c1 6221 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6222 (Fset_network_process_option): New function to set just one option.
6223 (Fmake_network_process): Allow :coding arg to be a cons.
6224 Allow :server arg to be an integer specifying backlog size.
6225 Remove :options arg, and allow options to be specified directly
6226 as :KEY, VALUE pairs. Parse these options before binding socket.
6227 As before, :reuseaddr t is default for a server process, but this
6228 can now be disabled by specifying :reuseaddr nil.
6229 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6230 (init_process): Availability of network options is now checked with
6231 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6232 setup features.
6233 (syms_of_process): Fix defsubr's for the replaced functions.
6234
a0fc3644
DL
62352003-09-16 Dave Love <fx@gnu.org>
6236
6237 * Makefile.in: Depend on coding.h.
6238
6df2a645
KS
62392003-09-14 Kim F. Storm <storm@cua.dk>
6240
6241 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6242 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6243 (syms_of_process): Defsubr them.
6244
6245 * config.in: Regenerate.
7146d1c1
SM
6246
62472003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6248
6249 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6250 * m/news-r6.h (XUNMARK): Remove.
6251 * m/mips.h (XUNMARK): Remove.
6252 * m/mips-siemens.h (XUNMARK): Remove.
6253 * m/iris4d.h (XUNMARK): Remove.
6254 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6255
0930c1a1
SM
62562003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6257
31003b9e
SM
6258 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6259 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6260 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6261 (XTYPE): Use unsigned right-shift.
6262 (XMARKBIT, XMARK, XUNMARK): Remove.
6263
0930c1a1
SM
6264 * alloc.c (init_intervals, init_symbol, init_marker):
6265 Don't preallocate anything.
6266 (Fgarbage_collect, mark_object): Ignore the markbit.
6267
6268 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6269
19bb0fcd 62702003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6271
6272 * xdisp.c (pint2hrstr): New function.
6273 (decode_mode_spec): Add `%i' and `%I' specs.
6274 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6275 for `mode-line-format'.
6276
03bb6a06
AS
62772003-09-07 Andreas Schwab <schwab@suse.de>
6278
6279 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6280 avoid warning.
6281
a6eeaa81 62822003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6283
0930c1a1 6284 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6285
ed159bbf
KS
62862003-09-03 Kim F. Storm <storm@cua.dk>
6287
6288 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6289 change (superseded by 2002-08-30 change); the default blink-off
6290 cursor is now again "no cursor".
6291
fe64a394
JR
62922003-09-01 Jason Rumney <jasonr@gnu.org>
6293
6294 * makefile.w32-in (alloca.o): Remove.
6295 (coding.o): Depend on intervals.h
6296 (emacs.o, bytecode.o): Depend on window.h
6297
c0175e24
DL
62982003-09-01 Dave Love <fx@gnu.org>
6299
6300 * Makefile.in (alloca.o): Remove commands.
6301 (coding.o): Depend on intervals.h composite.h window.h.
6302 (emacs.o): Depend on window.h keyboard.h keymap.h.
6303 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6304 (bytecode.o): Depend on window.h.
6305
a24d4cb2
JR
63062003-08-31 Jason Rumney <jasonr@gnu.org>
6307
4bc2315e
JR
6308 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6309 returned even when font_type is unknown.
6310
a24d4cb2
JR
6311 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6312
9d35adc7
JD
63132003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6314
6315 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6316
6317 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6318 *_offset.
6319
6320 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6321 calculate pixel value.
6322
6f68b035
GM
63232003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6324
0930c1a1
SM
6325 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6326 Don't tell redisplay display is accurate when it's actually been
6327 paused for pending input.
6f68b035 6328
4828b4d7
RS
63292003-08-29 Richard M. Stallman <rms@gnu.org>
6330
6331 * dispnew.c (adjust_glyph_matrix): Call window_box
6332 whenever W is nonzero.
6333
6334 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6335 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 6336 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
6337 Use indirect_variable to trace thru variable aliases.
6338
6339 * config.in: Updated.
6340
6341 * callint.c (Fcall_interactively): Save and restore
6342 Vthis_command, Vthis_original_command, real_this_command,
6343 and current_kboard->Vlast_command.
6344
6345 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6346
e019878d
GM
63472003-08-29 Gerd Moellmann <gerd@gnu.org>
6348
6349 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6350
85478bc6
KH
63512003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6352
0930c1a1 6353 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
6354 (decode_coding_sjis_big5): Likewise.
6355
07ce82d3
JR
63562003-08-27 Jason Rumney <jasonr@gnu.org>
6357
d3703de3
JR
6358 * w32.c (sys_pipe): Protect against file descriptor overflow.
6359
ee4a01d1
JR
6360 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6361
07ce82d3
JR
6362 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6363
a64387ee 63642003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
6365
6366 * xfns.c (Vgtk_version_string): New variable.
6367 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6368
a6eeaa81 63692003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 6370
0930c1a1 6371 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 6372
5459e42a
EZ
6373 * Makefile.in (msdos.o): Depend on intervals.h.
6374
0930c1a1 6375 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 6376
231d6cfb
JD
63772003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6378
6379 * xterm.h (struct x_display_info): New fields: client_leader_window
6380 and Xatom_wm_client_leader.
6381
6382 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6383 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6384
6385 * xsmfns.c (create_client_leader_window): New function.
6386 (x_session_initialize): Call create_client_leader_window, take
6387 dpyinfo as argument.
6388
6389 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6390
6391 * Makefile.in (xsmfns.o): Add more depenedencies.
6392
afa88464
DL
63932003-08-21 Dave Love <fx@gnu.org>
6394
6395 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6396
f730033e
KH
63972003-08-21 Kenichi Handa <handa@m17n.org>
6398
6399 * term.c (term_init): Fix previous change; don't rely on the
6400 length of `buffer' if TERMINFO is defined.
6401
6dca786c
DL
64022003-08-20 Dave Love <fx@gnu.org>
6403
6404 * atimer.h: Include lisp.h.
6405
6406 * lisp.h (EMACS_LISP_H): New.
6407 (popup_activated_flag): Don't declare.
6408
6409 * alloca.c: Some merging with gnulib. Change logic and doc
6410 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6411 [DO_BLOCK_INPUT]: Don't include lisp.h.
6412 (xmalloc, xfree): Declare.
6413 (malloc): Don't declare.
6414
0930c1a1 6415 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
6416 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6417 atimer.h, blockinput.h.
6418
6419 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6420
78819ebb 6421 * alloca.s: Remove.
6dca786c 6422
3a06a6d9
RS
64232003-08-19 Gerd Moellmann <gerd@gnu.org>
6424
6425 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6426 use -lncurses.
6427
6428 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6429 FreeBSD returns something longer than 2044. Abort if the end of
6430 the buffer is overwritten.
6431
27eeee55
MB
64322003-08-19 Miles Bader <miles@gnu.org>
6433
6434 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6435
2f297815
GM
64362003-08-19 Gerd Moellmann <gerd@gnu.org>
6437
f4446bbf
GM
6438 * alloc.c (lisp_align_malloc): Check for memory full when
6439 allocating ablocks, which also avoids freeing a pointer into an
6440 ablocks structure.
6441
6442 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6443
0930c1a1 6444 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 6445
0e7d7aae
RS
64462003-08-16 Richard M. Stallman <rms@gnu.org>
6447
6448 * editfns.c (Fencode_time): Doc fix.
6449
64502003-08-16 David Ponce <david@dponce.com>
6451
6452 * fileio.c (Fwrite_region): Fix conditional expression to issue
6453 the right message.
6454
b6189c3b 64552003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
6456
6457 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 6458 Set default value to 1.
0e7d7aae 6459
5d551295
KH
64602003-08-15 Kenichi Handa <handa@m17n.org>
6461
6462 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6463 what autoscaled.
6464 (best_matching_font): Once we find a better scalable font, set
6465 non_scalable_has_exact_height_p to 1.
6466 (try_font_list): Call try_alternative_families to try any family
6467 with the given registry.
6468
1661e56b
AS
64692003-08-09 Andreas Schwab <schwab@suse.de>
6470
f29181dc
AS
6471 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6472
1661e56b
AS
6473 * print.c (print_string): Fix printing of multibyte string with
6474 nontrivial printcharfun.
6475
465aa50a
JD
64762003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6477
6478 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6479
6480 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6481
e430e5ba
KH
64822003-07-31 Kenichi Handa <handa@m17n.org>
6483
6484 * process.c (read_process_output): Return the actually read bytes
6485 instead of the result of decoding.
6486
97e7188e
KH
64872003-07-31 Kenichi Handa <handa@m17n.org>
6488
6489 * xterm.h (struct x_bitmap_record): New member have_mask.
6490
6491 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6492 to 0.
6493 (x_create_bitmap_from_file): Likewise.
6494 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6495 (x_destroy_all_bitmaps): Likewise.
6496 (x_create_bitmap_mask): Set have_mask member to 1.
6497
b53094d6
RS
64982003-07-30 Richard M. Stallman <rms@gnu.org>
6499
6500 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6501
631f2082
JD
65022003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6503
6504 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6505
c855f2ca
RS
65062003-07-29 Richard M. Stallman <rms@gnu.org>
6507
6508 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6509 Conditionalize XIM code on HAVE_XIM.
6510
6511 * fns.c (Fclear_string): New function.
6512 (syms_of_fns): defsubr it.
6513
b6189c3b 65142003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6515
0930c1a1 6516 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6517
29ea8ae9
SM
65182003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6519
6520 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6521
6522 * buffer.c (delete_all_overlays): New function.
6523 * buffer.h (delete_all_overlays): Declare.
6524 * coding.c (run_pre_post_conversion_on_str):
6525 * print.c (temp_output_buffer_setup):
6526 * fileio.c (Finsert_file_contents):
6527 * minibuf.c (get_minibuffer): Use it.
6528
1dd7ccf2
AC
65292003-07-22 Andrew Choi <akochoi@shaw.ca>
6530
6531 * unexmacosx.c (unexec_regions_sort_compare):
6532 (unexec_regions_merge): New functions. Sort and merge unexec
6533 regions before dumping them.
6534
f57bd967
DL
65352003-07-22 Dave Love <fx@gnu.org>
6536
6537 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6538
7cdee936
SM
65392003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6540
6541 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6542 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6543 MARKBIT as the gcmarkbit for strings.
6544
e50886d3
RS
65452003-07-21 Richard M. Stallman <rms@gnu.org>
6546
6547 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6548
29ea8ae9 6549 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6550 (syms_of_fns): Corresponding change.
6551
6552 * alloc.c (syms_of_alloc): Doc fixes.
6553
65542003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6555
6556 * s/netbsd.h: Use -Wl syntax.
6557
fdc39b59
RS
65582003-07-17 Richard M. Stallman <rms@gnu.org>
6559
6560 * xterm.c (xim_initialize): Redo 6/24 change.
6561
9c53385f
SM
65622003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6563
6564 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6565 (Fswitch_to_buffer): Don't signal an error when switching to the same
6566 buffer in a dedicated window.
6567
6568 * alloc.c: Use bitmaps for cons, as was done for floats.
6569 (init_float, init_cons): Let the normal code allocate the first block.
6570 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6571 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6572 New macros.
6573 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6574 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6575 (live_cons_p): Check the pointer is not past the `conses' array.
6576 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6577 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6578 (survives_gc_p): Use CONS_MARKED_P and simplify.
6579 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6580
dde13196
PE
65812003-07-13 Paul Eggert <eggert@twinsun.com>
6582
6583 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6584 puts it into BSS instead, at least on Solaris 8 and 9.
6585 This is a valid optimization, and it may occur on other platforms,
6586 so Emacs should not assume that initializing a static variable to
6587 zero puts it into data.
6588 * alloc.c (pure, staticvec):
6589 Initialize these arrays to nonzero, so that they're not
6590 put into BSS by that optimization.
6591
a801bc34
SM
65922003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6593
6594 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6595 (lisp_align_malloc): Use posix_memalign is available.
6596 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6597 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6598 for consistency. Update users.
6599
0c8b2afa
RS
66002003-07-13 Richard M. Stallman <rms@gnu.org>
6601
6602 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6603
668c2ab0
JB
66042003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6605
6606 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6607 and use the Gtk+ function gtk_window_icon_from_file if available.
6608
6609 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6610 handle mask of bitmaps.
6611 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6612 mask property.
6613 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6614
6615 * xterm.h (xg_set_icon): New function.
6616
800bebe3
RS
66172003-07-12 Paul Eggert <eggert@twinsun.com>
6618
6619 * unexelf.c (unexec): Consider a section to precede the .bss
6620 section if its addresses overlap that of .bss.
6621
69e38995
RS
66222003-07-12 Richard M. Stallman <rms@gnu.org>
6623
6624 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6625
6626 * config.in (HAVE_CRTIN): Add #undef.
6627 (INLINE): Really inline only if OPTIMIZE is defined.
6628
6629 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6630 END_FILES_1.
6631 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6632 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6633
6634 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6635 (TERMINFO): Define.
6636 (LIBS_TERMCAP): Define.
6637 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6638
6639 * xfns.c: Include libpng/png.h instead of png.h.
6640
f1d0c238
AS
66412003-07-11 Andreas Schwab <schwab@suse.de>
6642
6643 * buffer.c (modify_overlay): Update prototype.
6644 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6645 Likewise.
6646
5f6bf5fe
SM
66472003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6648
6649 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6650 (struct interval): Move to intervals.h.
6651 (struct Lisp_Marker): Use EMACS_INT for position info.
6652 (forward_point): Remove prototype of defunct function.
6653 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6654 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6655 (syms_of_textprop, set_text_properties): Remove prototypes that are
6656 already in intervals.h.
6657
6658 * intervals.h (struct interval): Move from lisp.h.
6659 Use EMACS_INT for position and size info.
6660
6661 * coding.c: Include intervals.h for Fset_text_properties.
6662
6663 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6664 position and length information.
6665
2765b457
SM
66662003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6667
6668 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6669 position and length information.
6670
2410d73a
SM
66712003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6672
6673 Change overlays_after and overlays_before so the overlays themselves
6674 are linked into lists, rather than using cons cells. After all each
6675 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6676 Lisp_Overlay for free and save up one cons cell per overlay (not
6677 to mention one indirection when traversing the list of overlay).
6678
6679 * lisp.h (struct Lisp_Overlay): New field `next'.
6680
6681 * buffer.h (struct buffer): Change overlays_before and overlays_after
6682 from Lisp lists of overlays to pointers to overlays.
6683
6684 * buffer.c (overlay_strings, recenter_overlay_lists):
6685 Fix typo in eassert in last commit.
6686 (unchain_overlay): New function.
6687 (add_overlay_mod_hooklist): Use AREF.
6688 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6689 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6690 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6691 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6692 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6693 Adjust to new type of overlays_(before|after).
6694
6695 * alloc.c (mark_object): Mark the new `next' field of overlays.
6696 (mark_buffer): Manually mark the overlays_(after|before) fields.
6697
6698 * coding.c (run_pre_post_conversion_on_str):
6699 * editfns.c (overlays_around):
6700 * xdisp.c (load_overlay_strings):
6701 * fileio.c (Finsert_file_contents):
6702 * indent.c (current_column):
6703 * insdel.c (signal_before_change, signal_after_change):
6704 * intervals.c (set_point_both):
6705 * print.c (temp_output_buffer_setup): Use new type for
6706 overlays_(before|after).
6707
04812929
SM
67082003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6709
6710 * buffer.c (report_overlay_modification): Don't run hooks while
6711 traversing the list of overlays.
6712
6713 * buffer.h (struct buffer): Use an int for overlay_center.
6714 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6715 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6716
6717 * buffer.c (reset_buffer, recenter_overlay_lists)
6718 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6719 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6720 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6721 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6722 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6723
6724 * xdisp.c (fast_find_position): Remove unused var.
6725
6726 * cmds.c (Qexpand_abbrev): New sym.
6727 (syms_of_cmds): Initialize it.
6728 (internal_self_insert): Use it to call expand-abbrev.
6729
2e7ecf15
KS
67302003-07-09 Kim F. Storm <storm@cua.dk>
6731
f9711de4 6732 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6733 was configured with --without-xim.
42f81f64 6734 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6735
c6de56a0
RS
67362003-07-07 Richard M. Stallman <rms@gnu.org>
6737
6738 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6739
6740 * alloc.c (Fgarbage_collect): Doc fix.
6741
b6189c3b 67422003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6743
6744 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6745
bfe1a3f7
SM
67462003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6747
04812929
SM
6748 * minibuf.c (read_minibuf): UNGCPRO before returning.
6749 (Ftry_completion, Fall_completions): Doc fix.
6750
bfe1a3f7
SM
6751 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6752 now that `floats' is not the last element of the struct any more.
6753
ee79d1aa
JR
67542003-07-06 Jason Rumney <jasonr@gnu.org>
6755
6756 * w32term.h (ClipboardSequence_Proc): New type.
6757
6758 * w32fns.c (clipboard_sequence_fn): New variable.
6759 (globals_of_w32fns): Initialize it.
6760
6761 * w32select.c (last_clipboard_sequence_number): New variable.
6762 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6763 number if possible.
6764
49723c04
SM
67652003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6766
4698665f
SM
6767 * m/amdx86-64.h (MARKBIT):
6768 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6769 MARKBIT and ARRAY_MARK_FLAG any more.
6770
6771 * m/hp800.h (XSETMARKBIT):
6772 * m/sr2k.h (XSETMARKBIT):
6773 * lisp.h (XSETMARKBIT): Remove unused macro.
6774
49723c04
SM
6775 * lisp.h (mark_object): Change prototype.
6776
6777 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6778 (last_marked): Change accordingly.
6779 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6780 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6781 (mark_buffer): Update calls to mark_object.
6782
6783 * bytecode.c (mark_byte_stack):
6784 * fns.c (sweep_weak_table):
6785 * keyboard.c (mark_kboards): Update calls to mark_object.
6786
1d660eca
JR
67872003-07-06 Jason Rumney <jasonr@gnu.org>
6788
6789 * alloc.c (struct ablock): Only include padding when there is some.
6790
618b5ae4
SM
67912003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6792
6793 * alloc.c (ALIGN): Add casts to simplify usage.
6794 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6795 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6796 (struct ablock, struct ablocks): New types.
6797 (free_ablock): New global var.
6798 (lisp_align_malloc, lisp_align_free): New functions.
6799 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6800 (struct float_block): Reorder and add gcmarkbits.
6801 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6802 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6803 (init_float, make_float): Use lisp_align_malloc.
6804 (free_float, live_float_p): Don't use `type' any more.
6805 (make_float): Use FLOAT_UNMARK to access to mark bit.
6806 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6807 Use FLOAT_MARKED_P to access the mark bit.
6808 (pure_alloc): Simplify use of ALIGN.
6809 (mark_object): Use FLOAT_MARK to access the mark bit.
6810 (gc_sweep): Use new macros to access the float's mark bit.
6811 (init_alloc_once): Init free_ablock.
6812
6813 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6814
3ef06d12
SM
68152003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6816
6817 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6818 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6819 (allocate_buffer): Move.
6820 (string_bytes): Don't mask markbit of `size_byte'.
6821 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6822 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6823 Use the `size' field of buffers (rather than the `name' field) for
6824 the mark bit, as is done for all other vectorlike objects.
6825 Use the new macros to access the mark bit of vectorlike objects.
6826
e81043aa
RS
68272003-06-26 Richard M. Stallman <rms@gnu.org>
6828
6829 * puresize.h (BASE_PURESIZE): Increment base size.
6830
6831 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6832
6833 * xterm.c (xim_initialize): Undo previous change.
6834
2d0834cc
SM
68352003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6836
6837 * alloc.c (survives_gc_p): Simplify.
6838
6839 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6840
6841 * window.c (Fset_window_dedicated_p): Simplify.
6842 (display_buffer_1): Don't raise the win from which minibuf was entered.
6843 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6844 (Fminibuffer_selected_window): Simplify.
6845
6846 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6847
6848 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6849 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6850
6851 * insdel.c (check_markers, adjust_markers_for_delete)
6852 (adjust_markers_for_insert, adjust_markers_for_replace)
6853 (prepare_to_modify_buffer, RESTORE_VALUE):
6854 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6855 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6856 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6857 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6858 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6859 * editfns.c (save_excursion_restore, transpose_markers):
6860 * window.c (delete_window):
6861 * xdisp.c (message_dolog): Update for new types.
6862
d54ae3d8
JD
68632003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6864
a5f696ac
JD
6865 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6866 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6867 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6868
6869 * frame.c (make_frame): Initialize default_face_done_p.
6870
6871 * frame.h (struct frame): Add default_face_done_p.
6872
d54ae3d8
JD
6873 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6874 will be defined.
6875
2336fe58
SM
68762003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6877
6878 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6879 Initialize the new field `gcmarkbit'.
6880 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6881 (mark_interval_tree): Don't mark the tree separately from the nodes.
6882 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6883 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6884 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6885
6886 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6887 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6888 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6889 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6890 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6891
bcea31c2
DL
68922003-06-24 Dave Love <fx@gnu.org>
6893
6894 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6895
6896 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6897 from gnulib.
6898
2601f59e
RS
68992003-06-21 Richard M. Stallman <rms@gnu.org>
6900
6901 * fileio.c (Fwrite_region): Alternate messages
6902 for append and partial write.
6903
6904 * keyboard.c (read_key_sequence): When converting upcase fn key to
6905 downcase, update fkey and keytran so `backspace' gets translated.
6906
6907 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6908
6909 * process.c (wait_reading_process_input): Don't signal SIGIO
6910 in batch mode.
6911
b5d2c621
KH
69122003-06-17 Kenichi Handa <handa@m17n.org>
6913
6914 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6915 composite.h.
6916
6917 * xselect.c: Don't include charset.h, coding.h, composite.h.
6918 (Qforeign_selection): New variable.
6919 (syms_of_xselect): Intern and static it.
6920 (selection_data_to_lisp_data): Return a unibyte string made from
6921 data with `foreign-selection' text property.
6922
6793bc63
SM
69232003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6924
6925 * termhooks.h (EVENT_INIT): New macro.
6926
6927 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6928
6929 * alloc.c (mark_kboards): Move to keyboard.c.
6930
6931 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6932 * xterm.c (x_dispatch_event):
6933 * xmenu.c (find_and_call_menu_selection):
6934 * xdisp.c (handle_tool_bar_click):
6935 * w32menu.c (menubar_selection_callback):
6936 * sysdep.c (kbd_input_ast, read_input_waiting):
6937 * msdos.c (dos_rawgetc):
6938 * macterm.c (mac_check_for_quit_char):
6939 * macmenu.c (menubar_selection_callback):
6940 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6941 data to kbd_buffer_store_event.
6942
b3ea810c
KS
69432003-06-15 Kim F. Storm <storm@cua.dk>
6944
6945 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6946 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6947
b8f75eda
KG
69482003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6949
6950 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6951
ba92ce48
KH
69522003-06-12 Kenichi Handa <handa@m17n.org>
6953
6954 * fileio.c (Fwrite_region): Save and restore restriction.
6955
b80263be
DL
69562003-06-12 Dave Love <fx@gnu.org>
6957
6958 * alloca.c (alloca): Declare arg as size_t.
6959
6793bc63
SM
6960 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6961 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 6962
b23c0a83
DL
69632003-06-11 Dave Love <fx@gnu.org>
6964
6965 * search.c (shrink_regexp_cache): Use xrealloc.
6966 (syms_of_search): Use xmalloc.
6967
700e47c2
KS
69682003-06-10 Kim F. Storm <storm@cua.dk>
6969
6970 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6971 Adjust phys_cursor.x to be relative to window box, rather than
6972 text area before checking -- to ensure cursor is redrawn when
6973 exposing window.
6974 Note: This also fixes a similar (older) bug if display margins
6975 are present.
6976
f11aa0b2
KH
69772003-06-06 Kenichi Handa <handa@m17n.org>
6978
6979 * coding.c (encoding_buffer_size): If coding->type is
6980 coding_type_ccl, double magnification on CRLF encoding.
6981
3d143690
JR
69822003-06-06 Jason Rumney <jasonr@gnu.org>
6983
6984 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6985 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6986
6987 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6988 Mac too.
6989
f16205ca
DL
69902003-06-05 Dave Love <fx@gnu.org>
6991
b23c0a83
DL
6992 * strftime.c: Merge changes from gnulib.
6993
f16205ca
DL
6994 * mktime.c (__mktime_internal): Merge changes from gnulib
6995 involving year 69 and dst2.
6996
6997 Changes to merge with gnulib version and be consistent with the
6998 autoconf test:
6999
6793bc63
SM
7000 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7001 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7002 [HAVE_LOCALE_H]: Include locale.h.
7003 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7004
9b87a0bc
KS
70052003-06-05 Kim F. Storm <storm@cua.dk>
7006
7007 * window.c (coordinates_in_window): Convert X and Y to window
7008 relative coordinates inside mode-line and header-line parts.
7009 Convert X and Y to margin area relative coordinates inside left
7010 and right display margin parts.
7011
5a8a15ec
JR
70122003-06-05 Jason Rumney <jasonr@gnu.org>
7013
7014 * w32fns.c (add_system_logical_colors_to_map): New function.
7015 (Fx_open_connection): Use it.
7016
01ed8ff1
SM
70172003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7018
7019 * process.c (allocate_pty): Revert part of the previous patch.
7020 (Faccept_process_output): Simplify.
7021
b427b65d
JR
70222003-06-04 Jason Rumney <jasonr@gnu.org>
7023
7024 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7025
7026 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7027 (lispy_mouse_wheel_names): Remove.
7028 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7029 Always define drag_and_drop_syms.
7030
7031 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7032 WHEEL_EVENT events.
7033
914a8c47
SM
70342003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7035
01ed8ff1
SM
7036 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7037
914a8c47
SM
7038 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7039
adcb132c
JD
70402003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7041
7042 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7043 menu item label.
7044
be781fa7
RS
70452003-06-03 Richard M. Stallman <rms@gnu.org>
7046
7047 * window.c (Fwindow_edges): Doc fix.
7048 (Fwindow_pixel_edges, Fwindow_inside_edges)
7049 (Fwindow_inside_pixel_edges): New functions.
7050 (syms_of_window): defsubr them.
7051
7052 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7053 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7054
914a8c47
SM
70552003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7056
7057 * dispnew.c (Fsit_for): Don't lie about the number of args.
7058
5b07197a
DL
70592003-06-02 Dave Love <fx@gnu.org>
7060
7061 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7062 (syms_of_callproc) <process-environment>: Doc fix.
7063
7064 * doc.c: Use HAVE_FCNTL_H, not USG5.
7065
7066 * xfaces.c (font_rescale_ratio): Fix for K&R.
7067
7068 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7069
7070 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7071
7072 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7073
7074 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7075 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7076
d7107586 7077 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7078
7079 * xmenu.c (ENCODE_MENU_STRING): New.
7080 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7081 Use it.
7082
7083 * coding.h (ENCODE_UTF_8): New.
7084 (Qutf_8): Declare.
7085
7086 * coding.c (Qutf_8): New.
7087 (syms_of_coding): Intern it.
7088
7089 * fns.c: Doc fixes.
7090
7335b336
KH
70912003-06-02 Kenichi Handa <handa@m17n.org>
7092
7093 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7094
914a8c47
SM
70952003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7096
7097 * lread.c (openp): Make sure STR is a string.
7098
9862c135
JR
70992003-06-01 David Ponce <david@dponce.com>
7100
cab27d04 7101 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7102 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7103
7104 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7105 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7106 (discard_mouse_events): Discard WHEEL_EVENT events too.
7107 (lispy_wheel_names, wheel_syms): New.
7108 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7109 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7110 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7111
7112 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7113 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7114 WHEEL_EVENT events.
7115
f984e73e
JPW
71162003-05-31 John Paul Wallington <jpw@gnu.org>
7117
7118 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7119 timer are in lisp/emacs-lisp.
7120
1efcd78f
KH
71212003-05-31 Kenichi Handa <handa@m17n.org>
7122
458c8af4
KH
7123 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7124 region when a buffer is changed to unibyte.
7125
1efcd78f
KH
7126 * charset.h (VALID_LEADING_CODE_P): New macro.
7127 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7128
778e2804
KH
7129 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7130 is nonzero, accept multibyte form of eight-bit-control chars.
7131 (decode_composition_emacs_mule): Likewise.
7132 (decode_coding_emacs_mule): Likewise.
7133 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7134 multibyte form of eight-bit-control chars.
7135
7136 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7137 (Finsert_file_contents): If coding-system-for-read is bound to
7138 Qauto_save_coding, use the coding system emacs-mule with special
7139 setting for recovering a file.
7140 (choose_write_coding_system): On auto saving, use the coding
7141 system emacs-mule with special setting for auto saving.
7142 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7143
034060e4
KH
71442003-05-30 Kenichi Handa <handa@m17n.org>
7145
7146 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7147 properly before calling ccl_driver.
7148
778e2804 7149 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7150
cab27d04 7151 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7152 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7153 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7154
595f5aa5
GM
71552003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7156
7157 * xfaces.c (realize_default_face): Do not abort if lface is
7158 non-existent - reverts change from 2003-05-19.
7159
103e0180
KH
71602003-05-29 Kenichi Handa <handa@m17n.org>
7161
7162 * coding.c (decode_coding_iso2022): Pay attention to the byte
7163 sequence of CTEXT extended segment, and retain those bytes as is.
7164
71652003-05-28 Kenichi Handa <handa@m17n.org>
7166
cab27d04 7167 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7168 of CODING_REPLACEMENT_CHARACTER.
7169 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7170 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7171 check this flag on encoding.
cab27d04
SM
7172 (encode_coding_sjis_big5):
7173 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7174 (Fset_terminal_coding_system_internal):
7175 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7176 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7177
7178 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7179 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7180 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7181
ff6a3bfb 71822003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7183
ff6a3bfb
RS
7184 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7185
7186 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7187
1963c428
KS
71882003-05-28 Kim F. Storm <storm@cua.dk>
7189
7190 * xdisp.c (expose_window): Fix error in calculation of
7191 window relative coordinates of area to redisplay.
7192
2b5d4601
JR
71932003-05-27 Jason Rumney <jasonr@gnu.org>
7194
7195 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7196
1c64a4a2
JB
71972003-05-27 David Ponce <david@dponce.com>
7198
7199 Handle W32 mouse wheel events as mouse click events, like in X.
7200
7201 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7202 MOUSE_WHEEL_EVENT anymore.
7203
7204 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7205 Scrolling down/up the mouse wheel is respectively mapped to mouse
7206 button 4 and 5.
7207 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7208 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7209 WM_MOUSEWHEEL events.
7210
2d031b89
AS
72112003-05-27 Andreas Schwab <schwab@suse.de>
7212
20464fdf
AS
7213 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7214
2d031b89
AS
7215 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7216 partially visible line.
7217
7218 * alloc.c (Fgarbage_collect): Fix last change.
7219
97bc76d4
JPW
72202003-05-26 John Paul Wallington <jpw@gnu.org>
7221
7222 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7223
56613f06
SM
72242003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7225
7226 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7227 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7228
7229 * window.h (window_box_text_cols): Declare.
7230
7231 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7232 (x_draw_vertical_border): Remove unused var `f'.
7233
7234 * xfaces.c (build_scalable_font_name): Remove `unused var
7235 pixel_size' warning.
7236
7237 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7238
7239 * unexelf.c (unexec): Remove `unused var n' warning.
7240
7241 * strftime.c (my_strftime_localtime_r): Remove `defined but
7242 unused' warning.
7243
7244 * process.c (allocate_pty): Remove `unused var stb' and
7245 `cp might be used uninitialized' warnings.
7246
7247 * dispnew.c (mode_line_string): Remove unused var `f'.
7248
7249 * coding.c (find_safe_codings): Remove unused var `i'.
7250
7251 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7252
7253 * buffer.c (Fkill_buffer): Remove unused var `list'.
7254
7255 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7256
93421a1f
JD
72572003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7258
7259 * frame.c (make_frame): Condition want_fullscreen with
7260 HAVE_WINDOW_SYSTEM.
7261
c4b8aebc
JB
72622003-05-25 Juanma Barranquero <lektu@terra.es>
7263
7264 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7265 (Fwindow_scroll_bars): Fix typo in docstring.
7266
0416870b
KS
72672003-05-24 Kim F. Storm <storm@cua.dk>
7268
7269 The following changes serve several purposes:
7270
7271 1) Swap the position of fringes and display margins in windows, i.e.
7272 the fringes are now displayed between the margins and the text area
7273 (by default).
7274
7275 2) Allow fringe and scroll bar parameters to be set per-buffer and
7276 per-window (like display margins). Such settings are now stored
7277 in window configurations, preserved when frames are resized, and
9018a88e 7278 copied when windows are split vertically or horizontally.
0416870b
KS
7279 Several bugs related to display margins have been fixed.
7280
7281 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7282
0416870b
KS
7283 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7284 rather than FRAME_WIDTH (FRAME_FONT (f)).
7285
7286 5) Introduce a consistent naming of variables, members and macros
7287 depending on whether their value is measured in pixels or in
7288 canonical columns/lines. Pixel dimensions are named *_width and
7289 *_height, while canonical columns/lines are named *_cols and
7290 *_lines. Pixel positions are named *_x and *_y, while column/line
7291 positions are named *_col and *_line.
7292
7293 6) Consolidate more of the X, W32, and MAC gui code by moving
7294 common data into struct frame, and generalize it for the non-gui
7295 case by using suitable defaults.
7296
7297 7) Cleanup and consolidate the macros controlling frame and window
7298 layout into frame.h and window.h, and generalize the use of the
7299 various window_box_* functions (enhanced to handle the new fringe
7300 position and the per-window fringe and scroll bar settings).
7301
7302 * frame.h (struct frame): Rename members height to text_lines,
7303 width to text_cols, window_height to total_lines, window_width to
7304 total_cols, new_height to new_text_lines, new_width to
7305 new_text_cols. All uses changed.
7306 (struct frame): New members which consolidate common members of
7307 x_output, w32_output, and mac_output structures: left_pos,
7308 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7309 win_gravity, size_hint_flags, border_width, internal_border_width,
7310 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7311 want_fullscreen. All uses changed.
7312 (struct frame): New member column_width contaning the canonical
7313 column width, analogue to line_height. All uses changed.
7314 (struct frame): Rename members scroll_bar_pixel_width to
7315 config_scroll_bar_width, and scroll_bar_cols to
7316 config_scroll_bar_cols. All uses changed.
7317 (struct frame): New member scroll_bar_actual_width which
7318 consolidates and renames the vertical_scroll_bar_extra member of
7319 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 7320 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
7321 from x/w32/macterm.h files. All uses changed. Also change code
7322 which referred to f->output_data...->pixel_height.
cab27d04 7323 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 7324 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 7325 which referred to f->output_data...->pixel_width.
cab27d04 7326 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 7327 Also change code which referred to f->height.
cab27d04 7328 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
7329 Also change code which referred to f->width.
7330 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7331 to update new_text_lines and new_text_cols members directly.
cab27d04 7332 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 7333 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 7334 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
7335 FRAME_SCROLL_BAR_COLS. All uses changed.
7336 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 7337 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
7338 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7339 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7340 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
7341 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7342 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7343 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
7344 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7345 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
7346 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7347 Unconditionally return line_height member (it now has proper value
7348 also for non-window frames).
7349 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
7350 return new column_width member (rather than the default font width).
7351 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 7352 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
7353 from x/w32/macterm.h files. Unconditionally return corresponding
7354 member of frame structure (they now have proper values also for
7355 non-window frames).
cab27d04 7356 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
7357 Calculate return value from left and right widths.
7358 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7359 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
7360 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7361 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7362 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7363 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7364 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 7365 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7366 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 7367 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 7368 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 7369 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7370 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 7371 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 7372 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 7373 consolidated from x/mac/w32term.h.
cab27d04 7374 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 7375 consolidated from x/mac/w32term.h.
cab27d04 7376 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 7377 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 7378 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
7379 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7380
7381 * window.h (struct window): Rename members left to left_col,
7382 top to top_line, height to total_lines, width to total_cols,
7383 left_margin_width to left_margin_cols, right_margin_width to
7384 right_margin_cols, orig_height to orig_total_lines, orig_top to
7385 orig_top_line. All uses changed.
7386 (struct window): New members left_fringe_width, right_fringe_width,
7387 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7388 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7389 New macros primarily used to simplify other macros.
7390 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7391 referred to XINT (w->width).
7392 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7393 referred to XINT (w->height).
7394 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7395 referred to XINT (w->width) * canon_x_unit.
7396 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7397 referred to XINT (w->height) * canon_y_unit.
7398 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7399 referred to XINT (w->left).
cab27d04 7400 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
7401 all uses and code that referred to XINT (w->left) + XINT (w->width).
7402 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7403 referred to XINT (w->top).
7404 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7405 referred to XINT (w->top) + XINT (w->height).
7406 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7407 referred to XINT (w->left) * canon_x_unit.
7408 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7409 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7410 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7411 referred to XINT (w->top) * canon_y_unit.
7412 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7413 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7414 (WINDOW_LEFTMOST_P): New macro.
cab27d04 7415 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 7416 All uses changed.
cab27d04 7417 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 7418 All uses changed.
cab27d04 7419 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
7420 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7421 Do not exclude left fringe width.
cab27d04 7422 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
7423 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7424 Do not exclude fringe widths.
7425 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7426 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7427 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7428 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7429 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7430 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7431 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7432 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7433 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7434 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7435 New macros. Change code which referenced corresponding
7436 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7437 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7438 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7439 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7440 allow per-window scroll-bar settings.
7441 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7442 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7443 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7444 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7445 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7446 FRAME_SCROLL_BAR_WIDTH.
7447 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 7448 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 7449 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 7450 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 7451 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 7452 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 7453 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
7454 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7455 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7456 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
7457 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7458 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 7459 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 7460 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
7461 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7462 (window_from_coordinates): Update prototype.
7463 (Fset_window_buffer): Update EXFUN.
7464 (set_window_buffer): Update prototype.
9018a88e 7465
0416870b 7466 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 7467 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
7468 changed.
7469 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7470 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7471 internal_border_width is now set to 0 for non-window frames.
7472 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7473 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7474 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7475 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7476 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7477 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7478 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7479 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7480 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 7481 Move to window.h and renamed [see window.h changes].
0416870b
KS
7482 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7483 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7484 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7485 Use WINDOW_TOTAL_LINES.
0416870b
KS
7486 (frame_update_line_height): Remove prototype.
7487
7488 * buffer.h (struct buffer): Rename members measured in columns:
7489 left_margin_width to left_margin_cols, right_margin_width to
7490 right_margin_cols. All uses changed.
7491 New members left_fringe_width, right_fringe_width,
7492 fringes_outside_margins for per-buffer fringe settings.
7493 New members scroll_bar_width and vertical_scroll_bar_type for
7494 per-buffer scroll bar settings.
7495
7496 * buffer.c (init_buffer_once): Set buffer_defaults and
7497 buffer_local_flags for new buffer-local variables
7498 left_fringe_width, right_fringe_width, fringes_outside_margins,
7499 scroll_bar_width, and vertical_scroll_bar_type.
7500 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7501 default-* variables for them.
7502
7503 * dispnew.c: Make (many) trivial substitutions for renamed and
7504 new macros in dispextern.h, frame.h and window.h.
7505 (mode_line_string): No need to adjust width for mode lines, as it
7506 is already adjusted by the caller.
7507 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7508
0416870b
KS
7509 * frame.c: Make (many) trivial substitutions for renamed and
7510 new macros in dispextern.h, frame.h and window.h.
7511 (make_frame): Initialize left_fringe_width, right_fringe_width,
7512 fringe_cols, scroll_bar_actual_width, border_width,
7513 internal_border_width, column_width, line_height, x_pixels_diff,
7514 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7515 members with values suitable for a non-window frames.
7516
7517 * gtkutil.c: Make (many) trivial substitutions for renamed and
7518 new macros in dispextern.h, frame.h and window.h.
9018a88e 7519
0416870b
KS
7520 * indent.c: Make (few) trivial substitutions for renamed and
7521 new macros in dispextern.h, frame.h and window.h.
7522
7523 * keyboard.c: Make (many) trivial substitutions for renamed and
7524 new macros in dispextern.h, frame.h and window.h.
7525 (make_lispy_event): Use window positions returned from
7526 window_from_coordinates when constructing the lisp event for
7527 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7528 (incorrect) values locally.
7529 (make_lispy_movement): Use window positions returned from
7530 window_from_coordinates when constructing the lisp event, rather
7531 than calculating (incorrect) values locally.
7532
7533 * scroll.c: Make (some) trivial substitutions for renamed and
7534 new macros in dispextern.h, frame.h and window.h.
7535
7536 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7537 scroll-bars.
7538
7539 * sysdep.c: Make (few) trivial substitutions for renamed and
7540 new macros in dispextern.h, frame.h and window.h.
7541
7542 * term.c: Make (some) trivial substitutions for renamed and
7543 new macros in dispextern.h, frame.h and window.h.
7544
7545 * widget.c: Make (few) trivial substitutions for renamed and
7546 new macros in dispextern.h, frame.h and window.h.
7547
7548 * window.c: Make (many) trivial substitutions for renamed and
7549 new macros in dispextern.h, frame.h and window.h.
7550 (make_window): Initialize new members
7551 left_margin_cols, right_margin_cols, left_fringe_width,
7552 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7553 and vertical_scroll_bar_type.
cab27d04 7554 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7555 and per-window fringes and scroll-bars.
0416870b 7556 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7557 frame's internal_border_width (the effect normally negible since
0416870b
KS
7558 the internal_border_width is typically 0 or 1 pixel, but very
7559 noticeable for an internal_border_width of e.g. 25 pixels).
7560 Upon successful return (other than ON_NOTHING), the coordinates
7561 are now always properly converted to window relative for the
7562 given display element.
7563 (window_from_coordinates): Add new parameters wx and wy to
7564 return the window relative x and y position in the returned
7565 window and part. A null arg means, don't return the position.
7566 All callers changed.
7567 (adjust_window_margins): New function which may reduce the width
7568 of the display margins if a window's text area is too small after
7569 resizing or splitting windows.
7570 (size_window): Fix bug that did not account for display margin
7571 widths when checking the minimum width of a window; use
7572 adjust_window_margins.
7573 (set_window_buffer): Call Fset_window_fringes and
7574 Fset_window_scroll_bars to setup per-window elements.
7575 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7576 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7577 (e.g. after splitting a window or resizing the frame).
7578 All callers changed.
0416870b
KS
7579 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7580 (Fsplit_window): Duplicate original window's display margin,
7581 fringe, and scroll-bar settings; then call Fset_window_buffer with
7582 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7583 window to only preserve the display margins in one of the windows.
c4b8aebc 7584 When splitting horizontally, call adjust_window_margins on both
0416870b 7585 windows to ensure that the text area of the new windows is non too
f9711de4 7586 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7587 width of the split window was less than the width of the display
7588 margins.
cab27d04 7589 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7590 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7591 Fix bug that caused vertical separator to be subtracted also on
7592 window frames. Fix another bug that did not reduce the returned
7593 value by the columns used for display margins.
7594 (window_scroll_line_based): Fix bug related to scrolling too much
7595 when display margins are present (implicitly fixed by the fix to
7596 window_box_text_cols).
7597 (scroll_left, scroll_right): Fix bug related to scrolling too far
7598 by default when display margins are present (implicitly fixed by
7599 the fix to window_box_text_cols).
7600 (struct saved_window): Rename members left to left_col, top to
7601 top_line, width to total_cols, height to total_lines, orig_top to
7602 orig_top_line, orig_height to orig_total_lines. All uses changed.
7603 New members left_margin_cols, right_margin_cols,
7604 left_fringe_width, right_fringe_width, fringes_outside_margins,
7605 scroll_bar_width, and vertical_scroll_bar_type for saving
7606 per-window display elements.
7607 (Fset_window_configuration): Restore display margins, fringes,
7608 and scroll bar settings. This fixes a bug which caused display
7609 margins to be discarded when saving and restoring a window
7610 configuration.
7611 (save_window_save): Save display margins, fringes, and scroll bar
7612 settings. This fixes a bug which caused display margins to be
7613 discarded when saving and restoring a window configuration.
7614 (Fset_window_margins): Do nothing if display margins are not
7615 really changed. Otherwise, call adjust_window_margins to ensure
7616 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7617 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7618 the width of the window.
7619 (Fset_window_fringes): New defun to allow user to specifically set
7620 this window's fringe widths and position vs. display margins.
cab27d04 7621 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7622 (Fset_window_scroll_bars): New defun to allow user to specifically
7623 set this window's scroll bar width and position.
7624 (Fwindow_scroll_bars): New defun to return window's actual scroll
7625 bar settings.
7626 (compare_window_configurations): Also compare display margins,
7627 fringes, and scroll bar settings.
7628 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7629
7630 * xdisp.c: Make (many) trivial substitutions for renamed and
7631 new macros in dispextern.h, frame.h and window.h.
7632 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7633 and new fringe vs. display margin position. Note that returned
0416870b
KS
7634 value is no longer guaranteed to be a whole multiple of the frame
7635 column width, since per-window fringes may now be any width.
7636 (window_box_left_offset): New function like window_box_left, but
7637 value is relative to left border of window (rather than frame).
7638 (window_box_right_offset): New function like window_box_right,
7639 but value is relative to left border of window.
7640 (window_box_left): Adapt to per-window fringes and scroll bars,
7641 and new fringe vs. display margin position. Simplify by using
7642 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7643 (window_box): Allow null args for unnecessary return values;
7644 change/simplify relevant callers.
7645 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7646 and new fringe vs. display margin position.
7647 Use window_box_left_offset and window_box_right_offset
0416870b 7648 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7649 scroll bars, and new fringe vs. display margin position.
7650 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7651 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7652 fringe vs. display margin position.
7653 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7654 (redisplay_window): Adapt to per-window scroll bars.
7655 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7656 bars, and new fringe vs. display margin position.
7657 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7658 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7659 bars, and new fringe vs. display margin position. Fix bug which
7660 increased total width of full_width rows by width of scroll bars
7661 although window's total width already includes that.
7662 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7663 (expose_area): Simplify using window_box_left_offset.
7664 (x_draw_vertical_border): Handle per-window scroll bar settings,
7665 mixing windows with left, right and no scroll bars.
7666
7667 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7668 where it's used in x_list_fonts (for clarity).
7669 (frame_update_line_height): Remove unused function; functionality
7670 is now done directly when setting the default font in x_set_font.
7671
7672 * xfns.c: Make (many) trivial substitutions for renamed and
7673 new macros in dispextern.h, frame.h and window.h.
7674
7675 * xmenu.c: Make (some) trivial substitutions for renamed and
7676 new macros in dispextern.h, frame.h and window.h.
7677
7678 * xterm.h (struct x_output): Move members left_pos, top_pos,
7679 border_width, pixel_height, pixel_width, line_height,
7680 internal_border_width, vertical_scroll_bar_extra,
7681 left_fringe_width, right_fringe_width, fringe_cols,
7682 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7683 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7684 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7685 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7686 (PIXEL_WIDTH, PIXEL_HEIGHT)
7687 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7688 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7689 frame.h and renamed [see frame.h changes].
7690 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7691 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7692 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7693 and renamed [see frame.h changes].
9018a88e 7694
0416870b
KS
7695 * xterm.c: Make (several) trivial substitutions for renamed and
7696 new macros in dispextern.h, frame.h and window.h.
cab27d04 7697 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7698 (scroll_run): Adapt to new fringe position.
7699 (glyph_rect): Use window coordinates returned from
7700 window_from_coordinates rather than frame_to_window_pixel_xy.
7701 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7702 scroll-bars.
7703 (handle_one_xevent): Simplify a USE_GTK conditional.
7704 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7705 (fringes are now inside margins, i.e. always in the clipping area).
7706 All callers changed.
7707 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7708 directly, then call compute_fringe_widths. Don't call
7709 frame_update_line_height.
7710
7711 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7712 border_width, pixel_height, pixel_width, line_height,
7713 internal_border_width, vertical_scroll_bar_extra,
7714 left_fringe_width, right_fringe_width, fringe_cols,
7715 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7716 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7717 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7718 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7719 (PIXEL_WIDTH, PIXEL_HEIGHT)
7720 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7721 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7722 frame.h and renamed [see frame.h changes].
7723 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7724 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7725 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7726 and renamed [see frame.h changes].
9018a88e 7727
0416870b
KS
7728 * w32term.c: Make (several) trivial substitutions for renamed and
7729 new macros in dispextern.h, frame.h and window.h.
cab27d04 7730 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7731 (glyph_rect): Use window coordinates returned from
7732 window_from_coordinates rather than frame_to_window_pixel_xy.
7733 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7734 scroll-bars.
7735 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7736 (fringes are now inside margins, i.e. always in the clipping area).
7737 All callers changed.
7738 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7739 directly, then call compute_fringe_widths. Don't call
7740 frame_update_line_height.
7741
7742 * w32console.c: Make (few) trivial substitutions for renamed and
7743 new macros in dispextern.h, frame.h and window.h.
7744
7745 * w32fns.c: Make (many) trivial substitutions for renamed and
7746 new macros in dispextern.h, frame.h and window.h.
7747
7748 * w32menu.c: Make (few) trivial substitutions for renamed and
7749 new macros in dispextern.h, frame.h and window.h.
7750
7751 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7752 border_width, pixel_height, pixel_width, line_height,
7753 internal_border_width, vertical_scroll_bar_extra,
7754 left_fringe_width, right_fringe_width, fringe_cols,
7755 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7756 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7757 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7758 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7759 (PIXEL_WIDTH, PIXEL_HEIGHT)
7760 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7761 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7762 frame.h and renamed [see frame.h changes].
7763 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7764 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7765 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7766 and renamed [see frame.h changes].
9018a88e 7767
0416870b
KS
7768 * macterm.c: Make (several) trivial substitutions for renamed and
7769 new macros in dispextern.h, frame.h and window.h.
cab27d04 7770 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7771 (glyph_rect): Use window coordinates returned from
7772 window_from_coordinates rather than frame_to_window_pixel_xy.
7773 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7774 scroll-bars.
7775 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7776 (fringes are now inside margins, i.e. always in the clipping area).
7777 All callers changed.
7778 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7779 directly, then call compute_fringe_widths. Don't call
7780 frame_update_line_height.
7781
7782 * macfns.c: Make (several) trivial substitutions for renamed and
7783 new macros in dispextern.h, frame.h and window.h.
9018a88e 7784 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7785
7786 * macmenu.c: Make (few) trivial substitutions for renamed and
7787 new macros in dispextern.h, frame.h and window.h.
7788
7789 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7790 and line_height, and use corresponding new members in struct
7791 frame. All uses changed.
7792 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7793 superseeded by corresponding macros in frame.h.
7794
7795 * msdos.c: Make (several) trivial substitutions for renamed and
7796 new macros in dispextern.h, frame.h and window.h.
7797 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7798 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7799 (internal_terminal_init): No need to initialize line_height here;
7800 it now defaults to 1.
7801
9018a88e
SM
78022003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7803
7804 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7805 dropping `down' events.
7806
016bd3c0
AS
78072003-05-24 Andreas Schwab <schwab@suse.de>
7808
7809 * coding.c (find_safe_codings): Fix last change.
7810
4dacadcc
TTN
78112003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7812
7813 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7814
319830ce
SM
78152003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7816
9018a88e
SM
7817 * xdisp.c (display_mode_element): Increase max depth.
7818 Simplify the error handling code. Use a different error string
7819 for the case where we hit the depth limit.
7820
319830ce
SM
7821 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7822
7823 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7824
78252003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7826
7827 * intervals.c (get_local_map): Don't get char-property of previous
7828 point any more: get_pos_property already does it and better.
7829
c67de8ba
DL
78302003-05-21 Dave Love <fx@gnu.org>
7831
7832 [Merged from unicode branch.]
7833
7834 * xfns.c (x_window, x_window): Use use_xim.
7835
7836 * xterm.c (use_xim): Initialize.
7837 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7838 (x_term_init): Maybe set use_xim.
7839
7840 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7841
edd3ff1d
JR
78422003-05-21 Jason Rumney <jasonr@gnu.org>
7843
7844 * unexw32.c (_start): Remove _fmode initialization.
7845
7846 * emacs.c (main) [WINDOWSNT]: Move it here.
7847
463f55ee
DL
78482003-05-20 Dave Love <fx@gnu.org>
7849
7850 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7851
af253914
RS
78522003-05-19 Richard M. Stallman <rms@gnu.org>
7853
7854 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7855 as value for QCfont attribute.
7856 (realize_default_face): lface should already exist; crash if not.
7857 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7858
7859 * frame.c (Fignore_event): Doc fix.
7860
1d211019
KH
78612003-05-19 Kenichi Handa <handa@m17n.org>
7862
7863 * coding.c (decode_coding_string): Handle post-read-conversion
7864 even if the coding doesn't require decoding.
7865
4dd68254
RS
78662003-05-18 Richard M. Stallman <rms@gnu.org>
7867
7868 * callproc.c (Fcall_process_region): Doc fix.
7869
14d87dc9
SM
78702003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7871
deca5d96
SM
7872 * lread.c (Fload): Print a message if package is obsolete.
7873
14d87dc9
SM
7874 * window.c (Fselect_window): Add optional `norecord' arg.
7875 (select_window_1): Fold into Fselect_window.
7876 (select_window_norecord): New function.
7877 (temp_output_buffer_show): Use it. Preserve current buffer.
7878
7879 * window.h (Fselect_window): Update declaration.
7880
7881 * window.c (delete_window, Fother_window, Fset_window_configuration):
7882 * minibuf.c (read_minibuf):
7883 * macterm.c (x_new_focus_frame):
7884 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7885 * callint.c (Fcall_interactively):
7886 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7887
7888 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7889
78f52183
DK
78902003-05-17 David Kastrup <dak@gnu.org>
7891
7892 * process.c (read_process_output): Back out change from 2003-03-09.
7893
14d87dc9
SM
78942003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7895
7896 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7897
7898 * textprop.c (text_property_stickiness): New arg `buffer'.
7899
7900 * intervals.h (text_property_stickiness): New arg `buffer'.
7901 (get_pos_property): Declare.
7902
7903 * intervals.c (get_local_map): Use get_pos_property, to obey
7904 stickiness and empty overlays.
7905 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7906 (merge_properties, intervals_equal, merge_properties_sticky):
7907 Use XCAR, XCDR.
7908 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7909
1fd1cc2f
RS
79102003-05-17 Richard M. Stallman <rms@gnu.org>
7911
4f9f637a
RS
7912 * minibuf.c (read_minibuf): If buffer is empty, record the default
7913 in the history.
7914 (Fminibuffer_complete_word): When deleting the overlap, take account
7915 of its real position.
7916
7917 * fns.c (map_char_table): Fix previous change.
7918
1fd1cc2f
RS
7919 * syntax.c (find_defun_start):
7920 When open_paren_in_column_0_is_defun_start,
7921 return beginning of buffer.
7922
7923 * lisp.h (map_char_table): Declare added arg.
7924
7925 * fns.c (map_char_table): New arg TABLE gets the master table.
7926 All calls changed.
7927 Process default and inheritance, resorting to Faref if necessary.
7928
7929 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7930 (Faccessible_keymaps): Pass new arg to map_char_table.
7931
7932 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7933
7934 * casetab.c (set_case_table): Pass new arg to map_char_table.
7935
7936 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7937
7938 * lisp.h (specbinding_func): New typedef.
7939 (struct specbinding): Use specbinding_func, to put the `volatile'
7940 in the right place.
7941
7942 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7943 to avoid GCC warning.
14d87dc9 7944
b6189c3b 79452003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7946
14d87dc9 7947 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7948
35fb885d
SM
79492003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7950
7951 * keyboard.c (apply_modifiers): Don't fill the other cache.
7952
9a274fbd
SM
79532003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7954
c55b5fad
SM
7955 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7956
9a274fbd
SM
7957 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7958 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7959 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7960 (Fset_window_configuration, Fcurrent_window_configuration)
7961 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7962 (Fpos_visible_in_window_p, mark_window_cursors_off)
7963 (window_internal_height, window_internal_width, Frecenter)
7964 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7965 (replace_buffer_in_all_windows, init_window_once, init_window)
7966 (syms_of_window, keys_of_window): Move from lisp.h.
7967 * lisp.h: Move window.c declarations to window.h.
7968
7969 * bytecode.c: Include window.h.
7970 * emacs.c: Include window.h.
7971
14d87dc9 7972 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7973 (keyremap): Add `parent' field.
7974 (keyremap_step): Use it. Remove `parent' argument.
7975 (read_key_sequence): Setup and use the new `parent' field.
7976
fd93e331
SM
79772003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7978
7979 * keyboard.c (adjust_point_for_property): Ensure termination.
7980
1c4001a1
SM
79812003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7982
7983 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7984 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7985 duplicated handling of function-key-map and key-translation-map
7986 in read_key_sequence.
7987 (read_key_sequence): Use them.
7988
7989 * keyboard.c (adjust_point_for_property): Try harder to move point
7990 to the non-sticky end of an invisible property.
7991
7992 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7993 property intangible as well.
7994
780379b1
AS
79952003-05-10 Andreas Schwab <schwab@suse.de>
7996
7997 * xmenu.c (single_menu_item): Change last parameter to void* to
7998 avoid warning.
7999
ca2de342
RS
80002003-05-09 Richard M. Stallman <rms@gnu.org>
8001
8002 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8003 Bind Qinhibit_modification_hooks to t so there will be no GC.
8004 Rename local `tem' to `save_deactivate_mark'.
8005
8006 * eval.c (specpdl_ptr): Declare volatile.
8007 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8008 before doing the work of unbinding it.
8009
8010 * lisp.h (struct specbinding): Declare elements volatile.
8011 (specpdl_ptr): Declare volatile.
8012
8013 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8014
8015 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8016 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8017
347003be
DL
80182003-05-08 Dave Love <fx@gnu.org>
8019
8020 * coding.c (Vlast_coding_system_used): Doc fix.
8021
5adcec23
JR
80222003-05-07 Jason Rumney <jasonr@gnu.org>
8023
8024 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8025 when system does not support them.
8026
5fe3b8a4
SM
80272003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8028
8029 * fileio.c (Qwrite_region_annotate_functions): New var.
8030 (build_annotations): Use it to process the global part of the hook.
8031 (syms_of_fileio): Init and staticpro it.
8032
8033 * keyboard.c (safe_run_hooks_error): Display a message instead of
8034 silently ignoring the error.
8035
80362003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8037
8038 * keyboard.c (input_available_signal): Mark static.
8039 (menu_bar_items): Use map_keymap.
8040 (menu_bar_one_keymap): Remove.
8041 (menu_bar_item): Adjust arglist (for use in map_keymap).
8042 Properly hide a second binding when not both are keymaps.
8043
8044 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8045 (single_keymap_panes): Use it and map_keymap.
8046 (single_menu_item): Use skp as well.
8047
8048 * keymap.h (map_keymap_function_t): New type.
8049 (map_keymap): Declare.
8050
8051 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8052 (map_keymap_call, Fmap_keymap): New functions.
8053 (syms_of_keymap): Defsubr map-keymap.
8054
4b1b4443
JD
80552003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8056
8057 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8058 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8059 ..._with_mnemonic functions for menu items.
8060
1f816871
KH
80612003-05-01 Kenichi Handa <handa@m17n.org>
8062
8063 * coding.c (coding_system_accept_latin_extra_p): Delete this
8064 function.
8065 (find_safe_codings): Pay attention to
8066 the property tranlsation-table-for-encode of each codings.
8067 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8068
5ed6ba5b
SM
80692003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8070
8071 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8072
32c06229
SM
80732003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8074
8075 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8076
8077 * lisp.h (CHECK): Wrap args in parenthesis.
8078 (specbind): Fix doc: symbol = Qnil is not supported any more.
8079
8080 * bytecode.c (Fbyte_code) <unwind-protect>:
8081 Use Fprogn rather than 0 and Qnil.
8082
8083 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8084 `double', and `triple' modifiers as well.
8085
ed3c3314
RS
80862003-04-30 Richard M. Stallman <rms@gnu.org>
8087
8088 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8089
8090 * alloc.c (abort_on_gc): New variable.
8091 (Fgarbage_collect): Abort if abort_on_gc is set.
8092
8093 * lisp.h (abort_on_gc): Add decl.
8094
8095 * eval.c (Fsignal): Clear abort_on_gc.
8096
8097 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8098 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8099
8100 * xdisp.c (move_it_vertically_backward): Do the final big else
8101 even if nlines is 0.
8102
8103 * xdisp.c (redisplay_internal): Finish the per-frame loop
8104 even if redisplay is suspended by input.
8105
0b325c12
AC
81062003-04-24 Andrew Choi <akochoi@shaw.ca>
8107
8108 * macterm.c (x_list_fonts): Return all fonts that match if
8109 maxnames = -1.
8110
4e837cd0
KH
81112003-04-25 Kenichi Handa <handa@m17n.org>
8112
8113 * syntax.c (skip_chars): Fix previous change.
8114
9af7511a
KH
81152003-04-24 Kenichi Handa <handa@m17n.org>
8116
8117 * syntax.c (skip_chars): Make the code faster by using the common
8118 technique of *p, *stop, and *endp.
8119
e3b2c21f
JD
81202003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8121
8122 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8123 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8124 being updated.
8125
32c06229
SM
81262003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8127
8128 * eval.c (Fapply): Undo last change and add a comment about why.
8129
c6464167
MB
81302003-04-18 Miles Bader <miles@gnu.org>
8131
8132 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8133 pickier PARSE_MULTIBYTE_SEQ.
8134
e509f168
SM
81352003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8136
8137 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8138 Use XCDR, XCAR, CONSP.
8139 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8140 (Fapply): Remove unnecessary GCPRO.
8141
8142 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8143
8144 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8145
8146 * buffer.h: Don't hardcode BEG==1.
8147
8148 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8149
5ceea398
RS
81502003-04-16 Richard M. Stallman <rms@gnu.org>
8151
8152 * xdisp.c (try_window, try_window_reusing_current_matrix):
8153 When at end of window, set window_end_pos to Z-ZV.
8154
8155 * buffer.c (Foverlay_recenter): Doc fix.
8156
e509f168
SM
81572003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8158
8159 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8160
d243e605
AC
81612003-04-14 Andrew Choi <akochoi@shaw.ca>
8162
8163 * macterm.c (mac_check_for_quit_char): Don't check more often than
8164 once a second.
8165
6901b111
SM
81662003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8167
8168 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8169 specially, so that they can't hide an implicit switch-frame event.
8170 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8171 (head_table): Use switch-frame as event_kind for select-window.
8172 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8173
8174 * editfns.c (Fformat): Lisp_Object/int mixup.
8175 (format2): Remove unused var numargs.
8176
e301806f 81772003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8178
6901b111 8179 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8180 (Qafter_insert_file_set_coding): New variable.
8181 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8182 for after-insert-file-adjust-coding-function.
8183 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8184 instead of Vafter_insert_file_adjust_coding_function.
8185
38914424
KH
81862003-04-11 Kenichi Handa <handa@m17n.org>
8187
8188 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8189
8190 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8191 string. Callers changed.
8192
81932003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8194
6901b111 8195 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8196 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8197 (Finsert_file_contents):
8198 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8199 decode-format.
8200
f979dc05
JD
82012003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8202
8203 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8204 get GtkAdjustment as widget now is a GtkRange.
8205
8206 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8207 GtkRange to avoid memory leak.
8208
f8c6b4c2 82092003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8210
50ebc53d
KH
8211 * xfaces.c (Vface_font_rescale_alist): New variable.
8212 (struct font_name): New member rescale_ratio.
8213 (font_rescale_ratio): New function.
6901b111 8214 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8215 (better_font_p): On comparing point sized, pay attention to
8216 recale_ratio member of fonts.
8217 (build_scalable_font_name): Reflect font->rescale_ratio in the
8218 font name.
6901b111 8219 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8220
cb98871c
KH
8221 * lread.c (read1): Before calling index, check if the 2nd
8222 arguemnt is in ASCII range.
8223
4773b8ca
RS
82242003-04-08 Richard M. Stallman <rms@gnu.org>
8225
b0ada147
RS
8226 * fileio.c (Ffile_symlink_p): Doc fix.
8227
8228 * editfns.c (Fformat): Translate positions of text properties
8229 in the format string to apply them to the result.
8230
4773b8ca
RS
8231 * fileio.c (Finsert_file_contents): Doc fix.
8232 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8233
82342003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8235
4773b8ca
RS
8236 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8237
e8f25745 82382003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8239
e8f25745
ST
8240 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8241 that self-contained application finds libexec files.
8242
f8c6b4c2 82432003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8244
6901b111
SM
8245 * coding.c (code_convert_region_unwind):
8246 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8247 (code_convert_region): If post-read-conversion function changed
8248 the value of last-coding-sytem, keep the new value in
8249 coding->symbol so that it won't be overridden.
8250 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8251 (coding_system_accept_latin_extra_p): New function.
8252 (find_safe_codings): Pay attention to characters registered in
8253 latin-extra-code-table.
2310d84c 8254
39c9a034
TTN
82552003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8256
8257 * Makefile.in (md5.o): Add missing dependency info.
8258
eb67c5d6
RS
82592003-04-06 Richard M. Stallman <rms@gnu.org>
8260
8261 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8262
8263 * marker.c (verify_bytepos): New function.
8264
8265 * intervals.c (set_intervals_multibyte_1): When becoming
8266 multibyte, adjust right and left child sizes to a whole set of
8267 characters. If an interval gets zero total-length, delete it.
8268 If an interval consists of just its children, delete one of them.
8269
8270 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8271 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8272
eb67c5d6
RS
8273 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8274 All calls deleted.
8275 (lisp_malloc): Do the work here directly.
8276
b1f81fc5
JB
82772003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8278
8279 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8280 char tables.
8281
82822003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8283
8284 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8285 destructively change "%S" to "%s".
8286
774666fb
MB
82872003-04-03 Miles Bader <miles@gnu.org>
8288
8289 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8290 always set.
8291
19c37f01
DL
82922003-04-01 Dave Love <fx@gnu.org>
8293
8294 * xfns.c (xpm_lookup_color): Grok "opaque".
8295
2f4b24c3
AC
82962003-03-31 Andrew Choi <akochoi@shaw.ca>
8297
8298 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8299 parent window ID.
8300
8301 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8302
8303 * macterm.h (struct mac_output): Define x_pixels_diff and
8304 y_pixels_diff.
b1f81fc5 8305
9443fcf6
JB
83062003-03-31 Juanma Barranquero <lektu@terra.es>
8307
8308 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8309 blockinput.h and files included from it.
8310
e072891b
KS
83112003-03-31 Kim F. Storm <storm@cua.dk>
8312
8313 The following changes consolidates the common code related to
8314 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8315 files into frame.c.
9443fcf6 8316
e072891b
KS
8317 * frame.c: Include blockinput.h.
8318 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8319 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8320 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8321 related vars here.
8322 (struct frame_parm_table, frame_parms): New table for describing
8323 frame parameters and their associated Q-variable.
8324 The order of the parameters corresponds to the sequence of the
8325 frame_parm_handlers table in redisplay_interface.
8326 (x_fullscreen_move, x_set_frame_parameters)
8327 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8328 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8329 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8330 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8331 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8332 Generic functions for processing of frame parameters.
8333 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8334 (display_x_get_resource, x_get_resource_string): Functions for
8335 generic access to X resources.
8336 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8337 (x_default_parameter, Fx_parse_geometry): Functions for generic
8338 access to frame parameters.
6901b111
SM
8339 (x_figure_window_size): Generic calculation of frame size.
8340 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
8341 (syms_of_frame): Intern and staticpro frame parameter variables.
8342 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8343 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 8344
e072891b
KS
8345 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8346 parameter related vars defined in frame.c.
8347 (EMACS_CLASS): Define here.
8348 (enum FULLSCREEN_*): Define here.
8349 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8350 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8351 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8352 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8353 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8354 (x_set_visibility, x_set_autoraise, x_set_autolower)
8355 (x_set_unsplittable, x_set_vertical_scroll_bars)
8356 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8357 (x_figure_window_size): Add prototypes.
8358
8359 * dispextern.h (frame_parm_handler): New typedef.
8360 (struct redisplay_interface): New member frame_parm_handlers.
8361 (enum resource_types): Move declaration here.
8362 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8363 (x_default_parameter): Add prototypes.
8364
8365 * window.c: Remove extern decl for frame parameter vars.
8366 (change_window_heights): New generic function;
8367 replaces x_change_window_heights. All users changed.
8368
8369 * window.h (change_window_heights): Add prototype.
8370
8371 * xfaces.c: Remove extern decl for frame parameter vars.
8372
8373 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8374 (struct w32_display_info): Fix type of xrdb member.
8375 (enum FULLSCREEN_*): Remove.
8376 Remove prototypes for generic functions (in frame.h).
8377
8378 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8379 parameters now defined in frame.h and frame.c.
f63fd14e 8380 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8381 (enum x_frame_parms): Remove (bogus, unused enum).
8382 (check_x_display_info): Make non-static (for frame.c).
8383 (struct x_frame_parm_table, x_frame_parms): Remove.
8384 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8385 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8386 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8387 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8388 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8389 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8390 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8391 Remove. Use generic functions instead.
8392 (enum resource_types): Remove.
8393 (x_set_scroll_bar_default_width): New global function (for frame.c).
8394 (Fx_create_frame): Depend on x_figure_window_size to add space for
8395 toolbar and setup size_hint_flags.
8396 (x_frame_parm_handlers): New table for redisplay_interface.
8397 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 8398
e072891b 8399 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 8400 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
8401 (x_redisplay_interface): Add x_frame_parm_handlers member.
8402
8403 * w32gui.h (XrmDatabase): New (dummy) typedef.
8404
8405 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8406 (struct w32_display_info): Fix type of xrdb member.
8407 (enum FULLSCREEN_*): Remove.
8408 (x_fullscreen_adjust): Remove prototype.
8409
8410 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8411 parameters now defined in frame.h and frame.c.
f63fd14e 8412 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8413 (enum x_frame_parms): Remove (bogus, unused enum).
8414 (check_x_display_info): Make non-static (for frame.c).
8415 (struct x_frame_parm_table, x_frame_parms): Remove.
8416 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8417 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8418 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8419 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8420 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8421 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8422 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8423 Remove. Use generic functions instead.
8424 (enum resource_types): Remove.
8425 (x_set_scroll_bar_default_width): New global function (for frame.c).
8426 (Fx_create_frame): Depend on x_figure_window_size to add space for
8427 toolbar and setup size_hint_flags.
8428 (w32_frame_parm_handlers): New table for redisplay_interface.
8429 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 8430
e072891b
KS
8431 * w32term.c: Remove unnecessary extern declarations.
8432 (x_fullscreen_adjust): Remove. Use generic instead.
8433 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8434
8435 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8436
8437 * macgui.h (XrmDatabase): New (dummy) typedef.
8438
8439 * macterm.h (EMACS_CLASS): Remove.
8440 (struct mac_display_info): Add xrdb member.
8441 (struct mac_output): Add want_fullscreen member.
8442
8443 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8444 parameters now defined in frame.h and frame.c.
f63fd14e 8445 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
8446 (check_x_display_info): Make non-static (for frame.c).
8447 (struct x_frame_parm_table, x_frame_parms): Remove.
8448 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8449 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8450 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8451 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8452 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8453 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8454 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8455 Remove. Use generic functions instead.
8456 (enum resource_types): Remove.
8457 (x_set_scroll_bar_default_width): New global function (for frame.c).
8458 (mac_frame_parm_handlers): New table for redisplay_interface.
8459 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 8460
e072891b
KS
8461 * macterm.c: Remove unnecessary extern declarations.
8462 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8463
3e6a560b
KS
8464 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8465 included from it (atimer.h and systime.h).
8466
7b7b454e
AS
84672003-03-30 Andreas Schwab <schwab@suse.de>
8468
8469 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8470 parameters for shift_glyphs_for_insert.
8471
8472 * macterm.c (x_redisplay_interface): Add missing entry for
8473 draw_vertical_window_border.
8474
beb402de
KG
84752003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8476
8477 * fileio.c (Fexpand_file_name): In the no-handler case, after
8478 expanding, look again for a handler and invoke it. This is needed
8479 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8480 expansion produces "/user@host:/bar/../baz" which needs to be
8481 expanded again for the finame result "/user@host:/baz".
8482
b676f356
JD
84832003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8484
8485 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8486 of area to be redrawn for better performance.
8487
3c671a56
SM
84882003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8489
8490 * xterm.c (take_vertical_position_into_account): Remove.
8491 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8492 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8493 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8494 (x_set_toolkit_scroll_bar_thumb): Simplify.
8495 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8496 (XTread_socket): Remove unused var.
8497 (x_make_frame_invisible): Replace goto with else.
8498
8499 * xdisp.c (set_vertical_scroll_bar): New fun.
8500 (redisplay_window): Use it.
8501
84f2e615
RS
85022003-03-26 Richard M. Stallman <rms@gnu.org>
8503
8504 * xdisp.c (update_tool_bar): Recompute tool bar if
8505 update_mode_lines is set. Set w->update_mode_line
8506 only if the tool bar contents actually change.
8507 (update_menu_bar): Undo previous change.
8508
70b6104c
JD
85092003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8510
5fd6f727
JD
8511 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8512 (xg_frame_set_char_size): Calculate scroll bar width before frame
8513 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8514 (xg_separator_p): Check for all documented separator types.
8515 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8516 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8517
70b6104c
JD
8518 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8519 so tool bar gets updated.
8520
d9b36d19
SM
85212003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8522
8523 * data.c (store_symval_forwarding): Re-instate part of the code
8524 that was deleted with too much enthusiasm.
8525
85262003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8527
8528 * data.c (store_symval_forwarding): Delete special read-only
8529 hack for type == -1, since we now use ->constant instead.
8530 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8531
8532 * buffer.c (overlays_in): Declare static.
8533 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8534 `constant' field rather than the variable's `type' field.
8535
365fa1b3
AC
85362003-03-24 Andrew Choi <akochoi@shaw.ca>
8537
8538 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8539
8540 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8541
8542 * fns.c [MAC_OSX]: Do not redefine vector.
8543
8544 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8545
8546 * macgui.h: Remove definition of No_Cursor.
8547
d9b36d19 8548 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8549
8550 * xdisp.c: Define No_Cursor.
8551 (x_write_glyphs, notice_overwritten_cursor)
8552 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8553 (note_mouse_highlight): Remove Mac-specific code.
8554 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8555
c0bcce6f
JPW
85562003-03-24 John Paul Wallington <jpw@gnu.org>
8557
8558 * xdisp.c (redisplay_window): If mini window's buffer is not
8559 empty, then redisplay it like other windows.
8560
a526b96c
KS
85612003-03-23 Kim F. Storm <storm@cua.dk>
8562
8563 * w32term.c (w32_draw_window_cursor): Fix last change.
8564
37ab321e
KH
85652003-03-23 Kenichi Handa <handa@m17n.org>
8566
a526b96c
KS
8567 * alloc.c (make_string_from_bytes, make_specified_string):
8568 Add `const' for the arg CONTENTS.
37ab321e
KH
8569
8570 * lisp.h (make_string_from_bytes, make_specified_string):
8571 Prototypes adjusted.
8572
7863d625
JD
85732003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8574
a526b96c 8575 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8576
7863d625
JD
8577 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8578 (XG_SB_RANGE): New define.
8579
8580 * gtkutil.c (xg_fixed_handle_expose): New function.
8581 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8582 expose events.
8583 (xg_update_scrollbar_pos): Take two more arguments, left and width
8584 of scroll bar including borders.
8585 Clear left and right part outside scroll bar separately as some
8586 themes have bars that are not an even number of pixels.
d9b36d19 8587 Don't set reallocate_redraws, don't call
7863d625
JD
8588 gdk_window_process_all_updates.
8589 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8590 so no need to change it. Calculate size and value with XG_SB_RANGE.
8591
d9b36d19
SM
8592 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8593 Pass left and width of scroll bar including borders to
7863d625
JD
8594 xg_update_scrollbar_pos.
8595
af0ad939
TTN
85962003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8597
8598 * Makefile.in: Make sure space precedes end-of-line backslashes.
8599
b22139fd
KS
86002003-03-22 Kim F. Storm <storm@cua.dk>
8601
8602 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8603 Add generic versions here. Remove system specific versions
8604 defined elsewhere.
8605
8606 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8607 Add prototypes.
8608
6e6410cf
KS
8609 * xterm.h (STORE_NATIVE_RECT): New macro.
8610
5c9cc435
KS
86112003-03-21 Kim F. Storm <storm@cua.dk>
8612
00c64fab
SM
8613 * xdisp.c (get_glyph_string_clip_rect):
8614 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8615
8616 * dispextern.h (struct redisplay_interface): Add active_p
8617 argument to draw_window_cursor member. All uses changed.
8618
acd37560
KS
86192003-03-21 Kim F. Storm <storm@cua.dk>
8620
8621 The following changes consolidate code related to writing and
8622 inserting glyphs, exposing frame, the tool bar, the mouse face,
8623 the output cursor, and help echo from xterm.c, w32term.c and
8624 macterm.c into xdisp.c. It also generalizes the use of the
8625 window_part enum instead of using numeric values throughout.
af0ad939 8626
acd37560
KS
8627 * xdisp.c: Consolidate gui-independent code here.
8628 Include keymap.h.
8629 (Qhelp_echo): Import.
8630 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8631 (help_echo_string, help_echo_window, help_echo_object)
8632 (previous_help_echo_string, help_echo_pos): Declare here.
8633 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8634 (estimate_mode_line_height): Define here. Handle windowing
8635 systems directly (without using estimate_mode_line_height_hook).
8636 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8637 (update_window_cursor, update_cursor_in_window_tree)
8638 (fast_find_position, fast_find_string_pos)
8639 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8640 (expose_area, expose_line, expose_overlaps, expose_window)
8641 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8642 declared static as they are only used locally in xdisp.c.
8643 (draw_glyphs): Rename from x_draw_glyphs and make static.
8644 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8645 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8646 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8647 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8648 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8649 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8650 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8651 (note_mouse_highlight, x_clear_window_mouse_face)
8652 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8653 (x_intersect_rectangles): New generic functions for use by xdisp.c
8654 and GUI front-ends.
8655 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8656 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8657
8658 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8659 (NativeRectangle): Generic typedef for rectangle type.
8660 (enum window_part): Move here from window.c.
8661 (struct redisplay_interface): New members flush_display_optional,
8662 define_frame_cursor, clear_frame_area, draw_window_cursor,
8663 draw_vertical_window_border, shift_glyphs_for_insert.
8664 Rename member clear_mouse_face to clear_window_mouse_face.
8665 (estimate_mode_line_height_hook): Remove hook.
8666 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8667 (tool_bar_item_info): Remove prototype.
8668 (help_echo_string, help_echo_window, help_echo_object)
8669 (previous_help_echo_string, help_echo_pos)
8670 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8671 (x_stretch_cursor_p, output_cursor): Declare extern.
8672 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8673 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8674 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8675 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8676 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8677 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8678 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8679 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8680 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8681 Add prototypes.
8682 (mode_line_string, marginal_area_string): Fix prototypes.
8683
8684 * window.c (enum window_part): Move to dispextern.h.
8685 (coordinates_in_window): Use enum window_part member names
8686 instead of numbers to describe return value.
8687 (struct check_window_data): Change part member to window_part.
8688 (check_window_containing): Return window_part unaltered.
8689 (window_from_coordinates): Change part arg from int to enum
8690 window_part. Allow part arg to be null. All users changed.
8691
8692 * window.h (window_from_coordinates): Fix prototype.
8693
8694 * term.c (estimate_mode_line_height): Move to xdisp.c.
8695
8696 * keyboard.c (make_lispy_event): Use enum window_part.
8697
8698 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8699 window_part instead of int in arg list. Users changed.
8700
8701 * xterm.h (No_Cursor): Declare as None for X.
8702 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8703
acd37560
KS
8704 * xterm.c: Remove consolidated defines and code.
8705 (BETWEEN): Remove unused macro.
8706 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8707 (x_define_frame_cursor, x_clear_frame_area)
8708 (x_draw_window_cursor): New X-specific functions for RIF.
8709 (x_redisplay_interface): Add new members.
8710
8711 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8712
8713 * w32term.h (struct w32_output): Remove cross_cursor member.
8714
8715 * w32term.c: Remove consolidated defines and code.
8716 (BETWEEN): Remove unused macro.
8717 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8718 (w32_define_frame_cursor, w32_clear_frame_area)
8719 (w32_draw_window_cursor): New W32-specific functions for RIF.
8720 (w32_redisplay_interface): Add new members.
8721
a64387ee 8722 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8723 (XRectangle): Add X compatible rectangle type.
8724 (NativeRectangle): Declare as RECT for W32.
8725 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8726
8727 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8728
8729 * w32console.c: Remove consolidated defines and code.
af0ad939 8730
acd37560
KS
8731 * msdos.h (Display_Info): Add generic typedef.
8732
8733 * msdos.c: Remove consolidated defines and code.
8734 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8735
8736 * macterm.h (struct mac_output): Replace member cross_cursor by
8737 hand_cursor.
8738 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8739
8740 * macterm.c: Remove consolidated defines and code.
8741 (BETWEEN): Remove unused macro.
8742 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8743 (mac_define_frame_cursor, mac_clear_frame_area)
8744 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8745 (x_redisplay_interface): Add new members.
8746
8747 * macgui.h (No_Cursor): Define as 0 for Mac.
8748 (XRectangle): Add X compatible rectangle type.
8749 (NativeRectangle): Declare as Rect for Mac.
8750 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8751
204ccab1
KS
8752 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8753 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8754
9443fcf6 8755 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8756 included from it. Add dependency on keymap.h.
8757
8758 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8759
8ba01a70 87602003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8761
8762 * fileio.c (Fexpand_file_name): Fix previous change.
8763
8ba01a70 87642003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8765
8766 * fileio.c (Ffile_name_directory): Reconstruct file name by
8767 make_specified_string.
8768 (Ffile_name_nondirectory, Ffile_name_as_directory)
8769 (Fdirectory_file_name, Fexpand_file_name)
8770 (Fsubstitute_in_file_name): Likewise.
8771 (Fread_file_name): Compare decoded homedir with DIR and
8772 DEFAULT_FILENAME.
8773
8774 * alloc.c (make_specified_string): If NCHARS is negative, count
8775 the number of characters.
8776
19536747
JD
87772003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8778
de38ae5a
JD
8779 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8780 all widgets.
8781
19536747
JD
8782 * gtkutil.h: Removed xg_ignore_next_thumb.
8783
37ab321e 87842003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8785
8786 * coding.c (Vchar_coding_system_table): Remove this variable.
8787 (Vcoding_system_safe_chars): New variable.
8788 (intersection): Remove this function.
8789 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8790 all codings in SAFE_CODINGS.
00c64fab 8791 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8792 find_safe_codings. Get generic coding systems from
8793 Vcoding_system_safe_chars.
8794 (Fdefine_coding_system_internal): New function.
8795 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8796 Initialize and staticpro Vcoding_system_safe_chars.
8797
17097258
JD
87982003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8799
2a2071c3
JD
8800 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8801 equal old values before updating.
8802
17097258
JD
8803 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8804
8805 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8806
88072003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8808
8809 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8810 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8811 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8812 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8813 (xg_create_scroll_bar): Pass bar to button event callback.
8814 (xg_find_top_left_in_fixed): New function.
8815 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8816 whole scroll bar area. Get old position with
8817 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8818 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8819 dragging is in progress. Calculate whole as for Motif.
8820 Remove code that saved last values. Call gtk_range functions to
8821 set scroll bar sizes.
8822
8823 * gtkutil.h: Removed xg_ignore_next_thumb.
8824
8cb9dfbf
JB
88252003-03-17 Juanma Barranquero <lektu@terra.es>
8826
8827 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8828 and files included from it.
8829
00c64fab
SM
88302003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8831
8832 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8833 multiple occurrences of the same keymap under different prefixes.
8834 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8835
c45bb3b2
JR
88362003-03-16 Jason Rumney <jasonr@gnu.org>
8837
8838 * w32gui.h: Use HDC for Display.
8839
8840 * w32term.c (w32_encode_char): Prevent double-byte chars from
8841 crashing Emacs.
8842
8843 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8844 as binary.
8845
2a6d0874
JB
88462003-03-16 Juanma Barranquero <lektu@terra.es>
8847
8848 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8849
03eb5fab
KS
88502003-03-16 Kim F. Storm <storm@cua.dk>
8851
8852 The following changes consolidate some of the gui-independent
8853 parts of the processing and drawing of "glyph strings" from
8854 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8855
03eb5fab
KS
8856 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8857 21 bits (this reduces number of faces from 4M to 2M).
8858 Replace W32 specific w32_font_type member (2 bits) by generic
8859 font_type member (3 bits) for portability.
8860 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8861 (enum draw_glyphs_face): Define here.
8862 (struct glyph_string): Define here. Merge W32 and X versions.
8863 (struct redisplay_interface): New members per_char_metric,
8864 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8865 (VCENTER_BASELINE_OFFSET): Define here.
8866 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8867 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8868
8869 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8870 (dump_glyph_string): Moved here.
8871 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8872 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8873 (fill_composite_glyph_string, fill_glyph_string)
8874 (fill_image_glyph_string, fill_stretch_glyph_string)
8875 (left_overwritten, left_overwriting, right_overwritten)
8876 (right_overwriting, get_char_face_and_encoding)
8877 (set_glyph_string_background_width, compute_overhangs_and_x)
8878 (append_glyph, append_composite_glyph, produce_image_glyph)
8879 (take_vertical_position_into_account, append_stretch_glyph)
8880 (produce_stretch_glyph): New generic functions (based on X version).
8881 Call platform specific functions through rif.
8882 (INIT_GLYPH_STRING): New macro, hides W32 details.
8883 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8884 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8885 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8886 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8887 (notice_overwritten_cursor):
8888 Generic functions exported to platform modules. Users changed.
8889
8890 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8891 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8892 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8893 New macros for consolidated code.
2a6d0874 8894
03eb5fab
KS
8895 * xterm.c: Remove consolidated defines and code.
8896 (x_per_char_metric, x_encode_char)
8897 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8898 (x_redisplay_interface): Add new members.
8899
8900 * w32gui.h (Display): Add dummy typedef for consolidation.
8901 (XChar2b): Define alias for wchar_t for consolidation.
8902 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8903
8904 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8905 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8906 New macros for consolidation.
8907
fad49844 8908 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8909 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8910 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8911 (w32_per_char_metric): Change font_type arg to int for RIF.
8912 (w32_encode_char): Return int according to RIF requirements.
8913 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8914 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8915 x_get_glyph_overhangs.
8916 (w32_redisplay_interface): Add new members.
8917
8918 * macgui.h (XChar2b): Move typedef here for consolidation.
8919 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8920
8921 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8922 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8923 consolidation.
8924
8925 * macterm.c: Remove consolidated defines and code.
8926 (mac_per_char_metric): New function for RIF.
00c64fab 8927 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8928 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8929 (x_redisplay_interface): Add new members.
8930
00c64fab
SM
89312003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8932
8933 * keymap.c (Vmenu_events): New var.
8934 (syms_of_keymap): Initialize it.
8935 (where_is_internal): Check more carefully what is a menu event.
8936
225c7a07
RS
89372003-03-14 Richard M. Stallman <rms@gnu.org>
8938
8939 * lread.c (read1): After #!, exit loop on eof.
8940
cea9be54
JD
89412003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8942
9ea0e54d
JD
8943 * gtkutil.h: Add declaration for xg_frame_cleared.
8944
0cb35f4e
JD
8945 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8946
cea9be54
JD
8947 * gtkutil.c (struct xg_last_sb_pos): New structure.
8948 (handle_fixed_child): New function.
8949 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8950 and force a redraw on them.
8951 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8952 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8953 so we can avoid unneeded redraws.
8954 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8955 and force a redraw on the scroll bar.
8956 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8957 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 8958 (xg_frame_cleared): New function.
cea9be54 8959
20b853f3
KH
89602003-03-13 Kenichi Handa <handa@m17n.org>
8961
8962 * coding.c (Fdetect_coding_region): Fix docstring.
8963 (Fdetect_coding_string): Fix docstring.
8964
7a555aff
AS
89652003-03-13 Andreas Schwab <schwab@suse.de>
8966
25cc0080
AS
8967 * gtkutil.c: Add prototype for create_menus.
8968
30225431
AS
8969 * data.c (long_to_cons): Fix type of top.
8970
8971 * xselect.c (selection_data_to_lisp_data): Use int instead of
8972 long for an integer of size 4.
8973
7a555aff 8974 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8975 (xg_tool_bar_help_callback): Likewise.
7a555aff 8976
a3e4741f
AS
89772003-03-12 Andreas Schwab <schwab@suse.de>
8978
8979 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8980
9668be7c
KS
89812003-03-12 Kim F. Storm <storm@cua.dk>
8982
03eb5fab 8983 The following changes consolidate the fringe handling from
9668be7c 8984 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8985
9668be7c
KS
8986 * xdisp.c: Consolidate fringe handling code here.
8987 (left_bits, right_bits, continued_bits, continuation_bits)
8988 (ov_bits, zv_bits): Define fringe bitmaps.
8989 (fringe_bitmaps): New array holding fringe bitmaps.
8990 (draw_fringe_bitmap): Draw a specific bitmap; call display
8991 specific drawing routine via rif->draw_fringe_bitmap.
8992 (draw_row_fringe_bitmaps): Generic replacement for
8993 x_draw_row_fringe_bitmaps; all callers changed.
8994 (compute_fringe_widths): Generic replacement for
8995 x_compute_fringe_widths; all callers changed.
8996
8997 * dispextern.h (enum fringe_bitmap_type): Define here.
8998 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8999 (fringe_bitmaps): Declare extern.
9000 (struct redisplay_interface): New member draw_fringe_bitmap.
9001 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9002
9003 * xterm.c: Remove generic fringe code.
9004 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9005 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9006
9007 * w32term.c: Remove generic fringe code.
9008 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9009 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9010
9668be7c
KS
9011 * macterm.c: Remove generic fringe code.
9012 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9013 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9014
00a88f32
SM
90152003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9016
9017 * print.c (Fprin1_to_string): Return unibyte string if possible.
9018
1d1de695
DK
90192003-03-09 David Kastrup <dak@gnu.org>
9020
9021 * process.c (read_process_output): We have allocated enough space
9022 for readmax and carryover, so actually use the alloted space.
9023
257f40f2
JD
90242003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9025
9026 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9027 toolkit scrollbar click.
9028
9029 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9030 for USE_GTK.
9031 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9032 also.
9033 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9034 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9035
78819ebb 9036 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9037
9038 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9039 (xg_tool_bar_item_expose_callback): New function.
9040 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9041 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9042 on the tool bar widget.
9043 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9044 to expose on the tool bar item widgets.
9045
15213141
JD
90462003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9047
26b74a0b 9048 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9049 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9050 deleted from the image cache).
9051
15213141
JD
9052 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9053 the event isn't for a frame (i.e. for dialogs).
9054
20b853f3 90552003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9056
9057 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9058 composition components reaches the limit, terminate composing.
9059 (COMPOSITION_OK): New macro.
00a88f32 9060 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9061 composition is found.
9062 (coding_restore_composition): Adjust the number of composition
9063 components if it is not sane.
9064
c9029fe5
JB
90652003-03-06 Juanma Barranquero <lektu@terra.es>
9066
9067 * w32term.h (struct w32_display_info): Add xrdb member to support
9068 passing resources via -xrm on Windows.
9069
9070 * w32term.c (w32_make_rdb): New function.
9071 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9072 struct. Delete leftover code.
9073
9074 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9075 for resources passed on the command line.
9076
9077 * w32reg.c (w32_get_rdb_resource): New function.
9078 (x_get_string_resource): Use it, so resources passed with -xrm
9079 supercede the ones in the registry.
9080
9d00001f
JD
90812003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9082
9083 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9084 instead of x_top_window_to_frame.
9085
ca2417b9
JD
90862003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9087
9088 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9089 when restarting Emacs.
9090
5b20caf0
RS
90912003-03-03 Richard M. Stallman <rms@gnu.org>
9092
9093 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9094 to run kill-buffer-query-functions.
9095 (Qkill_buffer_query_functions): New var.
9096 (syms_of_buffer): Init and staticpro it.
9097
58e91b77
JD
90982003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9099
9100 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9101
932357b4
KS
91022003-02-25 Kim F. Storm <storm@cua.dk>
9103
9104 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9105 If centering point failed to make whole line visible and vscroll
9106 is non-zero, disable vscroll and try centering point again.
9107
9108 * lread.c (read1): Accept `single space' syntax like (? x).
9109
bb8db7e1
JD
91102003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9111
9112 * keyboard.c (cancel_hourglass_unwind): Surround with
9113 #ifdef HAVE_X_WINDOWS
9114
47d77aab
KH
91152003-02-25 Kenichi Handa <handa@m17n.org>
9116
9117 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9118 process only when "subprocesses" is defined.
9119
6a097c0c
SM
91202003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9121
9122 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9123
0b063c27
JB
91242003-02-24 Juanma Barranquero <lektu@terra.es>
9125
d1135afc
JB
9126 * callint.c (fix_command): Declare as static void and move before
9127 Fcall_interactively.
9128
0b063c27
JB
9129 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9130 (syms_of_xdisp): Don't initialize Qwhen.
9131
0af912f0
JD
91322003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9133
9134 * keyboard.c (cancel_hourglass_unwind): New function.
9135 (command_loop_1): Cancel hourglass with unwind-protect.
9136
120d0a23
RS
91372003-02-23 Richard M. Stallman <rms@gnu.org>
9138
9139 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9140 Detect (when ... (region-beginning)) etc.
9141 (Fcall_interactively): Call fix_command.
9142 (Qif, Qwhen): New variables.
9143 (syms_of_callint): Init and staticpro them.
0b063c27 9144
120d0a23
RS
9145 * regex.c (print_partial_compiled_pattern): Output to stderr.
9146
4ece81a6
KG
91472003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9148
9149 * dired.c (directory_files_internal): Don't expand directory.
9150 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9151 instead. From Lars Hansen <larsh@math.ku.dk>.
9152
e52bd6b7
SM
91532003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9154
9155 * fns.c (string_to_multibyte): Remove unused var i.
9156 (Flanginfo): Fix int/Lisp_Object mixup.
9157 (void_call2): New fun.
9158 (Fmap_char_table): Use it in place of call2.
9159
9160 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9161
9162 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9163
9164 * keymap.c (copy_keymap_1): Make it static.
9165
9166 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9167
c33ef7c4
JB
91682003-02-22 David Ponce <david@dponce.com>
9169
9170 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9171
16782258
JD
91722003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9173
9174 * process.h: Removed subtty field from struct Lisp_Process.
9175
9176 * process.c (create_process): Remove setting of subtty.
9177 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9178 (Fprocess_running_child_p, process_send_signal):
9179 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9180 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9181
3abeca61
KG
91822003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9183
9184 * keymap.c (Fdefine_key): Doc fix.
9185
92a8ce63
JB
91862003-02-21 Juanma Barranquero <lektu@terra.es>
9187
9188 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9189
9190 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9191 POLLING_PROBLEM_IN_SELECT.
9192
9193 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9194 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9195
9196 * s/hpux10-20.h: New file.
9197
e52bd6b7
SM
9198 * process.c (wait_reading_process_input):
9199 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9200
20f1ef2e
KH
92012003-02-20 Kenichi Handa <handa@m17n.org>
9202
32d0a9dc
KH
9203 * fontset.c (check_fontset_name): If NAME is nil, return the
9204 default fontset.
9205 (override_font_info): New function.
e52bd6b7 9206 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9207 (Ffontset_info): If FONTSET is not the default fontset, merge
9208 FONTSET onto the copy of the default fontset, and work on that
9209 copy. Document that NAME nil means the default fontset.
9210 (Ffontset_font): Document that NAME nil means the default fontset.
9211
20f1ef2e
KH
9212 * process.c (setup_process_coding_systems): If the process's
9213 in/out descriptor is -1, do nothing.
9214
77d1daf2
AS
92152003-02-19 Andreas Schwab <schwab@suse.de>
9216
e52bd6b7
SM
9217 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9218 Add prototypes.
77d1daf2 9219
f9a45bb3
KH
92202003-02-19 Kenichi Handa <handa@m17n.org>
9221
9222 * xfaces.c (try_alternative_families): Try all scalable fonts if
9223 Vscalable_fonts_allowed is not Qt.
9224
72ecb43c
JD
92252003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9226
9227 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9228
ee5be7c3
JD
92292003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9230
9231 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9232 names.
9233
9234 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9235 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9236 x_face_list_fonts.
9237 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9238 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9239
4cd519a7
KS
92402003-02-18 Kim F. Storm <storm@cua.dk>
9241
068f9882
KS
9242 * lread.c (read1): Fix last change.
9243 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9244
7290a344
AC
92452003-02-18 Andrew Choi <akochoi@shaw.ca>
9246
9247 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9248
1f7fa69b
AS
92492003-02-18 Andreas Schwab <schwab@suse.de>
9250
9251 * window.c (window_scroll_pixel_based): Move outside a
9252 multi-glyph character before setting new window start.
9253
9254 * xdisp.c (in_display_vector_p): New function.
9255 * dispextern.h (in_display_vector_p): Declare.
9256
23e21195
KS
92572003-02-18 Kim F. Storm <storm@cua.dk>
9258
9259 * lread.c (read1): Fix and relax read syntax.
9260 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9261 Only recognize "," after dotted-pair dot if inside backquote.
9262 Never include "`" or "," (inside backquote) in a symbol.
9263 Allow dotted-pair dot after a character constant.
9264 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9265
f098b121
JD
92662003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9267
9268 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9269 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9270 icons. Set name of tool bar to emacs-toolbar.
9271 (update_frame_tool_bar): Connect expose event to
9272 xg_tool_bar_expose_callback.
9273
63020c46
RS
92742003-02-17 Richard M. Stallman <rms@gnu.org>
9275
9276 * keyboard.c (this_command_key_count_reset): New variable.
9277 Initiatize to 0 where this_command_key_count is set.
9278 (read_char): Save and restore this_command_key_count_reset
9279 around input method code.
9280 (read_char): If this_command_key_count_reset, echo reread commands.
9281 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9282
fb4452cc
KH
92832003-02-17 Kenichi Handa <handa@m17n.org>
9284
9285 * fns.c (string_to_multibyte): Always return a multibyte string.
9286
bd11cc09
JR
92872003-02-16 Jason Rumney <jasonr@gnu.org>
9288
e52bd6b7
SM
9289 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9290 Negative max_fonts parameter means list all.
bd11cc09 9291
4cdf4bde
DL
92922003-02-14 Dave Love <fx@gnu.org>
9293
9294 * fns.c (Flanginfo): Doc fix.
9295
023b93f6
KS
92962003-02-13 Kim F. Storm <storm@cua.dk>
9297
37cd4238
KS
9298 * lread.c (read_escape): Interpret \s as a SPACE character, except
9299 for \s-X in a character constant which still is the super modifier.
9300 (read1): Signal an `invalid read syntax' error if a character
9301 constant is immediately followed by a digit or symbol character.
9302
140a6b7e
KS
9303 * search.c (Fmatch_data): Doc fix. Explicitly state that
9304 match-data is undefined if last search failed.
9305
023b93f6
KS
9306 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9307 All uses changed.
9308
7d5c86e5
JB
93092003-02-12 Juanma Barranquero <lektu@terra.es>
9310
9311 * eval.c (Fdefmacro): Fix typo.
9312
295fff2c
KS
93132003-02-12 Kim F. Storm <storm@cua.dk>
9314
9315 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9316 macro is a string, convert meta modifiers in string when copying
9317 the string into a vector.
9318
60f3202d
KS
93192003-02-11 Kim F. Storm <storm@cua.dk>
9320
9321 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9322
61cb0b53
KH
93232003-02-11 Kenichi Handa <handa@m17n.org>
9324
9325 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9326
7392e23c
KS
93272003-02-10 Kim F. Storm <storm@cua.dk>
9328
9329 * process.c: Doc fixes.
9330 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9331
ce4254bd
KH
93322003-02-10 Kenichi Handa <handa@m17n.org>
9333
9c7a329a
KH
9334 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9335
ce4254bd
KH
9336 * process.c (QCfilter_multibyte): New variable.
9337 (setup_process_coding_systems): New function.
e52bd6b7
SM
9338 (Fset_process_buffer, Fset_process_filter):
9339 Call setup_process_coding_systems.
ce4254bd
KH
9340 (Fstart_process): Initialize the member `filter_multibyte' of
9341 struct Lisp_Process.
9342 (create_process): Call setup_process_coding_systems.
9343 (Fmake_network_process): New keyward `:filter-multibyte'.
9344 Initialize the member `filter_multibyte' of struct Lisp_Process.
9345 Call setup_process_coding_systems.
9346 (server_accept_connection): Call setup_process_coding_systems.
9347 (read_process_output): If the process has a filter, decide the
9348 multibyteness of a string to given to the filter by
9349 `filter_multibyte' member of the process. If the process doesn't
9350 have a filter and the result of conversion is unibyte, use
9351 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9352 multibyte form.
9353 (Fset_process_coding_system): Call setup_process_coding_systems.
9354 (Fset_process_filter_multibyte): New function.
9355 (Fprocess_filter_multibyte_p): New function.
9356 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9357 Defsubr Sset_process_filter_multibyte and
9358 Sprocess_filter_multibyte_p.
9359
9360 * process.h (struct Lisp_Process): New member filter_multibyte.
9361
9362 * lisp.h (setup_process_coding_systems): Add prototype.
9363
9364 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9365 process, update coding systems for the process.
9366
b08d5f59
KH
93672003-02-09 Kenichi Handa <handa@m17n.org>
9368
9369 * fns.c (string_to_multibyte): New function.
9370 (Fstring_to_multibyte): New function.
9371 (syms_of_fns): Defsubr it.
9372
0dfd93c0
AS
93732003-02-08 Andreas Schwab <schwab@suse.de>
9374
9375 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9376 instead of the substitution.
9377
7b76ca1c
JD
93782003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9379
9380 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9381
9382 * xmenu.c (menu_position_func): Adjust menu popup position so that
9383 the menu is fully visible.
7b76ca1c 9384
2436a4e4
JD
93852003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9386
9387 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
9388 (x_make_frame_invisible, x_wm_set_icon_position):
9389 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
9390
9391 * xfns.c (x_set_name, x_set_title): Ditto.
9392
37d1e680
RS
93932003-02-04 Richard M. Stallman <rms@gnu.org>
9394
9395 * keyboard.c (echo_now): Update before_command_echo_length.
9396 (Freset_this_command_lengths): Reset this_command_key_count etc.
9397 immediately rather than arranging to do it later.
9398 (before_command_key_count_1, before_command_echo_length_1)
9399 (before_command_restore_flag): Vars deleted.
9400 (add_command_key): Don't handle before_command_restore_flag.
9401 (read_char, record_menu_key): Don't update before_command_key_count or
9402 before_command_echo_length.
9403 (read_char): Don't handle before_command_restore_flag.
9404
9405 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9406 in direct-output clauses if it wouldn't be called in the ordinary case.
9407
578846a3
KS
94082003-02-04 Kim F. Storm <storm@cua.dk>
9409
9410 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9411
49853a4d
JD
94122003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9413
9414 * gtkutil.c (remove_from_container): Copying list is not needed.
9415 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9416 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9417 on list returned from gtk_container_get_children to avoid memory leak.
9418
8b53dc06
JR
94192003-02-01 Jason Rumney <jasonr@gnu.org>
9420
5d54d177
JR
9421 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9422 local malloc.
9423 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9424 definitions in xpm.h.
9425 (init_xpm_functions): New function.
f63fd14e 9426 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
9427 (init_external_image_libraries): Try to load libXpm.dll.
9428
8b53dc06
JR
9429 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9430 timestamp.
9431
b222e415
DL
94322003-01-31 Dave Love <fx@gnu.org>
9433
9434 * syntax.c (Fskip_chars_forward)
9435 (open-paren-in-column-0-is-defun-start): Doc fix.
9436
c60ee5e7
JB
94372003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9438
9439 * fileio.c: Support // at start of name for Cygwin (just added proper
9440 preprocessor tests).
9441
9442 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9443
9444 * Makefile.in: Use @EXEEXT@ for Cygwin.
9445
9446 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9447
9448 * s/cygwin.h: Added for Cygwin port.
9449
53b37591
JB
94502003-01-31 Juanma Barranquero <lektu@terra.es>
9451
9452 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9453 when including gif_lib.h.
fe929957 9454 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
9455 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9456 Windows. Disable color table lookups. Call library functions
53b37591 9457 through pointers determined at runtime.
fe929957
JB
9458 (init_external_image_libraries): Try to load libungif.dll and
9459 libtiff.dll.
53b37591 9460
45415a8f
KH
94612003-01-31 Kenichi Handa <handa@m17n.org>
9462
9463 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 9464 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 9465
a97e4138
JD
94662003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9467
e52bd6b7 9468 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 9469
6eed9bed
DL
94702003-01-30 Dave Love <fx@gnu.org>
9471
9472 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9473 (Fgarbage_collect): Use them.
9474 (init_alloc, syms_of_alloc): Set them up.
9475
100dcd40
JB
94762003-01-30 Juanma Barranquero <lektu@terra.es>
9477
9478 * w32fns.c (init_external_image_libraries): Add missing operator.
9479
fbd852af
JR
94802003-01-29 Jason Rumney <jasonr@gnu.org>
9481
9482 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9483 an alternative name for jpeg.dll.
9484
8a2d8020
KH
94852003-01-29 Kenichi Handa <handa@m17n.org>
9486
9487 * xdisp.c (set_cursor_from_row): Pay attention to string display
9488 properties.
9489
058c18c7
AC
94902003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9491
9492 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9493 <escape>.
9494 (keycode_to_xkeysym_table): Reformat and add more comments.
9495 (XTread_socket): Drop special case for backspace.
9496
385f11cf
AC
94972003-01-28 Andrew Choi <akochoi@shaw.ca>
9498
9499 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9500 values in old-style RGB specs.
9501
c922a224
JB
95022003-01-27 Juanma Barranquero <lektu@terra.es>
9503
9504 * w32fns.c (init_external_image_libraries): Try alternate names for the
9505 jpeg dll.
9506
0a1d6de0
JD
95072003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9508
9509 * gtkutil.c (create_dialog, xg_separator_p)
9510 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9511 before calling strcmp or strlen.
9512
a97e4138 95132003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9514
9515 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9516 and handle image load failure.
9517
28908312
JR
95182003-01-26 Jason Rumney <jasonr@gnu.org>
9519
9520 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9521 New functions.
f63fd14e
JB
9522 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9523 Disable color table lookups. Call jpeg library functions
28908312
JR
9524 through pointers determined at runtime.
9525 (init_external_image_libraries): Try to load jpeg.dll.
9526
84e47416
RS
95272003-01-25 Richard M. Stallman <rms@gnu.org>
9528
9529 * lisp.h: Declare format2 instead of format1.
9530
9531 * fileio.c (barf_or_query_if_file_exists):
9532 Call format2 instead of format1.
9533
9534 * editfns.c (format2): New function, replaces format1
9535 but takes exactly two Lisp Objects as format args.
9536
9537 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9538
a97e4138 95392003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9540
9541 * xterm.h: Change to return value of x_dispatch_event to int.
9542
9543 * xterm.c (x_filter_event): New function.
9544 (event_handler_gdk, XTread_socket): Call x_filter_event.
9545 (x_dispatch_event): Change to return value of finish.
9546 (event_handler_gdk): Use return value from x_dispatch_event.
9547
9548 * xfns.c (x_window): Call create_frame_xic for GTK version to
9549 initialize input methods.
9550
9551 * gtkutil.h: Add (void) prototypes.
9552
9553 * gtkutil.c (create_menus): Remove code that puts the help menu to
9554 the right.
9555
54eefef1
JR
95562003-01-25 Jason Rumney <jasonr@gnu.org>
9557
9558 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9559 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9560 (png_load): Adjust colors for Windows. Use Windows
9561 bitmaps. Disable color table lookups.
c262430d
JR
9562 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9563 (init_png_functions): New function.
9564 (png_read_from_memory, png_load): Call png library functions
9565 through pointers determined at runtime.
9566 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9567 (init_external_image_libraries): New function.
9568 (init_xfns): Call it.
54eefef1 9569
1a9e275b
AS
95702003-01-24 Andreas Schwab <schwab@suse.de>
9571
9572 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9573
a97e4138 95742003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9575
9576 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9577 of static initializer.
9578
422eec7e
DL
95792003-01-24 Dave Love <fx@gnu.org>
9580
9581 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9582 architectures.
9583
9584 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9585 Use __alignof__.
9586
2a026b04
KH
95872003-01-24 Kenichi Handa <handa@m17n.org>
9588
9589 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9590 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9591 (command_loop_1): Call adjust_point_for_property with proper
9592 second arg.
9593
a18bb28d
JR
95942003-01-22 Jason Rumney <jasonr@gnu.org>
9595
9596 Sync changes with xterm.c and xfns.c.
9597
9598 * w32term.c (x_draw_glyph_string_foreground)
9599 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9600
9601 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9602 phys_cursor's hpos is overwritten. This is still not completely
9603 correct, as it doesn't really make sense to use hpos at all to
9604 get the cursor glyph (as that is relative to the width of the
9605 characters on the line, which may have changed during the update).
9606
9607 * w32term.c (notice_overwritten_cursor): Handle the special case
9608 of the cursor being in the first blank non-text line at the
9609 end of a window.
9610
9611 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9612 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9613 Compute from the x position returned by x_draw_glyphs.
9614
9615 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9616 except for NO_CURSOR and system caret, to make phys_cursor_width
9617 contain what its name suggests.
9618 (notice_overwritten_cursor): Consider the cursor image erased if
9619 the output area intersects the cursor image in y-direction.
9620
6a097c0c
SM
9621 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9622 note_mode_line_highlight and extend.
a18bb28d
JR
9623
9624 * w32term.c (last_window): New variable.
9625 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9626 (note_mouse_movement): Remove reimplemented code in #if 0.
9627
9628 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9629 not update_mode_lines, and always set it to 1.
9630
ac6e47ef
JR
96312003-01-21 Jason Rumney <jasonr@gnu.org>
9632
9633 * w32fns.c (IDC_HAND): Define it if system headers don't.
9634
96352003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9636
9637 * w32term.h (struct w32_output): New member hand_cursor.
9638 (WM_EMACS_SETCURSOR): New message definition.
9639
9640 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9641 function w32_define_cursor.
9642 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9643 position, change member name output_data.x to output_data.w32 and
9644 add function w32_define_cursor.
9645 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9646 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9647 (w32_initialize_display_info):
9648 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9649
9650 * w32fns.c (Vx_hand_shape): New variable.
9651 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9652 WM_EMACS_SETCURSOR.
9653 (x-create-frame): Setup Cursor types.
9654
ceb39a17
JB
96552003-01-21 David Ponce <david@dponce.com>
9656
ac6e47ef 9657 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9658 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9659 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9660 2002-09-30.)
ac6e47ef
JR
9661 (w32_draw_relief_rect): Declare all args.
9662 (w32_define_cursor): New.
9663
9664 * w32fns.c (w32_load_cursor): New function.
9665 (w32_init_class): Use it.
9666 (x_put_x_image): Declare all args.
9667
b6189c3b 96682003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9669
9670 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9671
a97e4138 96722003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9673
9674 * gtkutil.c: Must include stdio.h before termhooks.h
9675
83fc9c63
DL
96762003-01-21 Dave Love <fx@gnu.org>
9677
9678 * alloc.c (Fgc_status): Print zombie list.
9679 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9680 Fix assignment of zombies.
9681 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9682 Don't take car of non-cons.
9683
9684 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9685
9686 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9687
fe04b8c8
JR
96882003-01-20 David Ponce <david@dponce.com>
9689
9690 * w32menu.c (digest_single_submenu): Declare all args.
9691
9692 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9693 changes in xmenu.c:
9694
9695 (parse_single_submenu): Use individual keymap's prompt
9696 string as pane name, if there is one.
9697 (set_frame_menubar): Save menu_items_n_panes from each call to
9698 parse_single_submenu and use it when calling digest_single_submenu.
9699
539e69a9
ST
97002003-01-20 Steven Tamm <steventamm@mac.com>
9701
9702 * macterm.c (XTread_socket): Checks for valid, visible window
9703 before sending a scroll-wheel event.
9704
675d000f
RS
97052003-01-20 Richard M. Stallman <rms@gnu.org>
9706
9707 * xdisp.c (redisplay_window): If mini window's buffer is not
9708 a minibuffer, then redisplay it like other windows.
9709
a97e4138 97102003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9711
9712 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9713 external tool bar before setting tool bar height.
9714
048addec
JD
97152003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9716
9717 * xterm.c (handle_one_xevent): Surround popup_activated
9718 with #ifdef:s for non-toolkit version.
9719
9720 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9721 (gtkutil.o): New file.
9722 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9723 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9724
9725 * gtkutil.c: New file for GTK version.
9726
9727 * gtkutil.h: New file for GTK version.
9728
9729 * xterm.h: Add xt_or_gtk_widget.
9730 Include gtk files for USE_GTK.
9731 (struct x_output): Add toolbar_height.
9732 (struct x_output): Add GTK widgets and Gdk size_hints.
9733 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9734 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9735 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9736
9737 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9738 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9739 (note_mouse_highlight): Check popup_activated for USE_GTK.
9740 (xt_action_hook): Don't compile if USE_GTK.
9741 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9742 (xg_scroll_callback): New function.
9743 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9744 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9745 for USE_GTK.
9746 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9747 xg_show_scroll_bar for USE_GTK.
9748 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9749 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9750 (event_handler_gdk): New function for USE_GTK.
9751 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9752 (handle_one_xevent): Make sure widget is mapped before
9753 calling x_real_positions for USE_GTK.
9754 (XTread_socket): Add GTK event loop for USE_GTK.
9755 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9756 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9757 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9758 (x_iconify_frame): Add code for USE_GTK.
9759 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9760 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9761 is in gtkutil.c.
9762 (x_term_init): Add initialization for GTK.
9763 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9764
9765 * xmenu.c: Include gtkutil.h for USE_GTK.
9766 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9767 (single_menu_item, single_menu_item, Fx_popup_dialog):
9768 Check for USE_GTK.
048addec
JD
9769 (popup_widget_loop): New function for USE_GTK.
9770 (x_activate_menubar): Add code for USE_GTK.
9771 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9772 (menu_highlight_callback, menubar_selection_callback):
9773 Add USE_GTK versions.
048addec
JD
9774 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9775 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9776 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9777 is in gtkutil.c.
9778 (popup_selection_callback): New version for USE_GTK.
9779 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9780 one USE_X_TOOLKIT version.
048addec
JD
9781 (xmenu_show): Call create_and_show_popup_menu.
9782 (dialog_selection_callback): New version for USE_GTK.
9783 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9784 one USE_X_TOOLKIT version.
048addec
JD
9785 (xdialog_show): Call create_and_show_dialog.
9786
9787 * xfns.c: Include gtkutil for USE_GTK.
9788 (x_window_to_frame, x_any_window_to_frame)
9789 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9790 (x_top_window_to_frame): Add code for USE_GTK.
9791 (x_set_background_color): Call xg_set_background_color for GTK.
9792 (x_set_menu_bar_lines): Check for USE_GTK.
9793 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9794 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9795 (x_window): Call xg_create_frame_widgets for USE_GTK.
9796 (Fx_create_frame): Check for USE_GTK
9797 (Fx_file_dialog): New implementation for USE_GTK.
9798
9799 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9800 (update_menu_bar): Add check for USE_GTK.
9801 (update_tool_bar): Add check for USE_GTK and external tool bar.
9802 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9803 (redisplay_internal): Add check for USE_GTK and popup_activated.
9804 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9805 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9806 (display_menu_bar): Add check for USE_GTK
9807
78819ebb 9808 * lisp.h (Vx_resource_name): Declare extern.
048addec 9809
a64387ee 9810 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9811 for USE_GTK.
9812 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9813
9814 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9815 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9816 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9817
9818 * fileio.c (Fread_file_name): Add check for USE_GTK.
9819
6bdb309a
SM
9820 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9821 Add check for USE_GTK.
048addec
JD
9822
9823 * config.in: Added HAVE_GTK
9824
9825 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9826
98272003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9828
9829 * charset.h (Funibyte_char_to_multibyte): Export.
9830
98312003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9832
9833 * xmenu.c (mouse_position_for_popup): New function.
9834 (Fx_popup_menu): Call mouse_position_for_popup for X and
9835 mouse_position_hook for others.
9836
98372003-01-17 Kim F. Storm <storm@cua.dk>
9838
9839 * editfns.c (Finsert): Mention `string-make-multibyte' and
9840 `string-as-multibyte' in doc string.
9841
98422003-01-17 Kenichi Handa <handa@m17n.org>
9843
9844 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9845
048addec
JD
9846 * editfns.c (Fformat): Convert an unibyte char argument that is
9847 formatted by "%c" to multibyte if the total result must be a
9848 multibyte string.
cd7df9c0 9849
048addec 98502003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9851
048addec
JD
9852 * process.c (set-process-filter): Document unibyte/multibyte-ness
9853 of string argument.
56210ecd 9854
048addec 98552003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9856
048addec 9857 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9858
048addec
JD
9859 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9860 (re_search_2): Likewise.
6df8b9fe 9861
048addec 98622003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9863
048addec
JD
9864 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9865 buffer is unibyte.
292ddc31 9866
048addec 98672003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9868
048addec 9869 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9870
048addec
JD
9871 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9872 (Fprevious_char_property_change)
9873 (Fnext_single_char_property_change)
9874 (Fprevious_single_char_property_change, Fnext_property_change)
9875 (Fnext_single_property_change, Fprevious_property_change)
9876 (Fprevious_single_property_change, Fadd_text_properties)
9877 (Fput_text_property, Fset_text_properties)
9878 (Fremove_text_properties, Fremove_list_of_text_properties)
9879 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9880
048addec 98812003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9882
048addec
JD
9883 * process.h (struct Lisp_Process): New member plist replaces old
9884 member private_vars. All uses changed.
63e4e4c6 9885
048addec 9886 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9887 (QCplist): Rename from QCvars. Change all uses.
048addec 9888 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9889 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9890 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9891 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9892
048addec 98932003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9894
6bdb309a 9895 * m/delta.h: Remove (obsolete).
e833850f 9896
048addec 98972003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9898
048addec
JD
9899 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9900 behaviour in front of symlinks.
9901 (Fdelete_file): Raise an error on directories.
817cb127 9902
048addec 99032003-01-13 Dave Love <fx@gnu.org>
817cb127 9904
048addec 9905 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9906
048addec 99072003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9908
048addec
JD
9909 * minibuf.c (minibuffer_completion_contents):
9910 Error if point is inside prompt.
3e8cf2ea 9911
048addec
JD
9912 * keyboard.c (command_loop_1): Don't redisplay directly
9913 if there's a post-command-hook.
3e8cf2ea 9914
048addec
JD
9915 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9916 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9917
048addec 99182003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9919
048addec 9920 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9921
048addec
JD
9922 * process.c (QCvars): New variable.
9923 (syms_of_process): Intern and staticpro it.
9924 (Fset_process_contact): Removed function.
9925 (Fprocess_variable, Fset_process_variable): New functions.
9926 (syms_of_process): Defsubr them.
9927 (Fstart_process): Initialize private_vars plist to nil.
9928 (Fmake_network_process): New arg :vars to setup the private
9929 variables for new network process.
9930 (server_accept_connection): Copy server's private variables to
9931 client process.
2c10f029 9932
048addec
JD
9933 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9934 crashes). Code rewritten and simplified. Now directly aligns the
9935 pointer and recalculates pure_bytes_used, rather than aligning the
9936 size and adjusting the pointer.
b8a76c6c 9937
048addec 99382003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9939
048addec
JD
9940 * process.c (Fset_process_contact): New function.
9941 (syms_of_process): defsubr it.
9942 (make-network-process): Update doc.
3a8d0899 9943
048addec 99442003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9945
048addec
JD
9946 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9947 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9948
048addec 99492003-01-10 Dave Love <fx@gnu.org>
4abc7470 9950
048addec 9951 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9952
048addec 99532003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9954
048addec
JD
9955 * process.c (Fmake_network_process): Convert new port number
9956 to host byte order for `:service t' case. From Mario Lang.
bf338245 9957
048addec 99582003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 9959
048addec
JD
9960 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9961 instead of XtAppProcessEvent.
bf338245 9962
048addec
JD
9963 * xterm.c (handle_one_xevent): New function.
9964 (x_dispatch_event): New function.
9965 (XTread_socket): Call handle_one_xevent.
bf338245 9966
048addec 9967 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 9968
048addec
JD
9969 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9970 call XQueryPointer to get coordinates.
9971 (popup_get_selection): Do not set popup_activated_flag to zero,
9972 let popup_deactivate_callback do that. Needed for Motif.
9973 Call x_dispatch_event instead of XtDispatchEvent.
9974 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9975
048addec 99762003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9977
6bdb309a 9978 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9979 connection's local address in :local property of contact info.
9980 (Fmake_network_process): Record local network address for new
9981 client processes in :local property of contact info.
6bdb309a 9982 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9983
048addec 99842003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9985
048addec 9986 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9987
048addec 99882003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9989
048addec 9990 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9991
048addec
JD
9992 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9993 use the same test as for custom-variable-p.
8c6d74c6 9994
048addec 99952003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9996
048addec
JD
9997 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9998 Count LAST_LINE_MISFIT in scroll margin for end of window.
9999 Move label too_near_end before setting SCROLL_MARGIN_POS.
10000 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10001
048addec
JD
10002 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10003 scroll_conservatively case. If scrolling that much doesn't change
10004 STARTP, move it down one line.
e833850f 10005
048addec
JD
10006 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10007 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10008
048addec
JD
10009 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10010 selected frame.
8c6d74c6 10011
048addec
JD
10012 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10013 (syms_of_keymap): staticpro them.
10014 (Fapropos_internal): Initialize them and clear them out.
10015 Don't GCPRO them.
8c6d74c6 10016
048addec
JD
10017 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10018 Doc fixes.
8c6d74c6 10019
048addec
JD
10020 * lisp.h: New misc type Lisp_Save_Value.
10021 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10022 (XSAVE_VALUE): New macro.
10023 (struct Lisp_Save_Value): New data type.
10024 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10025 (make_save_value): Declare.
8c6d74c6 10026
048addec 10027 * alloc.c (make_save_value): New function.
8c6d74c6 10028
048addec
JD
10029 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10030 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10031
048addec 100322003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10033
048addec 10034 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10035
048addec
JD
10036 * keyboard.c (command_loop_1): Call adjust_point_for_property
10037 in direct action cases for Qforward_char and Qbackward_char.
10038 Set already_adjusted so it won't be done twice.
8c6d74c6 10039
b6189c3b 100402002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10041
048addec
JD
10042 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10043 type definition of size_t.
8c609cff 10044
048addec 100452003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10046
048addec
JD
10047 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10048 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10049
048addec 100502002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10051
048addec
JD
10052 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10053 to default to t.
fa634a5e 10054
048addec 100552002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10056
048addec 10057 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10058
048addec 100592002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10060
048addec
JD
10061 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10062 allow building in a different directory than source. Uses some
10063 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10064
048addec 100652002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10066
048addec
JD
10067 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10068 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10069 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10070 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10071
048addec 100722002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10073
048addec
JD
10074 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10075 <scroll-down-aggressively>: Doc fix.
2155ecf3 10076
048addec
JD
10077 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10078 string as pane name, if there is one.
10079 (set_frame_menubar): Save menu_items_n_panes from each call to
10080 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10081
048addec
JD
10082 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10083 Don't try to make last line fully visible if it is past end of window.
61f1d295 10084
048addec 100852002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10086
048addec
JD
10087 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10088 (mac_menu_show): Add support for hierarchical popup menus.
10089 (add_menu_item): Remove indentation support.
10090 (fill_submenu, fill_menu): Create hierarchical menus
10091 instead of using indentation.
0b17a217 10092
048addec 100932002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10094
048addec
JD
10095 * xdisp.c (try_cursor_movement): Don't call try_window here.
10096 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10097
048addec 10098 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10099
048addec 101002002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10101
048addec
JD
10102 * macterm.c (XTread_socket): Call KeyTranslate for control and
10103 meta to deal correctly shifted non-alpha characters, like C-S-5
10104 being treated like C-%. Does not look for shift key to deal
10105 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10106
048addec 101072002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10108
048addec
JD
10109 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10110 If it is non-nil, run timers. Use an unwind-protect to requeue
10111 the events that were read ahead.
10112 (popup_get_selection_unwind): New subroutine.
10113 (popup_get_selection_queue): File-scope variable now holds that queue.
10114 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10115 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10116 Use an unwind-protect to pop down the dialog box.
10117 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10118
048addec
JD
10119 * xdisp.c (row_containing_pos): Change exit test using last_y.
10120 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10121
048addec
JD
10122 * lread.c (load_error_handler): New function.
10123 (Fload): Handle errors in Fsubstitute_in_file_name.
10124 Don't expect Fsignal to return.
f02cac82 10125
048addec
JD
10126 * eval.c: Errors and throws work right with interrupt blocking.
10127 (struct catchtag): New elt interrupt_input_blocked.
10128 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10129 (internal_catch, Fcondition_case, internal_condition_case)
10130 (internal_condition_case_1, internal_condition_case_2): Save it.
10131 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10132
048addec 10133 * editfns.c (Fformat): Add parens.
f02cac82 10134
048addec
JD
10135 * dired.c (file_name_completion): Fix that change.
10136 Delete special quit-handling code; just use QUIT.
f02cac82 10137
b6189c3b 101382002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10139
048addec
JD
10140 * dired.c (file_name_completion): Close directory on error
10141 just as in directory_files_internal.
1a590729 10142
048addec 101432002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10144
048addec
JD
10145 * window.c (Fset_window_configuration): Set old_point to correct
10146 value when new_current_buffer == current_buffer.
f02cac82 10147
048addec 101482002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10149
048addec
JD
10150 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10151 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10152 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10153
048addec
JD
10154 These changes were in part based upon suggestions made by Peter
10155 'Luna' Runestig [peter@runestig.com].
9785d95b 10156
048addec
JD
10157 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10158 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10159 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10160 global variables.
9785d95b 10161
048addec
JD
10162 * w32.c (globals_of_w32): New function. Used to initialize those
10163 global variables that must always be initialized on startup even
10164 when the global variable initialized is non zero. Its primary
10165 purpose at this time is to set the global variables
10166 g_b_init_is_windows_9x, g_b_init_open_process_token,
10167 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10168 g_b_init_get_sid_identifier_authority to 0 on startup.
10169 Called from main.
9785d95b 10170
048addec
JD
10171 * w32.c (is_windows_9x): Perform initialization only if
10172 g_b_init_is_windows_9x is equal to 0. On initialization set
10173 g_b_init_is_windows_9x equal to 1.
2308af15 10174
048addec
JD
10175 * w32.c (open_process_token): Perform initialization only if
10176 g_b_init_open_process_token is equal to 0. On initialization set
10177 g_b_init_open_process_token equal to 1.
2308af15 10178
048addec
JD
10179 * w32.c (get_token_information): Perform initialization only if
10180 g_b_init_get_token_information is equal to 0. On initialization
10181 set g_b_init_get_token_information equal to 1.
9785d95b 10182
048addec
JD
10183 * w32.c (lookup_account_sid): Perform initialization only if
10184 g_b_init_lookup_account_sid is equal to 0. On initialization
10185 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10186
048addec
JD
10187 * w32.c (get_sid_identifier_authority): Perform initialization
10188 only if g_b_init_get_sid_identifier_authority is equal to 0.
10189 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10190
f63fd14e 10191 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10192 those global variables that must always be initialized on startup
10193 even when the global variable initialized is non zero.
10194 Its primary purpose at this time is to initialize the global variable
10195 track_mouse_event_fn.
9785d95b 10196
a64387ee 10197 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10198 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10199
048addec 10200 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10201
f63fd14e 10202 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10203 initialize those global variables that must always be initialized
10204 on startup even when the global variable initialized is non zero.
10205 Its primary purpose at this time is to initialize the global
10206 variables get_menu_item_info and set_menu_item_info.
9785d95b 10207
048addec
JD
10208 * w32menu.c (initialize_frame_menubar): Remove initialization of
10209 get_menu_item_info and set_menu_item_info.
9785d95b 10210
048addec 10211 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10212
048addec
JD
10213 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10214 Declare them.
9785d95b 10215
048addec
JD
10216 * emacs.c (main): Call globals_of_w32 prior to calling
10217 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10218 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10219 is defined.
9785d95b 10220
048addec
JD
10221 * w32term.c (x_update_window_begin): Fix Windows API error
10222 detected by BoundsChecker. Test to determine if
10223 w32_system_caret_hwnd is NULL prior to attempting to use
10224 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10225
048addec
JD
10226 * w32term.c (x_update_window_end): Fix Windows API error
10227 detected by BoundsChecker. Test to determine if
10228 w32_system_caret_hwnd is NULL prior to attempting to use
10229 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10230
048addec 102312002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10232
048addec
JD
10233 * coding.c (coding_system_require_warning): New variable.
10234 (syms_of_coding): DEFVAR it.
b6da19ef 10235
048addec 10236 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10237
048addec
JD
10238 * fileio.c (choose_write_coding_system): Even if
10239 Vcoding_system_for_write is non-nil, if
10240 coding_system_require_warning is nonzero, call
10241 Vselect_safe_coding_system_function.
bfcf6dbe 10242
048addec 102432002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10244
048addec
JD
10245 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10246 (lisp): Add font-core.
2c568af5 10247
048addec 102482002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10249
048addec
JD
10250 * textprop.c (text_read_only): New arg `propval'.
10251 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10252 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10253
048addec 102542002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10255
048addec 10256 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10257
048addec 102582002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10259
048addec
JD
10260 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10261 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10262 Be more careful about when help_events are generated.
96720f09 10263
048addec 102642002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10265
048addec
JD
10266 * macterm.c (mac_check_for_quit_char): Correctly set the
10267 modifiers of the event to 0.
10268 * mac.c (sys_select): Duplicate rfds before calling select to
10269 ensure that rfds survive the while loop.
e5ae1c49 10270
048addec 102712002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10272
048addec
JD
10273 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10274 row_containing_pos returned NULL.
2eb46b2d 10275
048addec 102762002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10277
6bdb309a 10278 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10279 non-blocking.
6bdb309a 10280 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10281 the one given.
b11f1d8a 10282
048addec 102832002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10284
048addec 10285 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10286
048addec 102872002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10288
048addec
JD
10289 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10290 as the last thing.
a4ac5b17 10291
048addec 102922002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 10293
048addec 10294 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 10295
048addec 102962002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 10297
048addec
JD
10298 * editfns.c (Fformat): Handle precision in string conversion
10299 specifiers like libc functions do (ie, print at most that many
10300 characters).
85cce843 10301
048addec 103022002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 10303
048addec
JD
10304 * xdisp.c (row_containing_pos): Check more carefully
10305 whether charpos is really in the row before returning it.
0d4d26a7 10306
048addec 103072002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 10308
048addec 10309 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 10310
048addec
JD
10311 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10312 each stack frame. This may change as it could be time consuming.
0d4d26a7 10313
048addec
JD
10314 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10315 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 10316 (mac_initialize): Add code to check for pressing of quit_char
048addec 10317 in the OS event queue.
b11f1d8a 10318
048addec
JD
10319 * mac.c (sys_select): Call mac_check_for_quit_char every second
10320 while blocking on select.
0d4d26a7 10321
048addec
JD
10322 * mac.c (sys_read): Use sys_select to test for input first
10323 before calling read, to allow C-g to break.
9252f7bc 10324
048addec 103252002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 10326
048addec 10327 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 10328
048addec 10329 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 10330
048addec 10331 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 10332
048addec
JD
10333 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10334 autoload.
9252f7bc 10335
048addec 10336 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 10337
048addec 10338 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 10339
048addec 103402002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 10341
048addec 10342 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 10343
048addec 103442002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 10345
048addec 10346 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10347
048addec 10348 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 10349
048addec 10350 * alloca.c: Don't use #error.
02d588e2 10351
048addec 103522002-12-03 Dave Love <fx@gnu.org>
02d588e2 10353
048addec
JD
10354 * buffer.c (Qucs_set_table_for_input): New.
10355 (Fget_buffer_create): Use it.
10356 (Qset_buffer_major_mode_hook): Deleted.
10357 (Fset_buffer_major_mode): Revert previous change.
10358 (init_buffer_once): Intern ucs-set-table-for-input.
10359 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10360 Add &Qucs_set_table_for_input.
451e2697 10361
048addec 103622002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 10363
048addec
JD
10364 * callint.c (Fcall_interactively): Use next_event only if less
10365 than key_count.
72742a99 10366
048addec 103672002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 10368
048addec
JD
10369 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10370 names to 255 characters.
72742a99 10371
048addec
JD
10372 * macterm.c (XTread_socket): If all frames have been collapsed,
10373 expand the first one before handling drag-and-drop events.
72742a99 10374
048addec
JD
10375 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10376 which is detected by autoconf.
40e6ff95 10377
048addec 103782002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 10379
048addec
JD
10380 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10381 offset in two hints table to allow prebinding to be redone and
10382 allow the executable to be stripped.
c02138c6 10383
048addec 103842002-11-29 Dave Love <fx@gnu.org>
c02138c6 10385
048addec
JD
10386 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10387 already provided.
0e47bbf7 10388
048addec 103892002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 10390
048addec
JD
10391 * xdisp.c (start_display): Check more intelligently for
10392 whether the line is continued.
10393 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 10394
048addec 103952002-11-28 Dave Love <fx@gnu.org>
44129dcb 10396
048addec
JD
10397 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10398 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 10399
048addec 104002002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 10401
048addec
JD
10402 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10403 more descriptive error output from lread.c:Fload upon most require
10404 cycles during boostrapping.
1637fd2c 10405
048addec 104062002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 10407
048addec
JD
10408 * fileio.c (Finsert_file_contents): Give a more appropriate error
10409 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 10410
048addec
JD
10411 * dired.c (Ffile_attributes): Don't return negative file sizes for
10412 files bigger than 2Gb when off_t is 32 bit.
540c2788 10413
048addec 104142002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 10415
048addec 10416 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 10417
048addec
JD
10418 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10419 Test GETPGRP_VOID instead.
10420 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 10421
048addec
JD
10422 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10423 Don't define.
10424 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 10425
048addec 10426 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 10427
048addec 104282002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 10429
048addec
JD
10430 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10431 supported.
4042a81a 10432
048addec 104332002-11-25 Dave Love <fx@gnu.org>
4042a81a 10434
048addec 10435 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 10436
048addec 10437 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 10438
048addec 104392002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 10440
048addec 10441 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 10442
048addec 104432002-11-24 Steven Tamm <steventamm@mac.com>
82122254 10444
048addec
JD
10445 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10446 determine the size of pointers alloced in unexed space instead
10447 of using possibly invalid emacs_zone pointers. This fixes the
10448 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 10449
048addec 104502002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 10451
048addec 10452 * search.c (Fstring_match): Doc fix.
c1ee53bc 10453
048addec
JD
10454 * callint.c (Fcall_interactively): If a command fails because
10455 `*' detects a read-only buffer, but RECORD_FLAG is set,
10456 record it anyway if the args don't actually do tty input.
5598c32e 10457
048addec 104582002-11-22 Dave Love <fx@gnu.org>
5598c32e 10459
048addec 10460 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 10461
048addec
JD
10462 * keyboard.c (interrupt_signal): Provide forward declaration.
10463 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 10464
048addec 10465 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 10466
048addec 104672002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 10468
048addec
JD
10469 * eval.c (interactive_p): Skip any number of bytecode
10470 and special form frames, in any order.
516eea8e 10471
048addec 104722002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 10473
048addec
JD
10474 * w32fns.c (convert_mono_to_color_image): New function.
10475 (xbm_load, xbm_load_image): Use it when foreground or background
10476 is explicitly set.
04dbfa08 10477
048addec 104782002-11-19 Dave Love <fx@gnu.org>
04dbfa08 10479
048addec 10480 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 10481
048addec 104822002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10483
048addec
JD
10484 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10485 (XPutPixel): Swap blue and red.
10486 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10487 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10488 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10489 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10490
048addec 104912002-11-18 Dave Love <fx@gnu.org>
d824beee 10492
048addec 10493 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10494
048addec 10495 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10496
048addec 10497 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10498
048addec
JD
10499 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10500 malloc, realloc, calloc.
d824beee 10501
048addec
JD
10502 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10503 (bcmp): Don't define.
d824beee 10504
048addec 10505 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10506
048addec 10507 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10508
048addec 10509 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10510
048addec 10511 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10512
048addec
JD
10513 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10514 Don't include alloca.h.
d824beee 10515
048addec 10516 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10517
048addec 10518 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10519
048addec 10520 * process.c (_GNU_SOURCE): Don't define.
1998560a 10521
048addec 10522 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10523
048addec 105242002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10525
048addec 10526 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10527
048addec 105282002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10529
048addec
JD
10530 * dispextern.h (struct face): Add `overstrike' field.
10531 * xterm.c (x_draw_glyph_string_foreground)
10532 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10533 * xfaces.c (load_face_font): Set `face->overstrike' based on
10534 result from choose_face_font.
10535 (best_matching_font, choose_face_font): Add `needs_overstrike'
10536 argument, and use it to return whether overstriking is desirable
10537 for this face/font combo.
10538 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10539
048addec 105402002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10541
048addec
JD
10542 This change is my fix for the following entry in etc/PROBLEMS:
10543 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10544 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10545
048addec
JD
10546 * w32.c: Added wrapper functions around the win32 API functions
10547 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10548 GetSidIdentifierAuthority. These wrapper functions serve two
10549 purposes:
10550 1. They ensure that the wrapped function can never be called
10551 when Emacs is running on an operating system on which they are
10552 not supported (Microsoft Windows 95 / 98 / ME).
10553 2. They call the wrapped functions via function pointers rather
10554 than calling them directly. This avoids taking advantage of the
10555 undocumented fact that although these functions are not supported
10556 in the 9x branch of Microsoft Windows, the functions do exist in
10557 the version of advapi32.dll that is found in the 9x branch of
10558 Microsoft Windows.
f60ae425 10559
6bdb309a 10560 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10561 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10562 and GetSidIdentifierAuthority with calls to the newly added
10563 wrapper functions.
f60ae425 10564
048addec
JD
10565 * w32.h: Added extern declarations for the following functions:
10566 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10567 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10568
6bdb309a 10569 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10570 function pointer track_mouse_event_fn in the handler for the
10571 WM_SETFOCUS message.
3582b6a3 10572
6bdb309a 10573 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10574 reinitialize the function pointers set_menu_item_info and
10575 get_menu_item_info.
f60ae425 10576
048addec 105772002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10578
048addec
JD
10579 * sound.c: Added a partial implementation of play-sound-internal
10580 for Microsoft Windows. Added various #ifdef / #else / #endif
10581 code blocks to separate the code that will compile under
10582 Microsoft Windows from the code that is specific to Gnu/Linux.
10583 Moved several blocks of code around to make this separation of code
10584 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10585
048addec 10586 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10587
048addec
JD
10588 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10589 added support for play-sound-internal under Windows would be
10590 included in the build of Emacs.
517f42a0 10591
048addec 105922002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10593
048addec 10594 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10595
048addec 10596 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10597
048addec 105982002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10599
048addec
JD
10600 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10601 (adjust_point_for_property): Move out of display and invisible even if
10602 we were already inside before (in case a property was added while
10603 we weren't looking). Be more careful when handling invisible props.
10604 Skip invisible text as if it really wasn't there at all.
aab83f91 10605
048addec 106062002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10607
048addec
JD
10608 * w32term.c (x_draw_image_foreground)
10609 (w32_draw_image_foreground_1): Use standard copy and invert
10610 operations to draw images.
aab83f91 10611
048addec
JD
10612 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10613 depth of 1.
10614 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10615 (XPutPixel): Don't invert bits here.
a4478a76 10616
048addec 106172002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10618
048addec
JD
10619 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10620 (w32_draw_image_foreground_1): Handle image masks.
10621 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10622
048addec
JD
10623 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10624 (x_from_xcolors): Adjust RGB values for W32.
10625 (image_background, image_background_transparent)
10626 (postprocess_image, x_to_xcolors, x_disable_image)
10627 (x_build_heuristic_mask): Adapt for W32 and enable.
10628 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10629 (xbm_load): Remove unused variable.
03670a65 10630
048addec 106312002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10632
048addec 10633 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10634
048addec 106352002-11-14 Dave Love <fx@gnu.org>
59daa29a 10636
048addec 10637 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10638
048addec
JD
10639 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10640 * xmenu.c (unuse_menu_items, digest_single_submenu):
10641 * xfns.c (x_put_x_image):
10642 * xdisp.c (message2_nolog, set_message):
10643 * undo.c (record_point):
10644 * terminfo.c (tparam):
10645 * syntax.c (scan_sexps_forward):
10646 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10647 * composite.c (update_compositions):
10648 * cm.c (calccost, cmgoto):
10649 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10650
048addec 10651 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10652
048addec
JD
10653 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10654 Don't declare.
59daa29a 10655
048addec 10656 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10657
048addec
JD
10658 * fns.c (Fcopy_sequence): Doc fix.
10659 (Fmap_char_table): Cast `call2'.
3947677c 10660
048addec
JD
106612002-11-14 Francesco Potorti` <pot@gnu.org>
10662
10663 * s/sol2-8.h: New file.
10664
106652002-11-14 Kim F. Storm <storm@cua.dk>
10666
10667 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10668 dependency on `risky-local-variable' and the :propertize form.
10669
106702002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10671
10672 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10673
10674 * syntax.c (scan_sexps_forward): Undo last patch.
10675 Use a more obvious fix: check eob before updating the syntax table.
10676
106772002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10678
10679 * syntax.c (scan_sexps_forward): Update syntax table before reading
10680 a char rather than after so we don't update the table past eob.
10681
106822002-11-09 Dave Love <fx@gnu.org>
10683
10684 * buffer.c (Fset_buffer_major_mode): Fix last change.
10685
10686 * regex.c (regexec): Fix pmatch declaration.
10687
10688 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10689
10690 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10691 to self-inserting characters.
10692 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10693
10694 * coding.c (Vtranslation_table_for_input): New.
10695 (syms_of_coding): DEFVAR it.
10696
106972002-11-08 Juanma Barranquero <lektu@terra.es>
10698
10699 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10700 window.
10701
107022002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10703
6bdb309a 10704 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10705 cp, and i.
10706
107072002-11-06 Dave Love <fx@gnu.org>
10708
10709 * buffer.c (Qset_buffer_major_mode_hook): New.
10710 (Fset_buffer_major_mode): Use it.
10711
107122002-11-06 Richard M. Stallman <rms@gnu.org>
10713
10714 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10715 and stop_polling.
10716
10717 * process.c (wait_reading_process_input):
10718 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10719 Avoid initialization for auto Lisp_Object var.
10720
10721 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10722
10723 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10724
107252002-11-05 Richard M. Stallman <rms@gnu.org>
10726
10727 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10728
10729 * callint.c (Fcall_interactively): New local filter_specs.
10730 (Fcall_interactively): Check for progn as well as let.
10731 Add a gcpro.
10732 (Qprogn): New variable.
10733 (syms_of_callint): Staticpro and init Qprogn.
10734
107352002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10736
10737 * lread.c (Feval_buffer): Doc fix.
10738
107392002-11-04 Dave Love <fx@gnu.org>
10740
10741 * keyboard.c (read_char): Always translate iff
10742 Vkeyboard_translate_table is a char table and c is valid.
10743
10744 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10745 and fix C types.
10746
107472002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10748
10749 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10750
10751 * editfns.c (get_pos_property): Don't hardcode Qfield.
10752
10753 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10754 overlays. Also handle `invisible' prop.
10755
107562002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10757
10758 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10759 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10760
107612002-11-01 Andreas Schwab <schwab@suse.de>
10762
10763 * editfns.c (Fmessage): Revert last change to properly handle %%.
10764
107652002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10766
10767 * xmenu.c (unuse_menu_items): New fun.
10768 (menu_items_inuse): New var.
10769 (syms_of_xmenu): Initialize it.
10770 (init_menu_items): Use it to detect re-entrance.
10771 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10772 (Fx_popup_menu): Remove spurious XSETFRAME.
10773
10774 * editfns.c (find_field): Make an exception for nil fields.
10775
107762002-11-01 Dave Love <fx@gnu.org>
10777
10778 * m/gec63.h: Deleted.
10779
107802002-10-31 Dave Love <fx@gnu.org>
10781
10782 * xterm.c (XTread_socket): Fix last change.
10783 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10784
107852002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10786
10787 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10788
107892002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10790
10791 * editfns.c (overlays_around, get_pos_property): New funs.
10792 (find_field): Use them.
10793 Also be careful not to modify POS before its last use.
10794 (Fmessage): Don't Fformat if there's nothing to format.
10795
107962002-10-30 Dave Love <fx@gnu.org>
10797
10798 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10799 [HAVE_PTY_H]; Include pty.h.
10800
10801 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10802
10803 * xterm.c (Qeql): Declare.
10804 (Vx_keysym_table): New.
10805 (syms_of_xterm): Initialize it.
10806 (XTread_socket): Use it. Deal with ASCII keysyms.
10807 (XSetIMValues) [HAVE_X11R6]: Prototype.
10808
10809 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10810 (lispy_kana_keys): Comment out.
10811 (make_lispy_event) [XK_kana_A]: Comment out.
10812 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10813 Fix sprintf call.
10814
10815 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10816 regexp.h change).
10817 (TERMINFO, LIBS_TERMCAP): Define.
10818
10819 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10820 (bcmp): Define conditional on HAVE_BCMP.
10821 (NO_SIOCTL_H): Don't define.
10822 (TIOCSIGSEND): Don't make conditional on IRIX6.
10823
10824 * s/sol2-5.h: Don't include strings.h.
10825 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10826
10827 * s/irix6-0.h (IRIX6): Don't define.
10828 (bcopy, bcmp, bzero): Don't undef.
10829
10830 * s/irix6-5.h: Don't include strings.h.
10831 (IRIX6): Don't define.
10832 (bcopy, bcmp, bzero): Don't undef.
10833
10834 * syntax.c (Fforward_comment): Doc fix.
10835
108362002-10-29 Kim F. Storm <storm@cua.dk>
10837
10838 * process.c (Fsignal_process): Allow PROCESS to be specified by
10839 name in addition to pid (as integer or string).
10840
108412002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10842
10843 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10844 environments.
10845
108462002-10-27 Kim F. Storm <storm@cua.dk>
10847
10848 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10849
10850 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10851
10852 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10853
10854 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10855
108562002-10-26 Richard M. Stallman <rms@gnu.org>
10857
10858 * editfns.c (Fformat): Detect invalid format letters for floats.
10859
108602002-10-25 Kenichi Handa <handa@m17n.org>
10861
10862 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10863 (x_set_title): Likewise.
10864
108652002-10-25 Juanma Barranquero <lektu@terra.es>
10866
10867 * macgui.h:
10868 * w32gui.h: Remove definition of XColor.
10869
10870 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10871
108722002-10-24 Kim F. Storm <storm@cua.dk>
10873
10874 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10875 Callers changed (supply dummy arg).
10876
10877 * lisp.h (get_window_cursor_type): Update prototype.
10878
10879 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10880 get_window_cursor_type to track system caret.
10881
108822002-10-24 Kim F. Storm <storm@cua.dk>
10883
10884 * process.c (Fformat_network_address): New function.
10885 (syms_of_process): Defsubr it.
10886 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10887 service/host is not set; before Emacs would crash in that case.
048addec
JD
10888 (Fmake_network_process): Don't use Ffind_operation_coding_system
10889 to setup coding system if host or service is not set.
10890
108912002-10-23 Juanma Barranquero <lektu@terra.es>
10892
10893 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10894
10895 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10896 COLORREF.
10897
10898 * macgui.h:
10899 * w32gui.h: Add definition of XColor.
10900
10901 * macfns.c:
10902 * w32fns.c:
10903 * xfaces.c: Remove definition of XColor.
10904
109052002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10906
10907 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10908
10909 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10910 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10911 window if it is dedicated.
10912 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10913 (Vspecial_display_function): Update docstring.
10914
10915 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10916 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10917 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10918
109192002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10920
10921 * casefiddle.c (casify_region): Don't treat a prefix char as part
10922 of a word when at the beginning.
10923
109242002-10-17 Juanma Barranquero <lektu@terra.es>
10925
10926 * lread.c (syms_of_lread): Fix typos.
10927
109282002-10-17 Dave Love <fx@gnu.org>
10929
10930 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10931
109322002-10-16 Richard M. Stallman <rms@gnu.org>
10933
10934 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10935
109362002-10-14 Juanma Barranquero <lektu@terra.es>
10937
10938 * w16select.c (syms_of_win16select): Fix docstring for
10939 `selection-coding-system'.
10940
10941 * w32select.c (syms_of_w32select): Likewise.
10942
109432002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10944
10945 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10946 a backslash-quoted char.
10947 (scan_lists, scan_sexps_forward): Pacify the compiler.
10948
109492002-10-13 Richard M. Stallman <rms@gnu.org>
10950
10951 * window.c (window_scroll): Set immediate_quit.
10952
10953 * print.c (print): When backquote form is the car of a list,
10954 output in old style. Use old_backquote_output to output all
10955 comma forms inside it in old style too.
10956
10957 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10958
109592002-10-11 Markus Rost <rost@math.ohio-state.edu>
10960
10961 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10962 batch mode).
10963
10964 * lread.c (Fload): Doc fix (load-suffixes).
10965
109662002-10-10 Steven Tamm <steventamm@mac.com>
10967
10968 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10969 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10970 Also switch the default to Qnil from Qt.
10971
109722002-10-08 Kenichi Handa <handa@m17n.org>
10973
10974 * coding.c (code_convert_region): When we need more GAP for
10975 conversion, pay attention to the case that coding->produced is not
10976 greater than coding->consumed.
10977
109782002-10-07 Richard M. Stallman <rms@gnu.org>
10979
10980 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10981
109822002-10-06 Andrew Choi <akochoi@shaw.ca>
10983
10984 * macmenu.c (mac_menu_show): Add j to count menu items; match
10985 menu_item_selection to it to find selected item.
10986
109872002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10988
10989 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10990 cases. The correct fix is to pass ReparentNotify to Xt.
10991 The shell widget interprets ConfigureNotify differently depending
10992 on if it has been reparented or not.
10993
109942002-10-05 Markus Rost <rost@math.ohio-state.edu>
10995
10996 * editfns.c (Fformat_time_string): Doc fix.
10997
109982002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10999
11000 * fns.c (Flength): Doc fix.
11001
110022002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11003
11004 * keyboard.c (keyremap): New struct.
11005 (read_key_sequence): Use it: globally replace keytran_foo with
11006 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11007 keytran_next and fkey_next to just `next'.
11008
110092002-10-04 Steven Tamm <steventamm@mac.com>
11010
11011 * macterm.c (keycode_to_xkeysym_table): Change return to be
11012 treated like an X keysym.
11013
110142002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11015
11016 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11017 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11018 This is to also handle x/y changes that occur because of a resize.
11019
110202002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11021
11022 * frame.c (Vdelete_frame_functions): New variable.
11023 (syms_of_frame): Initialize and defvar it.
11024 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11025 it when frame's `tooltip' parameter is non-nil.
11026
11027 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11028
11029 * w32fns.c (x_create_tip_frame): Likewise.
11030
11031 * macfns.c (x_create_tip_frame): Likewise.
11032
110332002-09-30 Kenichi Handa <handa@m17n.org>
11034
11035 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11036 -1 before calling ccl_driver.
11037
11038 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11039 Only when it is non-nil, handle composition sequence.
11040 (setup_coding_system) <0>: Don't force composition handling.
11041
11042 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11043
110442002-09-29 Richard M. Stallman <rms@gnu.org>
11045
11046 * search.c (Freplace_match): Adjust match data for the substitution
11047 just made in the buffer.
11048
11049 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11050 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11051
110522002-09-27 Richard M. Stallman <rms@gnu.org>
11053
11054 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11055 (read_char): Use them. Do all exits thru the end of the function.
11056
110572002-09-27 Kenichi Handa <handa@etl.go.jp>
11058
11059 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11060 is nil.
11061
110622002-09-26 Richard M. Stallman <rms@gnu.org>
11063
11064 * regex.h (__restrict_arr): Don't define if already defined.
11065
11066 * coding.c (run_pre_post_conversion_on_str):
11067 Save and restore Vdeactivate_mark.
11068
110692002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11070
11071 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11072
110732002-09-26 Kenichi Handa <handa@etl.go.jp>
11074
11075 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11076 nonzero, try face's family at first. Otherwise try FAMILY at first.
11077 (choose_face_font): If C is a single byte char or latin-1, call
11078 try_font_list with PREFER_FACE_FAMILY 1.
11079
110802002-09-21 Richard M. Stallman <rms@gnu.org>
11081
11082 * window.c (select_window_1): Don't select frame.
11083 Set frame's selected window only when frame itself is selected.
11084 (Fselect_window): Doc fix.
11085
110862002-09-18 Kim F. Storm <storm@cua.dk>
11087
11088 * process.c (make-network-process): Doc fix (there is no
11089 network-server-log-function hook).
11090
110912002-09-18 Richard M. Stallman <rms@gnu.org>
11092
11093 * print.c (print): Clear out the unused parts of Vprint_number_table.
11094 (syms_of_print): Doc fix for `print-number-table'.
11095
11096 * unexelf.c (unexec): Undo previous change.
11097
110982002-09-17 Andreas Schwab <schwab@suse.de>
11099
11100 * m/alpha.h [LINUX]: Don't define DATA_START.
11101
111022002-09-16 Dave Love <fx@gnu.org>
11103
11104 * unexelf.c (unexec): Deal with .got, reinstating change from
11105 25-08-1999.
11106
111072002-09-13 Richard M. Stallman <rms@gnu.org>
11108
11109 * s/sol2-6.h (UNEXEC): Comment out definition.
11110
11111 * unexsol.c (unexec): Don't downcase first letter of error msg.
11112
11113 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11114
111152002-09-12 Markus Rost <rost@math.ohio-state.edu>
11116
11117 * unexsol.c: Include buffer.h, charset.h, coding.h.
11118
111192002-09-11 Richard M. Stallman <rms@gnu.org>
11120
11121 * unexsol.c: Don't use report_file_error; do it by hand
11122 using dlerror.
11123
11124 * process.c (wait_reading_process_input, both versions):
11125 Before calling turn_on_atimers, call stop_polling.
11126
11127 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11128
11129 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11130 we go to too_near_end, call clear_glyph_matrix.
11131 (redisplay_window): After make_cursor_line_fully_visible,
11132 call clear_glyph_matrix and bypass `goto done'.
11133
11134 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11135 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11136
111372002-09-10 Richard M. Stallman <rms@gnu.org>
11138
11139 * fileio.c (Fdo_auto_save): Catch error making directory.
11140 Only call push_message if we need to.
11141 At the same time, make an unwind-protect to pop it.
11142 Rename local message_p to old_message_p.
11143 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11144 (do_auto_save_unwind): Don't call pop_message.
11145
11146 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11147
11148 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11149
11150 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11151
11152 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11153
111542002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11155
11156 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11157 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11158 (re_match_2_internal): Be more careful with infinite loops.
11159
111602002-09-10 Kim F. Storm <storm@cua.dk>
11161
11162 * macros.c (end_kbd_macro): New function.
11163 (Fend_kbd_macro): Use it.
11164
11165 * macros.h (end_kbd_macro): Declare extern.
11166
11167 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11168 end and save it instead of discarding it.
11169
111702002-09-09 Markus Rost <rost@math.ohio-state.edu>
11171
11172 * s/sol2-6.h: Fix typo. Add comment.
11173
111742002-09-09 Richard M. Stallman <rms@gnu.org>
11175
11176 * regex.c (regnum_t): Use signed int, not unsigned int.
11177
11178 * s/sol2-6.h: New file.
11179
11180 * s/sol2-5.h (UNEXEC): Definition deleted.
11181
111822002-09-08 Kim F. Storm <storm@cua.dk>
11183
11184 * macros.c (executing_macro_index): Change type to EMACS_INT.
11185 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11186
11187 * macros.h (executing_macro_index): Change type to EMACS_INT.
11188
111892002-09-06 Richard M. Stallman <rms@gnu.org>
11190
11191 * casetab.c (set_case_table): Make canon table point to eqv table.
11192
111932002-09-06 Juanma Barranquero <lektu@terra.es>
11194
11195 * coding.c (syms_of_coding): Fix spacing.
11196
11197 * composite.c (Fcompose_region_internal)
11198 (Fcompose_string_internal): Likewise.
11199
11200 * data.c (Flsh): Likewise.
11201
11202 * fontset.c (Fset_fontset_font): Likewise.
11203
11204 * macfns.c (Fx_server_max_request_size): Likewise.
11205
11206 * w16select.c (syms_of_win16select): Likewise.
11207
11208 * w32select.c (syms_of_w32select): Likewise.
11209
11210 * xselect.c (syms_of_xselect): Likewise.
11211
112122002-09-05 Richard M. Stallman <rms@gnu.org>
11213
11214 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11215 call EXTEND_RANGE_TABLE and return a proper value.
11216 (set_image_of_range): Don't call set_image_of_range_1
11217 if no TRANSLATE or if range includes all of Latin-1.
11218 Only call it for the Latin-1 part of the range.
11219 For other cases, make two separate ranges,
11220 one for the original specified characters and one for
11221 their case-conversions.
11222
112232002-09-04 Richard M. Stallman <rms@gnu.org>
11224
11225 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11226
11227 * window.c (displayed_window_lines): Correct for one-off bug
11228 in HEIGHT on non-window displays.
11229
11230 * regex.c (set_image_of_range_1): New function.
11231 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11232 Return a value to indicate running out of memory.
11233 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11234 (extend_range_table_work_area): New subroutine.
11235 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11236 Different calling conventions, and used from set_image_of_range{,_1}.
11237 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11238
112392002-09-04 Juanma Barranquero <lektu@terra.es>
11240
11241 * makefile.w32-in: All dependencies updated.
11242
112432002-09-01 Richard M. Stallman <rms@gnu.org>
11244
11245 * unexsol.c: New file.
11246
11247 * xfns.c (Qbox): Declare external, don't define.
11248
11249 * xdisp.c (redisplay_window) <force-start case>:
11250 If point is on semi-visible last line, reposition
11251 it at previous line.
11252
11253 * alloc.c (display_malloc_warning): Use display-warning.
11254 (malloc_warning_1): Function deleted.
11255
11256 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11257
11258 * lread.c (read1): Handle #! by skipping the line.
11259
112602002-08-31 Richard M. Stallman <rms@gnu.org>
11261
11262 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11263 Don't include LDFLAGS.
11264 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11265
112662002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11267
11268 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11269 member of x_display_info unless we compile for some window system.
11270
112712002-08-31 Kim F. Storm <storm@cua.dk>
11272
11273 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11274 (get_window_cursor_type): Don't use them.
11275 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11276
112772002-08-30 Kenichi Handa <handa@etl.go.jp>
11278
11279 * xdisp.c (get_next_display_element): Fix previous change.
11280
112812002-08-30 Andrew Choi <akochoi@shaw.ca>
11282
11283 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11284 (expose_window): Use it to fix the display of overlapping
11285 rows (merge code from xterm.c).
11286
11287 * macfns.c (Qbox): Add extern declaration.
11288
112892002-08-30 Juanma Barranquero <lektu@terra.es>
11290
11291 * w32fns.c (Qbox): Make extern.
11292 (syms_of_w32fns): Remove initialization of Qbox.
11293
112942002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11295
11296 * xfns.c (Fx_open_connection): Fix error message.
11297
112982002-08-30 Kim F. Storm <storm@cua.dk>
11299
11300 The following changes consolidates the handling of the cursor
11301 type in xdisp.c, moving duplicate code and functionality from
11302 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11303
11304 * frame.h (enum text_cursor_kinds): Consolidated here.
11305 Added DEFAULT_CURSOR value.
11306 (struct frame) <desired_cursor, cursor_width>
11307 <blink_off_cursor, blink_off_cursor_width>: New fields.
11308 Consolidated from output_x, output_w32 and output_mac structs.
11309 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11310 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11311
11312 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11313 Variables consolidated here.
11314 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11315 (Vcursor_in_non_selected_windows): Renamed from
11316 cursor_in_non_selected_windows and changed to Lisp_Object.
11317 (syms_of_xdisp): Define and staticpro new and moved variables.
11318 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11319 consolidated here. Recognize Qhollow setting.
11320 (set_frame_cursor_types): New function to set frame cursor types
11321 based on the frame parameters.
11322 (get_window_cursor_type): New function to calculate new cursor
11323 type and width for the specified window. Based on duplicated
11324 code consolidated here.
11325 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11326 check buffer-local alternate-cursor-type and blink-cursor-alist
11327 before using built-in blink off methods.
11328
11329 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11330
11331 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11332 (get_specified_cursor_type, get_window_cursor_type)
11333 (set_frame_cursor_types): Added prototypes.
11334
11335 * macfns.c (x_specified_cursor_type): Removed.
11336 (x_set_cursor_type): Use set_frame_cursor_types.
11337 (Qbar, Qbox): Removed.
11338 (syms_of_macfns): Don't intern or staticpro them.
11339
11340 * macterm.c (x_specified_cursor_type): Remove prototype.
11341 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11342 (x_display_and_set_cursor): Use get_window_cursor_type.
11343 Remove unused local variables cursor_non_selected, active_cursor.
11344 Redraw cursor if hbar cursor width changes.
11345 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11346
11347 * macterm.h (enum text_cursor_kinds): Removed.
11348 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11349 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11350 (FRAME_DESIRED_CURSOR): Macro removed.
11351
11352 * w32fns.c (Vblink_cursor_alist): Removed.
11353 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11354 (syms_of_w32fns): Don't intern, staticpro, or define them.
11355 (x_specified_cursor_type): Removed.
11356 (x_set_cursor_type): Use set_frame_cursor_types.
11357
11358 * w32term.c (x_specified_cursor_type): Remove prototype.
11359 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11360 (x_display_and_set_cursor): Use get_window_cursor_type.
11361 Remove unused local variables cursor_off_state.
11362 Redraw cursor if hbar cursor width changes.
11363 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11364
11365 * w32term.h (enum text_cursor_kinds): Removed.
11366 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11367 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11368 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11369 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11370 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11371 w32_highlight_frame.
11372
11373 * xfns.c (Vblink_cursor_alist): Removed.
11374 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11375 (syms_of_xfns): Don't intern, staticpro, or define them.
11376 (x_specified_cursor_type): Removed.
11377 (x_set_cursor_type): Use set_frame_cursor_types.
11378
11379 * xterm.c (x_specified_cursor_type): Remove prototype.
11380 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11381 (x_display_and_set_cursor): Use get_window_cursor_type.
11382 Remove unused local variables cursor_off_state.
11383 Redraw cursor if hbar cursor width changes.
11384
11385 * xterm.h (enum text_cursor_kinds): Removed.
11386 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11387 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11388 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11389 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11390 (x_specified_cursor_type): Remove prototype.
11391
113922002-08-28 Richard M. Stallman <rms@gnu.org>
11393
11394 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11395 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11396 (Vblink_cursor_alist): New variable.
11397 (syms_of_w32fns): Initialize and defvar it.
11398 (x_specified_cursor_type): Recognize Qbox for filled box.
11399 Exceptions are hollow boxes.
11400 (Qbox, Qhollow): New variables.
11401 (syms_of_w32fns): Initialize and staticpro them.
11402
11403 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11404 New macros.
11405 (struct w32_output): New fields blink_off_cursor,
11406 blink_off_cursor_width.
11407 (FRAME_CURSOR_WIDTH): New macro.
11408
11409 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11410 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11411
11412 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11413 for bar cursor.
11414
11415 * w32term.c (expose_overlaps): New function.
11416 (expose_window): Use it to fix the display of overlapping rows.
11417
114182002-08-28 Simon Josefsson <jas@extundo.com>
11419
11420 * xfns.c (Fx_open_connection): Improve help when X connection
11421 fails, xhost is insecure and xauth is better.
11422
114232002-08-28 Juanma Barranquero <lektu@terra.es>
11424
11425 * makefile.w32-in: Add missing dependencies on w32term.h and
11426 composite.h.
11427
11428 * emacs.c (USAGE1): Add missing newline.
11429
114302002-08-27 Andrew Choi <akochoi@shaw.ca>
11431
11432 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11433
114342002-08-27 Richard M. Stallman <rms@gnu.org>
11435
11436 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11437 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11438 (Vblink_cursor_alist): New variable.
11439 (syms_of_xfns): Initialize and defvar it.
11440 (x_specified_cursor_type): Recognize Qbox for filled box.
11441 Exceptions are hollow boxes.
11442 (Qbox, Qhollow): New variables.
11443 (syms_of_xfns): Initialize and staticpro them.
11444
11445 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11446 New macros.
11447 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11448
11449 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11450 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11451
11452 * emacs.c (main): Handle --script.
11453 (USAGE1): Mention --script.
11454 (standard_args): Define sort order for --script.
11455
114562002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11457
11458 * xdisp.c (redisplay_updating_p): Variable removed.
11459 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11460 New variables.
11461 (init_iterator): Don't free realized faces if
11462 inhibit_free_realized_faces is set.
11463 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11464 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11465 initialize Qinhibit_free_realized_faces.
11466
11467 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11468 when iterator is adding glyphs to a glyph matrix.
11469
114702002-08-27 Kenichi Handa <handa@etl.go.jp>
11471
11472 * xdisp.c (get_next_display_element): In unibyte case, don't use
11473 octal form for such eight-bit characters that can be converted to
11474 multibyte char.
11475
114762002-08-26 Kim F. Storm <storm@cua.dk>
11477
b6189c3b
KS
11478 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11479 foreground and background colors. From Joe Buehler.
048addec
JD
11480
114812002-08-26 Miles Bader <miles@gnu.org>
11482
11483 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11484
114852002-08-25 Andrew Choi <akochoi@shaw.ca>
11486
11487 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11488 defined instead of MAC_OSX.
11489
11490 * s/darwin.h (select): Define select to sys_select only if
11491 HAVE_CARBON is defined.
11492 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11493 (DONT_REOPEN_PTY): #def it.
11494
11495 * macterm.c (XTread_socket): Remove code to call
11496 SendEventToEventTarget for keys with command modifiers when
11497 mac_command_key_is_meta is nil.
11498
114992002-08-24 Andreas Schwab <schwab@suse.de>
11500
11501 * eval.c (Fdefvar): Fix last change.
11502
115032002-08-23 Richard M. Stallman <rms@gnu.org>
11504
11505 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11506 Record variables in load history as (defvar . VAR).
11507 (Fdefvar): Don't record in load history if no initial value.
11508 (Qdefvar): New variable.
11509 (syms_of_eval): Init and staticpro it.
11510
11511 * lread.c (syms_of_lread): Doc fix.
11512 (build_load_history): Use Fmember to see if a definition
11513 is already in the Vload_history element.
11514
11515 * process.c (Fstart_process): Remove /: from program name.
11516
11517 * emacs.c (decode_env_path): Don't add /: if file name handler
11518 has a `safe-magic' property.
11519
11520 * callproc.c (Fcall_process): Remove /: from program name.
11521
115222002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11523
11524 * regex.c (PATFETCH): Remove the translating fetch.
11525 (PATFETCH_RAW): Rename to PATFETCH.
11526 (set_image_of_range): New fun.
11527 (SET_RANGE_TABLE_WORK_AREA): Use it.
11528 (regex_compile): Don't translate the pattern chars so eagerly.
11529 Only do it when inserting an `exactn' bytecode or when handling
11530 a char-range.
11531 (mutually_exclusive_p): Avoid empty statement.
11532
115332002-08-22 Kim F. Storm <storm@cua.dk>
11534
11535 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11536 end up on a partially visible line; this reverts a specific part
11537 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11538 display error which has been reported several times now.
11539 However it introduces the problem that changes was supposed to fix.
11540 See my comments in the source if you want to debug this further.
11541
115422002-08-20 Kenichi Handa <handa@etl.go.jp>
11543
11544 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11545
115462002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11547
11548 * msdos.c (croak): Add `void' to definition.
11549
c1380aa6 11550 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11551 Don't define them, they are defined in msdos.c.
11552
11553 * mem-limits.h [MSDOS]: Declare etext.
11554
11555 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11556 `const' since CORRECT_DIR_SEPS modifies its target.
11557
115582002-08-19 Kim F. Storm <storm@cua.dk>
11559
2fb0ce67 11560 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11561 KEEP-RECORD to avoid clearing lossage when we just want to clear
11562 the current key sequence (kmacro needs this).
11563
115642002-08-19 Kenichi Handa <handa@localhost>
11565
11566 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11567
11568 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11569 cons, return Qnil.
11570
115712002-08-17 Richard M. Stallman <rms@gnu.org>
11572
11573 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11574
11575 * sysdep.c [!VMS]: Include sys/files.h.
11576
11577 * editfns.c (save_restriction_restore): Defend from unchained marker.
11578
11579 * buffer.c (overlays_at): Handle extending vec uniformly.
11580 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11581
115822002-08-15 Andrew Choi <akochoi@shaw.ca>
11583
11584 * mac.c (init_mac_osx_environment): New function.
11585
11586 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11587
115882002-08-14 Kim F. Storm <storm@cua.dk>
11589
11590 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11591 executing macro before appending to it (when used from Lisp).
11592 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11593 which is called prior to each iteration of macro (for kmacro.el).
11594 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11595
11596 * lisp.h (Fexecute_kbd_macro): Update prototype.
11597
11598 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11599
116002002-08-14 Kenichi Handa <handa@etl.go.jp>
11601
11602 * xselect.c (QUTF8_STRING): New variable.
11603 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11604 (x_atom_to_symbol): Likewise.
11605 (x_get_local_selection): New argument local_request. If it is
11606 nonzero, call handler_fn with the second arg nil.
11607 (x_handle_selection_request): Call x_get_local_selection with
11608 local_request 0.
11609 (lisp_data_to_selection_data): Don't encode the string here.
11610 (Fx_get_selection_internal): Call x_get_local_selection with
11611 local_request 1.
11612 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11613
11614 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11615
11616 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11617
116182002-08-13 Richard M. Stallman <rms@gnu.org>
11619
11620 * minibuf.c (Fminibufferp): New function.
11621 (syms_of_minibuf): Defsubr it.
11622 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11623
116242002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11625
11626 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11627
116282002-08-12 Richard M. Stallman <rms@gnu.org>
11629
11630 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11631 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11632 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11633 already.
11634
11635 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11636
116372002-08-11 Andrew Choi <akochoi@shaw.ca>
11638
11639 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11640 (Vmac_pass_command_to_system): New variable.
11641 (Vmac_pass_control_to_system): New variable.
11642 (do_mouse_moved): Check wp with is_emacs_window.
11643 (XTread_socket): Check window_ptr with is_emacs_window.
11644 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11645 events back to Mac Toolbox for processing, depending on values of
11646 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11647 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11648 Vmac_pass_control_to_system.
11649
116502002-08-10 Kenichi Handa <handa@etl.go.jp>
11651
11652 * coding.c (unencodable_char_position): New function.
11653 (Funencodable_char_position): New function.
11654 (syms_of_coding): Defsubr Funencodable_char_position.
11655
116562002-08-10 Andrew Choi <akochoi@shaw.ca>
11657
11658 * mac.c (sys_select) [MAC_OSX]: New function.
11659
11660 * macterm.c (MakeMeTheFrontProcess): New function.
11661 (mac_initialize): Call MakeMeTheFrontProcess.
11662
11663 * s/darwin.h: Define select to sys_select.
11664
116652002-08-09 Richard M. Stallman <rms@gnu.org>
11666
11667 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11668
116692002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11670
11671 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11672 end of the buffer.
11673
116742002-08-08 Ken Raeburn <raeburn@mit.edu>
11675
11676 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11677
11678 * puresize.h (BASE_PURESIZE): Increase to 910000.
11679
116802002-08-08 Kenichi Handa <handa@etl.go.jp>
11681
11682 * coding.c (Ffind_operation_coding_system): For write-region, if
11683 VISIT is a filename, make it the target.
11684
116852002-08-07 Richard M. Stallman <rms@gnu.org>
11686
11687 * alloc.c (mark_object): Detect long lists for debugging.
11688 (mark_object_loop_halt): New variable.
11689
11690 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11691
11692 * data.c (Fmake_variable_frame_local): Doc fix.
11693
116942002-08-01 David Ponce <david@dponce.com>
11695
11696 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11697 (malloc_widget_value, free_widget_value)
11698 (w32_free_submenu_strings): Use them.
11699
11700 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11701 (push_menu_pane, push_menu_item, single_keymap_panes)
11702 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11703 (single_submenu, set_frame_menubar)
11704 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11705
11706 (Fx_popup_menu): Don't show pop up menu until preceding one is
11707 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11708
11709 * w32menu.c: Changes adapted from xmenu.c
11710 (set_frame_menubar): First parse all submenus,
11711 then make widget_value trees from them.
11712 Don't allocate any widget_value objects
11713 until we are done with the parsing.
11714 (parse_single_submenu): New function.
11715 (digest_single_submenu): New function.
11716 (single_submenu): Function deleted, replaced by those two.
11717
117182002-08-04 Andrew Choi <akochoi@shaw.ca>
11719
11720 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11721 returns a valid window pointer before proceeding for keyDown and
11722 autoKey events.
11723
117242002-08-03 Andrew Choi <akochoi@shaw.ca>
11725
11726 * macterm.c (USE_CARBON_EVENTS): New macro.
11727 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11728 (x_iconify_frame): Call CollapseWindow.
11729 (Vmac_reverse_ctrl_meta): New variable.
11730 (Vmac_wheel_button_is_mouse_2): New variable.
11731 (init_mac_drag_n_drop): New function.
11732 (mac_do_receive_drag): New function.
11733 (mac_handle_service_event): New function.
11734 (init_service_handler): New function.
11735 (mac_to_emacs_modifiers): New function.
11736 (mac_event_to_emacs_modifiers): New function.
11737 (mac_get_mouse_btn): New function.
11738 (mac_convert_event_ref): New function.
11739 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11740 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11741 mac_get_mouse_btn.
11742 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11743
11744 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11745 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11746 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11747 TOOL_BAR_EVENT for MAC_OS as well.
11748 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11749 as for WINDOWS_NT.
11750 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11751
11752 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11753
117542002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11755
11756 * xdisp.c (forward_to_next_line_start): Fix a condition that
11757 lead to a newline being skipped.
11758
117592002-08-02 Andrew Choi <akochoi@shaw.ca>
11760
11761 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11762
117632002-08-01 Richard M. Stallman <rms@gnu.org>
11764
11765 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11766
117672002-07-31 Andrew Choi <akochoi@shaw.ca>
11768
11769 * macfns.c: #undef init_process before #define-ing it.
11770
11771 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11772 HAVE_CARBON is defined.
11773
117742002-07-31 Richard M. Stallman <rms@gnu.org>
11775
11776 * xmenu.c (set_frame_menubar): First parse all submenus,
11777 then make widget_value trees from them.
11778 Don't allocate any widget_value objects
11779 until we are done with the parsing.
11780 (parse_single_submenu): New function.
11781 (digest_single_submenu): New function.
11782 (single_submenu): Function deleted, replaced by those two.
11783
117842002-07-30 Juanma Barranquero <lektu@terra.es>
11785
11786 * w32proc.c (syms_of_ntproc): Fix docstring of
11787 `w32-get-true-file-attributes'.
11788
117892002-07-28 Richard M. Stallman <rms@gnu.org>
11790
11791 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11792 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11793
11794 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11795
11796 * keyboard.c (make_lispy_event):
11797 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11798 Explicitly clear up_modifier in event->modifiers.
11799
118002002-07-27 Richard M. Stallman <rms@gnu.org>
11801
11802 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11803
11804 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11805 for bar cursor.
11806
118072002-07-26 Kenichi Handa <handa@etl.go.jp>
11808
11809 * coding.c (detect_coding_iso2022): While checking a byte sequence
11810 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11811 it in the normal loop.
11812
118132002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11814
11815 * xterm.c (expose_overlaps): New function.
11816 (expose_window): Use it to fix the display of overlapping rows.
11817
11818 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11819
118202002-07-23 Ken Raeburn <raeburn@gnu.org>
11821
11822 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11823 since it only depends on XUINT.
11824
11825 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11826 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11827 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11828 Macros deleted.
3947677c 11829
77d1daf2
AS
11830 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11831 its value over other approaches.
11832 * sysdep.c (start_of_data): Don't define the function if a macro
11833 form has been defined.
8a8e19a3 11834
048addec
JD
118352002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11836
11837 * xdisp.c (redisplay_updating_p): New variable.
11838 (init_iterator): Don't free realized faces when
11839 redisplay_updating_p is set.
11840 (redisplay_internal): Set redisplay_updating_p while updating
11841 the display.
11842
118432002-07-23 Richard M. Stallman <rms@gnu.org>
11844
11845 * editfns.c (Fmessage): Treat "" like nil.
11846
118472002-07-23 Kenichi Handa <handa@etl.go.jp>
11848
11849 * xdisp.c (face_before_or_after_it_pos):
11850 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11851
118522002-07-22 Juanma Barranquero <lektu@terra.es>
11853
11854 * callproc.c (init_callproc) [DOS_NT]:
11855 Initialize Vshared_game_score_directory to nil.
11856 (syms_of_callproc) [DOS_NT]: Likewise.
11857
118582002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11859
11860 * xdisp.c (display_line): Replace an abort with xassert.
11861
118622002-07-21 Richard M. Stallman <rms@gnu.org>
11863
11864 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11865 and END_UNCHANGED when setting buffer_unchanged_p.
11866 Use current_matrix_up_to_date_p to decide whether to use
11867 try_cursor_movement.
11868
11869 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11870
11871 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11872
11873 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11874 Set to nil if dir does not exist.
11875 (syms_of_callproc): Init unconditionally and simply.
11876
11877 * buffer.c (Fbuffer_list): Doc fix.
11878
118792002-07-21 Ken Raeburn <raeburn@gnu.org>
11880
11881 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11882
11883 * buffer.c (mmap_realloc): When shrinking, make sure number of
11884 pages to unmap is rounded towards zero.
11885
11886 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11887 (XSETINT): Deleted.
11888
11889 * m/att3b.h (XINT): Don't define.
11890 (VALBITS, VALMASK, XTYPE): Deleted.
11891 (DATA_SEG_BITS): Define.
11892 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11893 ARRAY_MARK_FLAG): Deleted.
11894 (DATA_SEG_BITS): Define.
11895 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11896 (DATA_SEG_BITS): Define.
11897
118982002-07-20 Richard M. Stallman <rms@gnu.org>
11899
11900 * print.c (print_error_message): New args CONTEXT and CALLER.
11901 Calls changed.
11902
11903 * lisp.h (print_error_message): Declare new args.
11904
11905 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11906 and CONTEXT to print_error_message, don't print them here.
11907 For a Quit, don't use Vsignaling_function.
11908 Call message_log_maybe_newline.
11909
11910 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11911
119122002-07-20 Kim F. Storm <storm@cua.dk>
11913
11914 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11915
119162002-07-19 Ken Raeburn <raeburn@gnu.org>
11917
11918 * bytecode.c (struct byte_stack): Pointers into byte string now
11919 point to const.
11920 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11921 const.
11922 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11923 * coding.c (encode_eol, detect_coding, detect_eol):
11924 (decode_coding, encode_coding, detect_coding_system):
11925 Source strings now treated as const.
11926 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11927 modify Lisp string contents.
11928 * coding.h (decode_coding, encode_coding, detect_coding,
11929 detect_eol): Declarations updated.
11930 * composite.c (compose_chars_in_text): Treat Lisp string contents
11931 as const.
11932 * dispnew.c (safe_bcopy): Source pointer now points to const.
11933 * lisp.h (STRING_COPYIN): New macro.
11934 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11935 (internal_with_output_to_temp_buffer): Declarations updated.
11936 * print.c (temp_output_buffer_setup):
11937 (internal_with_output_to_temp_buffer): Buffer name argument is now
11938 pointer to const.
11939 * sound.c (struct sound_device): Function pointer field "write"
11940 buffer argument now points to const.
11941 (vox_write): Buffer argument points to const.
11942 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11943 contents as const.
11944 * sysdep.c (emacs_write): Buffer pointer now const.
11945 * term.c (encode_terminal_code): Buffer pointer now const.
11946 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11947 (x_face_list_fonts, x_update_menu_appearance):
11948 (hash_string_case_insensitive): Treat Lisp string contents as const.
11949
119502002-07-19 Juanma Barranquero <lektu@terra.es>
11951
048addec
JD
11952 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11953
11954 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
11955 (Ffile_name_as_directory): Fix argument name in docstring.
11956 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
11957
119582002-07-18 Richard M. Stallman <rms@gnu.org>
11959
11960 * data.c (Fdefalias): Doc fix.
11961
119622002-07-17 Dave Love <fx@gnu.org>
11963
11964 * intervals.h (text_property_stickiness): Use P_.
11965
11966 * ccl.c: Remove `emacs' conditionals.
11967 (ccl_backtrace_table): Fix size spec.
11968 (ccl_driver): Fix type errors.
11969
119702002-07-16 Ken Raeburn <raeburn@gnu.org>
11971
11972 * alloc.c (xstrdup, make_string, make_unibyte_string)
11973 (make_multibyte_string, build_string): String pointer args now
11974 point to const.
11975 * charset.c (find_charset_in_text, c_string_width):
11976 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11977 * fileio.c (report_file_error):
11978 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11979 (count_combining_before, count_combining_after, insert_1_both):
11980 (insert, insert_and_inherit, insert_string):
11981 (insert_before_markers, insert_before_markers_and_inherit):
11982 * lread.c (intern, oblookup, hash_string):
11983 * minibuf.c (temp_echo_area_glyphs):
11984 * search.c (fast_c_string_match_ignore_case):
11985 * sysdep.c (emacs_open, set_file_times):
11986 * xfaces.c (xstricmp):
11987 * xdisp.c (store_frame_title, string_char_and_length):
11988 (message_dolog, message2, message2_nolog, set_message): Likewise.
11989 (set_message_1): Cast message string argument to const pointer.
11990 * editfns.c (general_insert_function): Insertion function now
11991 takes pointer to const for input data.
11992 * charset.h (find_charset_in_text, c_string_width):
11993 (parse_str_as_multibyte): Declarations updated.
11994 * dispextern.h (xstricmp): Declaration updated.
11995 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11996 (count_size_as_multibyte, count_combining_before):
11997 (count_combining_after, insert_1, insert_1_both, message_dolog):
11998 (insert, insert_and_inherit, insert_before_markers)
11999 (insert_before_markers_and_inherit, set_message, message2):
12000 (message2_dolog, build_string, make_string, make_unibyte_string):
12001 (make_multibyte_string, intern, oblookup, report_file_error):
12002 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12003 (emacs_open, xstrdup): Declarations updated.
12004 * systime.h (set_file_times): Declaration updated.
12005
12006 * charset.c (find_charset_in_text, lisp_string_width): Use const
12007 for pointer to lisp string data.
12008 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12009 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12010 * coding.c (Ffind_coding_systems_region_interval):
12011 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12012 (Fmake_directory_internal, Fdelete_directory):
12013 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12014 * fontset.c (font_family_registry, fs_query_fontset):
12015 (list_fontsets):
12016 * frame.c (Fframe_parameter):
12017 * keyboard.c (cmd_error_internal):
12018 * keymap.c (Fdescribe_buffer_bindings):
12019 * lread.c (complete_filename_p, openp):
12020 * minibuf.c (Fminibuffer_complete_word):
12021 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12022 (face_before_or_after_it_pos, next_element_from_string):
12023 (get_overlay_arrow_glyph_row, display_mode_element):
12024 (decode_mode_spec_coding):
12025 * xterm.c (same_x_server): Likewise.
12026
12027 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12028 settings of non-existent fields.
12029
12030 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12031 copy a lisp value.
12032
12033 * lread.c (Fintern_soft): Use string macros instead of
12034 Lisp_String fields.
12035 * keyboard.c (echo_char, parse_modifiers_uncached):
12036 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12037 * textprop.c (validate_interval_range, interval_of): Likewise.
12038
12039 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12040
12041 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12042 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12043 XSTRING()->size_byte.
12044
12045 * lisp.h (SDATA, SREF): Produce rvalue.
12046 (SSET): New macro.
12047 * alloc.c (make_event_array): Use SSET for storing into a string.
12048 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12049 a string.
12050 * casefiddle.c (casify_object): Use SSET.
12051 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12052 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12053 address of string contents.
12054 * data.c (Faref): Use SDATA.
12055 (Faset): Use SDATA, SSET.
12056 * dired.c (directory_files_internal): Use SSET.
12057 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12058 (Fread_file_name): Use SREF, SSET.
12059 * fns.c (concat): Use SSET.
12060 (concat, Fdelete): Use SDATA.
12061 * insdel.c (insert_from_string_1): Use SDATA.
12062 * keyboard.c (Fevent_convert_list): Use SREF.
12063 * lread.c (Fload): Use SDATA, SSET.
12064 * macfns.c (validate_x_resource_name): Use SSET.
12065 * process.c (status_message): Use SSET.
12066 * search.c (wordify): Use SDATA.
12067 (Freplace_match): Use SREF.
12068 * w32fns.c (validate_x_resource_name): Use SSET.
12069 * xfns.c (validate_x_resource_name): Use SSET.
12070 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12071
120722002-07-16 Richard M. Stallman <rms@gnu.org>
12073
12074 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12075
12076 * xdisp.c (reconsider_clip_changes):
12077 Don't test prevent_redisplay_optimizations_p.
12078 (redisplay_internal): Test prevent_redisplay_optimizations_p
12079 along with clip_changed in some cases.
12080 (try_window_id): Likewise.
12081 (redisplay_window): New local var buffer_unchanged_p.
12082
12083 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12084
12085 * process.c (create_process): Test USG_SUBTTY_WORKS.
12086 (process_send_signal): Clean up handling of GID.
12087 Detect errors in ioctls meant to set GID.
12088
12089 * window.c (temp_output_buffer_show):
12090 Don't set prevent_redisplay_optimizations_p.
12091
120922002-07-15 Juanma Barranquero <lektu@terra.es>
12093
12094 * eval.c (Fdefvaralias): Add docstring argument.
12095
120962002-07-15 Ken Raeburn <raeburn@gnu.org>
12097
12098 * lisp.h (STRING_INTERVALS): Produce rvalue.
12099 (STRING_SET_INTERVALS): New macro.
12100 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12101 * fns.c (Fstring_as_multibyte): Likewise.
12102 * intervals.c (balance_possible_root_interval, delete_interval)
12103 (create_root_interval, copy_intervals_to_string): Likewise.
12104 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12105 instead of 0.
12106
121072002-07-14 Ken Raeburn <raeburn@gnu.org>
12108
12109 * lisp.h (STRING_SET_CHARS): New macro.
12110 (SCHARS, SBYTES): Produce rvalues.
12111 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12112 * fns.c (concat): Likewise.
12113 * lread.c (read_vector): Likewise.
12114
12115 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12116 (STRING_SET_UNIBYTE): New macro.
12117 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12118 length of -1) changed to use STRING_SET_UNIBYTE.
12119 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12120 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12121 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12122 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12123 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12124 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12125 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12126 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12127 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12128 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12129 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12130 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12131 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12132 unchanged for now.
12133
121342002-07-13 Kim F. Storm <storm@cua.dk>
12135
12136 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12137
121382002-07-12 Richard M. Stallman <rms@gnu.org>
12139
12140 * fileio.c (Fwrite_region): Doc fix.
12141
12142 * print.c (print_error_message): Don't handle Vsignaling_function here.
12143
12144 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12145 (command_loop_1): Avoid certain actions after memory-full error.
12146
12147 * eval.c (Fsignal): Don't call cancel_hourglass.
12148 For a memory-full error, don't call Vsignal_hook_function
12149 and don't set Vsignaling_function.
12150
12151 * process.c (process_send_signal): Add abort call.
12152
121532002-07-11 Markus Rost <rost@math.ohio-state.edu>
12154
12155 * keymap.c (Fkey_binding): Fix typo.
12156
121572002-07-11 Richard M. Stallman <rms@gnu.org>
12158
12159 * alloc.c (Vmemory_full): New variable.
12160 (Vmemory_signal_data): Renamed from memory_signal_data.
12161 Uses changed.
12162 (syms_of_alloc): Defvar them.
12163 (memory_full, buffer_memory_full): Set Vmemory_full.
12164
12165 * lisp.h (Vmemory_full): Add declaration.
12166 (current_column, indented_beyond_p): Change declaration.
12167
12168 * indent.c (last_known_column): Declare as double, not float.
12169 (current_column, current_column_1, string_display_width)
12170 (position_indentation): Return `double'.
12171 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12172
12173 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12174 (back_to_previous_visible_line_start)
12175 (reseat_at_next_visible_line_start, next_element_from_buffer):
12176 Use `double', not `float', when calling indented_beyond_p.
12177
12178 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12179
12180 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12181
121822002-07-11 Juanma Barranquero <lektu@terra.es>
12183
12184 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12185 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12186 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12187 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12188 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12189 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12190
121912002-07-10 Juanma Barranquero <lektu@terra.es>
12192
d814862a
JB
12193 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12194 All callers changed.
048addec
JD
12195
121962002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12197
12198 * data.c (Fdefalias): Add an optional `docstring' argument.
12199 (set_internal, Fsetq_default): Use XCAR/XCDR.
12200
12201 * composite.c (HASH_VALUE, HASH_KEY):
12202 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12203
122042002-07-09 Kenichi Handa <handa@etl.go.jp>
12205
12206 * callproc.c (Fcall_process): Fix previous change.
12207
122082002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12209
12210 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12211 Add support for hash-tables.
12212 (Ftry_completion): Return t even if the string appears multiple times.
12213
12214 * fns.c (Fnconc): Use XCDR.
12215 (Fprovide): Use CONSP and XCDR.
12216 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12217 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12218 (Fmake_hash_table): Accept `:size nil'.
12219 (Fmakehash): Delete: moved to subr.el.
12220 (syms_of_fns): Don't defsubr makehash.
12221
12222 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12223 (HASH_TABLE_SIZE): Move from fns.c.
12224
122252002-07-07 Richard M. Stallman <rms@gnu.org>
12226
12227 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12228 Instead just return 0 when there is something to be done.
12229 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12230 retry scrolling as if cursor were off the bottom.
12231 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12232 return CURSOR_MOVEMENT_MUST_SCROLL.
12233 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12234 go to try_to_scroll.
12235
12236 * buffer.c (Fbuffer_local_value): Store current value into its binding
12237 so we get the up-to-date value for the binding that is loaded.
12238
12239 * eval.c (Fdefmacro): Doc fix.
12240
122412002-07-05 Dave Love <fx@gnu.org>
12242
12243 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12244 correctly.
12245
12246 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12247 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12248 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12249 CCL_LookupCharConstTbl.
12250 (syms_of_ccl): Defvar translation-hash-table-vector.
12251
122522002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12253
12254 * xdisp.c: Remove unused variable `face'.
12255
122562002-07-04 Juanma Barranquero <lektu@terra.es>
12257
12258 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12259 obsolescence information.
12260
122612002-07-03 Andrew Choi <akochoi@shaw.ca>
12262
12263 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12264 pattern. Search cache first.
12265 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12266 for Japanese font.
12267 (XLoadQueryFont): Use it.
12268
122692002-07-02 Richard M. Stallman <rms@gnu.org>
12270
12271 * keymap.c (Fdefine_key): Doc fix.
12272
12273 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12274
122752002-07-02 Juanma Barranquero <lektu@terra.es>
12276
12277 * keymap.c (syms_of_keymap): Fix typo.
12278
122792002-07-01 Andrew Choi <akochoi@shaw.ca>
12280
12281 * s/darwin.h: Define POSIX_SIGNALS.
12282
12283 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12284 and FSRefMakePath to convert FSSpec returned with Apple Event to
12285 Posix pathname.
12286 (mac_initialize) [TARGET_API_MAC_CARBON]:
12287 Call init_required_apple_events and disable the `Quit' menu item
12288 provided automatically by the Carbon Toolbox.
12289
122902002-07-01 Dave Love <fx@gnu.org>
12291
12292 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12293 for K&R.
12294
12295 * xterm.c: Fix prototype for K&R.
12296
12297 * term.c (costs_set): Declare static, non-initialized for pcc.
12298
122992002-07-01 Richard M. Stallman <rms@gnu.org>
12300
12301 * keyboard.c (timer_last_idleness_start_time): New variable.
12302 (timer_start_idle): Set that.
12303 (read_key_sequence): Use that to reset timer_idleness_start_time
12304 to previous value.
12305
12306 * window.c (Frecenter): With arg, set optional_new_start.
12307
12308 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12309
12310 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12311 buffer for completion.
12312
123132002-06-29 Ken Raeburn <raeburn@gnu.org>
12314
12315 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12316
123172002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12318
12319 * keyboard.c (readable_filtered_events): New function that filters
12320 FOCUS_IN_EVENT depending on parameter.
12321 (readable_events): Calls readable_filtered_events, not filtering
12322 FOCUS_IN_EVENT.
12323 (get_filtered_input_pending): New function, filtering parameter passed
12324 to readable_filtered_events.
12325 (get_input_pending): Calls get_filtered_input_pending, not filtering
12326 FOCUS_IN_EVENT.
12327 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12328 FOCUS_IN_EVENT.
12329
12330 * xterm.h (struct x_output): Add focus_state.
12331
12332 * xterm.c (x_focus_changed): New function.
12333 (x_detect_focus_change): New function.
12334 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12335 EnterNotify and LeaveNotify to track X focus changes.
12336
123372002-06-28 Andreas Schwab <schwab@suse.de>
12338
12339 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12340
123412002-06-27 Kim F. Storm <storm@cua.dk>
12342
12343 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12344 (mode_line_string_face_prop): New variables.
12345 (store_mode_line_string): New function.
12346 (display_mode_element): Use store_mode_line_string to
12347 add mode-line string elements to mode_line_string_list
12348 when mode_line_string_list is non-nil.
12349 (Fformat_mode_line): Now returns propertized string by
12350 default. New arg NO-PROPS to ignore properties.
12351 (decode_mode_spec): Only add two dashes for %- in propertized
12352 mode-line string.
12353 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12354
123552002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12356
12357 * minibuf.c (minibuffer_completion_contents): Add return type.
12358
123592002-06-27 Juanma Barranquero <lektu@terra.es>
12360
12361 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12362
123632002-06-26 Juanma Barranquero <lektu@terra.es>
12364
12365 * fileio.c (read_file_name_cleanup): Add missing return.
12366
123672002-06-26 Richard M. Stallman <rms@gnu.org>
12368
12369 * window.c (Frecenter): Don't set force_start flag.
12370
12371 * minibuf.c (do_completion, Fminibuffer_complete_word)
12372 (Fminibuffer_completion_help): Complete just the text before point.
12373 (minibuffer_completion_contents): New function.
12374
12375 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12376
12377 * frame.c (frames_bury_buffer): Function deleted.
12378
123792002-06-25 Miles Bader <miles@gnu.org>
12380
12381 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12382 the end of callint_message, allow for a terminating '\0'.
12383
123842002-06-24 Juanma Barranquero <lektu@terra.es>
12385
12386 * w32select.c: Include composite.h
12387
12388 * w16select.c: Likewise.
12389
123902002-06-24 Kenichi Handa <handa@etl.go.jp>
12391
12392 * callproc.c (Fcall_process): If code detection is necessary,
12393 call detect_coding directly here.
12394
12395 * coding.c (detect_eol): Preserve coding->cmp_data.
12396
12397 * w16select.c (Fw16_get_clipboard_data):
12398 * w32fns.c (w32_to_x_font):
12399 * w32select.c (Fw32_get_clipboard_data):
12400 * xselect.c (selection_data_to_lisp_data):
12401 * xterm.c (XTread_socket): Disable composition handling.
12402
124032002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12404
12405 * print.c (temp_output_buffer_setup): Kill all local variables.
12406
124072002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12408
12409 * lread.c (Fread): Remove redundant and imprecise declaration.
12410
12411 * xfns.c (check_x_display_info): Use check_x_frame.
12412
12413 * .gdbinit (xprintsym): Use the new `xname' field.
12414 (xsymbol): Use it.
12415
124162002-06-22 Jason Rumney <jasonr@gnu.org>
12417
12418 * w32fns.c (file_dialog_callback): New function.
12419 (Fx_file_dialog): Allow selecting directories as well as files.
12420
124212002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12422
12423 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 12424 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
12425
124262002-06-17 Andrew Choi <akochoi@shaw.ca>
12427
12428 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12429 black and white before scrolling. Restore frame background and
12430 foreground color after scrolling.
12431 (do_window_update): Call XClearWindow before calling expose_frame.
12432 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12433 FRAME_FOREGROUND_PIXEL of frame.
12434
12435 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12436 test Mac command key as <ALT> key.
12437
124382002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12439
12440 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12441
12442 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12443 Lookup keys in function-key-map immediately so that key-translation-map
12444 can be applied earlier.
12445 Remove function_key_possible and key_translation_possible, replaced
12446 by checking `keytran_start < t'.
12447
12448 * .gdbinit (xsymbol): Use the new `xname' field.
12449
124502002-06-17 Andrew Choi <akochoi@shaw.ca>
12451
12452 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12453 test Mac command key as <ALT> key.
12454
12455 * mac.c (do_applescript): Call initialize_applescript if necessary
12456 when first called. Dispose of result_desc only when there is no error.
12457 (Fdo_applescript): Use %d format specifier instead of %ld.
12458
124592002-06-16 Andrew Choi <akochoi@shaw.ca>
12460
12461 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12462 of FrontWindow for cases keyDown and autoKey.
12463
12464 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12465 Vdefault_fontset to Monaco with mac-roman coding.
12466
12467 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12468 init_process before and after inclusion of Carbon/Carbon.h, resp.
12469
12470 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12471 cursor_gc.
12472 (add_font_name_table_entry): New function.
12473 (init_font_name_table): Use add_font_name_table_entry; add italic,
12474 bold, and bold-italic entries for truetype fonts.
12475
12476 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12477 for Mac too.
12478 (try_font_list) [MAC_OS]: If no font matches given registry, try
12479 fonts with any registry matching face_family.
12480 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12481
12482 * s/darwin.h: If autoconf detects the Ncurses library, define
12483 LIBS_TERMCAP to -lncurses to use it.
12484
124852002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12486
12487 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12488
124892002-06-15 Richard M. Stallman <rms@gnu.org>
12490
12491 * window.c (Fset_window_configuration): Explicitly preserve
12492 the point value that new_current_buffer had at the start.
12493
124942002-06-14 Juanma Barranquero <lektu@terra.es>
12495
12496 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12497 Fix typos.
12498
124992002-06-14 Kim F. Storm <storm@cua.dk>
12500
12501 * insdel.c (insert_1_both, insert_from_string_1)
12502 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12503 insert happened in the end_unchanged region. Otherwise, the
12504 redisplay may be confused and duplicate the last line in the
12505 buffer [seen after save-buffer when require-final-newline==t].
12506
125072002-06-13 Jason Rumney <jasonr@gnu.org>
12508
12509 * w32.c (init_environment): Remove EMACSLOCKDIR.
12510 (stat): Swap _S_IFDIR and _S_IFREG.
12511
125122002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12513
12514 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12515 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12516 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12517 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12518 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12519 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12520 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12521 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12522 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12523 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12524 SELECTION_REQUEST_EVENT, selection_clear_event to
12525 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12526 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12527 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12528 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12529 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12530 no_event to NO_EVENT.
12531
125322002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12533
12534 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12535
125362002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12537
12538 * intervals.c (textget): Don't forget to `return'.
12539 (lookup_char_property): Use XCAR/XCDR.
12540
125412002-06-12 Juanma Barranquero <lektu@terra.es>
12542
12543 * xdisp.c (Fformat_mode_line): Fix typo.
12544
125452002-06-12 Kim F. Storm <storm@cua.dk>
12546
12547 * xdisp.c (Fformat_mode_line): New function.
12548 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12549 (store_frame_title_char, store_frame_title): Use unconditionally.
12550 (init_xdisp): Defsubr Fformat_mode_line.
12551 Initialize frame_title_buf etc. unconditionally.
12552
125532002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12554
12555 * keyboard.c (read_key_sequence):
12556 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12557 things through those maps after downcasing events.
12558 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12559 applies after function-key-map.
12560 Make sure that keytran can be done in the middle in the sequence.
12561 Be careful not to throw away events past the one we downcase.
12562
12563 * lread.c (read_integer): Remove unused var `tem'.
12564 (read1): Fix int/Lisp_Object mixup.
12565
12566 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12567
125682002-06-11 Richard M. Stallman <rms@gnu.org>
12569
12570 * keyboard.c (readable_events): Ignore any number of
12571 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12572
125732002-06-09 Miles Bader <miles@gnu.org>
12574
12575 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12576 (parse_rgb_list, tty_lookup_color): New functions.
12577 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12578 (color_distance, Fcolor_distance): New functions.
12579 (TTY_SAME_COLOR_THRESHOLD): New macro.
12580 (Qtty_color_standard_values): New variable.
12581 (syms_of_xfaces): Initialize new vars & functions.
12582
125832002-06-08 Colin Walters <walters@verbum.org>
12584
12585 * textprop.c (Vchar_property_alias_alist): New variable.
12586 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12587
12588 * intervals.c (lookup_char_property): New function for looking up
12589 overlay and text properties, created from textget.
12590 (textget): Use it.
12591
12592 * intervals.h (lookup_char_property): Declare.
12593 (Vchar_property_alias_alist): Declare.
12594
12595 * buffer.c (Foverlay_get): Use lookup_char_property.
12596
125972002-06-07 Sam Steingold <sds@gnu.org>
12598
12599 * xselect.c (lisp_data_to_selection_data): Fix last change:
12600 *data_ret is not a Lisp string, while unibyte_string is.
12601
126022002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12603
12604 * xselect.c (lisp_data_to_selection_data): Fix last change:
12605 set size_ret.
12606
126072002-06-07 Andreas Schwab <schwab@suse.de>
12608
12609 * m/amdx86-64.h: New file.
12610
126112002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12612
12613 * fns.c (Fstring_make_unibyte): Doc fix.
12614
12615 * xselect.c (lisp_data_to_selection_data): If the requested type
12616 is STRING, call string_make_unibyte to encode the selected text
12617 as a string.
12618
12619 * window.c (Fset_window_hscroll): Doc fix.
12620
126212002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12622
12623 * fileio.c (choose_write_coding_system):
12624 Call select-safe-coding-system properly.
12625
126262002-06-03 Richard M. Stallman <rms@gnu.org>
12627
12628 * xdisp.c (message_with_string): Error if STRING is not a string.
12629
12630 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12631
12632 * fileio.c (choose_write_coding_system): Pass FILE arg to
12633 Vselect_safe_coding_system_function.
12634
126352002-06-03 Ken Raeburn <raeburn@gnu.org>
12636
12637 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12638
126392002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12640
12641 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12642 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12643 * keymap.c (describe_command): Likewise.
12644 * minibuf.c (read_minibuf): Likewise.
12645
12646 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12647 Cast `current_column' return value to int.
12648 (back_to_previous_visible_line_start)
12649 (reseat_at_next_visible_line_start, next_element_from_buffer):
12650 Cast `indented_beyond_p' 3rd arg to float.
12651
12652 * indent.c (last_known_column): Now a float.
12653 (current_column_1, position_indentation, current_column)
12654 (string_display_width): Return float.
12655 (Fcurrent_column): Cast `current_column' return value to int.
12656 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12657 (indented_beyond_p): Third arg now a float.
12658 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12659
12660 * lisp.h (current_column): Now returns float.
12661 (indented_beyond_p): 3rd arg now a float.
12662
126632002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12664
12665 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12666 is Qcompound_text_with_extensions.
12667
12668 * xselect.c (lisp_data_to_selection_data): Always set selection
12669 type as string if x_encode_text returns streingp non-NULL.
12670
12671 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12672
126732002-05-30 Richard M. Stallman <rms@gnu.org>
12674
12675 * window.c (Fset_window_configuration): Correct the handling
12676 of point in current buffer, to work with multiple windows.
12677
126782002-05-29 Colin Walters <walters@verbum.org>
12679
12680 * lread.c (Fread_from_string): Don't depend on order of evaluation
12681 for C function parameters.
12682
126832002-05-28 Richard M. Stallman <rms@gnu.org>
12684
12685 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12686 way for blinked-off state and for a nonselected window.
12687
12688 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12689 instead, see if the new start pos is at beginning of line.
12690
12691 * fileio.c (Fwrite_region): If START is a string, don't
12692 make any annotations.
12693
12694 * eval.c (syms_of_eval): Doc fix.
12695
126962002-05-28 Colin Walters <walters@debian.org>
12697
12698 * emacs.c (USAGE1): Add --no-splash.
12699 (standard_args): Ditto.
12700
127012002-05-28 Colin Walters <walters@gnu.org>
12702
12703 * lread.c (readchar_count): New variable.
12704 (readchar): Increment it.
12705 (unreadchar): Decrement it.
12706 (read_multibyte): Decrement it.
12707 (Vread_with_symbol_positions): New variable.
12708 (Vread_symbol_positions_list): New variable.
12709 (read_internal_start): New function, created from Fread and
12710 Fread_from_string. Handle Vread_symbol_positions_list and
12711 Vread_with_symbol_positions.
12712 (readevalloop, Fread, Fread_from_string): Use it.
12713 (read1): Use readchar_count to add symbol positions to
12714 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12715 (syms_of_lread): DEFVAR_LISP and initialize them.
12716
12717 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12718 (substitute_object_recurse, substitute_object_in_subtree)
12719 (substitute_in_interval): Prototype.
12720 (read_multibyte): Return c if it's less than zero.
12721
127222002-05-28 Kim F. Storm <storm@cua.dk>
12723
12724 * fileio.c (Fread_file_name_internal): Added brute-force
12725 speed up for using predicate file-directory-p.
12726
127272002-05-28 Kim F. Storm <storm@cua.dk>
12728
12729 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12730 New variables.
12731 (syms_of_fileio): DEFVAR_LISP them.
12732 (read_file_name_cleanup): New unwind function.
12733 (Fread_file_name_internal): Only return completions satifying
12734 Vread_file_name_predicate. Temporarily unwind protect and rebind
12735 default-directory while checking completions against the predicate.
12736 (Fread_file_name): Added PREDICATE argument. Specbind it to
12737 Vread_file_name_predicate during completion.
12738 Call Vread_file_name_function to read the file name if non-nil.
12739
12740 * lisp.h (Fread_file_name): Now has 6 args.
12741
12742 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12743 predicate for Fread_file_name when reading directory name.
12744 Supply Qnil for predicate in other calls to Fread_file_name.
12745
127462002-05-26 Miles Bader <miles@gnu.org>
12747
12748 * term.c (tty_capable_p): New function.
12749 * dispextern.h (tty_capable_p): New function declaration.
12750 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12751 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12752
127532002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12754
12755 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12756 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12757 (Vwrite_region_annotate_functions): Docstring fix.
12758
127592002-05-23 Kim F. Storm <storm@cua.dk>
12760
12761 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12762 phys_cursor's hpos is overwritten. This is still not completely
12763 correct, as it doesn't really make sense to use hpos at all to
12764 get the cursor glyph (as that is relative to the width of the
12765 characters on the line, which may have changed during the update).
12766
127672002-05-22 Jason Rumney <jasonr@gnu.org>
12768
12769 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12770 Lisp_Object.
12771 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12772 Use modified enumfont_t struct.
12773
12774 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12775
12776 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12777 Handle the `hbar' cursor type.
12778 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12779
12780 * w32fns.c (Qhbar): New variable.
12781 (x_specified_cursor_type): Use it.
12782
127832002-05-21 Ken Raeburn <raeburn@gnu.org>
12784
12785 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12786 now, when the address is needed.
12787
127882002-05-21 Colin Walters <walters@gnu.org>
12789
12790 * Makefile.in (shortlisp): Add font-core.el.
12791
127922002-05-20 Richard M. Stallman <rms@gnu.org>
12793
12794 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12795
12796 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12797 equivalent key bindings here.
12798
127992002-05-20 Ken Raeburn <raeburn@gnu.org>
12800
12801 Change symbol structure to contain a lisp object for the symbol
12802 name:
12803 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12804 object field named "xname".
12805 (SYMBOL_NAME): New macro.
12806 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12807 name field.
12808 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12809 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12810 instead of name field.
12811 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12812 SYMBOL_NAME instead of XSYMBOL and name field.
12813 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12814 instead of XSYMBOL and name field.
12815 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12816 and SYMBOL_NAME instead of XSYMBOL and name field.
12817 * coding.c (Fread_coding_system, code_convert_region1)
12818 (code_convert_string1, code_convert_string_norecord)
12819 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12820 XSYMBOL and name field.
12821 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12822 (Fmake_variable_buffer_local, Fmake_local_variable)
12823 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12824 of XSYMBOL and name field.
12825 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12826 XSYMBOL and name field.
12827 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12828 instead of XSYMBOL and name field.
12829 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12830 XSYMBOL and name field.
12831 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12832 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12833 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12834 instead of XSYMBOL and name field.
12835 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12836 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12837 (parse_solitary_modifier, Fexecute_extended_command):
12838 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12839 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12840 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12841 of XSYMBOL and name field.
12842 (describe_command, describe_translation): Use SYMBOL_NAME and
12843 assignment instead of XSYMBOL and name field and XSETSTRING.
12844 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12845 instead of XSYMBOL and name field.
12846 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12847 name field and XSETSTRING.
12848 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12849 of XSYMBOL and name field.
12850 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12851 assignment instead of XSYMBOL and name field and XSETSTRING.
12852 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12853 XSTRING instead of XSYMBOL and name field.
12854 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12855 and XSTRING instead of XSYMBOL and name field.
12856 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12857 and XSTRING instead of XSYMBOL and name field.
12858 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12859 XSTRING instead of XSYMBOL and name field.
12860 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12861 of XSYMBOL and name field.
12862 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12863 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12864
128652002-05-19 Ken Raeburn <raeburn@gnu.org>
12866
12867 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12868 and XCDR real rvalues in most configurations.
12869
12870 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12871 Don't take the address of the cdr part of a cons cell; instead, track
12872 the parent cell and call XSETCDR, or set the variable for the head
12873 of the list if we haven't started down the list yet.
12874
128752002-05-19 Richard M. Stallman <rms@gnu.org>
12876
12877 * doc.c (reread_doc_file): Don't ask for confirmation.
12878
128792002-05-18 Jason Rumney <jasonr@gnu.org>
12880
12881 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12882 (xbm_load_image): Use it.
12883 (xbm_load): Ditto.
12884 (xbm_read_bitmap_data): Reverted to xfns.c version.
12885 From David Ponce <david@dponce.com>.
12886
128872002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12888
12889 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12890 2.02 and later.
12891
128922002-05-16 Juanma Barranquero <lektu@terra.es>
12893
12894 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12895
128962002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12897
12898 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12899 meaningful test.
12900 (read_char_minibuf_menu_prompt): Fix typo.
12901
129022002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12903
12904 * eval.c (Fcommandp): Doc fix.
12905
129062002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12907
12908 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12909 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12910 (Fset_keymap_parent): Gcpro a bit more.
12911 (access_keymap): Gcpro around meta_map call and around the main loop.
12912 (get_keyelt): Gcpro when following indirect references.
12913 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12914 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12915 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12916 Remove useless ad-hoc remap code.
12917
129182002-05-13 Richard M. Stallman <rms@gnu.org>
12919
12920 * search.c (search_buffer): Give up boyer moore search if inverse
12921 translation change charset_base.
12922
129232002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12924
12925 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12926 characters is carried over from the previous block of text, adjust
12927 coding->produced to account for the extra character.
12928
129292002-05-11 Andreas Schwab <schwab@suse.de>
12930
12931 * coding.c (intersection): Keep the elements of the returned list
12932 in the same order as in the first list.
12933
129342002-05-11 Kim F. Storm <storm@cua.dk>
12935
12936 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12937 only update cmm_size if realloc actually succeeds.
12938 Testing with initial size of 2 elements revealed that using
12939 realloc on GNU/Linux would cause a random trap in xmalloc
12940 later on, so I rewrote the code to use malloc/bcopy/free instead
12941 of realloc.
12942
129432002-05-10 Jason Rumney <jasonr@gnu.org>
12944
12945 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12946
129472002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12948
12949 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12950 parens, to ensure correct evaluation order.
12951
129522002-05-10 Kim F. Storm <storm@cua.dk>
12953
12954 * keymap.c (Vemulation_mode_map_alists): New variable.
12955 (syms_of_keymap): DEFVAR_LISP it.
12956 (current_minor_maps): Process keymap alists in that list before
12957 minor-mode-overriding-map-alist and minor-mode-map-alist.
12958
129592002-05-09 Richard M. Stallman <rms@gnu.org>
12960
12961 * search.c (Freplace_match): Doc fix.
12962
129632002-05-09 Kim F. Storm <storm@cua.dk>
12964
12965 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12966 Enlarge cursor rectangle drawn around image with non-zero relief.
12967
12968 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12969 Enlarge cursor rectangle drawn around image with non-zero relief.
12970
12971 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12972 Enlarge cursor rectangle drawn around image with non-zero relief.
12973
129742002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12975
12976 * xselect.c (lisp_data_to_selection_data): Don't set selection
12977 type if comes from the Lisp object's car. If the selection
12978 contains a pure ASCII text, always return QSTRING as its type.
12979
129802002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12981
12982 * mac.c (mac-cut-function): Doc fix.
12983
129842002-05-05 Richard M. Stallman <rms@gnu.org>
12985
12986 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12987
129882002-05-04 Jason Rumney <jasonr@gnu.org>
12989
12990 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12991 for event-click-count.
12992
12993 * process.c (init_process): Only add server subfeature if we can
12994 use non-blocking I/O.
12995
129962002-05-04 Andrew Choi <akochoi@shaw.ca>
12997
12998 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12999 repeatedly.
13000
130012002-05-03 Jason Rumney <jasonr@gnu.org>
13002
13003 * process.c (Fmake_network_process): Only support server sockets
13004 when we can make them non-blocking.
13005
13006 * s/ms-w32.h (HAVE_SELECT): Define.
13007
13008 * w32.h (FILE_NDELAY): New flag.
13009
13010 * w32.c (sys_getpeername, fcntl): New functions.
13011 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13012
13013 * w32proc.c: include sys/file.h.
13014
130152002-05-03 Colin Walters <walters@verbum.org>
13016
13017 * callproc.c (Vgame_score_directory): Renamed to
13018 Vshared_game_score_directory.
13019
130202002-04-30 Richard M. Stallman <rms@gnu.org>
13021
13022 * s/gnu.h [emacs]: Include stdio.h.
13023 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13024
13025 * eval.c (do_autoload): Error if called while preparing to dump.
13026
13027 * fns.c (Frequire): Error if need to load while preparing to dump.
13028
130292002-04-28 Colin Walters <walters@verbum.org>
13030
13031 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13032 Default to "~/.emacs.d/games".
13033
130342002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13035
13036 * lread.c (openp): Change arg exec_only to predicate.
13037 (build_load_history): Use XCAR/XCDR.
13038 (Flocate_file_internal): New fun.
13039 (syms_of_lread): Defsubr it.
13040 (Fload): Update call to openp.
13041
13042 * lisp.h (openp): Update prototype.
13043
13044 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13045 * w32proc.c (sys_spawnve):
13046 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13047 * w32.c (check_windows_init_file):
13048 * sound.c (Fplay_sound_internal):
13049 * process.c (Fstart_process):
13050 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13051 * mac.c (run_mac_command):
13052 * emacs.c (init_cmdargs):
13053 * callproc.c (Fcall_process): Update call to openp.
13054
13055 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13056
13057 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13058
130592002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13060
13061 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13062 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13063
130642002-04-28 Richard M. Stallman <rms@gnu.org>
13065
13066 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13067
13068 * eval.c (Fcommandp): New arg for_call_interactively.
13069 * lisp.h (Fcommandp): Declare new arg.
13070
130712002-04-28 Jason Rumney <jasonr@gnu.org>
13072
13073 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13074
13075 * w32.c (stat, fstat): Use file index information to generate
13076 inodes for directories where available.
13077
130782002-04-26 Andrew Choi <akochoi@shaw.ca>
13079
13080 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13081 [HAVE_CARBON]: Include Mac object files.
13082
13083 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13084 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13085 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13086 MAC_OSX, and MAC_OS instead of macintosh.
13087
13088 * editfns.c [MAC_OS8]: Include stdio.h.
13089
13090 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13091
13092 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13093 Apple Monaco.
13094
78819ebb 13095 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13096 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13097 calling select.
13098
13099 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13100
13101 * tparam.c [MAC_OSX]: Don't define BC and UP.
13102
13103 * config.in [HAVE_CARBON]: Add.
13104
13105 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13106 Move here from mac/src and mac/inc.
13107
13108 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13109
131102002-04-26 Gerd Moellmann <gerd@gnu.org>
13111
13112 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13113 Compute phys_cursor_width from the x position returned
13114 by x_draw_glyhs, which is cheaper.
13115 (x_display_and_set_cursor): Compute the buffer-local value
13116 of `cursor-in-non-selected-windows' only when needed.
13117
131182002-04-25 Gerd Moellmann <gerd@gnu.org>
13119
13120 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13121 cursor on a stretch glyph has a width that depends on
13122 x_stretch_cursor_p.
13123
131242002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13125
13126 * abbrev.c (abbrev-start-location): Doc fix.
13127
13128 * indent.c (Fvertical_motion): Fix last change.
13129
131302002-04-25 Gerd Moellmann <gerd@gnu.org>
13131
13132 * indent.c (Fvertical_motion): Move to the start of the line
13133 containing PT before moving up or down.
13134
131352002-04-24 Gerd Moellmann <gerd@gnu.org>
13136
13137 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13138 case of writing a whole row, more or less analogous to the case of
13139 writing only parts of a row.
13140
13141 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13142 0 for NO_CURSOR.
13143
13144 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13145
131462002-04-23 Colin Walters <walters@verbum.org>
13147
13148 * buffer.c (syms_of_buffer): Doc fix.
13149
131502002-04-23 Gerd Moellmann <gerd@gnu.org>
13151
13152 * xterm.c (notice_overwritten_cursor): Handle the special case
13153 of the cursor being in the first blank non-text line at the
13154 end of a window.
13155
13156 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13157 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13158 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13159 bar cursors only, to make phys_cursor_width contain what its name
13160 suggests.
13161 (notice_overwritten_cursor): Consider the cursor image erased if
13162 the output area intersects the cursor image in y-direction.
13163
131642002-04-23 Simon Marshall <simon@gnu.org>
13165
13166 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13167 to XC_hand2.
13168
131692002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13170
13171 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13172
131732002-04-22 Kim F. Storm <storm@cua.dk>
13174
13175 * textprop.c (remove_properties): Fixed trap for malformed plist.
13176
131772002-04-22 Richard M. Stallman <rms@gnu.org>
13178
13179 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13180
13181 * window.c (make_window): Initialize height_fixed_p,
13182 last_cursor_off_p, and p->cursor_off_p slots.
13183
131842002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13185
13186 * fns.c (use-dialog-box): Doc fix.
13187
131882002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13189
13190 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13191 variables `row', `i' and `area'.
13192 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13193 toolkit library.
13194
131952002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13196
13197 * xfaces.c (clear_font_table): Don't free the default font of
13198 a frame even if it's on another display.
13199 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13200 that could be Qt.
13201
132022002-04-19 Juanma Barranquero <lektu@terra.es>
13203
13204 * indent.c (Fmove_to_column): Remove unused local variable
13205 `next_boundary_byte'.
13206 (current_column_1): Likewise.
13207
132082002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13209
13210 * msdos.c (Qhbar): New variable.
13211 (syms_of_msdos): Intern and staticpro it.
13212 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13213 cursor type.
13214
132152002-04-19 Dave Lambert <dlambert@acm.org>
13216
13217 Theses change implement an underscore-like (`hbar') cursor.
13218
13219 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13220
13221 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13222 Handle the `hbar' cursor type.
13223 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13224
13225 * xfns.c (Qhbar): New variable.
13226 (syms_of_xfns): Intern and staticpro it.
13227 (x_specified_cursor_type): Handle `hbar' cursor.
13228
13229 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13230 not defined.
13231
132322002-04-18 Richard M. Stallman <rms@gnu.org>
13233
13234 * textprop.c (remove_properties): New arg LIST allows scanning
13235 either a list or a plist.
13236 (interval_has_some_properties_list): New function, like
13237 interval_has_some_properties using list instead of plist.
13238 All callers changed.
13239 (Fremove_list_of_text_properties): New function.
13240 (syms_of_textprop): Defsubr it.
13241
132422002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13243
13244 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13245
132462002-04-17 Juanma Barranquero <lektu@terra.es>
13247
13248 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13249
132502002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13251
13252 * window.c (coordinates_in_window): Don't report on margin area
13253 if its width is zero.
13254
132552002-04-16 Jason Rumney <jasonr@gnu.org>
13256
13257 * w32fns.c (Fx_file_dialog): Decode file name before using.
13258
13259 * w32term.c (construct_drag_n_drop): Likewise.
13260
132612002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13262
13263 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13264 store load-history in pure space.
13265
13266 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13267
132682002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13269
13270 * xterm.c (Qlatin_1, Qutf_8): New vars.
13271 (syms_of_xterm): Initialize them.
13272 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13273 decoding the output of X*LookupString.
13274 Always use latin-1 to decode the output of XLookupString.
13275 Try Xutf8LookupString if XmbLookupString failed.
13276
13277 * region-cache.c (new_region_cache): Use BEG.
13278
132792002-04-16 Gerd Moellmann <gerd@gnu.org>
13280
13281 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13282 configuration files.
13283 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13284 returns 0.
13285
132862002-04-15 Andreas Schwab <schwab@suse.de>
13287
13288 * config.in: Regenerated using autoheader.
13289
13290 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13291 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13292 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13293 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13294 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13295 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13296 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13297 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13298 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13299 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13300 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13301 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13302 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13303 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13304 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13305 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13306 STACK_DIRECTION, now set by autoconf.
13307
133082002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13309
13310 * dispnew.c (marginal_area_string): Sort arguments.
13311
13312 * dispextern.h (marginal_area_string): Add prototype.
13313
133142002-04-13 Richard M. Stallman <rms@gnu.org>
13315
13316 * fileio.c (Finsert_file_contents):
13317 Don't call temp_output_buffer_setup--do just part, by hand.
13318
13319 * coding.c (run_pre_post_conversion_on_str):
13320 Don't call temp_output_buffer_setup--do just part, by hand.
13321
13322 * keyboard.c (command_loop_1): Don't call start_hourglass
13323 or cancel_hourglass when executing a macro.
13324
13325 * marker.c (count_markers): New function.
13326
13327 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13328 grow without limit. Move recently used elements to the front.
13329
133302002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13331
13332 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13333
133342002-04-12 Gerd Moellmann <gerd@gnu.org>
13335
13336 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13337 rows marginal areas.
13338 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13339 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13340
13341 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13342
133432002-04-12 Dave Love <fx@gnu.org>
13344
13345 * dispnew.c (marginal_area_string): New.
13346
13347 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13348 (Qleft_margin, Qright_margin): Declare.
13349 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13350
13351 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13352 note_mode_line_highlight and extended.
13353
13354 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13355 (make_lispy_event): Deal with mouse events in margins.
13356
133572002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13358
13359 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13360
13361 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13362 than deactivating the mark if tmm is set to `lambda'.
13363 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13364 Use a single event for HELP_EVENT.
13365 (Fexecute_extended_command): Save last_point_position.
13366
133672002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13368
13369 * lisp.h (Fpropertize): Add prototype.
13370
13371 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13372
133732002-04-10 Colin Walters <walters@verbum.org>
13374
13375 * config.in: Add HAVE_SHARED_GAME_DIR.
13376
13377 * callproc.c: (Vgame_score_directory): New variable.
13378 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13379
133802002-04-10 Richard M. Stallman <rms@gnu.org>
13381
13382 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13383
133842002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13385
13386 * minibuf.c (read_minibuf): Use empty_string.
13387 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13388 Short-circuit the search as soon as it "failed".
13389 (Fall_completions): Allow lambda forms and lists of strings for alist.
13390 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13391 when require_match is nil.
13392 (Ftest_completion): Rename from `test_completion' and export to elisp.
13393 Call the predicate also when alist is a list.
13394 Obey Vcompletion_regexp_list.
13395 (do_completion, Fminibuffer_complete_and_exit): Use it.
13396 (Fassoc_string): Rename from `assoc_for_completion'.
13397 Allow list of strings as well and export to elisp.
13398
133992002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13400
13401 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13402
134032002-04-08 Juanma Barranquero <lektu@terra.es>
13404
13405 * w32.c (sys_accept): Don't hide variable `s'.
13406
134072002-04-05 Gerd Moellmann <gerd@gnu.org>
13408
13409 * callint.c (Fcall_interactively): Use INTEGERP instead of
13410 NUMBERP for checking Vhistory_length.
13411
134122002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13413
13414 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13415 Doc fix to reflect it.
13416
134172002-04-04 Richard M. Stallman <rms@gnu.org>
13418
13419 * xdisp.c (display_mode_element): New arg RISKY.
13420 Disregard text props found or specified within a variable
13421 that isn't marked risky-local-variable.
13422 (Qrisky_local_variable): New variable.
13423 (syms_of_xdisp): Init and staticpro it.
13424
134252002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13426
13427 * undo.c (record_point): New fun.
13428 (record_delete, record_insert): Use it.
13429
134302002-04-03 Juanma Barranquero <lektu@terra.es>
13431
13432 * doc.c (Fdocumentation): Add missing parentheses.
13433 (Fdocumentation_property): Likewise.
13434
134352002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13436
13437 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13438 data is 0, just return nil.
13439
134402002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13441
13442 * msdos.c (syms_of_msdos): Fix last change with
13443 mouse_autoselect_window.
13444
134452002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13446
13447 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13448 mouse_autoselect_window.
13449
134502002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13451
13452 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13453 with system-specific keysyms. Use it also for unknown function keys.
13454
13455 * doc.c (reread_doc_file): Return whether reload was attempted.
13456 (Fdocumentation, Fdocumentation_property): Don't try to reload
13457 if the doc is 0 and only ask once.
13458
13459 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13460
134612002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13462
13463 * keyboard.c (read_char): If the event was Qselect_window,
13464 restore timer_idleness_start_time to its previous value.
13465
13466 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13467
134682002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13469
13470 * region-cache.c (new_region_cache): Use BEG.
13471
13472 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13473 Use BEG and BEG_BYTE.
13474
13475 * doc.c (get_doc_string): Return nil if the location is wrong.
13476 (reread_doc_file): New fun.
13477 (Fdocumentation, Fdocumentation_property):
13478 Call it if get_doc_string fails.
13479 (Fsnarf_documentation): Make it work for a dumped Emacs.
13480
13481 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13482 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13483
13484 * charset.c (Fstring): Allow 0 arguments.
13485
13486 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13487
13488 * process.c (DATAGRAM_CONN_P, list_processes_1)
13489 (Fprocess_datagram_address, Fset_process_datagram_address)
13490 (Fset_network_process_options, server_accept_connection):
13491 Fix some int/Lisp_Object confusions (thank you union types).
13492
134932002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13494
13495 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13496
13497 * w32term.c: Likewise.
13498 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13499
13500 * keyboard.c (Qselect_window): New symbol.
13501 (head_table): Use it.
13502 (keys_of_keyboard): Bound select-window event to handle-select-window.
13503 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13504
13505 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13506 (last_window): New variable.
13507 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13508 (note_mouse_movement): Remove reimplemented code in #if 0.
13509 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13510 Emacs windows.
13511
13512 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13513
135142002-03-31 Gerd Moellmann <gerd@gnu.org>
13515
13516 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13517 Callers changed.
13518
135192002-03-30 Richard M. Stallman <rms@gnu.org>
13520
13521 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13522 loop whenever it stops making progress.
13523
13524 * widget.c (set_frame_size): Don't call change_frame_size.
13525
135262002-03-30 Gerd Moellmann <gerd@gnu.org>
13527
13528 * dispnew.c (direct_output_for_insert):
13529 Call mark_window_display_accurate.
13530
135312002-03-29 Jason Rumney <jasonr@gnu.org>
13532
13533 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13534
135352002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13536
13537 * Makefile.in (lread.o): Depend on coding.h.
13538
13539 * lread.c (openp, Fload): Encode the file name before passing it
13540 to `stat', `access', and `emacs_open'.
13541 (openp): GCPRO the encoded file name. Don't recompute Lisp
13542 strings unnecessarily.
13543
135442002-03-29 Kim F. Storm <storm@cua.dk>
13545
13546 * fns.c (Flax_plist_put): Doc fix.
13547
135482002-03-28 Miles Bader <miles@gnu.org>
13549
13550 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13551
135522002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13553
13554 * process.c (set-network-process-options): Add usage.
13555 (make-network-process): Doc fix.
13556
135572002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13558
13559 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13560
135612002-03-26 Richard M. Stallman <rms@gnu.org>
13562
13563 * fns.c (Fsubstring_no_properties): New function.
13564 (Flax_plist_get, Flax_plist_put): New functions.
13565 (syms_of_fns): defsubr them.
13566
13567 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13568 don't test or alter w->update_mode_line.
13569
13570 * window.c (Fdisplay_buffer): Doc fix.
13571
135722002-03-24 Richard M. Stallman <rms@gnu.org>
13573
13574 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13575
135762002-03-24 Gerd Moellmann <gerd@gnu.org>
13577
13578 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13579 (Fdefmacro): Handle `(declare ...)'.
13580 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13581 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13582
135832002-03-24 Jason Rumney <jasonr@gnu.org>
13584
13585 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13586 (xbm_file_p): Add prototypes.
13587 (xbm_format, xbm_image_p): Sync with xfns.c.
13588 (reflect_byte): New function.
13589 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13590 (xbm_load_image): Create bitmaps with a depth of 1.
13591 (init_xfns): Enable XBM images.
13592
135932002-03-23 Jason Rumney <jasonr@gnu.org>
13594
13595 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13596 correctly. Do not pass up_modifier to keyboard buffer.
13597
13598 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13599
136002002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13601
13602 * Makefile.in (bootstrapclean): New target.
13603 (bootstrap-temacs, bootstrap-doc): Remove.
13604 (bootstrap-emacs): Use a bog-standard `temacs'.
13605 Don't bother to build a DOC file.
13606
13607 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13608
13609 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13610 in temacs even if !CANNOT_DUMP.
13611 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13612
13613 * alloc.c (check_pure_size): Only output a warning.
13614
136152002-03-22 Jason Rumney <jasonr@gnu.org>
13616
13617 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13618 supported.
13619
13620 * w32term.c (zv_bits): Declare as short, for word alignment.
13621 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13622 (syms_of_w32term): Define x-use-underline-position-properties.
13623
13624 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13625 (clear_image_cache): Block input, fix logic, clear matrices in
13626 all frames that share this cache.
13627
136282002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13629
13630 * emacs.c (main): Update the Copyright year in the blurb printed
13631 by "emacs --version".
13632
13633 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13634
13635 * xterm.c (XTread_socket): If XK_ISO_Lock and
13636 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13637 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13638
136392002-03-21 Kim F. Storm <storm@cua.dk>
13640
13641 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13642 menu-bar bindings in keymap and local-map properties _are_ used.
13643 But try keymap property first in accordance with 2002-01-03 patch.
13644 Added comment describing why this is not always reliable.
13645 (tool_bar_items): Ditto for tool-bar.
13646
136472002-03-21 Jason Rumney <jasonr@gnu.org>
13648
13649 * w32fns.c (x_clear_image_1): Disable color table code.
13650
136512002-03-21 Kim F. Storm <storm@cua.dk>
13652
13653 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13654 removed the wrong version of the DEFUN macro; fixed it.
13655
13656 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13657 Fmember rather than Fmemq).
13658 (Fprovide): Check that subfeatures is a list.
13659
13660 * process.c (QCfeature, QCdatagram): Removed variables.
13661 (QCtype, Qdatagram): New variables.
13662 (network_process_featurep): Removed function.
13663 (Fmake_network_process): Removed :feature check.
13664 Use :type 'datagram instead of :datagram t to create a datagram
13665 socket. This allows us to add other connection types (e.g. raw
13666 sockets) later in a consistent manner.
13667 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13668 supported subfeatures for feature make-network-process.
13669 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13670 Intern and staticpro QCtype and Qdatagram.
13671 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13672
13673 * xfns.c: (QCtype): Remove duplicate declaration and
13674 initialization (is now declared in process.c).
13675
13676 * w32fns.c: (QCtype): Remove duplicate declaration and
13677 initialization (is now declared in process.c).
13678
136792002-03-21 Richard M. Stallman <rms@gnu.org>
13680
13681 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13682 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13683 when jumping to `fail' to avoid undoing reg changes in the
13684 last iteration of the loop.
13685 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13686
13687 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13688 Depend on process.h.
13689
136902002-03-20 Jason Rumney <jasonr@gnu.org>
13691
13692 Most of the following changes are still conditional on HAVE_IMAGES
13693 which is not set by default on Windows.
13694
13695 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13696
13697 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13698 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13699 (four_corners_best, x_clear_image_1, x_clear_image)
13700 (x_alloc_image_color, postprocess_image)
13701 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13702 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13703 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13704
13705 * w32gui.h (struct XImage): Define.
13706
13707 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13708 extract mouse co-ordinates.
13709
137102002-03-20 Jason Rumney <jasonr@gnu.org>
13711
13712 * w32.c (init_winsock): Dynamically load new server and UDP
13713 socket functions.
13714 (socket_to_fd): New function.
13715 (sys_socket): Use it.
13716 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13717 (sys_recvfrom, sys_sendto): New wrapper functions.
13718
13719 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13720 and initialization.
13721
13722 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13723
137242002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13725
13726 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13727 Don't use "sun" as a variable, it's a predefined constant on Sun
13728 machines.
13729
137302002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13731
13732 * bytecode.c (Fbyte_code): Revert last change.
13733
137342002-03-19 Kim F. Storm <storm@cua.dk>
13735
13736 * makefile.w32-in (LIBS): Add $(WSOCK32).
13737 From David Ponce <dponce@voila.fr>.
13738
137392002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13740
13741 * process.c (wait_reading_process_input): Move variables `pname'
13742 and `pnamelen' down where they are used.
13743
13744 * bytecode.c (Fbyte_code): Discard unused computed value to
13745 prevent gcc warning.
13746
13747 * lisp.h (Fplist_member): Add prototype.
13748
137492002-03-18 Kim F. Storm <storm@cua.dk>
13750
13751 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13752 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13753
13754 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13755 Remove explicit GNU_LINUX settings for datagram support.
13756
137572002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13758
13759 * process.c (Fmake_network_process): Remove unused variable `sa'.
13760 Doc fix. Add usage:.
13761 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13762
137632002-03-17 Richard M. Stallman <rms@gnu.org>
13764
13765 * xdisp.c (cursor_type_changed): New variable.
13766 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13767 Clear it when clearing windows_or_buffers_changed.
13768 (try_cursor_movement, redisplay_window, try_window_id)
13769 (try_window_reusing_current_matrix): Test cursor_type_changed
13770 along with windows_or_buffers_changed.
13771
13772 * window.h (cursor_type_changed): New variable.
13773
13774 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13775 not update_mode_lines, and always set it to 1.
13776
13777 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13778 if no frames needed redrawing.
13779
137802002-03-17 Kim F. Storm <storm@cua.dk>
13781
13782 The following changes add support for network server processes,
13783 datagram connections, and local (unix) sockets.
13784
13785 * process.h (struct Lisp_Process): New member log.
13786 Doc fix: Member command used to indicate stopped network process.
13787 Doc fix: Member childp contains plist for network process.
13788 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13789
13790 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13791 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13792 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13793 New variables.
13794 (NETCONN1_P): New macro.
13795 (DATAGRAM_SOCKETS): New conditional symbol.
13796 (datagram_address): New array.
13797 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13798 (status_message): Use concat3.
13799 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13800 for a stopped network process.
13801 (Fset_process_buffer): Update contact plist for network process.
13802 (Fset_process_filter): Ditto. Don't enable input for stopped
13803 network processes. Server must listen, even if filter is t.
13804 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13805 New functions.
13806 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13807 (Fprocess_contact): Added KEY argument. Handle datagrams.
13808 (list_processes_1): Optionally show only processes with the query
13809 on exit flag set. Dynamically adjust column widths. Omit tty
13810 column if not needed. Report stopped network processes.
13811 Identify server and datagram network processes.
13812 (Flist_processes): New optional arg `query-only'.
13813 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13814 (conv_lisp_to_sockaddr, set_socket_options)
13815 (network_process_featurep, unwind_request_sigio): New helper functions.
13816 (Fprocess_datagram_address, Fset_process_datagram_address):
13817 (Fset_network_process_options): New lisp functions.
13818 (Fopen_network_stream): Removed. Now defined in simple.el.
13819 (Fmake_network_process): New lisp function. Code is based on previous
13820 Fopen_network_stream, but heavily reworked with new property list based
13821 argument list, support for datagrams, server processes, and local
13822 sockets in addition to old client-only functionality.
13823 (server_accept_connection): New function.
13824 (wait_reading_process_input): Use it to handle incoming connects.
13825 Do not enable input on a new connection if process is stopped.
f63fd14e 13826 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13827 (send_process): Handle datagram sockets.
13828 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13829 network process is indicated by setting command field to t .
13830 (Fprocess_send_eof): No-op if datagram connection.
13831 (Fstatus_notify): Don't read input for a stream server socket or a
13832 stopped network process.
13833 (init_process): Initialize datagram_address array.
13834 (syms_of_process): Intern and staticpro new variables, defsubr new
13835 functions.
13836
138372002-03-16 Jason Rumney <jasonr@gnu.org>
13838
13839 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13840 startup case.
13841
138422002-03-16 Richard M. Stallman <rms@gnu.org>
13843
13844 * xdisp.c (redisplay_internal, redisplay_windows):
13845 Use list_of_error to call internal_condition_case_1.
13846 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13847 so as to catch all errors with no possibility of debugger redisplay.
13848 (list_of_error): New variable.
13849 (syms_of_xdisp): Init and staticpro it.
13850
13851 * print.c (print_object): Delete `\ ' from printed rep of frame.
13852
138532002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13854
13855 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13856 until its implementation is fixed.
13857
138582002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13859
13860 * xfns.c (png_load): Remove unused variable `gamma_str'.
13861
138622002-03-14 Richard M. Stallman <rms@gnu.org>
13863
13864 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13865
138662002-03-14 Miles Bader <miles@gnu.org>
13867
13868 * intervals.c (adjust_for_invis_intang): New function.
13869 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13870 work for dealing with invisible+intangible regions. Do so before
13871 and after both forward and backward movements, to handle both
13872 front-sticky and rear-sticky cases.
13873 * textprop.c (text_property_stickiness): Function moved here from
13874 `editfns.c'.
13875 * intervals.h (text_property_stickiness): New declaration.
13876 * editfns.c (char_property_eq): Function removed.
13877 (text_property_stickiness): Function moved to `textprop.c'.
13878
138792002-03-13 Jason Rumney <jasonr@gnu.org>
13880
13881 * config.in: Add STRFTIME_NO_POSIX2.
13882
13883 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13884 and %OX when underlying strftime does not.
13885
138862002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13887
13888 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13889 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13890 line) to avoid annoying flicker.
13891 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13892 (XTread_socket): Mark it static.
13893
13894 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13895
138962002-03-13 Kim F. Storm <storm@cua.dk>
13897
13898 * puresize.h (BASE_PURESIZE): Increase to 775000.
13899
139002002-03-12 Juanma Barranquero <lektu@terra.es>
13901
13902 * editfns.c (syms_of_editfns): Fix typo.
13903
139042002-03-12 Gerd Moellmann <gerd@gnu.org>
13905
13906 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13907 Include termopt.h for interrupt_input.
13908
139092002-03-11 Andreas Schwab <schwab@suse.de>
13910
13911 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13912
139132002-03-11 Gerd Moellmann <gerd@gnu.org>
13914
13915 * xterm.c (note_mouse_movement): Put code for
13916 x_autoselect_window_p in #if 0.
13917
13918 * lread.c (Fload): Don't assume that message_with_string uses the
13919 string it is given like a C string.
13920
139212002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13922
78819ebb 13923 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13924
13925 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13926 x_session_have_connection.
13927 (x_initialize): Add call to x_session_initialize.
13928
13929 * termhooks.h (enum event_kind): Add save_session_event.
13930
13931 * keyboard.c: Add Emacs event save_session_event.
13932
13933 * emacs.c (main): Add call to syms_of_xsmfns.
13934
78819ebb 13935 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13936
13937 * config.in: Add HAVE_X_SM.
13938
13939 * Makefile.in (LIBXT): Add -lSM -lICE
13940 if HAVE_X_SM and not USE_X_TOOLKIT.
13941 (XOBJ): New file xsmfns.c added.
13942
13943 * xsmfns.c: New file for X session management.
13944
139452002-03-09 Jason Rumney <jasonr@gnu.org>
13946
13947 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13948 read-only when setting modified time.
13949
139502002-03-08 Gerd Moellmann <gerd@gnu.org>
13951
13952 * xdisp.c (move_it_vertically_backward): At the end of the function,
13953 when moving forward by lines, treat terminal frames specially.
13954
13955 * keyboard.c (echo_char): Make sure to add a separator between
13956 keys even if echo_dash hasn't been called.
13957
13958 * xdisp.c: Use new string macros.
13959 (update_echo_area): Pass number of bytes to message3 instead of
13960 number of chars.
13961 (set_message_1): Don't access a string's size_byte directly.
13962 (decode_mode_spec_coding): Use number of bytes of eoltype string
13963 instead number of chars.
13964
13965 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13966
139672002-03-08 Juanma Barranquero <lektu@terra.es>
13968
13969 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13970 24-bit.
13971
139722002-03-06 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13975
139762002-03-06 Gerd Moellmann <gerd@gnu.org>
13977
13978 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13979 (cancel_echoing, echo_length, echo_truncate): Changed to
13980 work with new kboard definition.
13981 (echo_now): Use message3_nolog instead of message2_nolog.
13982
13983 * alloc.c (mark_kboards): Mark echo_string.
13984
13985 * keyboard.h (ECHOBUFSIZE): Removed.
13986 (struct kboard): Member echoptr removed, member echobuf renamed
13987 to echo_string.
13988
13989 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13990 message3 instead of message2 to display the message using STRING's
13991 text properties.
13992
139932002-03-05 Andreas Schwab <schwab@suse.de>
13994
13995 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13996
139972002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13998
13999 * frame.c (default-frame-alist): Explain that setting it doesn't
14000 affect existing frames.
14001
140022002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14003
14004 * indent.c (skip_invisible): Fix my brain fart.
14005
14006 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14007
140082002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14009
14010 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14011 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14012 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14013 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14014 and variables to use EMACS_INT instead of just int.
14015
14016 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14017
140182002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14019
14020 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14021 environment, pass it down with corrected value.
14022
140232002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14024
14025 * lread.c (read_filtered_event): Do not call start_hourglass
14026 before returning.
14027
140282002-03-04 Juanma Barranquero <lektu@terra.es>
14029
14030 * w32term.c (x_display_and_set_cursor): Fix typo.
14031
140322002-03-03 Richard M. Stallman <rms@gnu.org>
14033
14034 * fileio.c (Fmake_temp_name): Doc fix.
14035
140362002-03-03 Gary Wong <gtw@gnu.org>
14037
14038 * termcap.c [!emacs]: Replace ospeed for building standalone
14039 libtermcap, for binary compatibility.
14040
14041 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14042
140432002-03-03 Richard M. Stallman <rms@gnu.org>
14044
14045 * xrdb.c (file_p): Rename arg `path' to `filename'.
14046
14047 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14048 only if it is an integer.
14049
14050 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14051 If png_get_sRGB gives an answer, call png_set_gamma
14052 using the default image gamma value.
14053
14054 * lread.c (read1): When reading from a file, default string to
14055 multibyte only if it has some multibyte characters.
14056
14057 * print.c (print_object): Output multibyte chars 128...255
14058 using \x even if ! print_escape_multibyte.
14059
14060 * xdisp.c (display_mode_element): Move the places where
14061 bytepos, charpos, this, and lisp_string are set.
14062 Use lisp_string to set bytepos.
14063
14064 * xdisp.c (redisplay_internal):
14065 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14066
14067 * xdisp.c (display_mode_element): Merge properties specified with
14068 :propertize onto those that come with the string.
14069
140702002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14071
14072 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14073 automatic-hscrolling. Users changed.
14074 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14075 Users changed.
14076 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14077
140782002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14079
14080 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14081
140822002-03-02 Kim F. Storm <storm@cua.dk>
14083
14084 * window.c (Fminibuffer_selected_window): New function.
14085 (syms_of_window): Defsubr it.
14086
140872002-03-01 Kim F. Storm <storm@cua.dk>
14088
14089 * window.h (struct window): New member phys_cursor_width.
14090
14091 * window.c (make_window, replace_window): Init phys_cursor_width.
14092
14093 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14094 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14095
14096 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14097 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14098
14099 * lisp.h (GCPRO6): New macro.
14100
14101 * process.c (Fopen_network_stream): Use GCPRO6.
14102
141032002-03-01 Kim F. Storm <storm@cua.dk>
14104
14105 * process.c (Qconnect, Qfailed): New variables.
14106 (syms_of_process): Intern and staticpro them.
14107 (Fprocess_status): Document connect and failed return values.
14108 [NON_BLOCKING_CONNECT]: New conditional.
14109 (connect_wait_mask, num_pending_connects): New variables.
14110 (status_message): Convert Qfailed status.
14111 (Fopen_network_stream): Added support for non-blocking connect.
14112 New optional args: filter, sentinel, non_blocking. Doc updated.
14113 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14114 (deactivate_process): Handle pending non-blocking connect.
14115 (wait_reading_process_input): Poll for status of non-blocking
14116 connects. Exec sentinel directly when connect succeeds.
14117 (status_notify): Don't read process output if not yet connected.
14118
141192002-02-28 Kim F. Storm <storm@cua.dk>
14120
14121 * window.c: (minibuf_selected_window): Renamed from
14122 Vminibuf_selected_window. Users changed.
14123 (syms_of_window): Staticpro it.
14124
141252002-02-26 Kim F. Storm <storm@cua.dk>
14126
14127 The following changes add a new Vminibuf_selected_window variable
14128 which is similar to Vminibuf_scroll_window, but which is only set
14129 on entry to the minibuffer (from a non-minibuffer window):
14130
14131 * window.c: (Vminibuf_selected_window): New variable.
14132 (struct save_window_data): New member minibuf_selected_window.
14133 (Fset_window_configuration): Restore Vminibuf_selected_window.
14134 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14135 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14136 (compare_window_configurations): Compare minibuf_selected_window.
14137
14138 * window.h: (Vminibuf_selected_window): Declare extern.
14139
14140 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14141 entry to minibuffer or on entry from a non-minibuffer window.
14142
14143 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14144 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14145
14146 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14147 instead of Vminibuf_scroll_window when deciding in which window
14148 the region should be highlighted. Consequently, the region remains
14149 highlighteded even when a completion buffer is also displayed.
14150
141512002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14152
14153 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14154
14155 * xselect.c (Qcompound_text_with_extensions): Renamed from
14156 Qcompound_text_no_extensions.
14157 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14158
141592002-02-26 Juanma Barranquero <lektu@terra.es>
14160
14161 * w32proc.c (syms_of_ntproc): Doc fix.
14162
141632002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14164
14165 * intervals.h: Include "dispextern.h" unconditionally.
14166
141672002-02-24 Jason Rumney <jasonr@gnu.org>
14168
14169 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14170 and disp-table.elc.
14171 (lisp): Add emacs-lisp/backquote.elc.
14172
141732002-02-24 Kim F. Storm <storm@cua.dk>
14174
14175 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14176 The validation of the event type was too strict as it didn't
14177 allow string events; buffer names are used in bindings for
14178 menu-bar-select-buffer (see `menu-bar-update-buffers').
14179
141802002-02-23 Kim F. Storm <storm@cua.dk>
14181
14182 The following changes rework my patch of 2002-02-06 which
14183 added command remapping by entering the commands directly into
14184 the keymaps. Now, command remapping uses an explicit `remap'
14185 prefix in the keymaps, i.e. [remap COMMAND].
14186
14187 * keymap.c (Qremap, remap_command_vector): New variables.
14188 (is_command_symbol): Removed function.
14189 (Fdefine_key): No longer accept a symbol for KEY.
14190 Added validation of [remap COMMAND] argument for KEY.
14191 The DEF is no longer required to be a symbol when remapping a command.
14192 (Fremap_command): New function to remap command through keymaps.
14193 (Flookup_key): Perform command remapping initiated by
14194 Fremap_command directly for speed.
14195 (Fkey_binding): Use Fremap_command for command remapping.
14196 (where_is_internal): Handle new command remapping representation.
14197 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14198 staticpro them. Defsubr Fremap_command.
14199
14200 * keymap.h (Fremap_command): Declare extern.
14201 (is_command_symbol): Remove extern.
14202
14203 * keyboard.c (command_loop_1): Use Fremap_command for command
14204 remapping; now try command remapping for all symbols.
14205
142062002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14207
14208 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14209
142102002-02-23 Jason Rumney <jasonr@gnu.org>
14211
14212 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14213 on the string before encoding it.
14214 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14215 after decoding it.
14216
14217 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14218
142192002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14220
14221 * w32term.c (enter_timestamp): Remove unused static variable to
14222 prevent warning.
14223
14224 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14225
142262002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14227
14228 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14229
14230 * xselect.c (selection_data_to_lisp_data): Fix last change.
14231
142322002-02-22 Jason Rumney <jasonr@gnu.org>
14233
14234 * w32term.h (struct w32_output): New member menu_command_in_progress.
14235
14236 * w32menu.c (menubar_selection_callback): Free the menu and
14237 clear the menu_command_in_progress flag.
14238
14239 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14240 (menu_free_timer): New variable.
14241 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14242 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14243 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14244 menu command is in progress.
14245 <WM_COMMAND>: Set the menu_command_in_progress flag.
14246 Kill any menu_free_timer that is running.
14247
14248 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14249 Call ExtTextOutA rather than ExtTextOut.
14250
142512002-02-22 Eli Zaretskii <eliz@gnu.org>
14252
14253 * puresize.h (BASE_PURESIZE): Increase to 755000.
14254
142552002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14256
14257 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14258 on the string before encoding it.
14259 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14260 after decoding it.
14261
142622002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14263
14264 Support for ICCCM Extended Segments in X selections:
14265
14266 * xselect.c <Qcompound_text_no_extensions>: New variable.
14267 (syms_of_xselect): Intern and staticpro it.
14268 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14269 selection text.
14270 (lisp_data_to_selection_data): If next-selection-coding-system is
14271 compound-text-no-extensions, set the type of selection to be
14272 compound-text.
14273
14274 * xterm.h (x_encode_text): Update prototype.
14275
14276 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14277 callers changed. If SELECTIONP is non-zero, run the
14278 pre-write-conversion function before encoding the selection text.
14279
142802002-02-21 Kim F. Storm <storm@cua.dk>
14281
14282 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14283
14284 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14285 Correct composing of language-change event.
14286
142872002-02-20 Kim F. Storm <storm@cua.dk>
14288
14289 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14290 bindings at PT when building menu (the menu is not updated often
14291 enough for this to work reliable).
14292 (tool_bar_items): Likewise.
14293 (current_active_maps): Removed unused (and buggy) function.
14294
142952002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14296
14297 * xfns.c (gif_load): Use correct width and height for GIF images.
14298
142992002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14300
14301 * floatfns.c (Fatan): Accept an optional second arg and call
14302 atan2 if passed 2 args.
14303
143042002-02-18 Jason Rumney <jasonr@gnu.org>
14305
14306 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14307
143082002-02-17 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32term.c (x_autoselect_window_p): New variable.
14311 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14312 (note_mouse_movement): Use it.
14313
14314 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14315
14316 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14317
14318 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14319 New variables.
14320 (syms_of_w32fns): Intern and staticpro them.
14321 (x_frame_parms) <"fullscreen">: New parameter.
14322 (x_fullscreen_move, x_set_fullscreen): New functions.
14323 (x_set_frame_parameters): Support Qfullscreen.
14324 (x_real_positions): Save x/y_pixels_diff frame params.
14325 (x_figure_window_size): Support full-screen frames.
14326 (Fx_create_frame): Default the fullscreen parameter.
14327
14328 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14329 (x_fullscreen_adjust): New functions.
14330 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14331 fullscreen. Call x_check_fullscreen_move, and set the
14332 want_fullscreen member of output_data.w32
14333 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14334
14335 * w32term.h: New enum for FULLSCREEN_* constants.
14336 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14337 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14338 (x-fullscreen-adjust): New prototype.
14339
143402002-02-17 Kim F. Storm <storm@cua.dk>
14341
14342 * frame.c: (Vmouse_highlight): New variable.
14343 (syms_of_frame): DEFVAR_LISP it.
14344
14345 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 14346
048addec 14347 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 14348
048addec
JD
14349 * xterm.c (disable_mouse_highlight): Removed variable.
14350 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14351 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14352 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14353 and on after keyboard input.
14354 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 14355
048addec 14356 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 14357
048addec
JD
14358 * msdos.c (disable_mouse_highlight): Removed variable.
14359 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14360 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14361 (internal_terminal_init): Initialize mouse_face_hidden.
14362 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14363 and on after keyboard input.
4f1b1854 14364
048addec 14365 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 14366
048addec
JD
14367 * w32term.c (disable_mouse_highlight): Removed variable.
14368 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14369 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14370 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14371 and on after keyboard input.
14372 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 14373
048addec 143742002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 14375
048addec
JD
14376 * msdos.c (last_mouse_window): New variable.
14377 (dos_rawgetc): Fix last change--if the mouse is in the same window
14378 as recorded in last_mouse_window, don't select this window.
5cb6905d 14379
048addec 14380 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 14381
048addec
JD
14382 * msdos.c (x_autoselect_window_p): New variable.
14383 (syms_of_msdos): Defvar it.
14384 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14385 which the last mouse movement occured, unless it is already selected.
437dfb9f 14386
048addec
JD
14387 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14388 New variables.
14389 (syms_of_xdisp): DEVFAR them.
14390 (hscroll_window_tree): Use automatic_hscroll_margin and
14391 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 14392
048addec 143932002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 14394
048addec
JD
14395 * xterm.c (x-autoselect-window): New variable.
14396 (note_mouse_movement): Use it.
9f696a00 14397
048addec 14398 * keyboard.c: Do not include "systime.h" twice.
d57966d7 14399
048addec 144002002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 14401
bfa02563 14402 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 14403
048addec 14404 * alloc.c (NSTATICS): Increase to 1280.
74779f52 14405
048addec 144062002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 14407
048addec 14408 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 14409
048addec
JD
14410 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14411 (Vx_super_keysym): New variables.
14412 (syms_of_xterm): DEFVAR_LISP them.
14413 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14414 variables to determine which keys to use for the various modifiers.
a474d59c 14415
048addec 144162002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 14417
048addec
JD
14418 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14419 (mode_line_in_non_selected_windows): New variable.
14420 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 14421
048addec
JD
14422 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14423 Use mode_line_in_non_selected_windows.
14424 (mode_line_in_non_selected_windows): Declare extern.
14425 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 14426
048addec 144272002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 14428
048addec
JD
14429 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14430 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14431 (Fclear_this_command_keys): Doc fixes.
2d10309f 14432
048addec
JD
14433 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14434 (update_face_from_frame_parameter): Increment face_change_count
14435 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 14436
048addec
JD
14437 * xdisp.c (QCpropertize): New variable.
14438 (mode_line_proptrans_alist): New variable.
14439 (display_mode_element): New arg PROPS; all calls changed.
14440 Implement this, for strings.
14441 Handle literal output of strings by sharing the
14442 main-line code for strings, using local var `literal'.
14443 Handle :propertize feature.
14444 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14445 mode_line_proptrans_alist.
0b1e6b54 14446
048addec 144472002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 14448
048addec
JD
14449 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14450 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 14451
048addec
JD
14452 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14453 (CURRENT_MODE_LINE_FACE_ID): Use it.
14454 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 14455
048addec
JD
14456 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14457 to get mode line face.
e17144de 14458
048addec 144592002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14460
048addec
JD
14461 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14462 variables; cus-start.el doesn't need them anymore.
44368f8f 14463
048addec 144642002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 14465
048addec
JD
14466 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14467 reduction. This fixes a display problem where stray newlines were
14468 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 14469
048addec 144702002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 14471
048addec 14472 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 14473
048addec 14474 * xdisp.c (display_mode_lines): Fix last change.
453c5510 14475
048addec 144762002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 14477
048addec
JD
14478 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14479 match each other.
14480 (w32_load_system_font): Prevent Cleartype fonts from loading.
14481 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 14482
048addec 144832002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14484
048addec
JD
14485 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14486 (CURRENT_MODE_LINE_HEIGHT): Use it.
14487 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14488
048addec
JD
14489 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14490 (pos_visible_p, handle_face_prop): Likewise.
14491 (display_mode_lines): Likewise, but for the real selected window.
14492 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14493
048addec
JD
14494 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14495 in non-selected windows.
14496 (realize_basic_faces): Realize it.
14497 (syms_of_term): Intern and staticpro it.
308dd672 14498
048addec 144992002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14500
048addec
JD
14501 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14502 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14503
048addec 145042002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14505
048addec
JD
14506 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14507 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14508
048addec 14509 * floatfns.c (Fround): Doc fix.
3c1e6b46 14510
048addec 145112002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14512
048addec 14513 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14514
048addec 145152002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14516
048addec 14517 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14518
048addec 145192002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14520
048addec
JD
14521 * keymap.c (where_is_internal): Only check whether definition is
14522 remapped if it fulfills is_command_symbol.
0065bb74 14523
048addec 145242002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14525
048addec 14526 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14527
048addec 14528 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14529
048addec 145302002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14531
048addec
JD
14532 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14533 defining command remapping. Doc updated.
14534 (Flookup_key): Remap command through keymap if KEY is a symbol.
14535 (is_command_symbol): New function.
14536 (Fkey_binding): Use it. New optional argument NO-REMAP.
14537 Doc updated. Callers changed. Perform command remapping via
14538 recursive call unless that arg is non-nil.
14539 (where_is_internal): New argument no_remap. Callers changed.
14540 Call recursively to find original key bindings for a remapped
14541 comand unless that arg is non-nil.
14542 (Fwhere_is_internal): New optional argument NO-REMAP.
14543 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14544
048addec
JD
14545 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14546 (is_command_symbol): Added prototype.
0d8466cc 14547
048addec
JD
14548 * keyboard.c (Vthis_original_command): New variable.
14549 (syms_of_keyboard): DEFVAR_LISP it.
14550 (command_loop_1): Set it, and perform command remapping.
15fff01d 14551
048addec 145522002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14553
048addec 14554 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14555
048addec 145562002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14557
048addec 14558 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14559
048addec 145602002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14561
048addec 14562 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14563
048addec 145642002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14565
048addec 14566 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14567
048addec 145682002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14569
048addec 14570 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14571
048addec
JD
14572 * lread.c (read1): Redesign strategy for force_multibyte and
14573 force_singlebyte. Now is_multibyte records whether read_buffer
14574 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14575
048addec 145762002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14577
048addec
JD
14578 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14579 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14580
048addec 145812002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14582
048addec
JD
14583 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14584 latter never being defined on GNU/Linux.
749f499f 14585
048addec 145862002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14587
048addec
JD
14588 * xfaces.c (realize_default_face): Don't set the weight and slant of
14589 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14590
048addec 145912002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14592
048addec
JD
14593 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14594 Call cancel_hourglass unconditionally.
d0fd26dd 14595
048addec
JD
14596 * eval.c (Fsignal): Remove duplicated declaration of
14597 the variable `display_hourglass_p'.
b4c45162 14598
048addec 145992002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14600
048addec 14601 * editfns.c (region_limit): Nicer error message.
c95eaa61 14602
048addec
JD
14603 * coding.c (decode_composition_emacs_mule):
14604 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14605
048addec
JD
14606 * callint.c (check_mark): New arg to specify clearer error message.
14607 Callers changed.
c95eaa61 14608
048addec 146092002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14610
048addec 14611 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14612
048addec 146132002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14614
048addec
JD
14615 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14616 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14617 Fix doc-strings.
c95eaa61 14618
048addec 146192002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14620
048addec 14621 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14622
048addec
JD
14623 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14624 and scroll_up_aggressively.
c95eaa61 14625
048addec 146262002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14627
048addec 14628 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14629
048addec 146302002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14631
048addec
JD
14632 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14633 (Fprevious_property_change, Fprevious_single_property_change):
14634 Stay within the narrowed-buffer boundaries.
e2c3786a 14635
048addec 146362002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14637
048addec
JD
14638 * term.c (Ftty_display_color_cells): New function.
14639 (syms_of_term): Defsubr it.
14640 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14641 argument name to DISPLAY. Doc fix.
bf794306 14642
048addec
JD
14643 * dispextern.h: Add prototype for set_tty_color_mode and
14644 tty_setup_colors.
bf794306 14645
048addec 146462002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14647
048addec
JD
14648 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14649 If region left to draw is not what was expected, mark the frame as
14650 garbaged.
62582985 14651
048addec
JD
14652 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14653 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14654
048addec 146552002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14656
048addec
JD
14657 * w32term.c (x_update_window_begin): Only hide caret if
14658 w32_use_visible_system_caret is set.
14659 (x_update_window_end): Only show caret if
14660 w32_use_visible_system_caret is set.
14661 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14662
048addec 14663 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14664
048addec 146652002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14666
048addec
JD
14667 * unexelf.c (unexec): Define n so as to cause compilation error
14668 for the code where people have often written n instead of nn.
1e9a6186 14669
048addec 14670 * .gdbinit (hookpost-run): Defined.
1e9a6186 14671
048addec 146722002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14673
048addec 14674 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14675
048addec 146762002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14677
048addec
JD
14678 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14679 if fullscreen is being set.
7c75be36 14680
048addec 146812002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14682
048addec
JD
14683 * minibuf.c (Fminibuffer_contents)
14684 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14685 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14686
048addec 146872002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14688
048addec 14689 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14690
048addec 146912002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14692
048addec
JD
14693 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14694 height before comparison.
14695 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14696
048addec 146972002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14698
048addec
JD
14699 * w32term.c (w32_system_caret_width): Remove.
14700 (w32_use_visible_system_caret): New user flag.
14701 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14702 Windows reports a screen reader running.
14703 (x_update_window_begin): Hide the system caret.
14704 (x_update_window_end): Show the system caret.
14705 (x_display_and_set_cursor): Don't draw a cursor when
14706 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14707
048addec
JD
14708 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14709 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14710 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14711 the user requests it. Use system default width when creating.
14712 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14713
048addec
JD
14714 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14715 New window messages.
905cc05a 14716
048addec 147172002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14718
048addec 14719 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14720
048addec 147212002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14722
048addec 14723 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14724
048addec 147252002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14726
048addec 14727 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14728
048addec 147292002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14730
048addec
JD
14731 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14732 that Windows returns. If a double check fails, try to guess how
14733 ExtTextOut is going to act.
4d0fa4f3 14734
048addec
JD
14735 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14736 in place of stricmp.
14737 (w32_list_synthesized_fonts): Removed.
14738 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14739 (struct enumfont_t): New element; list.
14740 (enum_font_cb2): List all style and charset variations of a font.
14741 (Fw32_select_font): New optional argument; include_proportional.
14742 Exclude vertical fonts. Exclude proportional fonts unless
14743 include_proportional is non-nil.
14744 (w32_enable_synthesized_fonts): Change to a boolean.
14745 (Fw32_send_sys_command): Doc fix.
493faf20 14746
048addec 147472002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14748
048addec
JD
14749 * dispnew.c (update_frame): Move the variable `tem' to the block
14750 where it is used.
4971e491 14751
048addec 147522002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14753
048addec
JD
14754 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14755 call to face-set-after-frame-default.
4971e491 14756
048addec 147572002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14758
048addec
JD
14759 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14760 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14761
048addec 147622002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14763
048addec
JD
14764 * window.c (enlarge_window): When exceeding size of parent,
14765 directly delete all the siblings instead of trying to resize it.
201c831a 14766
048addec 147672002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14768
048addec 14769 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14770
048addec 147712002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14772
048addec 14773 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14774
048addec 147752002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14776
048addec
JD
14777 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14778 is invisible. This can happen if cursor is on top line of a
14779 window, and we switch to a buffer with a header line.
d77fbc16 14780
048addec 14781 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14782
048addec 147832002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14784
048addec
JD
14785 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14786 `dont_resize' only when used.
61e3b944 14787
048addec 14788 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14789
048addec 147902002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14791
048addec
JD
14792 * xdisp.c (display_mode_element): When computing charpos, depend
14793 on multibyteness of elt, not the text in field.
8af01033 14794
048addec 147952002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14796
048addec
JD
14797 * buffer.c (Fkill_all_local_variables):
14798 Increment `update_mode_lines' only once.
7363986a 14799
048addec 148002002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14801
048addec
JD
14802 * lisp.h (adjust_after_replace_noundo)
14803 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14804
048addec 14805 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14806
048addec 148072002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14808
048addec
JD
14809 Support for the --color command-line argument and tty-color-mode
14810 frame parameter:
f1a85b89 14811
048addec
JD
14812 * term.c (tty_default_color_capabilities, tty_setup_colors)
14813 (set_tty_color_mode): New functions.
14814 (term_init): Call tty_default_color_capabilities.
14815 (Qtty_color_mode_alist): New variable.
14816 (syms_of_term): Intern and staticpro it.
f1a85b89 14817
048addec
JD
14818 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14819 frames.
14820 (do_switch_frame): For termcap frames, switch the tty
14821 color mode as specified by the frame's parameters.
14822 (Qtty_color_mode): New variable.
14823 (syms_of_frame): Intern and staticpro it.
3a62677f 14824
048addec
JD
14825 * emacs.c (USAGE2): Add the --color option.
14826 (standard_args): Ditto.
72244db2 14827
048addec
JD
148282002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14829
14830 * xterm.h (struct x_output): New members want_fullscreen,
14831 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14832 y_pixels_outer_diff.
14833 New enum for FULLSCREEN_* constants.
14834 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14835 is NULL.
14836 (x_fullscreen_adjust): Add prototype.
3a62677f 14837
048addec
JD
14838 * emacs.c (USAGE2): Add the new full-screen arguments.
14839 (standard_args): Ditto.
3a62677f 14840
048addec
JD
14841 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14842 New variables.
14843 (syms_of_xfns): Intern and staticpro them.
14844 (x_frame_parms) <"fullscreen">: New parameter.
14845 (x_fullscreen_move, x_set_fullscreen): New functions.
14846 (x_set_frame_parameters): Support for Qfullscreen.
14847 (x_real_positions): More accurate computation of the frame position.
14848 (x_figure_window_size): Support full-screen frames.
14849 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14850
048addec
JD
14851 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14852 (XTread_socket) <Expose>: Call x_check_fullscreen.
14853 <ConfigureNotify>: Don't resize to fullscreen.
14854 Call x_check_fullscreen_move, and set the want_fullscreen member of
14855 output_data.x.
3a62677f 14856
048addec 148572002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14858
048addec
JD
14859 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14860 for mice with more than 3 buttons.
b8523839 14861
048addec
JD
14862 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14863 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14864
048addec
JD
14865 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14866 (syms_of_w32fns): DEFVAR_BOOL it.
14867 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14868
048addec 148692002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14870
048addec 14871 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14872
048addec 148732002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14874
048addec 14875 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14876
048addec 148772002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14878
048addec
JD
14879 * .gdbinit (xbuffer): Remove address operator since data is now a
14880 pointer.
c93674bb 14881
048addec 148822002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14883
048addec 14884 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14885
048addec 14886 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14887
048addec 148882002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14889
048addec
JD
14890 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14891 when checking for multiple frames.
91175673 14892
048addec 148932002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14894
048addec
JD
14895 * window.c (delete_window): Rewrite the code for changing the
14896 selected window to handle the case where WINDOW is not a leaf.
91175673 14897
048addec 148982002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14899
048addec
JD
14900 * process.c (send_process): Set src_multibyte to 1 after the call
14901 top setup_coding_system, not before the call.
e0fead5d 14902
048addec 149032002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14904
048addec
JD
14905 * xmenu.c (set_frame_menubar, xmenu_show):
14906 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14907
048addec
JD
14908 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14909 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14910
048addec 149112002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14912
048addec 14913 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14914
048addec 14915 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14916
048addec 14917 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14918
048addec 149192002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14920
048addec
JD
14921 * insdel.c (make_gap_larger): Make sure buffer size does not
14922 overflow range of int.
62854fe2 14923
048addec 149242002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14925
048addec
JD
14926 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14927 OVERLAPS_P.
656f46bb 14928
048addec 14929 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14930
048addec
JD
14931 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14932 to the left or to the right of the pointer, put it against
14933 the left screen edge.
14934 (x_frame_parms): Add missing braces around initializer.
036e218d 14935
048addec
JD
14936 * w32term.c (x_setup_relief_colors): Don't compute an image's
14937 background color if it doesn't have a Pixmap.
14938 (notice_overwritten_cursor): Don't depend on
14939 output_cursor and updated_area. Compare pixel coordinates with
14940 window's cursor pixel coordinates.
14941 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14942 Call notice_overwritten_cursor with new arg list.
14943 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14944 unconditionally.
14945 (x_draw_image_relief): Use predefined macro instead of
14946 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14947
048addec 14948 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14949
048addec 149502002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14951
048addec 14952 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14953
048addec 149542002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 14955
048addec
JD
14956 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14957 (Fkey_binding): Try the `keymap' property map first.
14958 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14959 minor mode bindings.
90647b07 14960
048addec 149612002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 14962
048addec 14963 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 14964
048addec 149652002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 14966
048addec
JD
14967 * keyboard.c (read_key_sequence): Handle the keymap property
14968 before minor mode maps.
9fbc32aa 14969
048addec
JD
14970 * editfns.c (Fformat): Update thissize from field_width
14971 based on the actual width, in the string case.
036e218d 14972
048addec 149732002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14974
048addec
JD
14975 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14976 when used as truth value to prevent gcc warnings.
9fbc32aa 14977
048addec
JD
14978 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14979 * w32proc.c: Include <config.h>.
9fbc32aa 14980
048addec 149812002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14982
048addec
JD
14983 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14984 not EMACS_INT, to make them compatible with DEFVAR_INT.
14985 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14986
048addec 149872002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14988
048addec
JD
14989 * print.c (print_object): Test print_escape_nonascii only for
14990 unibyte strings.
14991 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14992 when outputting to a multibyte buffer.
9fbc32aa 14993
048addec 149942001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14995
048addec
JD
14996 * print.c (print_object): In multibyte string, use hex escapes.
14997 Use octal only for unibyte strings.
14998 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14999
048addec
JD
15000 * lread.c (read_escape): New arg BYTEREP for reporting whether
15001 escape forces unibyte or multibyte.
15002 (read1): When reading a string, take note of that info.
0142178a 15003
048addec 150042001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15005
048addec
JD
15006 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15007 comparison to test lisp value returned by Fget.
d4824a5d 15008
048addec 150092001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15010
048addec 15011 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15012
048addec 15013 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15014
048addec
JD
15015 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15016 Handle modifier bits. Correct typo in error message.
99e380ee 15017
048addec 150182001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15019
048addec
JD
15020 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15021 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15022 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15023 Update calls to Fdefine_abbrev.
15024 (write_abbrev): Update for changed data format.
15025 Don't list "system" abbrevs.
15026 (Fexpand_abbrev): Update use count with new data format.
15027 (describe_abbrev): Update for changed data format.
15028 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15029
048addec 15030 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15031
048addec 15032 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15033
048addec
JD
15034 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15035 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15036
048addec
JD
15037 * keymap.c (Flookup_key): Error message if key has wrong data type.
15038 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15039 (exclude_key): New variable.
59a86c99 15040
048addec 150412001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15042
048addec
JD
15043 * xterm.c (x_setup_relief_colors): Don't compute an image's
15044 background color if it doesn't have a Pixmap.
eb77a5f4 15045
048addec
JD
15046 * xterm.c (notice_overwritten_cursor): Don't depend on
15047 output_cursor and updated_area. Compare pixel coordinates with
15048 window's cursor pixel coordinates.
15049 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15050 Call notice_overwritten_cursor with new arg list.
15051 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15052 unconditionally.
eb77a5f4 15053
048addec
JD
15054 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15055 height of the cursor line to the amount to scroll.
eb77a5f4 15056
048addec 150572001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15058
048addec
JD
15059 * intervals.c (set_point_both): The position after an invisible,
15060 intangible character is not an acceptable stopping point.
bb313871 15061
048addec 150622001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15063
048addec
JD
15064 * window.c (enlarge_window): In new preserve_before code, convert
15065 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15066
048addec 150672001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15068
048addec 15069 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15070
048addec 150712001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15072
048addec
JD
15073 * keyboard.c (record_char): Ignore duplicate help-echo events only
15074 separated by mouse-movement. When tracking mouse, only record
15075 first and last mouse-movement event in same window.
15076 Don't record mouse-movement events in keyboard macros.
3ce081f5 15077
048addec 150782001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15079
048addec
JD
15080 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15081 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15082
048addec
JD
15083 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15084 instead of Fstring_as_unibyte.
9fabb2f5 15085
048addec 150862001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15087
048addec 15088 The following changes remove mocklisp support:
9fabb2f5 15089
048addec 15090 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15091
048addec
JD
15092 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15093 `Qmocklisp' and `Qmocklisp_arguments'.
15094 Remove prototype of syms_of_mocklisp.
2fa0eedf 15095
048addec 15096 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15097
048addec
JD
15098 * callint.c: Do not include mocklisp.h.
15099 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15100
048addec
JD
15101 * eval.c: Remove variables `Qmocklisp_arguments',
15102 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15103 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15104 Do not test for mocklisp case.
15105 (Fwhile): Remove unused variable `tem'.
15106 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15107
048addec 15108 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15109
048addec 15110 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15111
048addec 15112 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15113
048addec 151142001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15115
048addec
JD
15116 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15117 to the left or to the right of the pointer, put it against
15118 the left screen edge.
6108b49c 15119
048addec 151202001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15121
048addec
JD
15122 * Makefile.in (distclean): Remove .gdbinit if we are building
15123 outside the source tree.
5eea19a4 15124
048addec 151252001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15126
048addec 15127 * w32.c (emacs_root_dir): New function.
5eea19a4 15128
048addec 15129 * msdos.c (emacs_root_dir): New function.
5eea19a4 15130
048addec
JD
15131 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15132 of the current drive as the fallback for default_directory.
438e57dd 15133
048addec
JD
15134 * dired.c (file_name_completion): Run the elements of
15135 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15136
048addec
JD
15137 * lisp.h (scmp): Remove prototype, since it's now a static
15138 function private to dired.c.
c88e5347 15139
048addec 151402001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15141
048addec
JD
15142 * dired.c (scmp): Function moved from minibuf.c.
15143 Delete multibyte handling--used only on encoded strings.
59ce1461 15144
048addec 15145 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15146
048addec 15147 * fns.c (merge): Add QUIT call.
59ce1461 15148
048addec 151492001-12-18 Dave Love <fx@gnu.org>
8727d588 15150
048addec
JD
15151 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15152 language/georgian.el.
8727d588 15153
048addec 151542001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15155
048addec
JD
15156 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15157 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15158
048addec 151592001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15160
048addec
JD
15161 * xdisp.c (window_box_height): Do not return negative values.
15162 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15163
048addec 15164 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15165
048addec 15166 * term.c (keys): Likewise.
deece6f5 15167
048addec 15168 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15169
048addec 151702001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15171
048addec
JD
15172 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15173 patch (COMPOSING_P, not COMPOSING).
28ff4293 15174
048addec 151752001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15176
048addec 15177 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15178
048addec
JD
15179 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15180 before calling decode_coding.
9b46de40 15181
048addec 15182 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15183
048addec
JD
15184 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15185 instead of only for COMPOSITION_DISABLED.
9b46de40 15186
048addec 151872001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15188
048addec 15189 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15190
048addec 15191 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15192
048addec
JD
15193 * buffer.h (struct buffer): New field `display_error_modiff'.
15194 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15195
048addec 15196 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15197
048addec
JD
15198 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15199 Call redisplay_window, but not if display_error_modiff field says no.
15200 (redisplay_window_error): New function.
15201 (displayed_buffer): New variable.
15202 (redisplay_internal, redisplay_windows): Call the new functions
15203 instead of redisplay_window directly.
2cd23960 15204
048addec 152052001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15206
048addec 15207 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15208
048addec 152092001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15210
048addec 15211 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15212 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15213 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15214
048addec 152152001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15216
048addec
JD
15217 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15218 parameter have a numeric value all the time.
f6fa0866 15219
048addec 15220 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15221
048addec 152222001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15223
048addec 15224 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15225
048addec
JD
15226 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15227 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15228
048addec 152292001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15230
048addec
JD
15231 * xdisp.c (move_it_vertically_backward): Change heuristic
15232 for the case that we didn't move far enough initially.
91c153e2 15233
048addec
JD
15234 * window.c (Frecenter): Simplify computation in the case of window
15235 system frames and ARG < 0; use window_box_height.
65b7d3e7 15236
048addec 152372001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15238
048addec
JD
15239 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15240 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15241
048addec 152422001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15243
048addec
JD
15244 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15245 arg is negative.
be676094 15246
048addec 152472001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15248
048addec
JD
15249 * m/hp800.h: Split the __hpux conditional into the parts
15250 that are right for GNU/Linux too and the parts that are not.
15251 Use the former if GNU_LINUX.
15252 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15253
048addec 15254 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15255
048addec 152562001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15257
048addec
JD
15258 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15259 `new style' [w/`doc:' keyword].
032a857d 15260
048addec 152612001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15262
048addec
JD
15263 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15264 before using.
b6270150 15265
048addec 152662001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15267
048addec
JD
15268 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15269 keyword].
98cbb9fa 15270
048addec 152712001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15272
048addec 15273 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15274
048addec 15275 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15276
048addec 152772001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15278
048addec 15279 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15280 Add comment to explain where the struct came from.
048addec
JD
15281 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15282 (add_menu_item): Process pop-up menus first to avoid memory leak.
15283 (add_menu_item, w32_menu_display_help): Use `help' field as
15284 Lisp_Object.
15285 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15286
048addec 152872001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15288
048addec 15289 * COPYING: Moved back.
fa336b91 15290
048addec
JD
15291 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15292 Add parentheses around && within ||.
077907d4 15293
048addec 15294 * indent.c (compute_motion): Likewise.
aa2af83a 15295
048addec 15296 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 15297
048addec
JD
15298 * coding.c (setup_coding_system, shrink_encoding_region)
15299 (Fdecode_sjis_char): Likewise.
60a653f1 15300
048addec 153012001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 15302
048addec
JD
15303 * xdisp.c (display_mode_element): Don't read past end of string if
15304 it ends with '%'.
60a653f1 15305
048addec
JD
15306 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15307 can hold.
60a653f1 15308
048addec
JD
15309 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15310 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15311 type changed to Lisp_Object.
15312 (syms_of_data): DEFVAR_LISP them.
60a653f1 15313
048addec 153142001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 15315
048addec
JD
15316 * callproc.c (init_callproc): Set Vdata_directory based on the source
15317 location whenever Emacs was run uninstalled.
60a653f1 15318
048addec 153192001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 15320
048addec
JD
15321 * config.in (HAVE_WORKING_VFORK): New #undefs.
15322 * process.c (create_process):
15323 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15324 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15325 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15326 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15327 * m/intel386.h (HAVE_VFORK): Likewise.
15328 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15329 * m/mips.h (HAVE_VFORK): Likewise.
15330 * s/freebsd.h (vfork): Remove #define.
15331 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15332 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 15333
048addec 153342001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 15335
048addec
JD
15336 * s/hpux10.h (random): Add undef.
15337 (HAVE_RANDOM): Define it just once.
60a653f1 15338
048addec 153392001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15340
048addec 15341 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 15342
048addec 153432001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15344
048addec
JD
15345 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15346 scroll bars of the frame before deleting the frame itself. If the
15347 frame has a widget, delete the frame with XtDestroyWidget, and do
15348 not call XDestroyWindow before that.
60a653f1 15349
048addec 153502001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 15351
048addec 15352 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15353
048addec 15354 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 15355
048addec 153562001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 15357
048addec
JD
15358 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15359 excessively large.
60a653f1 15360
048addec
JD
15361 * insdel.c (make_gap_larger): New function.
15362 (make_gap_smaller): New function.
15363 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15364 Call make_gap_smaller if arg is negative.
60a653f1 15365
048addec 153662001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15367
048addec
JD
15368 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15369 Pass a dummy argument when calling interrupt_signal.
15370 (parse_menu_item): Mark disabled items before checking for empty def.
15371 (read_char_minibuf_menu_prompt): Make safety more visible.
15372 (read_key_sequence): Add a `first_unbound' variable.
15373 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15374 unbound prefix as soon as we can detect it.
60a653f1 15375
048addec
JD
15376 * doc.c (Fsnarf_documentation): Add prototype.
15377 (get_doc_string): Handle negative arguments.
15378 (Fdocumentation): Use AREF and ASIZE.
15379 Move the calls to get_doc_string to a single place.
15380 Don't confuse an interactive-spec for a docstring reference.
15381 (Fdocumentation_property): Take advantage of the fact that
15382 get_doc_string now ignores the sign of the docstring position.
60a653f1 15383
048addec 15384 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 15385
048addec 153862001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15387
a64387ee 15388 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 15389
048addec 153902001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15391
048addec
JD
15392 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15393 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 15394
048addec 153952001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 15396
048addec
JD
15397 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15398 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 15399
048addec 15400 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 15401
048addec 154022001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15403
048addec 15404 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 15405
048addec 154062001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 15407
048addec 15408 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 15409
048addec 154102001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 15411
f63fd14e 15412 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 15413
048addec
JD
15414 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15415 [!WM_MOUSELEAVE]: Define.
60a653f1 15416
048addec
JD
15417 * w32menu.c (current_popup_menu, get_menu_item_info):
15418 (set_menu_item_info): New vars.
15419 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15420 (w32_menu_show): Set current_popup_menu.
15421 (add_menu_item): Allocate new strings for owner-drawn menu items
15422 and help strings.
15423 Use owner-draw for disabled menu items again.
15424 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15425 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 15426
048addec
JD
15427 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15428 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15429 <WM_EXITMENULOOP>: Free menu strings.
15430 <WM_MOUSELEAVE>: Stop tracking mouse.
15431 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 15432
048addec
JD
15433 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15434 and mouse face.
60a653f1 15435
048addec 154362001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 15437
048addec
JD
15438 The following changes add left-fringe and right-fringe
15439 frame parameters to adjust fringe widths, or remove one or
15440 both fringes.
60a653f1 15441
048addec
JD
15442 * frame.h (struct frame): Remove trunc_area_pixel_width and
15443 trunc_area_cols fields.
15444 (Qleft_fringe, Qright_fringe): Declare.
15445 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 15446
048addec
JD
15447 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15448 (syms_of_frame): Initialize them.
60a653f1 15449
048addec
JD
15450 * window.c (coordinates_in_window): Handle separate left and right
15451 fringe widths.
60a653f1 15452
048addec
JD
15453 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15454 and fringe_cols fields.
15455 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15456 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15457 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15458 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15459 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15460 (x_compute_fringe_widths): Add prototype.
60a653f1 15461
048addec
JD
15462 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15463 fill fringe evenly with small dashes.
f63fd14e 15464 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
15465 clip the new ZV bitmap to avoid jitter between rows.
15466 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15467 background. Don't draw fringe bitmaps if fringe width is zero.
15468 (x_compute_fringe_widths): New function.
15469 (x_new_font, x_set_window_size_1): Use it.
60a653f1 15470
048addec
JD
15471 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15472 (x_set_frame_parameters): Process `font' parameter before other
15473 parameters as fringe widths depend on it.
15474 (x_set_fringe_width): New function.
15475 (x_figure_window_size): Use x_compute_fringe_widths.
15476 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15477 parameters.
60a653f1 15478
048addec
JD
15479 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15480 (EmacsFrameSetCharSize): Ditto.
60a653f1 15481
048addec
JD
15482 * w32term.h: Merged changes from xterm.h.
15483 * w32term.c: Merged changes from xterm.c.
15484 * w32fns.c: Merged changes from xfns.c.
60a653f1 15485
048addec 154862001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15487
048addec 15488 * COPYING: Removed.
60a653f1 15489
048addec 154902001-11-29 Dave Love <fx@gnu.org>
60a653f1 15491
048addec
JD
15492 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15493 extra extra slot.
15494 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15495
048addec 154962001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15497
048addec
JD
15498 * fileio.c (file-name-coding-system)
15499 (default-file-name-coding-system): Doc fix (links to referenced
15500 variables added).
60a653f1 15501
048addec 155022001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15503
048addec
JD
15504 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15505 Add dummy uses of gcproN variables.
60a653f1 15506
048addec
JD
15507 * category.c (describe_category, describe_category_1)
15508 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15509 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15510
048addec 155112001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15512
048addec 15513 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15514
048addec
JD
15515 * Makefile.in (lispdir): New variable, referring to build dir.
15516 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15517
048addec 155182001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15519
048addec
JD
15520 * w32menu.c (w32_menu_display_help): Actually add the new argument
15521 OWNER.
60a653f1 15522
048addec 155232001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15524
048addec
JD
15525 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15526 menu items. From David Ponce <dponce@wanadoo.fr>.
15527 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15528 conditionally.
f63fd14e 15529 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15530 help event in the owner frame's keyboard buffer.
60a653f1 15531
048addec
JD
15532 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15533 (Fx_show_tip): Don't subtract last width from row width.
15534
15535 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15536 (w32_read_socket): Use EQ to compare frames.
60a653f1 15537
048addec 155382001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15539
048addec
JD
15540 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15541 OVERLAPS_P.
60a653f1 15542
048addec 155432001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15544
048addec
JD
15545 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15546 `gcpro3' and `gcpro4'.
60a653f1 15547
048addec 15548 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15549
048addec 155502001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15551
048addec 15552 * ccl.c: Use AREF and ASIZE.
60a653f1 15553
048addec 155542001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15555
048addec
JD
15556 * lisp.h (run_hook_list_with_args): Remove.
15557 (LIST_END_P): Fix call to wrong_type_argument.
15558 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15559
048addec 155602001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15561
048addec
JD
15562 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15563 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15564
048addec
JD
15565 * eval.c: Use AREF and ASIZE.
15566 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15567
048addec
JD
15568 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15569 which match the end of the file-name.
15570 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15571 is not a valid env var, but leave it as is instead.
60a653f1 15572
048addec
JD
15573 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15574 Make nil bindings in char-tables transparent.
15575 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15576
048addec 155772001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15578
048addec
JD
15579 * textprop.c (set_text_properties_1): Allow START, END in either order.
15580 Do nothing if range is empty.
60a653f1 15581
048addec 15582 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15583
048addec
JD
15584 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15585 (clean): Not here.
60a653f1 15586
048addec 155872001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15588
048addec
JD
15589 * textprop.c (set_text_properties_1): Clearly mark that the
15590 interval should not be empty.
60a653f1 15591
048addec
JD
15592 * intervals.c (graft_intervals_into_buffer):
15593 Don't call set_text_properties_1 on an empty interval.
60a653f1 15594
048addec 155952001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15596
048addec 15597 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15598
048addec
JD
15599 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15600 don't lose the data in it.
60a653f1 15601
048addec 156022001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15603
048addec 15604 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15605
c62aec78 15606 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15607
c62aec78 15608 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15609
048addec 156102001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15611
048addec 15612 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15613
048addec 156142001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15615
048addec
JD
15616 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15617 Niemitalo <kon@iki.fi>.
60a653f1 15618
048addec 156192001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15620
048addec 15621 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15622
048addec
JD
15623 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15624 (Fx_show_tip): Block input during frame creation.
15625 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15626
048addec 156272001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15628
048addec
JD
15629 * lread.c (Fload): Detect recursive load error for more than 3
15630 nestings of the same file.
15631 (Vrecursive_load_depth_limit): Variable deleted.
15632 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15633
048addec 156342001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15635
048addec
JD
15636 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15637 mouse position if either left or top is not specified.
60a653f1 15638
048addec
JD
15639 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15640 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15641 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15642 (my_create_tip_window): Assign tip_window.
15643 (x_create_tip_frame): Use same defaults as X.
15644 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15645 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15646
048addec
JD
15647 * w32term.c (x_after_update_window_line): Doc fix.
15648 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15649 frames.
15650 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15651
048addec
JD
15652 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15653 for all Windowed systems.
60a653f1 15654
048addec 156552001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15656
048addec
JD
15657 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15658 realized, use the initial screen colors to clear the screen.
60a653f1 15659
048addec 156602001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15661
048addec
JD
15662 * textprop.c (Fset_text_properties): Remove unused variables
15663 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15664
048addec
JD
15665 * search.c (Freplace_match): Remove unused variable `inslen'.
15666
15667 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15668
156692001-11-22 Jason Rumney <jasonr@gnu.org>
15670
15671 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15672 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15673 (my_create_tip_window): New function.
15674 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15675 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15676
156772001-11-20 Jason Rumney <jasonr@gnu.org>
15678
15679 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15680 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15681
15682 * w32fns.c (Vw32_system_coding_system): Remove.
15683 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15684
156852001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15686
15687 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15688 after build_annotations.
15689
15690 * syntax.c (describe_syntax): Add dummy arg.
15691 (describe_syntax_1): Update call to describe_vector.
15692
15693 * category.c (describe_category): Add dummy arg.
15694 (describe_category_1): Update call to describe_vector.
15695
15696 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15697 (describe_command, describe_translation): Add dummy second param.
15698 (describe_map): Call elt_describer with two arguments.
15699 (describe_vector_princ): Add `fun' parameter.
15700 Call it instead of the hardcoded `princ'.
15701 (describe_vector): Add arg `args'.
15702 Pass it as a new second argument to elt_describer.
60a653f1 15703
048addec 15704 * keymap.h (describe_vector): Update prototype.
60a653f1 15705
048addec
JD
15706 * frame.c: Don't include keymap.h any more.
15707 (keys_of_frame): Remove.
60a653f1 15708
048addec 15709 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15710
048addec 15711 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15712
048addec 157132001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15714
048addec
JD
15715 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15716 if defined, 0 otherwise.
15717 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15718 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15719
048addec 157202001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15721
048addec 15722 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15723
048addec 157242001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15725
048addec
JD
15726 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15727 (x_draw_bar_cursor): If the background color of the glyph under
15728 the cursor equals the frame's cursor color, use the glyph's
15729 foreground color for drawing the bar cursor.
15730 (x_after_update_window_line): Clear internal border in different
15731 circumstances.
15732 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15733 (w32_draw_relief_rect): Correct relief by 1 pixel.
15734 (x_set_glyph_string_background_width):
15735 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15736 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15737 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15738 if cursor_in_non_selected_windows is false.
15739 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15740 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15741 Notice if cursor gets overwritten.
15742 (notice_overwritten_cursor): Renamed from
15743 note_overwritten_text_cursor. Rewritten to take glyph widths
15744 into account, and to take X positions as parameters.
15745 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15746 around call to x_draw_glyphs.
15747 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15748 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15749 color to use for image glyph reliefs.
15750 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15751 (glyph_rect): Remove unused variable `area'.
60a653f1 15752
048addec
JD
15753 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15754 some items.
15755 (x_set_internal_border_width): Set frame garbaged when window
15756 doesn't exist yet.
15757 (Fx_create_frame): Accept zero tool_bar_button_relief.
15758 (x_clear_image_1, four_corners_best, image_background)
15759 (image_background_transparent): New functions.
15760 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15761 (gs_format): Add `:background' entry.
15762 (lookup_image): Set IMG's background color if specified.
15763 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15764 when appropriate.
15765 (x_clear_image_1): Reset `background_valid' and
15766 `background_transparent_valid' fields.
15767 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15768 calculating it here. Set IMG's background_transparent field.
15769 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15770 (enum png_keyword_index): Add PNG_BACKGROUND.
15771 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15772 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15773 (enum gif_keyword_index): Add GIF_BACKGROUND.
15774 (enum gs_keyword_index): Add GS_BACKGROUND.
15775 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15776 Pre-calculate image background color where necessary.
15777 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15778 Use display info's n_cbits entry for screen depth.
15779 (Fx_show_tip): Remove unused variables `buffer', `top',
15780 `left', `max_width' and `max_height'.
60a653f1 15781
048addec 15782 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15783
048addec 157842001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15785
048addec 15786 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15787
048addec 157882001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15789
048addec 15790 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15791
048addec 157922001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15793
048addec
JD
15794 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15795 (message_dolog_marker3): New static variables hold three markers.
15796 (syms_of_xdisp): Initialize and staticpro them.
15797 (message_dolog): Use message_dolog_marker1..3 instead of
15798 allocating markers each time. Unchain them when done.
60a653f1 15799
048addec 158002001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15801
048addec 15802 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15803
048addec 158042001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15805
048addec 15806 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15807
048addec 158082001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15809
048addec 15810 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15811
048addec 158122001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15813
048addec 15814 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15815
048addec 158162001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15817
048addec
JD
15818 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15819 with invalid position.
60a653f1 15820
048addec 158212001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15822
048addec 15823 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15824
048addec
JD
15825 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15826 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15827 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15828
048addec 15829 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15830
048addec 158312001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15832
048addec
JD
15833 * fileio.c (build_annotations): Split off the tail.
15834 (build_annotations_2): New fun. Extracted from build_annotations.
15835 (Fwrite_region): Split the call to build_annotations into two
15836 calls to build_annotations and build_annotations_2.
077907d4 15837
048addec 158382001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15839
048addec
JD
15840 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15841 clear_waiting_for_input with argument.
1756e2fb 15842
048addec 15843 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15844
048addec 15845 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15846
048addec 15847 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15848
048addec 15849 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15850
048addec 158512001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15852
048addec
JD
15853 * fileio.c (choose_write_coding_system): New fun, extracted
15854 from Fwrite_region.
15855 (Fwrite_region): Use it.
fa336b91 15856
048addec
JD
15857 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15858 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15859 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15860
048addec 158612001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15862
048addec 15863 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15864
048addec
JD
15865 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15866 Required for ISC 4.1.
fa336b91 15867
048addec 158682001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15869
048addec
JD
15870 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15871 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15872
048addec 158732001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15874
048addec
JD
15875 The following changes are made to clean up the various internal
15876 references to the fringes to actually use the term `fringe' for
15877 them. Previously, they were called `flags areas', `bitmap areas',
15878 `left/right side of windows', or implicitly as `flags' or
15879 `bitmaps':
fa336b91 15880
048addec 15881 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15882 Comments fixed. Use renamed symbols.
06e8f738 15883
f63fd14e 15884 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15885
048addec
JD
15886 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15887 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15888 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15889
048addec 15890 * msdos.c: Comment fix.
9ce647f4 15891
048addec 15892 * w32fns.c: Use renamed symbols.
9b784ab8 15893
f63fd14e 15894 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15895 (fringe_bitmap_type): Renamed from bitmap_type.
15896 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15897 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15898 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15899
f63fd14e 15900 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15901 (fringes_extra): Renamed from flags_areas_extra.
15902 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15903 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15904 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15905 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15906 (FRAME_X_LEFT_FRINGE_WIDTH):
15907 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15908 (FRAME_X_RIGHT_FRINGE_WIDTH):
15909 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15910
048addec 15911 * widget.c: Use renamed symbols.
9f7e52b4 15912
f63fd14e 15913 * window.c: Comment fixes. Use renamed symbols.
048addec 15914 (coordinates-in-window-p): Doc fix.
fa336b91 15915
f63fd14e 15916 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15917
048addec 15918 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15919
048addec 15920 * xfns.c: Use renamed symbols.
89512fcd 15921
f63fd14e 15922 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15923 (fringe_bitmap_type): Renamed from bitmap_type.
15924 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15925 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15926 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15927
f63fd14e 15928 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15929 (fringes_extra): Renamed from flags_areas_extra.
15930 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15931 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15932 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15933 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15934 (FRAME_X_LEFT_FRINGE_WIDTH):
15935 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15936 (FRAME_X_RIGHT_FRINGE_WIDTH):
15937 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15938
159392001-11-15 Jason Rumney <jasonr@gnu.org>
15940
15941 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15942 work for most menu items. From David Ponce
15943 <david.ponce@wanadoo.fr>.
15944
159452001-11-15 Gerd Moellmann <gerd@gnu.org>
15946
15947 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15948 Some x_set_* function expect to be called even if old and new
15949 value are equal.
15950
15951 * xdisp.c (build_desired_tool_bar_string): Accept zero
15952 tool_bar_button_relief.
15953
15954 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15955
15956 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15957
15958 * xterm.c (x_draw_bar_cursor): If the background color of the
15959 glyph under the cursor equals the frame's cursor color, use
15960 the glyph's foreground color for drawing the bar cursor.
15961
15962 * dispnew.c (direct_output_forward_char): Fix character/byte
15963 position comparison.
7d18891d 15964
048addec 159652001-11-15 Miles Bader <miles@gnu.org>
d2936d21 15966
048addec
JD
15967 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15968 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15969 Update arguments to find_field.
15970 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15971 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15972 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15973 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15974
048addec 159752001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15976
048addec 15977 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15978
048addec
JD
15979 * dispextern.h (image_background, image_background_transparent):
15980 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15981
048addec 159822001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15983
048addec 15984 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15985
048addec 15986 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15987
048addec 15988 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15989
048addec 15990 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15991
048addec 15992 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15993
048addec 15994 * eval.c (syms_of_eval): Doc fix.
7d18891d 15995
048addec 15996 * coding.c (syms_of_coding): Doc fix.
7d18891d 15997
048addec 15998 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15999
048addec 16000 * dispnew.c (syms_of_display): Doc fix.
9474c847 16001
048addec 16002 * category.c (Fget_unused_category): Doc fix.
9474c847 16003
048addec 16004 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16005
048addec 160062001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16007
048addec 16008 * print.c (prin1, print): Doc fix.
e3059a5d 16009
048addec 160102001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16011
048addec
JD
16012 * fontset.h: Remove declarations of variables
16013 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16014
048addec
JD
16015 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16016 `Vclip_large_size_font'.
eae936e2 16017
048addec 160182001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16019
048addec 16020 * w32fns.c: Doc fix.
ddb67bdc 16021
048addec 160222001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16023
048addec 16024 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16025
048addec 16026 * fns.c: Doc fix.
6e1b91d7 16027
048addec 16028 * emacs.c: Doc fix.
1c1d3d69 16029
048addec 16030 * coding.c: Doc fix.
1c1d3d69 16031
048addec
JD
16032 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16033 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16034 `new style' [w/`doc:' keyword].
b6f4c7ba 16035
048addec 160362001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16037
048addec
JD
16038 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16039 LeaveNotify events. Only FocusIn and FocusOut do that now.
16040 (x_display_and_set_cursor): Do display hollow cursors in active
16041 minibuffer windows when they are not selected.
b6f4c7ba 16042
048addec 160432001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16044
048addec 16045 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16046 * w32term.c: Change doc-string comments to `new style'
16047 [w/`doc:' keyword]. Doc fixes.
a89f435d 16048
048addec
JD
16049 * w32fns.c: Don't define max.
16050 (Fx_open_connection): Only execute once.
a4cd0cd7 16051
048addec 160522001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16053
048addec
JD
16054 * ccl.c: Change macros to use do-while block instead of if-else.
16055 Use braces to follow GNU Coding Standards.
eafb659a 16056
048addec 160572001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16058
048addec 16059 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16060
048addec 16061 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16062
048addec
JD
16063 * insdel.c (replace_range): Use adjust_markers_for_replace
16064 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16065
78819ebb 16066 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16067
048addec
JD
16068 * textprop.c (set_text_properties_1): New subroutine
16069 broken out of set_text_properties.
16070 (set_text_properties): Use set_text_properties_1.
91823618 16071
048addec
JD
16072 * intervals.c (graft_intervals_into_buffer):
16073 Use set_text_properties_1 to clear out properties.
91823618 16074
048addec
JD
16075 * search.c (Freplace_match): Use replace_range to insert
16076 and delete. Don't request property inheritance from
16077 surrounding text.
86928dfb 16078
048addec 160792001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16080
048addec 16081 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16082 vertical fonts. Allow them if face name is explicitly specified.
048addec 16083 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16084
048addec 160852001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16086
048addec
JD
16087 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16088 instead of malloc/free.
a78e0303 16089
048addec 160902001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16091
048addec
JD
16092 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16093 Coding Standards.
16094 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16095
048addec 16096 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16097
048addec 16098 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16099
048addec
JD
16100 * coding.c (encode_coding): Use precomputed value of `src'.
16101 (encode_coding): Remove unused variable `src_end'.
16102 (code_convert_region): Remove unused variables `count'.
830ddd77 16103
048addec 161042001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16105
048addec
JD
16106 * w32term.c (x_display_and_set_cursor): Do not move system caret
16107 if cursor_glyph is NULL.
55c6d645 16108
048addec 161092001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16110
048addec 16111 * keymap.c (access_keymap): Fix compilation error.
5de38842 16112
048addec 161132001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16114
048addec 16115 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16116
048addec 161172001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16118
048addec
JD
16119 * intervals.c (graft_intervals_into_buffer):
16120 Remove #ifdef'd-out code.
16121 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16122
048addec
JD
16123 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16124 code (eval-current-buffer).
16125 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16126
048addec 161272001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16128
048addec 16129 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16130
048addec 161312001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16132
048addec 16133 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16134
048addec
JD
16135 * keyboard.c (make_lispy_event): Check integerness and fix
16136 Lisp_Object/int mixup.
17893c65 16137
048addec 161382001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16139
048addec 16140 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16141
048addec
JD
16142 * fontset.c (fontset_font_pattern): Remove unused variable
16143 `family_registry'.
d5360cc7 16144
048addec 16145 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16146
048addec 161472001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16148
048addec 16149 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16150
048addec
JD
16151 * buffer.c (Fkill_buffer): Don't delete auto save file
16152 if buffer is modified.
d9d54213 16153
048addec 161542001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16155
048addec
JD
16156 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16157 CHECK_NUMBER_CDR.
b116830b 16158
048addec 161592001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16160
048addec 16161 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16162
048addec 161632001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16164
048addec 16165 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16166
048addec 161672001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16168
048addec 16169 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16170
048addec 161712001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16172
048addec
JD
16173 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16174 the program image directly.
982f6c7e 16175
048addec 161762001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16177
048addec 16178 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16179
048addec 161802001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16181
048addec
JD
16182 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16183 and CHECK_BUFFER.
d31053f9 16184
048addec
JD
16185 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16186 (record_char): Likewise.
d31053f9 16187
048addec
JD
16188 * keyboard.c (make_lispy_event): Don't insist a drag event must
16189 move to a different buffer position. Instead, check for moving at
16190 least double_click_fuzz.
982f6c7e 16191
048addec 16192 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16193
048addec 16194 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16195
048addec
JD
16196 * indent.c (current_column_1, Fmove_to_column): Separate the code
16197 for display-table glyphs from the code for buffer text, to fix
16198 bugs in the former.
830047fd 16199
048addec 162002001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16201
048addec
JD
16202 * buffer.c (Fbuffer_local_value): New function.
16203 (syms_of_buffer): Defsubr it.
2df5238c 16204
048addec
JD
16205 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16206 value of `cursor-in-non-selected-windows'.
4e397688 16207
048addec
JD
16208 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16209 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16210 (syms_of_xdisp): Initialize it.
48b0f3ae 16211
048addec 162122001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16213
048addec 16214 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16215
048addec
JD
16216 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16217 keyword].
3ecaf7e5 16218
048addec
JD
16219 * eval.c (top_level_value, top_level_set): Remove commented and
16220 #ifdef'd-out code.
16221 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16222
048addec 162232001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16224
048addec 16225 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16226
048addec 16227 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16228
048addec 16229 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16230
048addec 162312001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16232
048addec
JD
16233 * lisp.h (CHECK_STRING_CAR): New macro.
16234 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16235 treating XCAR and XCDR as lvalues.
16236 (openp): Use CHECK_STRING_CAR.
16237 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16238
048addec 162392001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16240
048addec
JD
16241 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16242 (SIGMASKTYPE): Define.
1b1acc13 16243
048addec 16244 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16245
048addec 162462001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16247
048addec
JD
16248 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16249 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16250 Fix typos in comments.
6cb16f95 16251
048addec
JD
16252 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16253 and #ifdef'd-out code.
16254 Fix and reindent comments.
6cb16f95 16255
048addec 16256 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16257
048addec
JD
16258 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16259 argument `i' in macros.
6cb16f95 16260
048addec
JD
16261 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16262 `i' in macros.
7e9d3c2f 16263
048addec
JD
16264 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16265 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16266 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16267 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16268 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16269 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16270 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16271 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16272 in macros.
7e9d3c2f 16273
048addec
JD
16274 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16275 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16276 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16277 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16278 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16279 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16280 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16281 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16282 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16283 (remove unused second argument).
7e9d3c2f 16284
048addec 162852001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16286
048addec
JD
16287 * syntax.c (describe_syntax): New wrapper.
16288 (Finternal_describe_syntax_value): Rename from describe_syntax.
16289 Don't insert space at front and \n at the end.
16290 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 16291
048addec
JD
16292 * regex.c (re_wctype): Try to fix some warnings.
16293 (regcomp, regexec): Don't forget the __restrict.
9ba48103 16294
048addec 162952001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 16296
048addec 16297 * textprop.c (Fget_char_property): Doc fix.
9ba48103 16298
048addec 162992001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 16300
048addec 16301 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 16302
048addec 16303 * data.c (Fsetq_default): Ditto.
c22e59e1 16304
048addec 16305 * callint.c (Finteractive): Ditto.
9271ed2c 16306
048addec 163072001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16308
048addec
JD
16309 * macros.c: Don't include keymap.h any more.
16310
163112001-11-01 Richard M. Stallman <rms@gnu.org>
16312
16313 * data.c (Fmake_local_variable): Doc fix.
16314
16315 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16316 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 16317
048addec 16318 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
16319 bindings along with or instead of the buffer local map.
16320 Make the overriding maps override what they should.
16321
f00691a3 163222001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
16323
16324 * window.c (grow_mini_window): Fix typo in comment.
16325
27188d11
GM
163262001-11-01 Gerd Moellmann <gerd@gnu.org>
16327
7b49b9d2
GM
16328 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16329 (XTset_vertical_scroll_bar): Likewise.
16330
43f7c3ea
GM
16331 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16332 instead of IMAGE_BACKGROUND.
c22e59e1 16333
b350c2e5
GM
16334 * xfns.c (four_corners_best): Reindent.
16335
c22e59e1 16336 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
16337 Handle :box so that it is possible to specify sexprs.
16338
bf00d461
EZ
163392001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16340
16341 * s/hpux11.h: New file.
16342
f00691a3 163432001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 16344
2b209b97
PJ
16345 * emacs.c (USAGE1): Show command line option --no-window-system
16346 instead of --no-windows in usage.
16347 (standard_args): Rename --no-windows to --no-window-system.
16348 (bug_reporting_address): Follow Emacs coding conventions.
16349
9dbc9081
PJ
16350 * eval.c (Fcommandp): Doc fix.
16351 Change doc-string comments to `new style' [w/`doc:' keyword].
16352
4e10df59
PJ
16353 * frame.c (Fframe_live_p): Doc fix.
16354
16355 * buffer.c (selective-display-ellipses): Doc fix.
16356
dd387b25
GM
163572001-10-31 Gerd Moellmann <gerd@gnu.org>
16358
fe957e65
GM
16359 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16360
dd387b25
GM
16361 * xfaces.c (realize_x_face): If C is not a single-byte character,
16362 set the face's colors_copied_bitwise_p instead of the defaulted_p
16363 members which have a different meaning.
16364 (free_face_colors): Do nothing for a face whose colors have been
16365 copied bitwise.
16366
c22e59e1 16367 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 16368
f00691a3 163692001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 16370
687784e8
PJ
16371 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16372 [w/`doc:' keyword].
2e1280f8 16373
b9d9a9b9
GM
163742001-10-31 Gerd Moellmann <gerd@gnu.org>
16375
16376 * fns.c (require_unwind): Return Lisp_Object.
16377
f00691a3 163782001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 16379
fa1361cb
PJ
16380 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16381 (last-input-char): Revert doc-string to be the same as the
16382 doc-string of `last-input-event'.
16383
6c465a15 16384 * xdisp.c: Fix typos in comments.
48400103 16385
eafa3196
GM
163862001-10-31 Gerd Moellmann <gerd@gnu.org>
16387
16388 * window.c (grow_mini_window): Handle case that the root
16389 window is already smaller than the nominal mininum height.
16390
747d3f2a
SM
163912001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16392
bf9bb76f
SM
16393 * emacs.c (main): Don't call keys_of_macros any more.
16394
16395 * lisp.h (keys_of_macros): Remove.
16396
16397 * macros.c (keys_of_macros): Remove.
16398
747d3f2a
SM
16399 * xfaces.c (Fface_attribute_relative_p): Declare args.
16400
5e905a57
JR
164012001-10-30 Jason Rumney <jasonr@gnu.org>
16402
16403 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16404 (enum_font_cb2): Ignore fonts with vertical orientation.
16405
3a426197
RS
164062001-10-30 Richard M. Stallman <rms@gnu.org>
16407
16408 * keyboard.c (Finput_pending_p): Doc fix.
16409
a742d646
GM
164102001-10-30 Gerd Moellmann <gerd@gnu.org>
16411
259cf6bc
GM
16412 * xterm.c (x_after_update_window_line): Don't run the code
16413 clearing in borders for rows whose visible height is 0.
16414
3f99f948
GM
16415 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16416 resized_p flag is set. If not set, use the much less flickering
16417 method previously used.
16418
16419 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16420
16421 * frame.h (struct frame) <resized_p>: New member.
16422
b4a3be43
GM
16423 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16424 as large as the number of bytes to convert.
747d3f2a 16425
a742d646
GM
16426 * lread.c (to_multibyte): New function.
16427 (read1): Use it.
16428
cacbb9e9
EZ
164292001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16430
16431 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16432
99cb6b2f
GM
164332001-10-30 Gerd Moellmann <gerd@gnu.org>
16434
327f42ee 16435 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
16436 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16437 if the row's fill_line_p is set and drawing the last glyph with
16438 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 16439
99cb6b2f
GM
16440 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16441
8e8223e2
SM
164422001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16443
16444 * xmenu.c: Include coding.h and charset.h.
16445 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16446 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16447 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16448 Explicitly set wv->help. Use `TRUE' rather than `True'.
16449 (menu_help_callback): Use empty_string.
16450
16451 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16452 (Fx_popup_dialog): Explicitly init f.
16453 (w32_menu_display_help): Use empty_string.
16454
4d083a8f
RS
164552001-10-29 Richard M. Stallman <rms@gnu.org>
16456
b2304472
RS
16457 * fns.c (Frequire): Detect recursive try to require the same
16458 feature 3 or more levels deep, and get error.
16459 (require_unwind): New subroutine.
16460 (require_nesting_list): New variable.
16461 (syms_of_fns): Init and staticpro it.
16462
4d083a8f
RS
16463 * print.c (print_object): Clarify indication of insertion type.
16464
2fe41216
EZ
164652001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16466
90480000
EZ
16467 * coding.c (syms_of_coding): Document that locale-coding-system is
16468 used for decoding input on X.
16469
2fe41216
EZ
16470 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16471
f00691a3 164722001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
16473
16474 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16475 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16476
60ebcfe8
GM
164772001-10-29 Gerd Moellmann <gerd@gnu.org>
16478
9a7bdceb
GM
16479 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16480 use NO_CURSOR if cursor_in_non_selected_windows is false.
16481
3f08fcd2
GM
16482 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16483 the slant attribute if FRAME is t.
16484
0ccfdad2
GM
16485 * xfns.c (x_set_internal_border_width): Set frame garbaged
16486 when X window doesn't exist yet.
16487
ef253080
GM
16488 * xterm.c (x_after_update_window_line): Clear internal border
16489 in different circumstances.
b116830b 16490
60ebcfe8
GM
16491 * xterm.c (XTread_socket) <KeyPress>: Don't use
16492 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16493 <handa@etl.go.jp>.
16494
73d25f9c
EZ
164952001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16496
16497 * m/ibms390.h: New file. From Adam Thornton
16498 <athornton@sinenomine.net>.
16499
cac1daf0
GM
165002001-10-28 Gerd Moellmann <gerd@gnu.org>
16501
053b3256 16502 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16503
cac1daf0
GM
16504 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16505 a loop counter.
16506
f00691a3 165072001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16508
f9711de4 16509 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16510
4707d2d0
PJ
16511 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16512 keyword].
16513 Fix typos in comments.
b116830b 16514
d883731c
PJ
16515 * emacs.c (bug_reporting_address): New function.
16516 Use it when displaying usage message.
16517
04012254
PJ
16518 * minibuf.c (read_minibuf): Remove unused external declaration of
16519 variable `Qread_only'.
16520
13b1a09c
PJ
16521 * keymap.c (access_keymap): Remove unused variable `charset'.
16522
5bbf4378
MB
165232001-10-28 Miles Bader <miles@gnu.org>
16524
16525 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16526 Remove #ifdef'd-out code.
16527 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16528 (syms_of_xfaces): Initialize them.
16529
1ce1e4ee
JR
165302001-10-27 Jason Rumney <jasonr@gnu.org>
16531
16532 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16533 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16534 position using the system caret.
16535
16536 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16537 (w32_system_caret_height, w32_system_caret_x)
16538 (w32_system_caret_y): New variables for tracking system caret.
16539 (w32_initialize): Initialize them.
c2d53558 16540 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16541
c2d53558
SM
16542 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16543 New messages types.
1ce1e4ee
JR
16544
16545 * w32term.c (note_mouse_highlight): Clear old help_echo.
16546
f00691a3 165472001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16548
bb4600a4
PJ
16549 * xterm.c: Fix typo in a comment.
16550
7db35a48
PJ
16551 * emacs.c: Fix typos in comments.
16552 Remove unnecessary spaces.
16553 Change doc-string comments to `new style' [w/`doc:' keyword].
16554 (USAGE2): Fix typos in usage string.
16555
a7248e4f
PJ
16556 * xterm.c: Fix typo in a comment.
16557
4e30ce42
PJ
16558 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16559 emacs.c.
16560
62725a92
GM
165612001-10-27 Gerd Moellmann <gerd@gnu.org>
16562
798dbe1f 16563 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16564 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16565 farther backward when target_y was not reached.
16566
62725a92
GM
16567 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16568 Display errno only if non-zero.
16569 (sound_warning): New function.
16570 (vox_configure): Don't treat failing to set sample rate as error.
16571 (various places): Improve error messages.
16572
d4e34d24
EZ
165732001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16574
944e6f60
EZ
16575 * fileio.c (Faccess_file): Run the argument filename through
16576 Fexpand_file_name, before using it.
16577
d4e34d24
EZ
16578 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16579 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16580
38d2af0c
GM
165812001-10-26 Gerd Moellmann <gerd@gnu.org>
16582
da80a8d5
GM
16583 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16584
38d2af0c
GM
16585 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16586 Fix clearing in the case of scroll bars on the right.
c2d53558 16587
45de4a6f 165882001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16589
16590 * w32gui.h (XImage): Add a dummy typedef.
16591
fbd5ceb2
GM
165922001-10-26 Gerd Moellmann <gerd@gnu.org>
16593
c2d53558 16594 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16595
b23236fb
EZ
165962001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16597
16598 * frame.c (Fframe_parameter): Fix last change.
16599
5d991fc4
EZ
16600 * fileio.c: Revert last change (which removed old commented-out
16601 version of expand-file-name). Add a comment that explains why
16602 this old version should not be removed.
16603
879eadc3
GM
166042001-10-25 Gerd Moellmann <gerd@gnu.org>
16605
75700ff2
GM
16606 * frame.c (Fframe_parameter): Fix a bug whereby some
16607 ``artificial'' frame parameters, like `minibuffer' were not
16608 obtained by calling Fframe_parameters.
16609
dfe92a6a
GM
16610 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16611 cursor differently.
16612
879eadc3
GM
16613 * xdisp.c (move_it_vertically_backward): Compute line height
16614 differently. Add heuristic to try to be more compatible to 20.x.
16615
e1010ebe
SM
166162001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16617
d73a471b
SM
16618 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16619
d6da5a06
GM
16620 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16621 boolean.
e1010ebe 16622
f66bd220
MB
166232001-10-25 Miles Bader <miles@gnu.org>
16624
16625 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16626 BG is a pointer to a structure, not a structure.
16627 (gif_format, png_format): Add missing commas.
16628
d436d538
RS
166292001-10-24 Richard M. Stallman <rms@gnu.org>
16630
16631 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16632 (syms_of_xfaces): Defsubr it.
d436d538 16633
f00691a3 166342001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16635
16636 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16637 variable `area'.
16638
f00691a3 166392001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16640
c2d53558 16641 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16642
e2a57b34
MB
166432001-10-25 Miles Bader <miles@gnu.org>
16644
16645 * dispextern.h (struct image): Add `background',
16646 `background_valid', and `background_transparent' fields.
16647 (image_background, image_background_transparent): New declarations.
16648 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16649 * xfns.c (image_background, image_background_transparent)
16650 (four_corners_best): New functions.
c2d53558 16651 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16652 (gs_format): Add `:background' entry.
16653 (lookup_image): Set IMG's background color if specified.
16654 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16655 when appropriate.
16656 (x_clear_image_1): Reset `background_valid' and
16657 `background_transparent_valid' fields.
16658 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16659 calculating it here. Set IMG's background_transparent field.
16660 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16661 (enum png_keyword_index): Add PNG_BACKGROUND.
16662 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16663 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16664 (enum gif_keyword_index): Add GIF_BACKGROUND.
16665 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16666 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16667 Pre-calculate image background color where necessary.
16668 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16669 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16670 color to use for image glyph reliefs.
16671
b547b6e8
GM
166722001-10-24 Gerd Moellmann <gerd@gnu.org>
16673
d9e3b8c6
GM
16674 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16675 in full-width rows.
c2d53558 16676
b547b6e8
GM
16677 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16678 Fix clearing of area not covered by scroll bar.
16679
f00691a3 166802001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16681
16682 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16683 and `real_start'.
c2d53558 16684 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16685 (glyph_rect): Remove unused variable `area'.
16686
76cb5e06
GM
166872001-10-24 Gerd Moellmann <gerd@gnu.org>
16688
bdbdebff 16689 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16690
16691 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16692 (row_containing_pos): Take additional argument DY.
16693 Treat rows ending in middle of char differently.
62e33982
GM
16694 (display_line): Handle tabs on window systems differently.
16695
16696 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16697 with additional argument.
16698
16699 * dispextern.h (row_containing_pos): Adjust prototype.
16700
76cb5e06
GM
16701 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16702 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16703 (try_window_id, try_window_reusing_current_matrix)
16704 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16705 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16706
f00691a3 167072001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16708
c9e60620
PJ
16709 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16710 gnuemacs).
16711 (HAVE_BOXES): Fix typo in comment.
16712 (push_menu_pane): Fix typo in comment.
16713
3b552d56
PJ
16714 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16715 of `Qwhen'.
16716 (single_display_prop_string_p): Remove unused local declarations
16717 of `Qwhen' and `Qmargin'.
16718 (string_buffer_position): Remove unused variable `around'.
16719 (store_frame_title): Remove unused variable `width'.
16720
15c565ac
PJ
16721 * window.c: Don't define max.
16722 (coordinates_in_window): Remove unused variable `uy'.
16723
a8818eb9
PJ
16724 * widget.c: Don't define max.
16725
996fee11
PJ
16726 * process.c: Don't define max.
16727 (create_process): Remove unused variable `buffer'.
16728
496e1a5b
GM
167292001-10-23 Gerd Moellmann <gerd@gnu.org>
16730
c2d53558 16731 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16732
5905ae8b
EZ
167332001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16734
16735 * xfaces.c (Finternal_set_lisp_face_attribute)
16736 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16737 frame is on a windowed display.
16738
24db49fb
GM
167392001-10-23 Gerd Moellmann <gerd@gnu.org>
16740
c2d53558
SM
16741 * dispnew.c (sync_window_with_frame_matrix_rows):
16742 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16743 of marginal areas.
16744
c2d53558 16745 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16746
f0487f05
EZ
167472001-10-23 Andreas Schwab <schwab@suse.de>
16748
16749 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16750 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16751
f0a48a01
GM
167522001-10-23 Gerd Moellmann <gerd@gnu.org>
16753
c2d53558 16754 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16755 REAL_END. Notice if cursor gets overwritten.
16756 (notice_overwritten_cursor): Take X positions as parameters.
16757 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16758 around call to x_draw_glyphs.
16759
f00691a3 167602001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16761
fc11dff0
PJ
16762 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16763 instead of C) and usage.
a50a10a0 16764
fc11dff0
PJ
16765 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16766 of C) and usage.
a50a10a0
PJ
16767
16768 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16769 `left', `max_width' and `max_height'.
16770
8738febd
GM
167712001-10-23 Gerd Moellmann <gerd@gnu.org>
16772
16773 * xdisp.c (display_line): For a tab continued to the next line,
16774 set row's ends_in_middle_of_char_p.
16775
653c329b
GM
167762001-10-22 Gerd Moellmann <gerd@gnu.org>
16777
16778 * xdisp.c (display_line): Fix computation of continuation lines
16779 width for TABs.
16780
f00691a3 167812001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16782
7ba51063
PJ
16783 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16784 `Qlaplace'.
16785
f958c5ac
PJ
16786 * fileio.c: Remove unused code.
16787
eb360291
MB
167882001-10-22 Miles Bader <miles@gnu.org>
16789
16790 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16791 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16792 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16793
98515cf0
JR
167942001-10-21 Jason Rumney <jasonr@gnu.org>
16795
16796 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16797
93026d88
EZ
167982001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16799
16800 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16801 (Finsert_string): Avoid the multi-line string literals warning.
16802
c9a95b79
MB
168032001-10-22 Miles Bader <miles@gnu.org>
16804
16805 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16806 (Fdocumentation): Don't use it.
16807 (syms_of_doc): Don't initialize it.
16808
16809 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16810 * print.c (Fwith_output_to_temp_buffer): Likewise.
16811 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16812 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16813 (Fsave_restriction): Likewise.
c2d53558
SM
16814 * eval.c (Frun_hooks, Frun_hook_with_args)
16815 (Frun_hook_with_args_until_failure)
16816 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16817 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16818 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16819 (Funwind_protect, Fcondition_case): Likewise.
16820 * coding.c (Ffind_operation_coding_system): Likewise.
16821 * keyboard.c (Ftrack_mouse): Likewise.
16822
a3b10252
MB
168232001-10-21 Miles Bader <miles@gnu.org>
16824
c2d53558 16825 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16826 (Fmake_hash_table): Add usage: string to doc string.
16827 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16828 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16829 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16830 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16831 (Fml_prefix_argument_loop): Likewise.
16832
f00691a3 168332001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16834
c2d53558 16835 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16836
c6f73eec
PJ
16837 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16838 style' [w/`doc:' keyword].
16839
16840 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16841 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16842 comments to `new style' [w/`doc:' keyword].
16843
3cf3436e
JR
168442001-10-21 Jason Rumney <jasonr@gnu.org>
16845
16846 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16847
c169b8f1
JR
16848 * w32term.c (remember_mouse_glyph): New function.
16849 (w32_mouse_position): Use it.
16850 (note_mouse_movement): If the mouse moved off the glyph, remember
16851 its new position.
c2d53558 16852
4fdd691b
JR
16853 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16854 (w32_display_info): Add mouse_face_overlay.
16855
c169b8f1
JR
16856 * w32term.c (notice_overwritten_cursor): Renamed from
16857 note_overwritten_text_cursor. Rewritten to take glyph widths into
16858 account.
16859 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16860 (fast_find_string_pos): New function.
16861 (fast_find_position): Return the correct vpos. Add parameter
16862 STOP. In the final row, stop before glyphs having STOP as object.
16863 Don't consider glyphs that are not from a buffer.
16864 (fast_find_position) [0]: Add a presumably more correct version
16865 for after 21.1.
16866 (expose_window_tree, expose_frame): Don't compute intersections here.
16867 (expose_window): Do it here instead.
16868 (expose_window_tree, expose_window, expose_line): Return 1 when
16869 overwriting mouse-face.
16870 (expose_window): If W is the window currently being updated, mark
16871 the frame garbaged.
16872 (expose_frame): If mouse-face was overwritten, redo it.
16873 (x_use_underline_position_properties): New variable.
16874 (syms_of_xterm): DEFVAR_BOOL it.
16875 (x_draw_glyph_string): Add comment to use it in future.
16876 (x_draw_glyph_string): Restore clipping after drawing box.
16877 Fix a computation of the underline position.
16878 (w32_get_glyph_string_clip_rect): Minor cleanup.
16879 (x_fill_stretch_glyph_string): Remove an assertion.
16880 (x_produce_glyphs): Don't convert multibyte characters
16881 to unibyte characters in unibyte buffers.
16882 (cursor_in_mouse_face_p): New function.
16883 (x_draw_stretch_glyph_string): Use it to choose a different GC
16884 when drawing a cursor within highlighted text. Don't draw
16885 background again if it has already been drawn.
16886 (x_draw_glyph_string_box): Don't draw a full-width
16887 box just because the glyph row's full_width_p flag is set.
16888 (x_draw_glyphs): Fix computation of rightmost x for
16889 full-width rows.
16890 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16891 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16892 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16893 (x_update_window_end): Handle overwritten mouse face
16894 also for tool bar windows.
16895 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16896 DRAW is DRAW_IMAGE_RAISED.
16897 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16898 actually redrawn. Make the function static.
16899 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16900 optimize away highlighting if we pass over that same overlay again.
16901 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16902 to detect a case where we have to highlight a different region
16903 despite not having left the currently highlighted region.
16904 Set mouse_face_overlay in the x_display_info. Avoid changing the
16905 mouse pointer shape when show_mouse_face has already done it, or
16906 there is no need. Handle mouse-face and help-echo in strings.
16907 (glyph_rect): New function.
16908 (w32_mouse_position): Use it to raise the threshold for mouse
16909 movement event generation.
16910 (w32_initialize_display_info): Initialize the x_display_info's
16911 mouse_face_overlay.
16912 (w32_set_vertical_scroll_bar): Don't clear a zero height
16913 or width area.
16914 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16915 a widget to zero height.
16916
3cf3436e 16917 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16918 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16919 equivalents in menu_items.
16920 (w32_menu_show): Don't overwrite an item's name with its key
16921 description in case the description is a multibyte string.
16922 (single_submenu): Some cleanup.
16923
16924 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16925 (postprocess_image): New function.
16926 (lookup_image): Call it for all image types except PostScript.
16927 (x_kill_gs_process): Call postprocess_image.
16928 (tiff_error_handler, tiff_warning_handler): New functions.
16929 (tiff_load): Install them as handlers.
16930 (x_kill_gs_process): Recognize if someone has cleared the image
16931 cache under us.
16932 (valid_image_p): Protect better against invalid image
16933 specifications. Previous code could signal an error.
16934 (Fx_hide_tip, Fshow_tip): Doc fix.
16935 (Fv_max_tooltip_size): New variable.
16936 (syns_of_xfns): DEFVAR_LISP it.
16937 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16938 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16939 window_width. Use a maximum tooltip size specified by
16940 Vx_max_tooltip_size, if that has valid contents.
16941 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16942 Make sure the tooltip is completely visible.
16943 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16944 (Fx_create_frame): Adjust the frame's height for presence
16945 of the tool bar before calling x_figure_window_size.
16946 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16947 when the window gets smaller.
16948 (x_set_foreground_color): Set frame's cursor_pixel.
16949 (x_set_foreground_color, x_set_background_color): Cleaned up.
16950 (x_set_font): Handle case of x_new_fontset returning the same name
16951 as before, although there was a change in fontsets.
16952
386ca361
MB
169532001-10-21 Miles Bader <miles@gnu.org>
16954
c2d53558 16955 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
16956 (Flogxor): Add usage: string to doc string.
16957 * charset.c (Fstring): Likewise.
16958 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16959 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16960
f00691a3 169612001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 16962
03be2694
PJ
16963 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16964
16965 * alloc.c: Reindent DEFUNs with doc: keywords.
16966
16967 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16968
14ff1ee0
PJ
16969 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16970 keyword].
16971
2f147815 16972See ChangeLog.9 for earlier changes.
6922b018
KH
16973
16974;; Local Variables:
49b3bd82 16975;; coding: iso-2022-7bit
6922b018 16976;; End:
2a34a036 16977
2f147815 16978 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16979 Copying and distribution of this file, with or without modification,
16980 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16981
16982;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4